mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-843 (Undo Cutoff is available after next disposition step is completed)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54209 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -226,6 +226,7 @@
|
|||||||
<property name="conditions">
|
<property name="conditions">
|
||||||
<map>
|
<map>
|
||||||
<entry key="capabilityCondition.cutoff" value="false"/>
|
<entry key="capabilityCondition.cutoff" value="false"/>
|
||||||
|
<entry key="capabilityCondition.cutoffIsScheduled" value="true" />
|
||||||
</map>
|
</map>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
@@ -249,6 +250,7 @@
|
|||||||
<map>
|
<map>
|
||||||
<entry key="capabilityCondition.cutoff" value="true"/>
|
<entry key="capabilityCondition.cutoff" value="true"/>
|
||||||
<entry key="capabilityCondition.isTransferring" value="false" />
|
<entry key="capabilityCondition.isTransferring" value="false" />
|
||||||
|
<entry key="capabilityCondition.lastDispositionActionCutoff" value="true"/>
|
||||||
</map>
|
</map>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
@@ -56,6 +56,17 @@ public class UnCutoffAction extends RMActionExecuterAbstractBase
|
|||||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_UNDO_NOT_LAST));
|
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_UNDO_NOT_LAST));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove the cutoff aspect
|
||||||
|
nodeService.removeAspect(actionedUponNodeRef, ASPECT_CUT_OFF);
|
||||||
|
if (recordsManagementService.isRecordFolder(actionedUponNodeRef) == true)
|
||||||
|
{
|
||||||
|
List<NodeRef> records = this.recordsManagementService.getRecords(actionedUponNodeRef);
|
||||||
|
for (NodeRef record : records)
|
||||||
|
{
|
||||||
|
nodeService.removeAspect(record, ASPECT_CUT_OFF);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Delete the current disposition action
|
// Delete the current disposition action
|
||||||
DispositionAction currentDa = dispositionService.getNextDispositionAction(actionedUponNodeRef);
|
DispositionAction currentDa = dispositionService.getNextDispositionAction(actionedUponNodeRef);
|
||||||
if (currentDa != null)
|
if (currentDa != null)
|
||||||
@@ -71,17 +82,6 @@ public class UnCutoffAction extends RMActionExecuterAbstractBase
|
|||||||
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_STARTED_BY, null);
|
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_STARTED_BY, null);
|
||||||
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_AT, null);
|
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_AT, null);
|
||||||
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_BY, null);
|
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_BY, null);
|
||||||
|
|
||||||
// Remove the cutoff aspect
|
|
||||||
nodeService.removeAspect(actionedUponNodeRef, ASPECT_CUT_OFF);
|
|
||||||
if (recordsManagementService.isRecordFolder(actionedUponNodeRef) == true)
|
|
||||||
{
|
|
||||||
List<NodeRef> records = this.recordsManagementService.getRecords(actionedUponNodeRef);
|
|
||||||
for (NodeRef record : records)
|
|
||||||
{
|
|
||||||
nodeService.removeAspect(record, ASPECT_CUT_OFF);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user