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 Summary
ConstructorDescriptionHvlRToolReportOrderRestController
(HvlRToolReportOrderService reportOrderService) Instantiates a new Hvl r tool report order rest controller. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
callSyncExecution
(@NotNull @Valid HvlRToolReportOrderExecutionModel reportOrderExecutionModel) Executes and exports report synchronously.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(max=36,min=36) String uuid) Delete report order by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<HvlRToolReportOrderModel>
Gets report order by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlRToolReportOrderDataModel>>
queryDataList
(@NotNull @Valid HvlRToolReportOrderQueryModel reportOrderQueryModel) Returns a list of report order matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlRToolReportOrderDataModel>>
queryDataPage
(@NotNull @Valid HvlRToolReportOrderQueryModel reportOrderQueryModel) Returns a page of report order matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlRToolReportOrderModel reportOrderModel) Save report order.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlRToolReportOrderModel reportOrderModel) Update report order.
-
Constructor Details
-
HvlRToolReportOrderRestController
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 interfaceHvlRToolReportOrderOperationalRestService
- 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 interfaceHvlRToolReportOrderOperationalRestService
- 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 interfaceHvlRToolReportOrderOperationalRestService
- 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 interfaceHvlRToolReportOrderOperationalRestService
- 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 interfaceHvlRToolReportOrderRestService
- 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 interfaceHvlRToolReportOrderRestService
- 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 interfaceHvlRToolReportOrderRestService
- Parameters:
reportOrderQueryModel
- the report order query model- Returns:
- the hvl response
-