org.apache.lenya.cms.ant
Class InsertCopyNode

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.lenya.cms.ant.PublicationTask
              extended by org.apache.lenya.cms.ant.TwoNodesTask
                  extended by org.apache.lenya.cms.ant.InsertCopyNode

public class InsertCopyNode
extends TwoNodesTask

Ant task that copies a node of a tree and inserts it in tree


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
InsertCopyNode()
          Creates a new instance of InsertCopyNode
 
Method Summary
 void manipulateTree(java.lang.String firstDocumentId, java.lang.String secDocumentId, java.lang.String firstArea, java.lang.String secArea)
          copies a node corresponding to a document with id firstdocumentid and area firstarea and inserts it like a node corresponding to a document with id secdocumentid and area secarea.
 
Methods inherited from class org.apache.lenya.cms.ant.TwoNodesTask
execute, getFirstarea, getFirstdocumentid, getSecarea, getSecdocumentid, setFirstarea, setFirstdocumentid, setSecarea, setSecdocumentid
 
Methods inherited from class org.apache.lenya.cms.ant.PublicationTask
assertString, getContextPrefix, getPublication, getPublicationDirectory, getPublicationId, getServletContext
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertCopyNode

public InsertCopyNode()
Creates a new instance of InsertCopyNode

Method Detail

manipulateTree

public void manipulateTree(java.lang.String firstDocumentId,
                           java.lang.String secDocumentId,
                           java.lang.String firstArea,
                           java.lang.String secArea)
                    throws SiteTreeException
copies a node corresponding to a document with id firstdocumentid and area firstarea and inserts it like a node corresponding to a document with id secdocumentid and area secarea.

Specified by:
manipulateTree in class TwoNodesTask
Parameters:
firstDocumentId - The document-id of the document corresponding to the source node.
secDocumentId - The document-id of the document corresponding to the destination node.
firstArea - The area of the document corresponding to the source node.
secArea - The area of the document corresponding to the destination node.
Throws:
SiteTreeException - if there are problems with creating or saving the site tree.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.