summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-13 17:29:57 +0200
committerGitHub <noreply@github.com>2018-07-13 17:29:57 +0200
commit82021b2b1bd6e6ae9c85564ba614797a1110e29c (patch)
treedcae47bf607411ae0e2e4e54ed5715aa98354c35 /lib/private/Share20
parent14314584ba88ed8d8a7c8486b61c6677a14271f2 (diff)
parent4f5814c27bc43a8f10bd35f60bc3254697c50659 (diff)
downloadnextcloud-server-82021b2b1bd6e6ae9c85564ba614797a1110e29c.tar.gz
nextcloud-server-82021b2b1bd6e6ae9c85564ba614797a1110e29c.zip
Merge pull request #5280 from nextcloud/shared-with-display-name
sharedWithDisplayName & sharedWithAvatar
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Share.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index 1836d6708c5..d7810165dac 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -48,6 +48,10 @@ class Share implements \OCP\Share\IShare {
/** @var string */
private $sharedWith;
/** @var string */
+ private $sharedWithDisplayName;
+ /** @var string */
+ private $sharedWithAvatar;
+ /** @var string */
private $sharedBy;
/** @var string */
private $shareOwner;
@@ -254,6 +258,42 @@ class Share implements \OCP\Share\IShare {
/**
* @inheritdoc
*/
+ public function setSharedWithDisplayName($displayName) {
+ if (!is_string($displayName)) {
+ throw new \InvalidArgumentException();
+ }
+ $this->sharedWithDisplayName = $displayName;
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getSharedWithDisplayName() {
+ return $this->sharedWithDisplayName;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function setSharedWithAvatar($src) {
+ if (!is_string($src)) {
+ throw new \InvalidArgumentException();
+ }
+ $this->sharedWithAvatar = $src;
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getSharedWithAvatar() {
+ return $this->sharedWithAvatar;
+ }
+
+ /**
+ * @inheritdoc
+ */
public function setPermissions($permissions) {
//TODO checkes