Package oracle.rules.sdk2.repository
Class SandboxAccess
java.lang.Object
oracle.rules.sdk2.repository.SandboxAccess
Manage sandboxes and get access to metadata in a sandbox.
-
Method Summary
Modifier and TypeMethodDescriptionabstract voidAbort the changes in the sandbox.abstract RuleRepositoryget a RuleRepository instance for accessing the sandbox.abstract voidCommit the changes in the sandbox so that they are visible outside the sandbox.abstract StringcreateSandbox(String sandboxName) Create a new sandbox.abstract booleanCheck if this repository has a sandbox feature.abstract ListGet a list of the names of existing sandboxes.static SandboxAccessnewInstance(RepositoryType type, RepositoryContext context) Create a SandboxAccess instance for the repository type and configuration specified.abstract voidsetSandboxName(String sandboxName) Sets the name of the sandbox to use.
-
Method Details
-
newInstance
public static SandboxAccess newInstance(RepositoryType type, RepositoryContext context) throws RepositoryException Create a SandboxAccess instance for the repository type and configuration specified.- Parameters:
type- the repository type.context- the repository initialization parameters.- Returns:
- the SandboxAccess instance
- Throws:
RepositoryException- if an error occurs during initialization
-
isSandboxSupported
public abstract boolean isSandboxSupported()Check if this repository has a sandbox feature.- Returns:
- true if sandboxes are supported.
-
listSandboxes
Get a list of the names of existing sandboxes.- Returns:
- the list of sandbox names
- Throws:
RepositoryException- if an error occurs.
-
createSandbox
Create a new sandbox. On successful creation, the specified sandbox name is set in this SandboxAccess instance.- Parameters:
sandboxName- the name of the new sandbox.- Returns:
- the sandbox name
- Throws:
RepositoryException- if an error occurs.
-
commitSandbox
Commit the changes in the sandbox so that they are visible outside the sandbox. On a successful commit, the sandbox is destroyed.- Throws:
RepositoryException- if an error occurs.
-
abortSandbox
Abort the changes in the sandbox. This destroys the sandbox.- Throws:
RepositoryException- if an error occurs.
-
accessRepository
get a RuleRepository instance for accessing the sandbox.- Throws:
RepositoryException- if an error occurs.
-
setSandboxName
Sets the name of the sandbox to use.- Parameters:
sandboxName- the name of the new sandbox.- Throws:
RepositoryException- if an error occurs.
-