Those should only ever be set by the providers
$provider = $this->factory->getProviderForType($share->getShareType());
$share = $provider->create($share);
- $share->setProviderId($provider->identifier());
// Post share hook
$postHookData = [
$provider = $this->factory->getProvider($providerId);
$share = $provider->getShareById($id);
- $share->setProviderId($provider->identifier());
return $share;
}
*/
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.
*/
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
*