cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing a deleted node

dcram
Champ in-the-making
Champ in-the-making
Hi,

I am interested in accessing a node that might have been previously deleted, without restoring it. Does anyone know how I could do it ?

I'd just like to access its properties, but when the following instruction executes:
nodeService.getProperties(nodeRef);
it can launch the following exception if the node has previously been deleted:
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/0fc3da77-de47-11dc-9e26-e9abae0b8a91
I would like to be able to access the node's properties even if its has been deleted before.

Thanks in advance,
Damien
3 REPLIES 3

rivarola
Champ on-the-rise
Champ on-the-rise
Hi Damien,

Did you try with an "archive" store protocol instead of "workspace" ?
I mean asking the NodeService with this NodeRef :
archive://SpacesStore/0fc3da77-de47-11dc-9e26-e9abae0b8a91

dcram
Champ in-the-making
Champ in-the-making
It works perfectly well now with "archive" instead of "workspace"!

Thanks rivarola Smiley Wink

jbaton
Champ in-the-making
Champ in-the-making
Hi,

Look at this page http://forums.alfresco.com/viewtopic.php?p=13664&sid=8ef49aca657efd1e4a0bac01c697afbe

It explains some of the bowels of the delete process.

The "protectDays" parameter (default=14) is the number of days the deleted documents will still exist in the repo.

HIH


Jerome