aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-11-30 20:21:44 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-22 18:34:45 +0100
commit453f3beffaf629efa5c715f7ca88b5c0a1034af8 (patch)
tree68dce83e8613a7dd8321d53567a8f745c46d8266 /lib/public
parent7130fa7b4cddd35e9275f7453593049c1e989562 (diff)
downloadnextcloud-server-453f3beffaf629efa5c715f7ca88b5c0a1034af8.tar.gz
nextcloud-server-453f3beffaf629efa5c715f7ca88b5c0a1034af8.zip
Adding group display name support
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/GroupInterface.php12
-rw-r--r--lib/public/IGroup.php9
2 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/GroupInterface.php b/lib/public/GroupInterface.php
index 6f456f51fd7..97837e50b16 100644
--- a/lib/public/GroupInterface.php
+++ b/lib/public/GroupInterface.php
@@ -41,6 +41,18 @@ namespace OCP;
interface GroupInterface {
/**
+ * actions that user backends can define
+ */
+ const CREATE_GROUP = 0x00000001;
+ const DELETE_GROUP = 0x00000010;
+ const ADD_TO_GROUP = 0x00000100;
+ const REMOVE_FROM_GOUP = 0x00001000; // oops
+ const REMOVE_FROM_GROUP = 0x00001000;
+ //OBSOLETE const GET_DISPLAYNAME = 0x00010000;
+ const COUNT_USERS = 0x00100000;
+ const GROUP_DETAILS = 0x01000000;
+
+ /**
* Check if backend implements actions
* @param int $actions bitwise-or'ed actions
* @return boolean
diff --git a/lib/public/IGroup.php b/lib/public/IGroup.php
index d5fcbcc5cd9..0cc62e9a8ed 100644
--- a/lib/public/IGroup.php
+++ b/lib/public/IGroup.php
@@ -4,6 +4,7 @@
*
* @author Morris Jobke <hey@morrisjobke.de>
* @author Robin Appelman <robin@icewind.nl>
+ * @author Vincent Petry <PVince81@owncloud.com>
*
* @license AGPL-3.0
*
@@ -37,6 +38,14 @@ interface IGroup {
public function getGID();
/**
+ * Returns the group display name
+ *
+ * @return string
+ * @since 9.2
+ */
+ public function getDisplayName();
+
+ /**
* get all users in the group
*
* @return \OCP\IUser[]