@Singleton public final class CopyUtil extends Object
Util to copy nodes and hierarchies between workspaces. A Node, Predicate
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.
Storage structure is generated from node's uuid, level 1 node - first two letters from the first part, level 2 node - two letters from the second part and level 3 node - two letters from third part.
Example: for uuid
93b0b5d8-8a10-11e6-ae22-56b6b6499611is generated following structure:
/93/8a/11/[nodeName].
Constructor and Description |
---|
CopyUtil(SystemContext systemContext,
RepositoryManager repositoryManager) |
Modifier and Type | Method and Description |
---|---|
void |
clone(javax.jcr.Node node,
javax.jcr.Node parent,
org.apache.jackrabbit.commons.predicate.Predicate filter,
boolean removeExisting) |
@Inject public CopyUtil(SystemContext systemContext, RepositoryManager repositoryManager)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.