Class QueryConverterImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl
-
- All Implemented Interfaces:
QueryConverter
public class QueryConverterImpl extends Object implements QueryConverter
Note that expressions are not serialized yet.
-
-
Constructor Summary
Constructors Constructor Description QueryConverterImpl(@NotNull PrismContext prismContext)
-
Method Summary
-
-
-
Constructor Detail
-
QueryConverterImpl
public QueryConverterImpl(@NotNull @NotNull PrismContext prismContext)
-
-
Method Detail
-
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<? extends Containerable> clazz) throws SchemaException
- Specified by:
parseFilterin interfaceQueryConverter- Throws:
SchemaException
-
parseFilter
public ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull PrismContainerDefinition<?> def) throws SchemaException
- Specified by:
parseFilterin interfaceQueryConverter- Throws:
SchemaException
-
serializeFilter
public MapXNodeImpl serializeFilter(ObjectFilter filter) throws SchemaException
- Specified by:
serializeFilterin interfaceQueryConverter- Throws:
SchemaException
-
parseFilterPreliminarily
public void parseFilterPreliminarily(MapXNode xFilter, ParsingContext pc) throws SchemaException
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
public <C extends Containerable> ObjectQuery createObjectQuery(Class<C> clazz, QueryType queryType) throws SchemaException
- Specified by:
createObjectQueryin interfaceQueryConverter- Throws:
SchemaException
-
createObjectQuery
public <C extends Containerable> ObjectQuery createObjectQuery(Class<C> clazz, SearchFilterType filterType) throws SchemaException
- Specified by:
createObjectQueryin interfaceQueryConverter- Throws:
SchemaException
-
createObjectFilter
public <C extends Containerable> ObjectFilter createObjectFilter(Class<C> clazz, SearchFilterType filterType) throws SchemaException
- Specified by:
createObjectFilterin interfaceQueryConverter- Throws:
SchemaException
-
createObjectFilter
public <C extends Containerable> ObjectFilter createObjectFilter(PrismContainerDefinition<C> containerDefinition, SearchFilterType filterType) throws SchemaException
- Specified by:
createObjectFilterin interfaceQueryConverter- Throws:
SchemaException
-
createQueryType
public QueryType createQueryType(ObjectQuery query) throws SchemaException
- Specified by:
createQueryTypein interfaceQueryConverter- Throws:
SchemaException
-
createSearchFilterType
public SearchFilterType createSearchFilterType(ObjectFilter filter) throws SchemaException
- Specified by:
createSearchFilterTypein interfaceQueryConverter- Throws:
SchemaException
-
-