Class ReportService
java.lang.Object
io.camunda.optimize.service.report.ReportService
- All Implemented Interfaces:
CollectionReferencingService
-
Constructor Summary
ConstructorsConstructorDescriptionReportService(ReportWriter reportWriter, ReportReader reportReader, ReportAuthorizationService reportAuthorizationService, ReportRelationService reportRelationService, AuthorizedCollectionService collectionService, AbstractIdentityService identityService, DefinitionService defintionService) -
Method Summary
Modifier and TypeMethodDescriptioncopyAndMoveReport(String reportId, String userId, String collectionId, String newReportName) copyAndMoveReport(String reportId, String userId, String collectionId, String newReportName, Map<String, String> existingReportCopies, boolean keepSubReportNames) Note: TheexistingReportCopiesMapmight get modified in the context of this method, thus you should not call this method from a context where this map is being modified already.copyReport(String reportId, String userId, String newReportName) createNewCombinedProcessReport(String userId, CombinedReportDefinitionRequestDto combinedReportDefinitionDto) createNewSingleDecisionReport(String userId, SingleDecisionReportDefinitionRequestDto definitionDto) createNewSingleProcessReport(String userId, SingleProcessReportDefinitionRequestDto definitionDto) voiddeleteAllReportsForProcessDefinitionKey(String processDefinitionKey) voiddeleteManagementOrInstantPreviewReport(String reportId) voiddeleteReport(String reportId) voiddeleteReportAsUser(String userId, String reportId, boolean force) voidensureCompliesWithCollectionScope(String userId, String collectionId, String reportId) voidensureCompliesWithCollectionScope(List<ReportDataDefinitionDto> definitions, DefinitionType definitionType, CollectionDefinitionDto collection) filterAuthorizedReportIds(String userId, Set<String> reportIds) findAndFilterPrivateReports(String userId) findAndFilterReports(String userId, String collectionId) getAllAuthorizedReportsForIds(String userId, List<String> reportIds) getAllReportIdsInCollection(String collectionId) getAllReportsForIds(List<String> reportIds) getAllReportsForProcessDefinitionKeyOmitXml(String processDefinitionKey) getAllSingleProcessReportsForIdsOmitXml(List<String> reportIds) getConflictedItemsFromReportDefinition(String userId, String reportId) getReportDefinition(String reportId) getReportDefinition(String reportId, String userId) getReportDeleteConflictingItems(String userId, String reportId) voidhandleCollectionDeleted(CollectionDefinitionDto definition) booleanisReportAllowedForCollectionScope(SingleReportDefinitionDto<?> report, CollectionDefinitionDto collection) voidupdateCombinedProcessReport(String userId, String combinedReportId, CombinedReportDefinitionRequestDto updatedReport) voidupdateDefinitionXmlOfProcessReports(String definitionKey, String definitionXml) updateReportDefinitionXmlIfRequiredAndReturn(ReportDefinitionDto reportDefinition) voidupdateSingleDecisionReport(String reportId, SingleDecisionReportDefinitionRequestDto updatedReport, String userId, boolean force) voidupdateSingleProcessReport(String reportId, SingleProcessReportDefinitionRequestDto updatedReport, String userId, boolean force) voidvalidateReportDescription(String reportDescription)
-
Constructor Details
-
ReportService
public ReportService(ReportWriter reportWriter, ReportReader reportReader, ReportAuthorizationService reportAuthorizationService, ReportRelationService reportRelationService, AuthorizedCollectionService collectionService, AbstractIdentityService identityService, DefinitionService defintionService)
-
-
Method Details
-
getConflictedItemsForCollectionDelete
public Set<ConflictedItemDto> getConflictedItemsForCollectionDelete(CollectionDefinitionDto definition) - Specified by:
getConflictedItemsForCollectionDeletein interfaceCollectionReferencingService
-
handleCollectionDeleted
- Specified by:
handleCollectionDeletedin interfaceCollectionReferencingService
-
createNewSingleDecisionReport
public IdResponseDto createNewSingleDecisionReport(String userId, SingleDecisionReportDefinitionRequestDto definitionDto) -
createNewSingleProcessReport
public IdResponseDto createNewSingleProcessReport(String userId, SingleProcessReportDefinitionRequestDto definitionDto) -
createNewCombinedProcessReport
public IdResponseDto createNewCombinedProcessReport(String userId, CombinedReportDefinitionRequestDto combinedReportDefinitionDto) -
getReportDeleteConflictingItems
-
copyReport
-
copyAndMoveReport
public IdResponseDto copyAndMoveReport(String reportId, String userId, String collectionId, String newReportName) -
getAllReportIdsInCollection
-
getAllAuthorizedReportsForIds
public List<ReportDefinitionDto> getAllAuthorizedReportsForIds(String userId, List<String> reportIds) -
getAllReportsForIds
-
copyAndMoveReport
public IdResponseDto copyAndMoveReport(String reportId, String userId, String collectionId, String newReportName, Map<String, String> existingReportCopies, boolean keepSubReportNames) Note: TheexistingReportCopiesMapmight get modified in the context of this method, thus you should not call this method from a context where this map is being modified already. E.g. Don't call it inside aMap.computeIfAbsent(K, java.util.function.Function<? super K, ? extends V>)block on that same map instance. -
getReportDefinition
-
getReportDefinition
-
findAndFilterPrivateReports
-
deleteAllReportsForProcessDefinitionKey
-
getAllReportsForProcessDefinitionKeyOmitXml
public List<ReportDefinitionDto> getAllReportsForProcessDefinitionKeyOmitXml(String processDefinitionKey) -
getAllSingleProcessReportsForIdsOmitXml
public List<SingleProcessReportDefinitionRequestDto> getAllSingleProcessReportsForIdsOmitXml(List<String> reportIds) -
findAndFilterReports
public List<AuthorizedReportDefinitionResponseDto> findAndFilterReports(String userId, String collectionId) -
updateCombinedProcessReport
public void updateCombinedProcessReport(String userId, String combinedReportId, CombinedReportDefinitionRequestDto updatedReport) -
updateSingleProcessReport
public void updateSingleProcessReport(String reportId, SingleProcessReportDefinitionRequestDto updatedReport, String userId, boolean force) -
updateDefinitionXmlOfProcessReports
-
updateSingleDecisionReport
public void updateSingleDecisionReport(String reportId, SingleDecisionReportDefinitionRequestDto updatedReport, String userId, boolean force) -
deleteReport
-
deleteManagementOrInstantPreviewReport
-
deleteReportAsUser
-
getConflictedItemsFromReportDefinition
public Set<ConflictedItemDto> getConflictedItemsFromReportDefinition(String userId, String reportId) -
validateReportDescription
-
updateReportDefinitionXmlIfRequiredAndReturn
public Optional<String> updateReportDefinitionXmlIfRequiredAndReturn(ReportDefinitionDto reportDefinition) -
ensureCompliesWithCollectionScope
-
ensureCompliesWithCollectionScope
public void ensureCompliesWithCollectionScope(List<ReportDataDefinitionDto> definitions, DefinitionType definitionType, CollectionDefinitionDto collection) -
isReportAllowedForCollectionScope
public boolean isReportAllowedForCollectionScope(SingleReportDefinitionDto<?> report, CollectionDefinitionDto collection) -
filterAuthorizedReportIds
-