public abstract class SandboxRuntimeSupport
extends java.lang.Object
Constructor and Description |
---|
SandboxRuntimeSupport() |
Modifier and Type | Method and Description |
---|---|
SandboxStateInfo |
checkSandboxState(java.lang.String sandboxId)
Checks the state of a sandbox
|
abstract boolean |
enterUserSandbox(Sandbox sandbox)
Associates a sandbox with the current user.
|
abstract Sandbox |
exitUserSandbox()
Removes the sandbox associated with the current user.
|
static SandboxRuntimeSupport |
getInstance()
Gets the system default instance of this class.
|
abstract Sandbox |
getUserSandbox()
Gets the sandbox associated with the current user.
|
public static SandboxRuntimeSupport getInstance()
public abstract Sandbox getUserSandbox()
null
if there is no user session or no sandbox is associated with the
current sessionpublic abstract boolean enterUserSandbox(Sandbox sandbox)
sandbox
- the sandbox to be associated with the current userjava.lang.IllegalArgumentException
- if the given sandbox is nullpublic abstract Sandbox exitUserSandbox()
public SandboxStateInfo checkSandboxState(java.lang.String sandboxId)
sandboxId
- the ID of the sandboxnull
if the
sandbox does not exist or if the given sandbox ID is null