Class ContentServiceSerializationManager

    • Constructor Detail

      • ContentServiceSerializationManager

        public ContentServiceSerializationManager()
    • Method Detail

      • 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,
                                            java.lang.String serviceInstanceId)
                                     throws PortalException
        Throws:
        PortalException
      • serializeAllTransformedFileData

        protected void serializeAllTransformedFileData​(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                                       lumis.content.service.serialization.ContentServiceSerializationManager.ContentSerializableConfig contentConfig,
                                                       java.lang.String serviceInstanceId)
                                                throws PortalException
        Serializes physical files that were transformed from a FileConfig.
        Parameters:
        serviceInstanceSerializationContext -
        contentConfig -
        serviceInstanceId -
        Throws:
        PortalException
        Since:
        6.1.0
      • serializeAllContentMetadata

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

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

        protected void serializeQueryResults​(ServiceInstanceSerializationContext serviceInstanceSerializationContext,
                                             java.lang.String sourceId,
                                             lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableSerializedData,
                                             java.lang.String query,
                                             java.lang.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
      • 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,
                                                java.util.Set<java.lang.String> ignoredDataFullPaths)
                                         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 java.util.Set<java.lang.String> deserializeTableData​(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
                                                                       java.lang.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 java.util.Set<java.lang.String> deserializeTableDataFile​(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
                                                                           java.lang.String sourceId,
                                                                           lumis.content.service.serialization.ContentServiceSerializationManager.TableSerializableConfig tableConfig,
                                                                           int fileNum,
                                                                           boolean progressEnabled,
                                                                           ITransaction transaction)
                                                                    throws PortalException
        Throws:
        PortalException