Package com.uc4.api.objects
Class ObjectFactory
java.lang.Object
com.uc4.api.objects.ObjectFactory
Creates new tasks in Workflow without a check if there is an existing definition in the Automation Engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CockpitDesigncreateCockpitDesign(com.uc4.util.XMLDocument doc) Internal use, creates a CockpitDesign object.protected DocuContainercreateDocuContainer(com.uc4.util.XMLDocument doc) Internal use, creates a new docu containerstatic JobPlanTaskcreateExternalWorkflowTask(UC4ObjectName name, UC4ObjectName externalParent) Creates a new external Workflow task.protected ObjectAuthorizationscreateObjectAuthorizations(com.uc4.util.XMLDocument doc) Internal use, creates a ObjectAuthorizations objectprotected TimeZoneAttributescreateTimeZoneAttributes(com.uc4.util.XMLDocument doc) Internal use, creates a TimeZoneAttributes object.static JobPlanTaskcreateWorkflowTask(UC4ObjectName name, String objectType) Creates a new Workflow task.protected voidInternal use to increment the modification count of an UC4Object.protected List<PromptElement>loadPromptElements(Element promptElementRoot, boolean isExecutionMode) Internal use, load promptElementsprotected voidsaveObjectAuthorizations(com.uc4.util.XMLDocument doc, Element element, ObjectAuthorizations authorizations) Internal use to save the ObjectAuthorizations as SetObjectPropertiesRequest.protected voidInternal use to set the modification count of an UC4Object.protected UC4ObjectupdateUC4Object(UC4Object obj, String idnr, String name, String modcnt) Internal use, update idnr, name and modcnt of an UC4Object.
-
Constructor Details
-
ObjectFactory
public ObjectFactory()
-
-
Method Details
-
createWorkflowTask
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 List<PromptElement> loadPromptElements(Element promptElementRoot, boolean isExecutionMode) Internal use, load promptElements- Parameters:
element- DOM elementisExecutionMode- Execution Mode- Returns:
- PromptElement
-
updateUC4Object
Internal use, update idnr, name and modcnt of an UC4Object.- Parameters:
object-idnr-name-modcnt-- Returns:
- UC4Object
-
createObjectAuthorizations
Internal use, creates a ObjectAuthorizations object- Parameters:
doc- XMLDocument- Returns:
-
saveObjectAuthorizations
protected void saveObjectAuthorizations(com.uc4.util.XMLDocument doc, Element element, ObjectAuthorizations authorizations) Internal use to save the ObjectAuthorizations as SetObjectPropertiesRequest.- Parameters:
doc-element-authorizations-
-
incModCnt
Internal use to increment the modification count of an UC4Object.- Parameters:
obj- UC4Object
-
setModCnt
Internal use to set the modification count of an UC4Object.- Parameters:
obj- UC4ObjectmodCount- Modification count
-
createCockpitDesign
Internal use, creates a CockpitDesign object.- Parameters:
doc- XMLDocmuent- Returns:
- CockpitDesign
-
createDocuContainer
Internal use, creates a new docu container- Parameters:
doc- XMLDocument- Returns:
- DocuContainer
-
createTimeZoneAttributes
Internal use, creates a TimeZoneAttributes object.- Parameters:
doc- XMLDocument- Returns:
- TimeZoneAttributes
-