mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixing a bug in CMISRenditionServiceImpl that was causing test failures.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -55,4 +55,15 @@ public enum CMISRenditionKind implements EnumLabel
|
||||
|
||||
public static EnumFactory<CMISRenditionKind> FACTORY = new EnumFactory<CMISRenditionKind>(CMISRenditionKind.class);
|
||||
|
||||
public static CMISRenditionKind valueOfLabel(String label)
|
||||
{
|
||||
for(CMISRenditionKind kind: CMISRenditionKind.values())
|
||||
{
|
||||
if(kind.getLabel().equals(label))
|
||||
{
|
||||
return kind;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user