Package com.priint.pubserverapi.role
Interface RoleServiceLocal
public interface RoleServiceLocal
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCreates a new roleCreates a newRoleQueryfor querying role information.getRoleByName(String roleName) Retrieves aRoleby their name.
-
Method Details
-
getRoleByName
Retrieves aRoleby their name.- Parameters:
roleName- the name of the role- Returns:
- an
Optionalcontaining theRoleif found, or an emptyOptionalif not - Throws:
UserServiceException- if an error occurs during retrievalRoleServiceException
-
createRoleQuery
RoleQuery createRoleQuery()Creates a newRoleQueryfor querying role information.- Returns:
- a new
RoleQueryinstance
-
create
Creates a new role- Parameters:
role- a role objectRole- Throws:
RoleServiceException- an exception if thrown
-