org.apache.lenya.cms.ant
Class InitRCTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.lenya.cms.ant.PublicationTask
              extended by org.apache.lenya.cms.ant.DocumentOperationTask
                  extended by org.apache.lenya.cms.ant.TwoDocumentsOperationTask
                      extended by org.apache.lenya.cms.ant.InitRCTask
All Implemented Interfaces:
SiteTreeNodeVisitor

public class InitRCTask
extends TwoDocumentsOperationTask

Ant task, to init the rc files of the destination's documents corresponding to a given source subtree. Evry destination file is checked in. (Visitor pattern)


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
InitRCTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getRcbakDir()
           
 java.lang.String getRcmlDir()
           
 java.lang.String getUserId()
           
 void setRcbakDir(java.lang.String string)
           
 void setRcmlDir(java.lang.String string)
           
 void setUserId(java.lang.String string)
           
 void visitSiteTreeNode(SiteTreeNode node)
          To be overriden.
 
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

InitRCTask

public InitRCTask()
Method Detail

getRcbakDir

public java.lang.String getRcbakDir()
Returns:
String The backups' directory.

getRcmlDir

public java.lang.String getRcmlDir()
Returns:
String The rcml-files' directory.

setRcbakDir

public void setRcbakDir(java.lang.String string)
Parameters:
string - The backup's directory.

setRcmlDir

public void setRcmlDir(java.lang.String string)
Parameters:
string - The rcml-files' directory.

visitSiteTreeNode

public void visitSiteTreeNode(SiteTreeNode node)
Description copied from class: DocumentOperationTask
To be overriden.

Specified by:
visitSiteTreeNode in interface SiteTreeNodeVisitor
Specified by:
visitSiteTreeNode in class DocumentOperationTask
Parameters:
node - The SiteTreeNode.
See Also:
SiteTreeNodeVisitor.visitSiteTreeNode(org.apache.lenya.cms.publication.SiteTreeNode)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class TwoDocumentsOperationTask
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()

getUserId

public java.lang.String getUserId()
Returns:
String The user id.

setUserId

public void setUserId(java.lang.String string)
Parameters:
string - The user id.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.