<documentation>CollectionSpace core default life cycle definition.</documentation>
- <lifecycle name="cs_default" defaultInitial="active">
+ <lifecycle name="cs_default" defaultInitial="project">
<transitions>
<transition name="delete" destinationState="deleted">
<description>Move document to trash (temporary delete)</description>
</transition>
- <transition name="undelete" destinationState="active">
+ <transition name="undelete" destinationState="project">
<description>Recover the document from trash</description>
</transition>
</transitions>
<states>
- <state name="active" description="Default state" initial="true">
+ <state name="project" description="Default state" initial="true">
<transitions>
<transition>delete</transition>
</transitions>
<documentation>CollectionSpace "locking" life cycle definition.</documentation>
- <lifecycle name="cs_locking" defaultInitial="active">
+ <lifecycle name="cs_locking" defaultInitial="project">
<transitions>
<transition name="lock" destinationState="locked">
<description>Lock document</description>
</transition>
- <transition name="unlock" destinationState="active">
+ <transition name="unlock" destinationState="project">
<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">
+ <transition name="undelete" destinationState="project">
<description>Recover the document from trash</description>
</transition>
</transitions>
<states>
- <state name="active" description="Default state" initial="true">
+ <state name="project" description="Default state" initial="true">
<transitions>
<transition>delete</transition>
<transition>lock</transition>
// They passed the first round of security checks, so now let's check to see if they're trying
// to perform a workflow state change and make sure they are allowed to to this.
//
- if (uriPath.contains(WorkflowClient.SERVICE_PATH_COMPONENT) == true) {
+ if (uriPath.contains(WorkflowClient.SERVICE_PATH) == true) {
String workflowSubResName = SecurityUtils.getResourceName(request.getUri());
res = new URIResourceImpl(AuthN.get().getCurrentTenantId(), workflowSubResName, httpMethod);
if (authZ.isAccessAllowed(res) == false) {