AdminAccessRoleReaderInterface

Extends

Interface AdminAccessRoleReaderInterface

category

System

package

AdminAccess

subpackage

Readers

Methods

Returns all available roles as a role collection.

getAll() : \AdminAccessRoleCollection

Response

\AdminAccessRoleCollection

Role collection with all available roles.

Returns all roles of a certain user by a given customer ID.

getByCustomerId(\IdType $customerId) : \AdminAccessRoleCollection
Throws
\RoleNotFoundException

Arguments

$customerId

\IdType

Customer ID.

Response

\AdminAccessRoleCollection

Role collection with all roles of a certain user.

Returns a role object by a given role ID.

getById(\IdType $roleId) : \AdminAccessRoleInterface

Arguments

$roleId

\IdType

Role ID.

Response

\AdminAccessRoleInterface

Role object.