Class QueryConverterImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl
- All Implemented Interfaces:
QueryConverter
Note that expressions are not serialized yet.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateObjectFilter
(ItemDefinition<?> objDef, SearchFilterType filterType) createObjectFilter
(Class<?> clazz, SearchFilterType filterType) createObjectQuery
(Class<?> clazz, QueryType queryType) createObjectQuery
(Class<?> clazz, SearchFilterType filterType) createQueryType
(ObjectQuery query) createSearchFilterType
(ObjectFilter filter) parseFilter
(@NotNull SearchFilterType filter, @NotNull ItemDefinition<?> def) parseFilter
(@NotNull SearchFilterType filter, @NotNull Class<?> clazz) parseFilter
(XNode xnode, Class<? extends Containerable> clazz) Used by XNodeProcessor and similar code that does not have complete schema for the filtervoid
parseFilterPreliminarily
(MapXNode xFilter, ParsingContext pc) Tries to parse as much from filter as possible, without knowing the definition of object(s) to which the filter will be applied.serializeFilter
(ObjectFilter filter)
-
Constructor Details
-
QueryConverterImpl
-
-
Method Details
-
parseFilter
public ObjectFilter parseFilter(XNode xnode, Class<? extends Containerable> clazz) throws SchemaException Used by XNodeProcessor and similar code that does not have complete schema for the filter- Specified by:
parseFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
parseFilter
public ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull Class<?> clazz) throws SchemaException - Specified by:
parseFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
parseFilter
public ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull ItemDefinition<?> def) throws SchemaException - Specified by:
parseFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
serializeFilter
- Specified by:
serializeFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
parseFilterPreliminarily
Tries to parse as much from filter as possible, without knowing the definition of object(s) to which the filter will be applied. It is used mainly to parse path specifications, in order to avoid namespace loss when serializing raw (unparsed) paths and QNames - see MID-1969.- Specified by:
parseFilterPreliminarily
in interfaceQueryConverter
- Throws:
SchemaException
-
createObjectQuery
- Specified by:
createObjectQuery
in interfaceQueryConverter
- Throws:
SchemaException
-
createObjectQuery
public ObjectQuery createObjectQuery(Class<?> clazz, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectQuery
in interfaceQueryConverter
- Throws:
SchemaException
-
createObjectFilter
public ObjectFilter createObjectFilter(Class<?> clazz, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
createObjectFilter
public ObjectFilter createObjectFilter(ItemDefinition<?> objDef, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectFilter
in interfaceQueryConverter
- Throws:
SchemaException
-
createQueryType
@Contract("null -> null; !null -> !null") public QueryType createQueryType(ObjectQuery query) throws SchemaException - Specified by:
createQueryType
in interfaceQueryConverter
- Throws:
SchemaException
-
createSearchFilterType
- Specified by:
createSearchFilterType
in interfaceQueryConverter
- Throws:
SchemaException
-