Class DefinitionReaderOS
java.lang.Object
io.camunda.optimize.service.db.os.reader.DefinitionReaderOS
- All Implemented Interfaces:
DefinitionReader
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.OpenSearchCondition.class)
public class DefinitionReaderOS
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
ConstructorsConstructorDescriptionDefinitionReaderOS(OptimizeOpenSearchClient osClient, ConfigurationService configurationService) -
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, Set<String> definitionKeys, boolean fullyImported, boolean withXml, boolean includeDeleted) <T extends DefinitionOptimizeResponseDto>
List<T> getDefinitions(DefinitionType type, org.opensearch.client.opensearch._types.query_dsl.BoolQuery filterQuery, boolean withXml) 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
-
DefinitionReaderOS
public DefinitionReaderOS(OptimizeOpenSearchClient osClient, ConfigurationService configurationService)
-
-
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, org.opensearch.client.opensearch._types.query_dsl.BoolQuery filterQuery, boolean withXml)
-