Class SharingService
java.lang.Object
io.camunda.optimize.service.security.SharingService
- All Implemented Interfaces:
DashboardReferencingService,ReportReferencingService
@Component
public class SharingService
extends Object
implements ReportReferencingService, DashboardReferencingService
-
Constructor Summary
ConstructorsConstructorDescriptionSharingService(SharingWriter sharingWriter, SharingReader sharingReader, PlainReportEvaluationHandler reportEvaluationHandler, DashboardService dashboardService, ReportService reportService) -
Method Summary
Modifier and TypeMethodDescriptioncheckShareStatus(ShareSearchRequestDto searchRequest) createNewDashboardShare(DashboardShareRestDto createSharingDto, String userId) createNewReportShareIfAbsent(ReportShareRestDto createSharingDto, String userId) voiddeleteDashboardShare(String shareId) voiddeleteReportShare(String shareId) evaluateDashboard(String shareId) evaluateReport(ReportEvaluationInfo evaluationInfo) evaluateReportForSharedDashboard(String dashboardShareId, String reportId, ZoneId timezone, AdditionalProcessReportEvaluationFilterDto reportEvaluationFilter, PaginationDto paginationDto) evaluateReportShare(String shareId, ZoneId timezone, PaginationDto paginationDto) findShareForDashboard(String resourceId) findShareForReport(String resourceId) getConflictedItemsForReportDelete(ReportDefinitionDto reportDefinition) getConflictedItemsForReportUpdate(ReportDefinitionDto currentDefinition, ReportDefinitionDto updateDefinition) voidhandleDashboardDeleted(DashboardDefinitionRestDto definition) voidhandleDashboardUpdated(DashboardDefinitionRestDto updatedDashboard) voidhandleReportDeleted(ReportDefinitionDto reportDefinition) voidhandleReportUpdated(String reportId, ReportDefinitionDto updateDefinition) voidvalidateAndCheckAuthorization(String dashboardId, String userId)
-
Constructor Details
-
SharingService
public SharingService(SharingWriter sharingWriter, SharingReader sharingReader, PlainReportEvaluationHandler reportEvaluationHandler, DashboardService dashboardService, ReportService reportService)
-
-
Method Details
-
getConflictedItemsForReportDelete
public Set<ConflictedItemDto> getConflictedItemsForReportDelete(ReportDefinitionDto reportDefinition) - Specified by:
getConflictedItemsForReportDeletein interfaceReportReferencingService
-
handleReportDeleted
- Specified by:
handleReportDeletedin interfaceReportReferencingService
-
getConflictedItemsForReportUpdate
public Set<ConflictedItemDto> getConflictedItemsForReportUpdate(ReportDefinitionDto currentDefinition, ReportDefinitionDto updateDefinition) - Specified by:
getConflictedItemsForReportUpdatein interfaceReportReferencingService
-
handleReportUpdated
- Specified by:
handleReportUpdatedin interfaceReportReferencingService
-
handleDashboardDeleted
- Specified by:
handleDashboardDeletedin interfaceDashboardReferencingService
-
handleDashboardUpdated
- Specified by:
handleDashboardUpdatedin interfaceDashboardReferencingService
-
validateAndCheckAuthorization
-
evaluateReport
-
evaluateDashboard