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 Details

    • HvlAuthzTrustedProxyRestController

      public HvlAuthzTrustedProxyRestController(HvlAuthzTrustedProxyService trustedProxyService)
      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 interface HvlAuthzTrustedProxyOperationalRestService
      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 interface HvlAuthzTrustedProxyOperationalRestService
      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 interface HvlAuthzTrustedProxyOperationalRestService
      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 interface HvlAuthzTrustedProxyOperationalRestService
      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 interface HvlAuthzTrustedProxyRestService
      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 interface HvlAuthzTrustedProxyRestService
      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 interface HvlAuthzTrustedProxyRestService
      Parameters:
      trustedProxyQueryModel - the trusted proxy query model
      Returns:
      the trusted proxy data page