public function loadRoleAssignmentsForUser($userId)
    {
        $user = $this->userService->loadUser($userId);

        $roleAssignments = $this->roleService->getRoleAssignmentsForUser($user);

        return new Values\RoleAssignmentList($roleAssignments, $user->id);
    }
public function loadRoleAssignmentsForUser($userId)
    {
        $user = $this->userService->loadUser($userId);

        $roleAssignments = $this->roleService->getRoleAssignmentsForUser($user);

        return new Values\RoleAssignmentList($roleAssignments, $user->id);
    }
public function loadRoleAssignmentsForUser ( $ userId ) { $ user = $ this -> userService -> loadUser ( $ userId ) ; $ roleAssignments = $ this -> roleService -> getRoleAssignmentsForUser ( $ user ) ; return new Values \ RoleAssignmentList ( $ roleAssignments , $ user -> id ) ; }
Loads role assignments for user.

@param $userId

@return \eZ\Publish\Core\REST\Server\Values\RoleAssignmentList
Loads role assignments for user .