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 NodeTypeManager
nodeTypeManager
-
Constructor Summary
Constructors Constructor Description DefaultCopyHandler(Node node)
DefaultCopyHandler(Node node, Set<String> protectedMixinNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endNode()
Node
getCurrent()
protected NodeType[]
getCurrentNodeTypes()
protected DefaultCopyHandler
setCurrent(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
-
-
-
-
Field Detail
-
nodeTypeManager
protected final NodeTypeManager nodeTypeManager
-
-
Constructor Detail
-
DefaultCopyHandler
public DefaultCopyHandler(Node node) throws RepositoryException
- Throws:
RepositoryException
-
DefaultCopyHandler
public DefaultCopyHandler(Node node, Set<String> protectedMixinNames) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
setCurrent
protected DefaultCopyHandler setCurrent(Node node) throws RepositoryException
- Throws:
RepositoryException
-
startNode
public void startNode(NodeInfo nodeInfo) throws RepositoryException
- Specified by:
startNode
in interfaceCopyHandler
- Throws:
RepositoryException
-
endNode
public void endNode() throws RepositoryException
- Specified by:
endNode
in interfaceCopyHandler
- Throws:
RepositoryException
-
setProperty
public void setProperty(PropInfo propInfo) throws RepositoryException
- Specified by:
setProperty
in interfaceCopyHandler
- Throws:
RepositoryException
-
getCurrent
public Node getCurrent()
- Specified by:
getCurrent
in interfaceCopyHandler
-
getCurrentNodeTypes
protected NodeType[] getCurrentNodeTypes()
-
-