java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.authority.controller.HvlAuthzTagRestController
All Implemented Interfaces:
HvlAuthzTagOperationRestService, HvlAuthzTagRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.tag.controller-path:/tags}") @HvlActuatorService(name="HvlAuthzTagRestService", groupName="HvlAuthzAuthority") public class HvlAuthzTagRestController extends Object implements HvlAuthzTagRestService, HvlAuthzTagOperationRestService
The class in which service endpoints are defined for tag operations.
  • Constructor Details

    • HvlAuthzTagRestController

      public HvlAuthzTagRestController(HvlAuthzTagService tagService)
      Instantiates a new HvlOAuthTagRestController.
      Parameters:
      tagService - the tag service
  • Method Details

    • save

      public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthTagModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTagModel tagModel)
      Save tag.
      Specified by:
      save in interface HvlAuthzTagOperationRestService
      Parameters:
      tagModel - the tag model
      Returns:
      the hvl response
    • update

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthTagModel> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTagModel tagModel)
      Update tag.
      Specified by:
      update in interface HvlAuthzTagOperationRestService
      Parameters:
      tagModel - the tag model
      Returns:
      the hvl response
    • deleteByUuid

      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 tag by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzTagOperationRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthTagModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets tag by uuid.
      Specified by:
      getByUuid in interface HvlAuthzTagRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryList

      public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthTagModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTagQueryModel tagQueryModel)
      Returns a list of tag matching the query criteria.
      Specified by:
      queryList in interface HvlAuthzTagRestService
      Parameters:
      tagQueryModel - the tag query model
      Returns:
      the hvl response
    • queryPage

      public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTagModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTagQueryModel tagQueryModel)
      Returns a page of tag matching the query criteria.
      Specified by:
      queryPage in interface HvlAuthzTagRestService
      Parameters:
      tagQueryModel - the tag query model
      Returns:
      the hvl response