Class AuthorityAPIImpl

java.lang.Object
com.brihaspathee.zeus.web.resource.impl.AuthorityAPIImpl
All Implemented Interfaces:
AuthorityAPI

@RestController public class AuthorityAPIImpl extends Object implements AuthorityAPI
Created in Intellij IDEA User: Balaji Varadharajan Date: 05, July 2022 Time: 4:28 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.AuthorityDto>>
    createAuthority(com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
    Create a new authority
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>
    Get all the permissions that are present in the system
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>
    getAuthorityById(UUID authorityId)
    Get the permission by authority id
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>
    Get the permission by authority name
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityDto>>
    updateAuthority(UUID authorityId, com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
    Update an existing authority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthorityAPIImpl

      public AuthorityAPIImpl()
  • Method Details

    • getAllAuthorities

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>> getAllAuthorities()
      Get all the permissions that are present in the system
      Specified by:
      getAllAuthorities in interface AuthorityAPI
      Returns:
    • getAuthorityById

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>> getAuthorityById(UUID authorityId)
      Get the permission by authority id
      Specified by:
      getAuthorityById in interface AuthorityAPI
      Parameters:
      authorityId -
      Returns:
    • getAuthorityByName

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>> getAuthorityByName(String permission)
      Get the permission by authority name
      Specified by:
      getAuthorityByName in interface AuthorityAPI
      Parameters:
      permission -
      Returns:
    • createAuthority

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityDto>> createAuthority(com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
      Create a new authority
      Specified by:
      createAuthority in interface AuthorityAPI
      Parameters:
      authorityDto -
      Returns:
    • updateAuthority

      public org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityDto>> updateAuthority(UUID authorityId, com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
      Update an existing authority
      Specified by:
      updateAuthority in interface AuthorityAPI
      Parameters:
      authorityId -
      authorityDto -
      Returns: