Package org.hippoecm.repository.util
Class DefaultCopyHandler
- java.lang.Object
-
- org.hippoecm.repository.util.DefaultCopyHandler
-
- All Implemented Interfaces:
CopyHandler
- Direct Known Subclasses:
OverwritingCopyHandler
public class DefaultCopyHandler extends Object implements CopyHandler
CopyHandler that adds the first node as a child.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.jcr.nodetype.NodeTypeManager
nodeTypeManager
-
Constructor Summary
Constructors Constructor Description DefaultCopyHandler(javax.jcr.Node node)
DefaultCopyHandler(javax.jcr.Node node, Set<String> protectedMixinNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endNode()
javax.jcr.Node
getCurrent()
protected javax.jcr.nodetype.NodeType[]
getCurrentNodeTypes()
protected DefaultCopyHandler
setCurrent(javax.jcr.Node node)
void
setProperty(PropInfo propInfo)
void
startNode(NodeInfo nodeInfo)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hippoecm.repository.util.CopyHandler
skipNode
-
-
-
-
Method Detail
-
setCurrent
protected DefaultCopyHandler setCurrent(javax.jcr.Node node) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
startNode
public void startNode(NodeInfo nodeInfo) throws javax.jcr.RepositoryException
- Specified by:
startNode
in interfaceCopyHandler
- Throws:
javax.jcr.RepositoryException
-
endNode
public void endNode() throws javax.jcr.RepositoryException
- Specified by:
endNode
in interfaceCopyHandler
- Throws:
javax.jcr.RepositoryException
-
setProperty
public void setProperty(PropInfo propInfo) throws javax.jcr.RepositoryException
- Specified by:
setProperty
in interfaceCopyHandler
- Throws:
javax.jcr.RepositoryException
-
getCurrent
public javax.jcr.Node getCurrent()
- Specified by:
getCurrent
in interfaceCopyHandler
-
getCurrentNodeTypes
protected javax.jcr.nodetype.NodeType[] getCurrentNodeTypes()
-
-