Interface AuthorityAPI

All Known Implementing Classes:
AuthorityAPIImpl

@RequestMapping("/api/v1/zeus/security/authority") @Validated public interface AuthorityAPI
Created in Intellij IDEA User: Balaji Varadharajan Date: 05, July 2022 Time: 4:03 PM Project: Zeus Package Name: com.brihaspathee.zeus.web.resource.interfaces To change this template use File | Settings | File and Code Template
  • 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 Role
    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 permission for a specific authority by id
    org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>
    Get permission for a specific authority by permission 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 Role
  • Method Details

    • getAllAuthorities

      @GetMapping 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
      Returns:
    • getAuthorityById

      @GetMapping("/authority-id/{authorityId}") org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>> getAuthorityById(@PathVariable UUID authorityId)
      Get permission for a specific authority by id
      Parameters:
      authorityId -
      Returns:
    • getAuthorityByName

      @GetMapping("/authority-name/{permission}") org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>> getAuthorityByName(@PathVariable String permission)
      Get permission for a specific authority by permission name
      Parameters:
      permission -
      Returns:
    • createAuthority

      @PostMapping org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityDto>> createAuthority(@RequestBody com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
      Create a new Role
      Returns:
    • updateAuthority

      @PutMapping("/{authorityId}") org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityDto>> updateAuthority(@PathVariable UUID authorityId, @RequestBody com.brihaspathee.zeus.security.model.AuthorityDto authorityDto)
      Update an existing Role
      Returns: