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

    • 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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityOperationRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      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 interface HvlAuthzAuthorityRestService
      Parameters:
      authorityQueryModel - the authority query model
      Returns:
      the hvl response