mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1677
No items error for RM Admin if record was declared from moderated/private site git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -197,7 +197,7 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JSONC
|
|||||||
if (originatingLocation != null)
|
if (originatingLocation != null)
|
||||||
{
|
{
|
||||||
String pathSeparator = "/";
|
String pathSeparator = "/";
|
||||||
String displayPath = PathUtil.getDisplayPath(nodeService.getPath(originatingLocation), true);
|
String displayPath = getDisplayPath(originatingLocation);
|
||||||
String[] displayPathElements = displayPath.split(pathSeparator);
|
String[] displayPathElements = displayPath.split(pathSeparator);
|
||||||
Object[] subPath = ArrayUtils.subarray(displayPathElements, 5, displayPathElements.length);
|
Object[] subPath = ArrayUtils.subarray(displayPathElements, 5, displayPathElements.length);
|
||||||
StringBuffer originatingLocationPath = new StringBuffer();
|
StringBuffer originatingLocationPath = new StringBuffer();
|
||||||
@@ -209,6 +209,23 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JSONC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper method to get the display path.
|
||||||
|
*
|
||||||
|
* @param nodeRef node reference
|
||||||
|
* @return String display path
|
||||||
|
*/
|
||||||
|
private String getDisplayPath(final NodeRef nodeRef)
|
||||||
|
{
|
||||||
|
return AuthenticationUtil.runAs(new RunAsWork<String>()
|
||||||
|
{
|
||||||
|
public String doWork() throws Exception
|
||||||
|
{
|
||||||
|
return PathUtil.getDisplayPath(nodeService.getPath(nodeRef), true);
|
||||||
|
}
|
||||||
|
}, AuthenticationUtil.getAdminUserName());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param nodeRef
|
* @param nodeRef
|
||||||
* @param useShortQName
|
* @param useShortQName
|
||||||
|
Reference in New Issue
Block a user