Class ReportServiceImpl
java.lang.Object
net.datenwerke.treedb.service.treedb.TreeDBManagerImpl<AbstractReportManagerNode>
net.datenwerke.security.service.treedb.LoggedTreeDbManagerImpl<AbstractReportManagerNode>
net.datenwerke.security.service.treedb.SecuredTreeDBManagerImpl<AbstractReportManagerNode>
net.datenwerke.rs.core.service.reportmanager.ReportServiceImpl
- All Implemented Interfaces:
ReportService,TreeDBManager<AbstractReportManagerNode>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
public class ReportServiceImpl
extends SecuredTreeDBManagerImpl<AbstractReportManagerNode>
implements ReportService
-
Field Summary
Fields inherited from interface net.datenwerke.rs.core.service.reportmanager.ReportService
SECUREE_ID -
Constructor Summary
ConstructorsConstructorDescriptionReportServiceImpl(<any> entityManagerProvider, HookHandlerService hookHandler, <any> installedReportTypes, <any> installedReportVariantTypes, SecurityService securityService, EntityClonerService entityCloner, ReportParameterService reportParameterService, TerminalService terminalService, <any> authenticatorServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptioncreateInputStream(Object report) extractQuery(Report report) Returns all installed report types.Returns all installed report variant types.getNodeById(long id) Searches for a node by its idgetNodeByKey(String key) getNodeByPath(String path) getNodeByPath(String path, boolean checkRights) getOrCreateMetadata(Report report, String name) getReportById(long id) getReportByKey(String key) getReportByUUID(String UUID) longgetReportIdFromKey(String key) getRoots()getUnmanagedReportById(long id) getVariantsOf(AbstractReportManagerNode report, User user) voidvoidpersist(ReportMetadata reportMetadata) voidpersist(ReportProperty property) voidprepareVariantForEdit(ReportVariant referenceReport, ReportDto reportDto, String executeToken) voidprepareVariantForStorage(ReportVariant variant, String executeToken) voidremove(Report report, ReportMetadata metadata) voidremove(Report report, ReportProperty property) removeMetadataByName(Report report, String name) voidupdateParameterDefinitions(Report report, List<ParameterDefinition> newDefinitions, boolean allowParameterRemoval) Methods inherited from class net.datenwerke.security.service.treedb.SecuredTreeDBManagerImpl
copy, forceRemove, getVirtualRoots, move, move, move, move, removeMethods inherited from class net.datenwerke.treedb.service.treedb.TreeDBManagerImpl
allowsMultipleRoots, copy, getBaseType, getChildrenWithName, isFolder, updateFlagsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.datenwerke.treedb.service.treedb.TreeDBManager
allowsMultipleRoots, copy, forceRemove, getBaseType, getChildrenWithName, getVirtualRoots, isFolder, move, move, remove, updateFlags
-
Constructor Details
-
Method Details
-
getAllReports
- Specified by:
getAllReportsin interfaceReportService
-
getNodeByPath
- Specified by:
getNodeByPathin interfaceReportService
-
getNodeByPath
- Specified by:
getNodeByPathin interfaceReportService
-
getInstalledReportTypes
Description copied from interface:ReportServiceReturns all installed report types.- Specified by:
getInstalledReportTypesin interfaceReportService
-
getInstalledReportVariantTypes
Description copied from interface:ReportServiceReturns all installed report variant types.- Specified by:
getInstalledReportVariantTypesin interfaceReportService
-
getReportById
- Specified by:
getReportByIdin interfaceReportService
-
getReportByKey
- Specified by:
getReportByKeyin interfaceReportService
-
getReportByUUID
- Specified by:
getReportByUUIDin interfaceReportService
-
getReportsByDatasource
@SimpleQuery(from=Report.class, join=@Join(joinAttribute=<error>,where=@Predicate(attribute=<error>,value="ds"))) public List<Report> getReportsByDatasource(DatasourceDefinition ds) - Specified by:
getReportsByDatasourcein interfaceReportService
-
persist
- Specified by:
persistin interfaceTreeDBManager<AbstractReportManagerNode>- Overrides:
persistin classSecuredTreeDBManagerImpl<AbstractReportManagerNode>
-
merge
- Specified by:
mergein interfaceTreeDBManager<AbstractReportManagerNode>- Overrides:
mergein classLoggedTreeDbManagerImpl<AbstractReportManagerNode>
-
persist
- Specified by:
persistin interfaceReportService
-
remove
- Specified by:
removein interfaceReportService
-
persist
- Specified by:
persistin interfaceReportService
-
remove
- Specified by:
removein interfaceReportService
-
getUnmanagedReportById
- Specified by:
getUnmanagedReportByIdin interfaceReportService
-
getVariantsOf
- Specified by:
getVariantsOfin interfaceReportService
-
getVariantsOf
- Specified by:
getVariantsOfin interfaceReportService
-
getReportIdFromKey
@QueryByAttribute(select=<error>, from=Report.class, where=<error>, throwNoResultException=true) public long getReportIdFromKey(String key) - Specified by:
getReportIdFromKeyin interfaceReportService
-
getReportMetadataKeys
@SimpleQuery(select=<error>, from=ReportMetadata.class, distinct=true, orderBy=@OrderBy(attribute=<error>)) public List<String> getReportMetadataKeys()- Specified by:
getReportMetadataKeysin interfaceReportService
-
getReportStringPropertyKeys
@SimpleQuery(select=<error>, from=ReportStringProperty.class, distinct=true, orderBy=@OrderBy(attribute=<error>)) public List<String> getReportStringPropertyKeys()- Specified by:
getReportStringPropertyKeysin interfaceReportService
-
getRoots
- Specified by:
getRootsin interfaceTreeDBManager<AbstractReportManagerNode>
-
getAllNodes
- Specified by:
getAllNodesin interfaceTreeDBManager<AbstractReportManagerNode>
-
getNodeById
Description copied from interface:TreeDBManagerSearches for a node by its id- Specified by:
getNodeByIdin interfaceTreeDBManager<AbstractReportManagerNode>
-
updateParameterDefinitions
public void updateParameterDefinitions(Report report, List<ParameterDefinition> newDefinitions, boolean allowParameterRemoval) - Specified by:
updateParameterDefinitionsin interfaceReportService
-
getOrCreateMetadata
- Specified by:
getOrCreateMetadatain interfaceReportService
-
removeMetadataByName
- Specified by:
removeMetadataByNamein interfaceReportService
-
prepareVariantForStorage
public void prepareVariantForStorage(ReportVariant variant, String executeToken) throws ExpectedException - Specified by:
prepareVariantForStoragein interfaceReportService- Throws:
ExpectedException
-
prepareVariantForEdit
public void prepareVariantForEdit(ReportVariant referenceReport, ReportDto reportDto, String executeToken) throws ServerCallFailedException - Specified by:
prepareVariantForEditin interfaceReportService- Throws:
ServerCallFailedException
-
extractQuery
- Specified by:
extractQueryin interfaceReportService
-
createInputStream
- Specified by:
createInputStreamin interfaceReportService
-
getNodeByKey
- Specified by:
getNodeByKeyin interfaceTreeDBManager<AbstractReportManagerNode>
-