public abstract class MdsObjectMergeSupport
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MdsObjectMergeSupport.MdsObjectMergeException
Thrown when object merge process is disrupted.
|
static class |
MdsObjectMergeSupport.MdsObjectMergeProxy
A proxy of the controller of an ongoing object merge process.
|
static class |
MdsObjectMergeSupport.PendingInputException
Thrown when external input is required by the object merge process.
|
static class |
MdsObjectMergeSupport.UnexpectedErrorsException
Thrown when unexpected errors occur during the object merge process.
|
static class |
MdsObjectMergeSupport.UnresolvableConflictsException
Thrown when conflicts cannot be resolved by the object merge process.
|
Modifier and Type | Field and Description |
---|---|
static MetadataEnvironmentShell.Variable<SandboxConflictResolutionHint> |
RESOLUTION_HINT
A variable that stores the hint of how conflicts should be resolved.
|
Constructor and Description |
---|
MdsObjectMergeSupport() |
Modifier and Type | Method and Description |
---|---|
static MdsObjectMergeSupport |
getInstance()
Returns default instance of this class.
|
void |
invokeObjectMerge(Sandbox sandbox,
MdsCommonRepository repositoryObj,
java.util.Collection<java.lang.String> appIds)
Invokes API to auto merge the conflicting changes - aka Object Merge for
the requested repository of the sandbox.
|
boolean |
isObjectMergeEnabled()
Return true if object merge should be attempted, merge handlers will not be called when this returns false.
|
MdsObjectMergeSupport.MdsObjectMergeProxy |
merge(java.lang.String mdsSandboxName,
oracle.mds.naming.Namespace storeLocator)
Initiates the object merge process with
RESOLUTION_HINT set to
SandboxConflictResolutionHint.MAINLINE_FORCED . |
MdsObjectMergeSupport.MdsObjectMergeProxy |
merge(java.lang.String mdsSandboxName,
oracle.mds.naming.Namespace storeLocator,
MetadataEnvironmentShell.Variables variables)
Initiates the object merge process for a sandbox.
|
public static final MetadataEnvironmentShell.Variable<SandboxConflictResolutionHint> RESOLUTION_HINT
public boolean isObjectMergeEnabled()
public MdsObjectMergeSupport.MdsObjectMergeProxy merge(java.lang.String mdsSandboxName, oracle.mds.naming.Namespace storeLocator) throws MdsObjectMergeSupport.UnexpectedErrorsException, MdsObjectMergeSupport.UnresolvableConflictsException, MdsObjectMergeSupport.PendingInputException, MdsObjectMergeSupport.MdsObjectMergeException
RESOLUTION_HINT
set to
SandboxConflictResolutionHint.MAINLINE_FORCED
.mdsSandboxName
- the name of the MDS sandboxstoreLocator
- the namespace to locate the sandboxMdsObjectMergeSupport.UnexpectedErrorsException
- if unexpected errors occur during the
processMdsObjectMergeSupport.UnresolvableConflictsException
- if there are conflicts that cannot
be resolved by the processMdsObjectMergeSupport.PendingInputException
- if the process cannot continue without
external inputMdsObjectMergeSupport.MdsObjectMergeException
- if any error occurs when initiating the
processpublic MdsObjectMergeSupport.MdsObjectMergeProxy merge(java.lang.String mdsSandboxName, oracle.mds.naming.Namespace storeLocator, MetadataEnvironmentShell.Variables variables) throws MdsObjectMergeSupport.UnexpectedErrorsException, MdsObjectMergeSupport.UnresolvableConflictsException, MdsObjectMergeSupport.PendingInputException, MdsObjectMergeSupport.MdsObjectMergeException
mdsSandboxName
- the name of the MDS sandboxstoreLocator
- the namespace to locate the sandboxvariables
- variables that configure the process; null
if the default configuration is to be usedMdsObjectMergeSupport.UnexpectedErrorsException
- if unexpected errors occur during the
processMdsObjectMergeSupport.UnresolvableConflictsException
- if there are conflicts that cannot
be resolved by the processMdsObjectMergeSupport.PendingInputException
- if the process cannot continue without
external inputMdsObjectMergeSupport.MdsObjectMergeException
- if any error occurs when initiating the
processpublic void invokeObjectMerge(Sandbox sandbox, MdsCommonRepository repositoryObj, java.util.Collection<java.lang.String> appIds) throws SandboxException
sandbox
- - Sandbox
objectappIds
- - application identifiers to invoke the object merge in the
context of each application.SandboxException
- if an error occurs during merge. The actual
error may be retrieved via getCause()
.public static MdsObjectMergeSupport getInstance()