DefaultShareProvider¶
-
class
OC\Share20\
DefaultShareProvider
¶ - Class DefaultShareProvider
Source: lib/private/Share20/DefaultShareProvider.php#64 Implements: OCP\Share\IShareProvider
Constants¶
-
SHARE_TYPE_USERGROUP = 2
Source: lib/private/Share20/DefaultShareProvider.php#67
Properties¶
Methods¶
-
public
OC\Share20\DefaultShareProvider::
__construct
($connection, $userManager, $groupManager, $rootFolder, $mailer, $defaults, $l10nFactory, $urlGenerator, $config)¶ Source: lib/private/Share20/DefaultShareProvider.php#96
-
public
OC\Share20\DefaultShareProvider::
identifier
()¶ - Return the identifier of this provider.
Source: lib/private/Share20/DefaultShareProvider.php#122 Returns: string Containing only [a-zA-Z0-9]
-
public
OC\Share20\DefaultShareProvider::
create
($share)¶ - Share a path
Source: Parameters: - $share (
OCP\Share\IShare
)
Returns: \OCP\Share\IShare
The share objectThrows: Throws: \Exception
Throws: Throws: \Exception
- $share (
-
public
OC\Share20\DefaultShareProvider::
update
($share)¶ - Update a share
Source: Parameters: - $share (
OCP\Share\IShare
)
Returns: \OCP\Share\IShare
The share objectThrows: Throws: Throws: Throws: Throws: Throws: Throws: Throws: Throws: - $share (
-
public
OC\Share20\DefaultShareProvider::
acceptShare
($share, $recipient)¶ - Accept a share.
Source: Parameters: - $share (
OCP\Share\IShare
) - $recipient (string)
Returns: \OCP\Share\IShare
The share objectSince: 9.0.0
- $share (
-
public
OC\Share20\DefaultShareProvider::
getChildren
($parent)¶ - Get all children of this shareFIXME: remove once https://github.com/owncloud/core/pull/21660 is in
Source: Parameters: - $parent (
OCP\Share\IShare
)
Returns: - $parent (
-
public
OC\Share20\DefaultShareProvider::
delete
($share)¶ - Delete a share
Source: Parameters: - $share (
OCP\Share\IShare
)
- $share (
-
public
OC\Share20\DefaultShareProvider::
deleteFromSelf
($share, $recipient)¶ - Unshare a share from the recipient. If this is a group sharethis means we need a special entry in the share db.
Source: Parameters: - $share (
OCP\Share\IShare
) - $recipient (string) UserId of recipient
Throws: Throws: Throws: Throws: - $share (
-
protected
OC\Share20\DefaultShareProvider::
createUserSpecificGroupShare
($share, $recipient)¶ Source: lib/private/Share20/DefaultShareProvider.php#524
-
public
OC\Share20\DefaultShareProvider::
restore
($share, $recipient)¶ Source: lib/private/Share20/DefaultShareProvider.php#552
-
public
OC\Share20\DefaultShareProvider::
move
($share, $recipient)¶ Source: lib/private/Share20/DefaultShareProvider.php#584
-
public
OC\Share20\DefaultShareProvider::
getSharesInFolder
($userId, $node, $reshares)¶ Source: lib/private/Share20/DefaultShareProvider.php#641
-
public
OC\Share20\DefaultShareProvider::
getSharesBy
($userId, $shareType, $node, $reshares, $limit, $offset)¶ Source: lib/private/Share20/DefaultShareProvider.php#688
-
public
OC\Share20\DefaultShareProvider::
getShareById
($id, $recipientId=null)¶ Source: lib/private/Share20/DefaultShareProvider.php#739
-
public
OC\Share20\DefaultShareProvider::
getSharesByPath
($path)¶ - Get shares for a given path
Source: Parameters: - $path (
OCP\Files\Node
)
Returns: - $path (
-
public
OC\Share20\DefaultShareProvider::
getSharedWith
($userId, $shareType, $node, $limit, $offset)¶ Source: lib/private/Share20/DefaultShareProvider.php#838
-
public
OC\Share20\DefaultShareProvider::
getShareByToken
($token)¶ - Get a share by token
Source: Parameters: - $token (string)
Returns: Throws:
-
public
OC\Share20\DefaultShareProvider::
userDeleted
($uid, $shareType)¶ - A user is deleted from the systemSo clean up the relevant shares.
Source: Parameters: - $uid (string)
- $shareType (int)
-
public
OC\Share20\DefaultShareProvider::
groupDeleted
($gid)¶ - Delete all shares received by this group. As well as any custom groupshares for group members.
Source: Parameters: - $gid (string)
-
public
OC\Share20\DefaultShareProvider::
userDeletedFromGroup
($uid, $gid)¶ - Delete custom group shares to this group for this user
Source: Parameters: - $uid (string)
- $gid (string)
-
public
OC\Share20\DefaultShareProvider::
getAccessList
($nodes, $currentAccess)¶ Source: lib/private/Share20/DefaultShareProvider.php#1272
-
protected
OC\Share20\DefaultShareProvider::
filterSharesOfUser
($shares)¶ - For each user the path with the fewest slashes is returned
Source: Parameters: - $shares (array)
Returns: array
-
public
OC\Share20\DefaultShareProvider::
getAllShares
()¶ Source: lib/private/Share20/DefaultShareProvider.php#1479