summaryrefslogtreecommitdiffstats
path: root/lib/public/iusersession.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-09 15:32:33 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-14 15:10:51 +0200
commit20c1ce7f470211e53461be7893cb7320f0a2b452 (patch)
treeaddcdb91aa332c751651837364c3066da07e064b /lib/public/iusersession.php
parent05ba9b3c64b5c4a109773fe776fd6a2ebd34502a (diff)
downloadnextcloud-server-20c1ce7f470211e53461be7893cb7320f0a2b452.tar.gz
nextcloud-server-20c1ce7f470211e53461be7893cb7320f0a2b452.zip
Add public interfaces for User, UserManager and UserSession
Diffstat (limited to 'lib/public/iusersession.php')
-rw-r--r--lib/public/iusersession.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/iusersession.php b/lib/public/iusersession.php
index adc706cc7c3..e9d417c1ace 100644
--- a/lib/public/iusersession.php
+++ b/lib/public/iusersession.php
@@ -49,4 +49,17 @@ interface IUserSession {
*/
public function logout();
+ /**
+ * set the currently active user
+ *
+ * @param \OCP\User|null $user
+ */
+ public function setUser($user);
+
+ /**
+ * get the current active user
+ *
+ * @return \OCP\User
+ */
+ public function getUser();
}