Class HvlRToolExecutableReportServiceImpl
java.lang.Object
tr.com.havelsan.javarch.report.rtool.starter.logic.HvlRToolExecutableReportServiceImpl
- All Implemented Interfaces:
HvlRToolExecutableReportService
@Service
public class HvlRToolExecutableReportServiceImpl
extends Object
implements HvlRToolExecutableReportService
The class which implements
HvlRToolExecutableReportService
.-
Constructor Summary
ConstructorDescriptionHvlRToolExecutableReportServiceImpl
(HvlRToolExecutableReportOperationalManager executableReportOperationalManager, HvlRToolExecutableReportManager executableReportManager, HvlRToolReportTemplateResolver reportTemplateResolver, HvlRToolReportDataAdapterAccessor reportDataAdapterAccessor, HvlRToolReportTemplateAttrTransformer reportTemplateAttrTransformer) Instantiates a new HvlRToolExecutableReportServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByUuid
(@NotBlank @Size(max=36,min=36) String uuid) Delete executable report by uuid.discoverReportDataAdapters
(HvlRToolReportDataSourceType reportDataSourceType) Discover report template content.Gets executable report by uuid.com.google.common.collect.ImmutableSet<HvlRToolReportExecutingParamModel>
getExecutingParamSetByUuid
(@NotBlank @Size(max=36,min=36) String uuid) Gets report executing param set by uuid.queryDataList
(@NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a list of executable report matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlRToolExecutableReportDataModel>
queryDataPage
(@NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a page of executable report matching the query criteria.resolveReportTemplate
(@NotEmpty Set<@NotNull org.springframework.web.multipart.MultipartFile> reportTemplateAttrSources) Resolve report template content.void
save
(@NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Save executable report.void
update
(@NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Update executable report.
-
Constructor Details
-
HvlRToolExecutableReportServiceImpl
public HvlRToolExecutableReportServiceImpl(HvlRToolExecutableReportOperationalManager executableReportOperationalManager, HvlRToolExecutableReportManager executableReportManager, HvlRToolReportTemplateResolver reportTemplateResolver, HvlRToolReportDataAdapterAccessor reportDataAdapterAccessor, HvlRToolReportTemplateAttrTransformer reportTemplateAttrTransformer) Instantiates a new HvlRToolExecutableReportServiceImpl.- Parameters:
executableReportOperationalManager
- the executable report operational managerexecutableReportManager
- the executable report managerreportTemplateResolver
- the report template resolverreportDataAdapterAccessor
- the report data adapter accessorreportTemplateAttrTransformer
- the report template attr transformer
-
-
Method Details
-
save
public void save(@NotNull @Valid @NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Save executable report.- Specified by:
save
in interfaceHvlRToolExecutableReportService
- Parameters:
executableReportModel
- the executable report model
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public void update(@NotNull @Valid @NotNull @Valid HvlRToolExecutableReportModel executableReportModel) Update executable report.- Specified by:
update
in interfaceHvlRToolExecutableReportService
- Parameters:
executableReportModel
- the executable report model
-
deleteByUuid
Delete executable report by uuid.- Specified by:
deleteByUuid
in interfaceHvlRToolExecutableReportService
- Parameters:
uuid
- the uuid
-
resolveReportTemplate
public HvlRToolResolvedReportTemplateModel resolveReportTemplate(@NotEmpty @NotEmpty Set<@NotNull org.springframework.web.multipart.MultipartFile> reportTemplateAttrSources) Resolve report template content.- Specified by:
resolveReportTemplate
in interfaceHvlRToolExecutableReportService
- Parameters:
reportTemplateAttrSources
- the report template attribute sources- Returns:
- the report template model
-
discoverReportDataAdapters
public Set<HvlRToolResolvedReportDataAdapterModel> discoverReportDataAdapters(HvlRToolReportDataSourceType reportDataSourceType) Discover report template content.- Specified by:
discoverReportDataAdapters
in interfaceHvlRToolExecutableReportService
- Parameters:
reportDataSourceType
- the report data source type- Returns:
- the report template model
-
getByUuid
@Transactional(readOnly=true) public HvlRToolExecutableReportModel getByUuid(@NotBlank @Size(max=36,min=36) @NotBlank @Size(max=36,min=36) String uuid) Gets executable report by uuid.- Specified by:
getByUuid
in interfaceHvlRToolExecutableReportService
- Parameters:
uuid
- the uuid- Returns:
- the executable report model
-
getExecutingParamSetByUuid
@Transactional(readOnly=true) public com.google.common.collect.ImmutableSet<HvlRToolReportExecutingParamModel> getExecutingParamSetByUuid(@NotBlank @Size(max=36,min=36) @NotBlank @Size(max=36,min=36) String uuid) Gets report executing param set by uuid.- Specified by:
getExecutingParamSetByUuid
in interfaceHvlRToolExecutableReportService
- Parameters:
uuid
- the uuid- Returns:
- the report executing param model set
-
queryDataList
@Transactional(readOnly=true) public List<HvlRToolExecutableReportDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a list of executable report matching the query criteria.- Specified by:
queryDataList
in interfaceHvlRToolExecutableReportService
- Parameters:
executableReportQueryModel
- the executable report query model- Returns:
- the list of executable report projection model
-
queryDataPage
@Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlRToolExecutableReportDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlRToolExecutableReportQueryModel executableReportQueryModel) Returns a page of executable report matching the query criteria.- Specified by:
queryDataPage
in interfaceHvlRToolExecutableReportService
- Parameters:
executableReportQueryModel
- the executable report query model- Returns:
- the page of executable report projection model
-