\Pydio\Auth\Driver\LDAPUpdateUserObject

Class UpdateUserObject

Summary

Methods
Properties
Constants
__construct()
update()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
mappingGroupPath()
mappingRoleId()
createNewRole()
isMatchCriteria()
getOldRoleWithCriteria()
getNewRolesWithCriteria()
deleteAndUpdateRoles()
mappingToPluginsParams()
mappingToProfile()
$rules
$groupPrefix
N/A

Properties

$rules

$rules : 

Type

$groupPrefix

$groupPrefix : 

Type

Methods

update()

update(  $user,   $ldapUser) : \Pydio\Auth\Driver\LDAP\updated

Parameters

$user

an user object in Pydio

$ldapUser

Returns

\Pydio\Auth\Driver\LDAP\updated —

Pydio User.

mappingGroupPath()

mappingGroupPath(  $user,   $rawUser,   $rule,   $isChange) 

Parameters

$user
$rawUser
$rule
$isChange

mappingRoleId()

mappingRoleId(  $user,   $rawUser,   $rule,   $isChange) 

Parameters

$user
$rawUser
$rule
$isChange

createNewRole()

createNewRole(  $roleId,   $roleLabel) : \Pydio\Conf\Core\AJXP_Role

Parameters

$roleId
$roleLabel

Returns

\Pydio\Conf\Core\AJXP_Role

isMatchCriteria()

isMatchCriteria(  $params,   $value) : boolean

Parameters

$params
$value

Returns

boolean

getOldRoleWithCriteria()

getOldRoleWithCriteria(  $user,   $param) : \Pydio\Auth\Driver\LDAP\an

Parameters

$user

Pydio User Object

$param

param value in mapping rule.

Returns

\Pydio\Auth\Driver\LDAP\an —

array of role id.

getNewRolesWithCriteria()

getNewRolesWithCriteria(  $attrValues,   $param,   $isChange) : array

Parameters

$attrValues
$param
$isChange

Returns

array —

Get all possible new roles from LDAP

deleteAndUpdateRoles()

deleteAndUpdateRoles(  $userObject,   $oldRoles,   $newRoles,   $isChange) 

Parameters

$userObject
$oldRoles
$newRoles
$isChange

Delete attached role of userObject and add to him updated list of role.

mappingToPluginsParams()

mappingToPluginsParams(  $userObject,   $paramInput,   $attrValue) 

Parameters

$userObject
$paramInput
$attrValue

Mapping ldap attributes to params of Pydio's plugins.

mappingToProfile()

mappingToProfile(  $userObject,   $paramInput,   $attrValue) 

Parameters

$userObject

Pydio User Object

$paramInput

string

$attrValue

string

By default, mapping to admin profile of it matches criteria