You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/20 09:29:02 UTC

svn commit: r379055 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java

Author: andreas
Date: Mon Feb 20 00:29:00 2006
New Revision: 379055

URL: http://svn.apache.org/viewcvs?rev=379055&view=rev
Log:
Removed obsolete HISTORY_PATH attribute from WorkflowModule

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java?rev=379055&r1=379054&r2=379055&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java Mon Feb 20 00:29:00 2006
@@ -17,7 +17,6 @@
 
 package org.apache.lenya.cms.cocoon.components.modules.input;
 
-import java.io.File;
 import java.util.Arrays;
 import java.util.Iterator;
 import java.util.Map;
@@ -49,13 +48,8 @@
      * <code>VARIABLE_PREFIX</code> The variable prefix
      */
     public static final String VARIABLE_PREFIX = "variable.";
-    /**
-     * <code>HISTORY_PATH</code> The history path
-     * @deprecated Exposes implementation details.
-     */
-    public static final String HISTORY_PATH = "history-path";
 
-    static final String[] PARAMETER_NAMES = { STATE, HISTORY_PATH };
+    static final String[] PARAMETER_NAMES = { STATE };
 
     /**
      * @see org.apache.cocoon.components.modules.input.InputModule#getAttribute(java.lang.String,
@@ -100,15 +94,6 @@
                                 value = Boolean.valueOf(latestVersion.getValue(variableName));
                             }
                         }
-                    } else if (name.equals(HISTORY_PATH)) {
-                        final String path = document.getPublication()
-                                .getPathMapper()
-                                .getPath(document.getId(), document.getLanguage());
-                        final String uri = "content/workflow/history/" + path;
-                        final File pubDir = document.getPublication().getDirectory();
-                        final File workflowFile = new File(pubDir, uri.replace('/',
-                                File.separatorChar));
-                        value = workflowFile.getAbsolutePath();
                     } else {
                         throw new ConfigurationException("The attribute [" + name
                                 + "] is not supported!");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org