1 #ifndef GDE_USER_SERVICE_HPP
2 #define GDE_USER_SERVICE_HPP
6 #include "GDESession.hpp"
13 friend class GDESession;
16 const User createUser(const std::string& name, const std::string& password);
17 bool deleteUser(const User&);
18 const User findUser(const std::string& name);
20 const Group createGroup(const std::string& name);
21 bool deleteGroup(const Group&);
22 const Group findGroup(const std::string& name);
24 bool addToGroup(const Group&, const User&);
25 bool removeFromGroup(const Group&, const User&);
28 UserService(const GDESession& session) : _session(session) {}
30 UserService(const UserService&); // non copyable
31 UserService& operator=(const UserService&); // non copyable
34 static std::string _servletName;
35 const GDESession& _session;