@Test public void testMatchEqualEmptyAgainstEmptyItem() throws Exception{ PrismObject user = PrismTestUtil.parseObject(PrismInternalTestUtil.USER_JACK_FILE_XML); ObjectFilter filter = QueryBuilder.queryFor(UserType.class, PrismTestUtil.getPrismContext()) .item(UserType.F_LOCALITY).isNull() .buildFilter(); boolean match = ObjectQuery.match(user, filter, matchingRuleRegistry); AssertJUnit.assertTrue("filter does not match object", match); }
public static <T extends Objectable> boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException{ return filter.match(object.getValue(), matchingRuleRegistry); }
ObjectQuery implements DebugDumpable, Serializable { public static <T extends Objectable> boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException{ return filter.match(object.getValue(), matchingRuleRegistry); } }
ObjectQuery implements DebugDumpable, Serializable { public static <T extends Objectable> boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException{ return filter.match(object.getValue(), matchingRuleRegistry); }  }
ObjectQuery implements DebugDumpable, Serializable { public static <T extends Objectable> boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException{ return filter.match(object.getValue(), matchingRuleRegistry); }  ObjectFilter getFilter(); void setFilter(ObjectFilter filter); void setPaging(ObjectPaging paging); ObjectPaging getPaging(); boolean isAllowPartialResults(); void setAllowPartialResults(boolean allowPartialResults); boolean isUseNewQueryInterpreter(); void setUseNewQueryInterpreter(boolean useNewQueryInterpreter); static ObjectQuery createObjectQuery(ObjectFilter filter); static ObjectQuery createObjectQuery(XNode condition, ObjectFilter filter); static ObjectQuery createObjectQuery(ObjectPaging paging); static ObjectQuery createObjectQuery(ObjectFilter filter, ObjectPaging paging); static boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry); static boolean match(Containerable object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry); ObjectQuery clone(); ObjectQuery cloneEmpty(); @Override String debugDump(); @Override String debugDump(int indent); @Override String toString(); void addFilter(ObjectFilter objectFilter); Integer getOffset(); Integer getMaxSize(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") boolean equals(Object o); boolean equivalent(Object o); boolean equals(Object o, boolean exact); @Override int hashCode(); }
ObjectQuery implements DebugDumpable, Serializable { public static <T extends Objectable> boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry) throws SchemaException{ return filter.match(object.getValue(), matchingRuleRegistry); }  ObjectFilter getFilter(); void setFilter(ObjectFilter filter); void setPaging(ObjectPaging paging); ObjectPaging getPaging(); boolean isAllowPartialResults(); void setAllowPartialResults(boolean allowPartialResults); boolean isUseNewQueryInterpreter(); void setUseNewQueryInterpreter(boolean useNewQueryInterpreter); static ObjectQuery createObjectQuery(ObjectFilter filter); static ObjectQuery createObjectQuery(XNode condition, ObjectFilter filter); static ObjectQuery createObjectQuery(ObjectPaging paging); static ObjectQuery createObjectQuery(ObjectFilter filter, ObjectPaging paging); static boolean match(PrismObject<T> object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry); static boolean match(Containerable object, ObjectFilter filter, MatchingRuleRegistry matchingRuleRegistry); ObjectQuery clone(); ObjectQuery cloneEmpty(); @Override String debugDump(); @Override String debugDump(int indent); @Override String toString(); void addFilter(ObjectFilter objectFilter); Integer getOffset(); Integer getMaxSize(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") boolean equals(Object o); boolean equivalent(Object o); boolean equals(Object o, boolean exact); @Override int hashCode();  }