public abstract static class SandboxState.Condition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SandboxState.Condition |
OPEN
Met when the sandbox state indicates the sandbox is open.
|
static SandboxState.Condition |
PUBLISHED
Met when the sandbox state indicates the sandbox is published.
|
static SandboxState.Condition |
PUBLISHING
Met when the sandbox state indicates the sandbox is in the process of
being published.
|
static SandboxState.Condition |
REFRESHING
Met when the sandbox state indicates the sandbox is in the process of
being refreshed.
|
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
eval(java.lang.String state)
Returns
true if the condition is met. |
abstract java.lang.String |
sql(java.lang.String stateColumn)
Returns the condition in SQL such as "='STATE1'", "like 'STATE1%'" or
"in ('STATE1','STATE2')".
|
public static final SandboxState.Condition REFRESHING
public static final SandboxState.Condition PUBLISHING
public static final SandboxState.Condition PUBLISHED
public static final SandboxState.Condition OPEN
public abstract boolean eval(java.lang.String state)
true
if the condition is met.state
- the sandbox state that determines if the condition is mettrue
if the condition is metjava.lang.NullPointerException
- if the given state is nullpublic abstract java.lang.String sql(java.lang.String stateColumn)
stateColumn
- the alias of the state column