Merged HEAD (5.2) to 5.2.N (5.2.1)

126599 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      124903 gjames: RA-850 Purge Deleted Node


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126944 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-05-11 12:14:50 +00:00
parent c0a435be1a
commit cb22f40e35
4 changed files with 52 additions and 8 deletions

View File

@@ -160,4 +160,12 @@ public class DeletedNodesImpl implements DeletedNodes
throw new ApiException("Unable to restore node "+archivedId);
}
}
@Override
public void purgeArchivedNode(String archivedId)
{
//First check the node is valid and has been archived.
NodeRef validatedNodeRef = nodes.validateNode(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE, archivedId);
nodeArchiveService.purgeArchivedNode(validatedNodeRef);
}
}