diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-06-30 22:57:29 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-06-30 22:57:29 +0200 |
commit | c9c2e1401bae1938fe392f6ee0903939b63b050c (patch) | |
tree | 84ed6f8fa3e46e8bd8cd45558adb5b539cd2a06c /src/Common/UserCache.h | |
parent | 68ec8067feec09a6fecf8bf2fbffb5d757db3d4a (diff) | |
download | mad-c9c2e1401bae1938fe392f6ee0903939b63b050c.tar mad-c9c2e1401bae1938fe392f6ee0903939b63b050c.zip |
UserManager erweitert
Ermögliche Caching der User-Group-Zuordnungen
Diffstat (limited to 'src/Common/UserCache.h')
-rw-r--r-- | src/Common/UserCache.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Common/UserCache.h b/src/Common/UserCache.h index 1e432fd..cec5ea5 100644 --- a/src/Common/UserCache.h +++ b/src/Common/UserCache.h @@ -47,9 +47,9 @@ class UserCache : public UserBackend, private boost::noncopyable { boost::shared_ptr<std::map<std::string, unsigned long> > groupNames; Core::Exception groupException; - /*boost::shared_ptr<const std::multimap<unsigned long, unsigned long> > userGroups; - boost::shared_ptr<const std::multimap<unsigned long, unsigned long> > groupUsers; - Core::Exception userGroupException;*/ + boost::shared_ptr<const std::multimap<unsigned long, unsigned long> > userGroups; + boost::shared_ptr<std::multimap<unsigned long, unsigned long> > groupUsers; + Core::Exception userGroupException; protected: virtual boost::shared_ptr<const std::map<unsigned long, UserInfo> > getUserList() throw(Core::Exception); @@ -62,6 +62,8 @@ class UserCache : public UserBackend, private boost::noncopyable { virtual boost::shared_ptr<const GroupInfo> getGroupInfoByName(const std::string &name) throw(Core::Exception); virtual boost::shared_ptr<const std::set<unsigned long> > getGroupUserList(unsigned long gid) throw(Core::Exception); + virtual boost::shared_ptr<const std::multimap<unsigned long, unsigned long> > getFullUserGroupList() throw(Core::Exception); + virtual void setPassword(unsigned long uid, const std::string &password) throw(Core::Exception) { backend->setPassword(uid, password); } |