public class GsonPortletStateSerialisationService extends java.lang.Object implements PortletStateSerialisationService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static com.google.gson.Gson |
STATE_SERIALIZER |
Constructor and Description |
---|
GsonPortletStateSerialisationService() |
Modifier and Type | Method and Description |
---|---|
TMLPortletState |
deserialize(java.lang.String str) |
java.lang.String |
getId() |
java.lang.String |
readPortletStateJson(java.lang.String str) |
java.lang.String |
serialize(TMLPortletState state) |
public static final java.lang.String NAME
public static final com.google.gson.Gson STATE_SERIALIZER
public GsonPortletStateSerialisationService()
public TMLPortletState deserialize(java.lang.String str) throws java.lang.Exception
deserialize
in interface PortletStateSerialisationService
java.lang.Exception
public java.lang.String serialize(TMLPortletState state) throws java.lang.Exception
serialize
in interface PortletStateSerialisationService
java.lang.Exception
public java.lang.String readPortletStateJson(java.lang.String str)
public java.lang.String getId()
getId
in interface PortletStateSerialisationService