Class HvlAuthzTagRestController
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 Summary
ConstructorDescriptionHvlAuthzTagRestController
(HvlAuthzTagService tagService) Instantiates a new HvlOAuthTagRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete tag by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthTagModel> Gets tag by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthTagModel>> queryList
(@NotNull @Valid HvlOAuthTagQueryModel tagQueryModel) Returns a list of tag matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTagModel>> queryPage
(@NotNull @Valid HvlOAuthTagQueryModel tagQueryModel) Returns a page of tag matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthTagModel> save
(@NotNull @Valid HvlOAuthTagModel tagModel) Save tag.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthTagModel> update
(@NotNull @Valid HvlOAuthTagModel tagModel) Update tag.
-
Constructor Details
-
HvlAuthzTagRestController
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 interfaceHvlAuthzTagOperationRestService
- 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 interfaceHvlAuthzTagOperationRestService
- 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 interfaceHvlAuthzTagOperationRestService
- 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 interfaceHvlAuthzTagRestService
- 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 interfaceHvlAuthzTagRestService
- 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 interfaceHvlAuthzTagRestService
- Parameters:
tagQueryModel
- the tag query model- Returns:
- the hvl response
-