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.
|
protected static ContentViewLayout |
getContentViewLayoutFromJSON(net.sf.json.JSONObject jsonCvLayout) |
protected static net.sf.json.JSONObject |
getContentViewLayoutToJSON(ContentViewLayout cvLayout) |
protected static DocumentModel |
getDocumentModelFromJSON(net.sf.json.JSONObject jsonDoc) |
protected static net.sf.json.JSONObject |
getDocumentModelToJSON(DocumentModel doc) |
protected static Serializable |
getDocumentPropertyValue(Object o) |
protected static SortInfo |
getSortInfoFromJSON(net.sf.json.JSONObject jsonSortInfo) |
protected static net.sf.json.JSONObject |
getSortInfoToJSON(SortInfo sortInfo) |
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 JSONContentViewState()
public static String toJSON(ContentViewState state, boolean encode) throws UnsupportedEncodingException
state
- the state to serializeencode
- if true, the resulting String will be zipped and encoded in Base-64 format.UnsupportedEncodingException
public static ContentViewState fromJSON(String json, boolean decode) throws UnsupportedEncodingException
json
- the state to de-serializedecode
- if true, the input String is decoded from Base-64 format and unzipped.UnsupportedEncodingException
protected static net.sf.json.JSONObject getSortInfoToJSON(SortInfo sortInfo)
protected static SortInfo getSortInfoFromJSON(net.sf.json.JSONObject jsonSortInfo)
protected static net.sf.json.JSONObject getDocumentModelToJSON(DocumentModel doc)
protected static DocumentModel getDocumentModelFromJSON(net.sf.json.JSONObject jsonDoc)
protected static net.sf.json.JSONObject getContentViewLayoutToJSON(ContentViewLayout cvLayout)
protected static ContentViewLayout getContentViewLayoutFromJSON(net.sf.json.JSONObject jsonCvLayout)
protected static Serializable getDocumentPropertyValue(Object o) throws net.sf.json.JSONException
net.sf.json.JSONException
Copyright © 2015 Nuxeo SA. All rights reserved.