summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-05-20 14:43:17 +0000
committerRüdiger Timm <rt@openoffice.org>2005-05-20 14:43:17 +0000
commit7add8b41eadabd182d22078157c9f6a6e80b7ad9 (patch)
tree05ae109dcf577809f7ec4120941dfc87e8c0f8a9 /configmgr
parent3e20237cdb9844fc55bdb0e9e01410287311be9d (diff)
INTEGRATION: CWS nativefixer9 (1.6.36); FILE MERGED
2005/05/19 07:22:54 jb 1.6.36.1: #i49148# Add support for tagging configuration schemas with a version (XVersionedSchemaSupplier)
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/backend/multistratumbackend.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/configmgr/source/backend/multistratumbackend.cxx b/configmgr/source/backend/multistratumbackend.cxx
index a6aac52f7620..93c46f1f57e9 100644
--- a/configmgr/source/backend/multistratumbackend.cxx
+++ b/configmgr/source/backend/multistratumbackend.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: multistratumbackend.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: obo $ $Date: 2004-11-15 13:35:45 $
+ * last change: $Author: rt $ $Date: 2005-05-20 15:43:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -501,6 +501,24 @@ sal_Bool SAL_CALL
}
//------------------------------------------------------------------------------
+rtl::OUString SAL_CALL
+ MultiStratumBackend::getSchemaVersion(const rtl::OUString& aComponent)
+ throw (backenduno::BackendAccessException,
+ lang::IllegalArgumentException,
+ uno::RuntimeException)
+{
+ osl::MutexGuard aGuard(mMutex);
+
+ if (checkOkState())
+ {
+ uno::Reference<backenduno::XVersionedSchemaSupplier> xVersionSupplier(mSchemaSupplier,uno::UNO_QUERY);
+ if (xVersionSupplier.is())
+ return xVersionSupplier->getSchemaVersion(aComponent) ;
+ }
+ return rtl::OUString();
+}
+//------------------------------------------------------------------------------
+
uno::Reference<backenduno::XSchema> SAL_CALL
MultiStratumBackend::getComponentSchema(const rtl::OUString& aComponent)
throw (backenduno::BackendAccessException,