Package lumis.portal.page.serialization
Class PageSerializationManager
- java.lang.Object
-
- lumis.portal.page.serialization.PageSerializationManager
-
- All Implemented Interfaces:
IPageSerializationManager
public class PageSerializationManager extends Object implements IPageSerializationManager
Manager for Page serialization- Since:
- 4.0.7
- Version:
- $Revision: 20807 $ $Date: 2017-11-30 17:08:51 -0200 (Thu, 30 Nov 2017) $
-
-
Field Summary
Fields Modifier and Type Field Description protected 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, EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
Get aSerializationMessageConfigNode
object containing partially recursive information about a page.boolean
persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence)
PageSerializableConfig
serialize(SerializationContext serializationContext, 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 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, Object config, boolean firstPersistence) throws PortalException
- Throws:
PortalException
-
serialize
public PageSerializableConfig serialize(SerializationContext serializationContext, 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, 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
-
-