diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-07-10 01:37:53 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-07-10 01:37:53 +0200 |
commit | 5bf8b6ce656ffe0740ec116057577044e3925887 (patch) | |
tree | 90a7563d5a51b87a82c4fdb8f0a0c8b45ef6e8d0 /src/Common/UserCache.h | |
parent | 1afb432ee5c55181bd918c038d0372479355f04b (diff) | |
download | mad-5bf8b6ce656ffe0740ec116057577044e3925887.tar mad-5bf8b6ce656ffe0740ec116057577044e3925887.zip |
UserManager, UserBackend, UserCache: deleteUser und deleteGroup hinzugefügt
Diffstat (limited to 'src/Common/UserCache.h')
-rw-r--r-- | src/Common/UserCache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Common/UserCache.h b/src/Common/UserCache.h index 4c97352..e778e24 100644 --- a/src/Common/UserCache.h +++ b/src/Common/UserCache.h @@ -82,6 +82,10 @@ class UserCache : public UserBackend, private boost::noncopyable { backend->updateUser(uid, userInfo); } + virtual void deleteUser(unsigned long uid) throw(Core::Exception) { + backend->deleteUser(uid); + } + virtual void addGroup(const GroupInfo &groupInfo) throw(Core::Exception) { backend->addGroup(groupInfo); } @@ -90,6 +94,10 @@ class UserCache : public UserBackend, private boost::noncopyable { backend->updateGroup(gid, groupInfo); } + virtual void deleteGroup(unsigned long gid) throw(Core::Exception) { + backend->deleteGroup(gid); + } + UserCache(Application *application0, boost::shared_ptr<UserBackend> backend0) : application(application0), backend(backend0), userTime(boost::posix_time::not_a_date_time), groupTime(boost::posix_time::not_a_date_time), userGroupTime(boost::posix_time::not_a_date_time) {} |