Revision: 36
Author:
jeanmari...@alfresco.com
Date: Sun Oct 13 11:37:59 2013 UTC
Log: Solve issue with custom Properties.
http://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/source/detail?r=36
Modified:
/branches/android/src/main/java/org/alfresco/cmis/client/impl/AlfrescoObjectFactoryImpl.java
=======================================
---
/branches/android/src/main/java/org/alfresco/cmis/client/impl/AlfrescoObjectFactoryImpl.java
Fri Oct 4 13:51:33 2013 UTC
+++
/branches/android/src/main/java/org/alfresco/cmis/client/impl/AlfrescoObjectFactoryImpl.java
Sun Oct 13 11:37:59 2013 UTC
@@ -283,13 +283,25 @@
}
else if (entry.getValue().getId().startsWith("dp:"))
{
- //Resolve Issue when searching using join
- //ADD Specific alfresco extension to retrieve the
information
- //NB : add values if necessary to support other aspect
- //TODO : make it more flexible with a specific
object/manager
+ // Resolve Issue when searching using join
+ // ADD Specific alfresco extension to retrieve the
information
+ // NB : add values if necessary to support other aspect
+ // TODO : make it more flexible with a specific
object/manager
ObjectType objectTypeAspect =
session.getTypeDefinition("P:dp:restrictable");
apiProperty = convertProperty(objectTypeAspect,
secondaryTypes, entry.getValue());
}
+ else
+ {
+ // Add custom properties
+ try
+ {
+ apiProperty = convertProperty(objectType,
secondaryTypes, entry.getValue());
+ }
+ catch (Exception e)
+ {
+ // TODO: handle exception
+ }
+ }
if (apiProperty != null)
{