Class HvlAuthzLookupRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.lookup.controller.HvlAuthzLookupRestController
- All Implemented Interfaces:
HvlAuthzLookupOperationalRestService
,HvlAuthzLookupRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.lookup.controller-path:/lookups}")
@HvlActuatorService(name="HvlAuthzLookupRestService",
groupName="HvlAuthzLookup")
public class HvlAuthzLookupRestController
extends Object
implements HvlAuthzLookupRestService, HvlAuthzLookupOperationalRestService
The class in which service endpoints are defined for lookup operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzLookupRestController
(HvlAuthzLookupService lookupService) Instantiates a new Hvl authz lookup rest controller. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete by uuid hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthLookupModel> getByIntegrationCode
(@NotBlank @Size(max=20) String integrationCode) Gets by integration code.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthLookupModel> Gets by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlOAuthLookupModel>> queryList
(@NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Query list hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthLookupModel>> queryPage
(@NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Query page hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthLookupModel> save
(@NotNull @Valid HvlOAuthLookupModel lookupModel) Save hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthLookupModel lookupModel) Update hvl response.
-
Constructor Details
-
HvlAuthzLookupRestController
Instantiates a new Hvl authz lookup rest controller.- Parameters:
lookupService
- the lookup service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupModel lookupModel) Save hvl response.- Specified by:
save
in interfaceHvlAuthzLookupOperationalRestService
- Parameters:
lookupModel
- the lookup model- Returns:
- the hvl response
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupModel lookupModel) Update hvl response.- Specified by:
update
in interfaceHvlAuthzLookupOperationalRestService
- Parameters:
lookupModel
- the lookup 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 by uuid hvl response.- Specified by:
deleteByUuid
in interfaceHvlAuthzLookupOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzLookupRestService
- Parameters:
uuid
- the uuid- Returns:
- the by uuid
-
getByIntegrationCode
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> getByIntegrationCode(@NotBlank @Size(max=20) @PathVariable("integrationCode") @NotBlank @Size(max=20) String integrationCode) Gets by integration code.- Specified by:
getByIntegrationCode
in interfaceHvlAuthzLookupRestService
- Parameters:
integrationCode
- the integration code- Returns:
- the by integration code
-
queryList
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthLookupModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Query list hvl response.- Specified by:
queryList
in interfaceHvlAuthzLookupRestService
- Parameters:
lookupQueryModel
- the lookup query model- Returns:
- the hvl response
-
queryPage
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthLookupModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Query page hvl response.- Specified by:
queryPage
in interfaceHvlAuthzLookupRestService
- Parameters:
lookupQueryModel
- the lookup query model- Returns:
- the hvl response
-