/**
* Loads role assignment for specified assignment ID.
*
* @param mixed $roleAssignmentId
*
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If role assignment is not found
*
* @return \eZ\Publish\SPI\Persistence\User\RoleAssignment
*/
public function loadRoleAssignment($roleAssignmentId)
{
$data = $this->roleGateway->loadRoleAssignment($roleAssignmentId);
if (empty($data)) {
throw new NotFound('roleAssignment', $roleAssignmentId);
}
return $this->mapper->mapRoleAssignments($data)[0];
}