mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.0 (5.2.0) to HEAD (5.2)
133904 msuzuki: ACE-5622, merge fix from 5.2.N to address search rest api fix for location field git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@134197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -130,7 +130,7 @@ public class DeletedNodesImpl implements DeletedNodes
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node getDeletedNode(String originalId, Parameters parameters)
|
||||
public Node getDeletedNode(String originalId, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo)
|
||||
{
|
||||
//First check the node is valid and has been archived.
|
||||
NodeRef validatedNodeRef = nodes.validateNode(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE, originalId);
|
||||
@@ -139,8 +139,16 @@ public class DeletedNodesImpl implements DeletedNodes
|
||||
NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, validatedNodeRef.getId());
|
||||
NodeRef archivedNodeRef = nodeArchiveService.getArchivedNode(nodeRef);
|
||||
|
||||
//Turn it into a JSON Node (FULL version)
|
||||
Node foundNode = nodes.getFolderOrDocumentFullInfo(archivedNodeRef, null, null, parameters, null);
|
||||
Node foundNode = null;
|
||||
if (fullnode)
|
||||
{
|
||||
foundNode = nodes.getFolderOrDocumentFullInfo(archivedNodeRef, null, null, parameters, mapUserInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
foundNode = nodes.getFolderOrDocument(archivedNodeRef, null, null, parameters.getInclude(), mapUserInfo);
|
||||
}
|
||||
|
||||
if (foundNode != null) mapArchiveInfo(foundNode,null);
|
||||
return foundNode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user