com.evolveum.midpoint.common
Class Utils

java.lang.Object
  extended by com.evolveum.midpoint.common.Utils

public class Utils
extends Object

Author:
Igor Farinic

Constructor Summary
Utils()
           
 
Method Summary
static String cleanupUtf(String bad)
          Removing non-printable UTF characters from the string.
static void copyPropertiesSilent(Object target, Object source)
           
static Element fillPropertyReference(String resolve)
           
static String getPropertyName(String name)
           
static String getPropertySilent(Object object, String property)
           
static PropertyReferenceListType getResolveResourceList()
           
static boolean isValidXmlCodepoint(int cp)
          According to XML specification, section 2.2: http://www.w3.org/TR/REC-xml/
static void unresolveResource(ResourceObjectShadowType shadow)
           
static void unresolveResourceForAccounts(List<? extends ResourceObjectShadowType> shadows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getPropertyName

public static String getPropertyName(String name)

getPropertySilent

public static String getPropertySilent(Object object,
                                       String property)

copyPropertiesSilent

public static void copyPropertiesSilent(Object target,
                                        Object source)

unresolveResource

public static void unresolveResource(ResourceObjectShadowType shadow)

unresolveResourceForAccounts

public static void unresolveResourceForAccounts(List<? extends ResourceObjectShadowType> shadows)

fillPropertyReference

public static Element fillPropertyReference(String resolve)

getResolveResourceList

public static PropertyReferenceListType getResolveResourceList()

cleanupUtf

public static String cleanupUtf(String bad)
Removing non-printable UTF characters from the string. This is not really used now. It was done as a kind of prototype for filters. But may come handy and it in fact tests that the pattern is doing what expected, so it may be useful.

Parameters:
bad - string with bad chars
Returns:
string without bad chars

isValidXmlCodepoint

public static boolean isValidXmlCodepoint(int cp)
According to XML specification, section 2.2: http://www.w3.org/TR/REC-xml/

Parameters:
c -
Returns:


Copyright © 2013 evolveum. All Rights Reserved.