Class TaskDataHelper
java.lang.Object
com.webmethods.caf.faces.data.task.impl.TaskDataHelper
TaskDataHelper defines a collection of helper methods for
ITaskData
conversion.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Max different elements in the array which may be differentstatic final String
serial object key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMapOrder
(Map<String, Object> object) Stores the order of elements in the map in the "__fieldsOrder" element of type of String[]static void
cleanObjectMap
(Map<String, Object> object) Cleans object map from runtime artifacts.static Object
Clones an object from Map *static Object
cloneObjectToMap
(Object object, String[] properties) Clones object to the Map implementation containsiDataToMap
(com.wm.data.IData data) Converts IS IData document type into generic java Mapstatic com.wm.data.IData
mapToIData
(Map<String, Object> map) Converts generic java Map into IS IData document type
-
Field Details
-
MAX_ARRAY_DIFF_ELEMENTS
public static final int MAX_ARRAY_DIFF_ELEMENTSMax different elements in the array which may be different- See Also:
-
SERIAL_OBJECT_KEY
serial object key- See Also:
-
-
Constructor Details
-
TaskDataHelper
public TaskDataHelper()
-
-
Method Details
-
cloneObjectToMap
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
Stores the order of elements in the map in the "__fieldsOrder" element of type of String[] -
cleanObjectMap
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 ExceptionClones an object from Map *- Parameters:
map
-objectClass
-properties
- allowed properties to clone- Returns:
- Throws:
PortalException
Exception
- See Also:
-
iDataToMap
Converts IS IData document type into generic java Map- Parameters:
data
- IS IData- Returns:
- map
- Throws:
Exception
-
mapToIData
Converts generic java Map into IS IData document type- Throws:
Exception
-