public class ChannelSerializationManager extends Object implements IChannelSerializationManager
Modifier and Type | Field and Description |
---|---|
protected List<ConfigForeignKey> |
foreignKeys |
Constructor and Description |
---|
ChannelSerializationManager() |
Modifier and Type | Method and 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 a
ChannelConfig 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 a
SerializationMessageConfigNode object containing fully recursive information about a channel. |
boolean |
persistConfig(DeserializationContext deserializationContext,
Object config,
boolean firstPersistence)
Performs a config persistance (add or update) operation
|
ChannelSerializableConfig |
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.
|
protected final List<ConfigForeignKey> foreignKeys
public ChannelConfig deserializeConfig(DeserializationContext deserializationContext, String channelId) throws PortalException
IChannelSerializationManager
ChannelConfig
object.deserializeConfig
in interface IChannelSerializationManager
PortalException
public String deserialize(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig) throws PortalException
IChannelSerializationManager
deserialize
in interface IChannelSerializationManager
PortalException
public void deserializeContent(DeserializationContext deserializationContext, ChannelSerializableConfig channelSerializableConfig, ChannelSerializableConfig parentChannelSerializableConfig) throws PortalException
IChannelSerializationManager
deserializeContent
in interface IChannelSerializationManager
deserializationContext
- context for deserializationchannelSerializableConfig
- channel for which content must be deserializedparentChannelSerializableConfig
- parent channel of the channel to be deserializedPortalException
public boolean persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence) throws PortalException
IConfigPersister
persistConfig
in interface IConfigPersister
PortalException
public void deleteConfig(DeserializationContext deserializationContext, String configId) throws PortalException
deleteConfig
in interface IConfigDeleter
PortalException
public ChannelSerializableConfig serialize(SerializationContext serializationContext, String channelId) throws PortalException
IChannelSerializationManager
serialize
in interface IChannelSerializationManager
PortalException
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
IChannelSerializationManager
setupSerializationContext
in interface IChannelSerializationManager
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ChannelConfig channelConfig) throws PortalException
IChannelSerializationManager
SerializationMessageConfigNode
object containing fully recursive information about a channel.getSerializationMessageConfigNode
in interface IChannelSerializationManager
PortalException
public int getProgressDeserializationItemCount()
IChannelSerializationManager
getProgressDeserializationItemCount
in interface IChannelSerializationManager
public int getProgressSerializationItemCount()
IChannelSerializationManager
getProgressSerializationItemCount
in interface IChannelSerializationManager
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.