lumis.portal.serialization
Class SerializationManager2

Package class diagram package SerializationManager2
java.lang.Object
  extended by lumis.portal.serialization.SerializationManager2
All Implemented Interfaces:
ISerializationManager2

public class SerializationManager2
extends Object
implements ISerializationManager2

Manager for portal objects serialization and deserialization

Since:
4.0.7

Nested Class Summary
 class SerializationManager2.DeserializeChannelRunner
           
 class SerializationManager2.SerializeChannelRunner
           
 class SerializationManager2.WorkflowSerializationMessageConfig
           
 
Constructor Summary
SerializationManager2()
           
 
Method Summary
 void beginDeserializeChannel(DeserializationContext deserializationContext)
          Deserialize a channel from a xml file asynchronously.
 void beginSerializeChannel(SerializationContext serializationContext)
          Serialize a channel to a xml file asynchronously.
 String deserializeChannel(DeserializationContext deserializationContext)
          Deserialize a channel from a xml file.
<T> T
deserializeObject(Class<T> objectClass, IDirectory directory, String filePath, String alias, boolean fileIsOptional)
           
<T> T
deserializeObject(Class<T> objectClass, IDirectory directory, String filePath, String alias, SerializationSettings serializationSettings, boolean fileIsOptional)
           
 void deserializePage(DeserializationContext deserializationContext, String pageId, boolean setupSerializationContext, boolean checkUnresolvedDependencies)
          Deserialize a page from a xml file.
 SerializationSettings getExternalDependenciesSerializationSettings()
           
 void serializeChannel(SerializationContext serializationContext)
          Serialize a channel to a xml file.
 void serializeObject(Object o, IDirectory directory, String filePath, String alias)
           
 void serializeObject(Object o, IDirectory directory, String filePath, String alias, SerializationSettings serializationSettings)
           
 String serializeObjectToString(Object o, String alias)
          Serialize an object to a xml String.
 String serializeObjectToString(Object o, String alias, SerializationSettings serializationSettings)
          Serialize an object to a xml String, using custom serialization settings
 void serializePage(SerializationContext serializationContext, String pageId, boolean setupSerializationContext)
          Serialize a page to a xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationManager2

public SerializationManager2()
Method Detail

beginSerializeChannel

public void beginSerializeChannel(SerializationContext serializationContext)
                           throws ManagerException,
                                  PortalException
Description copied from interface: ISerializationManager2
Serialize a channel to a xml file asynchronously.

Specified by:
beginSerializeChannel in interface ISerializationManager2
Parameters:
serializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

beginDeserializeChannel

public void beginDeserializeChannel(DeserializationContext deserializationContext)
                             throws ManagerException,
                                    PortalException
Description copied from interface: ISerializationManager2
Deserialize a channel from a xml file asynchronously.

Specified by:
beginDeserializeChannel in interface ISerializationManager2
Parameters:
deserializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

serializeChannel

public void serializeChannel(SerializationContext serializationContext)
                      throws ManagerException,
                             PortalException
Description copied from interface: ISerializationManager2
Serialize a channel to a xml file.

Specified by:
serializeChannel in interface ISerializationManager2
Parameters:
serializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

getExternalDependenciesSerializationSettings

public SerializationSettings getExternalDependenciesSerializationSettings()
Specified by:
getExternalDependenciesSerializationSettings in interface ISerializationManager2

deserializeChannel

public String deserializeChannel(DeserializationContext deserializationContext)
                          throws ManagerException,
                                 PortalException
Description copied from interface: ISerializationManager2
Deserialize a channel from a xml file.

Specified by:
deserializeChannel in interface ISerializationManager2
Parameters:
deserializationContext - context object that contains all operation settings
Returns:
Throws:
ManagerException
PortalException

deserializePage

public void deserializePage(DeserializationContext deserializationContext,
                            String pageId,
                            boolean setupSerializationContext,
                            boolean checkUnresolvedDependencies)
                     throws ManagerException,
                            PortalException
Description copied from interface: ISerializationManager2
Deserialize a page from a xml file.

Specified by:
deserializePage in interface ISerializationManager2
Parameters:
deserializationContext - context object that contains all operation settings
pageId - page to be deserialized
setupSerializationContext - indicates if the serialization settings must be set before the operation
checkUnresolvedDependencies - indicates when the existence of unresolved dependencies must raise a SerializationException
Throws:
ManagerException
PortalException

serializePage

public void serializePage(SerializationContext serializationContext,
                          String pageId,
                          boolean setupSerializationContext)
                   throws ManagerException,
                          PortalException
Description copied from interface: ISerializationManager2
Serialize a page to a xml file.

Specified by:
serializePage in interface ISerializationManager2
Parameters:
serializationContext - context object that contains all operation settings
pageId - page to be serialized
setupSerializationContext - indicates if the serialization settings must be set before the operation
Throws:
ManagerException
PortalException

serializeObjectToString

public String serializeObjectToString(Object o,
                                      String alias)
                               throws SerializationException
Description copied from interface: ISerializationManager2
Serialize an object to a xml String.

Specified by:
serializeObjectToString in interface ISerializationManager2
Parameters:
o - object to be serialized
alias - alias (tag name) for the object
Returns:
Throws:
SerializationException

serializeObjectToString

public String serializeObjectToString(Object o,
                                      String alias,
                                      SerializationSettings serializationSettings)
                               throws SerializationException
Description copied from interface: ISerializationManager2
Serialize an object to a xml String, using custom serialization settings

Specified by:
serializeObjectToString in interface ISerializationManager2
Parameters:
o - object to be serialized
alias - alias (tag name) for the object
serializationSettings - serialization settings for the operation
Returns:
Throws:
SerializationException

serializeObject

public void serializeObject(Object o,
                            IDirectory directory,
                            String filePath,
                            String alias)
                     throws SerializationException
Specified by:
serializeObject in interface ISerializationManager2
Throws:
SerializationException

serializeObject

public void serializeObject(Object o,
                            IDirectory directory,
                            String filePath,
                            String alias,
                            SerializationSettings serializationSettings)
                     throws SerializationException
Specified by:
serializeObject in interface ISerializationManager2
Throws:
SerializationException

deserializeObject

public <T> T deserializeObject(Class<T> objectClass,
                               IDirectory directory,
                               String filePath,
                               String alias,
                               boolean fileIsOptional)
                    throws SerializationException
Specified by:
deserializeObject in interface ISerializationManager2
Throws:
SerializationException

deserializeObject

public <T> T deserializeObject(Class<T> objectClass,
                               IDirectory directory,
                               String filePath,
                               String alias,
                               SerializationSettings serializationSettings,
                               boolean fileIsOptional)
                    throws SerializationException
Specified by:
deserializeObject in interface ISerializationManager2
Throws:
SerializationException


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