Class RoleServiceImpl
java.lang.Object
com.brihaspathee.zeus.service.impl.RoleServiceImpl
- All Implemented Interfaces:
RoleService
Created in Intellij IDEA
User: Balaji Varadharajan
Date: 07, July 2022
Time: 12:33 PM
Project: Zeus
Package Name: com.brihaspathee.zeus.service.impl
To change this template use File | Settings | File and Code Template
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
RoleServiceImpl
public RoleServiceImpl()
-
-
Method Details
-
getAllRoles
public com.brihaspathee.zeus.security.model.RoleList getAllRoles()Get all the roles in the system- Specified by:
getAllRolesin interfaceRoleService- Returns:
-
getRoleById
Get role by role id- Specified by:
getRoleByIdin interfaceRoleService- Parameters:
roleId-- Returns:
-
getRoleByRoleName
Get role by role name- Specified by:
getRoleByRoleNamein interfaceRoleService- Parameters:
roleName-- Returns:
-
saveRole
public 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- Specified by:
saveRolein interfaceRoleService- Parameters:
roleDto-- Returns:
-