]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
ecfbcbd3e5b4ec64877a22b6d18a1b805e7b51f6
[tmp/jakarta-migration.git] /
1 <?xml version="1.0"?>
2 <component name="org.collectionspace.ecm.platform.default.LifeCycleManagerExtensions">
3
4   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
5                 point="types">
6     <types>
7       <type name="CollectionSpaceDocument">default</type>
8     </types>
9   </extension>
10
11   <!-- The definition of the CollectionSpace default lifecycle name "cs_default"  -->
12   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
13                 point="lifecycle">
14     <documentation>CollectionSpace core default life cycle definition.</documentation>
15     <lifecycle name="cs_default" defaultInitial="project">
16       <transitions>
17         <transition name="delete" destinationState="deleted">
18           <description>Move document to trash (temporary delete)</description>
19         </transition>
20         <transition name="undelete" destinationState="project">
21           <description>Undelete the document.</description>
22         </transition>        
23       </transitions>
24       <states>
25         <state name="project" description="Default state" initial="true">
26           <transitions>
27             <transition>delete</transition>
28           </transitions>
29         </state>
30         <state name="deleted" description="Document is deleted">
31           <transitions>
32             <transition>undelete</transition>
33           </transitions>
34         </state>
35       </states>
36     </lifecycle>
37   </extension>
38   
39   <!-- The definition of the CollectionSpace locking lifecycle name "cs_locking"  -->  
40   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
41                 point="lifecycle">
42     <documentation>CollectionSpace "locking" life cycle definition.</documentation>
43     <lifecycle name="cs_locking" defaultInitial="project">
44       <transitions>
45         <transition name="lock" destinationState="locked">
46           <description>Lock document</description>
47         </transition>
48         <transition name="delete" destinationState="deleted">
49           <description>Move document to trash (temporary delete)</description>
50         </transition>
51         <transition name="undelete" destinationState="project">
52           <description>Undelete the document.</description>
53         </transition>        
54       </transitions>      
55       <states>
56         <state name="project" description="Default state" initial="true">
57           <transitions>
58             <transition>delete</transition>
59             <transition>lock</transition>
60           </transitions>
61         </state>
62         <state name="locked" description="Locked state">
63                 <!-- No transitions allowed from locked state. -->
64         </state>
65         <state name="deleted" description="Document is deleted">
66           <transitions>
67             <transition>undelete</transition>
68           </transitions>
69         </state>
70       </states>
71     </lifecycle>
72   </extension>
73   
74     <!-- The definition of the CollectionSpace SAS lifecycle name "cs_sas"  for Shared authority resources --> 
75         <!--
76                 We have four states: "project", "locked", "deleted", and "locked_deleted".
77                 
78                 We can move from Project <-> (Locked, Delete) <-> LockedAndDeleted
79                 
80                 Project <-> (Locked, Delete) uses these transitions: lock, unlock, delete, undelete
81                 LockedAndDeleted <-> (Locked, Deleted) uses these transitions: lock_deleted, unlock_deleted, delete_locked, undelete_locked
82         -->
83
84   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
85                 point="lifecycle">
86     <documentation>CollectionSpace "SAS" life cycle definition.</documentation>
87     <lifecycle name="cs_sas" defaultInitial="project">
88       <transitions>
89                 <!-- Transitions TO the "project" state -->
90         <transition name="unlock" destinationState="project">
91           <description>Unlock the document back to project state.</description>
92         </transition>                   
93         <transition name="undelete" destinationState="project">
94           <description>Undelete the document to the project state.</description>
95         </transition>
96                 
97                 <!-- Transitions FROM "project" state TO the "locked" and the "deleted" states -->
98                 <transition name="lock" destinationState="locked">
99           <description>Lock a document from the project state</description>
100         </transition>
101         <transition name="delete" destinationState="deleted">
102           <description>Soft-delete the document from the project state</description>
103         </transition>
104
105                 <!-- Transitions TO "locked_deleted" state -->
106         <transition name="delete_locked" destinationState="locked_deleted">
107           <description>Delete the locked document from the "locked" state</description>
108         </transition>
109         <transition name="lock_deleted" destinationState="locked_deleted">
110           <description>Lock the deleted document from the "deleted" state.</description>
111         </transition>
112         
113                 <!-- Transitions FROM "locked_deleted" state -->
114         <transition name="undelete_locked" destinationState="locked">
115           <description>Undelete the locked document from locked_deleted state</description>
116         </transition>
117         <transition name="unlock_deleted" destinationState="deleted">
118           <description>Unlock the deleted document.</description>
119         </transition>
120                 
121       </transitions>
122           
123       <states>
124         <state name="project" description="Default state" initial="true">
125           <transitions>
126             <transition>delete</transition>                     <!-- To "deleted" state -->
127             <transition>lock</transition>                       <!-- To "locked" state -->
128           </transitions>
129         </state>
130         <state name="locked" description="Locked state">
131             <transition>unlock</transition>             <!-- To "project" state -->
132                         <transition>delete_locked</transition>  <!-- To "locked_deleted" state -->
133         </state>
134         <state name="deleted" description="Document is deleted">
135           <transitions>
136             <transition>undelete</transition>           <!-- To "project" state -->
137                         <transition>lock_deleted</transition>   <!-- To "locked_deleted" state -->
138           </transitions>
139         </state>
140                 <state name="locked_deleted" description="Document is locked and deleted">
141           <transitions>
142             <transition>unlock_deleted</transition>     <!-- To "deleted" state -->
143                         <transition>undelete_locked</transition><!-- To "locked" state -->
144           </transitions>
145         </state>
146       </states>
147     </lifecycle>
148   </extension>
149   
150 </component>