]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
Added new life cycle definitions - {active and deleted) and {active, deleted, and...
authorRichard Millet <remillet@berkeley.edu>
Tue, 10 Apr 2012 23:55:24 +0000 (16:55 -0700)
committerRichard Millet <remillet@berkeley.edu>
Tue, 10 Apr 2012 23:55:24 +0000 (16:55 -0700)
3rdparty/nuxeo/nuxeo-platform-collectionspace/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/pom.xml

index d68c55c1f801d7b9076f305a7d4ae9fb31e1ccf6..182befb2e741bc3dbbfcab41da725c96defe2f47 100644 (file)
@@ -8,4 +8,72 @@
     </types>
   </extension>
 
+  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
+
+    <documentation>CollectionSpace core default life cycle definition.</documentation>
+
+    <lifecycle name="cs_default" defaultInitial="active">
+      <transitions>
+        <transition name="delete" destinationState="deleted">
+          <description>Move document to trash (temporary delete)</description>
+        </transition>
+        <transition name="undelete" destinationState="active">
+          <description>Recover the document from trash</description>
+        </transition>
+      </transitions>
+      <states>
+        <state name="active" description="Default state" initial="true">
+          <transitions>
+            <transition>delete</transition>
+          </transitions>
+        </state>
+        <state name="deleted" description="Document is deleted">
+          <transitions>
+            <transition>undelete</transition>
+          </transitions>
+        </state>
+      </states>
+    </lifecycle>
+  </extension>
+  
+  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
+  
+    <documentation>CollectionSpace "locking" life cycle definition.</documentation>
+
+    <lifecycle name="cs_locking" defaultInitial="active">
+      <transitions>
+        <transition name="lock" destinationState="locked">
+          <description>Lock document</description>
+        </transition>
+        <transition name="unlock" destinationState="active">
+          <description>Unlock the document</description>
+        </transition>
+        <transition name="delete" destinationState="deleted">
+          <description>Move document to trash (temporary delete)</description>
+        </transition>
+        <transition name="undelete" destinationState="active">
+          <description>Recover the document from trash</description>
+        </transition>
+      </transitions>     
+      <states>
+        <state name="active" description="Default state" initial="true">
+          <transitions>
+            <transition>delete</transition>
+            <transition>lock</transition>
+          </transitions>
+        </state>
+        <state name="locked" description="Locked state">
+          <transitions>
+            <transition>unlock</transition>
+          </transitions>
+        </state>
+        <state name="deleted" description="Document is deleted">
+          <transitions>
+            <transition>undelete</transition>
+          </transitions>
+        </state>
+      </states>
+    </lifecycle>
+  </extension>
+
 </component>
index 152eccc905242e50a97c49a9728dd0ef0ebef613..5c841786a0af8d49b9655329b7c06be1663d399c 100644 (file)
@@ -8,7 +8,6 @@
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
-    <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.collectionobject.3rdparty.nuxeo</artifactId>
     <packaging>jar</packaging>
     <description>