public abstract class SandboxAccess
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract void |
abortSandbox()
Abort the changes in the sandbox.
|
abstract RuleRepository |
accessRepository()
get a RuleRepository instance for accessing the sandbox.
|
abstract void |
commitSandbox()
Commit the changes in the sandbox so that they are visible outside
the sandbox.
|
abstract java.lang.String |
createSandbox(java.lang.String sandboxName)
Create a new sandbox.
|
abstract boolean |
isSandboxSupported()
Check if this repository has a sandbox feature.
|
abstract java.util.List |
listSandboxes()
Get a list of the names of existing sandboxes.
|
static SandboxAccess |
newInstance(RepositoryType type,
RepositoryContext context)
Create a SandboxAccess instance for the repository type and
configuration specified.
|
abstract void |
setSandboxName(java.lang.String sandboxName)
Sets the name of the sandbox to use.
|
public static SandboxAccess newInstance(RepositoryType type, RepositoryContext context) throws RepositoryException
type
- the repository type.context
- the repository initialization parameters.RepositoryException
- if an error occurs during initializationpublic abstract boolean isSandboxSupported()
public abstract java.util.List listSandboxes() throws RepositoryException
RepositoryException
- if an error occurs.public abstract java.lang.String createSandbox(java.lang.String sandboxName) throws RepositoryException
sandboxName
- the name of the new sandbox.RepositoryException
- if an error occurs.public abstract void commitSandbox() throws RepositoryException
RepositoryException
- if an error occurs.public abstract void abortSandbox() throws RepositoryException
RepositoryException
- if an error occurs.public abstract RuleRepository accessRepository() throws RepositoryException
RepositoryException
- if an error occurs.public abstract void setSandboxName(java.lang.String sandboxName) throws RepositoryException
sandboxName
- the name of the new sandbox.RepositoryException
- if an error occurs.