|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.lenya.cms.ant.PublicationTask
org.apache.lenya.cms.ant.DocumentIdToFile
public class DocumentIdToFile
Ant task to get the file from the document-id.
DocumentIdToPathMapper.getFile(Publication publication, String area, String documentId, String language)| 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 | |
|---|---|
DocumentIdToFile()
Creates a new instance of DocumentIdToPath. |
|
| Method Summary | |
|---|---|
void |
compute(java.lang.String area,
java.lang.String documentid,
java.lang.String language,
java.lang.String propertyname)
Gets the path from the document id and sets this value in the property of the project with the name propertyname. |
void |
execute()
|
java.lang.String |
getArea()
Get the area. |
protected java.lang.String |
getDocumentid()
Get the document-id. |
java.lang.String |
getLanguage()
Get the language |
java.lang.String |
getPropertyname()
Get the property name. |
void |
setArea(java.lang.String area)
Set the area. |
void |
setDocumentid(java.lang.String documentId)
Set the value of the document id |
void |
setLanguage(java.lang.String language)
Set the language |
void |
setPropertyname(java.lang.String string)
Set the property name |
| 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 |
|---|
public DocumentIdToFile()
| Method Detail |
|---|
public java.lang.String getArea()
protected java.lang.String getDocumentid()
public java.lang.String getPropertyname()
public void setArea(java.lang.String area)
area - The area.public void setPropertyname(java.lang.String string)
string - The name of the property.public void setDocumentid(java.lang.String documentId)
documentId - The document id.public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language - the language
public void compute(java.lang.String area,
java.lang.String documentid,
java.lang.String language,
java.lang.String propertyname)
area - The area (e.g. "authoring")documentid - The document id.language - the language of the documentpropertyname - The name of the property
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||