Browse Source

[Share 2.0] Remove setId and setProviderId from the interface

Those should only ever be set by the providers
remotes/origin/comments-markallread-dav
Roeland Jago Douma 10 years ago
parent
commit
8d44e537ac
  1. 2
      lib/private/share20/manager.php
  2. 18
      lib/public/share/ishare.php

2
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;
}

18
lib/public/share/ishare.php

@ -43,15 +43,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.
@ -61,15 +52,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
*

Loading…
Cancel
Save