org.apache.lenya.cms.ant
Class MoveNode

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.MoveNode

public class MoveNode
extends TwoNodesTask

Ant task that moves a node in a 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
MoveNode()
           
 
Method Summary
 java.lang.String getRefdocumentid()
           
 void manipulateTree(java.lang.String firstDocumentId, java.lang.String secDocumentId, java.lang.String firstArea, java.lang.String secArea)
          Move a node.
 void setRefdocumentid(java.lang.String string)
           
 
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

MoveNode

public MoveNode()
Method Detail

manipulateTree

public void manipulateTree(java.lang.String firstDocumentId,
                           java.lang.String secDocumentId,
                           java.lang.String firstArea,
                           java.lang.String secArea)
                    throws SiteTreeException
Move a node.

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.

getRefdocumentid

public java.lang.String getRefdocumentid()
Returns:
string The document-id corresponding to the reference node, before which the moved node shoul be inserted. If null, the node is inserted at the end.

setRefdocumentid

public void setRefdocumentid(java.lang.String string)
Parameters:
string - The document-id corresponding to the reference node, before which the moved node shoul be inserted. If null, the node is inserted at the end.


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