|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.common.QueryUtil
public class QueryUtil
Constructor Summary | |
---|---|
QueryUtil()
|
Method Summary | |
---|---|
static Element |
createAndFilter(Document doc,
Element... conditions)
|
static QueryType |
createAttributeQuery(PrismProperty<?> attribute,
QName objectClass,
ResourceType resourceType,
PrismContext prismContext)
|
static Element |
createEqualFilter(Document doc,
XPathHolder xpath,
Object object)
Creates "equal" filter segment for single-valued properties based on DOM representation. |
static Element |
createEqualFilter(Document doc,
XPathHolder xpath,
QName propertyName,
QName value)
Creates "equal" filter segment for single-valued properties with QName content. |
static Element |
createEqualFilter(Document doc,
XPathHolder xpath,
QName properyName,
String value)
Creates "equal" filter segment for single-valued properties with string content. |
static Element |
createEqualFilterFromElements(Document doc,
XPathHolder xpath,
List<?> values,
PrismContext prismContext)
Creates "equal" filter segment for multi-valued properties based on DOM representation. |
static Element |
createEqualRefFilter(Document doc,
XPathHolder xpath,
QName propertyName,
String oid)
Creates "equal" filter for object reference. |
static ObjectQuery |
createNameQuery(ObjectType object)
|
static ObjectQuery |
createNameQuery(PolyString name,
PrismContext prismContext)
|
static ObjectQuery |
createNameQuery(PolyStringType name,
PrismContext prismContext)
|
static Element |
createOrFilter(Document doc,
Element... conditions)
|
static QueryType |
createQuery(Element filter)
|
static QueryType |
createResourceAndAccountQuery(ResourceType resource,
QName objectClass,
String accountType)
|
static QueryType |
createResourceAndAccountQuery(String resourceOid,
QName objectClass,
String accountType)
|
static Element |
createSubstringFilter(Document document,
XPathHolder xpath,
QName propertyName,
String searchText)
|
static Element |
createTypeFilter(Document doc,
String uri)
Deprecated. |
static String |
dump(QueryType query)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryUtil()
Method Detail |
---|
@Deprecated public static Element createTypeFilter(Document doc, String uri)
public static Element createEqualFilterFromElements(Document doc, XPathHolder xpath, List<?> values, PrismContext prismContext) throws SchemaException
doc
- xpath
- property container xpath. may be null.values
-
JAXBException
SchemaException
public static Element createEqualFilter(Document doc, XPathHolder xpath, Object object) throws SchemaException
SchemaException
public static Element createEqualFilter(Document doc, XPathHolder xpath, QName properyName, String value) throws SchemaException
doc
- xpath
- property container xpath. may be null.value
-
JAXBException
SchemaException
public static Element createSubstringFilter(Document document, XPathHolder xpath, QName propertyName, String searchText) throws SchemaException
SchemaException
public static Element createEqualFilter(Document doc, XPathHolder xpath, QName propertyName, QName value) throws SchemaException
doc
- xpath
- property container xpath. may be null.value
-
JAXBException
SchemaException
public static Element createEqualRefFilter(Document doc, XPathHolder xpath, QName propertyName, String oid) throws SchemaException
doc
- xpath
- property container xpath. may be null.propertyName
- name of the reference property (e.g. "resourceRef")oid
- OID of the referenced object
JAXBException
SchemaException
public static Element createOrFilter(Document doc, Element... conditions)
public static Element createAndFilter(Document doc, Element... conditions)
public static ObjectQuery createNameQuery(PolyStringType name, PrismContext prismContext) throws SchemaException
SchemaException
public static ObjectQuery createNameQuery(PolyString name, PrismContext prismContext) throws SchemaException
SchemaException
public static ObjectQuery createNameQuery(ObjectType object) throws SchemaException
SchemaException
public static QueryType createQuery(Element filter)
public static QueryType createResourceAndAccountQuery(ResourceType resource, QName objectClass, String accountType) throws SchemaException
SchemaException
public static QueryType createResourceAndAccountQuery(String resourceOid, QName objectClass, String accountType) throws SchemaException
SchemaException
public static QueryType createAttributeQuery(PrismProperty<?> attribute, QName objectClass, ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static String dump(QueryType query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |