summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-27 22:34:27 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-28 07:54:16 +0100
commit8d44e537ac1ee41662743db5525e910a58c08d70 (patch)
treee0a3e31b3ca59bbfb6752bed9c3b83c31daf339f /lib
parent34e912ab6b7b95660bbbdf7cec4074b272ce5d1a (diff)
downloadnextcloud-server-8d44e537ac1ee41662743db5525e910a58c08d70.tar.gz
nextcloud-server-8d44e537ac1ee41662743db5525e910a58c08d70.zip
[Share 2.0] Remove setId and setProviderId from the interface
Those should only ever be set by the providers
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/manager.php2
-rw-r--r--lib/public/share/ishare.php18
2 files changed, 0 insertions, 20 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 52580e27818..d6245f4beac 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -497,7 +497,6 @@ class Manager implements IManager {
$provider = $this->factory->getProviderForType($share->getShareType());
$share = $provider->create($share);
- $share->setProviderId($provider->identifier());
// Post share hook
$postHookData = [
@@ -754,7 +753,6 @@ class Manager implements IManager {
$provider = $this->factory->getProvider($providerId);
$share = $provider->getShareById($id);
- $share->setProviderId($provider->identifier());
return $share;
}
diff --git a/lib/public/share/ishare.php b/lib/public/share/ishare.php
index 2fb41a17add..80e7f7f56ef 100644
--- a/lib/public/share/ishare.php
+++ b/lib/public/share/ishare.php
@@ -44,15 +44,6 @@ interface IShare {
public function getId();
/**
- * Set the internal id of the share.
- *
- * @param string $id
- * @return \OCP\Share\IShare The modified share object
- * @since 9.0.0
- */
- public function setId($id);
-
- /**
* Get the full share id. This is the <providerid>:<internalid>.
* The full id is unique in the system.
*
@@ -62,15 +53,6 @@ interface IShare {
public function getFullId();
/**
- * Set the provider id
- *
- * @param string $id
- * @return \OCP\Share\IShare The modified share object\
- * @since 9.0.0
- */
- public function setProviderId($id);
-
- /**
* Set the node of the file/folder that is shared
*
* @param File|Folder $path