|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.service.serialization.ContentServiceSerializationManager
public class ContentServiceSerializationManager
Manager for Content Service serialization
Constructor Summary | |
---|---|
ContentServiceSerializationManager()
|
Method Summary | |
---|---|
protected int |
countData(Node sourceNode,
ServiceInstanceSerializationContext serviceInstanceSerializationContext,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source)
|
void |
deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
Deserialize a content service instance (structure only: content was not yet implemented). |
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. |
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)
|
protected void |
getFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData,
Collection<String> fileIds,
ITransaction transaction)
Serializes the file xml data into the given StringBuilder variable fileData. |
protected int |
getFileDataCount(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData,
Collection<String> fileIds,
ITransaction transaction)
|
protected void |
getFilesData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesData,
lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesListData,
Collection<String> filesIds,
ITransaction transaction)
Serializes the files xml data into the given StringBuilder variable fileData. |
protected int |
getFilesDataCount(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesData,
lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesListData,
Collection<String> filesIds,
ITransaction transaction)
|
protected void |
getMetaDataAssociatedData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure,
String metaDataId,
ITransaction transaction)
Serializes the content metadata associated data into the given StringBuilder. |
protected void |
getQueryData(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 |
protected int |
getQueryDataCount(String query,
String filterFieldValue,
ITransaction transaction)
Returns a query data's row count |
protected void |
getTableData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
String sourceId,
lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure,
String filterFieldId,
String filterFieldValue,
ITransaction transaction)
Serializes the table data into the given StringBuilder. |
protected int |
getTableDataCount(lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure,
String filterFieldId,
String filterFieldValue,
ITransaction transaction)
Returns a table data's row count |
protected void |
loadData(Node sourceNode,
ServiceInstanceSerializationContext serviceInstanceSerializationContext,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source)
Serializes all data, metadata and files associated with the given source. |
protected void |
loadData(Node sourceNode,
ServiceInstanceSerializationContext serviceInstanceSerializationContext,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig relatedSource,
Node sourceRelationNode)
|
void |
serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
Serialize a content service instance (structure only: content was not yet implemented). |
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 |
serializeData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig)
Serializes the content data to a the given StringBuilder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentServiceSerializationManager()
Method Detail |
---|
public void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
IContentServiceSerializationManager
deserialize
in interface IContentServiceSerializationManager
PortalException
protected void deserializeData(lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentData, ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
contentData
- serviceInstanceDeserializationContext
-
PortalException
protected void deserializeAttachedFiles(lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileList, ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
fileDataNode
- serviceInstanceDeserializationContext
-
PortalException
protected void deserializeTableData(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, boolean progressEnabled, ITransaction transaction) throws PortalException
progressEnabled
- TODOtransaction
- tableDataNode
-
PortalException
protected void deserializeTableDataFile(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, int fileNum, boolean progressEnabled, ITransaction transaction) throws PortalException
PortalException
public void serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext) throws PortalException
IContentServiceSerializationManager
serialize
in interface IContentServiceSerializationManager
PortalException
protected void serializeData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig) throws PortalException
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.
serviceInstanceSerializationContext
- contentData
-
PortalException
protected void loadData(Node sourceNode, ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source) throws PortalException
sourceNode
- tableName
- serviceInstanceSerializationContext
- contentData
-
PortalException
protected void loadData(Node sourceNode, ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig relatedSource, Node sourceRelationNode) throws PortalException
PortalException
protected int countData(Node sourceNode, ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSourceSerializableConfig source) throws PortalException
PortalException
protected void serializeAttachedFiles(ServiceInstanceSerializationContext serializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData) throws PortalException
serializationContext
- filesXmlString
-
PortalException
protected void serializeAttachedFile(ServiceInstanceSerializationContext serializationContext, String filePath) throws SerializationException
serializationContext
- filePath
-
SerializationException
protected void getFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData, Collection<String> fileIds, ITransaction transaction) throws PortalException
fileData
- fileIds
- transaction
-
PortalException
protected int getFileDataCount(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData, Collection<String> fileIds, ITransaction transaction) throws PortalException
PortalException
protected void getFilesData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesData, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesListData, Collection<String> filesIds, ITransaction transaction) throws PortalException
filesData
- fileData
- filesListData
- filesIds
- transaction
-
PortalException
protected int getFilesDataCount(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesData, lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileData, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig filesListData, Collection<String> filesIds, ITransaction transaction) throws PortalException
PortalException
protected void getMetaDataAssociatedData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure, String metaDataId, ITransaction transaction) throws PortalException
resultsData
- associatedTable
- metaDataId
- transaction
-
PortalException
protected void getTableData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure, String filterFieldId, String filterFieldValue, ITransaction transaction) throws PortalException
filterFieldId
- filterFieldValue
- transaction
- resultsData
- tableName
-
PortalException
protected int getTableDataCount(lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig resultsStructure, String filterFieldId, String filterFieldValue, ITransaction transaction) throws PortalException
serviceInstanceSerializationContext
- sourceId
- resultsStructure
- filterFieldId
- filterFieldValue
- transaction
-
PortalException
protected int getQueryDataCount(String query, String filterFieldValue, ITransaction transaction) throws PortalException
query
- filterFieldValue
- transaction
-
PortalException
protected void getQueryData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableSerializedData, String query, String filterFieldValue, ITransaction transaction) throws PortalException
query
- filterFieldValue
- transaction
- queryResultsData
- tableName
-
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |