Add sys:temporary aspect to surf config file before it is deleted

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-07-11 10:35:58 +00:00
parent 6539bda273
commit 04a9668097

View File

@@ -407,7 +407,9 @@ public class ADMRemoteStore extends BaseRemoteStore
try
{
this.nodeService.deleteNode(fileInfo.getNodeRef());
final NodeRef fileRef = fileInfo.getNodeRef();
this.nodeService.addAspect(fileRef, ContentModel.ASPECT_TEMPORARY, null);
this.nodeService.deleteNode(fileRef);
if (logger.isDebugEnabled())
logger.debug("deleteDocument: " + fileInfo.toString());
}