Class GlobalDatas
java.lang.Object
fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
- Direct Known Subclasses:
GlobalDatasParser
Main configuration for Query support
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault limit for loading resultstatic final intDefault max depth: should be 30 but let a great marginstatic final intDefault limit for number of facetsstatic final intDefault limit for number of filtersstatic final intDefault limit for number of projectionsstatic final intDefault limit for number of roots -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final com.fasterxml.jackson.databind.node.ObjectNodestatic intstatic intstatic final com.fasterxml.jackson.databind.JsonNodegetValueJsonNode(Object value) protected static final voidsanityCheck(String arg, int size) Check the String if conforms to sanity checkstatic final voidCheck the String if conforms to sanity check for small parametersstatic final voidsanityParametersCheck(String arg, int multipleParams) Check the String if conforms to sanity check for small parametersstatic final voidsanityValueCheck(String arg) Check the String if conforms to sanity checkstatic final voidsanityValueCheck(List<?> arg) Check the List of arguments if conforms to sanity checkstatic final voidCheck the Variable name if conforms to sanity checkstatic voidsetArrayValueFromList(com.fasterxml.jackson.databind.node.ArrayNode array, List<?> list) Helper to set Value from a List into an ArrayNodestatic voidsetLimitParameter(int limitParameter) static voidsetLimitValue(int limitValue)
-
Field Details
-
LIMIT_LOAD
public static final int LIMIT_LOADDefault limit for loading result- See Also:
-
NB_ROOTS
public static final int NB_ROOTSDefault limit for number of roots- See Also:
-
NB_FILTERS
public static final int NB_FILTERSDefault limit for number of filters- See Also:
-
NB_FACETS
public static final int NB_FACETSDefault limit for number of facets- See Also:
-
NB_PROJECTIONS
public static final int NB_PROJECTIONSDefault limit for number of projections- See Also:
-
MAXDEPTH
public static final int MAXDEPTHDefault max depth: should be 30 but let a great margin- See Also:
-
-
Constructor Details
-
GlobalDatas
protected GlobalDatas()
-
-
Method Details
-
sanityCheck
Check the String if conforms to sanity check- Parameters:
arg- argumentsize- limit- Throws:
InvalidParseOperationException- if the sanity check is in error
-
sanityValueCheck
Check the String if conforms to sanity check- Parameters:
arg- argument- Throws:
InvalidParseOperationException- if the sanity check is in error
-
sanityValueCheck
Check the List of arguments if conforms to sanity check- Parameters:
arg- argument as List- Throws:
InvalidParseOperationException- if the sanity check is in error
-
sanityParameterCheck
Check the String if conforms to sanity check for small parameters- Parameters:
arg- argument- Throws:
InvalidParseOperationException- if the sanity check is in error
-
sanityParametersCheck
public static final void sanityParametersCheck(String arg, int multipleParams) throws InvalidParseOperationException Check the String if conforms to sanity check for small parameters- Parameters:
arg- argumentmultipleParams- how many parameters- Throws:
InvalidParseOperationException- if the sanity check is in error
-
getDate
- Parameters:
date- param- Returns:
- the corresponding Date in Json format
- Throws:
IllegalArgumentException- if date is null
-
getValueJsonNode
public static final com.fasterxml.jackson.databind.JsonNode getValueJsonNode(Object value) throws InvalidCreateOperationException - Parameters:
value- of node- Returns:
- the JsonNode for Value
- Throws:
InvalidCreateOperationException- when object is not json
-
sanityVariableNameCheck
Check the Variable name if conforms to sanity check- Parameters:
arg- argument- Throws:
InvalidParseOperationException- if the sanity check is in errorIllegalArgumentException- if arg is null
-
getLimitValue
public static int getLimitValue()- Returns:
- the current LimitValue (sanity check)
-
setLimitValue
public static void setLimitValue(int limitValue) - Parameters:
limitValue- the new limit Value to set (sanity check)
-
getLimitParameter
public static int getLimitParameter()- Returns:
- the current LimitParameter (sanity check)
-
setLimitParameter
public static void setLimitParameter(int limitParameter) - Parameters:
limitParameter- the new limiteParameter to set (sanity check)
-
setArrayValueFromList
public static void setArrayValueFromList(com.fasterxml.jackson.databind.node.ArrayNode array, List<?> list) Helper to set Value from a List into an ArrayNode- Parameters:
array-list-
-