info.magnolia.cms.core.version
Class CopyUtil

java.lang.Object
  extended by info.magnolia.cms.core.version.CopyUtil

public final class CopyUtil
extends Object

Util to copy nodes and hierarchies between workspaces. A Content.ContentFilter defines what such a copy process includes. This is used to copy pages to the version workspace. While the paragraph nodes have to be copied the sub-pages should not.

Author:
Sameer Charles $Id: CopyUtil.java 41137 2011-01-06 18:19:25Z gjoseph $

Method Summary
 void clone(Content node, Content parent, Content.ContentFilter filter, boolean removeExisting)
           
static CopyUtil getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CopyUtil getInstance()

clone

public void clone(Content node,
                  Content parent,
                  Content.ContentFilter filter,
                  boolean removeExisting)
           throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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