Class AdminAccessRole
A role represents a collection of administration permissions that can be assigned to an user. The role has also a set of descriptive attributes like a name and a description so the user can understand, what the roles purpose is.
| category |
System |
|---|---|
| package |
AdminAccess |
| subpackage |
Entities |
__construct(\AdminAccessRoleDeleterInterface $deleter, \AdminAccessRoleWriterInterface $writer, \AdminAccessPermissionReaderInterface $permissionReader)
checkDeletingPermission(\AdminAccessGroupInterface $group) : boolean
booleanTrue if role has deleting permission, false otherwise.
checkDeletingPermissionForUnknownGroup() : boolean
booleanTrue if deleting permission for an unknown group is granted, false otherwise.
checkReadingPermission(\AdminAccessGroupInterface $group) : boolean
booleanTrue if role has reading permission, false otherwise.
checkReadingPermissionForUnknownGroup() : boolean
booleanTrue if reading permission for an unknown group is granted, false otherwise.
checkWritingPermission(\AdminAccessGroupInterface $group) : boolean
booleanTrue if role has writing permission, false otherwise.
checkWritingPermissionForUnknownGroup() : boolean
booleanTrue if writing permission for an unknown group is granted, false otherwise.
delete() : \AdminAccessRoleInterface
| Throws |
|
|---|
\AdminAccessRoleInterfaceReturns same instance for chained method calls.
getDescription() : \KeyValueCollection
getId() : integer
integerRole ID.
getName() : \KeyValueCollection
getPermissionByGroup( $group) : \AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface|null
AdminAccessGroupInterface Admin access group.
\AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface|nullReturns permission found or null if permission not found.
getPermissionsByGroupCollection( $groupCollection) : \AdminAccessPermissionCollection
AdminAccessGroupCollection Collections of groups to find.
\AdminAccessPermissionCollectionReturns permissions collection.
getProtected() : boolean
boolean
getSortOrder() : integer
integerSort order.
setDeletingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
setDescription(\KeyValueCollection $description) : \AdminAccessRoleInterface
setId(\IdType $id) : \AdminAccessRoleInterface
setName(\KeyValueCollection $name) : \AdminAccessRoleInterface
setProtected(\BoolType $value) : \AdminAccessRoleInterface
\BoolType
\AdminAccessRoleInterfaceReturns same instance for chained method calls.
setReadingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
setSortOrder(\IntType $sortOrder) : \AdminAccessRoleInterface
setWritingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
store() : \AdminAccessRoleInterface
| Throws |
|
|---|
\AdminAccessRoleInterfaceReturns same instance for chained method calls.
update() : \AdminAccessRoleInterface
| Throws |
|
|---|
\AdminAccessRoleInterfaceReturns same instance for chained method calls.
id : integer
| var |
|---|
integer
sortOrder : integer
| var |
|---|
integer
deletingUnknownGroupGranted : boolean
| var |
|---|
boolean
readingUnknownGroupGranted : boolean
| var |
|---|
boolean
writingUnknownGroupGranted : boolean
| var |
|---|
boolean
protected : boolean
| var |
|---|
boolean