lumis.content.service.serialization
Class ContentServiceSerializationManager

Package class diagram package ContentServiceSerializationManager
java.lang.Object
  extended by lumis.content.service.serialization.ContentServiceSerializationManager
All Implemented Interfaces:
IContentServiceSerializationManager

public class ContentServiceSerializationManager
extends Object
implements IContentServiceSerializationManager

Manager for Content Service serialization

Since:
4.0.8

Constructor Summary
ContentServiceSerializationManager()
           
 
Method Summary
 void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
          Deserialize a content service instance (structure only).
protected  void deserializeAttachedFiles(lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileList, ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
          Detectes the files names that need to be deserialized and creates the files in the data directory.
 void deserializeContent(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
          Deserialize a content service instance (content only).
protected  void deserializeData(lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentData, ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
          Deserializes the given content into the respective tables.
protected  void deserializeTableData(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, boolean progressEnabled, ITransaction transaction)
          Reads the table name, column names and row data from the given xml node and deserializes the data into the appropriate table.
protected  void deserializeTableDataFile(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, int fileNum, boolean progressEnabled, ITransaction transaction)
           
 void serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
          Serialize a content service instance (content and structure).
protected  void serializeAllContentMetadata(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId)
           
protected  void serializeAllFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId)
           
protected  void serializeAttachedFile(ServiceInstanceSerializationContext serializationContext, String filePath)
          Serializes the given file into the serialization context.
protected  void serializeAttachedFiles(ServiceInstanceSerializationContext serializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData)
          Serializes all referenced files in the variable filesXmlString into the serialization context.
protected  void serializeContentMetaData(String query, String tableName, ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId, ITransaction transaction)
           
protected  void serializeData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig)
          Serializes the content data to a the given StringBuilder.
protected  void serializeQueryResults(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableSerializedData, String query, String filterFieldValue, ITransaction transaction)
          Executes and serializes the query results into the given StringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentServiceSerializationManager

public ContentServiceSerializationManager()
Method Detail

serialize

public void serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
               throws PortalException
Description copied from interface: IContentServiceSerializationManager
Serialize a content service instance (content and structure).

Specified by:
serialize in interface IContentServiceSerializationManager
Throws:
PortalException

serializeData

protected void serializeData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                             lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig)
                      throws PortalException
Serializes the content data to a the given StringBuilder.

This method parses the douidefinition of the given content service and for each source that is of type 'contentTable' and that has a 'table' tag within it, it reads the table data with all the related metadata and puts this information in an xml string stored in the contentData variable passed in.

If any source has field data types of file or files, the respective files are also included in the exported data.

Parameters:
serviceInstanceSerializationContext -
contentData -
Throws:
PortalException
Since:
4.0.11

serializeAllFileData

protected void serializeAllFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                    lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig,
                                    String serviceInstanceId)
                             throws PortalException
Throws:
PortalException

serializeAllContentMetadata

protected void serializeAllContentMetadata(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                           lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig,
                                           String serviceInstanceId)
                                    throws PortalException
Throws:
PortalException

serializeContentMetaData

protected void serializeContentMetaData(String query,
                                        String tableName,
                                        ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                        lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig,
                                        String serviceInstanceId,
                                        ITransaction transaction)
                                 throws PortalException
Throws:
PortalException

serializeQueryResults

protected void serializeQueryResults(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                     String sourceId,
                                     lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableSerializedData,
                                     String query,
                                     String filterFieldValue,
                                     ITransaction transaction)
                              throws PortalException
Executes and serializes the query results into the given StringBuilder

Parameters:
query -
filterFieldValue -
transaction -
queryResultsData -
tableName -
Throws:
PortalException
Since:
4.0.11

serializeAttachedFiles

protected void serializeAttachedFiles(ServiceInstanceSerializationContext serializationContext,
                                      lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData)
                               throws PortalException
Serializes all referenced files in the variable filesXmlString into the serialization context.

Parameters:
serializationContext -
filesXmlString -
Throws:
PortalException
Since:
4.0.11

serializeAttachedFile

protected void serializeAttachedFile(ServiceInstanceSerializationContext serializationContext,
                                     String filePath)
                              throws SerializationException
Serializes the given file into the serialization context.

Parameters:
serializationContext -
filePath -
Throws:
SerializationException
Since:
4.0.11

deserialize

public void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
                 throws PortalException
Description copied from interface: IContentServiceSerializationManager
Deserialize a content service instance (structure only).

Specified by:
deserialize in interface IContentServiceSerializationManager
Throws:
PortalException

deserializeContent

public void deserializeContent(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
                        throws PortalException
Description copied from interface: IContentServiceSerializationManager
Deserialize a content service instance (content only).

Specified by:
deserializeContent in interface IContentServiceSerializationManager
Parameters:
serviceInstanceDeserializationContext - context of deserialization
Throws:
PortalException

deserializeData

protected void deserializeData(lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentData,
                               ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
                        throws PortalException
Deserializes the given content into the respective tables.

Parameters:
contentData -
serviceInstanceDeserializationContext -
Throws:
PortalException
Since:
4.0.11

deserializeAttachedFiles

protected void deserializeAttachedFiles(lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileList,
                                        ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
                                 throws PortalException
Detectes the files names that need to be deserialized and creates the files in the data directory.

Parameters:
fileDataNode -
serviceInstanceDeserializationContext -
Throws:
PortalException
Since:
4.0.11

deserializeTableData

protected void deserializeTableData(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
                                    String sourceId,
                                    lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig,
                                    boolean progressEnabled,
                                    ITransaction transaction)
                             throws PortalException
Reads the table name, column names and row data from the given xml node and deserializes the data into the appropriate table.

Parameters:
progressEnabled - TODO
transaction -
tableDataNode -
Throws:
PortalException
Since:
4.0.11

deserializeTableDataFile

protected void deserializeTableDataFile(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
                                        String sourceId,
                                        lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig,
                                        int fileNum,
                                        boolean progressEnabled,
                                        ITransaction transaction)
                                 throws PortalException
Throws:
PortalException


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