Class AuthorityAPIImpl
java.lang.Object
com.brihaspathee.zeus.web.resource.impl.AuthorityAPIImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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 authorityorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>Get all the permissions that are present in the systemorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>getAuthorityById(UUID authorityId) Get the permission by authority idorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<com.brihaspathee.zeus.security.model.AuthorityList>>getAuthorityByName(String permission) Get the permission by authority nameorg.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
-
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:
getAllAuthoritiesin interfaceAuthorityAPI- 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:
getAuthorityByIdin interfaceAuthorityAPI- 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:
getAuthorityByNamein interfaceAuthorityAPI- 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:
createAuthorityin interfaceAuthorityAPI- 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:
updateAuthorityin interfaceAuthorityAPI- Parameters:
authorityId-authorityDto-- Returns:
-