Back to index

nordugrid-arc-nox  1.1.0~rc6
aaservice.h
Go to the documentation of this file.
00001 #ifndef __ARC_SERVICE_AA_H__
00002 #define __ARC_SERVICE_AA_H__
00003 
00004 #include <arc/message/Service.h>
00005 
00006 namespace ArcSec {
00007 
00011 class Service_AA: public Arc::Service {
00012  private:
00013   std::string keyfile_;
00014   std::string certfile_;
00015   std::string cafile_;
00016   std::string cadir_;
00017   Arc::XMLNode dbconf_;
00018  protected:
00019   Arc::NS ns_;
00020   Arc::Logger logger_;
00021   Arc::MCC_Status make_soap_fault(Arc::Message& outmsg, const std::string& reason);
00022  public:
00023   Service_AA(Arc::Config *cfg);
00024   virtual ~Service_AA(void);
00025   virtual Arc::MCC_Status process(Arc::Message& inmsg,Arc::Message& outmsg);
00026  private:
00027   bool get_results(std::vector<std::string>& fqans, const std::vector<std::string>& sqlargs,
00028       const std::string& idofsqlset, Arc::XMLNode& config);
00029   bool query_db(Arc::QueryArrayResult& attributes, const std::string& idofsqlset, 
00030                 std::vector<std::string>& sqlargs, Arc::XMLNode& config);
00031 };
00032 
00033 } // namespace ArcSec
00034 
00035 #endif
00036