Fixed OpenCMIS server getObjectRelationships() operation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29064 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Florian Mü
2011-07-15 09:53:41 +00:00
parent 6ba169f641
commit c6172b79ee
2 changed files with 74 additions and 42 deletions

View File

@@ -1872,7 +1872,7 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
// relationships from and to versions are not preserved
return result;
}
// get relationships
List<AssociationRef> assocs = new ArrayList<AssociationRef>();
if (relationshipDirection == RelationshipDirection.SOURCE
@@ -1903,7 +1903,7 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
continue;
}
if ((typeId != null) && !assocRef.getId().equals(typeId))
if ((typeId != null) && !assocTypeDef.getTypeId().equals(typeId))
{
continue;
}