Restore Archived Node from Java Service
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2014 02:36 AM
Hi ,
I am Writing a Java Custom Service where i need to restore node that archived recently, i have the noderef Id and am calling the ArchiveService.restoreNode to its original node But its failing as Unable to find Archive Node : archive://SpacesStore/1591d364-96d8-4a5e-9881-a46a4f535f75,
But when i go through the node browser I am able to find the Node. can any one help me to solve the issue.
my code:
I have a Id : workspace://SpaceStore/1591d364-96d8-4a5e-9881-a46a4f535f75
NodeRef nodeRef = new NodeRef("workspace://SpaceStore/1591d364-96d8-4a5e-9881-a46a4f535f75");
RestoreNodeReport restoreNodeReport = nodeArchiveService.restoreArchivedNode(nodeRef);
I am using Alfersco 4.0.e
Regards
param
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2014 11:56 AM
Hi,
I think you should use "archive" instead of "workspace".
I think you should use "archive" instead of "workspace".
NodeRef nodeRef = new NodeRef("archive://SpacesStore/1591d364-96d8-4a5e-9881-a46a4f535f75");RestoreNodeReport restoreNodeReport = nodeArchiveService.restoreArchivedNode(nodeRef);
