Interface RoleService
- All Known Implementing Classes:
RoleServiceImpl
public interface RoleService
Created in Intellij IDEA
User: Balaji Varadharajan
Date: 07, July 2022
Time: 12:27 PM
Project: Zeus
Package Name: com.brihaspathee.zeus.service.interfaces
To change this template use File | Settings | File and Code Template
-
Method Summary
Modifier and TypeMethodDescriptioncom.brihaspathee.zeus.security.model.RoleListGet all the roles in the systemcom.brihaspathee.zeus.security.model.RoleListgetRoleById(UUID roleId) Get role by role idcom.brihaspathee.zeus.security.model.RoleListgetRoleByRoleName(String roleName) Get role by role namecom.brihaspathee.zeus.security.model.RoleDtosaveRole(com.brihaspathee.zeus.security.model.RoleDto roleDto) Save the role Create the role if not present Update the role if present
-
Method Details
-
getAllRoles
com.brihaspathee.zeus.security.model.RoleList getAllRoles()Get all the roles in the system- Returns:
-
getRoleById
Get role by role id- Parameters:
roleId-- Returns:
-
getRoleByRoleName
Get role by role name- Parameters:
roleName-- Returns:
-
saveRole
com.brihaspathee.zeus.security.model.RoleDto saveRole(com.brihaspathee.zeus.security.model.RoleDto roleDto) Save the role Create the role if not present Update the role if present- Parameters:
roleDto-- Returns:
-