Class 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 Detail

      • ObjectFactory

        public ObjectFactory()
    • 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 task
        objectType - 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 task
        externalParent - 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 element
        isExecutionMode - 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 - UC4Object
        modCount - 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