public class ContentServiceSerializationManager extends Object implements IContentServiceSerializationManager
Constructor and Description |
---|
ContentServiceSerializationManager() |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
Deserialize a content service instance (structure only).
|
protected void |
deserializeAttachedFiles(lumis.content.service.serialization.ContentServiceSerializationManager.FileTableSerializableConfig fileList,
ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
Set<String> ignoredDataFullPaths)
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 Set<String> |
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 Set<String> |
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 |
serializeAllTransformedFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig,
String serviceInstanceId)
Serializes physical files that were transformed from a FileConfig.
|
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
|
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 serializeAllFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId) throws PortalException
PortalException
protected void serializeAllTransformedFileData(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId) throws PortalException
serviceInstanceSerializationContext
- contentConfig
- serviceInstanceId
- PortalException
protected void serializeAllContentMetadata(ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId) throws PortalException
PortalException
protected void serializeContentMetaData(String query, String tableName, ServiceInstanceSerializationContext serviceInstanceSerializationContext, lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig, String serviceInstanceId, ITransaction transaction) throws PortalException
PortalException
protected void serializeQueryResults(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
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
public void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
IContentServiceSerializationManager
deserialize
in interface IContentServiceSerializationManager
PortalException
public void deserializeContent(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
IContentServiceSerializationManager
deserializeContent
in interface IContentServiceSerializationManager
serviceInstanceDeserializationContext
- context of deserializationPortalException
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, Set<String> ignoredDataFullPaths) throws PortalException
fileDataNode
- serviceInstanceDeserializationContext
- PortalException
protected Set<String> deserializeTableData(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, boolean progressEnabled, ITransaction transaction) throws PortalException
progressEnabled
- TODOtransaction
- tableDataNode
- PortalException
protected Set<String> deserializeTableDataFile(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, String sourceId, lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig, int fileNum, boolean progressEnabled, ITransaction transaction) throws PortalException
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.