Class HvlAuthzLookupRestController

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.lookup.controller.HvlAuthzLookupRestController
All Implemented Interfaces:
HvlAuthzLookupOperationalRestService, HvlAuthzLookupRestService

@RestController @RequestMapping("${hvl.oauth.authz.service.lookup.controller-path:/lookups}") @HvlActuatorService(name="HvlAuthzLookupRestService", groupName="HvlAuthzLookup") public class HvlAuthzLookupRestController extends Object implements HvlAuthzLookupRestService, HvlAuthzLookupOperationalRestService
The class in which service endpoints are defined for lookup operations.
  • Constructor Details

    • HvlAuthzLookupRestController

      public HvlAuthzLookupRestController(HvlAuthzLookupService lookupService)
      Instantiates a new Hvl authz lookup rest controller.
      Parameters:
      lookupService - the lookup service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupModel lookupModel)
      Save hvl response.
      Specified by:
      save in interface HvlAuthzLookupOperationalRestService
      Parameters:
      lookupModel - the lookup model
      Returns:
      the hvl response
    • update

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupModel lookupModel)
      Update hvl response.
      Specified by:
      update in interface HvlAuthzLookupOperationalRestService
      Parameters:
      lookupModel - the lookup model
      Returns:
      the hvl response
    • deleteByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") 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 by uuid hvl response.
      Specified by:
      deleteByUuid in interface HvlAuthzLookupOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets by uuid.
      Specified by:
      getByUuid in interface HvlAuthzLookupRestService
      Parameters:
      uuid - the uuid
      Returns:
      the by uuid
    • getByIntegrationCode

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthLookupModel> getByIntegrationCode(@NotBlank @Size(max=20) @PathVariable("integrationCode") @NotBlank @Size(max=20) String integrationCode)
      Gets by integration code.
      Specified by:
      getByIntegrationCode in interface HvlAuthzLookupRestService
      Parameters:
      integrationCode - the integration code
      Returns:
      the by integration code
    • queryList

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthLookupModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel)
      Query list hvl response.
      Specified by:
      queryList in interface HvlAuthzLookupRestService
      Parameters:
      lookupQueryModel - the lookup query model
      Returns:
      the hvl response
    • queryPage

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthLookupModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel)
      Query page hvl response.
      Specified by:
      queryPage in interface HvlAuthzLookupRestService
      Parameters:
      lookupQueryModel - the lookup query model
      Returns:
      the hvl response