Class AdminAccessService
| category |
System |
|---|---|
| package |
AdminAccess |
__construct(\AdminAccessSettingsInterface $settings, \AdminAccessPermissionManagerInterface $permissionManager, \AdminAccessRoleManagerInterface $roleManager, \AdminAccessUserManagerInterface $userManager, \AdminAccessGroupManagerInterface $groupManager)
addItemToGroup(\IdType $groupId, \NonEmptyStringType $identifier, \NonEmptyStringType $type) : \AdminAccessGroupInterface
addRoleToUserByCustomerId(\IdType $roleId, \IdType $customerId) : \AdminAccessServiceInterface
checkDeletingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a deleting permission for the ajax handler, false otherwise.
checkDeletingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a deleting permission for the controller, false otherwise.
checkDeletingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a deleting permission for the page, false otherwise.
checkReadingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a reading permission for the ajax handler, false otherwise.
checkReadingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a reading permission for the controller, false otherwise.
checkReadingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a reading permission for the page, false otherwise.
checkWritingPermissionForAjaxHandler(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a writing permission for the ajax handler, false otherwise.
checkWritingPermissionForController(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a writing permission for the controller, false otherwise.
checkWritingPermissionForPage(\NonEmptyStringType $identifier, \IdType $customerId) : boolean
booleanTrue if customer has a writing permission for the page, false otherwise.
createNewGroup(\KeyValueCollection $name, \KeyValueCollection $description, \IdType $parentId, \IntType $sortOrder) : \AdminAccessGroupInterface
| Throws |
|
|---|
\KeyValueCollectionCollection with the group names. Index of a group name must be his language code.
\KeyValueCollectionCollection with the group descriptions. Index of a group name must be his language code.
\AdminAccessGroupInterfaceReturns the create role.
createNewRole(\KeyValueCollection $name, \KeyValueCollection $description, \IntType $sortOrder, \BoolType $unknownReadingGranted, \BoolType $unknownWritingGranted, \BoolType $unknownDeletingGranted) : \AdminAccessRoleInterface
\KeyValueCollectionCollection with the role names. Index of a role name must be his language code.
\KeyValueCollectionCollection with the role descriptions. Index of a role name must be his language code.
\AdminAccessRoleInterfaceReturns the create role.
deleteGroupById(\IdType $id) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
deleteRoleById(\IdType $roleId) : \AdminAccessServiceInterface
deleteUserByCustomerId(\IdType $customerId) : \AdminAccessServiceInterface
getAllGroups() : \AdminAccessGroupCollection
getAllRoles() : \AdminAccessRoleCollection
getGroupByAjaxHandler(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
getGroupByController(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
getGroupById(\IdType $id) : \AdminAccessGroupInterface
getGroupByPage(\NonEmptyStringType $identifier) : \AdminAccessGroupInterface
getPermissionsByGroupCollection(\IdType $roleId, \AdminAccessGroupCollection $groupCollection) : \AdminAccessPermissionCollection
\AdminAccessPermissionCollectionPermission collection object with all role permissions.
getPermissionsByRoleId(\IdType $roleId) : \AdminAccessPermissionCollection
\AdminAccessPermissionCollectionPermission collection object with all role permissions.
getRoleById(\IdType $roleId) : \AdminAccessRoleInterface
getRolesByCustomerId(\IdType $id) : \AdminAccessRoleCollection
grantDeletingPermissionToRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
grantReadingPermissionToRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
grantWritingPermissionToRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
removeDeletingPermissionFromRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
removeItemFromGroup(\IdType $groupId, \NonEmptyStringType $identifier, \NonEmptyStringType $type) : \AdminAccessGroupInterface
| Throws |
|
|---|
\AdminAccessGroupInterfaceGroup object.
removeReadingPermissionFromRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
removeRoleFromUserByCustomerId(\IdType $roleId, \IdType $customerId) : \AdminAccessServiceInterface
removeWritingPermissionFromRole(\IdType $groupId, \IdType $roleId) : \AdminAccessServiceInterface
| Throws |
|
|---|
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
updateGroup(\IdType $id, \KeyValueCollection $newName, \KeyValueCollection $newDescription, \IdType $newParentId, \IntType $newSortOrder) : \AdminAccessServiceInterface
| Throws |
|
|---|
\IdType
\KeyValueCollectionCollection with the group names. Index of a group name must be his language code.
\KeyValueCollectionCollection with the group descriptions. Index of a group name must be his language code.
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
updateRoleById(\IdType $roleId, \KeyValueCollection $newName, \KeyValueCollection $newDescription, \IntType $newSortOrder, \BoolType $unknownReadingGranted, \BoolType $unknownWritingGranted, \BoolType $unknownDeletingGranted) : \AdminAccessServiceInterface
\KeyValueCollectionCollection with the new role names. Index of a role name must be his language code.
\KeyValueCollectionCollection with the new role descriptions. Index of a role name must be his language code.
\AdminAccessServiceInterfaceReturns same instance for chained method calls.
roleManager : \AdminAccessRoleManagerInterface
userManager : \AdminAccessUserManagerInterface
groupManager : \AdminAccessGroupManagerInterface