public final class ActiveCollectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<ActiveCollectionSource> |
deserializeACS(byte[] acs)
This method deserializes a list of Active Collection Sources from a JSON representation.
|
static QuerySpec |
deserializeQuerySpec(byte[] qs)
This method deserializes a query specification from a JSON representation.
|
static byte[] |
serializeACS(List<ActiveCollectionSource> acs)
This method serializes a list of Active Collection Sources
into a JSON representation.
|
static byte[] |
serializeQuerySpec(QuerySpec qs)
This method serializes a query specification
into a JSON representation.
|
public static byte[] serializeACS(List<ActiveCollectionSource> acs) throws Exception
acs
- The active collection source listException
- Failed to serializepublic static List<ActiveCollectionSource> deserializeACS(byte[] acs) throws Exception
acs
- The JSON representation of the Active Collection SourcesException
- Failed to deserializepublic static byte[] serializeQuerySpec(QuerySpec qs) throws Exception
qs
- The query specException
- Failed to serializeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.