public final class ResourceBundleMergeHandlerHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAINLINE_MO |
static java.lang.String |
SANDBOX_BRANCH_POINT_MO |
static java.lang.String |
SANDBOX_MO |
Constructor and Description |
---|
ResourceBundleMergeHandlerHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
autoMerge(org.w3c.dom.Document document,
java.lang.String nonConflictKey,
ResourceBundleWrapper.KeyInfo conflictTextNote,
ResourceBundleMergeDiffDetails conflicts)
Resolves the soft conflict cases(automerge) that may exist between Mainline and Sandbox tip.
|
static boolean |
conflictMerge(org.w3c.dom.Document document,
org.w3c.dom.Document branchPointDocument,
ResourceBundleMergeResolverResult result,
java.lang.String conflictKey,
ResourceBundleWrapper.KeyInfo conflictTextNote)
Resolves the hard conflict cases that may exist between Mainline and Sandbox tip.
|
static java.util.Map<java.lang.String,ResourceBundleMergeDiffDetails> |
getCandidateMergeConflicts(ResourceBundleMergeDiffDetails MLDiff,
ResourceBundleMergeDiffDetails SBDiff)
Returns a Map containg the trans-unit key and the conflict details for that key after computing the delta between
the MainlineMO and SandboxTipMO
|
static ResourceBundleMergeDiffDetails |
getMOMapDiff(ResourceBundleMergeDiffDetails moInitial,
ResourceBundleMergeDiffDetails moToCompare)
Returns a data structure
ResourceBundleMergeDiffDetails after computing the delta between
the branchpoint MO and the MainlineMO or SandBoxTipMO |
static void |
logObjectMergeDetails(java.lang.String key,
ResourceBundleMergeDiffDetails conflicts,
int mode,
oracle.mds.core.MetadataObject mainlineMO,
ResourceBundleWrapper.KeyInfo SBPreMergeTextNote,
oracle.mds.core.MetadataObject sbMO)
Generates a report consisting of conflict/non-conflict changes done by the merge handler.
|
public static final java.lang.String SANDBOX_BRANCH_POINT_MO
public static final java.lang.String MAINLINE_MO
public static final java.lang.String SANDBOX_MO
public static ResourceBundleMergeDiffDetails getMOMapDiff(ResourceBundleMergeDiffDetails moInitial, ResourceBundleMergeDiffDetails moToCompare)
ResourceBundleMergeDiffDetails
after computing the delta between
the branchpoint MO and the MainlineMO or SandBoxTipMOmoInitial
- - MO to comapre againstmoToCompare
- - MO to be comparedResourceBundleMergeDiffDetails
containing the delta changes for all trans-unit keyspublic static java.util.Map<java.lang.String,ResourceBundleMergeDiffDetails> getCandidateMergeConflicts(ResourceBundleMergeDiffDetails MLDiff, ResourceBundleMergeDiffDetails SBDiff)
MLDiff
- - Mainline deltaSBDiff
- - Sandbox deltapublic static boolean conflictMerge(org.w3c.dom.Document document, org.w3c.dom.Document branchPointDocument, ResourceBundleMergeResolverResult result, java.lang.String conflictKey, ResourceBundleWrapper.KeyInfo conflictTextNote) throws java.lang.Exception
document
- - The document to be updated. It will be the Sandbox document retrieved from SandboxMOconflictKey
- - The trans-unit key for which the conflict needs to be resolved.conflictTextNote
- - The trans-unit <source> and <note> content, that will be used to update the Sandbox document. This is obtained from
mainline document.java.lang.Exception
- - In case of an exception to indicate the caller that the merge was not successfull so that the mergestatus can be set accordingly.public static boolean autoMerge(org.w3c.dom.Document document, java.lang.String nonConflictKey, ResourceBundleWrapper.KeyInfo conflictTextNote, ResourceBundleMergeDiffDetails conflicts) throws java.lang.Exception
document
- - The document to be updated. It will be the Sandbox document retrieved from SandboxMOnonConflictKey
- - The changed keys from mainline and sandbox , but sandbox keys are not processed as nothing to do in case of sandbox changes and retained as is.conflictTextNote
- - The changed <source> and <note> content from both mainline and sandbox, but sandbox content is not processed.conflicts
- - The conflict details which contains the delta and other details like conflict type, MO origin etc.java.lang.Exception
- - In case of an exception to indicate the caller that the merge was not successfull so that the mergestatus can be set accordingly.public static void logObjectMergeDetails(java.lang.String key, ResourceBundleMergeDiffDetails conflicts, int mode, oracle.mds.core.MetadataObject mainlineMO, ResourceBundleWrapper.KeyInfo SBPreMergeTextNote, oracle.mds.core.MetadataObject sbMO)
key
- - trans-unit key to reportconflicts
- - The conflict details which contains the delta and other details like conflict type, MO origin etc for a trans-unit keymode
- - The resolver mode set on the ResourceBundleMergeResolver(default being main wins).mainlineMO
- - Mainline MOSBPreMergeTextNote
- - Pre merge content of the sandbox MO to report the pre-refresh sandbox content.