public class ObjectQueryUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjectQueryUtil.FilterComponents |
Constructor and Description |
---|
ObjectQueryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertNotRaw(com.evolveum.midpoint.prism.query.ObjectFilter filter,
String message) |
static void |
assertPropertyOnly(com.evolveum.midpoint.prism.query.ObjectFilter filter,
String message) |
static <T extends ObjectType> |
createNameQuery(Class<T> clazz,
com.evolveum.midpoint.prism.PrismContext prismContext,
String name) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNameQuery(ObjectType object) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNameQuery(com.evolveum.prism.xml.ns._public.types_3.PolyStringType name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static <O extends ObjectType> |
createNameQuery(com.evolveum.midpoint.prism.PrismObject<O> object) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNameQuery(String name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNormNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createNormNameQuery(String name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
createObjectClassFilter(QName objectClass,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createOrigNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createOrigNameQuery(com.evolveum.prism.xml.ns._public.types_3.PolyStringType name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createOrigNameQuery(String name,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createResourceAndKind(String resourceOid,
ShadowKindType kind,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createResourceAndKindIntent(String resourceOid,
ShadowKindType kind,
String intent,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
createResourceAndKindIntentFilter(String resourceOid,
ShadowKindType kind,
String intent,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
createResourceAndObjectClassFilter(String resourceOid,
QName objectClass,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createResourceAndObjectClassQuery(String resourceOid,
QName objectClass,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
createResourceFilter(String resourceOid,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createResourceQuery(String resourceOid,
com.evolveum.midpoint.prism.PrismContext prismContext) |
static com.evolveum.midpoint.prism.query.ObjectQuery |
createRootOrgQuery(com.evolveum.midpoint.prism.PrismContext prismContext) |
static String |
dump(com.evolveum.prism.xml.ns._public.query_3.QueryType query) |
static ObjectQueryUtil.FilterComponents |
factorOutFilter(com.evolveum.midpoint.prism.query.ObjectFilter filter,
com.evolveum.midpoint.prism.path.ItemPath... paths) |
static ObjectQueryUtil.FilterComponents |
factorOutQuery(com.evolveum.midpoint.prism.query.ObjectQuery query,
com.evolveum.midpoint.prism.path.ItemPath... paths) |
static ObjectQueryUtil.FilterComponents |
factorOutQuery(com.evolveum.midpoint.prism.query.ObjectQuery query,
QName... names) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
filterAnd(com.evolveum.midpoint.prism.query.ObjectFilter origFilter,
com.evolveum.midpoint.prism.query.ObjectFilter additionalFilter)
Merges the two provided arguments into one AND filter in the most efficient way.
|
static com.evolveum.midpoint.prism.query.ObjectFilter |
filterOr(com.evolveum.midpoint.prism.query.ObjectFilter origFilter,
com.evolveum.midpoint.prism.query.ObjectFilter additionalFilter)
Merges the two provided arguments into one OR filter in the most efficient way.
|
static ResourceShadowDiscriminator |
getCoordinates(com.evolveum.midpoint.prism.query.ObjectFilter filter) |
static com.evolveum.midpoint.prism.PrismValue |
getValueFromQuery(com.evolveum.midpoint.prism.query.ObjectQuery query,
QName itemName) |
static <T extends com.evolveum.midpoint.prism.PrismValue> |
getValuesFromQuery(com.evolveum.midpoint.prism.query.ObjectQuery query,
QName itemName) |
static boolean |
hasAllDefinitions(com.evolveum.midpoint.prism.query.ObjectFilter filter) |
static boolean |
hasAllDefinitions(com.evolveum.midpoint.prism.query.ObjectQuery query) |
static boolean |
isAll(com.evolveum.midpoint.prism.query.ObjectFilter filter) |
static boolean |
isNone(com.evolveum.midpoint.prism.query.ObjectFilter filter) |
static com.evolveum.midpoint.prism.query.ObjectFilter |
simplify(com.evolveum.midpoint.prism.query.ObjectFilter filter) |
public static com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(String name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createOrigNameQuery(String name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createNormNameQuery(String name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(com.evolveum.prism.xml.ns._public.types_3.PolyStringType name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createOrigNameQuery(com.evolveum.prism.xml.ns._public.types_3.PolyStringType name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createOrigNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createNormNameQuery(com.evolveum.midpoint.prism.polystring.PolyString name, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(ObjectType object) throws SchemaException
SchemaException
public static <O extends ObjectType> com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(com.evolveum.midpoint.prism.PrismObject<O> object) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createResourceAndObjectClassQuery(String resourceOid, QName objectClass, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectFilter createResourceAndObjectClassFilter(String resourceOid, QName objectClass, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createResourceAndKindIntent(String resourceOid, ShadowKindType kind, String intent, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createResourceAndKind(String resourceOid, ShadowKindType kind, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectFilter createResourceAndKindIntentFilter(String resourceOid, ShadowKindType kind, String intent, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createResourceQuery(String resourceOid, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectFilter createResourceFilter(String resourceOid, com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectFilter createObjectClassFilter(QName objectClass, com.evolveum.midpoint.prism.PrismContext prismContext)
public static <T extends ObjectType> com.evolveum.midpoint.prism.query.ObjectQuery createNameQuery(Class<T> clazz, com.evolveum.midpoint.prism.PrismContext prismContext, String name) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectQuery createRootOrgQuery(com.evolveum.midpoint.prism.PrismContext prismContext) throws SchemaException
SchemaException
public static boolean hasAllDefinitions(com.evolveum.midpoint.prism.query.ObjectQuery query)
public static boolean hasAllDefinitions(com.evolveum.midpoint.prism.query.ObjectFilter filter)
public static void assertPropertyOnly(com.evolveum.midpoint.prism.query.ObjectFilter filter, String message)
public static void assertNotRaw(com.evolveum.midpoint.prism.query.ObjectFilter filter, String message)
public static String dump(com.evolveum.prism.xml.ns._public.query_3.QueryType query) throws SchemaException
SchemaException
public static com.evolveum.midpoint.prism.query.ObjectFilter filterAnd(com.evolveum.midpoint.prism.query.ObjectFilter origFilter, com.evolveum.midpoint.prism.query.ObjectFilter additionalFilter)
public static com.evolveum.midpoint.prism.query.ObjectFilter filterOr(com.evolveum.midpoint.prism.query.ObjectFilter origFilter, com.evolveum.midpoint.prism.query.ObjectFilter additionalFilter)
public static boolean isAll(com.evolveum.midpoint.prism.query.ObjectFilter filter)
public static boolean isNone(com.evolveum.midpoint.prism.query.ObjectFilter filter)
public static com.evolveum.midpoint.prism.query.ObjectFilter simplify(com.evolveum.midpoint.prism.query.ObjectFilter filter)
public static com.evolveum.midpoint.prism.PrismValue getValueFromQuery(com.evolveum.midpoint.prism.query.ObjectQuery query, QName itemName) throws SchemaException
SchemaException
public static <T extends com.evolveum.midpoint.prism.PrismValue> Collection<T> getValuesFromQuery(com.evolveum.midpoint.prism.query.ObjectQuery query, QName itemName) throws SchemaException
SchemaException
public static ResourceShadowDiscriminator getCoordinates(com.evolveum.midpoint.prism.query.ObjectFilter filter) throws SchemaException
SchemaException
public static ObjectQueryUtil.FilterComponents factorOutQuery(com.evolveum.midpoint.prism.query.ObjectQuery query, QName... names)
public static ObjectQueryUtil.FilterComponents factorOutQuery(com.evolveum.midpoint.prism.query.ObjectQuery query, com.evolveum.midpoint.prism.path.ItemPath... paths)
public static ObjectQueryUtil.FilterComponents factorOutFilter(com.evolveum.midpoint.prism.query.ObjectFilter filter, com.evolveum.midpoint.prism.path.ItemPath... paths)
Copyright © 2016 Evolveum. All rights reserved.