|
||||||||
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.DocumentOperationTask
org.apache.lenya.cms.ant.TwoDocumentsOperationTask
org.apache.lenya.cms.ant.DeletePoliciesTask
public class DeletePoliciesTask
Ant task to delete the policies of documents corresponding to a defined subtree Visitor of the defined subtree (visitor pattern). The subtree is reverse visited.
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 | |
---|---|
DeletePoliciesTask()
|
Method Summary | |
---|---|
void |
deletePolicies(java.io.File srcDir)
Delte the policies file |
void |
execute()
|
java.io.File[] |
getFiles(java.io.File directory)
Get all files in a given directory, that are not directories. |
java.lang.String |
getPoliciesDir()
|
void |
setPoliciesDir(java.lang.String string)
|
void |
visitSiteTreeNode(SiteTreeNode node)
(non-Javadoc) |
Methods inherited from class org.apache.lenya.cms.ant.TwoDocumentsOperationTask |
---|
getSecarea, getSecdocumentid, setSecarea, setSecdocumentid |
Methods inherited from class org.apache.lenya.cms.ant.DocumentOperationTask |
---|
getFirstarea, getFirstdocumentid, setFirstarea, setFirstdocumentid |
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 DeletePoliciesTask()
Method Detail |
---|
public java.lang.String getPoliciesDir()
public void setPoliciesDir(java.lang.String string)
string
- The policies directorypublic java.io.File[] getFiles(java.io.File directory)
directory
- The directory
public void deletePolicies(java.io.File srcDir)
srcDir
- The directory of the policies files.public void visitSiteTreeNode(SiteTreeNode node)
visitSiteTreeNode
in interface SiteTreeNodeVisitor
visitSiteTreeNode
in class DocumentOperationTask
node
- The SiteTreeNode.DocumentOperationTask.visitSiteTreeNode(org.apache.lenya.cms.publication.SiteTreeNode)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class TwoDocumentsOperationTask
org.apache.tools.ant.BuildException
Task.execute()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |