Class HvlAuthzAuthorityRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.authority.controller.HvlAuthzAuthorityRestController
- All Implemented Interfaces:
HvlAuthzAuthorityOperationRestService
,HvlAuthzAuthorityRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.authority.controller-path:/authorities}")
@HvlActuatorService(name="HvlAuthzAuthorityRestService",
groupName="HvlAuthzAuthority")
public class HvlAuthzAuthorityRestController
extends Object
implements HvlAuthzAuthorityRestService, HvlAuthzAuthorityOperationRestService
The class in which service endpoints are defined for authority operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzAuthorityRestController
(HvlAuthzAuthorityService authorityService) Instantiates a new HvlAuthzAuthorityRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthAuthorityModel>
Gets authority by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuthorityTagDataModel>>
queryAuthorityTagList
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a list of authority tag matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityTagDataModel>>
queryAuthorityTagPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority tag matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuthorityClaimDataModel>>
queryClaimDataList
(@NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a list of authority claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityClaimDataModel>>
queryClaimDataPage
(@NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a page of authority claim for assigned entity relation matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel>>
queryDataPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
updateTags
(@NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tag to authority.
-
Constructor Details
-
HvlAuthzAuthorityRestController
Instantiates a new HvlAuthzAuthorityRestController.- Parameters:
authorityService
- the authority service
-
-
Method Details
-
updateTags
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateTags(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tag to authority.- Specified by:
updateTags
in interfaceHvlAuthzAuthorityOperationRestService
- Parameters:
authorityTagPersistModel
- the authority tag persist model- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthAuthorityModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets authority by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzAuthorityRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryClaimDataList
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuthorityClaimDataModel>> queryClaimDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a list of authority claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataList
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityClaimQueryModel
- the authority claim query model- Returns:
- the hvl response
-
queryClaimDataPage
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityClaimDataModel>> queryClaimDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityClaimQueryModel authorityClaimQueryModel) Returns a page of authority claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityClaimQueryModel
- the authority claim query model- Returns:
- the hvl response
-
queryDataPage
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityQueryModel
- the authority claim query model- Returns:
- the hvl response
-
queryAuthorityTagList
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuthorityTagDataModel>> queryAuthorityTagList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a list of authority tag matching the query criteria.- Specified by:
queryAuthorityTagList
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the hvl response
-
queryAuthorityTagPage
@PreAuthorize("hasAuthority(\'keysys:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityTagDataModel>> queryAuthorityTagPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority tag matching the query criteria.- Specified by:
queryAuthorityTagPage
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityQueryModel
- the authority query model- Returns:
- the hvl response
-