org.apache.lenya.cms.ant
Class LinkRewriteTask

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

public class LinkRewriteTask
extends PublicationTask

This task is used to rewrite internal links after a cut'n'paste operation, i.e. after a document has changed its document-id. It finds all relevant documents which have a link to the document that changed its document-id and changes this link with the help of an xslt.


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
LinkRewriteTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getArea()
          Get the area
 java.lang.String getNewDocumentId()
          Get the new document-id.
 java.lang.String getOldDocumentId()
          Get the old document-id.
 void setArea(java.lang.String _area)
          Set the area
 void setBaseDir(java.lang.String _baseDir)
          Set the base dir where in which the link rewrite will take place.
 void setNewDocumentId(java.lang.String _newDocumentId)
          Set the new document-id.
 void setOldDocumentId(java.lang.String _oldDocumentId)
          Set the old document-id.
 void setStylesheet(java.lang.String _stylesheet)
          Set the stylesheet.
 
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

LinkRewriteTask

public LinkRewriteTask()
Method Detail

getArea

public java.lang.String getArea()
Get the area

Returns:
the area

setArea

public void setArea(java.lang.String _area)
Set the area

Parameters:
_area - the area

getNewDocumentId

public java.lang.String getNewDocumentId()
Get the new document-id.

Returns:
the new document-id

setNewDocumentId

public void setNewDocumentId(java.lang.String _newDocumentId)
Set the new document-id.

Parameters:
_newDocumentId - the new document-id

getOldDocumentId

public java.lang.String getOldDocumentId()
Get the old document-id.

Returns:
the old document-id

setOldDocumentId

public void setOldDocumentId(java.lang.String _oldDocumentId)
Set the old document-id.

Parameters:
_oldDocumentId - the old document-id

setStylesheet

public void setStylesheet(java.lang.String _stylesheet)
Set the stylesheet.

Parameters:
_stylesheet - the stylesheet that transforms the links

setBaseDir

public void setBaseDir(java.lang.String _baseDir)
Set the base dir where in which the link rewrite will take place.

Parameters:
_baseDir - the base dir

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.