public final class DslQueryHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROJECTION_DSL
the projection part of DSL
|
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.JsonNode |
createGetByIdDSLSelectMultipleQuery(Map<String,String> projectionCriteriaMap)
Create GetById Select Multiple Query Dsl request that contains only projection.
|
static com.fasterxml.jackson.databind.JsonNode |
createSelectDSLQuery(Map<String,String> searchCriteriaMap) |
static com.fasterxml.jackson.databind.JsonNode |
createSelectElasticsearchDSLQuery(Map<String,Object> searchCriteriaMap) |
static com.fasterxml.jackson.databind.JsonNode |
createSingleQueryDSL(Map<String,Object> searchCriteriaMap)
generate the DSL query after receiving the search criteria
|
static com.fasterxml.jackson.databind.JsonNode |
createUpdateByIdDSLQuery(Map<String,com.fasterxml.jackson.databind.JsonNode> searchCriteriaMap,
Map<String,com.fasterxml.jackson.databind.JsonNode> updateRules) |
public static final String PROJECTION_DSL
public static com.fasterxml.jackson.databind.JsonNode createSingleQueryDSL(Map<String,Object> searchCriteriaMap) throws InvalidParseOperationException, InvalidCreateOperationException
searchCriteriaMap
- the map containing the criteriaInvalidParseOperationException
- if a parse exception is encounteredInvalidCreateOperationException
- if an Invalid create operation is encounteredpublic static com.fasterxml.jackson.databind.JsonNode createSelectDSLQuery(Map<String,String> searchCriteriaMap) throws InvalidParseOperationException, InvalidCreateOperationException
searchCriteriaMap
- Criteria received from The IHM screen Empty Keys or Value is not allowedInvalidParseOperationException
- thrown when an error occurred during parsingInvalidCreateOperationException
- thrown when an error occurred during creationpublic static com.fasterxml.jackson.databind.JsonNode createGetByIdDSLSelectMultipleQuery(Map<String,String> projectionCriteriaMap) throws InvalidParseOperationException, InvalidCreateOperationException
projectionCriteriaMap
- the given projection parametersInvalidParseOperationException
- null key or value parametersInvalidCreateOperationException
- queryDsl create operationpublic static com.fasterxml.jackson.databind.JsonNode createSelectElasticsearchDSLQuery(Map<String,Object> searchCriteriaMap) throws InvalidParseOperationException, InvalidCreateOperationException
searchCriteriaMap
- Criteria received from The IHM screen Empty Keys or Value is not allowedInvalidParseOperationException
- thrown when an error occurred during parsingInvalidCreateOperationException
- thrown when an error occurred during creationpublic static com.fasterxml.jackson.databind.JsonNode createUpdateByIdDSLQuery(Map<String,com.fasterxml.jackson.databind.JsonNode> searchCriteriaMap, Map<String,com.fasterxml.jackson.databind.JsonNode> updateRules) throws InvalidParseOperationException, InvalidCreateOperationException
searchCriteriaMap
- Criteria received from The IHM screen Empty Keys or Value is not allowedupdateRules
- rules that must be updated in the AU.InvalidParseOperationException
- thrown when an error occurred during parsingInvalidCreateOperationException
- thrown when an error occurred during creationCopyright © 2018 Vitam. All rights reserved.