summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 15:44:38 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:15 +0200
commitb4d4db0e39d3e09fe0cf53241c72d5d6fc180101 (patch)
tree06af623e4b56b524fedea3723d89caece9dfa4ad /lib/public
parent084bac353023e1c450f91f71ff1e4ac389e2497e (diff)
downloadnextcloud-server-b4d4db0e39d3e09fe0cf53241c72d5d6fc180101.tar.gz
nextcloud-server-b4d4db0e39d3e09fe0cf53241c72d5d6fc180101.zip
Take IUser instead of User
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/IGroup.php4
-rw-r--r--lib/public/IGroupManager.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/IGroup.php b/lib/public/IGroup.php
index aa51e51046c..788287b4f86 100644
--- a/lib/public/IGroup.php
+++ b/lib/public/IGroup.php
@@ -60,7 +60,7 @@ interface IGroup {
* @return bool
* @since 8.0.0
*/
- public function inGroup($user);
+ public function inGroup(IUser $user);
/**
* add a user to the group
@@ -68,7 +68,7 @@ interface IGroup {
* @param \OCP\IUser $user
* @since 8.0.0
*/
- public function addUser($user);
+ public function addUser(IUser $user);
/**
* remove a user from the group
diff --git a/lib/public/IGroupManager.php b/lib/public/IGroupManager.php
index 4d76fa76fb3..be322b64325 100644
--- a/lib/public/IGroupManager.php
+++ b/lib/public/IGroupManager.php
@@ -100,14 +100,14 @@ interface IGroupManager {
* @return \OCP\IGroup[]
* @since 8.0.0
*/
- public function getUserGroups($user);
+ public function getUserGroups(IUser $user = null);
/**
* @param \OCP\IUser $user
* @return array with group names
* @since 8.0.0
*/
- public function getUserGroupIds($user);
+ public function getUserGroupIds(IUser $user);
/**
* get a list of all display names in a group