summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-15 10:03:21 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-15 10:09:47 +0200
commitf640b56bfac72d2c3fd394fe6564e93020243b7f (patch)
tree7649aea33898034cd1784d2250380e175c525591 /lib/public
parente0f479a4eb7f297dbe5156b16f42b896c4ceadd4 (diff)
downloadnextcloud-server-f640b56bfac72d2c3fd394fe6564e93020243b7f.tar.gz
nextcloud-server-f640b56bfac72d2c3fd394fe6564e93020243b7f.zip
Cleanup unused methods
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Share.php162
1 files changed, 0 insertions, 162 deletions
diff --git a/lib/public/Share.php b/lib/public/Share.php
index f3a0b53efec..bc07ce4b78c 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -66,41 +66,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Check if the Share API is enabled
- * @return boolean true if enabled or false
- *
- * The Share API is enabled by default if not configured
- * @since 5.0.0
- */
- public static function isEnabled() {
- return \OC\Share\Share::isEnabled();
- }
-
- /**
- * Find which users can access a shared item
- * @param string $path to the file
- * @param string $ownerUser owner of the file
- * @param bool $includeOwner include owner to the list of users with access to the file
- * @param bool $returnUserPaths Return an array with the user => path map
- * @param bool $recursive take parent folders into account
- * @return array
- * @note $path needs to be relative to user data dir, e.g. 'file.txt'
- * not '/admin/files/file.txt'
- * @since 5.0.0 - $recursive was added in 9.0.0
- */
- public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false, $recursive = true) {
- return \OC\Share\Share::getUsersSharingFile(
- $path,
- $ownerUser,
- \OC::$server->getUserManager(),
- \OC::$server->getLogger(),
- $includeOwner,
- $returnUserPaths,
- $recursive
- );
- }
-
- /**
* Get the items of item type shared with the current user
* @param string $itemType
* @param int $format (optional) Format type must be defined by the backend
@@ -134,22 +99,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Get the item of item type shared with the current user
- * @param string $itemType
- * @param string $itemTarget
- * @param int $format (optional) Format type must be defined by the backend
- * @param mixed $parameters (optional)
- * @param bool $includeCollections (optional)
- * @return mixed Return depends on format
- * @since 5.0.0
- */
- public static function getItemSharedWith($itemType, $itemTarget, $format = self::FORMAT_NONE,
- $parameters = null, $includeCollections = false) {
-
- return \OC\Share\Share::getItemSharedWith($itemType, $itemTarget, $format, $parameters, $includeCollections);
- }
-
- /**
* Get the item of item type shared with a given user by source
* @param string $itemType
* @param string $itemSource
@@ -178,18 +127,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Get the item of item type shared by a link
- * @param string $itemType
- * @param string $itemSource
- * @param string $uidOwner Owner of link
- * @return array
- * @since 5.0.0
- */
- public static function getItemSharedWithByLink($itemType, $itemSource, $uidOwner) {
- return \OC\Share\Share::getItemSharedWithByLink($itemType, $itemSource, $uidOwner);
- }
-
- /**
* Based on the given token the share information will be returned - password protected shares will be verified
* @param string $token
* @param bool $checkPasswordProtection
@@ -244,20 +181,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Get all users an item is shared with
- * @param string $itemType
- * @param string $itemSource
- * @param string $uidOwner
- * @param bool $includeCollections
- * @param bool $checkExpireDate
- * @return array Return array of users
- * @since 5.0.0 - parameter $checkExpireDate was added in 7.0.0
- */
- public static function getUsersItemShared($itemType, $itemSource, $uidOwner, $includeCollections = false, $checkExpireDate = true) {
- return \OC\Share\Share::getUsersItemShared($itemType, $itemSource, $uidOwner, $includeCollections, $checkExpireDate);
- }
-
- /**
* Share an item with a user, group, or via private link
* @param string $itemType
* @param string $itemSource
@@ -291,31 +214,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Unshare an item from all users, groups, and remove all links
- * @param string $itemType
- * @param string $itemSource
- * @return boolean true on success or false on failure
- * @since 5.0.0
- */
- public static function unshareAll($itemType, $itemSource) {
- return \OC\Share\Share::unshareAll($itemType, $itemSource);
- }
-
- /**
- * Unshare an item shared with the current user
- * @param string $itemType
- * @param string $itemOrigin Item target or source
- * @param boolean $originIsSource true if $itemOrigin is the source, false if $itemOrigin is the target (optional)
- * @return boolean true on success or false on failure
- *
- * Unsharing from self is not allowed for items inside collections
- * @since 5.0.0 - parameter $originIsSource was added in 8.0.0
- */
- public static function unshareFromSelf($itemType, $itemOrigin, $originIsSource = false) {
- return \OC\Share\Share::unshareFromSelf($itemType, $itemOrigin, $originIsSource);
- }
-
- /**
* sent status if users got informed by mail about share
* @param string $itemType
* @param string $itemSource
@@ -329,48 +227,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Set the permissions of an item for a specific user or group
- * @param string $itemType
- * @param string $itemSource
- * @param int $shareType SHARE_TYPE_USER, SHARE_TYPE_GROUP, or SHARE_TYPE_LINK
- * @param string $shareWith User or group the item is being shared with
- * @param int $permissions CRUDS permissions
- * @return boolean true on success or false on failure
- * @since 5.0.0
- */
- public static function setPermissions($itemType, $itemSource, $shareType, $shareWith, $permissions) {
- return \OC\Share\Share::setPermissions($itemType, $itemSource, $shareType, $shareWith, $permissions);
- }
-
- /**
- * Set expiration date for a share
- * @param string $itemType
- * @param string $itemSource
- * @param string $date expiration date
- * @param int $shareTime timestamp from when the file was shared
- * @return boolean
- * @since 5.0.0 - parameter $shareTime was added in 8.0.0
- */
- public static function setExpirationDate($itemType, $itemSource, $date, $shareTime = null) {
- return \OC\Share\Share::setExpirationDate($itemType, $itemSource, $date, $shareTime);
- }
-
- /**
- * Set password for a public link share
- * @param int $shareId
- * @param string $password
- * @return boolean
- * @since 8.1.0
- */
- public static function setPassword($shareId, $password) {
- $userSession = \OC::$server->getUserSession();
- $connection = \OC::$server->getDatabaseConnection();
- $config = \OC::$server->getConfig();
- return \OC\Share\Share::setPassword($userSession, $connection, $config, $shareId, $password);
- }
-
-
- /**
* Get the backend class for the specified item type
* @param string $itemType
* @return Share_Backend
@@ -381,14 +237,6 @@ class Share extends \OC\Share\Constants {
}
/**
- * Delete all shares with type SHARE_TYPE_LINK
- * @since 6.0.0
- */
- public static function removeAllLinkShares() {
- return \OC\Share\Share::removeAllLinkShares();
- }
-
- /**
* In case a password protected link is not yet authenticated this function will return false
*
* @param array $linkItem
@@ -398,14 +246,4 @@ class Share extends \OC\Share\Constants {
public static function checkPasswordProtectedShare(array $linkItem) {
return \OC\Share\Share::checkPasswordProtectedShare($linkItem);
}
-
- /**
- * Check if resharing is allowed
- *
- * @return boolean true if allowed or false
- * @since 5.0.0
- */
- public static function isResharingAllowed() {
- return \OC\Share\Share::isResharingAllowed();
- }
}