org.apache.lenya.cms.ant
Class MoveDocumentTask

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.MoveDocumentTask
All Implemented Interfaces:
SiteTreeNodeVisitor

public class MoveDocumentTask
extends PublicationTask
implements SiteTreeNodeVisitor

Ant task, which implements the SiteTreeNodeVisitor for the operation move a document. (Visitor pattern)


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
MoveDocumentTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getFirstarea()
           
 java.lang.String getFirstdocumentid()
           
 java.lang.String getSecarea()
           
 java.lang.String getSecdocumentid()
           
 void setFirstarea(java.lang.String string)
           
 void setFirstdocumentid(java.lang.String string)
           
 void setSecarea(java.lang.String string)
           
 void setSecdocumentid(java.lang.String string)
           
 void visitSiteTreeNode(SiteTreeNode node)
          move the workflow files
 
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

MoveDocumentTask

public MoveDocumentTask()
Method Detail

getFirstarea

public java.lang.String getFirstarea()
Returns:
String The area of the source.

getFirstdocumentid

public java.lang.String getFirstdocumentid()
Returns:
String The document-id corresponding to the source.

getSecarea

public java.lang.String getSecarea()
Returns:
String The area of the destination.

getSecdocumentid

public java.lang.String getSecdocumentid()
Returns:
String The document-id corresponding to the destination.

setFirstarea

public void setFirstarea(java.lang.String string)
Parameters:
string - The area of the source.

setFirstdocumentid

public void setFirstdocumentid(java.lang.String string)
Parameters:
string - The document-id corresponding to the source.

setSecarea

public void setSecarea(java.lang.String string)
Parameters:
string - The area of the destination.

setSecdocumentid

public void setSecdocumentid(java.lang.String string)
Parameters:
string - The document-id corresponding to the destination.

visitSiteTreeNode

public void visitSiteTreeNode(SiteTreeNode node)
move the workflow files

Specified by:
visitSiteTreeNode in interface SiteTreeNodeVisitor
Parameters:
node - The SiteTreeNode.
See Also:
SiteTreeNodeVisitor.visitSiteTreeNode(org.apache.lenya.cms.publication.SiteTreeNode)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()


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