Class OverwritingCopyHandler

  • All Implemented Interfaces:
    CopyHandler

    public class OverwritingCopyHandler
    extends DefaultCopyHandler
    CopyHandler that overwrites the first started node.
    • 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

      • 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