mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
OpenCMIS server performance improvements
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29571 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
package org.alfresco.opencmis.mapping;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.opencmis.CMISConnector;
|
||||
import org.alfresco.opencmis.dictionary.CMISNodeInfo;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.apache.chemistry.opencmis.commons.PropertyIds;
|
||||
|
||||
/**
|
||||
@@ -51,10 +51,10 @@ public class ParentProperty extends AbstractProperty
|
||||
return null;
|
||||
}
|
||||
|
||||
ChildAssociationRef car = getServiceRegistry().getNodeService().getPrimaryParent(nodeInfo.getNodeRef());
|
||||
if ((car != null) && (car.getParentRef() != null))
|
||||
List<CMISNodeInfo> parents = nodeInfo.getParents();
|
||||
if (!parents.isEmpty())
|
||||
{
|
||||
return car.getParentRef().toString();
|
||||
return parents.get(0).getObjectId();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user