summaryrefslogtreecommitdiffstats
path: root/lib/private/User/LazyUser.php
Commit message (Collapse)AuthorAgeFilesLines
* feat(users): Store and load a user's managerChristoph Wurst2023-05-121-0/+8
| | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Split new method in a new group backend interfaceCarl Schwan2023-04-271-1/+1
| | | | | | Better for backward compatibility, also move new interfaces to nc 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-271-3/+17
| | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Make DisplayNameCache return null if user doesn't existsCarl Schwan2022-08-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge branch 'master' into display-name-cache-publicCarl Schwan2022-08-151-1/+2
|\ | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Fix psalm issues related to the user backendCarl Schwan2022-05-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | - Reflect the actual return value returned by the implementation in the the interface. E.g. IUser|bool -> IUser|false - Remove $hasLoggedIn parameter from private countUser implementation. Replace the two call with the equivalent countSeenUser - getBackend is nuallable, add this to the interface - Use backend interface to make psalm happy about call to undefined methods. Also helps with getting rid at some point of the old implementActions Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | expose displayname cache trough a public interfaceRobin Appelman2022-05-181-4/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use a lazy user for the file owner when listing a directoryRobin Appelman2022-04-221-0/+149
Only getUID and getDisplayName are called on the file owner objects anyway and we can get this information often without DB request Signed-off-by: Robin Appelman <robin@icewind.nl>