Class HvlAuthzTrustedProxyRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.proxy.controller.HvlAuthzTrustedProxyRestController
- All Implemented Interfaces:
HvlAuthzTrustedProxyOperationalRestService
,HvlAuthzTrustedProxyRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.trusted-proxy.controller-path:/trusted-proxies}")
@HvlActuatorService(name="HvlAuthzTrustedProxyRestService",
groupName="HvlAuthzTrustedProxy")
public class HvlAuthzTrustedProxyRestController
extends Object
implements HvlAuthzTrustedProxyOperationalRestService, HvlAuthzTrustedProxyRestService
The class in which service endpoints are defined for proxy operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzTrustedProxyRestController
(HvlAuthzTrustedProxyService trustedProxyService) Instantiates a new HvlAuthzTrustedProxyRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete trusted proxy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteTrustedProxyBelongsToCurrentUserByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete trusted proxy that belongs to current user by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthTrustedProxyModel>
Gets trusted proxy by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTrustedProxyDataModel>>
queryBorrowedDataPage
(@NotNull @Valid HvlOAuthTrustedProxyQueryModel trustedProxyQueryModel) Returns a page of borrowed trusted proxy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTrustedProxyDataModel>>
queryDelegatedDataPage
(@NotNull @Valid HvlOAuthTrustedProxyQueryModel trustedProxyQueryModel) Returns a page of delegated trusted proxy matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlOAuthTrustedProxyCopiablePersistModel trustedProxyCopiablePersistModel) Save trusted proxy.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlOAuthTrustedProxyPersistModel trustedProxyPersistModel) Update trusted proxy.
-
Constructor Details
-
HvlAuthzTrustedProxyRestController
Instantiates a new HvlAuthzTrustedProxyRestController.- Parameters:
trustedProxyService
- the trusted proxy service
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTrustedProxyCopiablePersistModel trustedProxyCopiablePersistModel) Save trusted proxy.- Specified by:
save
in interfaceHvlAuthzTrustedProxyOperationalRestService
- Parameters:
trustedProxyCopiablePersistModel
- the trusted proxy copiable persist 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 HvlOAuthTrustedProxyPersistModel trustedProxyPersistModel) Update trusted proxy.- Specified by:
update
in interfaceHvlAuthzTrustedProxyOperationalRestService
- Parameters:
trustedProxyPersistModel
- the trusted 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 trusted proxy by uuid.- Specified by:
deleteByUuid
in interfaceHvlAuthzTrustedProxyOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
deleteTrustedProxyBelongsToCurrentUserByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteTrustedProxyBelongsToCurrentUserByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Delete trusted proxy that belongs to current user by uuid.- Specified by:
deleteTrustedProxyBelongsToCurrentUserByUuid
in interfaceHvlAuthzTrustedProxyOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthTrustedProxyModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets trusted proxy by uuid.- Specified by:
getByUuid
in interfaceHvlAuthzTrustedProxyRestService
- Parameters:
uuid
- the uuid- Returns:
- the trusted proxy by uuid
-
queryDelegatedDataPage
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTrustedProxyDataModel>> queryDelegatedDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTrustedProxyQueryModel trustedProxyQueryModel) Returns a page of delegated trusted proxy matching the query criteria.- Specified by:
queryDelegatedDataPage
in interfaceHvlAuthzTrustedProxyRestService
- Parameters:
trustedProxyQueryModel
- the trusted proxy query model- Returns:
- the trusted proxy data page
-
queryBorrowedDataPage
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthTrustedProxyDataModel>> queryBorrowedDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthTrustedProxyQueryModel trustedProxyQueryModel) Returns a page of borrowed trusted proxy matching the query criteria.- Specified by:
queryBorrowedDataPage
in interfaceHvlAuthzTrustedProxyRestService
- Parameters:
trustedProxyQueryModel
- the trusted proxy query model- Returns:
- the trusted proxy data page
-