aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/group
Commit message (Collapse)AuthorAgeFilesLines
...
| * cleanup group admin(s) on deleteGroupmichag862014-10-081-0/+4
| |
* | 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
* | | fix for issue #10880michag862014-10-071-1/+1
| |/ |/|
* | Revert "fix for issue #10880"Vincent Petry2014-10-071-1/+1
| | | | | | | | This reverts commit 0df070a8e4f6718e3cd86aa4d5a5fc62c53f6eee.
* | fix for issue #10880michag862014-10-071-1/+1
| |
* | 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
* | retrieve local users, groups and group members in a sorted wayArthur Schiwon2014-08-291-2/+2
| |
* | Merge pull request #10144 from owncloud/issue/9972Thomas Müller2014-08-062-2/+2
|\ \ | | | | | | Issue/9972 Fix issues with group and username `0`
| * | Fix getting group '0' from database backendJoas Schilling2014-08-042-2/+2
| | | | | | | | | | | | Fix #9972
* | | Add group management to the public apiRobin Appelman2014-07-162-2/+5
| | |
* | | Port of #9584Stephan Peijnik2014-07-161-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #9583 lib/private/group/metadata.php: For subadmins also return an array of groups, indexed by their GIDs. settings/users.php: Convert array of arrays to array of GIDs before calling into OC_Group::displayNamesInGroups. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com> Fix indentation. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com> Renamed $grp to $group in foreach loop. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com> Use is_null() instead of empty() when checking the return value of GroupManager::get(). Additionally, $grp was renamed to $group inside \OC\Group\MetaData::fetchGroups(). Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com> Updated code to reflect changes introduced to \OC\Group\MetaData. Now that fetchGroups() does not exist anymore and getGroups() is called directory, the 'groups' property does not exist anymore. Instead, we now generate that array on the fly and return it from getGroups. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
* | | fixing PHPDocThomas Müller2014-07-141-16/+16
| | |
* | | remove dead codeArthur Schiwon2014-07-141-34/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do not filter groups. but update the user count according to the filter improve phpdoc improve metadata runtime cache add metadata tests
* | | extend Dummy user and group implementation to pass testsArthur Schiwon2014-06-251-3/+30
| | |
* | | return int, not stringArthur Schiwon2014-06-241-1/+5
| | |
* | | search term for users and groups may occur anywhere in the name or ↵Arthur Schiwon2014-06-231-3/+3
| |/ |/| | | | | displayname, not just in the beginning
* | 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.
* | make search parameter optional, which is already the case in the medthod it ↵Arthur Schiwon2014-06-021-1/+1
| | | | | | | | is passed to
* | fix PHPDocArthur Schiwon2014-06-021-1/+1
| |
* | typoArthur Schiwon2014-06-021-2/+2
| |
* | small fixes / cleanupArthur Schiwon2014-06-021-2/+1
| |
* | add MetaData class for groupsArthur Schiwon2014-06-021-0/+189
|/
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-197-40/+40
| | | | * 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-075-61/+75
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| | |
* | | Fix PHPDoc and typosLukas Reschke2014-05-134-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some things my IDE complained about while creating a custom backend. Fix PHPDoc and typos Some things my IDE complained about while creating a custom backend. Conflicts: lib/private/group/database.php lib/private/group/dummy.php lib/private/group/example.php
* | | Fix all PHPDoc types and variable names, in /libRobin McCorkell2014-05-132-27/+27
| | |
* | | Squash 'a | b' into 'a|b', in /libRobin McCorkell2014-05-134-5/+5
| | |
* | | Fix @return array PHPDocs, in /libRobin McCorkell2014-05-136-16/+16
| | |
* | | Replace @returns with @return, in /libRobin McCorkell2014-05-132-17/+17
| |/ |/|