]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
fc2f23925cbe98771069f56d88f3c8b4235839c1
[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" point="types">
5                 <types>
6                         <type name="CollectionSpaceDocument">default</type>
7                 </types>
8         </extension>
9
10         <!-- The definition of the CollectionSpace default lifecycle name "cs_default"  -->
11         <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
12                 <documentation>CollectionSpace core default life cycle definition.</documentation>
13                 <lifecycle name="cs_default" defaultInitial="project">
14                         <transitions>
15                                 <transition name="delete" destinationState="deleted">
16                                         <description>Move document to trash (temporary delete)</description>
17                                 </transition>
18                                 <transition name="undelete" destinationState="project">
19                                         <description>Undelete the document.</description>
20                                 </transition>
21                         </transitions>
22                         <states>
23                                 <state name="project" description="Default state" initial="true">
24                                         <transitions>
25                                                 <transition>delete</transition>
26                                         </transitions>
27                                 </state>
28                                 <state name="deleted" description="Document is deleted">
29                                         <transitions>
30                                                 <transition>undelete</transition>
31                                         </transitions>
32                                 </state>
33                         </states>
34                 </lifecycle>
35         </extension>
36
37         <!-- The definition of the CollectionSpace locking lifecycle name "cs_locking"  -->
38         <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
39                 <documentation>CollectionSpace "locking" life cycle definition.</documentation>
40                 <lifecycle name="cs_locking" defaultInitial="project">
41                         <transitions>
42                                 <transition name="lock" destinationState="locked">
43                                         <description>Lock document</description>
44                                 </transition>
45                                 <transition name="delete" destinationState="deleted">
46                                         <description>Move document to trash (temporary delete)</description>
47                                 </transition>
48                                 <transition name="undelete" destinationState="project">
49                                         <description>Undelete the document.</description>
50                                 </transition>
51                         </transitions>
52                         <states>
53                                 <state name="project" description="Default state" initial="true">
54                                         <transitions>
55                                                 <transition>delete</transition>
56                                                 <transition>lock</transition>
57                                         </transitions>
58                                 </state>
59                                 <state name="locked" description="Locked state">
60                                         <!-- No transitions allowed from locked state. -->
61                                 </state>
62                                 <state name="deleted" description="Document is deleted">
63                                         <transitions>
64                                                 <transition>undelete</transition>
65                                         </transitions>
66                                 </state>
67                         </states>
68                 </lifecycle>
69         </extension>
70
71         <!--
72                 The definition of the CollectionSpace "Replication" lifecycle named "cs_replicating" for synchronized resources
73
74                 We have 4 states: "project", "replicated", "deleted", and "replicated_deleted".
75                 We have 8 transition verbs: "", "", "", "", "", "", "", ""
76                 
77                 Example state changes:
78                         - We can move from state "project" -> (via transition "replicate") to state -> "replicated"
79                         - We can move from state "project" -> (via transitions "replicate", "delete_replicated") to state -> "replicated_deleted"
80                         - We can move from state "project" -> (via transitions "delete", "replicate_deleted") to state -> "replicated_deleted"
81                         - We can move from state "project" -> (via transitions "delete") to state -> "deleted" 
82                 
83                 For more information see this wiki page: https://wiki.collectionspace.org/pages/viewpage.action?pageId=162496564
84         -->
85
86         <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
87                 <documentation>CollectionSpace "cs_replicating" life cycle definition.</documentation>
88                 <lifecycle name="cs_replicating" defaultInitial="project">
89                         <transitions>
90                                 <!-- Transitions TO the "project" state -->
91                                 <transition name="unreplicate" destinationState="project">
92                                         <description>Unreplicate the document back to project state.</description>
93                                 </transition>
94                                 <transition name="undelete" destinationState="project">
95                                         <description>Undelete the document to the project state.</description>
96                                 </transition>
97
98                                 <!-- Transitions FROM "project" state TO the "replicated" and the "deleted" states -->
99                                 <transition name="replicate" destinationState="replicated">
100                                         <description>Replicate a document from the project state</description>
101                                 </transition>
102                                 <transition name="delete" destinationState="deleted">
103                                         <description>Soft-delete the document from the project state</description>
104                                 </transition>
105
106                         <!--
107                                 Notice the convention used in the transition names below.  {transition-verb)_{lifecycle-state} -e.g., delete_replicated, replicate_deleted
108                                 This convention is critical to the code here: org.collectionspace.services.client.AuthorityClient.AuthorityItemDocumentModelHandler
109                         -->
110
111                                 <!-- Transitions TO "replicated_deleted" state -->
112                                 <transition name="delete_replicated" destinationState="replicated_deleted">
113                                         <description>Delete the replicated document from the "replicated" state</description>
114                                 </transition>
115                                 <transition name="replicate_deleted" destinationState="replicated_deleted">
116                                         <description>Replicate the deleted document from the "deleted" state.</description>
117                                 </transition>
118
119                                 <!-- Transitions FROM "replicated_deleted" state -->
120                                 <transition name="undelete_replicated" destinationState="replicated">
121                                         <description>Undelete the replicated document from replicated_deleted state</description>
122                                 </transition>
123                                 <transition name="unreplicate_deleted" destinationState="deleted">
124                                         <description>Unreplicate the deleted document.</description>
125                                 </transition>
126
127                         </transitions>
128
129                         <states>
130                                 <state name="project" description="Default state" initial="true">
131                                         <transitions>
132                                                 <transition>delete</transition>
133                                                 <!-- To "deleted" state -->
134                                                 <transition>replicate</transition>
135                                                 <!-- To "replicated" state -->
136                                         </transitions>
137                                 </state>
138                                 <state name="replicated" description="Replicated state">
139                                         <transition>unreplicate</transition>
140                                         <!-- To "project" state -->
141                                         <transition>delete_replicated</transition>
142                                         <!-- To "replicated_deleted" state -->
143                                 </state>
144                                 <state name="deleted" description="Document is deleted">
145                                         <transitions>
146                                                 <transition>undelete</transition>
147                                                 <!-- To "project" state -->
148                                                 <transition>replicate_deleted</transition>
149                                                 <!-- To "replicated_deleted" state -->
150                                         </transitions>
151                                 </state>
152                                 <state name="replicated_deleted" description="Document is replicated and deleted">
153                                         <transitions>
154                                                 <transition>unreplicate_deleted</transition>
155                                                 <!-- To "deleted" state -->
156                                                 <transition>undelete_replicated</transition>
157                                                 <!-- To "replicated" state -->
158                                         </transitions>
159                                 </state>
160                         </states>
161                 </lifecycle>
162         </extension>
163
164 </component>