public final class ActivityUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Modifier and Type | Method and Description |
---|---|
static List<ActivityType> |
deserializeActivityTypeList(byte[] act)
This method deserializes an ActivityType event list from a JSON representation.
|
static ActivityUnit |
deserializeActivityUnit(byte[] act)
This method deserializes an Activity event from a JSON representation.
|
static List<ActivityUnit> |
deserializeActivityUnitList(byte[] act)
This method deserializes an Activity Unit list from a JSON representation.
|
static QuerySpec |
deserializeQuerySpec(byte[] qs)
This method deserializes a Query Spec from a JSON representation.
|
static String |
objectToJSONString(Object obj)
This method serializes an object into a JSON string representation.
|
static byte[] |
serializeActivityTypeList(List<ActivityType> activities)
This method serializes an ActivityType event list into a JSON representation.
|
static byte[] |
serializeActivityUnit(ActivityUnit act)
This method serializes an Activity event into a JSON representation.
|
static byte[] |
serializeActivityUnitList(List<ActivityUnit> activities)
This method serializes an ActivityUnit list into a JSON representation.
|
static byte[] |
serializeQuerySpec(QuerySpec qs)
This method serializes a Query Spec into a JSON representation.
|
public static byte[] serializeActivityUnit(ActivityUnit act) throws Exception
act
- The activityException
- Failed to serializepublic static byte[] serializeQuerySpec(QuerySpec qs) throws Exception
qs
- The query specException
- Failed to serializepublic static String objectToJSONString(Object obj) throws Exception
obj
- The objectException
- Failed to serializepublic static byte[] serializeActivityUnitList(List<ActivityUnit> activities) throws Exception
activities
- The activity unit listException
- Failed to serializepublic static byte[] serializeActivityTypeList(List<ActivityType> activities) throws Exception
activities
- The activity type listException
- Failed to serializepublic static ActivityUnit deserializeActivityUnit(byte[] act) throws Exception
act
- The JSON representation of the activityException
- Failed to deserializepublic static QuerySpec deserializeQuerySpec(byte[] qs) throws Exception
qs
- The JSON representation of the query specException
- Failed to deserializepublic static List<ActivityUnit> deserializeActivityUnitList(byte[] act) throws Exception
act
- The JSON representation of the activityException
- Failed to deserializepublic static List<ActivityType> deserializeActivityTypeList(byte[] act) throws Exception
act
- The JSON representation of the activityException
- Failed to deserializeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.