AdminAccessUserManager

Implements \AdminAccessUserManagerInterface

Class AdminAccessUserManager

category

System

package

AdminAccess

subpackage

Managers

Methods

AdminAccessUserManager constructor.

__construct(\AdminAccessUserReaderInterface $userReader, \AdminAccessRoleReaderInterface $roleReader) 

Arguments

$userReader

\AdminAccessUserReaderInterface

User reader.

$roleReader

\AdminAccessRoleReaderInterface

Role reader.

Adds a role to a user by a given role and customer ID.

addRoleToUserByCustomerId(\IdType $roleId, \IdType $customerId) : \AdminAccessUserManager

Arguments

$roleId

\IdType

Role ID.

$customerId

\IdType

Customer ID.

Response

\AdminAccessUserManager

Returns same instance for chained method calls.

Deletes an admin access user by a given customer ID.

deleteUserByCustomerId(\IdType $customerId) : \AdminAccessUserManager

Arguments

$customerId

\IdType

ID of the user that should be deleted.

Response

\AdminAccessUserManager

Returns same instance for chained method calls.

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

getRolesByCustomerId(\idType $id) : \AdminAccessRoleCollection

Arguments

$id

\idType

User ID.

Response

\AdminAccessRoleCollection

Collection of all roles that certain user has.

Removes a role from a user by given role and customer ID.

removeRoleFromUserByCustomerId(\IdType $roleId, \IdType $customerId) : \AdminAccessUserManager

Arguments

$roleId

\IdType

Role ID.

$customerId

\IdType

Customer ID.

Response

\AdminAccessUserManager

Returns same instance for chained method calls.

Properties

userReader

userReader : \AdminAccessUserReaderInterface

roleReader

roleReader : \AdminAccessRoleReaderInterface