|
||||||||
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.ComputeCopyDocumentId
public class ComputeCopyDocumentId
Sets the property "newdocumentid" in the project to the value of the computed unique document id (document id of the parent + last token of the id of the source) Used by Copy and Move
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 | |
---|---|
ComputeCopyDocumentId()
Creates a new instance of ComputeCopyDocumentId |
Method Summary | |
---|---|
protected java.lang.String |
compute(java.lang.String firstdocumentid,
java.lang.String secdocumentid)
Computes the document id for the destination: new documentid = document id of the parent + last token of the id of the source |
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 ComputeCopyDocumentId()
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 document id of the parent of the destination.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |