Class FacetParserHelper
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.facet.FacetHelper
-
- fr.gouv.vitam.common.database.parser.facet.FacetParserHelper
-
public class FacetParserHelper extends FacetHelper
Facet from Parser Helper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FacetParserHelper()
Construction
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Facet
dateRange(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter)
Transform facet jsonNode into a dateRange Facet objectstatic Facet
filters(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter)
Transform facet jsonNode in filters Facet objectstatic Facet
terms(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter)
Transform facet jsonNode in terms Facet object
-
-
-
Method Detail
-
terms
public static final Facet terms(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter) throws InvalidCreateOperationException, InvalidParseOperationException
Transform facet jsonNode in terms Facet object- Parameters:
facet
- facet nodeadapter
- adapter- Returns:
- terms Facet object
- Throws:
InvalidCreateOperationException
- error while creating terms FacetInvalidParseOperationException
- error in adapater
-
dateRange
public static final Facet dateRange(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter) throws InvalidCreateOperationException, InvalidParseOperationException
Transform facet jsonNode into a dateRange Facet object- Parameters:
facet
-adapter
-- Returns:
- Throws:
InvalidCreateOperationException
InvalidParseOperationException
-
filters
public static final Facet filters(com.fasterxml.jackson.databind.JsonNode facet, VarNameAdapter adapter) throws InvalidCreateOperationException, InvalidParseOperationException
Transform facet jsonNode in filters Facet object- Parameters:
facet
- facet nodeadapter
- adapter- Returns:
- filters Facet object
- Throws:
InvalidCreateOperationException
- error while creating terms FacetInvalidParseOperationException
- error in adapater
-
-