From f2f1d5b1da4f985bcbb0c075cf42efcacecae2a6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 3 Jul 2009 17:23:37 +0200 Subject: =?UTF-8?q?Timestamps=20f=C3=BCr=20Benutzercache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/UserManager.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/Common/UserManager.cpp') diff --git a/src/Common/UserManager.cpp b/src/Common/UserManager.cpp index 1b20395..4031140 100644 --- a/src/Common/UserManager.cpp +++ b/src/Common/UserManager.cpp @@ -41,14 +41,14 @@ void UserManager::registerBackendCached(boost::shared_ptr backend) } -boost::shared_ptr > UserManager::getUserList() throw(Core::Exception) { +boost::shared_ptr > UserManager::getUserList(boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getUserList(); + return backend->second->getUserList(timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -59,14 +59,14 @@ boost::shared_ptr > UserManager::getUser throw e; } -boost::shared_ptr UserManager::getUserInfo(unsigned long uid) throw(Core::Exception) { +boost::shared_ptr UserManager::getUserInfo(unsigned long uid, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getUserInfo(uid); + return backend->second->getUserInfo(uid, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -77,14 +77,14 @@ boost::shared_ptr UserManager::getUserInfo(unsigned long uid) th throw e; } -boost::shared_ptr UserManager::getUserInfoByName(const std::string &name) throw(Core::Exception) { +boost::shared_ptr UserManager::getUserInfoByName(const std::string &name, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getUserInfoByName(name); + return backend->second->getUserInfoByName(name, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -95,14 +95,14 @@ boost::shared_ptr UserManager::getUserInfoByName(const std::stri throw e; } -boost::shared_ptr > UserManager::getUserGroupList(unsigned long uid) throw(Core::Exception) { +boost::shared_ptr > UserManager::getUserGroupList(unsigned long uid, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getUserGroupList(uid); + return backend->second->getUserGroupList(uid, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -113,7 +113,7 @@ boost::shared_ptr > UserManager::getUserGroupList( throw e; } -boost::shared_ptr > UserManager::getGroupList() throw(Core::Exception) { +boost::shared_ptr > UserManager::getGroupList(boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::shared_ptr > ret; @@ -123,7 +123,7 @@ boost::shared_ptr > UserManager::getGro for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getGroupList(); + return backend->second->getGroupList(timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -135,14 +135,14 @@ boost::shared_ptr > UserManager::getGro throw e; } -boost::shared_ptr UserManager::getGroupInfo(unsigned long gid) throw(Core::Exception) { +boost::shared_ptr UserManager::getGroupInfo(unsigned long gid, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getGroupInfo(gid); + return backend->second->getGroupInfo(gid, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -153,14 +153,14 @@ boost::shared_ptr UserManager::getGroupInfo(unsigned long gid) throw e; } -boost::shared_ptr UserManager::getGroupInfoByName(const std::string &name) throw(Core::Exception) { +boost::shared_ptr UserManager::getGroupInfoByName(const std::string &name, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getGroupInfoByName(name); + return backend->second->getGroupInfoByName(name, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -171,14 +171,14 @@ boost::shared_ptr UserManager::getGroupInfoByName(const std::st throw e; } -boost::shared_ptr > UserManager::getGroupUserList(unsigned long gid) throw(Core::Exception) { +boost::shared_ptr > UserManager::getGroupUserList(unsigned long gid, boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getGroupUserList(gid); + return backend->second->getGroupUserList(gid, timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) @@ -189,14 +189,14 @@ boost::shared_ptr > UserManager::getGroupUserList( throw e; } -boost::shared_ptr > UserManager::getFullUserGroupList() throw(Core::Exception) { +boost::shared_ptr > UserManager::getFullUserGroupList(boost::posix_time::ptime *timestamp) throw(Core::Exception) { Core::Exception e(Core::Exception::NOT_IMPLEMENTED); boost::lock_guard lock(mutex); for(BackendMap::iterator backend = backends.begin(); backend != backends.end(); ++backend) { try { - return backend->second->getFullUserGroupList(); + return backend->second->getFullUserGroupList(timestamp); } catch(Core::Exception e2) { if(e.getErrorCode() == Core::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Core::Exception::NOT_IMPLEMENTED) -- cgit v1.2.3