public class AddJobPlanTask extends XMLRequest
Constructor and Description |
---|
AddJobPlanTask(UC4ObjectName objectName)
Constructs a
AddJobPlanTask using the specified UC4 Object name. |
AddJobPlanTask(UC4ObjectName objectName,
UC4Alias alias)
Constructs a
AddJobPlanTask using the specified UC4 Object name and alias. |
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
JobPlanTask |
getJobPlanTask()
Returns a JobPlan Task or
null if the task was not found. |
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
boolean |
isExternal()
Returns
true if this JobPlanTask is an external task. |
void |
setExternal(boolean external)
If
external is set to true an before the request is sent
the UC4 server returns an external JobPlan task. |
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public AddJobPlanTask(UC4ObjectName objectName)
AddJobPlanTask
using the specified UC4 Object name.objectName
- Name of the UC4 Objectpublic AddJobPlanTask(UC4ObjectName objectName, UC4Alias alias)
AddJobPlanTask
using the specified UC4 Object name and alias.objectName
- Name of the UC4 Objectalias
- Aliasprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
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 boolean isExternal()
true
if this JobPlanTask
is an external task.
The method setExternal
can be used to add a task as an external dependency.JobPlanTask
is an external taskpublic void setExternal(boolean external)
external
is set to true
an before the request is sent
the UC4 server returns an external JobPlan task.external
- Boolean containing true
if the task should be added as external depencdencypublic JobPlanTask getJobPlanTask()
null
if the task was not found.null
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
otherwise