lumis.portal.channel.serialization
Class ChannelSerializationManager

Package class diagram package ChannelSerializationManager
java.lang.Object
  extended by 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

Field Summary
protected  List<ConfigForeignKey> foreignKeys
           
 
Constructor Summary
ChannelSerializationManager()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foreignKeys

protected final List<ConfigForeignKey> foreignKeys
Constructor Detail

ChannelSerializationManager

public ChannelSerializationManager()
Method Detail

deserializeConfig

public ChannelConfig deserializeConfig(DeserializationContext deserializationContext,
                                       String channelId)
                                throws ManagerException
Description copied from interface: IChannelSerializationManager
Deserialize a ChannelConfig object.

Specified by:
deserializeConfig in interface IChannelSerializationManager
Returns:
Throws:
ManagerException

deserialize

public String deserialize(DeserializationContext deserializationContext,
                          ChannelSerializableConfig channelSerializableConfig,
                          ChannelSerializableConfig parentChannelSerializableConfig)
                   throws PortalException
Description copied from interface: IChannelSerializationManager
Deserialize a channel.

Specified by:
deserialize in interface IChannelSerializationManager
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 interface IChannelSerializationManager
Parameters:
deserializationContext - context for deserialization
channelSerializableConfig - channel for which content must be deserialized
parentChannelSerializableConfig - 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 interface IConfigPersister
Returns:
Throws:
PortalException

deleteConfig

public void deleteConfig(DeserializationContext deserializationContext,
                         String configId)
                  throws PortalException
Specified by:
deleteConfig in interface IConfigDeleter
Throws:
PortalException

serialize

public ChannelSerializableConfig serialize(SerializationContext serializationContext,
                                           String channelId)
                                    throws PortalException
Description copied from interface: IChannelSerializationManager
Serialize a channel.

Specified by:
serialize in interface IChannelSerializationManager
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 interface IChannelSerializationManager

getSerializationMessageConfigNode

public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext,
                                                                        ChannelConfig channelConfig)
                                                                 throws PortalException
Description copied from interface: IChannelSerializationManager
Get a SerializationMessageConfigNode object containing fully recursive information about a channel.

Specified by:
getSerializationMessageConfigNode in interface IChannelSerializationManager
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 interface IChannelSerializationManager
Returns:

getProgressSerializationItemCount

public int getProgressSerializationItemCount()
Description copied from interface: IChannelSerializationManager
Get the number of steps of a channel serialization process.

Specified by:
getProgressSerializationItemCount in interface IChannelSerializationManager
Returns:


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.