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(javax.jcr.Node destNode)
OverwritingCopyHandler(javax.jcr.Node node, Set<String> protectedMixinNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endNode()
protected void
removeChildNodes(javax.jcr.Node node)
protected void
removeProperties(javax.jcr.Node node)
protected void
replaceMixins(javax.jcr.Node node, NodeInfo nodeInfo)
protected void
setPrimaryType(javax.jcr.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(javax.jcr.Node node, Set<String> protectedMixinNames) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
OverwritingCopyHandler
public OverwritingCopyHandler(javax.jcr.Node destNode) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-
Method Detail
-
startNode
public void startNode(NodeInfo nodeInfo) throws javax.jcr.RepositoryException
- Specified by:
startNode
in interfaceCopyHandler
- Overrides:
startNode
in classDefaultCopyHandler
- Throws:
javax.jcr.RepositoryException
-
removeProperties
protected void removeProperties(javax.jcr.Node node) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
removeChildNodes
protected void removeChildNodes(javax.jcr.Node node) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
setPrimaryType
protected void setPrimaryType(javax.jcr.Node node, NodeInfo nodeInfo) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
replaceMixins
protected void replaceMixins(javax.jcr.Node node, NodeInfo nodeInfo) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
endNode
public void endNode() throws javax.jcr.RepositoryException
- Specified by:
endNode
in interfaceCopyHandler
- Overrides:
endNode
in classDefaultCopyHandler
- Throws:
javax.jcr.RepositoryException
-
-