Class ObjectFactory

java.lang.Object
com.uc4.api.objects.ObjectFactory

public class ObjectFactory extends Object
Creates new tasks in Workflow without a check if there is an existing definition in the Automation Engine.
  • Constructor Details

    • ObjectFactory

      public ObjectFactory()
  • Method Details

    • createWorkflowTask

      public static JobPlanTask createWorkflowTask(UC4ObjectName name, 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 List<PromptElement> loadPromptElements(Element promptElementRoot, boolean isExecutionMode)
      Internal use, load promptElements
      Parameters:
      element - DOM element
      isExecutionMode - Execution Mode
      Returns:
      PromptElement
    • updateUC4Object

      protected UC4Object updateUC4Object(UC4Object obj, String idnr, String name, 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, 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, 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