Class HvlRToolExecutableReportRestController
java.lang.Object
tr.com.havelsan.javarch.report.rtool.starter.controller.HvlRToolExecutableReportRestController
- All Implemented Interfaces:
HvlRToolExecutableReportOperationalRestService
,HvlRToolExecutableReportRestService
@RestController
@RequestMapping("${hvl.report.rtool.service.executable-report.path:/executable-reports}")
@HvlActuatorService(name="rtool-executable-report-service",
groupName="rtool-services")
public class HvlRToolExecutableReportRestController
extends Object
implements HvlRToolExecutableReportOperationalRestService, HvlRToolExecutableReportRestService
The class in which service endpoints are defined for executable report operations.
-
Constructor Summary
ConstructorDescriptionHvlRToolExecutableReportRestController
(HvlRToolExecutableReportService executableReportService) -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Void>
deleteByUuid
(@NotBlank @Size(max=36,min=36) String uuid) Delete executable report by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Set<HvlRToolResolvedReportDataAdapterModel>>
discoverReportDataAdapters
(HvlRToolReportDataSourceType reportDataSourceType) Discover report data adapters.tr.com.havelsan.javarch.service.data.HvlResponse<HvlRToolExecutableReportModel>
Gets executable report by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<Set<HvlRToolReportExecutingParamModel>>
getExecutingParamSetByUuid
(@NotBlank @Size(max=36,min=36) String uuid) Gets report executing param set by uuid.tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlRToolExecutableReportDataModel>>
queryDataList
(@NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a list of executable report matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlRToolExecutableReportDataModel>>
queryDataPage
(@NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a page of executable report matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<HvlRToolResolvedReportTemplateModel>
resolveReportTemplate
(@NotEmpty Set<@NotNull org.springframework.web.multipart.MultipartFile> reportTemplateAttrSources) Resolve report template content.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
save
(@NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Save executable report.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Update executable report.
-
Constructor Details
-
HvlRToolExecutableReportRestController
public HvlRToolExecutableReportRestController(HvlRToolExecutableReportService executableReportService)
-
-
Method Details
-
save
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Save executable report.- Specified by:
save
in interfaceHvlRToolExecutableReportOperationalRestService
- Parameters:
executableReportModel
- the executable report 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 HvlRToolExecutableReportModel executableReportModel) Update executable report.- Specified by:
update
in interfaceHvlRToolExecutableReportOperationalRestService
- Parameters:
executableReportModel
- the executable report 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 executable report by uuid.- Specified by:
deleteByUuid
in interfaceHvlRToolExecutableReportOperationalRestService
- Parameters:
uuid
- the uuid- Returns:
- hvl response
-
resolveReportTemplate
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlRToolResolvedReportTemplateModel> resolveReportTemplate(@NotEmpty @RequestParam("report-template-attr-sources") @NotEmpty Set<@NotNull org.springframework.web.multipart.MultipartFile> reportTemplateAttrSources) Resolve report template content.- Specified by:
resolveReportTemplate
in interfaceHvlRToolExecutableReportOperationalRestService
- Parameters:
reportTemplateAttrSources
- the report template attribute sources- Returns:
- the hvl response
-
discoverReportDataAdapters
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Set<HvlRToolResolvedReportDataAdapterModel>> discoverReportDataAdapters(@RequestParam(value="report-data-source-type",required=false) HvlRToolReportDataSourceType reportDataSourceType) Discover report data adapters.- Specified by:
discoverReportDataAdapters
in interfaceHvlRToolExecutableReportOperationalRestService
- Parameters:
reportDataSourceType
- the report data source type- Returns:
- the hvl response
-
getByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<HvlRToolExecutableReportModel> getByUuid(@NotBlank @Size(max=36,min=36) @PathVariable("uuid") @NotBlank @Size(max=36,min=36) String uuid) Gets executable report by uuid.- Specified by:
getByUuid
in interfaceHvlRToolExecutableReportRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getExecutingParamSetByUuid
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Set<HvlRToolReportExecutingParamModel>> getExecutingParamSetByUuid(@NotBlank @Size(max=36,min=36) @PathVariable("uuid") @NotBlank @Size(max=36,min=36) String uuid) Gets report executing param set by uuid.- Specified by:
getExecutingParamSetByUuid
in interfaceHvlRToolExecutableReportRestService
- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
queryDataList
@PreAuthorize("hasAuthority(\'default_authority\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlRToolExecutableReportDataModel>> queryDataList(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a list of executable report matching the query criteria.- Specified by:
queryDataList
in interfaceHvlRToolExecutableReportRestService
- Parameters:
executableReportQueryModel
- the executable report 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<HvlRToolExecutableReportDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a page of executable report matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlRToolExecutableReportRestService
- Parameters:
executableReportQueryModel
- the executable report query model- Returns:
- the hvl response
-