Interface IRoleService

All Superinterfaces:
IGenericService<Role,UUID>
All Known Implementing Classes:
RoleServiceImpl

public interface IRoleService extends IGenericService<Role,UUID>
Service interface for managing Role entities. Extends IGenericService to inherit common CRUD operations.
See Also:
  • Method Details

    • findByRoleName

      Role findByRoleName(String roleName)
      Finds a role by its name.
      Parameters:
      roleName - The name of the role - must not be null.
      Returns:
      The Role entity if found.
      Throws:
      BadRequestException - if the roleName is null.
      NotFoundException - if the entity is not found.
    • getUserRoles

      Set<Role> getUserRoles()
      Retrieves the set of roles assigned to the current user.
      Returns:
      A Set containing the user's roles.
      Throws:
      NotFoundException - if the entity is not found.