Package io.camunda.optimize.service
Class DefinitionService
java.lang.Object
io.camunda.optimize.service.DefinitionService
- All Implemented Interfaces:
ConfigurationReloadable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefinitionService(DefinitionReader definitionReader, DataSourceDefinitionAuthorizationService definitionAuthorizationService, TenantService tenantService, ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionbooleandefinitionExists(DefinitionType type, String definitionKey) extractFlowNodeIdAndNames(List<ProcessDefinitionOptimizeDto> definitions) extractUserTaskIdAndNames(List<ProcessDefinitionOptimizeDto> definitions) fetchDefinitionFlowNodeNamesAndIdsForProcessInstances(List<ProcessInstanceDto> processInstanceDtos) getCachedTenantToLatestDefinitionMap(DefinitionType type, String definitionKey) <T extends DefinitionOptimizeResponseDto>
Optional<T> getDefinition(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) getDefinitionsGroupedByTenant(String userId) getDefinitionTenants(DefinitionType type, String key, String userId, List<String> versions) getDefinitionTenants(DefinitionType type, String key, String userId, List<String> versions, Supplier<String> latestVersionSupplier) getDefinitionVersions(DefinitionType type, String key, String userId) getDefinitionVersions(DefinitionType type, String key, String userId, List<String> tenantIds) getDefinitionVersions(DefinitionType type, String key, List<String> tenantIds) getDefinitionWithAvailableTenants(DefinitionType type, String key, String userId) <T extends DefinitionOptimizeResponseDto>
Optional<T> getDefinitionWithXml(DefinitionType type, String userId, String definitionKey, String version, String tenantId) <T extends DefinitionOptimizeResponseDto>
Optional<T> getDefinitionWithXml(DefinitionType type, String userId, String definitionKey, List<String> definitionVersions, List<String> tenantIds) <T extends DefinitionOptimizeResponseDto>
Optional<T> getDefinitionWithXmlAsService(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) getFullyImportedDefinitions(DefinitionType definitionType, String userId) <T extends DefinitionOptimizeResponseDto>
List<T> getFullyImportedDefinitions(DefinitionType type, String userId, boolean withXml) getFullyImportedDefinitions(DefinitionType definitionType, Set<String> keys, List<String> tenantIds, String userId) getFullyImportedDefinitions(String userId) getLatestCachedDefinitionOnAnyTenant(DefinitionType type, String definitionKey) getLatestVersionToKey(DefinitionType type, String key) getProcessDefinitionWithTenants(String processDefinitionKey) <T extends DefinitionOptimizeResponseDto>
Optional<T> getProcessDefinitionWithXmlAsService(DefinitionType type, String definitionKey, String definitionVersion, String tenantId) prepareTenantListForDefinitionSearch(List<String> selectedTenantIds) voidreloadConfiguration(org.springframework.context.ApplicationContext context)
-
Field Details
-
TENANT_NOT_DEFINED
-
-
Constructor Details
-
DefinitionService
public DefinitionService(DefinitionReader definitionReader, DataSourceDefinitionAuthorizationService definitionAuthorizationService, TenantService tenantService, ConfigurationService configurationService)
-
-
Method Details
-
reloadConfiguration
public void reloadConfiguration(org.springframework.context.ApplicationContext context) - Specified by:
reloadConfigurationin interfaceConfigurationReloadable
-
getLatestVersionToKey
-
getDefinitionWithAvailableTenants
public Optional<DefinitionResponseDto> getDefinitionWithAvailableTenants(DefinitionType type, String key, String userId) -
getAllDefinitionsWithTenants
-
getProcessDefinitionWithTenants
public Optional<DefinitionWithTenantIdsDto> getProcessDefinitionWithTenants(String processDefinitionKey) -
getDefinitionVersions
public List<DefinitionVersionResponseDto> getDefinitionVersions(DefinitionType type, String key, String userId) -
getDefinitionVersions
public List<DefinitionVersionResponseDto> getDefinitionVersions(DefinitionType type, String key, String userId, List<String> tenantIds) -
getDefinitionVersions
public List<DefinitionVersionResponseDto> getDefinitionVersions(DefinitionType type, String key, List<String> tenantIds) -
getDefinitionTenants
-
getDefinitionTenants
-
getFullyImportedDefinitions
-
getFullyImportedDefinitions
public List<DefinitionResponseDto> getFullyImportedDefinitions(DefinitionType definitionType, String userId) -
getFullyImportedDefinitions
public List<DefinitionResponseDto> getFullyImportedDefinitions(DefinitionType definitionType, Set<String> keys, List<String> tenantIds, String userId) -
getDefinition
public <T extends DefinitionOptimizeResponseDto> Optional<T> getDefinition(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) -
getFullyImportedDefinitions
public <T extends DefinitionOptimizeResponseDto> List<T> getFullyImportedDefinitions(DefinitionType type, String userId, boolean withXml) -
getDefinitionsGroupedByTenant
-
getDefinitionWithXml
public <T extends DefinitionOptimizeResponseDto> Optional<T> getDefinitionWithXml(DefinitionType type, String userId, String definitionKey, String version, String tenantId) -
getDefinitionWithXml
public <T extends DefinitionOptimizeResponseDto> Optional<T> getDefinitionWithXml(DefinitionType type, String userId, String definitionKey, List<String> definitionVersions, List<String> tenantIds) -
getProcessDefinitionWithXmlAsService
public <T extends DefinitionOptimizeResponseDto> Optional<T> getProcessDefinitionWithXmlAsService(DefinitionType type, String definitionKey, String definitionVersion, String tenantId) -
getDefinitionWithXmlAsService
public <T extends DefinitionOptimizeResponseDto> Optional<T> getDefinitionWithXmlAsService(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) -
prepareTenantListForDefinitionSearch
-
extractFlowNodeIdAndNames
-
extractUserTaskIdAndNames
-
fetchDefinitionFlowNodeNamesAndIdsForProcessInstances
public Map<String,String> fetchDefinitionFlowNodeNamesAndIdsForProcessInstances(List<ProcessInstanceDto> processInstanceDtos) -
getLatestCachedDefinitionOnAnyTenant
public Optional<DefinitionOptimizeResponseDto> getLatestCachedDefinitionOnAnyTenant(DefinitionType type, String definitionKey) -
definitionExists
-
getCachedTenantToLatestDefinitionMap
public Map<String,DefinitionOptimizeResponseDto> getCachedTenantToLatestDefinitionMap(DefinitionType type, String definitionKey)
-