Modifier and Type | Field and Description |
---|---|
static int |
MAX_ARRAY_DIFF_ELEMENTS
Max different elements in the array which may be different
|
static String |
SERIAL_OBJECT_KEY
serial object key
|
Constructor and Description |
---|
TaskDataHelper() |
Modifier and Type | Method and Description |
---|---|
static 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 |
cloneObjectFromMap(Map<String,Object> map,
Class<?> objectClass,
String[] properties)
Clones an object from Map *
|
static Object |
cloneObjectToMap(Object object,
String[] properties)
Clones object to the Map implementation contains
|
static Map<String,Object> |
iDataToMap(com.wm.data.IData data)
Converts IS IData document type into generic java Map
|
static com.wm.data.IData |
mapToIData(Map<String,Object> map)
Converts generic java Map into IS IData document type
|
public static final int MAX_ARRAY_DIFF_ELEMENTS
public static final String SERIAL_OBJECT_KEY
public static Object cloneObjectToMap(Object object, String[] properties) throws Exception
object
- properties
- selected top level properties of an object will be clonedPortalException
Exception
ObjectUtil.cloneObjectToMap(Object, String[])
public static void addMapOrder(Map<String,Object> object)
public static void cleanObjectMap(Map<String,Object> object)
object
- object map needs to be cleaned.public static Object cloneObjectFromMap(Map<String,Object> map, Class<?> objectClass, String[] properties) throws Exception
map
- objectClass
- properties
- allowed properties to clonePortalException
Exception
ObjectUtil.cloneObjectFromMap(Map, Class, String[], boolean)
public static Map<String,Object> iDataToMap(com.wm.data.IData data) throws Exception
data
- IS IDataException