Class HvlRToolReportOrderRestController

java.lang.Object
tr.com.havelsan.javarch.report.rtool.starter.controller.HvlRToolReportOrderRestController
All Implemented Interfaces:
HvlRToolReportOrderOperationalRestService, HvlRToolReportOrderRestService

@RestController @RequestMapping("${hvl.report.rtool.service.report-order.path:/report-orders}") @HvlActuatorService(name="rtool-report-order-service", groupName="rtool-services") public class HvlRToolReportOrderRestController extends Object implements HvlRToolReportOrderOperationalRestService, HvlRToolReportOrderRestService
The class in which service endpoints are defined for report order operations.
  • Constructor Details

    • HvlRToolReportOrderRestController

      public HvlRToolReportOrderRestController(HvlRToolReportOrderService reportOrderService)
      Instantiates a new Hvl r tool report order rest controller.
      Parameters:
      reportOrderService - the report order service
  • Method Details

    • save

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolReportOrderModel reportOrderModel)
      Save report order.
      Specified by:
      save in interface HvlRToolReportOrderOperationalRestService
      Parameters:
      reportOrderModel - the report order 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 HvlRToolReportOrderModel reportOrderModel)
      Update report order.
      Specified by:
      update in interface HvlRToolReportOrderOperationalRestService
      Parameters:
      reportOrderModel - the report order model
      Returns:
      the hvl response
    • deleteByUuid

      @PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteByUuid(@NotBlank @Size(max=36,min=36) @PathVariable("uuid") @NotBlank @Size(max=36,min=36) String uuid)
      Delete report order by uuid.
      Specified by:
      deleteByUuid in interface HvlRToolReportOrderOperationalRestService
      Parameters:
      uuid - the uuid
      Returns:
      hvl response
    • callSyncExecution

      @PreAuthorize("hasAuthority(\'default_authority\')") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> callSyncExecution(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolReportOrderExecutionModel reportOrderExecutionModel)
      Executes and exports report synchronously.
      Specified by:
      callSyncExecution in interface HvlRToolReportOrderOperationalRestService
      Parameters:
      reportOrderExecutionModel - the report order execution model
      Returns:
      the resource of report response.
    • getByUuid

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

      @PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlRToolReportOrderDataModel>> queryDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolReportOrderQueryModel reportOrderQueryModel)
      Returns a list of report order matching the query criteria.
      Specified by:
      queryDataList in interface HvlRToolReportOrderRestService
      Parameters:
      reportOrderQueryModel - the report order query model
      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<HvlRToolReportOrderDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolReportOrderQueryModel reportOrderQueryModel)
      Returns a page of report order matching the query criteria.
      Specified by:
      queryDataPage in interface HvlRToolReportOrderRestService
      Parameters:
      reportOrderQueryModel - the report order query model
      Returns:
      the hvl response