mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
minor CMIS bug fixes and improvements
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2478,12 +2478,18 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
|
||||
return ((PropertyId) property).getFirstValue();
|
||||
}
|
||||
|
||||
public String getNameProperty(Properties properties)
|
||||
public String getNameProperty(Properties properties, String fallback)
|
||||
{
|
||||
String name = getStringProperty(properties, PropertyIds.NAME);
|
||||
if ((name == null) || (name.trim().length() == 0))
|
||||
{
|
||||
throw new CmisInvalidArgumentException("Property " + PropertyIds.NAME + " must be set!");
|
||||
if (fallback == null)
|
||||
{
|
||||
throw new CmisInvalidArgumentException("Property " + PropertyIds.NAME + " must be set!");
|
||||
} else
|
||||
{
|
||||
name = fallback;
|
||||
}
|
||||
}
|
||||
|
||||
return name;
|
||||
|
Reference in New Issue
Block a user