From 6cd69d17a2bfa5e5e27d0478c3bf59c23a1d14c8 Mon Sep 17 00:00:00 2001 From: David Caruana Date: Thu, 4 Sep 2008 10:44:42 +0000 Subject: [PATCH] Merge from SEAMIST3 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/application-context.xml | 1 + config/alfresco/bootstrap/descriptor.xml | 2 + config/alfresco/cmis-ws-context.xml | 218 ++++++++++++++++++ .../repo/version/VersionServiceImpl.java | 9 +- 4 files changed, 229 insertions(+), 1 deletion(-) create mode 100644 config/alfresco/cmis-ws-context.xml diff --git a/config/alfresco/application-context.xml b/config/alfresco/application-context.xml index 84266c7f75..a5eab11b75 100644 --- a/config/alfresco/application-context.xml +++ b/config/alfresco/application-context.xml @@ -45,6 +45,7 @@ + diff --git a/config/alfresco/bootstrap/descriptor.xml b/config/alfresco/bootstrap/descriptor.xml index e08a1a9527..8348bfe8ce 100644 --- a/config/alfresco/bootstrap/descriptor.xml +++ b/config/alfresco/bootstrap/descriptor.xml @@ -2,6 +2,7 @@ xmlns:sys="http://www.alfresco.org/model/system/1.0"> + ${repository.name} ${version.major} ${version.minor} ${version.revision} @@ -11,6 +12,7 @@ + ${repository.name} ${version.major} ${version.minor} ${version.revision} diff --git a/config/alfresco/cmis-ws-context.xml b/config/alfresco/cmis-ws-context.xml new file mode 100644 index 0000000000..72c558545b --- /dev/null +++ b/config/alfresco/cmis-ws-context.xml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.RepositoryServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.NavigationServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.ObjectServicePort + + + + + + + + + + + + + + + + + + + + ${server.transaction.mode.readOnly} + ${server.transaction.mode.default} + + + + + + + workspace://SpacesStore/app:company_home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + passwordCallbackRef + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/java/org/alfresco/repo/version/VersionServiceImpl.java b/source/java/org/alfresco/repo/version/VersionServiceImpl.java index 97b6ecb3e4..bd4d0d2f57 100644 --- a/source/java/org/alfresco/repo/version/VersionServiceImpl.java +++ b/source/java/org/alfresco/repo/version/VersionServiceImpl.java @@ -862,7 +862,14 @@ public class VersionServiceImpl extends AbstractVersionServiceImpl implements Ve */ protected NodeRef getVersionHistoryNodeRef(NodeRef nodeRef) { - return this.dbNodeService.getChildByName(getRootNode(), CHILD_QNAME_VERSION_HISTORIES, nodeRef.getId()); + if (nodeService.exists(nodeRef)) + { + return this.dbNodeService.getChildByName(getRootNode(), CHILD_QNAME_VERSION_HISTORIES, (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NODE_UUID)); + } + else + { + return this.dbNodeService.getChildByName(getRootNode(), CHILD_QNAME_VERSION_HISTORIES, nodeRef.getId()); + } } /**