]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
5c3f95e90932f74f8245495b133b67346d2d1a53
[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                 <!--
106                         Notice the convention used in the transition names below.  {transition-verb)_{lifecycle-state} -e.g., delete_locked
107                         This convention is critical to the code here: org.collectionspace.services.client.AuthorityClient.AuthorityItemDocumentModelHandler
108                 -->
109                 
110                 <!-- Transitions TO "locked_deleted" state -->
111         <transition name="delete_locked" destinationState="locked_deleted">
112           <description>Delete the locked document from the "locked" state</description>
113         </transition>
114         <transition name="lock_deleted" destinationState="locked_deleted">
115           <description>Lock the deleted document from the "deleted" state.</description>
116         </transition>
117         
118                 <!-- Transitions FROM "locked_deleted" state -->
119         <transition name="undelete_locked" destinationState="locked">
120           <description>Undelete the locked document from locked_deleted state</description>
121         </transition>
122         <transition name="unlock_deleted" destinationState="deleted">
123           <description>Unlock the deleted document.</description>
124         </transition>
125                 
126       </transitions>
127           
128       <states>
129         <state name="project" description="Default state" initial="true">
130           <transitions>
131             <transition>delete</transition>                     <!-- To "deleted" state -->
132             <transition>lock</transition>                       <!-- To "locked" state -->
133           </transitions>
134         </state>
135         <state name="locked" description="Locked state">
136             <transition>unlock</transition>             <!-- To "project" state -->
137                         <transition>delete_locked</transition>  <!-- To "locked_deleted" state -->
138         </state>
139         <state name="deleted" description="Document is deleted">
140           <transitions>
141             <transition>undelete</transition>           <!-- To "project" state -->
142                         <transition>lock_deleted</transition>   <!-- To "locked_deleted" state -->
143           </transitions>
144         </state>
145                 <state name="locked_deleted" description="Document is locked and deleted">
146           <transitions>
147             <transition>unlock_deleted</transition>     <!-- To "deleted" state -->
148                         <transition>undelete_locked</transition><!-- To "locked" state -->
149           </transitions>
150         </state>
151       </states>
152     </lifecycle>
153   </extension>
154   
155 </component>