svn commit: r587898 - in /lenya/trunk/src: modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java pubs/default/config/workflow/workflow.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Wed Oct 24 07:36:34 2007
New Revision: 587898

URL: http://svn.apache.org/viewvc?rev=587898&view=rev
Log:
Allow for deleting of files directly from archive. Fixes bug 43691.

Modified:
    lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java
    lenya/trunk/src/pubs/default/config/workflow/workflow.xml

Modified: lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java?rev=587898&r1=587897&r2=587898&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java (original)
+++ lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Delete.java Wed Oct 24 07:36:34 2007
@@ -31,7 +31,7 @@
      * @see org.apache.lenya.cms.site.usecases.MoveSubsite#getSourceAreas()
      */
     protected String[] getSourceAreas() {
-        return new String[] { Publication.AUTHORING_AREA };
+        return new String[] { Publication.AUTHORING_AREA, Publication.ARCHIVE_AREA };
     }
 
     /**
@@ -48,4 +48,4 @@
         return "delete";
     }
 
-}
\ No newline at end of file
+}

Modified: lenya/trunk/src/pubs/default/config/workflow/workflow.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/config/workflow/workflow.xml?rev=587898&r1=587897&r2=587898&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/config/workflow/workflow.xml (original)
+++ lenya/trunk/src/pubs/default/config/workflow/workflow.xml Wed Oct 24 07:36:34 2007
@@ -90,6 +90,11 @@
     <event id="restore"/>
     <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
   </transition>
+
+  <transition source="archive" destination="trash">
+    <event id="delete"/>
+    <condition class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
+  </transition>
   
   <transition source="trash" destination="authoring">
     <event id="restore"/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.