Class AdminAccessUser
A User is a representation of an user with administration rights. Since all users are stored in the customers table of the shop system, the term "customerId" is used to identify such an user. Apart from the ID the user has a collection of roles.
category |
System |
---|---|
package |
AdminAccess |
subpackage |
Entities |
__construct(\AdminAccessUserWriterInterface $writer, \AdminAccessUserDeleterInterface $userDeleter, \IdType $customerId, \AdminAccessRoleCollection $roles)
addNewRole(\AdminAccessRoleInterface $role) : \AdminAccessUserInterface
checkDeletingPermission(\AdminAccessGroupInterface $group) : boolean
boolean
True if deleting permission is granted, false otherwise.
checkDeletingPermissionForUnknownGroup() : boolean
boolean
True if deleting permission for an unknown group is granted, false otherwise.
checkReadingPermission(\AdminAccessGroupInterface $group) : boolean
boolean
True if reading permission is granted, false otherwise.
checkReadingPermissionForUnknownGroup() : boolean
boolean
True if reading permission for an unknown group is granted, false otherwise.
checkWritingPermission(\AdminAccessGroupInterface $group) : boolean
boolean
True if writing permission is granted, false otherwise.
checkWritingPermissionForUnknownGroup() : boolean
boolean
True if writing permission for an unknown group is granted, false otherwise.
delete() : \AdminAccessUserInterface
getId() : integer
integer
User ID.
getRoles() : \AbstractCollection|\AdminAccessRoleCollection
removeRole(\AdminAccessRoleInterface $role) : \AdminAccessUserInterface
Throws |
|
---|
\AdminAccessUserInterface
Returns same instance for chained method calls.
setCustomerId(\IdType $id) : \AdminAccessUserInterface
setRoles(\AdminAccessRoleCollection $roles) : \AdminAccessUserInterface
update() : \AdminAccessUserInterface
customerId : integer
var |
---|
integer
roles : \AdminAccessRoleCollection|\AbstractCollection
userDeleter : \AdminAccessUserDeleterInterface
readingUnknownGroupGranted : boolean
var |
---|
boolean
writingUnknownGroupGranted : boolean
var |
---|
boolean
deletingUnknownGroupGranted : boolean
var |
---|
boolean