public function loadRoleAssignmentsByRoleId($roleId)
    {
        $data = $this->roleGateway->loadRoleAssignmentsByRoleId($roleId);

        if (empty($data)) {
            return array();
        }

        return $this->mapper->mapRoleAssignments($data);
    }
public function loadRoleAssignmentsByRoleId($roleId)
    {
        $data = $this->roleGateway->loadRoleAssignmentsByRoleId($roleId);

        if (empty($data)) {
            return array();
        }

        return $this->mapper->mapRoleAssignments($data);
    }
public function loadRoleAssignmentsByRoleId ( $ roleId ) { $ data = $ this -> roleGateway -> loadRoleAssignmentsByRoleId ( $ roleId ) ; if ( empty ( $ data ) ) { return array ( ) ; } return $ this -> mapper -> mapRoleAssignments ( $ data ) ; }
Loads roles assignments Role.

Role Assignments with same roleId and limitationIdentifier will be merged together into one.

@param mixed $roleId

@return \eZ\Publish\SPI\Persistence\User\RoleAssignment[]
Loads roles assignments Role .