public class AddScheduleMonitorTask extends XMLRequest
Constructor and Description |
---|
AddScheduleMonitorTask(UC4ObjectName name,
int parentIdnr)
Constructs a
AddScheduleMonitorTask request using the specified name
and add it to the parent task of given parentIdnr. |
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.
|
protected ScheduleMonitor.Task |
createTask(org.w3c.dom.Element taskElement,
ConnectionAttributes session,
boolean srcEH,
int runID,
com.uc4.util.XMLDocument doc)
Creates a task in the Schedule monitor.
|
ScheduleMonitor.Task |
getScheduleMonitorTask()
Returns a
ScheduleMonitor.Task which has been added to running schedule corresponding to given
parentIdnr. |
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.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public AddScheduleMonitorTask(UC4ObjectName name, int parentIdnr)
AddScheduleMonitorTask
request using the specified name
and add it to the parent task of given parentIdnr.
The UC4 Server returns a task description if a task with this name exists.
If an UC4 object with the specified name is not found a message box is returned.
The method getScheduleMonitorTask
can be used to get the returned
ScheduleMonitor.Task
name
- UC4ObjectName of the task object which should be added to the scheduleparentIdnr
- idnr of the parent schedule to which this new task is to be addedprotected 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
protected ScheduleMonitor.Task createTask(org.w3c.dom.Element taskElement, ConnectionAttributes session, boolean srcEH, int runID, com.uc4.util.XMLDocument doc)
taskElement
- XML Element of the tasksession
- Session InfosrcEH
- The schedule source inforunID
- The schedule run iddoc
- XMLDocument instancepublic ScheduleMonitor.Task getScheduleMonitorTask()
ScheduleMonitor.Task
which has been added to running schedule corresponding to given
parentIdnr.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