Package com.uc4.communication.requests
Class GetExecuteOnce
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.GetExecuteOnce
Reads the settings of a task that is or will be started with "Execute - Once..."
-
Constructor Summary
ConstructorsConstructorDescriptionGetExecuteOnce(int runID) Reads the settings of a task which has already been started.GetExecuteOnce(UC4ObjectName name) Reads the default settings for a task that will be scheduled. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.getAlias()Returns the alias of the object or an empty instance if not set.Returns the scheduled start time if the task does not start immediately.getQueue()Returns the name of the queue object where the task runs.protected StringgetSrc()Returns the request source.Returns theTestOptionswhich are used when restarting the task ornullif theTestOptionsare not set.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.protected booleanThis method is used internally.booleanbooleanbooleanbooleanReturnstrueif the task waits a for manual release.Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
Constructor Details
-
GetExecuteOnce
Reads the default settings for a task that will be scheduled.- Parameters:
name- Name of the object
-
GetExecuteOnce
public GetExecuteOnce(int runID) Reads the settings of a task which has already been started.- Parameters:
runID- RunID of the task, must not be zero
-
-
Method Details
-
getSrc
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
handleContent
Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin classXMLRequest- Parameters:
doc- XML Documentsession- Info about the user session
-
getQueue
Returns the name of the queue object where the task runs.- Returns:
- Queue, never null
-
getAlias
Returns the alias of the object or an empty instance if not set.- Returns:
- Alias, never null
-
isWaitForManualRelease
public boolean isWaitForManualRelease()Returnstrueif the task waits a for manual release.- Returns:
- Manual release
-
getTimezone
- Returns:
- Name of the timezone object
-
isUseLogicalDate
public boolean isUseLogicalDate()- Returns:
- true if a logical date is used, false if not
-
getLogicalDateTime
- Returns:
- DateTime object of the logical date.
-
getExecutionDateTime
Returns the scheduled start time if the task does not start immediately.- Returns:
- Scheduled start time
-
isImmediately
public boolean isImmediately()- Returns:
- true if the task starts immediately, false if it has a start time.
-
getTestOptions
Returns theTestOptionswhich are used when restarting the task ornullif theTestOptionsare not set.- Returns:
- TestOptions
-
isExecuteAt
public boolean isExecuteAt()- Returns:
- true if the task starts immediately, false if it has a start time.
-