Package com.uc4.api.objects
Class ObjectFactory
- java.lang.Object
-
- com.uc4.api.objects.ObjectFactory
-
public class ObjectFactory extends java.lang.Object
Creates new tasks in Workflow without a check if there is an existing definition in the Automation Engine.
-
-
Constructor Summary
Constructors Constructor Description ObjectFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CockpitDesign
createCockpitDesign(com.uc4.util.XMLDocument doc)
Internal use, creates a CockpitDesign object.protected DocuContainer
createDocuContainer(com.uc4.util.XMLDocument doc)
Internal use, creates a new docu containerstatic JobPlanTask
createExternalWorkflowTask(UC4ObjectName name, UC4ObjectName externalParent)
Creates a new external Workflow task.protected ObjectAuthorizations
createObjectAuthorizations(com.uc4.util.XMLDocument doc)
Internal use, creates a ObjectAuthorizations objectprotected TimeZoneAttributes
createTimeZoneAttributes(com.uc4.util.XMLDocument doc)
Internal use, creates a TimeZoneAttributes object.static JobPlanTask
createWorkflowTask(UC4ObjectName name, java.lang.String objectType)
Creates a new Workflow task.protected void
incModCnt(UC4Object obj)
Internal use to increment the modification count of an UC4Object.protected java.util.List<PromptElement>
loadPromptElements(org.w3c.dom.Element promptElementRoot, boolean isExecutionMode)
Internal use, load promptElementsprotected void
saveObjectAuthorizations(com.uc4.util.XMLDocument doc, org.w3c.dom.Element element, ObjectAuthorizations authorizations)
Internal use to save the ObjectAuthorizations as SetObjectPropertiesRequest.protected void
setModCnt(UC4Object obj, java.lang.String modCount)
Internal use to set the modification count of an UC4Object.protected UC4Object
updateUC4Object(UC4Object obj, java.lang.String idnr, java.lang.String name, java.lang.String modcnt)
Internal use, update idnr, name and modcnt of an UC4Object.
-
-
-
Method Detail
-
createWorkflowTask
public static JobPlanTask createWorkflowTask(UC4ObjectName name, java.lang.String objectType)
Creates a new Workflow task. This method does not check if the object exists in the Automation Engine.- Parameters:
name
- Name of the taskobjectType
- Object type- Returns:
- Workflow task
-
createExternalWorkflowTask
public static JobPlanTask createExternalWorkflowTask(UC4ObjectName name, UC4ObjectName externalParent)
Creates a new external Workflow task. This method does not check if the object exists in the Automation Engine.- Parameters:
name
- Name of the taskexternalParent
- Name of the parent- Returns:
- Workflow task
-
loadPromptElements
protected java.util.List<PromptElement> loadPromptElements(org.w3c.dom.Element promptElementRoot, boolean isExecutionMode)
Internal use, load promptElements- Parameters:
element
- DOM elementisExecutionMode
- Execution Mode- Returns:
- PromptElement
-
updateUC4Object
protected UC4Object updateUC4Object(UC4Object obj, java.lang.String idnr, java.lang.String name, java.lang.String modcnt)
Internal use, update idnr, name and modcnt of an UC4Object.- Parameters:
object
-idnr
-name
-modcnt
-- Returns:
- UC4Object
-
createObjectAuthorizations
protected ObjectAuthorizations createObjectAuthorizations(com.uc4.util.XMLDocument doc)
Internal use, creates a ObjectAuthorizations object- Parameters:
doc
- XMLDocument- Returns:
-
saveObjectAuthorizations
protected void saveObjectAuthorizations(com.uc4.util.XMLDocument doc, org.w3c.dom.Element element, ObjectAuthorizations authorizations)
Internal use to save the ObjectAuthorizations as SetObjectPropertiesRequest.- Parameters:
doc
-element
-authorizations
-
-
incModCnt
protected void incModCnt(UC4Object obj)
Internal use to increment the modification count of an UC4Object.- Parameters:
obj
- UC4Object
-
setModCnt
protected void setModCnt(UC4Object obj, java.lang.String modCount)
Internal use to set the modification count of an UC4Object.- Parameters:
obj
- UC4ObjectmodCount
- Modification count
-
createCockpitDesign
protected CockpitDesign createCockpitDesign(com.uc4.util.XMLDocument doc)
Internal use, creates a CockpitDesign object.- Parameters:
doc
- XMLDocmuent- Returns:
- CockpitDesign
-
createDocuContainer
protected DocuContainer createDocuContainer(com.uc4.util.XMLDocument doc)
Internal use, creates a new docu container- Parameters:
doc
- XMLDocument- Returns:
- DocuContainer
-
createTimeZoneAttributes
protected TimeZoneAttributes createTimeZoneAttributes(com.uc4.util.XMLDocument doc)
Internal use, creates a TimeZoneAttributes object.- Parameters:
doc
- XMLDocument- Returns:
- TimeZoneAttributes
-
-