Class DefinitionReaderES
java.lang.Object
io.camunda.optimize.service.db.es.reader.DefinitionReaderES
- All Implemented Interfaces:
DefinitionReader
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.ElasticSearchCondition.class)
public class DefinitionReaderES
extends Object
implements DefinitionReader
-
Field Summary
Fields inherited from interface io.camunda.optimize.service.db.reader.DefinitionReader
ALL_DEFINITION_INDEXES, DEFINITION_KEY_AGGREGATION, DEFINITION_KEY_AND_TYPE_AGGREGATION, DEFINITION_KEY_AND_TYPE_AND_TENANT_AGGREGATION, DEFINITION_KEY_FILTER_AGGREGATION, DEFINITION_TYPE_AGGREGATION, ENGINE_AGGREGATION, NAME_AGGREGATION, TENANT_AGGREGATION, TENANT_NOT_DEFINED_VALUE, TOP_HITS_AGGREGATION, VERSION_AGGREGATION, VERSION_TAG_AGGREGATION -
Constructor Summary
ConstructorsConstructorDescriptionDefinitionReaderES(OptimizeElasticsearchClient esClient, ConfigurationService configurationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetDefinitionEngines(DefinitionType type, String definitionKey) <T extends DefinitionOptimizeResponseDto>
List<T> getDefinitions(DefinitionType type, boolean fullyImported, boolean withXml, boolean includeDeleted) <T extends DefinitionOptimizeResponseDto>
List<T> getDefinitions(DefinitionType type, co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.Builder filteredQuery, boolean withXml) <T extends DefinitionOptimizeResponseDto>
List<T> getDefinitions(DefinitionType type, Set<String> definitionKeys, boolean fullyImported, boolean withXml, boolean includeDeleted) getDefinitionVersions(DefinitionType type, String key, Set<String> tenantIds) getDefinitionWithAvailableTenants(DefinitionType type, String key, List<String> versions, Supplier<String> latestVersionSupplier) <T extends DefinitionOptimizeResponseDto>
Optional<T> getFirstFullyImportedDefinitionFromTenantsIfAvailable(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) <T extends DefinitionOptimizeResponseDto>
List<T> getFullyImportedDefinitions(DefinitionType type, boolean withXml) getFullyImportedDefinitionsWithTenantIds(DefinitionType type, Set<String> keys, Set<String> tenantIds) <T extends DefinitionOptimizeResponseDto>
List<T> getLatestFullyImportedDefinitionsFromTenantsIfAvailable(DefinitionType type, String definitionKey) getLatestVersionToKey(DefinitionType type, String key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.optimize.service.db.reader.DefinitionReader
resolveDefinitionClassFromType, resolveDefinitionKeyFieldFromType, resolveIndexNameForType, resolveVersionFieldFromType, resolveXmlFieldFromType
-
Constructor Details
-
DefinitionReaderES
public DefinitionReaderES(OptimizeElasticsearchClient esClient, ConfigurationService configurationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getDefinitionWithAvailableTenants
public Optional<DefinitionWithTenantIdsDto> getDefinitionWithAvailableTenants(DefinitionType type, String key) - Specified by:
getDefinitionWithAvailableTenantsin interfaceDefinitionReader
-
getDefinitionWithAvailableTenants
public Optional<DefinitionWithTenantIdsDto> getDefinitionWithAvailableTenants(DefinitionType type, String key, List<String> versions, Supplier<String> latestVersionSupplier) - Specified by:
getDefinitionWithAvailableTenantsin interfaceDefinitionReader
-
getFullyImportedDefinitionsWithTenantIds
public List<DefinitionWithTenantIdsDto> getFullyImportedDefinitionsWithTenantIds(DefinitionType type, Set<String> keys, Set<String> tenantIds) - Specified by:
getFullyImportedDefinitionsWithTenantIdsin interfaceDefinitionReader
-
getFullyImportedDefinitions
public <T extends DefinitionOptimizeResponseDto> List<T> getFullyImportedDefinitions(DefinitionType type, boolean withXml) - Specified by:
getFullyImportedDefinitionsin interfaceDefinitionReader
-
getFirstFullyImportedDefinitionFromTenantsIfAvailable
public <T extends DefinitionOptimizeResponseDto> Optional<T> getFirstFullyImportedDefinitionFromTenantsIfAvailable(DefinitionType type, String definitionKey, List<String> definitionVersions, List<String> tenantIds) - Specified by:
getFirstFullyImportedDefinitionFromTenantsIfAvailablein interfaceDefinitionReader
-
getLatestFullyImportedDefinitionsFromTenantsIfAvailable
public <T extends DefinitionOptimizeResponseDto> List<T> getLatestFullyImportedDefinitionsFromTenantsIfAvailable(DefinitionType type, String definitionKey) - Specified by:
getLatestFullyImportedDefinitionsFromTenantsIfAvailablein interfaceDefinitionReader
-
getDefinitionEngines
- Specified by:
getDefinitionEnginesin interfaceDefinitionReader
-
getDefinitionsGroupedByTenant
- Specified by:
getDefinitionsGroupedByTenantin interfaceDefinitionReader
-
getLatestVersionToKey
- Specified by:
getLatestVersionToKeyin interfaceDefinitionReader
-
getDefinitionVersions
public List<DefinitionVersionResponseDto> getDefinitionVersions(DefinitionType type, String key, Set<String> tenantIds) - Specified by:
getDefinitionVersionsin interfaceDefinitionReader
-
getDefinitions
public <T extends DefinitionOptimizeResponseDto> List<T> getDefinitions(DefinitionType type, boolean fullyImported, boolean withXml, boolean includeDeleted) - Specified by:
getDefinitionsin interfaceDefinitionReader
-
getDefinitions
public <T extends DefinitionOptimizeResponseDto> List<T> getDefinitions(DefinitionType type, Set<String> definitionKeys, boolean fullyImported, boolean withXml, boolean includeDeleted) - Specified by:
getDefinitionsin interfaceDefinitionReader
-
getDefinitions
public <T extends DefinitionOptimizeResponseDto> List<T> getDefinitions(DefinitionType type, co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.Builder filteredQuery, boolean withXml)
-