summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-14 15:28:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-14 15:28:01 +0100
commit1f0af76eb2078a423ba3613416061c9f1f336548 (patch)
tree936f9995d0dcd07e03f1e9e95c6b813e7f5c77da /lib/private/group
parent8f89e3520d74e1805dc46947742a17683ece6ca7 (diff)
parent2ebb5726d758f87743efab9f419ea783c64f9773 (diff)
downloadnextcloud-server-1f0af76eb2078a423ba3613416061c9f1f336548.tar.gz
nextcloud-server-1f0af76eb2078a423ba3613416061c9f1f336548.zip
Merge pull request #21718 from owncloud/groupanduserinterface
Groupanduserinterface
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/backend.php2
-rw-r--r--lib/private/group/interface.php65
2 files changed, 6 insertions, 61 deletions
diff --git a/lib/private/group/backend.php b/lib/private/group/backend.php
index 29f24fb3070..ed059f63aaf 100644
--- a/lib/private/group/backend.php
+++ b/lib/private/group/backend.php
@@ -53,7 +53,7 @@ define('OC_GROUP_BACKEND_COUNT_USERS', 0x00100000);
/**
* Abstract base class for user management
*/
-abstract class OC_Group_Backend implements OC_Group_Interface {
+abstract class OC_Group_Backend implements \OCP\GroupInterface {
/**
* error code for functions not provided by the group backend
*/
diff --git a/lib/private/group/interface.php b/lib/private/group/interface.php
index 5c7d4cf0b39..240a50fe961 100644
--- a/lib/private/group/interface.php
+++ b/lib/private/group/interface.php
@@ -24,63 +24,8 @@
*
*/
-interface OC_Group_Interface {
- /**
- * Check if backend implements actions
- * @param int $actions bitwise-or'ed actions
- * @return boolean
- *
- * Returns the supported actions as int to be
- * compared with \OC_Group_Backend::CREATE_GROUP etc.
- */
- public function implementsActions($actions);
-
- /**
- * is user in group?
- * @param string $uid uid of the user
- * @param string $gid gid of the group
- * @return bool
- *
- * Checks whether the user is member of a group or not.
- */
- public function inGroup($uid, $gid);
-
- /**
- * Get all groups a user belongs to
- * @param string $uid Name of the user
- * @return array an array of group names
- *
- * This function fetches all groups a user belongs to. It does not check
- * if the user exists at all.
- */
- public function getUserGroups($uid);
-
- /**
- * get a list of all groups
- * @param string $search
- * @param int $limit
- * @param int $offset
- * @return array an array of group names
- *
- * Returns a list with all groups
- */
- public function getGroups($search = '', $limit = -1, $offset = 0);
-
- /**
- * check if a group exists
- * @param string $gid
- * @return bool
- */
- public function groupExists($gid);
-
- /**
- * get a list of all users in a group
- * @param string $gid
- * @param string $search
- * @param int $limit
- * @param int $offset
- * @return array an array of user ids
- */
- public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0);
-
-}
+/**
+ * Interface OC_Group_Interface
+ * @deprecated use the public \OCP\GroupInterface instead
+ */
+interface OC_Group_Interface extends \OCP\GroupInterface {}