org.apache.lenya.cms.ant
Class SetIdentifier

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

public class SetIdentifier
extends PublicationTask

anttask to set the document-id in the dc:identifier of all existing files corresponding to this document-id


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
SetIdentifier()
           
 
Method Summary
 void execute()
           
 java.lang.String getArea()
           
 java.lang.String getDocumentid()
           
 void setArea(java.lang.String string)
           
 void setDocumentid(java.lang.String string)
           
 void writeDCIdentifier(Publication publication, java.lang.String url)
          write the document id in the DC Identifier of a document corresponding to this url
 
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

SetIdentifier

public SetIdentifier()
Method Detail

getArea

public java.lang.String getArea()
Returns:
String The area.

getDocumentid

public java.lang.String getDocumentid()
Returns:
String The document-id.

setArea

public void setArea(java.lang.String string)
Parameters:
string - The area.

setDocumentid

public void setDocumentid(java.lang.String string)
Parameters:
string - The document-id.

writeDCIdentifier

public void writeDCIdentifier(Publication publication,
                              java.lang.String url)
                       throws DocumentBuildException,
                              DocumentException
write the document id in the DC Identifier of a document corresponding to this url

Parameters:
publication - The publication the document belongs to.
url - The URL of the form /{publication-id}/...
Throws:
DocumentBuildException - when something went wrong when building the cms document.
DocumentException - when something went wrong when getting the DublinCore.

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.