summaryrefslogtreecommitdiffstats
path: root/lib/public/Share.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-04-18 17:44:14 +0200
committerMorris Jobke <hey@morrisjobke.de>2019-04-18 17:44:14 +0200
commit582b679ca93d3a9801bec98494203fa257cbca90 (patch)
tree831c3bb9452f83358343881ce8deaacff640d8f8 /lib/public/Share.php
parent9f9b89fcc7f90b6c36075316b70e2f7fa26cb2c3 (diff)
downloadnextcloud-server-582b679ca93d3a9801bec98494203fa257cbca90.tar.gz
nextcloud-server-582b679ca93d3a9801bec98494203fa257cbca90.zip
Deprecate legacy share code and cleanup some unused methods
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/Share.php')
-rw-r--r--lib/public/Share.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/public/Share.php b/lib/public/Share.php
index 011d56ab5af..f433a35f17a 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -43,6 +43,7 @@ namespace OCP;
* It provides the following hooks:
* - post_shared
* @since 5.0.0
+ * @deprecated 17.0.0
*/
class Share extends \OC\Share\Constants {
@@ -54,6 +55,7 @@ class Share extends \OC\Share\Constants {
* @param string $owner Owner of the share
* @return array Return list of items with file_target, permissions and expiration
* @since 6.0.0 - parameter $owner was added in 8.0.0
+ * @deprecated 17.0.0
*/
public static function getItemSharedWithUser($itemType, $itemSource, $user, $owner = null) {
return \OC\Share\Share::getItemSharedWithUser($itemType, $itemSource, $user, $owner);
@@ -68,10 +70,11 @@ class Share extends \OC\Share\Constants {
* @param bool $includeCollections
* @return array
* @since 5.0.0
+ * @deprecated 17.0.0
*/
public static function getItemSharedWithBySource($itemType, $itemSource, $format = self::FORMAT_NONE,
$parameters = null, $includeCollections = false) {
- return \OC\Share\Share::getItemSharedWithBySource($itemType, $itemSource, $format, $parameters, $includeCollections);
+ // not used by any app - only here to not break apps syntax
}
/**
@@ -80,9 +83,10 @@ class Share extends \OC\Share\Constants {
* @param bool $checkPasswordProtection
* @return array|bool false will be returned in case the token is unknown or unauthorized
* @since 5.0.0 - parameter $checkPasswordProtection was added in 7.0.0
+ * @deprecated 17.0.0
*/
public static function getShareByToken($token, $checkPasswordProtection = true) {
- return \OC\Share\Share::getShareByToken($token, $checkPasswordProtection);
+ // not used by any app - only here to not break apps syntax
}
@@ -95,11 +99,12 @@ class Share extends \OC\Share\Constants {
* @param bool $includeCollections
* @return mixed Return depends on format
* @since 5.0.0
+ * @deprecated 17.0.0
*/
public static function getItemsShared($itemType, $format = self::FORMAT_NONE, $parameters = null,
$limit = -1, $includeCollections = false) {
- return \OC\Share\Share::getItemsShared($itemType, $format, $parameters, $limit, $includeCollections);
+ // only used by AppVNCSafe app (https://github.com/vnc-biz/nextcloud-appvncsafe/issues/2) - only here to not break apps syntax
}
/**
@@ -111,6 +116,7 @@ class Share extends \OC\Share\Constants {
* @param bool $includeCollections
* @return mixed Return depends on format
* @since 5.0.0
+ * @deprecated 17.0.0
*/
public static function getItemShared($itemType, $itemSource, $format = self::FORMAT_NONE,
$parameters = null, $includeCollections = false) {
@@ -126,8 +132,9 @@ class Share extends \OC\Share\Constants {
* @param string $recipient with whom was the item shared
* @param bool $status
* @since 6.0.0 - parameter $originIsSource was added in 8.0.0
+ * @deprecated 17.0.0
*/
public static function setSendMailStatus($itemType, $itemSource, $shareType, $recipient, $status) {
- return \OC\Share\Share::setSendMailStatus($itemType, $itemSource, $shareType, $recipient, $status);
+ // not used by any app - only here to not break apps syntax
}
}