Class AbstractContentExportTask

java.lang.Object
org.onehippo.forge.content.exim.core.impl.AbstractContentMigrationTask
org.onehippo.forge.content.exim.core.impl.AbstractContentExportTask
All Implemented Interfaces:
ContentMigrationTask
Direct Known Subclasses:
DefaultBinaryExportTask, WorkflowDocumentVariantExportTask

public abstract class AbstractContentExportTask extends AbstractContentMigrationTask
Abstract content export task implementation class to provide common properties and utility operations.
  • Field Details

    • contentNodeMapper

      protected org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node,Item,Value> contentNodeMapper
    • contentNodeMappingItemFilter

      protected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter
  • Constructor Details

    • AbstractContentExportTask

      public AbstractContentExportTask(DocumentManager documentManager)
      Constructs with documentManager.
      Parameters:
      documentManager - DocumentManager instance
  • Method Details

    • getContentNodeMapper

      public org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node,Item,Value> getContentNodeMapper()
      Returns ContentNodeMapper instance. If not set, returns a default implementation.
      Returns:
      ContentNodeMapper instance. If not set, returns a default implementation
    • setContentNodeMapper

      public void setContentNodeMapper(org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<Node,Item,Value> contentNodeMapper)
      Sets ContentNodeMapper instance.
      Parameters:
      contentNodeMapper - ContentNodeMapper instance
    • getContentNodeMappingItemFilter

      public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> getContentNodeMappingItemFilter()
      Returns ContentNodeMappingItemFilter instance. If not set, returns a default implementation.
      Returns:
      ContentNodeMappingItemFilter instance. If not set, returns a default implementation
    • setContentNodeMappingItemFilter

      public void setContentNodeMappingItemFilter(org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<Item> contentNodeMappingItemFilter)
      Sets ContentNodeMappingItemFilter instance.
      Parameters:
      contentNodeMappingItemFilter - ContentNodeMappingItemFilter instance
    • setMetaProperties

      protected void setMetaProperties(org.onehippo.forge.content.pojo.model.ContentNode contentNode, Node sourceNode) throws RepositoryException
      Set meta properties such as Constants.META_PROP_NODE_PATH and Constants.META_PROP_NODE_LOCALIZED_NAME, which might be helpful when importing back later.
      Parameters:
      contentNode - ContentNode instance to set the meta properties
      sourceNode - the source node from which the meta properties should be extracted
      Throws:
      RepositoryException - if data cannot be read from the sourceNode due to repository error