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
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete authority by uuid.tr.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
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel>> queryModuleDataPage
(@NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthAuthorityModel> save
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateProfileGroups
(@NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups hvl response.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
-
save
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthAuthorityModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority.- Specified by:
save
in interfaceHvlAuthzAuthorityOperationRestService
- Parameters:
authorityModel
- the authority model- Returns:
- the hvl response
-
update
@PreAuthorize("hasAuthority(\'keysis\')") @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update hvl response.- Specified by:
update
in interfaceHvlAuthzAuthorityOperationRestService
- Parameters:
authorityModel
- the authority model- Returns:
- the hvl response
-
deleteByUuid
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Delete authority by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzAuthorityOperationRestService
- Parameters:
uuid
- the uuid- Returns:
- hvl response
-
updateTags
@PreAuthorize("hasAuthority(\'keysis: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
-
updateProfileGroups
@PreAuthorize("hasAuthority(\'keysis:role_assigner\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateProfileGroups(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups hvl response.- Specified by:
updateProfileGroups
in interfaceHvlAuthzAuthorityOperationRestService
- Parameters:
authAuthorityProfileGroupPersistModel
- the auth authority profile group persist model- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'keysis: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(\'keysis: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(\'keysis: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(\'keysis: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
-
queryModuleDataPage
@PreAuthorize("hasAuthority(\'keysis:module_query\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthAuthorityDataModel>> queryModuleDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityQueryModel authorityQueryModel) Returns a page of authority matching the query criteria.- Specified by:
queryModuleDataPage
in interfaceHvlAuthzAuthorityRestService
- Parameters:
authorityQueryModel
- the authority claim query model- Returns:
- the hvl response
-
queryAuthorityTagList
@PreAuthorize("hasAuthority(\'keysis: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(\'keysis: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
-