|
||||||||
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.ComputeNewDocumentId org.apache.lenya.cms.ant.ComputeArchiveDocumentId
public class ComputeArchiveDocumentId
Sets the property "newdocumentid" in the project to the value of the computed unique document id (document id of the source with the latest token replaced by the new name Used by ArchivDocument
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 | |
---|---|
ComputeArchiveDocumentId()
Creates a new instance of ComputeArchiveDocumentId |
Method Summary | |
---|---|
protected java.lang.String |
compute(java.lang.String firstdocumentid,
java.lang.String secdocumentid)
Computes the document id for the destination (renamed file): new documentid = document id of the source, with the latest token replaced by the new name |
Methods inherited from class org.apache.lenya.cms.ant.ComputeNewDocumentId |
---|
computeUniqueId, execute, getArea, getFirstdocumentid, getSecdocumentid, setArea, setFirstdocumentid, setNewProperty, setSecdocumentid |
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 ComputeArchiveDocumentId()
Method Detail |
---|
protected java.lang.String compute(java.lang.String firstdocumentid, java.lang.String secdocumentid)
compute
in class ComputeNewDocumentId
firstdocumentid
- The document id of the source.secdocumentid
- The new name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |