Package com.uc4.api.objects
Class UC4Object
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- Direct Known Subclasses:
AgentAssignment
,Calendar
,Client
,Cockpit
,CodeTable
,ConsoleEvent
,Dashboard
,DatabaseConnection
,DatabaseEvent
,Documentation
,FileEvent
,FileTransfer
,Group
,Host
,HostGroup
,Include
,Job
,JobPlan
,Login
,Notification
,OutputFilter
,Period
,PromptSet
,PSRemoteTaskManager
,Queue
,RAConnection
,RASolution
,RuleEvent
,SAPConnection
,SAPQueueManager
,Schedule
,Script
,Server
,ServiceLevelObjective
,Storage
,Stylesheet
,Sync
,TimeEvent
,TimeZone
,User
,UserGroup
,Variable
,WorkflowIF
,WorkflowLoop
,XRequest
public abstract class UC4Object extends java.lang.Object
This is the base class of all the Automation Engine objects.
-
-
Constructor Summary
Constructors Constructor Description UC4Object()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DocuContainer
docu()
This method provides access to the text and structured documentation of an object.java.lang.String
getAccess()
Returns if this object is opened read only.java.lang.String
getIdnr()
Returns the ID of the object.int
getModCount()
Returns the modification count of the object.java.lang.String
getName()
Returns the name of the object.java.lang.String
getType()
Returns the type of the object, for example JOBP, VARA or SCRI.abstract boolean
isExecutable()
Returnstrue
if this Object can be executed.boolean
isOldVersion()
Returnstrue
if the opened object is actually an older version of an object.void
load(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Fills the object from a XML document.void
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo, boolean override)
Fills the XML document with the values from the object.void
validate()
Validates the object.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the object.- Returns:
- name
-
getIdnr
public java.lang.String getIdnr()
Returns the ID of the object.- Returns:
- ID
-
getType
public java.lang.String getType()
Returns the type of the object, for example JOBP, VARA or SCRI.- Returns:
- type
-
docu
public DocuContainer docu()
This method provides access to the text and structured documentation of an object.- Returns:
- Documentation
-
getAccess
public java.lang.String getAccess()
Returns if this object is opened read only.- Returns:
- String containing the access field
-
getModCount
public int getModCount()
Returns the modification count of the object.- Returns:
- modification count
-
isExecutable
public abstract boolean isExecutable()
Returnstrue
if this Object can be executed.- Returns:
- true if the Object can be executed, false if not.
-
validate
public void validate() throws java.io.InvalidObjectException
Validates the object. If the object is not valid anInvalidObjectException
is thrown.- Throws:
java.io.InvalidObjectException
- If the object is not valid
-
load
public void load(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Fills the object from a XML document.- Parameters:
doc
- XML Documentsession
- Session information
-
store
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo, boolean override)
Fills the XML document with the values from the object.- Parameters:
doc
- XML documentrequest
- Request elementsessionInfo
- Information about the current sessionoverride
- Override existing object
-
isOldVersion
public boolean isOldVersion()
Returnstrue
if the opened object is actually an older version of an object.- Returns:
- true if the opened object is actually an older version of an object.
-
-