public class MdsCommonRepository extends SandboxedRepository
SandboxedRepository
implementation for the default MDS store
configured in the application.
Other Mds based repostiories may also extend this class.Modifier and Type | Class and Description |
---|---|
static class |
MdsCommonRepository.MdsRepositoryInfo
Abstract class to supply the MDS Store details when MdsCommonRepository is
exteded by another MDS based Repository such globalEss.
|
Modifier | Constructor and Description |
---|---|
|
MdsCommonRepository() |
protected |
MdsCommonRepository(java.lang.String name,
MdsCommonRepository.MdsRepositoryInfo repoInfo)
Protected constructor for sub classes to suppy the MDS Repository
information
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
branch(Sandbox sandbox,
java.lang.String sourceBaseLine)
Branches the objects for a sandbox so that future modifications to the
sandbox will not affect the original repository.
|
void |
destroy(Sandbox sandbox)
Destroys a sandbox.
|
ChangeSet |
getChanges(Sandbox sandbox)
Gets the changes made in a sandbox.
|
static java.lang.String |
getCreationLabelForSandbox(java.lang.String sandboxName) |
SandboxTransaction |
getPendingTransaction(Sandbox sandbox,
java.lang.String transactionId)
Gets the pending transaction of a sandbox operation.
|
static java.lang.String |
getPostMergeLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getPostMergeUndoLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getPreCertifiedLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getPreMergeLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getPreMergeUndoLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getRefreshLabelForSandbox(java.lang.String sandboxName) |
static java.lang.String |
getTimeSuffix() |
void |
mergeConflicts(Sandbox sandbox) |
java.lang.String |
prePublish(Sandbox sandbox)
Invoked prior to
publish(Sandbox) for the repository to
prepare for the upcoming publishing operation. |
UndoableChanges |
publish(Sandbox sandbox)
Merges changes in a sandbox into the repository mainline.
|
UndoableChanges |
refresh(Sandbox sandbox,
java.lang.String targetBaseline)
Merges changes from a repository baseline into the sandbox.
|
branch, getAvailableProviders, getAvailableProviders, getBranchId, getId, getInstance, getInstance, getLastUpdateDate, getName, getState, isRefreshNeeded, publish, publishCompleted, refreshCompleted, setProgress, test, test, toString, warn
public MdsCommonRepository()
protected MdsCommonRepository(java.lang.String name, MdsCommonRepository.MdsRepositoryInfo repoInfo)
name
- - User friendly repository namerepoInfo
- - repository info objectpublic java.lang.String branch(Sandbox sandbox, java.lang.String sourceBaseLine) throws SandboxException
SandboxedRepository
branch
in class SandboxedRepository
sandbox
- the sandboxsourceBaseLine
- the baseline which the sandbox is based on. The
baseline is usually the latest certified baselineSandboxException
- if an error occursSandboxedRepository.refresh(oracle.adf.share.sandbox.Sandbox, String)
public UndoableChanges refresh(Sandbox sandbox, java.lang.String targetBaseline) throws MergeConflictsException, SandboxException
SandboxedRepository
refresh
in class SandboxedRepository
sandbox
- the sandboxtargetBaseline
- the target baseline; null
if the target
baseline should be the tip of the mainlinenull
if there is no changeMergeConflictsException
- if any conflict occurs during the mergeSandboxException
- if an error occurspublic SandboxTransaction getPendingTransaction(Sandbox sandbox, java.lang.String transactionId)
SandboxedRepository
getPendingTransaction
in class SandboxedRepository
sandbox
- the sandbox that resulted in the pending transactiontransactionId
- the transaction IDnull
if such transaction
does not existpublic void mergeConflicts(Sandbox sandbox) throws SandboxException
SandboxException
public UndoableChanges publish(Sandbox sandbox) throws MergeConflictsException, SandboxException
SandboxedRepository
publish
in class SandboxedRepository
sandbox
- the sandboxnull
if there is no changeMergeConflictsException
- if any conflict occurs during the mergeSandboxException
- if an error occurspublic ChangeSet getChanges(Sandbox sandbox)
SandboxedRepository
getChanges
in class SandboxedRepository
sandbox
- the sandboxnull
if no changes have been madepublic void destroy(Sandbox sandbox)
SandboxedRepository
destroy
in class SandboxedRepository
sandbox
- the sandboxpublic java.lang.String prePublish(Sandbox sandbox)
SandboxedRepository
publish(Sandbox)
for the repository to
prepare for the upcoming publishing operation. A rollback label may be
returned if the runtime should read from this label instead of the latest
certified label during publishing.prePublish
in class SandboxedRepository
sandbox
- the sandbox to be publishednull
if the runtime should continue to read from the
latest certified labelpublic static java.lang.String getCreationLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getRefreshLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getPreCertifiedLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getPreMergeLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getPostMergeLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getPreMergeUndoLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getPostMergeUndoLabelForSandbox(java.lang.String sandboxName)
public static java.lang.String getTimeSuffix()