Package lumis.portal.page.serialization
Class PageSerializationManager
- java.lang.Object
-
- lumis.portal.page.serialization.PageSerializationManager
-
- All Implemented Interfaces:
IPageSerializationManager
public class PageSerializationManager extends java.lang.Object implements IPageSerializationManager
Manager for Page serialization- Since:
- 4.0.7
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ConfigForeignKey>
foreignKeys
-
Constructor Summary
Constructors Constructor Description PageSerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(DeserializationContext deserializationContext, PageSerializableConfig pageSerializableConfig)
Deserialize a page.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, PageConfig pageConfig)
Get aSerializationMessageConfigNode
object containing fully recursive information about a page.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, PageConfig pageConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
Get aSerializationMessageConfigNode
object containing partially recursive information about a page.boolean
persistConfig(DeserializationContext deserializationContext, java.lang.Object config, boolean firstPersistence)
PageSerializableConfig
serialize(SerializationContext serializationContext, java.lang.String pageId, boolean deepSerialization)
Serialize a page.void
setupSerializationContext(BaseSerializationContext baseSerializationContext)
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
-
-
-
Field Detail
-
foreignKeys
protected final java.util.List<ConfigForeignKey> foreignKeys
-
-
Method Detail
-
deserialize
public void deserialize(DeserializationContext deserializationContext, PageSerializableConfig pageSerializableConfig) throws PortalException
Description copied from interface:IPageSerializationManager
Deserialize a page.- Specified by:
deserialize
in interfaceIPageSerializationManager
- Throws:
PortalException
-
persistConfig
public boolean persistConfig(DeserializationContext deserializationContext, java.lang.Object config, boolean firstPersistence) throws PortalException
- Throws:
PortalException
-
serialize
public PageSerializableConfig serialize(SerializationContext serializationContext, java.lang.String pageId, boolean deepSerialization) throws PortalException
Description copied from interface:IPageSerializationManager
Serialize a page.- Specified by:
serialize
in interfaceIPageSerializationManager
- Returns:
- Throws:
PortalException
-
setupSerializationContext
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
Description copied from interface:IPageSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.- Specified by:
setupSerializationContext
in interfaceIPageSerializationManager
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, PageConfig pageConfig) throws PortalException
Description copied from interface:IPageSerializationManager
Get aSerializationMessageConfigNode
object containing fully recursive information about a page.- Specified by:
getSerializationMessageConfigNode
in interfaceIPageSerializationManager
- Returns:
- Throws:
PortalException
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, PageConfig pageConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints) throws PortalException
Description copied from interface:IPageSerializationManager
Get aSerializationMessageConfigNode
object containing partially recursive information about a page.- Specified by:
getSerializationMessageConfigNode
in interfaceIPageSerializationManager
- Returns:
- Throws:
PortalException
-
-