Class CollectionScopeService
java.lang.Object
io.camunda.optimize.service.collection.CollectionScopeService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectionScopeService(TenantService tenantService, DefinitionService definitionService, DataSourceDefinitionAuthorizationService definitionAuthorizationService, ReportReader reportReader, AuthorizedCollectionService authorizedCollectionService, CollectionWriter collectionWriter, ReportService reportService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScopeEntriesToCollection(String userId, String collectionId, List<CollectionScopeEntryDto> scopeUpdates) voidbulkDeleteCollectionScopes(String userId, String collectionId, List<String> collectionScopeIds) voiddeleteScopeEntry(String userId, String collectionId, String scopeEntryId, boolean force) getAllConflictsOnScopeDeletion(String userId, String collectionId, String scopeId) getAvailableKeysAndTenantsFromCollectionScope(String userId, DefinitionType definitionType, String collectionId) getCollectionDefinitions(DefinitionType definitionType, String userId, String collectionId) getCollectionDefinitionTenantsByKeyAndType(DefinitionType type, String key, String userId, List<String> versions, String collectionId) getCollectionDefinitionVersionsByKeyAndType(DefinitionType type, String key, String userId, String collectionId) getCollectionScope(String userId, String collectionId) booleanhasConflictsForCollectionScopeDelete(String userId, String collectionId, List<String> collectionScopeIds) voidupdateScopeEntry(String userId, String collectionId, CollectionScopeEntryUpdateDto scopeUpdate, String scopeEntryId, boolean force)
-
Field Details
-
SCOPE_NOT_AUTHORIZED_MESSAGE
- See Also:
-
UNAUTHORIZED_TENANT_MASK
-
-
Constructor Details
-
CollectionScopeService
public CollectionScopeService(TenantService tenantService, DefinitionService definitionService, DataSourceDefinitionAuthorizationService definitionAuthorizationService, ReportReader reportReader, AuthorizedCollectionService authorizedCollectionService, CollectionWriter collectionWriter, ReportService reportService)
-
-
Method Details
-
getCollectionScope
-
getCollectionDefinitions
public List<DefinitionResponseDto> getCollectionDefinitions(DefinitionType definitionType, String userId, String collectionId) -
getCollectionDefinitionVersionsByKeyAndType
public List<DefinitionVersionResponseDto> getCollectionDefinitionVersionsByKeyAndType(DefinitionType type, String key, String userId, String collectionId) -
getCollectionDefinitionTenantsByKeyAndType
-
addScopeEntriesToCollection
public void addScopeEntriesToCollection(String userId, String collectionId, List<CollectionScopeEntryDto> scopeUpdates) -
deleteScopeEntry
-
getAllConflictsOnScopeDeletion
public Set<ConflictedItemDto> getAllConflictsOnScopeDeletion(String userId, String collectionId, String scopeId) -
updateScopeEntry
public void updateScopeEntry(String userId, String collectionId, CollectionScopeEntryUpdateDto scopeUpdate, String scopeEntryId, boolean force) -
hasConflictsForCollectionScopeDelete
-
bulkDeleteCollectionScopes
-
getAvailableKeysAndTenantsFromCollectionScope
-