Package com.uc4.communication.requests
Class GetExecuteOnce
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.GetExecuteOnce
-
public class GetExecuteOnce extends XMLRequest
Reads the settings of a task that is or will be started with "Execute - Once..."
-
-
Constructor Summary
Constructors Constructor Description GetExecuteOnce(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Creates the XML Document for the request.UC4Alias
getAlias()
Returns the alias of the object or an empty instance if not set.DateTime
getExecutionDateTime()
Returns the scheduled start time if the task does not start immediately.DateTime
getLogicalDateTime()
UC4ObjectName
getQueue()
Returns the name of the queue object where the task runs.protected java.lang.String
getSrc()
Returns the request source.ExecuteTestOptions
getTestOptions()
Returns theTestOptions
which are used when restarting the task ornull
if theTestOptions
are not set.UC4TimezoneName
getTimezone()
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
isAllowedInClientZero()
This method is used internally.boolean
isExecuteAt()
boolean
isImmediately()
boolean
isUseLogicalDate()
boolean
isWaitForManualRelease()
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 Detail
-
GetExecuteOnce
public GetExecuteOnce(UC4ObjectName name)
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 Detail
-
getSrc
protected java.lang.String 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, org.w3c.dom.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
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
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
public UC4ObjectName getQueue()
Returns the name of the queue object where the task runs.- Returns:
- Queue, never null
-
getAlias
public UC4Alias 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
public UC4TimezoneName getTimezone()
- Returns:
- Name of the timezone object
-
isUseLogicalDate
public boolean isUseLogicalDate()
- Returns:
- true if a logical date is used, false if not
-
getLogicalDateTime
public DateTime getLogicalDateTime()
- Returns:
- DateTime object of the logical date.
-
getExecutionDateTime
public DateTime 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
public ExecuteTestOptions 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.
-
-