Further fix to cmis relationship direction enum handling.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18917 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-03-01 16:30:46 +00:00
parent 4f246c2082
commit e9959a3165

View File

@@ -93,7 +93,7 @@ public class CMISAssocsMethod implements TemplateMethodModelEx
arg = args.get(i++); arg = args.get(i++);
if (arg instanceof TemplateScalarModel) if (arg instanceof TemplateScalarModel)
{ {
direction = CMISRelationshipDirectionEnum.FACTORY.toEnum(((TemplateScalarModel)arg).getAsString()); direction = CMISRelationshipDirectionEnum.FACTORY.fromLabel(((TemplateScalarModel)arg).getAsString());
} }
} }
catch (IndexOutOfBoundsException e) catch (IndexOutOfBoundsException e)