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 Details

    • HvlAuthzAuthorityRestController

      public HvlAuthzAuthorityRestController(HvlAuthzAuthorityService authorityService)
      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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      Parameters:
      authorityQueryModel - the authority query model
      Returns:
      the hvl response