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 void
createRequest
(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 String
getSrc()
Returns the request source.Returns theTestOptions
which are used when restarting the task ornull
if theTestOptions
are not set.protected void
handleContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.protected boolean
This method is used internally.boolean
boolean
boolean
boolean
Returnstrue
if 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:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Description copied from class:XMLRequest
This method is used internally. Tests if thisXMLRequest
is allowed in client 0. The default implementation returnsfalse
, subclasses may override.- Overrides:
isAllowedInClientZero
in classXMLRequest
- Returns:
true
if this request is allowed in client 0,false
otherwise
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in 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:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in 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()Returnstrue
if 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 theTestOptions
which are used when restarting the task ornull
if theTestOptions
are not set.- Returns:
- TestOptions
-
isExecuteAt
public boolean isExecuteAt()- Returns:
- true if the task starts immediately, false if it has a start time.
-