1 #ifndef GDE_PROFILES_SERVICE_HPP
2 #define GDE_PROFILES_SERVICE_HPP
5 #include "ProfileAttribute.hpp"
6 #include "GDESession.hpp"
13 class ProfilesService {
14 friend class GDESession;
17 const Profile createProfile(const Profile&);
18 bool deleteProfile(const Profile&);
19 const Profile readProfile(int);
20 const Profile updateProfile(const Profile&);
22 const ProfileAttribute createProfileAttribute(const std::string& name, const std::string& type, int profileId, bool mandatory);
23 bool deleteProfileAttribute(const ProfileAttribute&);
24 const ProfileAttribute readProfileAttribute(int);
25 const ProfileAttribute updateProfileAttribute(const ProfileAttribute&);
28 ProfilesService(const GDESession& session) : _session(session) {}
30 ProfilesService(const ProfilesService&); // non copyable
31 ProfilesService& operator=(const ProfilesService&); // non copyable
34 static std::string _servletName;
35 const GDESession& _session;