ChainedPermissionManager Class Reference

Detailed Description

ChainedPermissionManager retrieves authorization rules included managers.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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
$managersArray of PermissionManager instances

Definition at line 28 of file ChainedPermissionManager.php.

◆ getPermissions()

getPermissions (   $resource,
  $context,
  $action 
)

◆ setPermissions()

setPermissions (   $resource,
  $context,
  $action,
  $permissions 
)

◆ createPermission()

createPermission (   $resource,
  $context,
  $action,
  $role,
  $modifier 
)

◆ removePermission()

removePermission (   $resource,
  $context,
  $action,
  $role 
)