|
||||||||||
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 org.w3c.dom.Element |
createAndFilter(org.w3c.dom.Document doc,
org.w3c.dom.Element... conditions)
|
static QueryType |
createAttributeQuery(PrismProperty<?> attribute,
javax.xml.namespace.QName objectClass,
ResourceType resourceType,
PrismContext prismContext)
|
static org.w3c.dom.Element |
createEqualFilter(org.w3c.dom.Document doc,
XPathHolder xpath,
java.lang.Object object)
Creates "equal" filter segment for single-valued properties based on DOM representation. |
static org.w3c.dom.Element |
createEqualFilter(org.w3c.dom.Document doc,
XPathHolder xpath,
javax.xml.namespace.QName propertyName,
javax.xml.namespace.QName value)
Creates "equal" filter segment for single-valued properties with QName content. |
static org.w3c.dom.Element |
createEqualFilter(org.w3c.dom.Document doc,
XPathHolder xpath,
javax.xml.namespace.QName properyName,
java.lang.String value)
Creates "equal" filter segment for single-valued properties with string content. |
static org.w3c.dom.Element |
createEqualFilterFromElements(org.w3c.dom.Document doc,
XPathHolder xpath,
java.util.List<?> values,
PrismContext prismContext)
Creates "equal" filter segment for multi-valued properties based on DOM representation. |
static org.w3c.dom.Element |
createEqualRefFilter(org.w3c.dom.Document doc,
XPathHolder xpath,
javax.xml.namespace.QName propertyName,
java.lang.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 org.w3c.dom.Element |
createOrFilter(org.w3c.dom.Document doc,
org.w3c.dom.Element... conditions)
|
static QueryType |
createQuery(org.w3c.dom.Element filter)
|
static QueryType |
createResourceAndAccountQuery(ResourceType resource,
javax.xml.namespace.QName objectClass,
java.lang.String accountType)
|
static QueryType |
createResourceAndAccountQuery(java.lang.String resourceOid,
javax.xml.namespace.QName objectClass,
java.lang.String accountType)
|
static org.w3c.dom.Element |
createSubstringFilter(org.w3c.dom.Document document,
XPathHolder xpath,
javax.xml.namespace.QName propertyName,
java.lang.String searchText)
|
static org.w3c.dom.Element |
createTypeFilter(org.w3c.dom.Document doc,
java.lang.String uri)
Deprecated. |
static java.lang.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 org.w3c.dom.Element createTypeFilter(org.w3c.dom.Document doc, java.lang.String uri)
public static org.w3c.dom.Element createEqualFilterFromElements(org.w3c.dom.Document doc, XPathHolder xpath, java.util.List<?> values, PrismContext prismContext) throws SchemaException
doc
- xpath
- property container xpath. may be null.values
-
javax.xml.bind.JAXBException
SchemaException
public static org.w3c.dom.Element createEqualFilter(org.w3c.dom.Document doc, XPathHolder xpath, java.lang.Object object) throws SchemaException
SchemaException
public static org.w3c.dom.Element createEqualFilter(org.w3c.dom.Document doc, XPathHolder xpath, javax.xml.namespace.QName properyName, java.lang.String value) throws SchemaException
doc
- xpath
- property container xpath. may be null.value
-
javax.xml.bind.JAXBException
SchemaException
public static org.w3c.dom.Element createSubstringFilter(org.w3c.dom.Document document, XPathHolder xpath, javax.xml.namespace.QName propertyName, java.lang.String searchText) throws SchemaException
SchemaException
public static org.w3c.dom.Element createEqualFilter(org.w3c.dom.Document doc, XPathHolder xpath, javax.xml.namespace.QName propertyName, javax.xml.namespace.QName value) throws SchemaException
doc
- xpath
- property container xpath. may be null.value
-
javax.xml.bind.JAXBException
SchemaException
public static org.w3c.dom.Element createEqualRefFilter(org.w3c.dom.Document doc, XPathHolder xpath, javax.xml.namespace.QName propertyName, java.lang.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
javax.xml.bind.JAXBException
SchemaException
public static org.w3c.dom.Element createOrFilter(org.w3c.dom.Document doc, org.w3c.dom.Element... conditions)
public static org.w3c.dom.Element createAndFilter(org.w3c.dom.Document doc, org.w3c.dom.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(org.w3c.dom.Element filter)
public static QueryType createResourceAndAccountQuery(ResourceType resource, javax.xml.namespace.QName objectClass, java.lang.String accountType) throws SchemaException
SchemaException
public static QueryType createResourceAndAccountQuery(java.lang.String resourceOid, javax.xml.namespace.QName objectClass, java.lang.String accountType) throws SchemaException
SchemaException
public static QueryType createAttributeQuery(PrismProperty<?> attribute, javax.xml.namespace.QName objectClass, ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static java.lang.String dump(QueryType query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |