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
boolean
True if role has deleting permission, false otherwise.
checkDeletingPermissionForUnknownGroup() : boolean
boolean
True if deleting permission for an unknown group is granted, false otherwise.
checkReadingPermission(\AdminAccessGroupInterface $group) : boolean
boolean
True if role has reading permission, false otherwise.
checkReadingPermissionForUnknownGroup() : boolean
boolean
True if reading permission for an unknown group is granted, false otherwise.
checkWritingPermission(\AdminAccessGroupInterface $group) : boolean
boolean
True if role has writing permission, false otherwise.
checkWritingPermissionForUnknownGroup() : boolean
boolean
True if writing permission for an unknown group is granted, false otherwise.
delete() : \AdminAccessRoleInterface
Throws |
|
---|
\AdminAccessRoleInterface
Returns same instance for chained method calls.
getDescription() : \KeyValueCollection
getId() : integer
integer
Role ID.
getName() : \KeyValueCollection
getPermissionByGroup( $group) : \AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface|null
AdminAccessGroupInterface Admin access group.
\AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface|null
Returns permission found or null if permission not found.
getPermissionsByGroupCollection( $groupCollection) : \AdminAccessPermissionCollection
AdminAccessGroupCollection Collections of groups to find.
\AdminAccessPermissionCollection
Returns permissions collection.
getProtected() : boolean
boolean
getSortOrder() : integer
integer
Sort order.
setDeletingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
setDescription(\KeyValueCollection $description) : \AdminAccessRoleInterface
setId(\IdType $id) : \AdminAccessRoleInterface
setName(\KeyValueCollection $name) : \AdminAccessRoleInterface
setProtected(\BoolType $value) : \AdminAccessRoleInterface
\BoolType
\AdminAccessRoleInterface
Returns same instance for chained method calls.
setReadingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
setSortOrder(\IntType $sortOrder) : \AdminAccessRoleInterface
setWritingUnknownGroupGranted(\BoolType $permissionGranted) : \AdminAccessRoleInterface
store() : \AdminAccessRoleInterface
Throws |
|
---|
\AdminAccessRoleInterface
Returns same instance for chained method calls.
update() : \AdminAccessRoleInterface
Throws |
|
---|
\AdminAccessRoleInterface
Returns 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