Class GlobalDatasParser
java.lang.Object
fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
fr.gouv.vitam.common.database.parser.request.GlobalDatasParser
- Direct Known Subclasses:
GlobalDatasDb
Configuration for Parser
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default limit for Request (sanity check)static final int
default limit scroll timeoutstatic int
Default limit for Request (sanity check)static final int
Default limit for number of projectionsFields inherited from class fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
LIMIT_LOAD, MAXDEPTH, NB_FACETS, NB_FILTERS, NB_PROJECTIONS, NB_ROOTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final com.fasterxml.jackson.databind.node.ArrayNode
getArray
(com.fasterxml.jackson.databind.JsonNode value) static final int
getJsonNodedepth
(com.fasterxml.jackson.databind.JsonNode jsonNode) calculate JsonNode depthstatic final Object
getValue
(com.fasterxml.jackson.databind.JsonNode value) static final void
sanityRequestCheck
(String arg) Check the Request if conforms to sanity checkMethods inherited from class fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
getDate, getLimitParameter, getLimitValue, getValueJsonNode, sanityCheck, sanityParameterCheck, sanityParametersCheck, sanityValueCheck, sanityValueCheck, sanityVariableNameCheck, setArrayValueFromList, setLimitParameter, setLimitValue
-
Field Details
-
DEFAULT_LIMIT_REQUEST
public static final int DEFAULT_LIMIT_REQUESTDefault limit for Request (sanity check)- See Also:
-
limitRequest
public static int limitRequestDefault limit for Request (sanity check) -
NB_ACTIONS
public static final int NB_ACTIONSDefault limit for number of projections- See Also:
-
DEFAULT_SCROLL_TIMEOUT
public static final int DEFAULT_SCROLL_TIMEOUTdefault limit scroll timeout- See Also:
-
-
Constructor Details
-
GlobalDatasParser
protected GlobalDatasParser()
-
-
Method Details
-
sanityRequestCheck
Check the Request if conforms to sanity check- Parameters:
arg
- String- Throws:
InvalidParseOperationException
- if the sanity check is in error
-
getJsonNodedepth
public static final int getJsonNodedepth(com.fasterxml.jackson.databind.JsonNode jsonNode) calculate JsonNode depth- Parameters:
jsonNode
- JsonNode- Returns:
- number of child of JsonNode
-
getValue
public static final Object getValue(com.fasterxml.jackson.databind.JsonNode value) throws InvalidParseOperationException - Parameters:
value
- JsonNode- Returns:
- the Object for Value
- Throws:
InvalidParseOperationException
- if value could not parse to JSON
-
getArray
public static final com.fasterxml.jackson.databind.node.ArrayNode getArray(com.fasterxml.jackson.databind.JsonNode value) throws InvalidParseOperationException - Parameters:
value
-- Returns:
- the ArrayNode for value
- Throws:
InvalidParseOperationException
- if value could not parse to JSON
-