Class RoleAPIImpl

java.lang.Object
com.brihaspathee.zeus.web.resource.impl.RoleAPIImpl
All Implemented Interfaces:
RoleAPI

@RestController public class RoleAPIImpl extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>
    Get all the roles in the system
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>
    getRoleById(UUID roleId)
    Get role by role id
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.RoleList>>
    Get role by role name
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getAllRoles in interface RoleAPI
      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:
      getRoleById in interface RoleAPI
      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:
      getRoleByRoleName in interface RoleAPI
      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:
      createRole in interface RoleAPI
      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:
      updateRole in interface RoleAPI
      Parameters:
      roleId -
      roleDto -
      Returns: