Class TaskDataHelper

java.lang.Object
com.webmethods.caf.faces.data.task.impl.TaskDataHelper

public class TaskDataHelper extends Object
TaskDataHelper defines a collection of helper methods for ITaskData conversion.
  • Field Details

    • MAX_ARRAY_DIFF_ELEMENTS

      public static final int MAX_ARRAY_DIFF_ELEMENTS
      Max different elements in the array which may be different
      See Also:
    • SERIAL_OBJECT_KEY

      public static final String SERIAL_OBJECT_KEY
      serial object key
      See Also:
  • Constructor Details

    • TaskDataHelper

      public TaskDataHelper()
  • Method Details

    • cloneObjectToMap

      public static Object cloneObjectToMap(Object object, String[] properties) throws Exception
      Clones object to the Map implementation contains
      Parameters:
      object -
      properties - selected top level properties of an object will be cloned
      Returns:
      Throws:
      PortalException
      Exception
      See Also:
    • addMapOrder

      public static void addMapOrder(Map<String,Object> object)
      Stores the order of elements in the map in the "__fieldsOrder" element of type of String[]
    • cleanObjectMap

      public static void cleanObjectMap(Map<String,Object> object)
      Cleans object map from runtime artifacts. This is used when object map is returned to IS and thus
      Parameters:
      object - object map needs to be cleaned.
    • cloneObjectFromMap

      public static Object cloneObjectFromMap(Map<String,Object> map, Class<?> objectClass, String[] properties) throws Exception
      Clones an object from Map *
      Parameters:
      map -
      objectClass -
      properties - allowed properties to clone
      Returns:
      Throws:
      PortalException
      Exception
      See Also:
    • iDataToMap

      public static Map<String,Object> iDataToMap(com.wm.data.IData data) throws Exception
      Converts IS IData document type into generic java Map
      Parameters:
      data - IS IData
      Returns:
      map
      Throws:
      Exception
    • mapToIData

      public static com.wm.data.IData mapToIData(Map<String,Object> map) throws Exception
      Converts generic java Map into IS IData document type
      Throws:
      Exception