Class ChannelSerializationManager
- java.lang.Object
-
- lumis.portal.channel.serialization.ChannelSerializationManager
-
- All Implemented Interfaces:
IChannelSerializationManager
,IConfigDeleter
,IConfigPersister
public class ChannelSerializationManager extends Object implements IChannelSerializationManager
Manager for Channel serialization- Since:
- 4.0.7
- Version:
- $Revision: 22559 $ $Date: 2019-03-21 16:03:37 -0300 (Thu, 21 Mar 2019) $
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ConfigForeignKey>
foreignKeys
-
Constructor Summary
Constructors Constructor Description ChannelSerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConfig(DeserializationContext deserializationContext, String configId)
String
deserialize(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig)
Deserialize a channel.ChannelConfig
deserializeConfig(DeserializationContext deserializationContext, String channelId)
Deserialize aChannelConfig
object.void
deserializeContent(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig)
Deserialize channel content.int
getProgressDeserializationItemCount()
Get the number of steps of a channel deserialization process.int
getProgressSerializationItemCount()
Get the number of steps of a channel serialization process.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ChannelConfig channelConfig)
Get aSerializationMessageConfigNode
object containing fully recursive information about a channel.boolean
persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence)
Performs a config persistance (add or update) operationChannelSerializableConfig
serialize(SerializationContext serializationContext, String channelId)
Serialize a channel.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
-
deserializeConfig
public ChannelConfig deserializeConfig(DeserializationContext deserializationContext, String channelId) throws PortalException
Description copied from interface:IChannelSerializationManager
Deserialize aChannelConfig
object.- Specified by:
deserializeConfig
in interfaceIChannelSerializationManager
- Returns:
- Throws:
PortalException
-
deserialize
public String deserialize(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig) throws PortalException
Description copied from interface:IChannelSerializationManager
Deserialize a channel.- Specified by:
deserialize
in interfaceIChannelSerializationManager
- Returns:
- deserialized channelId
- Throws:
PortalException
-
deserializeContent
public void deserializeContent(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig) throws PortalException
Description copied from interface:IChannelSerializationManager
Deserialize channel content. For all service instances below the channel the content must be deserialized.- Specified by:
deserializeContent
in interfaceIChannelSerializationManager
- Parameters:
deserializationContext
- context for deserializationchannelSerializableConfig
- channel for which content must be deserializedparentChannelSerializableConfig
- parent channel of the channel to be deserialized- Throws:
PortalException
-
persistConfig
public boolean persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence) throws PortalException
Description copied from interface:IConfigPersister
Performs a config persistance (add or update) operation- Specified by:
persistConfig
in interfaceIConfigPersister
- Returns:
- Throws:
PortalException
-
deleteConfig
public void deleteConfig(DeserializationContext deserializationContext, String configId) throws PortalException
- Specified by:
deleteConfig
in interfaceIConfigDeleter
- Throws:
PortalException
-
serialize
public ChannelSerializableConfig serialize(SerializationContext serializationContext, String channelId) throws PortalException
Description copied from interface:IChannelSerializationManager
Serialize a channel.- Specified by:
serialize
in interfaceIChannelSerializationManager
- Returns:
- Throws:
PortalException
-
setupSerializationContext
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
Description copied from interface:IChannelSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.- Specified by:
setupSerializationContext
in interfaceIChannelSerializationManager
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ChannelConfig channelConfig) throws PortalException
Description copied from interface:IChannelSerializationManager
Get aSerializationMessageConfigNode
object containing fully recursive information about a channel.- Specified by:
getSerializationMessageConfigNode
in interfaceIChannelSerializationManager
- Returns:
- Throws:
PortalException
-
getProgressDeserializationItemCount
public int getProgressDeserializationItemCount()
Description copied from interface:IChannelSerializationManager
Get the number of steps of a channel deserialization process.- Specified by:
getProgressDeserializationItemCount
in interfaceIChannelSerializationManager
- Returns:
-
getProgressSerializationItemCount
public int getProgressSerializationItemCount()
Description copied from interface:IChannelSerializationManager
Get the number of steps of a channel serialization process.- Specified by:
getProgressSerializationItemCount
in interfaceIChannelSerializationManager
- Returns:
-
-