Class RoleAPIImpl
java.lang.Object
com.brihaspathee.zeus.web.resource.impl.RoleAPIImpl
- All Implemented Interfaces:
RoleAPI
Created in Intellij IDEA
User: Balaji Varadharajan
Date: 07, July 2022
Time: 12:37 PM
Project: Zeus
Package Name: com.brihaspathee.zeus.web.resource.impl
To change this template use File | Settings | File and Code Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleDto>>createRole(com.brihaspathee.zeus.security.model.RoleDto roleDto) Create a new roleorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>Get all the roles in the systemorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>getRoleById(UUID roleId) Get role by role idorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>getRoleByRoleName(String roleName) Get role by role nameorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleDto>>updateRole(UUID roleId, com.brihaspathee.zeus.security.model.RoleDto roleDto) Update an existing role
-
Constructor Details
-
RoleAPIImpl
public RoleAPIImpl()
-
-
Method Details
-
getAllRoles
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>> getAllRoles()Get all the roles in the system- Specified by:
getAllRolesin interfaceRoleAPI- Returns:
-
getRoleById
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>> getRoleById(UUID roleId) Get role by role id- Specified by:
getRoleByIdin interfaceRoleAPI- Parameters:
roleId-- Returns:
-
getRoleByRoleName
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>> getRoleByRoleName(String roleName) Get role by role name- Specified by:
getRoleByRoleNamein interfaceRoleAPI- Parameters:
roleName-- Returns:
-
createRole
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleDto>> createRole(com.brihaspathee.zeus.security.model.RoleDto roleDto) Create a new role- Specified by:
createRolein interfaceRoleAPI- Parameters:
roleDto-- Returns:
-
updateRole
public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleDto>> updateRole(UUID roleId, com.brihaspathee.zeus.security.model.RoleDto roleDto) Update an existing role- Specified by:
updateRolein interfaceRoleAPI- Parameters:
roleId-roleDto-- Returns:
-