public final class MergeUtils
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASSNAME | 
| static boolean | isResolverSet | 
| static java.lang.String | NAME | 
| static java.lang.String | NAMESEPARATOR | 
| Constructor and Description | 
|---|
| MergeUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | checkIfConnDiffers(ReferenceDetails initialMOConn,
                  ReferenceDetails moToCompareConn)Checks if there is a conflict in refernce elements among two MO's | 
| static ReferenceListType | createReferenceListType(org.w3c.dom.Document doc)Returns the ReferenceListType after parsing the doc | 
| static ReferenceListType | getAllReferencesFromDocument(org.w3c.dom.Document document)Returns all the refernces for a given Document | 
| static java.lang.String | getConnectionAsString(java.lang.String Key,
                     org.w3c.dom.Document doc) | 
| static ReferenceDetails | getConnectionDetails(java.lang.String conflictKey,
                    ConnectionsMergeDiffDetails sbRef)Returns the ReferenceDetails for a connection from the diff of SB and MO | 
| static ReferenceDetails | getConnectionDetailsFromMO(java.lang.String conflictKey,
                          org.w3c.dom.Document doc)Returns the ReferenceDetails for a connection from the doc | 
| static java.util.Map<java.lang.String,java.lang.String> | getConnectionNameAndClassName(java.lang.String regex,
                             java.lang.String searchString)Unmangales the unique connection name using the separator | 
| static ConnectionsMergeResolver | getConnectionsMergeResolver()Returns the Connections merge resolver. | 
| static java.lang.String | getDocumentASString(org.w3c.dom.Node node)Returns the string representation of the xml node | 
| static org.w3c.dom.Node | getReferenceElement(java.lang.String connName,
                   org.w3c.dom.Document doc)Returns the reference node for a given connection | 
| static java.lang.String | getUniqueConnectionNameInADocument(java.lang.String connName,
                                  java.lang.String className)Returns the unique connection name inside a document by concating
 the reference name and the reference classname using a separator | 
| static boolean | isConnectionsMergeResolverSet()Checks if the Connections merge resolver is set in ADfSessionOptions | 
| static boolean | isNewReference(ReferenceListType references,
              java.lang.String connName)Checks if the connection is a new connection | 
| static ConnectionsMergeDiffDetails | parse(org.w3c.dom.Document document,
     java.lang.String moName,
     java.lang.String moOrigin)Parse the document and store the connection details in ConnectionsMergeDiffDetails data structure. | 
public static final java.lang.String NAME
public static final java.lang.String CLASSNAME
public static boolean isResolverSet
public static final java.lang.String NAMESEPARATOR
public static ConnectionsMergeDiffDetails parse(org.w3c.dom.Document document, java.lang.String moName, java.lang.String moOrigin)
document - Document to parsemoName - Name of the MOmoOrigin - Origin of the MOpublic static ReferenceListType getAllReferencesFromDocument(org.w3c.dom.Document document)
document - Document to parsepublic static ReferenceListType createReferenceListType(org.w3c.dom.Document doc)
doc - Document to parsepublic static org.w3c.dom.Node getReferenceElement(java.lang.String connName,
                                                   org.w3c.dom.Document doc)
connName - name of the connectiondoc - Document to parsepublic static boolean checkIfConnDiffers(ReferenceDetails initialMOConn, ReferenceDetails moToCompareConn)
initialMOConn - - Reference object to be compared againstmoToCompareConn - - Reference object to be comparedpublic static ConnectionsMergeResolver getConnectionsMergeResolver()
public static ReferenceDetails getConnectionDetails(java.lang.String conflictKey, ConnectionsMergeDiffDetails sbRef)
conflictKey - - Connection name having conflictsbRef - - differantiated connection ref object to be mergedspublic static ReferenceDetails getConnectionDetailsFromMO(java.lang.String conflictKey, org.w3c.dom.Document doc)
conflictKey - Connection name having conflictdoc - Document to parsepublic static java.lang.String getUniqueConnectionNameInADocument(java.lang.String connName,
                                                                  java.lang.String className)
connName - Refrence nameclassName - Reference classnamepublic static java.util.Map<java.lang.String,java.lang.String> getConnectionNameAndClassName(java.lang.String regex,
                                                                                             java.lang.String searchString)
regex - The separatorsearchString - the Unique connection namepublic static boolean isNewReference(ReferenceListType references, java.lang.String connName)
references - List of all referencesconnName - Connectionname to be checked forpublic static boolean isConnectionsMergeResolverSet()
public static java.lang.String getDocumentASString(org.w3c.dom.Node node)
node - Node to be represented as stringpublic static java.lang.String getConnectionAsString(java.lang.String Key,
                                                     org.w3c.dom.Document doc)