You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/10/30 22:56:22 UTC
svn commit: rev 56079 - incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input
Author: roku
Date: Sat Oct 30 13:56:21 2004
New Revision: 56079
Modified:
incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java
Log:
Added support for archive node
Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java (original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java Sat Oct 30 13:56:21 2004
@@ -39,8 +39,9 @@
public static final String AUTHORING_NODE = "authoring-node";
public static final String LIVE_NODE = "live-node";
public static final String TRASH_NODE = "trash-node";
+ public static final String ARCHIVE_NODE = "archive-node";
- protected static final String[] PARAMETER_NAMES = { AUTHORING_NODE, LIVE_NODE, TRASH_NODE };
+ protected static final String[] PARAMETER_NAMES = { AUTHORING_NODE, LIVE_NODE, TRASH_NODE, ARCHIVE_NODE };
/**
* @see org.apache.cocoon.components.modules.input.InputModule#getAttribute(java.lang.String,
@@ -68,8 +69,13 @@
}
if (name.equals(TRASH_NODE)) {
- SiteTree authoringTree = manager.getTree(Publication.TRASH_AREA);
- value = authoringTree.getNode(envelope.getDocument().getId());
+ SiteTree trashTree = manager.getTree(Publication.TRASH_AREA);
+ value = trashTree.getNode(envelope.getDocument().getId());
+ }
+
+ if (name.equals(ARCHIVE_NODE)) {
+ SiteTree archiveTree = manager.getTree(Publication.ARCHIVE_AREA);
+ value = archiveTree.getNode(envelope.getDocument().getId());
}
} catch (Exception e) {
throw new ConfigurationException("Obtaining value for [" + name + "] failed: ", e);
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org