summaryrefslogtreecommitdiffstats
path: root/src/Server/UserManager.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-26 16:13:27 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-26 16:13:27 +0200
commit033145b65c543d1d6c0c05ee84c1031fcd5ba3c7 (patch)
treee78c6c80ca7dfb0d07a588df2eff7ea14eff2d68 /src/Server/UserManager.h
parenta8ad2278025467f7cc9c9974d7e82be5752fb697 (diff)
downloadmad-033145b65c543d1d6c0c05ee84c1031fcd5ba3c7.tar
mad-033145b65c543d1d6c0c05ee84c1031fcd5ba3c7.zip
UserBackend-Interface erweitert und im Mysql-Backend implementiert
Diffstat (limited to 'src/Server/UserManager.h')
-rw-r--r--src/Server/UserManager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Server/UserManager.h b/src/Server/UserManager.h
index 3377727..fe0ef3f 100644
--- a/src/Server/UserManager.h
+++ b/src/Server/UserManager.h
@@ -59,8 +59,13 @@ class UserManager : boost::noncopyable {
boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() throw(Net::Exception);
boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid) throw(Net::Exception);
+ boost::shared_ptr<Common::UserInfo> getUserInfoByName(const std::string &name) throw(Net::Exception);
+ boost::shared_ptr<std::set<unsigned long> > getUserGroups(unsigned long uid) throw(Net::Exception);
boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() throw(Net::Exception);
+ std::string getGroupName(unsigned long gid) throw(Net::Exception);
+ unsigned long getGroupId(const std::string &name) throw(Net::Exception);
+ boost::shared_ptr<std::set<unsigned long> > getGroupUsers(unsigned long gid) throw(Net::Exception);
void setPassword(unsigned long uid, const std::string &password) throw(Net::Exception);