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
Constructors -
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 filtervoidparseFilterPreliminarily(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:
parseFilterin interfaceQueryConverter- Throws:
SchemaException
-
parseFilter
public ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull Class<?> clazz) throws SchemaException - Specified by:
parseFilterin interfaceQueryConverter- Throws:
SchemaException
-
parseFilter
public ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull ItemDefinition<?> def) throws SchemaException - Specified by:
parseFilterin interfaceQueryConverter- Throws:
SchemaException
-
serializeFilter
- Specified by:
serializeFilterin 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:
parseFilterPreliminarilyin interfaceQueryConverter- Throws:
SchemaException
-
createObjectQuery
- Specified by:
createObjectQueryin interfaceQueryConverter- Throws:
SchemaException
-
createObjectQuery
public ObjectQuery createObjectQuery(Class<?> clazz, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectQueryin interfaceQueryConverter- Throws:
SchemaException
-
createObjectFilter
public ObjectFilter createObjectFilter(Class<?> clazz, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectFilterin interfaceQueryConverter- Throws:
SchemaException
-
createObjectFilter
public ObjectFilter createObjectFilter(ItemDefinition<?> objDef, SearchFilterType filterType) throws SchemaException - Specified by:
createObjectFilterin interfaceQueryConverter- Throws:
SchemaException
-
createQueryType
@Contract("null -> null; !null -> !null") public QueryType createQueryType(ObjectQuery query) throws SchemaException - Specified by:
createQueryTypein interfaceQueryConverter- Throws:
SchemaException
-
createSearchFilterType
- Specified by:
createSearchFilterTypein interfaceQueryConverter- Throws:
SchemaException
-