public class TaskPromptSetContent extends XMLRequest implements java.lang.Iterable<PromptElement>
Constructor and Description |
---|
TaskPromptSetContent(PromptSet promptSet)
Preview of a prompt set object.
|
TaskPromptSetContent(PromptSetDefinition promptSetDef)
Deprecated.
Use TaskPromptSetContent(PromptSetDefinition promptSetDef, UC4Object obj) instead
|
TaskPromptSetContent(PromptSetDefinition promptSetDef,
ITaskItem task)
Creates a request to get the content of a PromptSet of a JOBP task.
|
TaskPromptSetContent(PromptSetDefinition promptSetDef,
JobPlanMonitor.Task task)
Creates a request to get the content of a PromptSet of a JOBP task that was executed.
|
TaskPromptSetContent(PromptSetDefinition promptSetDef,
java.lang.String idnr)
Creates a request to get the content of a PromptSet of an object.
|
TaskPromptSetContent(PromptSetDefinition promptSetDef,
UC4Object obj)
Creates a request to get the content of a PromptSet of an object.
|
TaskPromptSetContent(TaskPromptSetContent original,
PromptSetDefinition def)
Clone the given original TaskPromptSetContent for the given task, and using the given PromptSetDefinition
|
TaskPromptSetContent(TaskPromptSetName promptSetName,
int runID)
Creates a request to get the content of a PromptSet for execution.
|
TaskPromptSetContent(UC4ObjectName promptSetName,
int runID)
Deprecated.
Use the constructor
TaskPromptSetContent(TaskPromptSetName promptSetName, int runID)
instead.
|
TaskPromptSetContent(UC4ObjectName promptSetName,
ITaskItem task)
Creates a request to get the content of a PromptSet of a JOBP task.
|
Modifier and Type | Method and Description |
---|---|
void |
applyMissingDefinitions()
Elements missing in the promptset definition, but present in the prompt will be added
|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
PromptSetDefinition |
getPromptSetDef()
Returns the definition of the PromptSet.
|
java.lang.String |
getPromptSetID() |
UC4ObjectName |
getPromptSetName()
Returns the name of the PromptSet.
|
UC4HostName |
getRaAgentName()
Returns the name of the Agent if this is an RA panel.
|
java.lang.String |
getRaCaption()
Returns the caption of the tab if this is an RA prompt.
|
java.lang.String |
getRaJobtype()
Returns the job type if this is an RA panel.
|
java.lang.String |
getRaSubtype()
Returns the sub type of the Job if this is an RA panel.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
java.lang.String |
getTaskIdnr() |
java.lang.String |
getTaskSrc() |
java.lang.String |
getText()
Returns the caption of the prompt set.
|
java.lang.String |
getType()
Returns the type of this prompt.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
java.util.Iterator<PromptElement> |
iterator()
The returned Iterator can be used to set values of PromptElements the
execution of an executable object.
|
OCVPanel |
ocvValues()
This method provides access to the RA Job values.
|
int |
size()
Returns the number of PromptElements.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
@Deprecated public TaskPromptSetContent(UC4ObjectName promptSetName, int runID)
TaskPromptSetContent(TaskPromptSetName promptSetName, int runID)
instead.
promptSetName
- Name of the PromptSetrunID
- RunID of the taskpublic TaskPromptSetContent(PromptSet promptSet)
promptSet
- Prompt Setpublic TaskPromptSetContent(TaskPromptSetName promptSetName, int runID)
promptSetName
- Name of the PromptSetrunID
- RunID of the task@Deprecated public TaskPromptSetContent(PromptSetDefinition promptSetDef)
promptSetDef
- Prompt Set definitionpublic TaskPromptSetContent(PromptSetDefinition promptSetDef, UC4Object obj)
promptSetDef
- Prompt Set definitionobj
- UC4 Objectpublic TaskPromptSetContent(PromptSetDefinition promptSetDef, java.lang.String idnr)
promptSetDef
- Prompt Set definitionidnr
- the idnr of the object to be requestedpublic TaskPromptSetContent(PromptSetDefinition promptSetDef, ITaskItem task)
promptSetDef
- Prompt Set definitiontask
- Workflow taskpublic TaskPromptSetContent(PromptSetDefinition promptSetDef, JobPlanMonitor.Task task)
promptSetDef
- Prompt Set definitiontask
- The JobPlanMonitor taskpublic TaskPromptSetContent(UC4ObjectName promptSetName, ITaskItem task)
promptSetName
- Name of the promptSettask
- Workflow taskpublic TaskPromptSetContent(TaskPromptSetContent original, PromptSetDefinition def)
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public void applyMissingDefinitions()
promptsElements2
- public UC4HostName getRaAgentName()
null
public java.lang.String getRaJobtype()
null
is returned.null
if this is not an RA panelpublic java.lang.String getRaSubtype()
null
is returned.null
if this is not an RA panelpublic java.lang.String getRaCaption()
null
if this is not an RA panelpublic java.util.Iterator<PromptElement> iterator()
SubmitPrompt
is used to send the
values to the Automation Engine. It is not possible to remove
PromptElements by using the Iterator.remove()
method. An
Exception will be thrown in this case.iterator
in interface java.lang.Iterable<PromptElement>
PromptElement
public java.lang.String getText()
public OCVPanel ocvValues()
null
.null
if this prompt has not the type "RA"public UC4ObjectName getPromptSetName()
public PromptSetDefinition getPromptSetDef()
public int size()
public java.lang.String getType()
ocvValues()
can be used to read and modify values.public java.lang.String getPromptSetID()
protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwisepublic java.lang.String getTaskIdnr()
public java.lang.String getTaskSrc()