mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
CMIS bag of stuff;:
- Add CMIS Allowable Actions to Abdera CMIS extension - Add testAllowableActions(), testQueryAllowableActions - Pass all AppClientTest (AtomPub server test suite) tests - Fix encoding issues while parsing Atom requests - Fix ignoring of Atom slug - Fix support of pure Atom entries (those without CMIS extensions) - Add test suite for custom sub-types / props (CMISCustomTypeTest) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,7 +31,6 @@ import java.util.Map;
|
||||
|
||||
import org.alfresco.cmis.CMISDictionaryService;
|
||||
import org.alfresco.cmis.CMISPropertyDefinition;
|
||||
import org.alfresco.cmis.CMISPropertyId;
|
||||
import org.alfresco.cmis.CMISServices;
|
||||
import org.alfresco.cmis.CMISTypeDefinition;
|
||||
import org.alfresco.cmis.CMISTypesFilterEnum;
|
||||
@@ -483,7 +482,7 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Type " + typeQName + " not found in CMIS Dictionary");
|
||||
}
|
||||
Map<CMISPropertyId, CMISPropertyDefinition> propDefs = typeDef.getPropertyDefinitions();
|
||||
Map<String, CMISPropertyDefinition> propDefs = typeDef.getPropertyDefinitions();
|
||||
Map<String, Serializable> values = new HashMap<String, Serializable>(propDefs.size());
|
||||
for (CMISPropertyDefinition propDef : propDefs.values())
|
||||
{
|
||||
|
@@ -65,8 +65,12 @@ public class ContentStreamUriProperty extends AbstractProperty
|
||||
sb.append(nodeRef.getStoreRef().getIdentifier());
|
||||
sb.append("/");
|
||||
sb.append(nodeRef.getId());
|
||||
sb.append("/content.");
|
||||
sb.append(getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_NAME));
|
||||
sb.append("/content");
|
||||
String name = (String)getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_NAME);
|
||||
if (name.lastIndexOf('.') != -1)
|
||||
{
|
||||
sb.append(name.substring(name.lastIndexOf('.')));
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user