Package org.hippoecm.repository.util
Class OverwritingCopyHandler
java.lang.Object
org.hippoecm.repository.util.DefaultCopyHandler
org.hippoecm.repository.util.OverwritingCopyHandler
- All Implemented Interfaces:
CopyHandler
CopyHandler that overwrites the first started node.
-
Field Summary
Fields inherited from class org.hippoecm.repository.util.DefaultCopyHandler
nodeTypeManager
-
Constructor Summary
ConstructorDescriptionOverwritingCopyHandler
(Node destNode) OverwritingCopyHandler
(Node node, Set<String> protectedMixinNames) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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 Details
-
OverwritingCopyHandler
public OverwritingCopyHandler(Node node, Set<String> protectedMixinNames) throws RepositoryException - Throws:
RepositoryException
-
OverwritingCopyHandler
- Throws:
RepositoryException
-
-
Method Details
-
startNode
- Specified by:
startNode
in interfaceCopyHandler
- Overrides:
startNode
in classDefaultCopyHandler
- Throws:
RepositoryException
-
removeProperties
- Throws:
RepositoryException
-
removeChildNodes
- Throws:
RepositoryException
-
setPrimaryType
- Throws:
RepositoryException
-
replaceMixins
- Throws:
RepositoryException
-
endNode
- Specified by:
endNode
in interfaceCopyHandler
- Overrides:
endNode
in classDefaultCopyHandler
- Throws:
RepositoryException
-