\Pydio\Share\StoreShareRightsManager

Class ShareRightsManager

Summary

Methods
Properties
Constants
__construct()
prepareSharedUserEntry()
createHiddenUserEntry()
createUsersFromParameters()
remoteUsersFromParameters()
computeSharedRepositoryAccessRights()
assignSharedRepositoryPermissions()
unregisterRemovedUsers()
createNewUser()
forkMaskIfAny()
createRoleForMinisite()
$watcher
$store
$options
$context
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$options

$options : array

Type

array

Methods

prepareSharedUserEntry()

prepareSharedUserEntry(array  $httpVars, \Pydio\Share\Model\ShareLink  $shareObject, boolean  $update, null  $guestUserPass = null) : array

Parameters

array $httpVars
\Pydio\Share\Model\ShareLink $shareObject
boolean $update
null $guestUserPass

Throws

\Exception

Returns

array

createHiddenUserEntry()

createHiddenUserEntry(array  $httpVars, string  $userId, string|null  $userPass = null, boolean|false  $update = false) : array

Parameters

array $httpVars
string $userId
string|null $userPass
boolean|false $update

Returns

array

createUsersFromParameters()

createUsersFromParameters(  $httpVars, array  $users = array(), array  $groups = array()) 

Parameters

$httpVars
array $users
array $groups

Throws

\Exception

remoteUsersFromParameters()

remoteUsersFromParameters(array  $ocsData, array<mixed,\Pydio\OCS\Model\ShareInvitation>  $existingInvitations, array  $newOcsUsers, array  $unshareInvitations) : integer

Parameters

array $ocsData
array<mixed,\Pydio\OCS\Model\ShareInvitation> $existingInvitations
array $newOcsUsers
array $unshareInvitations

Returns

integer

computeSharedRepositoryAccessRights()

computeSharedRepositoryAccessRights(String  $repoId, boolean  $mixUsersAndGroups, \Pydio\Access\Core\Model\AJXP_Node|null  $watcherNode = null) : array

Parameters

String $repoId
boolean $mixUsersAndGroups
\Pydio\Access\Core\Model\AJXP_Node|null $watcherNode

Returns

array

assignSharedRepositoryPermissions()

assignSharedRepositoryPermissions(\Pydio\Core\Model\RepositoryInterface  $parentRepository, \Pydio\Access\Core\Model\Repository  $childRepository, boolean  $isUpdate, array  $users, array  $groups, \Pydio\Access\Core\Model\UserSelection  $selection, \Pydio\Access\Core\Model\AJXP_Node  $originalNode = null) 

Parameters

\Pydio\Core\Model\RepositoryInterface $parentRepository
\Pydio\Access\Core\Model\Repository $childRepository
boolean $isUpdate
array $users
array $groups
\Pydio\Access\Core\Model\UserSelection $selection
\Pydio\Access\Core\Model\AJXP_Node $originalNode

Throws

\Exception

unregisterRemovedUsers()

unregisterRemovedUsers(string  $repoId, array  $newUsers, array  $newGroups, \Pydio\Access\Core\Model\AJXP_Node|null  $watcherNode = null) 

Parameters

string $repoId
array $newUsers
array $newGroups
\Pydio\Access\Core\Model\AJXP_Node|null $watcherNode

createNewUser()

createNewUser(\Pydio\Core\Model\UserInterface  $parentUser, string  $userName, string  $password, boolean  $isHidden, string  $display) : \Pydio\Core\Model\UserInterface

Parameters

\Pydio\Core\Model\UserInterface $parentUser
string $userName
string $password
boolean $isHidden
string $display

Throws

\Exception

Returns

\Pydio\Core\Model\UserInterface

createRoleForMinisite()

createRoleForMinisite(string  $repositoryId, boolean  $disableDownload, boolean  $replace) : \Pydio\Conf\Core\AJXP_Role|null

Parameters

string $repositoryId
boolean $disableDownload
boolean $replace

Returns

\Pydio\Conf\Core\AJXP_Role|null