info.magnolia.importexport.postprocessors
Class MetaDataAsMixinConversionHelper

java.lang.Object
  extended by info.magnolia.importexport.postprocessors.MetaDataAsMixinConversionHelper

public class MetaDataAsMixinConversionHelper
extends Object

Converts the MetaData sub node into properties on the mixins mgnl:created, mgnl:lastModified, mgnl:renderable, mgnl:activatable and mgnl:activatable. It also renames the property mgnl:deletedOn property on the mixin mgnl:deleted to mgnl:deleted. The MetaData node itself is optionally removed if there are no additional properties on it.


Constructor Summary
MetaDataAsMixinConversionHelper()
           
 
Method Summary
 void convertNodeAndChildren(javax.jcr.Node startNode)
           
 boolean isDeleteMetaDataIfEmptied()
           
 boolean isPeriodicSaves()
           
 void setDeleteMetaDataIfEmptied(boolean deleteMetaDataIfEmptied)
           
 void setPeriodicSaves(boolean periodicSaves)
          Sets whether to save periodically as the sub tree is converted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataAsMixinConversionHelper

public MetaDataAsMixinConversionHelper()
Method Detail

isDeleteMetaDataIfEmptied

public boolean isDeleteMetaDataIfEmptied()

setDeleteMetaDataIfEmptied

public void setDeleteMetaDataIfEmptied(boolean deleteMetaDataIfEmptied)

isPeriodicSaves

public boolean isPeriodicSaves()

setPeriodicSaves

public void setPeriodicSaves(boolean periodicSaves)
Sets whether to save periodically as the sub tree is converted. This reduces the amount of memory required.


convertNodeAndChildren

public void convertNodeAndChildren(javax.jcr.Node startNode)
                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.