Fix ALF-19749: NodeService/CopyService interface changes breaks backwards compatibility with add-ons

- This maintains binary compatibility with extensions build before 4.2
 - e.g.  GOOGLEDOCS-235 Unable to deploy latest Google Docs Enterprise AMPs onto 4.2 (HEAD-QA) 
 - Reversed ALF-19217: NodeService and CopyService APIs return modified flags
   We are back to creating redundant versions when duplicate changes are made to data


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2013-08-27 11:12:54 +00:00
parent b97ff7bae0
commit 0d781560bf
14 changed files with 119 additions and 525 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -47,8 +47,6 @@ import org.alfresco.service.cmr.version.VersionType;
import org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl;
import org.springframework.extensions.webscripts.GUID;
import javax.faces.model.DataModel;
public class CMISPropertyServiceTest extends BaseCMISTest
{
public void testBasicFolder() throws Exception
@@ -615,9 +613,6 @@ public class CMISPropertyServiceTest extends BaseCMISTest
assertNull(properties.get(CMISDictionaryModel.PROP_PARENT_ID));
assertNull(properties.get(CMISDictionaryModel.PROP_ALLOWED_CHILD_OBJECT_TYPE_IDS));
// Edit working copy to create a version, ALF-19217
nodeService.setProperty(pwc, ContentModel.PROP_DESCRIPTION, "TestDescription");
Map<String, Serializable> versionProperties = new HashMap<String, Serializable>();
versionProperties.put(Version.PROP_DESCRIPTION, "Meep");
versionProperties.put(VersionModel.PROP_VERSION_TYPE, VersionType.MAJOR);
@@ -693,13 +688,9 @@ public class CMISPropertyServiceTest extends BaseCMISTest
assertNull(properties.get(CMISDictionaryModel.PROP_PARENT_ID));
assertNull(properties.get(CMISDictionaryModel.PROP_ALLOWED_CHILD_OBJECT_TYPE_IDS));
// Edit working copy to create a version, ALF-19217
nodeService.setProperty(pwc, ContentModel.PROP_DESCRIPTION, "TestDescription1");
versionProperties = new HashMap<String, Serializable>();
versionProperties.put(Version.PROP_DESCRIPTION, "Woof");
versionProperties.put(VersionModel.PROP_VERSION_TYPE, VersionType.MINOR);
serviceRegistry.getCheckOutCheckInService().checkin(pwc, versionProperties);
properties = cmisService.getProperties(content);