summaryrefslogtreecommitdiffstats
path: root/lib/private/group/manager.php
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Updating license headers"Morris Jobke2015-02-261-25/+6
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Clear the local cache when we clear the backendsJoas Schilling2015-02-251-0/+1
|
* Merge pull request #13829 from owncloud/appmanager-listVincent Petry2015-02-231-10/+1
|\ | | | | Better caching for enabled apps
| * better user group cachingRobin Appelman2015-02-171-10/+1
| |
* | Updating license headersJenkins for ownCloud2015-02-231-6/+25
|/
* add isAdmin and isInGroup methods for the group managerBernhard Posselt2014-12-171-2/+28
|
* Move OC_GROUP_BACKEND_* constants to OC_Group_Backend classJoas Schilling2014-11-271-1/+1
|
* make performance less bad. Still far from good, but at least it worksArthur Schiwon2014-10-171-3/+2
|
* with several backends, more than limit can be returnedArthur Schiwon2014-10-171-1/+1
|
* Merge pull request #9104 from macjohnny/macjohnny-drastic-ldap-speedupblizzz2014-10-171-5/+12
|\ | | | | drastic ldap speedup (update)
| * modified caching mechanism in getUserGroupIdsmacjohnny2014-06-231-25/+6
| | | | | | removed cachedUserGroupIds, instead changed indexing in getUserGroups to groupId
| * clean up function getUserGroupIdsmacjohnny2014-06-231-7/+4
| | | | | | clean up of function getUserGroupIds and improved caching mechanism of cachedUserGroupIds
| * Update manager.phpmacjohnny2014-06-211-3/+11
| |
| * Update manager.phpmacjohnny2014-06-191-2/+2
| |
| * Update manager.phpmacjohnny2014-06-191-9/+25
| |
| * Update manager.phpmacjohnny2014-06-191-0/+1
| | | | | | defined $uid in getUserGroupIds
| * Update manager.phpmacjohnny2014-06-191-1/+2
| | | | | | added description and blank lines in getUserGroupIds
| * Update manager.phpmacjohnny2014-06-191-1/+4
| | | | | | add caching to getUserGroupIds
* | Merge pull request #9225 from voxsim/fix_displayNamesInGroupblizzz2014-09-221-11/+29
|\ \ | | | | | | fix in displayNamesInGroup
| * | 1. remove sizeof($filteredUsers) > 0 as conditionvoxsim2014-09-181-2/+2
| | | | | | | | | | | | | | | 2. use count instead of sizeof. Latter is an alias to first one, practically we stick to count everywhere. Having it consistent helps with readability. 3. move whitespace so we have $groupUsers[] = $filteredUser; instead of $groupUsers []= $filteredUser;
| * | add more logic in displayNamesInGroup for big user basesvoxsim2014-09-151-5/+16
| | |
| * | change logic in displayNamesInGroup and add some unit testsvoxsim2014-08-281-10/+17
| | |
| * | fix in displayNamesInGroup: when specified limit N, we did complex search ↵voxsim2014-06-261-1/+1
| |/ | | | | | | only in the first N users
* | Merge pull request #10144 from owncloud/issue/9972Thomas Müller2014-08-061-1/+1
|\ \ | | | | | | Issue/9972 Fix issues with group and username `0`
| * | Fix getting group '0' from database backendJoas Schilling2014-08-041-1/+1
| | | | | | | | | | | | Fix #9972
* | | Add group management to the public apiRobin Appelman2014-07-161-1/+2
| |/ |/|
* | drastic speedup for nested ldap groupsmacjohnny2014-06-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | add a function getUserGroupIds for retrieving group ids instead of group objects. this significantly improves performance when using many (nested) groups. Changes a function call in getUserGroups to only retrieve group ids instead of objects. this change significantly improves performance when using owncloud with many groups, e.g. nested ldap hierarchy (1.2.840.113556.1.4.1941), since getUserGroups gets called in oc_share::getItems, which is needed for every page request. in my particular case, it took more than 10s to load the calendar page and more than 6s to load the file page. this was in an environment with 100 user groups (nested) per user. The performance was bad due to the following call stack: self::getManager()->getUserGroups($user) - getGroupObject() (executed for every group!) - groupExists() (resulting in many ldap-requests) since the groups are loaded from ldap, it is unnecessary to check whether the group exists or not.
* | Revert "Merge pull request #8998 from macjohnny/master"Morris Jobke2014-06-121-12/+0
| | | | | | | | | | This reverts commit 482eded8b31b257dfed7761c7cb43f35ddcd3408, reversing changes made to 354cace14ae01e7ff34af3c8a4a3335b89596da3.
* | Update manager.phpmacjohnny2014-06-121-1/+1
| |
* | Update manager.phpmacjohnny2014-06-121-0/+12
|/ | | add a function getUserGroupIds for retrieving group ids instead of group objects. this significantly improves performance when using many (nested) groups.
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-1/+1
| | | | * test case added to avoid adding them later
* Merge pull request #7363 from owncloud/optimize-startup-queriesMorris Jobke2014-05-191-8/+32
|\ | | | | Optimize some queries that are always executed when loading base.php
| * Merge branch 'master' into optimize-startup-queriesBart Visscher2014-05-071-6/+34
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files_sharing/lib/sharedstorage.php tests/lib/group/manager.php removed hasFilesSharedWith from lib/public/share.php and sharedstorage.php to fix merge
| * | Also clear cached UserGroup when a user is added/removedBart Visscher2014-02-271-0/+12
| | |
| * | Clear the cached user groups when a group is deletedBart Visscher2014-02-271-3/+5
| | |
| * | Add more caching in the group managerBart Visscher2014-02-211-5/+15
| | |
* | | Squash 'a | b' into 'a|b', in /libRobin McCorkell2014-05-131-1/+1
| | |
* | | Fix @return array PHPDocs, in /libRobin McCorkell2014-05-131-1/+1
| |/ |/|
* | Group Database backend must not gather user details itself but ask userArthur Schiwon2014-04-281-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | backends. This is a port to master from PR #7745 remove OC_GROUP_BACKEND_GET_DISPLAYNAME option for group backends Conflicts: lib/private/group/backend.php LDAP: getDisplayNamesInGroup is not an option for group backends anymore Conflicts: apps/user_ldap/group_ldap.php apps/user_ldap/group_proxy.php clean up group backends Conflicts: lib/private/group/database.php remove now unnecessary test implement getDisplayNames in group manager adjust user manager tests test for group manager's displayNamesInGroup trim must not be used in empty in PHP < 5.5 keep the constant to not provoke PHP warnings Conflicts: lib/private/group/backend.php
* | Remove limit and offset manipulation when getting users or groups, because ↵Arthur Schiwon2014-04-151-6/+0
|/ | | | it does not work when more than one user or group backend. Fixing it would be too costly performancewise, so we switch back to the model used in OC 5: limit and offset are effective per backend, and not a general constraint
* Fix test cases for group managerRobin Appelman2014-02-141-2/+2
|
* remove duplicate call to groupExistsRobin Appelman2014-02-141-6/+4
|
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-301-0/+169
Conflicts: lib/private/vcategories.php