NullPermissionManager Class Reference

Detailed Description

NullPermissionManager acts like an absent PermissionManager.

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

Definition at line 20 of file NullPermissionManager.php.

+ Inheritance diagram for NullPermissionManager:

Public Member Functions

static authorize ($resource, $context, $action, $login=null)
 
 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)
 
 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

static authorize (   $resource,
  $context,
  $action,
  $login = null 
)
See also
PermissionManager::authorize()

Implements PermissionManager.

Definition at line 31 of file NullPermissionManager.php.

getPermissions (   $resource,
  $context,
  $action 
)
See also
PermissionManager::getPermissions()

Implements PermissionManager.

Definition at line 38 of file NullPermissionManager.php.

setPermissions (   $resource,
  $context,
  $action,
  $permissions 
)
See also
PermissionManager::setPermissions()

Implements PermissionManager.

Definition at line 45 of file NullPermissionManager.php.

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