Package org.hippoecm.repository.util
Class OverwritingCopyHandler
- java.lang.Object
-
- org.hippoecm.repository.util.DefaultCopyHandler
-
- org.hippoecm.repository.util.OverwritingCopyHandler
-
- All Implemented Interfaces:
CopyHandler
public class OverwritingCopyHandler extends DefaultCopyHandler
CopyHandler that overwrites the first started node.
-
-
Field Summary
-
Fields inherited from class org.hippoecm.repository.util.DefaultCopyHandler
nodeTypeManager
-
-
Constructor Summary
Constructors Constructor Description OverwritingCopyHandler(Node destNode)
OverwritingCopyHandler(Node node, Set<String> protectedMixinNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endNode()
protected void
removeChildNodes(Node node)
protected void
removeProperties(Node node)
protected void
replaceMixins(Node node, NodeInfo nodeInfo)
protected void
setPrimaryType(Node node, NodeInfo nodeInfo)
void
startNode(NodeInfo nodeInfo)
-
Methods inherited from class org.hippoecm.repository.util.DefaultCopyHandler
getCurrent, getCurrentNodeTypes, setCurrent, setProperty
-
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
-
-
-
-
Constructor Detail
-
OverwritingCopyHandler
public OverwritingCopyHandler(Node node, Set<String> protectedMixinNames) throws RepositoryException
- Throws:
RepositoryException
-
OverwritingCopyHandler
public OverwritingCopyHandler(Node destNode) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
startNode
public void startNode(NodeInfo nodeInfo) throws RepositoryException
- Specified by:
startNode
in interfaceCopyHandler
- Overrides:
startNode
in classDefaultCopyHandler
- Throws:
RepositoryException
-
removeProperties
protected void removeProperties(Node node) throws RepositoryException
- Throws:
RepositoryException
-
removeChildNodes
protected void removeChildNodes(Node node) throws RepositoryException
- Throws:
RepositoryException
-
setPrimaryType
protected void setPrimaryType(Node node, NodeInfo nodeInfo) throws RepositoryException
- Throws:
RepositoryException
-
replaceMixins
protected void replaceMixins(Node node, NodeInfo nodeInfo) throws RepositoryException
- Throws:
RepositoryException
-
endNode
public void endNode() throws RepositoryException
- Specified by:
endNode
in interfaceCopyHandler
- Overrides:
endNode
in classDefaultCopyHandler
- Throws:
RepositoryException
-
-