lumis.portal.serialization
Interface ISerializationManager2

Package class diagram package ISerializationManager2
All Known Implementing Classes:
SerializationManager2

public interface ISerializationManager2

Manager interface for portal objects serialization and deserialization

Since:
4.0.7

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()
          Deprecated. 
 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.
 

Method Detail

serializeChannel

void serializeChannel(SerializationContext serializationContext)
                      throws ManagerException,
                             PortalException
Serialize a channel to a xml file.

Parameters:
serializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

beginSerializeChannel

void beginSerializeChannel(SerializationContext serializationContext)
                           throws ManagerException,
                                  PortalException
Serialize a channel to a xml file asynchronously.

Parameters:
serializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

deserializeChannel

String deserializeChannel(DeserializationContext deserializationContext)
                          throws ManagerException,
                                 PortalException
Deserialize a channel from a xml file.

Parameters:
deserializationContext - context object that contains all operation settings
Returns:
Throws:
ManagerException
PortalException

beginDeserializeChannel

void beginDeserializeChannel(DeserializationContext deserializationContext)
                             throws ManagerException,
                                    PortalException
Deserialize a channel from a xml file asynchronously.

Parameters:
deserializationContext - context object that contains all operation settings
Throws:
ManagerException
PortalException

serializePage

void serializePage(SerializationContext serializationContext,
                   String pageId,
                   boolean setupSerializationContext)
                   throws ManagerException,
                          PortalException
Serialize a page to a xml file.

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

deserializePage

void deserializePage(DeserializationContext deserializationContext,
                     String pageId,
                     boolean setupSerializationContext,
                     boolean checkUnresolvedDependencies)
                     throws ManagerException,
                            PortalException
Deserialize a page from a xml file.

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

serializeObjectToString

String serializeObjectToString(Object o,
                               String alias)
                               throws SerializationException
Serialize an object to a xml String.

Parameters:
o - object to be serialized
alias - alias (tag name) for the object
Returns:
Throws:
SerializationException

serializeObjectToString

String serializeObjectToString(Object o,
                               String alias,
                               SerializationSettings serializationSettings)
                               throws SerializationException
Serialize an object to a xml String, using custom serialization settings

Parameters:
o - object to be serialized
alias - alias (tag name) for the object
serializationSettings - serialization settings for the operation
Returns:
Throws:
SerializationException

serializeObject

void serializeObject(Object o,
                     IDirectory directory,
                     String filePath,
                     String alias)
                     throws SerializationException
Throws:
SerializationException

serializeObject

void serializeObject(Object o,
                     IDirectory directory,
                     String filePath,
                     String alias,
                     SerializationSettings serializationSettings)
                     throws SerializationException
Throws:
SerializationException

deserializeObject

<T> T deserializeObject(Class<T> objectClass,
                        IDirectory directory,
                        String filePath,
                        String alias,
                        SerializationSettings serializationSettings,
                        boolean fileIsOptional)
                    throws SerializationException
Throws:
SerializationException

deserializeObject

<T> T deserializeObject(Class<T> objectClass,
                        IDirectory directory,
                        String filePath,
                        String alias,
                        boolean fileIsOptional)
                    throws SerializationException
Throws:
SerializationException

getExternalDependenciesSerializationSettings

@Deprecated
SerializationSettings getExternalDependenciesSerializationSettings()
Deprecated. 



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