mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
61167: Removed in-txn exception absorbtion and replaced with a node exists check git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62397 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -489,19 +489,17 @@ public class NodeArchiveServiceImpl implements NodeArchiveService
|
||||
public void purgeArchivedNode(final NodeRef archivedNodeRef)
|
||||
{
|
||||
RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||
RetryingTransactionCallback<Object> deleteCallback = new RetryingTransactionCallback<Object>()
|
||||
RetryingTransactionCallback<Void> deleteCallback = new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
public Object execute() throws Exception
|
||||
public Void execute() throws Exception
|
||||
{
|
||||
try
|
||||
if (!nodeService.exists(archivedNodeRef))
|
||||
{
|
||||
invokeBeforePurgeNode(archivedNodeRef);
|
||||
nodeService.deleteNode(archivedNodeRef);
|
||||
}
|
||||
catch (InvalidNodeRefException e)
|
||||
{
|
||||
// ignore
|
||||
// Node has disappeared
|
||||
return null;
|
||||
}
|
||||
invokeBeforePurgeNode(archivedNodeRef);
|
||||
nodeService.deleteNode(archivedNodeRef);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user