ChainedPermissionManager Class Reference
Detailed Description
ChainedPermissionManager retrieves authorization rules included managers.
Definition at line 20 of file ChainedPermissionManager.php.
Inheritance diagram for ChainedPermissionManager:
Public Member Functions | |
setManagers ($managers) | |
getPermissions ($resource, $context, $action) | |
setPermissions ($resource, $context, $action, $permissions) | |
createPermission ($resource, $context, $action, $role, $modifier) | |
removePermission ($resource, $context, $action, $role) | |
Public Member Functions inherited from AbstractPermissionManager | |
__construct (PersistenceFacade $persistenceFacade, Session $session, array $dynamicRoles=[]) | |
setPrincipalFactory (PrincipalFactory $principalFactory) | |
authorize ($resource, $context, $action, $login=null, $applyDefaultPolicy=true) | |
addTempPermission ($resource, $context, $action) | |
removeTempPermission ($handle) | |
hasTempPermission ($resource, $context, $action) | |
clearTempPermissions () | |
Additional Inherited Members | |
Public Attributes inherited from AbstractPermissionManager | |
const | RESOURCE_TYPE_ENTITY_TYPE = 'entity.type' |
const | RESOURCE_TYPE_ENTITY_TYPE_PROPERTY = 'entity.type.property' |
const | RESOURCE_TYPE_ENTITY_INSTANCE = 'entity.instance' |
const | RESOURCE_TYPE_ENTITY_INSTANCE_PROPERTY = 'entity.instance.property' |
const | RESOURCE_TYPE_OTHER = 'other' |
Public Attributes inherited from PermissionManager | |
const | PERMISSION_MODIFIER_ALLOW = '+' |
const | PERMISSION_MODIFIER_DENY = '-' |
Protected Member Functions inherited from AbstractPermissionManager | |
authorizeAction ($requestedResource, $permissionResource, $context, $action, $login) | |
getDefaultPolicy ($login) | |
parseResource ($resource) | |
deserializePermissions ($value) | |
serializePermissions ($permissions) | |
matchRoles ($resource, $permissions, $login) | |
matchRole (User $user, $role, $resource) | |
Protected Attributes inherited from AbstractPermissionManager | |
$persistenceFacade = null | |
$session = null | |
$dynamicRoles = [] | |
$principalFactory = null | |
Member Function Documentation
◆ setManagers()
setManagers | ( | $managers | ) |
Set the PermissionManager instances to delegate to.
- Parameters
-
$managers Array of PermissionManager instances
Definition at line 28 of file ChainedPermissionManager.php.
◆ getPermissions()
getPermissions | ( | $resource, | |
$context, | |||
$action | |||
) |
Implements PermissionManager.
Definition at line 35 of file ChainedPermissionManager.php.
◆ setPermissions()
setPermissions | ( | $resource, | |
$context, | |||
$action, | |||
$permissions | |||
) |
Implements PermissionManager.
Definition at line 48 of file ChainedPermissionManager.php.
◆ createPermission()
createPermission | ( | $resource, | |
$context, | |||
$action, | |||
$role, | |||
$modifier | |||
) |
Implements PermissionManager.
Definition at line 57 of file ChainedPermissionManager.php.
◆ removePermission()
removePermission | ( | $resource, | |
$context, | |||
$action, | |||
$role | |||
) |
Implements PermissionManager.
Definition at line 66 of file ChainedPermissionManager.php.