summaryrefslogtreecommitdiffstats
path: root/lib/private/group
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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
| |/ |/|
* | Group Database backend must not gather user details itself but ask userArthur Schiwon2014-04-284-51/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-152-18/+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
* | ask implementsAction instead of checking method_exists for easier testingArthur Schiwon2014-04-081-1/+1
| |
* | add optional countUsersInGroup method to group backendsArthur Schiwon2014-04-084-0/+47
|/
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-1/+1
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* Fix test cases for group managerRobin Appelman2014-02-141-2/+2
|
* remove duplicate call to groupExistsRobin Appelman2014-02-141-6/+4
|
* remove unneeded ; in commentRobin Appelman2013-12-121-1/+1
|
* user Group->users as assosiative arrayRobin Appelman2013-12-111-5/+3
|
* cache the result from inGroupRobin Appelman2013-12-111-7/+20
|
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-307-0/+1165
Conflicts: lib/private/vcategories.php