com.evolveum.midpoint.common.object
Class ObjectTypeUtil

java.lang.Object
  extended by com.evolveum.midpoint.common.object.ObjectTypeUtil

public class ObjectTypeUtil
extends java.lang.Object

Methods that would belong to the ObjectType class but cannot go there because of JAXB. There are also useful methods that would belong to other classes. But we don't want to create new class for every method ... if this goes beyond a reasonable degree, please refactor accordingly.

Author:
Radovan Semancik

Constructor Summary
ObjectTypeUtil()
           
 
Method Summary
static ObjectModificationType createModificationReplaceProperty(java.lang.String oid, javax.xml.namespace.QName propertyName, java.lang.Object propertyValue)
           
static ObjectReferenceType createObjectRef(ObjectType objectType)
           
static PropertyModificationType createPropertyModificationType(PropertyModificationTypeType changeType, XPathType xpathType, org.w3c.dom.Node node)
           
static PropertyModificationType createPropertyModificationType(PropertyModificationTypeType changetype, XPathType xpath, javax.xml.namespace.QName property, java.lang.Object value)
           
static java.lang.String dump(ObjectType object)
           
static java.util.List<java.lang.String> extractOids(java.util.List<? extends ObjectType> objects, java.util.List<? extends ObjectReferenceType> refs)
           
static ObjectReferenceType findRef(java.lang.String oid, java.util.List<ObjectReferenceType> refs)
           
static java.lang.Object toShortString(ObjectReferenceType objectRef)
           
static java.lang.String toShortString(ObjectType object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTypeUtil

public ObjectTypeUtil()
Method Detail

extractOids

public static java.util.List<java.lang.String> extractOids(java.util.List<? extends ObjectType> objects,
                                                           java.util.List<? extends ObjectReferenceType> refs)

findRef

public static ObjectReferenceType findRef(java.lang.String oid,
                                          java.util.List<ObjectReferenceType> refs)

createPropertyModificationType

public static PropertyModificationType createPropertyModificationType(PropertyModificationTypeType changeType,
                                                                      XPathType xpathType,
                                                                      org.w3c.dom.Node node)

createPropertyModificationType

public static PropertyModificationType createPropertyModificationType(PropertyModificationTypeType changetype,
                                                                      XPathType xpath,
                                                                      javax.xml.namespace.QName property,
                                                                      java.lang.Object value)

createModificationReplaceProperty

public static ObjectModificationType createModificationReplaceProperty(java.lang.String oid,
                                                                       javax.xml.namespace.QName propertyName,
                                                                       java.lang.Object propertyValue)

toShortString

public static java.lang.String toShortString(ObjectType object)

dump

public static java.lang.String dump(ObjectType object)

toShortString

public static java.lang.Object toShortString(ObjectReferenceType objectRef)

createObjectRef

public static ObjectReferenceType createObjectRef(ObjectType objectType)


Copyright © 2011 evolveum. All Rights Reserved.