Class AdminAccessPermissionManager
category |
System |
---|---|
package |
AdminAccess |
subpackage |
Managers |
__construct(\AdminAccessGroupReaderInterface $groupReader, \AdminAccessRoleFactoryInterface $roleFactory, \AdminAccessUserReaderInterface $userReader, \AdminAccessRoleReaderInterface $roleReader)
_getGroupByAjaxHandler(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
_getGroupByController(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
_getGroupByPage(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
_getPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionPersistenceInterface|\AdminAccessPermissionPresentationInterface
If no permission could be found, a new permission will be returned.
Throws |
|
---|
\AdminAccessPermissionPersistenceInterface|\AdminAccessPermissionPresentationInterface
Permission object.
_getUser(\IdType $customerId) : \AdminAccessUserInterface
checkDeletingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a deleting permission for the ajax handler, false otherwise.
checkDeletingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a deleting permission for the controller, false otherwise.
checkDeletingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a deleting permission for the page, false otherwise.
checkReadingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a reading permission for the ajax handler, false otherwise.
checkReadingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a reading permission for the controller, false otherwise.
checkReadingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a reading permission for the page, false otherwise.
checkWritingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a writing permission for the ajax handler, false otherwise.
checkWritingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a writing permission for the controller, false otherwise.
checkWritingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
boolean
True if customer has a writing permission for the page, false otherwise.
getPermissionsByGroupCollection(\IdType $roleId, \AdminAccessGroupCollection $groupCollection) : \AdminAccessPermissionCollection
\AdminAccessPermissionCollection
Permission collection object with all role permissions.
getPermissionsByRoleId(\IdType $roleId) : \AdminAccessPermissionCollection
\AdminAccessPermissionCollection
Permission collection object with all role permissions.
grantDeletingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManager
Throws |
|
---|
\AdminAccessPermissionManager
Returns same instance for chained method calls.
grantReadingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManager
Throws |
|
---|
\AdminAccessPermissionManager
Returns same instance for chained method calls.
grantWritingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManager
Throws |
|
---|
\AdminAccessPermissionManager
Returns same instance for chained method calls.
removeDeletingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManagerInterface
Throws |
|
---|
\AdminAccessPermissionManagerInterface
Returns same instance for chained method calls.
removeReadingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManagerInterface
Throws |
|
---|
\AdminAccessPermissionManagerInterface
Returns same instance for chained method calls.
removeWritingPermission(\IdType $roleId, \IdType $groupId) : \AdminAccessPermissionManagerInterface
Throws |
|
---|
\AdminAccessPermissionManagerInterface
Returns same instance for chained method calls.
groupReader : \AdminAccessGroupReaderInterface
roleFactory : \AdminAccessRoleFactoryInterface