mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user