Fix relationship direction argument handling as found by OpenCMIS tests.

- added none value to enum
- fixed mapping of value to enum

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

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.valueOf(((TemplateScalarModel) arg).getAsString()); direction = CMISRelationshipDirectionEnum.FACTORY.toEnum(((TemplateScalarModel)arg).getAsString());
} }
} }
catch (IndexOutOfBoundsException e) catch (IndexOutOfBoundsException e)