Class HvlAuthzProxyRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.proxy.controller.HvlAuthzProxyRestController
- All Implemented Interfaces:
HvlAuthzProxyOperationalRestService
,HvlAuthzProxyRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.proxy.controller-path:/proxies}")
@HvlActuatorService(name="HvlAuthzProxyRestService",
groupName="HvlAuthzProxy")
public class HvlAuthzProxyRestController
extends Object
implements HvlAuthzProxyOperationalRestService, HvlAuthzProxyRestService
The class in which service endpoints are defined for proxy operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzProxyRestController
(HvlAuthzProxyService proxyService) Instantiates a new HvlAuthzProxyRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete proxy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthProxyModel> Gets proxy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel>> queryBorrowedDataPage
(@NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of borrowed proxy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel>> queryDelegatedDataPage
(@NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of delegated proxy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> save
(@NotNull @Valid HvlOAuthProxyCopiablePersistModel proxyCopiablePersistModel) Save proxy.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> saveFromTrustedProxy
(@NotNull @Valid HvlOAuthProxyFromTrustedProxyModel proxyFromTrustedProxyModel) Save proxy from trusted proxy.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthProxyPersistModel proxyPersistModel) Update proxy.
-
Constructor Details
-
HvlAuthzProxyRestController
Instantiates a new HvlAuthzProxyRestController.- Parameters:
proxyService
- the proxy service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProxyCopiablePersistModel proxyCopiablePersistModel) Save proxy.- Specified by:
save
in interfaceHvlAuthzProxyOperationalRestService
- Parameters:
proxyCopiablePersistModel
- the proxy copiable persist model- Returns:
- the hvl response
-
saveFromTrustedProxy
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> saveFromTrustedProxy(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProxyFromTrustedProxyModel proxyFromTrustedProxyModel) Save proxy from trusted proxy.- Specified by:
saveFromTrustedProxy
in interfaceHvlAuthzProxyOperationalRestService
- Parameters:
proxyFromTrustedProxyModel
- the proxy from trusted proxy model- Returns:
- the hvl response
-
update
@PreAuthorize("hasAuthority(\'default_authority\')") @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 HvlOAuthProxyPersistModel proxyPersistModel) Update proxy.- Specified by:
update
in interfaceHvlAuthzProxyOperationalRestService
- Parameters:
proxyPersistModel
- the proxy persist model- Returns:
- the hvl response
-
deleteByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") 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 proxy by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzProxyOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthProxyModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets proxy by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzProxyRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryDelegatedDataPage
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel>> queryDelegatedDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of delegated proxy matching the query criteria.- Specified by:
queryDelegatedDataPage
in interfaceHvlAuthzProxyRestService
- Parameters:
proxyQueryModel
- the proxy query model- Returns:
- the hvl response
-
queryBorrowedDataPage
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel>> queryBorrowedDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of borrowed proxy matching the query criteria.- Specified by:
queryBorrowedDataPage
in interfaceHvlAuthzProxyRestService
- Parameters:
proxyQueryModel
- the proxy query model- Returns:
- the hvl response
-