Removal of google doc now works

- Calling delete on google doc service API now successfully perminantly deletes the corresponding google document
 - Unit test used to show document deleted
 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20045 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2010-04-30 08:14:13 +00:00
parent f09e9b85b1
commit 6563c1c008

View File

@@ -308,8 +308,8 @@ public class GoogleDocsServiceImpl implements GoogleDocsService, GoogleDocsModel
throw new AlfrescoRuntimeException("Unable to find google resource to delete for node " + nodeRef.toString());
}
// Delete the entry
entry.delete();
// Perminantly delete the entry
googleDocumentService.delete(new URL(entry.getEditLink().getHref() + "?delete=true"), entry.getEtag());
// Remove the aspect from the node
nodeService.removeAspect(nodeRef, ASPECT_GOOGLERESOURCE);