public class JSONContentViewState extends Object
ContentViewState.| Modifier and Type | Field and Description | 
|---|---|
| static String | ENCODED_VALUES_ENCODING | 
| Constructor and Description | 
|---|
| JSONContentViewState() | 
| Modifier and Type | Method and Description | 
|---|---|
| static ContentViewState | fromJSON(String json,
        boolean decode)Returns the content view state from its String serialization in JSON
 format. | 
| static String | toJSON(ContentViewState state,
      boolean encode)Returns the String serialization in JSON format of a content view state. | 
public static final String ENCODED_VALUES_ENCODING
public static String toJSON(ContentViewState state, boolean encode) throws ClientException, UnsupportedEncodingException
state - the state to serializeencode - if true, the resulting String will be zipped and encoded
            in Base-64 format.ClientExceptionUnsupportedEncodingExceptionpublic static ContentViewState fromJSON(String json, boolean decode) throws UnsupportedEncodingException, ClientException
json - the state to de-serializedecode - if true, the input String is decoded from Base-64 format
            and unzipped.ClientExceptionUnsupportedEncodingExceptionCopyright © 2014 Nuxeo SA. All rights reserved.