FME Server C++ API 3.0
|
00001 #ifndef _IFMESERVERIDENTITY_H 00002 #define _IFMESERVERIDENTITY_H 00003 00056 #include <fmeservertypes.h> 00057 00058 class IFMEServerString; 00059 class IFMEServerStringArray; 00060 00061 //=========================================================================== 00062 // Abstract Interface Class -- all methods are virtual and it has no data 00063 class IFMEServerIdentity 00064 { 00065 public: 00066 // ----------------------------------------------------------------------- 00070 virtual void getID(IFMEServerString& id) const = 0; 00071 00072 // ----------------------------------------------------------------------- 00076 virtual void getRoles(IFMEServerStringArray& roles) const = 0; 00077 00078 // ----------------------------------------------------------------------- 00082 virtual FME_Boolean getIsAuthenticated() const = 0; 00083 00084 protected: 00085 00086 // ----------------------------------------------------------------------- 00087 // No one should be creating an instance of this directly, so we 00088 // make the constructor protected. 00089 IFMEServerIdentity() {} 00090 00091 // ----------------------------------------------------------------------- 00092 // No one should be destroying an instance of this directly, so we 00093 // make the destructor protected. 00094 virtual ~IFMEServerIdentity() {} 00095 00096 private: 00097 00098 // ----------------------------------------------------------------------- 00099 // The copy constructor is not implemented. 00100 IFMEServerIdentity(const IFMEServerIdentity &other); 00101 00102 //--------------------------------------------------------------- 00103 // The assignment operator is not implemented. 00104 IFMEServerIdentity &operator=(const IFMEServerIdentity &other); 00105 }; 00106 00107 00108 #endif