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 Details

    • HvlAuthzProxyRestController

      public HvlAuthzProxyRestController(HvlAuthzProxyService proxyService)
      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 interface HvlAuthzProxyOperationalRestService
      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 interface HvlAuthzProxyOperationalRestService
      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 interface HvlAuthzProxyOperationalRestService
      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 interface HvlAuthzProxyOperationalRestService
      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 interface HvlAuthzProxyRestService
      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 interface HvlAuthzProxyRestService
      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 interface HvlAuthzProxyRestService
      Parameters:
      proxyQueryModel - the proxy query model
      Returns:
      the hvl response