aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Group/Backend
Commit message (Collapse)AuthorAgeFilesLines
* fix(groups): allows to save group names with more than 64 charactersBenjamin Gaussorgues2024-05-163-1/+45
| | | | | | Mimic behaviour from LDAP users and add a hard limit to 255 characters Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix psalm spotted type errorsCôme Chilliet2023-09-051-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move new methods to a new interface in OCPCôme Chilliet2023-09-053-18/+64
| | | | | | | This avoids breaking compatibility for group backends not based on ABackend abstract class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors about groupExists return typeCôme Chilliet2023-09-051-8/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add batch methods in user backendsCarl Schwan2023-09-052-0/+53
| | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update version number in since and deprecated annotationsCôme Chilliet2023-04-271-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Clear up return typesCôme Chilliet2023-04-271-2/+1
| | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Let OC\Group\Group handle the fallback and remove default implementation ↵Côme Chilliet2023-04-271-14/+1
| | | | | | from ABackend Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Split new method in a new group backend interfaceCarl Schwan2023-04-272-4/+54
| | | | | | 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-0/+15
| | | | | | | | | 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>
* ci: migrate ocp since checker to psalmDaniel Kesselberg2023-01-241-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* composer run cs:fixCôme Chilliet2023-01-2012-12/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0413-33/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Change my email addressJohannes Leuker2021-03-241-2/+2
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-011-0/+36
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0512-14/+44
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to set the group display name in the database backendJoas Schilling2019-09-271-0/+38
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a displayname to the database group backendJoas Schilling2019-09-271-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-0/+36
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow group backends to mark that a group should now be shown in search dialogsRobin Appelman2019-02-251-0/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Added disabled count per groupsJohn Molakvoæ (skjnldsv)2018-05-241-0/+36
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make the group backends also possible using interfacesRoeland Jago Douma2018-04-238-0/+319
Just like for the user backends the group backends should also be properly done using interfaces. This adds the interfaces and abstract class to get started Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>