public class AdfMdeTesterTask
extends java.lang.Object
AdfMdeTester
. Subclasses should
override perform
to implement a task. Utility methods are
provided for implementations to inspect the current metadata environment.
Factory methods are provided for common tasks such as creating a sandbox
playground.Constructor and Description |
---|
AdfMdeTesterTask()
Creates a task.
|
Modifier and Type | Method and Description |
---|---|
static AdfMdeTesterTask |
destroySandboxPlayground(java.lang.String name)
Returns a new task that destroys a sandbox playground.
|
static java.lang.String |
getCurrentADFSessionOptionsInfo()
Collects the information of the current
ADFSessionOptions
object and returns it as a String. |
static java.lang.String |
getMetadataEnvironmentInfo()
Collects the information of the current metadta environment and returns it
as a String.
|
static AdfMdeTesterTask |
newSandboxPlayground(java.lang.String name,
SandboxConstraints constraints,
java.lang.String... features)
Returns a new task that creates a sandbox playground with arbitrary
constraints.
|
static AdfMdeTesterTask |
newSiteSandboxPlayground(java.lang.String name,
java.lang.String siteCcName,
java.lang.String siteCcValue,
java.util.List<java.lang.String> features)
Returns a new task that creates a new sandbox playground.
|
AdfMdeTesterResult |
perform(AdfMdeTesterResult lastTaskResult)
Performs the task.
|
public AdfMdeTesterResult perform(AdfMdeTesterResult lastTaskResult) throws java.lang.Exception
lastTaskResult
- the result from the last task. This argument is
never null.java.lang.Exception
- if any error occurspublic static final java.lang.String getCurrentADFSessionOptionsInfo()
ADFSessionOptions
object and returns it as a String.ADFSessionOptions
objectpublic static final java.lang.String getMetadataEnvironmentInfo()
public static AdfMdeTesterTask newSiteSandboxPlayground(java.lang.String name, java.lang.String siteCcName, java.lang.String siteCcValue, java.util.List<java.lang.String> features)
name
- the name of the sandbox playgroundsiteCcName
- the name of the MDS site customization classsiteCcValue
- the value of the MDS site customization classfeatures
- the sandboxed features to be enabledpublic static AdfMdeTesterTask newSandboxPlayground(java.lang.String name, SandboxConstraints constraints, java.lang.String... features)
name
- the name of the sandbox playgroundconstraints
- the sandbox constraints; null
to create a
sandbox with no default constraintsfeatures
- the sandboxed features to be enabledpublic static AdfMdeTesterTask destroySandboxPlayground(java.lang.String name)
name
- the name of the sandbox playground; null
if the
name of the sandbox playground should come from the previous
result