Class AbstractContentExportTask

    • Field Detail

      • contentNodeMapper

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

        protected org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.Item> contentNodeMappingItemFilter
    • Constructor Detail

      • AbstractContentExportTask

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

      • getContentNodeMapper

        public org.onehippo.forge.content.pojo.mapper.ContentNodeMapper<javax.jcr.Node,​javax.jcr.Item,​javax.jcr.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<javax.jcr.Node,​javax.jcr.Item,​javax.jcr.Value> contentNodeMapper)
        Sets ContentNodeMapper instance.
        Parameters:
        contentNodeMapper - ContentNodeMapper instance
      • getContentNodeMappingItemFilter

        public org.onehippo.forge.content.pojo.mapper.ContentNodeMappingItemFilter<javax.jcr.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<javax.jcr.Item> contentNodeMappingItemFilter)
        Sets ContentNodeMappingItemFilter instance.
        Parameters:
        contentNodeMappingItemFilter - ContentNodeMappingItemFilter instance
      • setMetaProperties

        protected void setMetaProperties​(org.onehippo.forge.content.pojo.model.ContentNode contentNode,
                                         javax.jcr.Node sourceNode)
                                  throws javax.jcr.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:
        javax.jcr.RepositoryException - if data cannot be read from the sourceNode due to repository error