use of com.evolveum.prism.xml.ns._public.types_3 in project midpoint by Evolveum.
the class Main method createUserQuery2.
private static QueryType createUserQuery2(String username) throws JAXBException {
QueryType query = new QueryType();
SearchFilterType filter = new SearchFilterType();
PropertyComplexValueFilterClauseType fc = new PropertyComplexValueFilterClauseType();
ItemPathType path = new ItemPathType();
path.setValue("declare namespace c=\"http://midpoint.evolveum.com/xml/ns/public/common/common-3\"; c:name");
fc.setPath(path);
fc.getValue().add(username);
ObjectFactory factory = new ObjectFactory();
JAXBElement<PropertyComplexValueFilterClauseType> equal = factory.createEqual(fc);
JAXBContext jaxbContext = JAXBContext.newInstance("com.evolveum.midpoint.xml.ns._public.common.api_types_3:" + "com.evolveum.midpoint.xml.ns._public.common.common_3:" + "com.evolveum.prism.xml.ns._public.annotation_3:" + "com.evolveum.prism.xml.ns._public.query_3:" + "com.evolveum.prism.xml.ns._public.types_3:");
Marshaller marshaller = jaxbContext.createMarshaller();
DOMResult result = new DOMResult();
marshaller.marshal(equal, result);
filter.setFilterClause(((Document) result.getNode()).getDocumentElement());
query.setFilter(filter);
return query;
}
use of com.evolveum.prism.xml.ns._public.types_3 in project midpoint by Evolveum.
the class SchemaDebugUtil method shortDump.
public static void shortDump(StringBuilder sb, ObjectDeltaType deltaType) {
if (deltaType == null) {
sb.append("null");
return;
}
sb.append("delta(");
QName objectType = deltaType.getObjectType();
if (objectType == null) {
sb.append("null");
} else {
sb.append(objectType.getLocalPart());
}
sb.append(" ");
sb.append(deltaType.getOid()).append(" ");
sb.append(deltaType.getChangeType()).append(": ");
com.evolveum.prism.xml.ns._public.types_3.ObjectType objectToAdd = deltaType.getObjectToAdd();
if (objectToAdd != null) {
sb.append(prettyPrint(objectToAdd));
}
List<ItemDeltaType> itemDelta = deltaType.getItemDelta();
if (itemDelta != null && !itemDelta.isEmpty()) {
sb.append(prettyPrint(itemDelta));
}
sb.append(")");
}
Aggregations