Class HvlAuthzPredefinedProxyRestController

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.proxy.controller.HvlAuthzPredefinedProxyRestController
All Implemented Interfaces:
HvlAuthzPredefinedProxyOperationalRestService, HvlAuthzPredefinedProxyRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.predefined-proxy.controller-path:/predefined-proxies}") @HvlActuatorService(name="HvlAuthzPredefinedProxyRestService", groupName="HvlAuthzPredefinedProxy") public class HvlAuthzPredefinedProxyRestController extends Object implements HvlAuthzPredefinedProxyOperationalRestService, HvlAuthzPredefinedProxyRestService
The class in which service endpoints are defined for predefined proxy operations.
  • Constructor Details

    • HvlAuthzPredefinedProxyRestController

      public HvlAuthzPredefinedProxyRestController(HvlAuthzPredefinedProxyService authzPredefinedProxyService)
      Instantiates a new HvlAuthzPredefinedProxyRestController.
      Parameters:
      authzPredefinedProxyService - the authz predefined proxy service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthPredefinedProxyCopiablePersistModel predefinedProxyCopiablePersistModel)
      Save predefined proxy.
      Specified by:
      save in interface HvlAuthzPredefinedProxyOperationalRestService
      Parameters:
      predefinedProxyCopiablePersistModel - the predefined 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 HvlOAuthPredefinedProxyPersistModel predefinedProxyPersistModel)
      Update predefined proxy.
      Specified by:
      update in interface HvlAuthzPredefinedProxyOperationalRestService
      Parameters:
      predefinedProxyPersistModel - the predefined 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 predefined proxy by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzPredefinedProxyOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      @PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthPredefinedProxyModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets predefined proxy by uuid.
      Specified by:
      getByUuid in interface HvlAuthzPredefinedProxyRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryDataPage

      @PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthPredefinedProxyDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthPredefinedProxyQueryModel predefinedProxyQueryModel)
      Returns a page of predefined proxy matching the query criteria.
      Specified by:
      queryDataPage in interface HvlAuthzPredefinedProxyRestService
      Parameters:
      predefinedProxyQueryModel - the predefined proxy query model
      Returns:
      the hvl response