diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Share.php | 40 | ||||
-rw-r--r-- | lib/public/Share/IShare.php | 34 |
2 files changed, 74 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 diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index c19364c86c8..870794d6536 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -170,6 +170,40 @@ interface IShare { public function getSharedWith(); /** + * Set the display name of the receiver of this share. + * + * @param string $displayName + * @return \OCP\Share\IShare The modified object + * @since 14.0.0 + */ + public function setSharedWithDisplayName($displayName); + + /** + * Get the display name of the receiver of this share. + * + * @return string + * @since 14.0.0 + */ + public function getSharedWithDisplayName(); + + /** + * Set the avatar of the receiver of this share. + * + * @param string $src + * @return \OCP\Share\IShare The modified object + * @since 14.0.0 + */ + public function setSharedWithAvatar($src); + + /** + * Get the avatar of the receiver of this share. + * + * @return string + * @since 14.0.0 + */ + public function getSharedWithAvatar(); + + /** * Set the permissions. * See \OCP\Constants::PERMISSION_* * |