|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.lenya.cms.ant.PublicationTask org.apache.lenya.cms.ant.TreePublisher
public class TreePublisher
Ant task to publish the tree, adding a node for the new published document in the live 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 | |
---|---|
TreePublisher()
Creates a new instance of TreePublisher |
Method Summary | |
---|---|
void |
execute()
Executes the task |
protected java.lang.String |
getDocumentid()
Returns the document id |
java.lang.String |
getLanguage()
Get the language of the document to be published |
void |
publish(java.lang.String documentId,
java.lang.String language)
adds a node for the published document in the live tree |
void |
setDocumentid(java.lang.String documentid)
Sets the document id |
void |
setLanguage(java.lang.String string)
Set the language of the document to be published |
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 TreePublisher()
Method Detail |
---|
protected java.lang.String getDocumentid()
public void setDocumentid(java.lang.String documentid)
documentid
- DOCUMENT ME!public java.lang.String getLanguage()
String
containing the ISO string for this language, e.g. "de", "en"public void setLanguage(java.lang.String string)
string
- the ISO string for this language, e.g. "de", "en"public void publish(java.lang.String documentId, java.lang.String language) throws PublishingException
documentId
- The id of the published documentlanguage
- the language for which this document is to be published. Can be null if all
languages are to be published.
PublishingException
- if the publication failed.public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- DOCUMENT ME!
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |