Skip to content

Commit

Permalink
Adapt repo tests after schema cleanup (MID-5693)
Browse files Browse the repository at this point in the history
These tests dealt with obsolete items, typically role.ownerRef.
  • Loading branch information
mederly committed Mar 11, 2020
1 parent 731a704 commit e1262a9
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 170 deletions.
Expand Up @@ -34,27 +34,25 @@ public interface QueryConverter {
* 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.
* @param xfilter
* @param pc
*/
void parseFilterPreliminarily(MapXNode xfilter, ParsingContext pc) throws SchemaException;

// 1b. Parsing queries

<O extends Objectable> ObjectQuery createObjectQuery(Class<O> clazz, QueryType queryType) throws SchemaException;
<C extends Containerable> ObjectQuery createObjectQuery(Class<C> clazz, QueryType queryType) throws SchemaException;

<O extends Objectable> ObjectQuery createObjectQuery(Class<O> clazz, SearchFilterType filterType) throws SchemaException;
<C extends Containerable> ObjectQuery createObjectQuery(Class<C> clazz, SearchFilterType filterType) throws SchemaException;

// 2. Serializing

// 2a. Serializing filters

SearchFilterType createSearchFilterType(ObjectFilter filter) throws SchemaException;

<O extends Objectable> ObjectFilter createObjectFilter(Class<O> clazz, SearchFilterType filterType)
<C extends Containerable> ObjectFilter createObjectFilter(Class<C> clazz, SearchFilterType filterType)
throws SchemaException;

<O extends Objectable> ObjectFilter createObjectFilter(PrismObjectDefinition<O> objectDefinition, SearchFilterType filterType)
<C extends Containerable> ObjectFilter createObjectFilter(PrismContainerDefinition<C> containerDefinition, SearchFilterType filterType)
throws SchemaException;

MapXNode serializeFilter(ObjectFilter filter) throws SchemaException;
Expand Down

0 comments on commit e1262a9

Please sign in to comment.