]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4979: Merge of multi-repo work with master branch.
authorRichard Millet <remillet@berkeley.edu>
Fri, 14 Dec 2012 17:56:07 +0000 (09:56 -0800)
committerRichard Millet <remillet@berkeley.edu>
Fri, 14 Dec 2012 17:56:07 +0000 (09:56 -0800)
288 files changed:
.gitignore
.project
.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/.project
3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/nuxeo/.project
3rdparty/nuxeo/.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/nuxeo/nuxeo-platform-collectionspace/.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/nuxeo/nuxeo-platform-collectionspace/pom.xml
3rdparty/nuxeo/nuxeo-platform-quote-api/.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/nuxeo/nuxeo-platform-quote/.settings/org.maven.ide.eclipse.prefs [deleted file]
3rdparty/nuxeo/nuxeo-server/5.5-HF07/config/lifesci-domain-repo-config.xml [new file with mode: 0644]
3rdparty/nuxeo/nuxeo-server/5.5/config/lifesci-domain-repo-config.xml [new file with mode: 0644]
3rdparty/pom.xml
pom.xml
services/.project
services/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/IntegrationTests/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/JaxRsServiceProvider/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/JaxRsServiceProvider/src/main/resources/log4j.properties
services/JaxRsServiceProvider/src/main/webapp/META-INF/context.xml
services/PerformanceTests/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/account/.project
services/account/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/account/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/account/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/account/pstore/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/account/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/.project
services/acquisition/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/3rdparty/.project
services/acquisition/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/acquisition/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authentication/.project
services/authentication/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authentication/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authentication/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authentication/pstore/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authentication/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization-mgt/.project
services/authorization-mgt/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization-mgt/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization-mgt/import/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization-mgt/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization/.project
services/authorization/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization/pstore/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/authorization/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/batch/.project
services/batch/3rdparty/.project
services/batch/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/batch/3rdparty/nuxeo-platform-cs-batch/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/batch/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/batch/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/batch/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/.project
services/blob/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/3rdparty/.project
services/blob/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/3rdparty/nuxeo-platform-cs-blob/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/jaxb/.project [deleted file]
services/blob/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/blob/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/client/src/main/java/org/collectionspace/services/client/IQueryManager.java
services/collectionobject/.project
services/collectionobject/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/collectionobject/3rdparty/.project
services/collectionobject/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/collectionobject/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/collectionobject/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/collectionobject/sample/.project
services/collectionobject/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/collectionobject/sample/sample/.project
services/collectionobject/sample/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/common-test/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/common/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/common/pom.xml
services/common/src/main/cspace/config/services/tenants/lifesci/tenant-bindings.delta.xml
services/common/src/main/cspace/config/services/tenants/tenant-bindings-proto.xml
services/common/src/main/java/org/collectionspace/services/common/ResourceBase.java
services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
services/common/src/main/java/org/collectionspace/services/common/authorization_mgt/AuthorizationCommon.java
services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java
services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContextImpl.java
services/common/src/main/java/org/collectionspace/services/common/context/RemoteServiceContextImpl.java
services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
services/common/src/main/java/org/collectionspace/services/common/init/AddIndices.java
services/common/src/main/java/org/collectionspace/services/common/init/IInitHandler.java
services/common/src/main/java/org/collectionspace/services/common/init/InitHandler.java
services/common/src/main/java/org/collectionspace/services/common/init/ModifyFieldDatatypes.java
services/common/src/main/java/org/collectionspace/services/common/init/RunSqlScript.java [new file with mode: 0644]
services/common/src/main/java/org/collectionspace/services/common/query/QueryManager.java
services/common/src/main/java/org/collectionspace/services/common/query/nuxeo/QueryManagerNuxeoImpl.java
services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoClientEmbedded.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoConnectorEmbedded.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClientImpl.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/TenantRepository.java
services/common/src/main/resources/db/mysql/create_id_generators_table.sql [new file with mode: 0644]
services/common/src/main/resources/db/mysql/load_id_generators.sql [new file with mode: 0644]
services/common/src/main/resources/db/postgresql/create_id_generators_table.sql [new file with mode: 0644]
services/common/src/main/resources/db/postgresql/load_id_generators.sql [new file with mode: 0644]
services/config/src/main/java/org/collectionspace/services/common/config/ConfigUtils.java [new file with mode: 0644]
services/config/src/main/resources/tenant.xsd
services/contact/.project
services/contact/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/contact/3rdparty/.project
services/contact/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/contact/3rdparty/nuxeo-platform-cs-contact/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/contact/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/contact/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/contact/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/.project
services/dimension/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/3rdparty/.project
services/dimension/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/3rdparty/nuxeo-platform-cs-dimension/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/dimension/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/.project
services/group/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/3rdparty/.project
services/group/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/3rdparty/nuxeo-platform-cs-group/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/group/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/hyperjaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/.project
services/id/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/3rdparty/.project [deleted file]
services/id/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/3rdparty/nuxeo-platform-cs-id/.project [deleted file]
services/id/3rdparty/nuxeo-platform-cs-id/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/client/pom.xml
services/id/client/src/main/java/org/collectionspace/services/client/IdClient.java
services/id/jaxb/.project [deleted file]
services/id/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/id/service/build.xml
services/id/service/pom.xml
services/id/service/src/main/java/org/collectionspace/services/id/IDResource.java
services/id/service/src/main/java/org/collectionspace/services/id/IDService.java
services/id/service/src/main/java/org/collectionspace/services/id/IDServiceJdbcImpl.java
services/id/service/src/test/java/org/collectionspace/services/id/IdServiceTest.java [moved from services/id/client/src/test/java/org/collectionspace/services/client/test/IdServiceTest.java with 97% similarity]
services/imports/.project
services/imports/3rdparty/.project
services/imports/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/imports/3rdparty/nuxeo-platform-cs-imports/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/imports/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/imports/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/.project
services/intake/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/3rdparty/.project
services/intake/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/3rdparty/nuxeo-platform-cs-intake/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/intake/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/.project
services/loanin/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/3rdparty/.project
services/loanin/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/3rdparty/nuxeo-platform-cs-loanin/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanin/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/.project
services/loanout/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/3rdparty/.project
services/loanout/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/3rdparty/nuxeo-platform-cs-loanout/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/loanout/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/.project
services/location/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/3rdparty/.project
services/location/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/3rdparty/nuxeo-platform-cs-location/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/location/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/.project
services/media/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/3rdparty/.project
services/media/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/3rdparty/nuxeo-platform-cs-media/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/media/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/.project
services/movement/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/3rdparty/.project
services/movement/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/3rdparty/nuxeo-platform-cs-movement/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/movement/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/.project
services/note/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/3rdparty/.project
services/note/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/3rdparty/nuxeo-platform-cs-note/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/note/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/objectexit/.project
services/objectexit/3rdparty/.project
services/objectexit/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/objectexit/3rdparty/nuxeo-platform-cs-objectexit/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/objectexit/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/objectexit/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/objectexit/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/.project
services/organization/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/3rdparty/.project
services/organization/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/3rdparty/nuxeo-platform-cs-organization/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/sample/.project
services/organization/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/sample/sample/.project
services/organization/sample/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/organization/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/.project
services/person/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/3rdparty/.project
services/person/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/3rdparty/nuxeo-platform-cs-person/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/sample/.project
services/person/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/sample/sample/.project
services/person/sample/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/person/sample/sample/pom.xml
services/person/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/query/.project
services/query/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/query/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/relation/.project
services/relation/3rdparty/.project
services/relation/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/relation/3rdparty/nuxeo-platform-cs-relation/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/relation/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/relation/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/.project
services/report/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/3rdparty/.project
services/report/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/3rdparty/nuxeo-platform-cs-report/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/service/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/report/service/src/main/java/org/collectionspace/services/report/ReportResource.java
services/report/service/src/main/java/org/collectionspace/services/report/nuxeo/ReportDocumentModelHandler.java
services/report/service/src/main/java/org/collectionspace/services/report/nuxeo/ReportPostInitHandler.java
services/sdk/.project [deleted file]
services/sdk/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/sdk/sample/.project [deleted file]
services/sdk/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/security/.project
services/security/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/security/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/.project
services/vocabulary/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/3rdparty/.project
services/vocabulary/3rdparty/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/client/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/jaxb/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/sample/.project
services/vocabulary/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/sample/sample/.project
services/vocabulary/sample/sample/.settings/org.maven.ide.eclipse.prefs [deleted file]
services/vocabulary/service/.settings/org.maven.ide.eclipse.prefs [deleted file]

index 013f41ab2e3e51aa2972166a13abf6d544833505..6224def2606ab10fafa5311a90d1816fd7258cff 100644 (file)
@@ -1,3 +1,7 @@
+3rdparty/nuxeo/nuxeo-platform-listener/.project
+3rdparty/nuxeo/nuxeo-platform-listener/.settings/
+services/JaxRsServiceProvider/.settings/.jsdtscope
+*org.eclipse.wst*
 dev-master.xml
 .metadata/
 services/collectionobject/sample/sample/.classpath
index aee48444d363d848a9e8e154c13c1b49156e33bc..5cd13a441fc46774c18f9ce6ca85f3bd6978c72b 100644 (file)
--- a/.project
+++ b/.project
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/.settings/org.maven.ide.eclipse.prefs b/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 36a715a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Thu Oct 15 12:20:09 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 7abb84ea5598ab83dbccbf0fbdd17af92a912346..85949a7f9cd54a61f95d016237dc69295578ce8b 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/3rdparty/.settings/org.maven.ide.eclipse.prefs b/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 36a715a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Thu Oct 15 12:20:09 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index b620a1410b21fbd1da085b509257339c31355fa8..8fb749d177b45dd8ffd55c6f1120c24bbac04937 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/3rdparty/nuxeo/.settings/org.maven.ide.eclipse.prefs b/3rdparty/nuxeo/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 36a715a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Thu Oct 15 12:20:09 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/3rdparty/nuxeo/nuxeo-platform-collectionspace/.settings/org.maven.ide.eclipse.prefs b/3rdparty/nuxeo/nuxeo-platform-collectionspace/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 36a715a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Thu Oct 15 12:20:09 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 330262695897a237927ad42bf213f338d1b6feec..27645948bffd61381e27564169af94953c6588a0 100644 (file)
@@ -9,7 +9,6 @@
   </parent>\r
 \r
   <modelVersion>4.0.0</modelVersion>\r
-  <groupId>org.collectionspace.services</groupId>\r
   <artifactId>org.collectionspace.services.3rdparty.nuxeo.collectionspace_core</artifactId>\r
   <name>Nuxeo CollectionSpace core extension</name>\r
   <description> Nuxeo Enterprise Platform: CS extensions </description>\r
@@ -19,7 +18,6 @@
       <plugin>\r
         <groupId>org.apache.maven.plugins</groupId>\r
         <artifactId>maven-jar-plugin</artifactId>\r
-        <version>2.2</version>\r
         <configuration>\r
           <archive>\r
             <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>\r
diff --git a/3rdparty/nuxeo/nuxeo-platform-quote-api/.settings/org.maven.ide.eclipse.prefs b/3rdparty/nuxeo/nuxeo-platform-quote-api/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index dd98a84..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Jan 19 22:49:05 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/3rdparty/nuxeo/nuxeo-platform-quote/.settings/org.maven.ide.eclipse.prefs b/3rdparty/nuxeo/nuxeo-platform-quote/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 440c8ac..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Jan 19 22:49:06 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/3rdparty/nuxeo/nuxeo-server/5.5-HF07/config/lifesci-domain-repo-config.xml b/3rdparty/nuxeo/nuxeo-server/5.5-HF07/config/lifesci-domain-repo-config.xml
new file mode 100644 (file)
index 0000000..279075a
--- /dev/null
@@ -0,0 +1,419 @@
+<?xml version="1.0"?>
+<component name="config:lifesci-domain-repository">
+       <extension target="org.nuxeo.ecm.core.repository.RepositoryService"
+               point="repository">
+               <repository name="lifesci-domain"
+                       factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory">
+                       <repository name="lifesci-domain">
+                       <clustering enabled="false" delay="1000" />
+                       <binaryStore path="" />
+                               <!-- The transactional datasource for Nuxeo -->
+                               <xa-datasource>@XA_DATASOURCE@</xa-datasource>                          
+                               <property name="URL">jdbc:postgresql://localhost:5432/lifesci-domain</property>
+                               <property name="ServerName">@DB_SERVER_HOSTNAME@</property>                             
+                               <property name="DatabaseName">lifesci-domain</property>
+                               <property name="User">@NUXEO_USER@</property>
+                               <property name="Password">@NUXEO_PW@</property>
+
+                               <schema>
+                                       <field type="largetext">imd:user_comment</field> <!-- Needed for large image metadata (image_metadata) that gets inserted 
+                                               here. -->
+                                       <field type="largetext">note</field>
+                                       <field type="largetext">webp:content</field>
+                                       <field type="largetext">webc:welcomeText</field>
+                                       <field type="largetext">comment:comment</field>
+                                       <field type="largetext">post</field>
+                                       <field type="largetext">mail:mail</field>
+
+                                       <!-- Text fields that may possibly not require largetext -->
+                                       <!-- designation and might need further review are marked as follows: -->
+                                       <!-- * -->
+
+                                       <!-- =========================================================== -->
+                                       <!-- Acquisition -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">acquisitionFundingSourceProvisos</field>
+                                       <field type="largetext">acquisitions_common:acquisitionNote</field>
+                                       <field type="largetext">acquisitions_common:acquisitionProvisos</field>
+                                       <field type="largetext">acquisitions_common:acquisitionReason</field>
+                                       <field type="largetext">acquisitions_common:creditLine</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Blob -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- No largetext fields identified to date -->
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- CollectionObject / Cataloging -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- Object Identification Information -->
+                                       <!-- ================================= -->
+
+                                       <!-- FIXME: Change this to otherNumberValue if and when the field name 
+                                               itself is so changed. -->
+                                       <field type="largetext">numberValue</field> <!-- * -->
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:briefDescriptions
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:comments</field>
+
+                                       <field type="largetext">collectionobjects_common:distinguishingFeatures
+                                       </field>
+
+                                       <field type="largetext">objectNameNote</field>
+
+                                       <field type="largetext">title</field>
+                                       <field type="largetext">titleTranslation</field>
+
+                                       <!-- Object Description Information -->
+                                       <!-- ============================== -->
+
+                                       <field type="largetext">collectionobjects_common:ageQualifier</field>
+                                       <field type="largetext">collectionobjects_common:color</field>
+                                       <field type="largetext">collectionobjects_common:contentDescription
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:contentNote</field>
+                                       <field type="largetext">collectionobjects_common:contentObject</field>
+                                       <field type="largetext">collectionobjects_common:copyNumber</field> <!-- * -->
+                                       <field type="largetext">collectionobjects_common:editionNumber</field> <!-- * -->
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:inscriptionContent
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentInterpretation
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentTranslation
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentTransliteration
+                                       </field>
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionInterpretation
+                                       </field>
+
+                                       <field type="largetext">materialComponentNote</field>
+                                       <field type="largetext">materialName</field>  <!-- * -->
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:physicalDescription
+                                       </field>
+
+                                       <field type="largetext">objectComponentInformation</field>
+
+                                       <!-- Object Production Information -->
+                                       <!-- ============================= -->
+
+                                       <field type="largetext">collectionobjects_common:objectProductionNote
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:objectProductionReason
+                                       </field>
+
+                                       <!-- Object History and Association Information -->
+                                       <!-- ========================================== -->
+
+                                       <field type="largetext">assocActivityNote</field>
+                                       <field type="largetext">assocConceptNote</field>
+                                       <field type="largetext">assocCulturalContextNote</field>
+                                       <field type="largetext">assocDateNote</field>
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release. -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:assocEventName</field>   <!-- * -->
+                                       <field type="largetext">collectionobjects_common:assocEventNote</field>
+                                       <field type="largetext">collectionobjects_common:assocEventType</field>   <!-- * -->
+
+                                       <field type="largetext">assocObject</field>
+                                       <field type="largetext">assocOrganizationNote</field>
+                                       <field type="largetext">assocPeopleNote</field>
+                                       <field type="largetext">assocPersonNote</field>
+                                       <field type="largetext">assocPlaceNote</field>
+
+                                       <field type="largetext">collectionobjects_common:objectHistoryNote
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangeNote
+                                       </field>
+                                       <field type="largetext">usageNote</field>
+
+                                       <!-- Object Owner's Contribution Information -->
+                                       <!-- ======================================= -->
+
+                                       <field type="largetext">collectionobjects_common:ownersPersonalExperience
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownersPersonalResponse
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:ownersReference</field>
+
+                                       <field type="largetext">collectionobjects_common:ownersContributionNote
+                                       </field>
+
+                                       <!-- Object Viewer's Contribution Information -->
+                                       <!-- ======================================== -->
+
+                                       <field type="largetext">collectionobjects_common:viewersRole</field>
+                                       <field type="largetext">collectionobjects_common:viewersPersonalExperience
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:viewersPersonalResponse
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:viewersReference</field>
+
+                                       <field type="largetext">collectionobjects_common:viewersContributionNote
+                                       </field>
+
+                                       <!-- Reference Information -->
+                                       <!-- ===================== -->
+
+                                       <field type="largetext">collectionobjects_common:catalogNumber</field> <!-- * -->
+
+                                       <!-- Object Collection Information -->
+                                       <!-- ============================= -->
+
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNote
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNumber
+                                       </field> <!-- * -->
+
+                                       <!-- Additional non-text fields configured as 'largetext' to avoid the 
+                                               following error when Nuxeo is configured to use MySQL: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException. 
+                                               message: Row size too large. The maximum row size for the used table type, 
+                                               not counting BLOBs, is 65535. Some of the fields below may be repeatable 
+                                               or in repeatable groups, and the schema and field names below might thus 
+                                               require verification to match actual values. -->
+
+                                       <field type="largetext">collectionobjects_common:objectNumber</field>
+                                       <field type="largetext">collectionobjects_common:numberOfObjects</field>
+                                       <field type="largetext">collectionobjects_common:collection</field>
+                                       <field type="largetext">collectionobjects_common:recordStatus</field>
+                                       <field type="largetext">collectionobjects_common:age</field>
+                                       <field type="largetext">collectionobjects_common:ageQualifier</field>
+                                       <field type="largetext">collectionobjects_common:ageUnit</field>
+
+                                       <field type="largetext">collectionobjects_common:contentDate</field>
+                                       <field type="largetext">collectionobjects_common:contentLanguages</field>
+                                       <field type="largetext">collectionobjects_common:contentOrganizations
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:dimensionSummary</field>
+
+                                       <!-- FIXME: The set of dimensions-related fields below may be removed -->
+                                       <!-- altogether when it is confirmed that the App/UI layers are using -->
+                                       <!-- a repeatable dimensions group. -->
+                                       <field type="largetext">collectionobjects_common:dimension</field>
+                                       <field type="largetext">collectionobjects_common:dimensionMeasuredPart
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionMeasurementUnit
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionValue</field>
+                                       <field type="largetext">collectionobjects_common:dimensionValueDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionValueQualifier
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:editionNumber</field>
+
+                                       <field type="largetext">collectionobjects_common:inscriptionContentInscriber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentLanguage
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentPosition
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentScript
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentType
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:inscriptionDescription
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionInscriber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionPosition
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionType
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:objectStatus</field>
+                                       <field type="largetext">collectionobjects_common:phase</field>
+                                       <field type="largetext">collectionobjects_common:sex</field>
+                                       <field type="largetext">collectionobjects_common:ownershipAccess</field>
+                                       <field type="largetext">collectionobjects_common:ownershipCategory
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipDates</field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangeMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangePriceCurrency
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangePriceValue
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipPlace</field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNumber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionPlace
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionDate
+                                       </field>
+
+                                       <!-- FIXME: This sample set of date field can be removed when Cataloging -->
+                                       <!-- records are using structured date fields, or earlier when it is 
+                                               confirmed that -->
+                                       <!-- the App/UI layers are not using this vestigial part of the Cataloging 
+                                               schema. -->
+                                       <field type="largetext">collectionobjects_common:dateAssociation</field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingle
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingleCertainty
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingleQualifier
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateLatest</field>
+                                       <field type="largetext">collectionobjects_common:dateLatestCertainty
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateLatestQualifier
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:datePeriod</field>
+                                       <field type="largetext">collectionobjects_common:dateText</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Contact -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">contacts_common:addressPlace</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Group -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">groups_common:scopeNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Intake -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">intakes_common:entryNote</field>
+                                       <field type="largetext">intakes_common:packingNote</field>
+                                       <field type="largetext">intakes_common:fieldCollectionNote</field>
+                                       <field type="largetext">intakes_common:insuranceNote</field>
+                                       <field type="largetext">intakes_common:conditionCheckNote</field>
+                                       <field type="largetext">currentLocationNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Loan In -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">loansin_common:loanInConditions</field>
+                                       <field type="largetext">loansin_common:loanInNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Loan Out -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">loansout_common:specialConditionsOfLoan</field>
+                                       <field type="largetext">loansout_common:loanOutNote</field>
+                                       <field type="largetext">loansout_common:loanPurpose</field>
+                                       <field type="largetext">loanedObjectStatusNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Movement / Location and Movement Control -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">movements_common:currentLocationNote</field>
+                                       <field type="largetext">movements_common:movementNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Media / Media Handling -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">media_common:copyrightStatement</field>
+                                       <field type="largetext">media_common:description</field>
+                                       <field type="largetext">media_common:title</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Note -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">notes_common:content</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Object Exit -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">objectexit_common:exitNote</field>
+                                       <field type="largetext">objectexit_common:packingNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Organization -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">shortName</field>
+                                       <field type="largetext">longName</field>
+                                       <field type="largetext">nameAdditions</field>
+                                       <field type="largetext">historyNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Person -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">persons_common:bioNote</field>
+                                       <field type="largetext">persons_common:nameNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Relation -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- No largetext fields identified to date -->
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Storage Location / Location -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">locations_common:name</field>
+                                       <!-- conditionNote will be made part of a repeatable group of fields 
+                                               in a future release -->
+                                       <field type="largetext">locations_common:conditionNote</field>
+                                       <field type="largetext">locations_common:securityNote</field>
+                                       <field type="largetext">locations_common:accessNote</field>
+
+                               </schema>
+                       </repository>
+               </repository>
+       </extension>
+
+       <extension target="org.nuxeo.ecm.core.api.repository.RepositoryManager"
+               point="repositories">
+               <documentation>The lifesci-domain repository</documentation>
+               <repository name="lifesci-domain" label="Default Repository" />
+       </extension>
+</component>
diff --git a/3rdparty/nuxeo/nuxeo-server/5.5/config/lifesci-domain-repo-config.xml b/3rdparty/nuxeo/nuxeo-server/5.5/config/lifesci-domain-repo-config.xml
new file mode 100644 (file)
index 0000000..8a98a05
--- /dev/null
@@ -0,0 +1,419 @@
+<?xml version="1.0"?>
+<component name="config:lifesci-domain-repository">
+       <extension target="org.nuxeo.ecm.core.repository.RepositoryService"
+               point="repository">
+               <repository name="lifesci-domain"
+                       factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory">
+                       <repository name="lifesci-domain">
+                       <clustering enabled="false" delay="1000" />
+                       <binaryStore path="" />
+                               <!-- The transactional datasource for Nuxeo -->
+                               <xa-datasource>org.postgresql.xa.PGXADataSource</xa-datasource>                         
+                               <property name="URL">jdbc:postgresql://localhost:5432/lifesci-domain</property>
+                               <property name="ServerName">localhost</property>                                
+                               <property name="DatabaseName">lifesci-domain</property>
+                               <property name="User">nuxeo</property>
+                               <property name="Password">nuxpw</property>
+
+                               <schema>
+                                       <field type="largetext">imd:user_comment</field> <!-- Needed for large image metadata (image_metadata) that gets inserted 
+                                               here. -->
+                                       <field type="largetext">note</field>
+                                       <field type="largetext">webp:content</field>
+                                       <field type="largetext">webc:welcomeText</field>
+                                       <field type="largetext">comment:comment</field>
+                                       <field type="largetext">post</field>
+                                       <field type="largetext">mail:mail</field>
+
+                                       <!-- Text fields that may possibly not require largetext -->
+                                       <!-- designation and might need further review are marked as follows: -->
+                                       <!-- * -->
+
+                                       <!-- =========================================================== -->
+                                       <!-- Acquisition -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">acquisitionFundingSourceProvisos</field>
+                                       <field type="largetext">acquisitions_common:acquisitionNote</field>
+                                       <field type="largetext">acquisitions_common:acquisitionProvisos</field>
+                                       <field type="largetext">acquisitions_common:acquisitionReason</field>
+                                       <field type="largetext">acquisitions_common:creditLine</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Blob -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- No largetext fields identified to date -->
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- CollectionObject / Cataloging -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- Object Identification Information -->
+                                       <!-- ================================= -->
+
+                                       <!-- FIXME: Change this to otherNumberValue if and when the field name 
+                                               itself is so changed. -->
+                                       <field type="largetext">numberValue</field> <!-- * -->
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:briefDescriptions
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:comments</field>
+
+                                       <field type="largetext">collectionobjects_common:distinguishingFeatures
+                                       </field>
+
+                                       <field type="largetext">objectNameNote</field>
+
+                                       <field type="largetext">title</field>
+                                       <field type="largetext">titleTranslation</field>
+
+                                       <!-- Object Description Information -->
+                                       <!-- ============================== -->
+
+                                       <field type="largetext">collectionobjects_common:ageQualifier</field>
+                                       <field type="largetext">collectionobjects_common:color</field>
+                                       <field type="largetext">collectionobjects_common:contentDescription
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:contentNote</field>
+                                       <field type="largetext">collectionobjects_common:contentObject</field>
+                                       <field type="largetext">collectionobjects_common:copyNumber</field> <!-- * -->
+                                       <field type="largetext">collectionobjects_common:editionNumber</field> <!-- * -->
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:inscriptionContent
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentInterpretation
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentTranslation
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentTransliteration
+                                       </field>
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionInterpretation
+                                       </field>
+
+                                       <field type="largetext">materialComponentNote</field>
+                                       <field type="largetext">materialName</field>  <!-- * -->
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:physicalDescription
+                                       </field>
+
+                                       <field type="largetext">objectComponentInformation</field>
+
+                                       <!-- Object Production Information -->
+                                       <!-- ============================= -->
+
+                                       <field type="largetext">collectionobjects_common:objectProductionNote
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:objectProductionReason
+                                       </field>
+
+                                       <!-- Object History and Association Information -->
+                                       <!-- ========================================== -->
+
+                                       <field type="largetext">assocActivityNote</field>
+                                       <field type="largetext">assocConceptNote</field>
+                                       <field type="largetext">assocCulturalContextNote</field>
+                                       <field type="largetext">assocDateNote</field>
+
+                                       <!-- FIXME: Will become group repeatable in a post-1.3 release. -->
+                                       <!-- Remove the schema name(s) from the value(s) below when this occurs. -->
+                                       <field type="largetext">collectionobjects_common:assocEventName</field>   <!-- * -->
+                                       <field type="largetext">collectionobjects_common:assocEventNote</field>
+                                       <field type="largetext">collectionobjects_common:assocEventType</field>   <!-- * -->
+
+                                       <field type="largetext">assocObject</field>
+                                       <field type="largetext">assocOrganizationNote</field>
+                                       <field type="largetext">assocPeopleNote</field>
+                                       <field type="largetext">assocPersonNote</field>
+                                       <field type="largetext">assocPlaceNote</field>
+
+                                       <field type="largetext">collectionobjects_common:objectHistoryNote
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangeNote
+                                       </field>
+                                       <field type="largetext">usageNote</field>
+
+                                       <!-- Object Owner's Contribution Information -->
+                                       <!-- ======================================= -->
+
+                                       <field type="largetext">collectionobjects_common:ownersPersonalExperience
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownersPersonalResponse
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:ownersReference</field>
+
+                                       <field type="largetext">collectionobjects_common:ownersContributionNote
+                                       </field>
+
+                                       <!-- Object Viewer's Contribution Information -->
+                                       <!-- ======================================== -->
+
+                                       <field type="largetext">collectionobjects_common:viewersRole</field>
+                                       <field type="largetext">collectionobjects_common:viewersPersonalExperience
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:viewersPersonalResponse
+                                       </field>
+
+                                       <!-- FIXME: multivalued field - need to verify schema and field name -->
+                                       <field type="largetext">collectionobjects_common:viewersReference</field>
+
+                                       <field type="largetext">collectionobjects_common:viewersContributionNote
+                                       </field>
+
+                                       <!-- Reference Information -->
+                                       <!-- ===================== -->
+
+                                       <field type="largetext">collectionobjects_common:catalogNumber</field> <!-- * -->
+
+                                       <!-- Object Collection Information -->
+                                       <!-- ============================= -->
+
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNote
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNumber
+                                       </field> <!-- * -->
+
+                                       <!-- Additional non-text fields configured as 'largetext' to avoid the 
+                                               following error when Nuxeo is configured to use MySQL: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException. 
+                                               message: Row size too large. The maximum row size for the used table type, 
+                                               not counting BLOBs, is 65535. Some of the fields below may be repeatable 
+                                               or in repeatable groups, and the schema and field names below might thus 
+                                               require verification to match actual values. -->
+
+                                       <field type="largetext">collectionobjects_common:objectNumber</field>
+                                       <field type="largetext">collectionobjects_common:numberOfObjects</field>
+                                       <field type="largetext">collectionobjects_common:collection</field>
+                                       <field type="largetext">collectionobjects_common:recordStatus</field>
+                                       <field type="largetext">collectionobjects_common:age</field>
+                                       <field type="largetext">collectionobjects_common:ageQualifier</field>
+                                       <field type="largetext">collectionobjects_common:ageUnit</field>
+
+                                       <field type="largetext">collectionobjects_common:contentDate</field>
+                                       <field type="largetext">collectionobjects_common:contentLanguages</field>
+                                       <field type="largetext">collectionobjects_common:contentOrganizations
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:dimensionSummary</field>
+
+                                       <!-- FIXME: The set of dimensions-related fields below may be removed -->
+                                       <!-- altogether when it is confirmed that the App/UI layers are using -->
+                                       <!-- a repeatable dimensions group. -->
+                                       <field type="largetext">collectionobjects_common:dimension</field>
+                                       <field type="largetext">collectionobjects_common:dimensionMeasuredPart
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionMeasurementUnit
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionValue</field>
+                                       <field type="largetext">collectionobjects_common:dimensionValueDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dimensionValueQualifier
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:editionNumber</field>
+
+                                       <field type="largetext">collectionobjects_common:inscriptionContentInscriber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentLanguage
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentPosition
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentScript
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionContentType
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:inscriptionDescription
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionInscriber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionDate
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionPosition
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:inscriptionDescriptionType
+                                       </field>
+
+                                       <field type="largetext">collectionobjects_common:objectStatus</field>
+                                       <field type="largetext">collectionobjects_common:phase</field>
+                                       <field type="largetext">collectionobjects_common:sex</field>
+                                       <field type="largetext">collectionobjects_common:ownershipAccess</field>
+                                       <field type="largetext">collectionobjects_common:ownershipCategory
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipDates</field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangeMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangePriceCurrency
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipExchangePriceValue
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:ownershipPlace</field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionNumber
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionMethod
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionPlace
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:fieldCollectionDate
+                                       </field>
+
+                                       <!-- FIXME: This sample set of date field can be removed when Cataloging -->
+                                       <!-- records are using structured date fields, or earlier when it is 
+                                               confirmed that -->
+                                       <!-- the App/UI layers are not using this vestigial part of the Cataloging 
+                                               schema. -->
+                                       <field type="largetext">collectionobjects_common:dateAssociation</field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingle
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingleCertainty
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateEarliestSingleQualifier
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateLatest</field>
+                                       <field type="largetext">collectionobjects_common:dateLatestCertainty
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:dateLatestQualifier
+                                       </field>
+                                       <field type="largetext">collectionobjects_common:datePeriod</field>
+                                       <field type="largetext">collectionobjects_common:dateText</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Contact -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">contacts_common:addressPlace</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Group -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">groups_common:scopeNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Intake -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">intakes_common:entryNote</field>
+                                       <field type="largetext">intakes_common:packingNote</field>
+                                       <field type="largetext">intakes_common:fieldCollectionNote</field>
+                                       <field type="largetext">intakes_common:insuranceNote</field>
+                                       <field type="largetext">intakes_common:conditionCheckNote</field>
+                                       <field type="largetext">currentLocationNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Loan In -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">loansin_common:loanInConditions</field>
+                                       <field type="largetext">loansin_common:loanInNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Loan Out -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">loansout_common:specialConditionsOfLoan</field>
+                                       <field type="largetext">loansout_common:loanOutNote</field>
+                                       <field type="largetext">loansout_common:loanPurpose</field>
+                                       <field type="largetext">loanedObjectStatusNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Movement / Location and Movement Control -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">movements_common:currentLocationNote</field>
+                                       <field type="largetext">movements_common:movementNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Media / Media Handling -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">media_common:copyrightStatement</field>
+                                       <field type="largetext">media_common:description</field>
+                                       <field type="largetext">media_common:title</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Note -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">notes_common:content</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Object Exit -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">objectexit_common:exitNote</field>
+                                       <field type="largetext">objectexit_common:packingNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Organization -->
+                                       <!-- =========================================================== -->
+
+                                       <field type="largetext">shortName</field>
+                                       <field type="largetext">longName</field>
+                                       <field type="largetext">nameAdditions</field>
+                                       <field type="largetext">historyNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Person -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">persons_common:bioNote</field>
+                                       <field type="largetext">persons_common:nameNote</field>
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Relation -->
+                                       <!-- =========================================================== -->
+
+                                       <!-- No largetext fields identified to date -->
+
+
+                                       <!-- =========================================================== -->
+                                       <!-- Storage Location / Location -->
+                                       <!-- =========================================================== -->
+                                       <field type="largetext">locations_common:name</field>
+                                       <!-- conditionNote will be made part of a repeatable group of fields 
+                                               in a future release -->
+                                       <field type="largetext">locations_common:conditionNote</field>
+                                       <field type="largetext">locations_common:securityNote</field>
+                                       <field type="largetext">locations_common:accessNote</field>
+
+                               </schema>
+                       </repository>
+               </repository>
+       </extension>
+
+       <extension target="org.nuxeo.ecm.core.api.repository.RepositoryManager"
+               point="repositories">
+               <documentation>The lifesci-domain repository</documentation>
+               <repository name="lifesci-domain" label="Default Repository" />
+       </extension>
+</component>
index 5449ea2e101e91c1e95ba62fb298f71f20950017..91b378c44056cc171ded55029c189e6bb8fe8582 100644 (file)
@@ -7,7 +7,6 @@
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
-    <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.3rdparty</artifactId>
     <name>services.3rdparty</name>
     <packaging>pom</packaging>
diff --git a/pom.xml b/pom.xml
index 05e81761a070abe7e3d52bbb5a518f04d03f328f..fdd641de368fb75c401aeffa7399897d015113a8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                                        <pluginExecutions>\r
                                                                <pluginExecution>\r
                                                                        <pluginExecutionFilter>\r
-                                                                               <groupId>\r
-                                                                                       org.jvnet.hyperjaxb3\r
-                                                                               </groupId>\r
-                                                                               <artifactId>\r
-                                                                                       maven-hyperjaxb3-plugin\r
-                                                                               </artifactId>\r
-                                                                               <versionRange>\r
-                                                                                       [0.5.6,)\r
-                                                                               </versionRange>\r
+                                                                               <groupId>org.jvnet.hyperjaxb3</groupId>\r
+                                                                               <artifactId>maven-hyperjaxb3-plugin</artifactId>\r
+                                                                               <versionRange>[0.5.6,)</versionRange>\r
                                                                                <goals>\r
                                                                                        <goal>generate</goal>\r
                                                                                </goals>\r
                                                                        </pluginExecutionFilter>\r
                                                                        <action>\r
-                                                                               <ignore></ignore>\r
+                                                                               <execute></execute>\r
                                                                        </action>\r
                                                                </pluginExecution>\r
                                                                <pluginExecution>\r
index ca988923dde5ddab0bd9ad127a12c31420329df4..62e96255f7dfc7aae66c1ecc4445df21e6fa4886 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/.settings/org.maven.ide.eclipse.prefs b/services/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 56b0dc0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:22 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/IntegrationTests/.settings/org.maven.ide.eclipse.prefs b/services/IntegrationTests/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c279a22..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:31 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/JaxRsServiceProvider/.settings/org.maven.ide.eclipse.prefs b/services/JaxRsServiceProvider/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 2db9cb87fe902630c848e4d8f84b15234fdf6deb..9c19e196df256e9f36a3e7a081488656ed8bf44e 100644 (file)
@@ -53,6 +53,7 @@ log4j.additivity.perf.collectionspace=false
 # CollectionSpace loggers and default levels - all loggers using the rootLogger if not otherwise specified\r
 #\r
 log4j.logger.org.collectionspace=DEBUG\r
+log4j.logger.org.collectionspace.services.common.storage.JDBCTools=TRACE\r
 #log4j.logger.org.collectionspace.services.common.vocabulary.nuxeo=TRACE\r
 \r
 #\r
index de1031dcb69fe10f8f77a723a33cabafc1ba9e11..3d0f5e317d791754c587b1906e4069d6920f2780 100644 (file)
@@ -8,85 +8,68 @@
   the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
   OF ANY KIND, either express or implied. See the License for the specific language 
   governing permissions and limitations under the License. -->
-<Context antiResourceLocking="false" privileged="true"
-  path="/cspace-services" docBase="cspace-services">
+<Context antiResourceLocking="false" privileged="true" path="/cspace-services"
+    docBase="cspace-services">
 
-       <!-- 
+    <!-- 
                Setup the security realm for the CollectionSpace services
         -->
-       <Realm className="org.apache.catalina.realm.JAASRealm"    
-               appName="CSpaceJBossDBLoginModule" 
-               userClassNames="org.collectionspace.authentication.CSpacePrincipal"       
-               roleClassNames="org.collectionspace.authentication.CSpacePrincipal"/>
-  
-  <!-- Disable HTTP Session persistence between restart since webengine session objects
-    are not serializable -->
-  <Manager pathname="" />
+    <Realm className="org.apache.catalina.realm.JAASRealm" appName="CSpaceJBossDBLoginModule"
+        userClassNames="org.collectionspace.authentication.CSpacePrincipal"
+        roleClassNames="org.collectionspace.authentication.CSpacePrincipal"/>
 
-  <!-- define custom loader that is responsible to start nuxeo runtime (it extends the default one) -->
+    <!-- Disable HTTP Session persistence between restart since webengine session objects are not serializable -->
+    <Manager pathname=""/>
 
-  <!-- Disabled since these are specific to the default Nuxeo DM webapp        
+    <!-- define custom loader that is responsible to start nuxeo runtime (it extends the default one) -->
+
+    <!-- Disabled since these are specific to the default Nuxeo DM webapp      
   <Loader className="org.nuxeo.runtime.tomcat.NuxeoWebappLoader"
     loaderClass="org.nuxeo.runtime.tomcat.NuxeoWebappClassLoader" />
-
+    
   <Listener className="org.nuxeo.runtime.tomcat.NuxeoLauncher" home="${catalina.base}/nxserver" />
   -->
 
-  <!-- Define Nuxeo's JDBC datasources: the JNDI names will be: java:comp/env/jdbc/DATABASE_NAME.
+    <!-- Define Nuxeo's JDBC datasources: the JNDI names will be: java:comp/env/jdbc/DATABASE_NAME.
     For example java:comp/env/jdbc/nxsqldirectory This means you need to update corresponding
     JNDI bindings in nuxeo data source definitions in the config directory -->
 
-  <ResourceLink name="jdbc/nxsqldirectory" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/nxrelations-default-jena" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/comment-relations" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/nxaudit-logs" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/nxjbpm" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/placeful_service_ds" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/nxwebwidgets" global="jdbc/nuxeo" type="javax.sql.DataSource" />
-  <ResourceLink name="jdbc/nxuidsequencer" global="jdbc/nuxeo" type="javax.sql.DataSource" />
+    <ResourceLink name="jdbc/nxsqldirectory" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/nxrelations-default-jena" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/comment-relations" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/nxaudit-logs" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/nxjbpm" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/placeful_service_ds" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/nxwebwidgets" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
+    <ResourceLink name="jdbc/nxuidsequencer" global="jdbc/nuxeo" type="javax.sql.DataSource"/>
 
-  <Resource name="TransactionManager" auth="Container"
-    type="javax.transaction.TransactionManager" factory="org.nuxeo.runtime.jtajca.NuxeoTransactionManagerFactory"
-    transactionTimeoutSeconds="300" />
-  <Transaction factory="org.nuxeo.runtime.jtajca.NuxeoUserTransactionFactory" />
-  <Resource name="NuxeoConnectionManager" auth="Container"
-    type="javax.resource.spi.ConnectionManager" factory="org.nuxeo.runtime.jtajca.NuxeoConnectionManagerFactory"
-    minPoolSize="0" maxPoolSize="20"
-    idleTimeoutMinutes="0" />
+    <Resource name="TransactionManager" auth="Container" type="javax.transaction.TransactionManager"
+        factory="org.nuxeo.runtime.jtajca.NuxeoTransactionManagerFactory"
+        transactionTimeoutSeconds="300"/>
+    <Transaction factory="org.nuxeo.runtime.jtajca.NuxeoUserTransactionFactory"/>
+    <Resource name="NuxeoConnectionManager" auth="Container"
+        type="javax.resource.spi.ConnectionManager"
+        factory="org.nuxeo.runtime.jtajca.NuxeoConnectionManagerFactory" minPoolSize="0"
+        maxPoolSize="20" idleTimeoutMinutes="0"/>
 
-  <Resource auth="Container" name="Mail" type="javax.mail.Session"
-       mail.store.protocol="pop3"
-       mail.pop3.host="pop3.nosuchhost.nosuchdomain.com"
-       mail.pop3.user="nobody"
-       mail.transport.protocol="smtp"
-       mail.smtp.host="localhost" mail.smtp.port="25"
-       mail.smtp.starttls.enable="false"
-       mail.smtp.auth="false"
-       mail.smtp.user="anonymous"
-       password="password" mail.from="noreply@nuxeo.com"
-       mail.debug="false" />
+    <Resource auth="Container" name="Mail" type="javax.mail.Session" mail.store.protocol="pop3"
+        mail.pop3.host="pop3.nosuchhost.nosuchdomain.com" mail.pop3.user="nobody"
+        mail.transport.protocol="smtp" mail.smtp.host="localhost" mail.smtp.port="25"
+        mail.smtp.starttls.enable="false" mail.smtp.auth="false" mail.smtp.user="anonymous"
+        password="password" mail.from="noreply@nuxeo.com" mail.debug="false"/>
 
-       <!-- 
+    <!-- 
                For CollectionSpace services
         -->
-    <Resource name="jdbc/CspaceDS"
-           auth="Container"
-           type="javax.sql.DataSource"
-           username="${db.user}"
-           password="${db.user.password}"
-           driverClassName="${db.jdbc.driver.class}"
-           url="jdbc:${db}://${db.host}:${db.port}/cspace"
-           maxActive="8"
-           maxIdle="4"/>
-               
-       <Resource name="jdbc/NuxeoDS"
-           auth="Container"
-           type="javax.sql.DataSource"
-           username="${db.user}"
-           password="${db.user.password}"
-           driverClassName="${db.jdbc.driver.class}"
-           url="jdbc:${db}://${db.host}:${db.port}/nuxeo"
-           maxActive="8"
-           maxIdle="4"/>       
+    <Resource name="jdbc/CspaceDS" auth="Container" type="javax.sql.DataSource"
+        username="${db.user}" password="${db.user.password}"
+        driverClassName="${db.jdbc.driver.class}"
+        url="jdbc:${db}://${db.host}:${db.port}/cspace"
+        maxActive="8" maxIdle="4"/>
 
+    <Resource name="jdbc/NuxeoDS" auth="Container" type="javax.sql.DataSource"
+       username="${db.user}" password="${db.user.password}"
+       driverClassName="${db.jdbc.driver.class}"
+        url="jdbc:${db}://${db.host}:${db.port}/${DatabaseName}"
+        maxActive="8" maxIdle="4"/>
 </Context>
diff --git a/services/PerformanceTests/.settings/org.maven.ide.eclipse.prefs b/services/PerformanceTests/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c279a22..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:31 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 0ce4c5b34cbccc2aa63ad7eaf03e68359423ee7a..551ac7ac08d589753f13cacd1303c607a89c4e49 100644 (file)
@@ -3,20 +3,8 @@
        <name>org.collectionspace.services.account</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.account.jaxb</project>\r
-               <project>org.collectionspace.services.common</project>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -25,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/account/.settings/org.maven.ide.eclipse.prefs b/services/account/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ed1df41..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Dec 02 09:40:39 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/account/client/.settings/org.maven.ide.eclipse.prefs b/services/account/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ed1df41..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Dec 02 09:40:39 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/account/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/account/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 75847f0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:28 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/account/pstore/.settings/org.maven.ide.eclipse.prefs b/services/account/pstore/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 25d304a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:03 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/account/service/.settings/org.maven.ide.eclipse.prefs b/services/account/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ed1df41..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Dec 02 09:40:39 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index cc56a56745d5c2517f6a6aeba8972c9880e269ca..34718ac73fd56500026bffb94af8f61fe2cd7f3f 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/acquisition/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93c9e7e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:28 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index c5762ab9e352dad9f046ed19c0606158c21ce000..526750ffff855d141c71427d5642ee316d017a79 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/acquisition/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93c9e7e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:28 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/acquisition/client/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/acquisition/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0c6fb5c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:36 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/acquisition/service/.settings/org.maven.ide.eclipse.prefs b/services/acquisition/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93c9e7e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:28 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 54b316dd5638e3e1d02f75040796cd283914eb20..80f21e119bb2efaeb208a569aa6bfaea6c900479 100644 (file)
@@ -3,20 +3,8 @@
        <name>org.collectionspace.services.authentication</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.authentication.jaxb</project>\r
-               <project>org.collectionspace.services.common</project>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -25,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/authentication/.settings/org.maven.ide.eclipse.prefs b/services/authentication/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0c7b2cd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:23 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authentication/client/.settings/org.maven.ide.eclipse.prefs b/services/authentication/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 84b63f1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:34 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authentication/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/authentication/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 223c9b5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:16 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authentication/pstore/.settings/org.maven.ide.eclipse.prefs b/services/authentication/pstore/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 25d304a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:03 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authentication/service/.settings/org.maven.ide.eclipse.prefs b/services/authentication/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 84b63f1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:34 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 9a9957d7fe89cbbba2939bf69e5d0e6006fb249a..a8ee8d8805bd0b7a1c77d3491cfaa68b19bae2f6 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/authorization-mgt/.settings/org.maven.ide.eclipse.prefs b/services/authorization-mgt/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0ce6a31..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:16 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization-mgt/client/.settings/org.maven.ide.eclipse.prefs b/services/authorization-mgt/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8a7f053..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:17 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization-mgt/import/.settings/org.maven.ide.eclipse.prefs b/services/authorization-mgt/import/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index af42010..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri May 21 15:18:26 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization-mgt/service/.settings/org.maven.ide.eclipse.prefs b/services/authorization-mgt/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8a7f053..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:17 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index c2f1a72c8aaa9d17b44b5bd78993315a6b9eef59..53fed15553c73a257808ade5aa7f0885b7e56229 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/authorization/.settings/org.maven.ide.eclipse.prefs b/services/authorization/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0ce6a31..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:16 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/authorization/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 944f247..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:18 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization/pstore/.settings/org.maven.ide.eclipse.prefs b/services/authorization/pstore/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0ce6a31..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:16 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/authorization/service/.settings/org.maven.ide.eclipse.prefs b/services/authorization/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0ce6a31..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:16 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 3001e96dea62e5744149e6434a877d39dc50058b..e857f894eae94a7832461236f331d49a785f1709 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
index 5b4b02f88d73947be0620b79a6b6f161375e9421..9f043a30b935911d25cfcc0482266dbff34518e2 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/batch/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/batch/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/batch/3rdparty/nuxeo-platform-cs-batch/.settings/org.maven.ide.eclipse.prefs b/services/batch/3rdparty/nuxeo-platform-cs-batch/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/batch/client/.settings/org.maven.ide.eclipse.prefs b/services/batch/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/batch/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/batch/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f07df..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:45 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/batch/service/.settings/org.maven.ide.eclipse.prefs b/services/batch/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 7a546e8362099a2dbcd095ad18978f869a836b4c..2cb6d0902cb248f0cf3a07856cb7d49d4b7e5904 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/blob/.settings/org.maven.ide.eclipse.prefs b/services/blob/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ea8c9be87a25539a7c331579db108c8087cb0071..5ca2f2bb0ed9a3b1f3d6d15ea330f53798756687 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/blob/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/blob/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/blob/3rdparty/nuxeo-platform-cs-blob/.settings/org.maven.ide.eclipse.prefs b/services/blob/3rdparty/nuxeo-platform-cs-blob/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/blob/client/.settings/org.maven.ide.eclipse.prefs b/services/blob/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/blob/jaxb/.project b/services/blob/jaxb/.project
deleted file mode 100644 (file)
index 10f3c61..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<projectDescription>\r
-  <name>org.collectionspace.services.blob.jaxb</name>\r
-  <comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>\r
-  <projects>\r
-    <project>org.collectionspace.services.jaxb</project>\r
-  </projects>\r
-  <buildSpec>\r
-    <buildCommand>\r
-      <name>org.eclipse.jdt.core.javabuilder</name>\r
-    </buildCommand>\r
-    <buildCommand>\r
-      <name>org.maven.ide.eclipse.maven2Builder</name>\r
-    </buildCommand>\r
-  </buildSpec>\r
-  <natures>\r
-    <nature>org.eclipse.jdt.core.javanature</nature>\r
-    <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-  </natures>\r
-</projectDescription>
\ No newline at end of file
diff --git a/services/blob/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/blob/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8ff0f62..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:19 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/blob/service/.settings/org.maven.ide.eclipse.prefs b/services/blob/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/client/.settings/org.maven.ide.eclipse.prefs b/services/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c279a22..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:31 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ddcb4d24589cd43a031e4ffb0d9e2c11d1ecec5a..ccc53d2e4d405c0ee24351ea9b92e907df5d2f99 100644 (file)
@@ -94,6 +94,8 @@ public interface IQueryManager {
 \r
        public void execQuery(String queryString);\r
        \r
+       public String getDatasourceName();\r
+       \r
        /**\r
         * Creates the where clause from keywords.\r
         * \r
@@ -126,7 +128,10 @@ public interface IQueryManager {
         * \r
         * @return the string\r
         */\r
-       public String createWhereClauseForPartialMatch(String field, String partialTerm);\r
+       public String createWhereClauseForPartialMatch(String dataSourceName,\r
+                       String repositoryName,\r
+                       String field,\r
+                       String partialTerm);\r
 \r
        /**\r
         * Creates a filtering where clause from docType, for invocables.\r
index 0a86d9b35b9b78dfcf5e04efe933a71f98ddb841..741d82ba2c067a4e89abcc5e60ada709afff60e6 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/collectionobject/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 696a5c2df6c0fb96b762363a3279c816c346265e..ce7699e9001d44f0d47594c38c613bd4bd014eba 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/collectionobject/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/collectionobject/client/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/collectionobject/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index dbd51f3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:41 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 3f4c8fe25305ac2ff4b5b480daa885d6f8739698..0b31a5792b96d68ece00d8d00a409fd4dce1cf47 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.collectionobjects.client.samples</name>\r
+       <name>org.collectionspace.services.collectionobject.client.samples</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/collectionobject/sample/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e085fa4..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:04 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index e028f2e1590dac9f310455e932965cb0957fcba5..18d3006a8a8779402200567e822eec9bcfd4f1dc 100644 (file)
@@ -3,8 +3,6 @@
        <name>org.collectionspace.services.collectionobject.client.sample</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.client</project>\r
-               <project>org.collectionspace.services.common</project>\r
        </projects>\r
        <buildSpec>\r
                <buildCommand>\r
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -24,8 +17,7 @@
                </buildCommand>\r
        </buildSpec>\r
        <natures>\r
-               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
                <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/collectionobject/sample/sample/.settings/org.maven.ide.eclipse.prefs b/services/collectionobject/sample/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e085fa4..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:04 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/common-test/.settings/org.maven.ide.eclipse.prefs b/services/common-test/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index af42010..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri May 21 15:18:26 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/common/.settings/org.maven.ide.eclipse.prefs b/services/common/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 2a7cb62..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:24 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ede77b46ac0c1beae34f71de2141d5ec3e96b0a1..8ce480629be0c87fd4360d7c658f85e6b439e963 100644 (file)
             <artifactId>commons-jexl</artifactId>\r
             <version>2.0.1</version>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>commons-dbcp</groupId>\r
+            <artifactId>commons-dbcp</artifactId>\r
+            <version>1.3-RC1</version>\r
+            <scope>provided</scope>\r
+        </dependency>\r
         <dependency>\r
                        <groupId>commons-codec</groupId>\r
                        <artifactId>commons-codec</artifactId>\r
                        <version>1.4</version>\r
         </dependency>\r
+        <dependency>\r
+               <groupId>org.apache.tomcat</groupId>\r
+               <artifactId>dbcp</artifactId>\r
+               <version>6.0.33</version>\r
+               <scope>provided</scope>\r
+               </dependency>\r
 \r
         <!-- javax -->\r
         <dependency>\r
             <artifactId>nuxeo-core-storage-sql</artifactId>\r
             <version>${nuxeo.core.version}</version>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.nuxeo.ecm.core</groupId>\r
+            <artifactId>nuxeo-core-storage-sql-ra</artifactId>\r
+            <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-io</artifactId>\r
index 6938663af05cef94aa6a3cc0ec0f76a1c4f88d7a..2a972b97ae15178d57d04a0c99b376df4aa02804 100644 (file)
@@ -5,7 +5,7 @@
                 
   <tenant:tenantBinding id="2" name="lifesci.collectionspace.org" displayName="Life Sciences/Natural History Demo Tenant" version="0.1">
 
-    <tenant:repositoryDomain name="default-domain" storageName="lifesci-domain" repositoryClient="nuxeo-java" />
+    <tenant:repositoryDomain name="default-domain" storageName="lifesci-domain" repositoryName="lifesci-domain" repositoryClient="nuxeo-java" />
        
        <tenant:serviceBindings merge:matcher="id" id="CollectionObjects">
     <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
index fc1a312e06d37a96a1b79717d9a5038a34d5b181..ce50d07508c5df9aa293db37bed86ac03e63811e 100644 (file)
         <!-- begin idgenerator service meta-data -->
         <tenant:serviceBindings id="idgenerators" name="idgenerators" type="utility" version="0.1">
             <!-- other URI paths through which this service could be accessed -->
+                       <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
+            <service:initHandler xmlns:service="http://collectionspace.org/services/config/service">
+                <service:classname>org.collectionspace.services.common.init.RunSqlScript</service:classname>
+                <service:params>
+                    <service:property>
+                        <service:key>sqlScriptName</service:key>
+                        <service:value>create_id_generators_table.sql</service:value>
+                    </service:property>
+                </service:params>
+            </service:initHandler>
         </tenant:serviceBindings>
         <!-- end idgenerator service meta-data -->
         
                     /idgenerators/*/ids
                 </service:uriPath>
             -->
+            <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
+            <!-- The following initHandler config block is placed here, rather than in the -->
+            <!-- idgenerators service, above, as it appears that we currently can only run -->
+            <!-- one initHandler per service - ADR 2012-12-13 -->
+            <service:initHandler xmlns:service="http://collectionspace.org/services/config/service">
+                <service:classname>org.collectionspace.services.common.init.RunSqlScript</service:classname>
+                <service:params>
+                    <service:property>
+                        <service:key>sqlScriptName</service:key>
+                        <service:value>load_id_generators.sql</service:value>
+                    </service:property>
+                </service:params>
+            </service:initHandler>
         </tenant:serviceBindings>    
         <!-- end id service meta-data -->
         
         <!-- begin servicegroup service meta-data -->
         <!-- Servicegroup is a task service that has no representation in the repo, 
-                 but provides tools like keyword search across many types of services. 
-          -->
+               but provides tools like keyword search across many types of services. 
+        -->
         <tenant:serviceBindings id="servicegroups" name="servicegroups" type="utility" version="0.1">
             <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
             <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler</service:documentHandler>
             <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.collectionobject.nuxeo.CollectionObjectDocumentModelHandler</service:documentHandler>
             <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
                 <service:params>
-                       <service:SupportsHierarchy>true</service:SupportsHierarchy>
-                       <service:RefnameDisplayNameField> <!-- The field used as the display name in an object's refname -->
-                           <service:element>objectNumber</service:element>
-                           <service:xpath>objectNumber</service:xpath>
-                       </service:RefnameDisplayNameField>
+                    <service:SupportsHierarchy>true</service:SupportsHierarchy>
+                    <service:RefnameDisplayNameField> <!-- The field used as the display name in an object's refname -->
+                        <service:element>objectNumber</service:element>
+                        <service:xpath>objectNumber</service:xpath>
+                    </service:RefnameDisplayNameField>
                     <service:ListResultsFields>
                         <service:ListResultField>
                             <service:element>objectNumber</service:element>
                 </service:part>
             </service:object>
         </tenant:serviceBindings>
-    <!-- end loanout service meta-data -->
+        <!-- end loanout service meta-data -->
     
-    <!-- begin objectexit service meta-data -->
+        <!-- begin objectexit service meta-data -->
         <tenant:serviceBindings id="ObjectExit" name="ObjectExit" type="procedure" version="0.1">
             <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
             <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.objectexit.nuxeo.ObjectExitDocumentModelHandler</service:documentHandler>
                             <types:key>authRef</types:key>
                             <types:value>movementContact</types:value>
                         </types:item>
-                         <!-- Inventory Control Information group -->
+                        <!-- Inventory Control Information group -->
                         <types:item xmlns:types="http://collectionspace.org/services/config/types">
                             <types:key>authRef</types:key>
                             <types:value>inventoryContactList|inventoryContact</types:value>
             <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.vocabulary.nuxeo.VocabularyItemDocumentModelHandler</service:documentHandler>
             <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
                 <service:params>
-                       <service:SupportsHierarchy>true</service:SupportsHierarchy>
-                       <service:RefnameDisplayNameField>
+                    <service:SupportsHierarchy>true</service:SupportsHierarchy>
+                    <service:RefnameDisplayNameField>
                         <service:ListResultField>
                             <service:element>order</service:element>
                             <service:xpath>order</service:xpath>
                         </service:ListResultField>
-                       </service:RefnameDisplayNameField>
+                    </service:RefnameDisplayNameField>
                     <service:ListResultsFields>
                         <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
                         <service:ListResultField>
                             <types:key>authRef</types:key>
                             <types:value>groups|group</types:value>
                         </types:item> -->
-                      <!-- Uncomment when Concept authority/Function (line of business) vocabulary is implemented in Services -->
+                        <!-- Uncomment when Concept authority/Function (line of business) vocabulary is implemented in Services -->
                         <!--                       
                         <types:item xmlns:types="http://collectionspace.org/services/config/types">
                             <types:key>authRef</types:key>
             <service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.person.nuxeo.PersonDocumentModelHandler</service:documentHandler>
             <service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
                 <service:params>
-                       <service:SupportsHierarchy>true</service:SupportsHierarchy>
+                    <service:SupportsHierarchy>true</service:SupportsHierarchy>
                     <service:ListResultsFields>
                         <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
                         <service:ListResultField>
                 </service:part>
             </service:object>
         </tenant:serviceBindings>
-    <!-- end person service meta-data -->
+        <!-- end person service meta-data -->
         
-    <!-- begin locationauthority service meta-data -->
+        <!-- begin locationauthority service meta-data -->
         <tenant:serviceBindings id="Locationauthorities" name="Locationauthorities" type="utility" version="0.1">
             <!-- other URI paths through which this service could be accessed -->
             <!--
                     <service:ListResultsFields>
                         <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
                         <!-- Uncomment when bug in returning list result values from complex types,
-                             currently in the CSPACE-4813 branch (P/NP term work in services), is fixed -->
+                        currently in the CSPACE-4813 branch (P/NP term work in services), is fixed -->
                         <!--
                         <service:ListResultField>
                             <service:element>taxonFullName</service:element>
                 </service:part>
             </service:object>
         </tenant:serviceBindings>
-    <!-- end acquisition service meta-data -->
+        <!-- end acquisition service meta-data -->
     
-    <!-- begin relation service meta-data -->
+        <!-- begin relation service meta-data -->
         <tenant:serviceBindings id="Relations" name="Relations" type="utility" version="0.1">
             <!-- other URI paths through which this service could be accessed -->
             <service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
                 </service:part>
             </service:object>
         </tenant:serviceBindings>
-    <!-- end note service meta-data -->
+        <!-- end note service meta-data -->
     
         <!-- begin role service meta-data -->
         <tenant:serviceBindings id="authorization/roles" name="authorization/roles" type="security" version="0.1">
index 0db2fc8791f8879ac2b6762e6d3869543a998526..2d1dcb27f1e33072076be644943d376918d2016a 100644 (file)
@@ -364,8 +364,8 @@ public abstract class ResourceBase
         //\r
         if (partialTerm != null && !partialTerm.isEmpty()) {\r
                String partialTermMatchField = getPartialTermMatchField(ctx);\r
-            String ptClause = QueryManager.createWhereClauseForPartialMatch(\r
-                       partialTermMatchField, partialTerm);\r
+            String ptClause = QueryManager.createWhereClauseForPartialMatch(ctx, partialTermMatchField,\r
+                       partialTerm);\r
             docFilter.appendWhereClause(ptClause, IQueryManager.SEARCH_QUALIFIER_AND);\r
         } else if (keywords != null && !keywords.isEmpty()) {\r
             String whereClause = QueryManager.createWhereClauseFromKeywords(keywords);\r
index 2a9cab01082801c568b104c4f89d9c27cde0957c..6b20685f055a2471bbe0bcf013d01d27b380799e 100644 (file)
@@ -7,11 +7,6 @@ import java.io.File;
 import java.io.FileInputStream;\r
 import java.io.FileNotFoundException;\r
 import java.io.InputStream;\r
-import java.sql.Connection;\r
-import java.sql.PreparedStatement;\r
-import java.sql.ResultSet;\r
-import java.sql.SQLException;\r
-import java.sql.Statement;\r
 import java.util.*;\r
 \r
 import javax.naming.NamingException;\r
@@ -20,17 +15,15 @@ import javax.sql.DataSource;
 \r
 import org.collectionspace.authentication.AuthN;\r
 \r
-import org.collectionspace.services.config.service.InitHandler;\r
 import org.collectionspace.services.common.authorization_mgt.AuthorizationCommon;\r
 import org.collectionspace.services.common.config.ConfigReader;\r
+import org.collectionspace.services.common.config.ConfigUtils;\r
 import org.collectionspace.services.common.config.ServicesConfigReaderImpl;\r
 import org.collectionspace.services.common.config.TenantBindingConfigReaderImpl;\r
 import org.collectionspace.services.common.init.AddIndices;\r
 import org.collectionspace.services.config.service.InitHandler.Params.Field;\r
 import org.collectionspace.services.common.init.IInitHandler;\r
-import org.collectionspace.services.common.security.SecurityUtils;\r
 import org.collectionspace.services.common.storage.JDBCTools;\r
-import org.collectionspace.services.common.storage.DatabaseProductType;\r
 import org.collectionspace.services.config.ClientType;\r
 import org.collectionspace.services.config.ServiceConfig;\r
 import org.collectionspace.services.config.service.ServiceBindingType;\r
@@ -213,56 +206,80 @@ public class ServiceMain {
         }\r
     }\r
     \r
-    /**\r
-     * Create required indexes (aka indices) in database tables not associated\r
-     * with any specific tenant.\r
-     * \r
-     * @throws Exception \r
-     */\r
-    void createRequiredIndices() throws Exception {\r
-                   \r
-         // Define a set of columns (fields) and their associated\r
-         // tables, on which database indexes should always be created\r
-         final String COLLECTIONSPACE_CORE_TABLE_NAME = "collectionspace_core";\r
-         final String NUXEO_FULLTEXT_TABLE_NAME = "fulltext";\r
-         final String NUXEO_HIERARCHY_TABLE_NAME = "hierarchy";\r
-         \r
-         Map<Integer,List<String>> fieldsToIndex = new HashMap<Integer,List<String>>();\r
-         fieldsToIndex.put(1, new ArrayList(Arrays.asList(COLLECTIONSPACE_CORE_TABLE_NAME, "tenantid")));\r
-         fieldsToIndex.put(2, new ArrayList(Arrays.asList(COLLECTIONSPACE_CORE_TABLE_NAME, "updatedat")));\r
-         fieldsToIndex.put(3, new ArrayList(Arrays.asList(NUXEO_FULLTEXT_TABLE_NAME, "jobid")));\r
-         fieldsToIndex.put(4, new ArrayList(Arrays.asList(NUXEO_HIERARCHY_TABLE_NAME, "name")));\r
-       \r
-         // Invoke existing post-init code to create these indexes,\r
-         // sending in the set of values above, in contrast to\r
-         // drawing these values from per-tenant configuration.\r
-         DataSource dataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
-         AddIndices addindices = new AddIndices();\r
-         List<Field> fields = new ArrayList<Field>();\r
-         for (Map.Entry<Integer,List<String>> entry : fieldsToIndex.entrySet()) {\r
-             Field field = new Field();\r
-             field.setTable(entry.getValue().get(0)); // Table name from List item 0\r
-             field.setCol(entry.getValue().get(1)); // Column name from List item 1\r
-             fields.add(field);\r
-         }\r
-         addindices.onRepositoryInitialized(dataSource, null, fields, null);\r
+       /**\r
+        * Create required indexes (aka indices) in database tables not associated\r
+        * with any specific tenant.\r
+        * \r
+        * We need to loop over each repository/db declared in the tenant bindings.\r
+        * The assumption here is that each repo/db is a Nuxeo repo/DB.\r
+        * \r
+        * @throws Exception\r
+        */\r
+       void createRequiredIndices() throws Exception {\r
+        Hashtable<String, TenantBindingType> tenantBindingTypeMap = tenantBindingConfigReader.getTenantBindings();\r
 \r
-    }\r
+        //\r
+        //Loop through all tenants in tenant-bindings.xml\r
+        //\r
+        for (TenantBindingType tbt : tenantBindingTypeMap.values()) {\r
+               List<String> repositoryNameList = ConfigUtils.getRepositoryNameList(tbt);\r
+                       if (repositoryNameList != null && repositoryNameList.isEmpty() == false) {\r
+                               //\r
+                               // Loop through each repo/DB defined in a tenant bindings file\r
+                               //\r
+                               for (String repositoryName : repositoryNameList) {\r
+                                       // Define a set of columns (fields) and their associated\r
+                                       // tables, on which database indexes should always be created\r
+                                       final String COLLECTIONSPACE_CORE_TABLE_NAME = "collectionspace_core";\r
+                                       final String NUXEO_FULLTEXT_TABLE_NAME = "fulltext";\r
+                                       final String NUXEO_HIERARCHY_TABLE_NAME = "hierarchy";\r
+                       \r
+                                       Map<Integer, List<String>> fieldsToIndex = new HashMap<Integer, List<String>>();\r
+                                       fieldsToIndex.put(1, new ArrayList<String>(Arrays.asList(COLLECTIONSPACE_CORE_TABLE_NAME, "tenantid")));\r
+                                       fieldsToIndex.put(2, new ArrayList<String>(Arrays.asList(COLLECTIONSPACE_CORE_TABLE_NAME, "updatedat")));\r
+                                       fieldsToIndex.put(3, new ArrayList<String>(Arrays.asList(NUXEO_FULLTEXT_TABLE_NAME, "jobid")));\r
+                                       fieldsToIndex.put(4, new ArrayList<String>(Arrays.asList(NUXEO_HIERARCHY_TABLE_NAME, "name")));\r
+                       \r
+                                       // Invoke existing post-init code to create these indexes,\r
+                                       // sending in the set of values above, in contrast to\r
+                                       // drawing these values from per-tenant configuration.\r
+//                                     DataSource dataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_DATASOURCE_NAME);\r
+                                       AddIndices addindices = new AddIndices();\r
+                                       List<Field> fields = new ArrayList<Field>();\r
+                                       for (Map.Entry<Integer, List<String>> entry : fieldsToIndex.entrySet()) {\r
+                                               Field field = new Field();\r
+                                               field.setTable(entry.getValue().get(0)); // Table name from List\r
+                                                                                                                                       // item 0\r
+                                               field.setCol(entry.getValue().get(1)); // Column name from List item\r
+                                                                                                                               // 1\r
+                                               fields.add(field);\r
+                                       }\r
+                                       addindices.onRepositoryInitialized(JDBCTools.NUXEO_DATASOURCE_NAME, repositoryName, null, fields, null);\r
+                               }\r
+                       } else {\r
+                               String errMsg = "repositoryNameList was empty or null.";\r
+                               logger.error(errMsg);\r
+                               throw new Exception(errMsg);\r
+                       }\r
+        }\r
+       }\r
 \r
     public void firePostInitHandlers() throws Exception {\r
-       DataSource dataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
         Hashtable<String, TenantBindingType> tenantBindingTypeMap = tenantBindingConfigReader.getTenantBindings();\r
+        //\r
         //Loop through all tenants in tenant-bindings.xml\r
-        for (TenantBindingType tbt: tenantBindingTypeMap.values()){\r
-            //String name = tbt.getName();\r
-            //String id = tbt.getId();\r
-            //Loop through all the services in this tenant\r
+        //\r
+        for (TenantBindingType tbt : tenantBindingTypeMap.values()) {\r
+               //\r
+               //Loop through all the services in this tenant\r
+               //\r
             List<ServiceBindingType> sbtList = tbt.getServiceBindings();\r
-            for (ServiceBindingType sbt: sbtList){\r
+            for (ServiceBindingType sbt: sbtList) {\r
+               String repositoryName = ConfigUtils.getRepositoryName(tbt, sbt.getRepositoryDomain()); // Each service can have a different repo domain\r
                 //Get the list of InitHandler elements, extract the first one (only one supported right now) and fire it using reflection.\r
                 List<org.collectionspace.services.config.service.InitHandler> list = sbt.getInitHandler();\r
-                if (list!=null && list.size()>0){\r
-                       org.collectionspace.services.config.service.InitHandler handlerType = list.get(0);\r
+                if (list != null && list.size() > 0) {\r
+                       org.collectionspace.services.config.service.InitHandler handlerType = list.get(0);  // REM - 12/2012: We might want to think about supporting multiple post-init handlers\r
                     String initHandlerClassname = handlerType.getClassname();\r
 \r
                     List<org.collectionspace.services.config.service.InitHandler.Params.Field>\r
@@ -276,7 +293,7 @@ public class ServiceMain {
                     Object o = instantiate(initHandlerClassname, IInitHandler.class);\r
                     if (o != null && o instanceof IInitHandler){\r
                         IInitHandler handler = (IInitHandler)o;\r
-                        handler.onRepositoryInitialized(dataSource, sbt, fields, props);\r
+                        handler.onRepositoryInitialized(JDBCTools.NUXEO_DATASOURCE_NAME, repositoryName, sbt, fields, props);\r
                         //The InitHandler may be the default one,\r
                         //  or specialized classes which still implement this interface and are registered in tenant-bindings.xml.\r
                     }\r
@@ -349,8 +366,8 @@ public class ServiceMain {
        // cached in a static hash map of the JDBCTools class.  This will speed up lookups as well as protect our\r
        // code from JNDI lookup problems -for example, if the JNDI context gets stepped on or corrupted.\r
        //\r
-       DataSource cspaceDataSource = JDBCTools.getDataSource(JDBCTools.CSPACE_REPOSITORY_NAME);\r
-       DataSource nuxeoDataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
+       DataSource cspaceDataSource = JDBCTools.getDataSource(JDBCTools.CSPACE_DATASOURCE_NAME);\r
+       DataSource nuxeoDataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_DATASOURCE_NAME);\r
        //\r
        // Set our AuthN's datasource to be the cspaceDataSource\r
        //\r
index dde31ac036eb9a82003af949c4b69285d36f43fd..e8e878889f702e2c6d87f5dfac92934304adbe05 100644 (file)
@@ -232,7 +232,8 @@ public class AuthorizationCommon {
     }\r
     \r
     private static Connection getConnection() throws NamingException, SQLException {\r
-        return JDBCTools.getConnection(JDBCTools.CSPACE_REPOSITORY_NAME);\r
+        return JDBCTools.getConnection(JDBCTools.CSPACE_DATASOURCE_NAME,\r
+                       JDBCTools.DEFAULT_CSPACE_DATABASE_NAME);\r
     }\r
     \r
     /*\r
@@ -928,7 +929,8 @@ public class AuthorizationCommon {
         // and we're not touching that, so we could safely toss the \r
         // accounts, users, account-tenants, account-roles, and start over.\r
         try {\r
-               DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType();\r
+               DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType(JDBCTools.CSPACE_DATASOURCE_NAME,\r
+                       JDBCTools.DEFAULT_CSPACE_DATABASE_NAME);\r
                conn = getConnection();\r
                ArrayList<String> existingTenants = compileExistingTenants(conn, tenantInfo);\r
                \r
index 6cad17a791f494676dcbf72226806ee454ebbfcf..103cecc2f483df708273f1b7086f5a12b04669dd 100644 (file)
@@ -361,12 +361,10 @@ public class TenantBindingConfigReaderImpl
         }
         String repoDomain = serviceBinding.getRepositoryDomain(); 
         if (repoDomain == null) {
-               /* This is excessive - every call to a JPA based service dumps this msg.
-            if (logger.isDebugEnabled()) {
-                logger.debug("No repository domain configured for " + serviceName
+            if (logger.isTraceEnabled()) {
+                logger.trace("No repository domain configured for " + serviceName
                         + " of tenant with id=" + tenantId);
             }
-            */
             return null;
         }
         String key = this.getTenantQualifiedIdentifier(tenantId, repoDomain.trim());
index 178c2fbfcd05e5a1e6fc4e6fc9ebe4bbeb5c343b..243e9ccd9661e5a343d56865ea61ff7f9739df54 100644 (file)
@@ -86,7 +86,7 @@ public abstract class AbstractServiceContextImpl<IT, OT>
     private TenantBindingType tenantBinding;
     /** repository domain used by the service */
     private RepositoryDomainType repositoryDomain;
-    /** The override document type. */
+       /** The override document type. */
     private String overrideDocumentType = null;
     /** The val handlers. */
     private List<ValidatorHandler<IT, OT>> valHandlers = null;
@@ -696,4 +696,14 @@ public abstract class AbstractServiceContextImpl<IT, OT>
                // TODO Auto-generated method stub
                return currentRepositorySession;
        }       
+
+       @Override       
+       public RepositoryDomainType getRepositoryDomain() {
+               return repositoryDomain;
+       }
+
+       @Override       
+       public void setRepositoryDomain(RepositoryDomainType repositoryDomain) {
+               this.repositoryDomain = repositoryDomain;
+       }
 }
index 4eee5353124f946a8631a281ba00f2e0e125ed97..08c932432d6d367a2419df12eb724059fc22a699 100644 (file)
@@ -27,7 +27,12 @@ import java.lang.reflect.Constructor;
 import javax.ws.rs.core.UriInfo;
 
 import org.collectionspace.services.common.ResourceMap;
+import org.collectionspace.services.common.ServiceMain;
+import org.collectionspace.services.common.config.ConfigUtils;
+import org.collectionspace.services.common.config.TenantBindingConfigReaderImpl;
 import org.collectionspace.services.common.security.UnauthorizedException;
+import org.collectionspace.services.config.service.ServiceBindingType;
+import org.collectionspace.services.config.tenant.TenantBindingType;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -108,6 +113,28 @@ public class RemoteServiceContextImpl<IT, OT>
         }
     }
 
+    /*
+     * Returns the name of the service's acting repository.  Gets this from the tenant and service bindings files
+     */
+    public String getRepositoryName() throws Exception {
+       String result = null;
+       
+       TenantBindingConfigReaderImpl tenantBindingConfigReader = ServiceMain.getInstance().getTenantBindingConfigReader();
+       String tenantId = this.getTenantId();
+       TenantBindingType tenantBindingType = tenantBindingConfigReader.getTenantBinding(tenantId);
+       ServiceBindingType serviceBindingType = this.getServiceBinding();
+       String servicesRepoDomainName = serviceBindingType.getRepositoryDomain();
+       if (servicesRepoDomainName != null && servicesRepoDomainName.trim().isEmpty() == false) {
+               result = ConfigUtils.getRepositoryName(tenantBindingType, servicesRepoDomainName);
+       } else {
+               String errMsg = String.format("The '%s' service for tenant ID=%s did not declare a repository domain in its service bindings.", 
+                               serviceBindingType.getName(), tenantId);
+               throw new Exception(errMsg);
+       }
+       
+       return result;
+    }
+    
     /* (non-Javadoc)
      * @see org.collectionspace.services.common.context.AbstractServiceContextImpl#getInput()
      */
index bbb9f2a33d9a2fe10af45d72aeb50188d31e26c4..1dd07be55275f980eecddd43957134ef7ca96f1b 100644 (file)
@@ -36,6 +36,7 @@ import org.collectionspace.services.common.security.SecurityContext;
 import org.collectionspace.services.config.ClientType;
 import org.collectionspace.services.config.service.ObjectPartType;
 import org.collectionspace.services.config.service.ServiceBindingType;
+import org.collectionspace.services.config.tenant.RepositoryDomainType;
 
 /**
  *
@@ -147,6 +148,11 @@ public interface ServiceContext<IT, OT> {
      */
     public String getRepositoryDomainName();
     
+    /*
+     * The name of the repository/db for the current context
+     */
+    public String getRepositoryName() throws Exception;
+    
     /*
      * Get's the name/label used to create the storage container (folder or directory name)
      */
@@ -323,6 +329,9 @@ public interface ServiceContext<IT, OT> {
 
     public UriInfo getUriInfo();
 
+       public RepositoryDomainType getRepositoryDomain();
+
+       public void setRepositoryDomain(RepositoryDomainType repositoryDomain);
 }
 
 
index fc654c2eea9ec89097d3aca5110de2d15a050544..910934d47beceae0a46b10d0a7bfaf6f6158b2fc 100644 (file)
@@ -87,7 +87,8 @@ public class AddIndices extends InitHandler implements IInitHandler {
     /** See the class javadoc for this class: it shows the syntax supported in the configuration params.\r
      */\r
     @Override\r
-    public void onRepositoryInitialized(DataSource dataSource,\r
+    public void onRepositoryInitialized(String dataSourceName,\r
+               String repositoryName,\r
                ServiceBindingType sbt, \r
                List<Field> fields, \r
                List<Property> properties) throws Exception {\r
@@ -106,21 +107,25 @@ public class AddIndices extends InitHandler implements IInitHandler {
             if(Tools.notEmpty(param) && (param.indexOf(',')>-1)){\r
                 String[] fieldNames = param.split(",");\r
                 for (String fn: fieldNames){\r
-                    rows = addOneIndex(dataSource, tableName, fn);\r
+                    rows = addOneIndex(dataSourceName, repositoryName, tableName, fn);\r
                 }\r
             } else {\r
-                rows = addOneIndex(dataSource, tableName, fieldName);\r
+                rows = addOneIndex(dataSourceName, repositoryName, tableName, fieldName);\r
             }\r
         }\r
     }\r
 \r
-    private int addOneIndex(DataSource dataSource, String tableName, String columnName){\r
+    private int addOneIndex(String dataSourceName,\r
+               String repositoryName, \r
+               String tableName, \r
+               String columnName) {\r
         int rows = 0;\r
         String sql = "";\r
         String indexName = tableName + INDEX_SEP + columnName + INDEX_SUFFIX;\r
         try {\r
-            DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType();\r
-            if (indexExists(dataSource, databaseProductType, tableName, columnName, indexName)) {\r
+               DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType(dataSourceName, repositoryName);\r
+            if (indexExists(dataSourceName, repositoryName, databaseProductType,\r
+                       tableName, columnName, indexName)) {\r
                 logger.trace("Index already exists for column " + columnName\r
                         + " in table " + tableName);\r
                 // FIXME: Can add the option to drop and re-create an index here.\r
@@ -148,7 +153,7 @@ public class AddIndices extends InitHandler implements IInitHandler {
                 //\r
                 // If this assumption is no longer valid, we might instead\r
                 // identify the relevant repository from the table name here.\r
-                rows = JDBCTools.executeUpdate(dataSource, sql);\r
+                rows = JDBCTools.executeUpdate(dataSourceName, repositoryName, sql);\r
                 logger.trace("Index added to column ("+columnName+") on table ("+tableName+")");\r
             }\r
             return rows;\r
@@ -158,7 +163,8 @@ public class AddIndices extends InitHandler implements IInitHandler {
         }\r
     }\r
 \r
-    private boolean indexExists(DataSource dataSource,\r
+    private boolean indexExists(String dataSourceName,\r
+               String repositoryName,\r
                DatabaseProductType databaseProductType,\r
             String tableName, \r
             String colName, \r
@@ -204,7 +210,7 @@ public class AddIndices extends InitHandler implements IInitHandler {
             //\r
             // If this assumption is no longer valid, we might instead\r
             // identify the relevant repository from the table name here.\r
-            conn = JDBCTools.getConnection(dataSource);\r
+            conn = JDBCTools.getConnection(dataSourceName, repositoryName);\r
             stmt = conn.createStatement();\r
             rs = stmt.executeQuery(sql);\r
             if (rs.next()) {\r
index 9eecbcfffe2df87fdef379b4eaa27020324ff0f4..fc1154bec92f31957cb88db7dbbd06a6be4592a5 100644 (file)
@@ -2,8 +2,6 @@ package org.collectionspace.services.common.init;
 \r
 import java.util.List;\r
 \r
-import javax.sql.DataSource;\r
-\r
 import org.collectionspace.services.config.service.InitHandler.Params.Field;\r
 import org.collectionspace.services.config.service.InitHandler.Params.Property;\r
 import org.collectionspace.services.config.service.ServiceBindingType;\r
@@ -15,7 +13,8 @@ import org.collectionspace.services.config.service.ServiceBindingType;
  */\r
 \r
 public interface IInitHandler {\r
-    public void onRepositoryInitialized(DataSource dataSource,\r
+    public void onRepositoryInitialized(String dataSourceName,\r
+               String repositoryName,\r
                ServiceBindingType sbt, \r
                List<Field> fields, \r
                List<Property> property) throws Exception;\r
index 6318b633c4756138f7166837029009b8006af6dd..2ad25624f4f94861dce88822a7bbc83cc8a79855 100644 (file)
@@ -26,8 +26,6 @@ import org.slf4j.LoggerFactory;
 \r
 import java.util.List;\r
 \r
-import javax.sql.DataSource;\r
-\r
 /** Concrete class which does nothing, but subclasses may override to do\r
  *  some action on the event onRepositoryInitialized(), such as sending JDBC\r
  *  calls to the repository to add indices, etc.\r
@@ -50,7 +48,8 @@ public class InitHandler implements IInitHandler {
      * @throws Exception\r
      */\r
     @Override\r
-    public void onRepositoryInitialized(DataSource dataSource,\r
+    public void onRepositoryInitialized(String dataSourceName,\r
+               String repositoryName,\r
                ServiceBindingType sbt, \r
                List<Field> fields, \r
                List<Property> properties) throws Exception {\r
index 8e1cca0f1408be37b373e420ac3b0c6e9ad5026b..ff8a3985e883154911c3b50de2594ff10a944578 100644 (file)
@@ -54,7 +54,8 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
     final Logger logger = LoggerFactory.getLogger(ModifyFieldDatatypes.class);
 
     @Override
-    public void onRepositoryInitialized(DataSource dataSource,
+    public void onRepositoryInitialized(String dataSourceName,
+               String repositoryName,
                ServiceBindingType sbt, 
                List<Field> fields, 
                List<Property> properties) throws Exception {
@@ -66,12 +67,12 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
                     + " for repository domain " + sbt.getRepositoryDomain().trim() + "...");
         }
         try {
-            DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType();
+            DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType(dataSourceName, repositoryName);
             String datatype = "";
             for (Field field : fields) {
                 datatype = getDatatypeFromLogicalType(databaseProductType, field.getType());
                 // If the field is already of the desired datatype, skip it.
-                if (fieldHasDesiredDatatype(dataSource, databaseProductType, field, datatype)) {
+                if (fieldHasDesiredDatatype(dataSourceName, repositoryName, databaseProductType, field, datatype)) {
                     logger.trace("Field " + field.getTable() + "." + field.getCol()
                             + " is already of desired datatype " + datatype);
                     continue;
@@ -101,7 +102,7 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
                 //
                 // If this assumption is no longer valid, we might instead
                 // identify the relevant repository from the table name here.
-                rows = JDBCTools.executeUpdate(dataSource, sql);
+                rows = JDBCTools.executeUpdate(dataSourceName, repositoryName, sql);
             }
         } catch (Exception e) {
             throw e;
@@ -143,7 +144,8 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
         return datatype;
     }
 
-    private boolean fieldHasDesiredDatatype(DataSource dataSource,
+    private boolean fieldHasDesiredDatatype(String dataSourceName,
+               String repositoryName,
                DatabaseProductType databaseProductType,
             Field field, String datatype) {
         
@@ -160,16 +162,18 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
         ResultSet rs = null;
 
         try {
-            conn = JDBCTools.getConnection(dataSource);
+            conn = JDBCTools.getConnection(dataSourceName, repositoryName);
             stmt = conn.createStatement();
+            String databaseName = JDBCTools.getDatabaseName(dataSourceName, repositoryName, conn);
+            
             if (databaseProductType == DatabaseProductType.MYSQL) {
                 sql = "SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS "
-                    + "WHERE TABLE_SCHEMA = '" + JDBCTools.getDatabaseName(conn) + "'"
+                    + "WHERE TABLE_SCHEMA = '" + databaseName + "'"
                     + " AND TABLE_NAME = '" + getTableName(field) + "'"
                     + " AND COLUMN_NAME = '" + field.getCol() + "'";
             } else if (databaseProductType == DatabaseProductType.POSTGRESQL) {
                 sql = "SELECT data_type FROM information_schema.columns "
-                    + "WHERE table_catalog = '" + JDBCTools.getDatabaseName(conn) + "'"
+                    + "WHERE table_catalog = '" + databaseName + "'"
                     + " AND table_name = '" + getTableName(field) + "'"
                     + " AND column_name = '" + field.getCol() + "'";
             }
diff --git a/services/common/src/main/java/org/collectionspace/services/common/init/RunSqlScript.java b/services/common/src/main/java/org/collectionspace/services/common/init/RunSqlScript.java
new file mode 100644 (file)
index 0000000..085e45a
--- /dev/null
@@ -0,0 +1,190 @@
+/**
+ * This document is a part of the source code and related artifacts for
+ * CollectionSpace, an open source collections management system for museums and
+ * related institutions:
+ *
+ * http://www.collectionspace.org http://wiki.collectionspace.org
+ *
+ * Copyright 2009 University of California at Berkeley
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0. You may
+ * not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ *
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ */
+package org.collectionspace.services.common.init;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.util.List;
+import org.collectionspace.services.common.api.Tools;
+import org.collectionspace.services.common.storage.JDBCTools;
+import org.collectionspace.services.config.service.InitHandler.Params.Field;
+import org.collectionspace.services.config.service.InitHandler.Params.Property;
+import org.collectionspace.services.config.service.ServiceBindingType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class RunSqlScript extends InitHandler implements IInitHandler {
+
+    private final Logger logger = LoggerFactory.getLogger(RunSqlScript.class);
+    private final static String SQL_SCRIPT_NAME_PROPERTY = "sqlScriptName";
+    private final static String DATABASE_RESOURCE_DIRECTORY_NAME = "db";
+    private final static String LINE_SEPARATOR = System.getProperty("line.separator");
+    private final static String CANNOT_PERFORM_TASKS_MESSAGE =
+            "Will not be able to perform tasks within the RunSqlScript init handler.";
+
+    /**
+     * See the class javadoc for this class: it shows the syntax supported in
+     * the configuration params.
+     */
+    @Override
+    public void onRepositoryInitialized(String dataSourceName,
+               String repositoryName,
+               ServiceBindingType sbt, 
+               List<Field> fields, 
+               List<Property> properties) throws Exception {
+
+        /*
+         if (logger.isInfoEnabled() && sbt != null) {
+         logger.info("Running SQL script in " + sbt.getName()
+         + " for repository domain " + sbt.getRepositoryDomain().trim() + "...");
+         }
+         */
+
+        if (properties == null || properties.isEmpty()) {
+            logger.warn("No properties were provided to the RunSqlScript init handler.");
+            logger.warn(CANNOT_PERFORM_TASKS_MESSAGE);
+            return;
+        }
+
+        String scriptName = getSqlScriptName(properties);
+        if (Tools.isBlank(scriptName)) {
+            logger.warn("Could not get SQL script name.");
+            logger.warn(CANNOT_PERFORM_TASKS_MESSAGE);
+            return;
+        }
+
+        String scriptPath = getSqlScriptPath(dataSourceName, repositoryName, scriptName);
+        if (Tools.isBlank(scriptPath)) {
+            logger.warn("Could not get path to SQL script.");
+            logger.warn(CANNOT_PERFORM_TASKS_MESSAGE);
+            return;
+        }
+
+        String scriptContents = getSqlScriptContents(scriptPath);
+        if (Tools.isBlank(scriptContents)) {
+            logger.warn("Could not get contents of SQL script.");
+            logger.warn(CANNOT_PERFORM_TASKS_MESSAGE);
+            return;
+        }
+
+        runScript(dataSourceName, repositoryName, scriptContents, scriptPath);
+    }
+
+    private String getSqlScriptName(List<Property> properties) {
+        String scriptName = "";
+        for (Property property : properties) {
+            if (property.getKey().equals(SQL_SCRIPT_NAME_PROPERTY)) {
+                scriptName = property.getValue();
+                if (Tools.notBlank(scriptName)) {
+                    break;
+                }
+            }
+        }
+        return scriptName;
+    }
+
+    private String getSqlScriptPath(String dataSourceName, String repositoryName, String scriptName) throws Exception {
+        String scriptPath =
+                DATABASE_RESOURCE_DIRECTORY_NAME
+                + "/"
+                + JDBCTools.getDatabaseProductType(dataSourceName, repositoryName)
+                + "/"
+                + scriptName;
+        return scriptPath;
+    }
+
+    private String getSqlScriptContents(String scriptPath) throws Exception {
+        return getStringFromResource(scriptPath);
+    }
+
+    /**
+     * Returns a string representation of a resource available to the current
+     * class.
+     *
+     * @param resourcePath a path to the resource.
+     * @return a string representation of the resource. Returns null if the
+     * resource cannot be read, or if it cannot be successfully represented as a
+     * string.
+     */
+    private String getStringFromResource(String resourcePath) {
+        String str = "";
+        ClassLoader classloader = getClass().getClassLoader();
+        if (classloader == null) {
+            return str;
+        }
+        if (logger.isTraceEnabled()) {
+            URL resourceurl = classloader.getResource(resourcePath);
+            logger.trace("URL=" + resourceurl.toString());
+        }
+        InputStream instream = classloader.getResourceAsStream(resourcePath);
+        if (instream == null) {
+            logger.warn("Could not read resource from path " + resourcePath);
+            return null;
+        }
+        try {
+            str = stringFromInputStream(instream);
+        } catch (IOException ioe) {
+            logger.warn("Could not create string from stream: ", ioe);
+            return null;
+        }
+        return str;
+    }
+
+    /**
+     * Returns a string representation of the contents of an input stream.
+     *
+     * @param instream an input stream.
+     * @return a string representation of the contents of the input stream.
+     * @throws an IOException if an error occurs when reading the input stream.
+     */
+    private String stringFromInputStream(InputStream instream) throws IOException {
+        StringBuilder sb = new StringBuilder("");
+        if (instream == null) {
+            logger.warn("Input stream is null.");
+            return sb.toString();
+        }
+        BufferedReader bufreader = new BufferedReader(new InputStreamReader(instream));
+        String line = "";
+        while ((line = bufreader.readLine()) != null) {
+            sb.append(line);
+            sb.append(LINE_SEPARATOR);
+        }
+        return sb.toString();
+    }
+
+    private void runScript(String dataSourceName, String repositoryName, String scriptContents, String scriptPath) {
+        int rows = 0;
+        try {
+            rows = JDBCTools.executeUpdate(dataSourceName, repositoryName, scriptContents);
+        } catch (Throwable e) {
+            logger.warn("Running SQL script " + scriptPath + " resulted in error: ", e.getMessage());
+            rows = -1;
+        }
+        // FIXME: Verify which row values represent failure; should there always
+        // be one and only one row returned in a successful response from executeUpdate?
+        if (rows < 0) {
+            logger.warn("Running SQL script " + scriptPath + " failed to return expected results.");
+        } else {
+            if (logger.isInfoEnabled()) {
+                logger.info("Successfully ran SQL script: " + scriptPath);
+            }
+        }
+    }
+}
index 86be6ed1cce31938a97813534a395919c5748a25..d4b703de79ff6ee61419c5ccb41f1294364bd4f6 100644 (file)
@@ -27,6 +27,7 @@
 package org.collectionspace.services.common.query;\r
 \r
 import org.collectionspace.services.client.IQueryManager;\r
+import org.collectionspace.services.common.context.ServiceContext;\r
 import org.collectionspace.services.common.query.nuxeo.QueryManagerNuxeoImpl;\r
 \r
 public class QueryManager {\r
@@ -59,8 +60,12 @@ public class QueryManager {
         * \r
         * @return the string\r
         */\r
-       static public String createWhereClauseForPartialMatch(String field, String partialTerm) {\r
-               return queryManager.createWhereClauseForPartialMatch(field, partialTerm);\r
+       static public String createWhereClauseForPartialMatch(ServiceContext ctx,\r
+                       String field,\r
+                       String partialTerm) throws Exception {\r
+               String repositoryName = ctx.getRepositoryName();\r
+               return queryManager.createWhereClauseForPartialMatch(queryManager.getDatasourceName(),\r
+                               repositoryName, field, partialTerm);\r
        }\r
        \r
        /**\r
index 61715b354438755b1937e7ce80c17210353e0556..ba2b52362c0f54ed3fb5b45634591c7d1b36c1ba 100644 (file)
@@ -44,7 +44,6 @@ import org.collectionspace.services.nuxeo.client.java.NuxeoClientEmbedded;
 import org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded;\r
 \r
 import org.collectionspace.services.client.IQueryManager;\r
-import org.collectionspace.services.common.invocable.Invocable;\r
 import org.collectionspace.services.common.invocable.InvocableUtils;\r
 import org.collectionspace.services.common.storage.DatabaseProductType;\r
 import org.collectionspace.services.common.storage.JDBCTools;\r
@@ -70,10 +69,10 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
        private static Pattern kwdSearchProblemChars = Pattern.compile("[\\:\\(\\)\\*\\%\\.]");\r
        private static Pattern kwdSearchHyphen = Pattern.compile(" - ");\r
 \r
-       private static String getLikeForm() {\r
+       private static String getLikeForm(String dataSourceName, String repositoryName) {\r
                if (SEARCH_LIKE_FORM == null) {\r
                        try {\r
-                               DatabaseProductType type = JDBCTools.getDatabaseProductType();\r
+                               DatabaseProductType type = JDBCTools.getDatabaseProductType(dataSourceName, repositoryName);\r
                                if (type == DatabaseProductType.MYSQL) {\r
                                        SEARCH_LIKE_FORM = IQueryManager.SEARCH_LIKE;\r
                                } else if (type == DatabaseProductType.POSTGRESQL) {\r
@@ -86,6 +85,11 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
                return SEARCH_LIKE_FORM;\r
        }\r
 \r
+       @Override\r
+       public String getDatasourceName() {\r
+               return JDBCTools.NUXEO_DATASOURCE_NAME;\r
+       }\r
+       \r
        // TODO: This is currently just an example fixed query. This should\r
        // eventually be\r
        // removed or replaced with a more generic method.\r
@@ -256,7 +260,9 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
        // Both these require using JDBC, since we cannot get to the fulltext table\r
        // in NXQL\r
        @Override\r
-       public String createWhereClauseForPartialMatch(String field,\r
+       public String createWhereClauseForPartialMatch(String dataSourceName,\r
+                       String repositoryName,\r
+                       String field,\r
                        String partialTerm) {\r
                String trimmed = (partialTerm == null) ? "" : partialTerm.trim();\r
                if (trimmed.isEmpty()) {\r
@@ -265,7 +271,7 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
                if (field == null || field.isEmpty()) {\r
                        throw new RuntimeException("No match field specified.");\r
                }\r
-               String ptClause = field + getLikeForm() + "'%"\r
+               String ptClause = field + getLikeForm(dataSourceName, repositoryName) + "'%"\r
                                + unescapedSingleQuote.matcher(trimmed).replaceAll("\\\\'")\r
                                + "%'";\r
                return ptClause;\r
index c3d815a8e3f94cd77014cdc796393322f7786e40..c9967c00f5971ad20dbe9cca71ec8e9f4236b424 100644 (file)
@@ -31,6 +31,7 @@ import org.collectionspace.services.common.document.DocumentException;
 import org.collectionspace.services.common.document.DocumentNotFoundException;
 import org.collectionspace.services.common.document.DocumentWrapper;
 import org.collectionspace.services.common.storage.StorageClient;
+import org.collectionspace.services.config.tenant.RepositoryDomainType;
 import org.nuxeo.ecm.core.api.ClientException;
 import org.nuxeo.ecm.core.api.DocumentModel;
 import org.nuxeo.ecm.core.api.DocumentModelList;
@@ -54,7 +55,7 @@ public interface RepositoryClient<IT, OT> extends StorageClient {
      * @return id of newly created domain space
      * @throws java.lang.Exception
      */
-    public String createDomain(String domainName) throws Exception;
+    public String createDomain(RepositoryDomainType repositoryDomain) throws Exception;
 
     /**
      * getDomainSpaceId gets id of the given domain
@@ -62,7 +63,7 @@ public interface RepositoryClient<IT, OT> extends StorageClient {
      * @return
      * @throws Exception
      */
-    public String getDomainId(String domainName) throws Exception;
+    public String getDomainId(RepositoryDomainType repositoryDomain) throws Exception;
 
     /**
      * retrieveWorkspaceIds retrieve workspace ids for given domain
@@ -70,7 +71,7 @@ public interface RepositoryClient<IT, OT> extends StorageClient {
      * @return Hashtable<workspaceName, workspaceId>
      * @throws Exception
      */
-    public Hashtable<String, String> retrieveWorkspaceIds(String domainName) throws Exception;
+    public Hashtable<String, String> retrieveWorkspaceIds(RepositoryDomainType repositoryDomain) throws Exception;
 
     /**
      * createWorkspace creates a workspace in default repository under given domain
@@ -79,7 +80,7 @@ public interface RepositoryClient<IT, OT> extends StorageClient {
      * @return id of newly created workspace
      * @throws java.lang.Exception
      */
-    public String createWorkspace(String tenantDomain, String workspaceName) throws Exception;
+    public String createWorkspace(RepositoryDomainType repositoryDomain, String workspaceName) throws Exception;
 
     /**
      * getWorkspaceId gets an id of given workspace in default repository under given domain
index ab5909642c41e1d3bf83bcdf24c5659a2d3cb736..614ab3a7b249e8f209f596830e06c044556441aa 100644 (file)
@@ -17,7 +17,6 @@
  */\r
 package org.collectionspace.services.common.storage;\r
 \r
-import org.collectionspace.services.common.ServiceMain;\r
 import org.collectionspace.services.common.api.Tools;\r
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
@@ -25,11 +24,9 @@ import org.slf4j.LoggerFactory;
 import javax.naming.Context;\r
 import javax.naming.InitialContext;\r
 import javax.naming.NamingException;\r
-import javax.security.auth.login.LoginException;\r
 import javax.sql.DataSource;\r
 import java.sql.DatabaseMetaData;\r
 import java.sql.Connection;\r
-import java.sql.ResultSet;\r
 import java.sql.SQLException;\r
 import java.sql.Statement;\r
 import java.util.HashMap;\r
@@ -41,88 +38,122 @@ import java.util.HashMap;
  */\r
 public class JDBCTools {\r
        public static HashMap<String, DataSource> cachedDataSources = new HashMap<String, DataSource>();\r
-    public static String CSPACE_REPOSITORY_NAME = "CspaceDS";\r
-    public static String NUXEO_REPOSITORY_NAME = "NuxeoDS";\r
+    public static String CSPACE_DATASOURCE_NAME = "CspaceDS";\r
+    public static String NUXEO_DATASOURCE_NAME = "NuxeoDS";\r
+    // Default database names\r
+    public static String DEFAULT_CSPACE_DATABASE_NAME = "cspace";\r
+    public static String DEFAULT_NUXEO_REPOSITORY_NAME = "default";\r
+    public static String DEFAULT_NUXEO_DATABASE_NAME = "nuxeo";\r
     //\r
     // Private constants\r
     //\r
-    private static String DEFAULT_REPOSITORY_NAME = NUXEO_REPOSITORY_NAME;\r
     private static String DBProductName = null;\r
-    private static DatabaseProductType DBProductType = DatabaseProductType.UNRECOGNIZED;\r
 \r
     //todo: make sure this will get instantiated in the right order\r
     final static Logger logger = LoggerFactory.getLogger(JDBCTools.class);\r
+       private static final CharSequence URL_DATABASE_NAME = "${DatabaseName}";\r
     private static String JDBC_URL_DATABASE_SEPARATOR = "\\/";\r
         \r
-    public static DataSource getDataSource(String repositoryName) throws NamingException {\r
+    public static DataSource getDataSource(String dataSourceName) throws NamingException {\r
        DataSource result = null;\r
        \r
        //\r
        // First, see if we already have this DataSource instance cached\r
        //\r
-       result = cachedDataSources.get(repositoryName);\r
+       result = cachedDataSources.get(dataSourceName);\r
        if (result == null) {           \r
                InitialContext ctx = new InitialContext();\r
                Context envCtx = null;\r
 \r
                if (logger.isDebugEnabled() == true) {\r
-                       logger.debug("Looking up DataSource instance in JNDI with name: " + repositoryName);\r
+                       logger.debug("Looking up DataSource instance in JNDI with name: " + dataSourceName);\r
                }\r
                        \r
                try {\r
                        envCtx = (Context) ctx.lookup("java:comp/env");\r
-                       DataSource ds = (DataSource) envCtx.lookup("jdbc/" + repositoryName);\r
+                       DataSource ds = (DataSource) envCtx.lookup("jdbc/" + dataSourceName);\r
                        if (ds == null) {\r
-                           throw new IllegalArgumentException("DataSource instance not found: " + repositoryName);\r
+                           throw new IllegalArgumentException("DataSource instance not found: " + dataSourceName);\r
                        } else {\r
                                result = ds;\r
                                // now cache this DataSource instance for future references\r
-                               cachedDataSources.put(repositoryName, result);\r
+                               cachedDataSources.put(dataSourceName, result);\r
                        }\r
                } finally {\r
                    if (ctx != null) {\r
                        try {\r
                            ctx.close();\r
                        } catch (Exception e) {\r
-                               logger.error("Error getting DataSource for: " + repositoryName, e);\r
+                               logger.error("Error getting DataSource for: " + dataSourceName, e);\r
                        }\r
                    }\r
                    if (envCtx != null) {\r
                        try {\r
                                envCtx.close();\r
                        } catch (Exception e) {\r
-                               logger.error("Error getting DataSource for: " + repositoryName, e);\r
+                               logger.error("Error getting DataSource for: " + dataSourceName, e);\r
                        }\r
                    }\r
                }\r
        }\r
        \r
+       if (result != null) {\r
+//             DataSource resultClone = result.\r
+       }\r
+       \r
        return result;\r
     }\r
     \r
-    /*\r
-     * This is a wrapper around DataSource's getConnectionMethod -mainly exists modularize all connection related code to JDBCTool class.\r
-     */\r
-    public static Connection getConnection(DataSource dataSource) throws SQLException {\r
-       Connection result = null;\r
-       result = dataSource.getConnection();\r
-       return result;\r
-    }\r
-\r
-    public static Connection getConnection(String repositoryName) throws NamingException, SQLException {\r
+    public static Connection getConnection(String dataSourceName, String repositoryName) throws NamingException, SQLException {\r
        Connection result = null;\r
        \r
-       if (Tools.isEmpty(repositoryName)) {\r
-            repositoryName = getDefaultRepositoryName();\r
-            if (logger.isWarnEnabled() == true) {\r
-               logger.warn("getConnection() method was called with an empty or null repository name.  Using " + repositoryName + " instead.");\r
-            }\r
+       if (Tools.isEmpty(dataSourceName) || Tools.isEmpty(repositoryName)) {\r
+               String errMsg = String.format(\r
+                               "The getConnection() method was called with an empty or null repository name = '%s' and/or data source name = '%s'.", \r
+                               dataSourceName, repositoryName);\r
+            logger.error(errMsg);\r
+            throw new NamingException(errMsg);\r
         }\r
+       \r
+       // FIXME: REM - We can rid ourselves of this special case by using the DEFAULT_NUXEO_DATABASE_NAME as the default\r
+       // value for the "repositoryName" attribute in the tenant bindings XSD (XML Schema) definition.\r
+       //\r
+       // *Special Case* - Nuxeo's default repository name is "default" but the database is called "nuxeo"\r
+       //\r
+       if (dataSourceName.equals(JDBCTools.NUXEO_DATASOURCE_NAME) &&\r
+                       repositoryName.equals(JDBCTools.DEFAULT_NUXEO_REPOSITORY_NAME)) {\r
+               repositoryName = DEFAULT_NUXEO_DATABASE_NAME;\r
+       }\r
         \r
-        DataSource ds = getDataSource(repositoryName);\r
-        Connection conn = getConnection(ds);\r
-        result = conn;\r
-        \r
+       /*\r
+        * We synch this block as a workaround to not have separate DataSource instances for\r
+        * each Nuxeo repo/DB.  Ideally, we should replace the need for this synch block by\r
+        * registering a separate DataSource for each repo/db at init/start-up time.\r
+        * \r
+        * We need to sync because we're changing the URL of the datasource inorder to get the correct\r
+        * connection.  The synch prevents different threads from getting the incorrect connection -i.e., one pointing\r
+        * to the wrong URL.\r
+        */\r
+       Connection conn = null;\r
+       synchronized (JDBCTools.class) {\r
+               org.apache.tomcat.dbcp.dbcp.BasicDataSource dataSource = \r
+                               (org.apache.tomcat.dbcp.dbcp.BasicDataSource)getDataSource(dataSourceName);\r
+               // Get the template URL value from the JNDI datasource and substitute the databaseName\r
+               String urlTemplate = dataSource.getUrl();\r
+               String connectionUrl = urlTemplate.replace(URL_DATABASE_NAME, repositoryName);\r
+               dataSource.setUrl(connectionUrl);\r
+               \r
+               try {\r
+                       conn = dataSource.getConnection();\r
+                       result = conn;\r
+                       if (logger.isTraceEnabled() == true && conn != null) {\r
+                               logger.trace(String.format("Connection made to repository = '%s' using datasource = '%s'", repositoryName, dataSourceName));\r
+                       }\r
+               } finally {\r
+                       dataSource.setUrl(urlTemplate); // Reset the data source URL value back to the template value\r
+               }\r
+       }\r
+               \r
         return result;\r
     }\r
 \r
@@ -158,11 +189,11 @@ public class JDBCTools {
         }\r
     } */\r
 \r
-    public static int executeUpdate(DataSource dataSource, String sql) throws Exception {\r
+    public static int executeUpdate(String dataSourceName, String repositoryName, String sql) throws Exception {\r
         Connection conn = null;\r
         Statement stmt = null;\r
         try {\r
-            conn = getConnection(dataSource);\r
+            conn = getConnection(dataSourceName, repositoryName);\r
             stmt = conn.createStatement();\r
             int rows = stmt.executeUpdate(sql);\r
             stmt.close();\r
@@ -209,12 +240,16 @@ public class JDBCTools {
      * @return the database product name\r
      */\r
     public static String getDatabaseProductName() {\r
-       if(DBProductName==null) {\r
+       if (DBProductName == null) {\r
                Connection conn = null;\r
                try {\r
-                   conn = getConnection(getDefaultRepositoryName()); //FIXME: REM - getDefaultRepositoryName returns the Nuxeo repo name -we should be using the "cspace" repo name\r
+                   conn = getConnection(CSPACE_DATASOURCE_NAME, DEFAULT_CSPACE_DATABASE_NAME);\r
                    DBProductName = conn.getMetaData().getDatabaseProductName();\r
                } catch (Exception e) {\r
+                       if (logger.isTraceEnabled() == true) {\r
+                               logger.trace(String.format("Could not open a connection. DataSource='%s' DB='%s'.",\r
+                                               CSPACE_DATASOURCE_NAME, DEFAULT_CSPACE_DATABASE_NAME));\r
+                       }\r
                } finally {\r
                    try {\r
                        if (conn != null) {\r
@@ -226,6 +261,7 @@ public class JDBCTools {
                    }\r
                }\r
        }\r
+       \r
         return DBProductName;\r
     }\r
 \r
@@ -236,23 +272,21 @@ public class JDBCTools {
      * @return an enumerated value identifying the database product type\r
      * @throws Exception \r
      */\r
-    public static DatabaseProductType getDatabaseProductType() throws Exception {\r
-       if(DBProductType == DatabaseProductType.UNRECOGNIZED) {\r
-               String productName = getDatabaseProductName();\r
-               if (productName.matches("(?i).*mysql.*")) {\r
-                       DBProductType = DatabaseProductType.MYSQL;\r
-               } else if (productName.matches("(?i).*postgresql.*")) {\r
-                       DBProductType = DatabaseProductType.POSTGRESQL;\r
-               } else {\r
-                   throw new Exception("Unrecognized database system " \r
-                                                       + productName);\r
-               }\r
-       }\r
-        return DBProductType;\r
-    }\r
-\r
-    private static String getDefaultRepositoryName() {\r
-        return DEFAULT_REPOSITORY_NAME;\r
+    public static DatabaseProductType getDatabaseProductType(String dataSourceName,\r
+               String repositoryName) throws Exception {\r
+       DatabaseProductType result = DatabaseProductType.UNRECOGNIZED;\r
+       \r
+        String productName = getDatabaseProductName();\r
+        if (productName.matches("(?i).*mysql.*")) {\r
+               result = DatabaseProductType.MYSQL;\r
+        } else if (productName.matches("(?i).*postgresql.*")) {\r
+               result = DatabaseProductType.POSTGRESQL;\r
+        } else {\r
+            throw new Exception("Unrecognized database system " \r
+                                               + productName);\r
+        }\r
+       \r
+        return result;\r
     }\r
     \r
     /**\r
@@ -262,26 +296,29 @@ public class JDBCTools {
      * @return the catalog name.\r
      * @throws SQLException \r
      */\r
-    public static String getDatabaseName(Connection conn) throws Exception {\r
-        String databaseName = "";\r
-        if (conn == null) {\r
-            return databaseName;\r
-        }\r
-        DatabaseMetaData metadata = conn.getMetaData();\r
-        String urlStr = metadata.getURL();\r
+    public static String getDatabaseName(String dataSourceName,\r
+               String repositoryName,\r
+               Connection conn) throws Exception {\r
+        String databaseName = null;\r
         \r
-        // Format of the PostgreSQL JDBC URL:\r
-        // http://jdbc.postgresql.org/documentation/80/connect.html\r
-        if (getDatabaseProductType() == DatabaseProductType.POSTGRESQL) {\r
-            String tokens[] = urlStr.split(JDBC_URL_DATABASE_SEPARATOR);\r
-            databaseName = tokens[tokens.length - 1];\r
-            // Format of the MySQL JDBC URL:\r
-            // http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-configuration-properties.html\r
-            // FIXME: the last token could contain optional parameters, not accounted for here.\r
-        } else if (getDatabaseProductType() == DatabaseProductType.MYSQL) {\r
-            String tokens[] = urlStr.split(JDBC_URL_DATABASE_SEPARATOR);\r
-            databaseName = tokens[tokens.length - 1];\r
+        if (conn != null) {\r
+               DatabaseMetaData metadata = conn.getMetaData();\r
+               String urlStr = metadata.getURL();\r
+               \r
+               // Format of the PostgreSQL JDBC URL:\r
+               // http://jdbc.postgresql.org/documentation/80/connect.html\r
+               if (getDatabaseProductType(dataSourceName, repositoryName) == DatabaseProductType.POSTGRESQL) {\r
+                   String tokens[] = urlStr.split(JDBC_URL_DATABASE_SEPARATOR);\r
+                   databaseName = tokens[tokens.length - 1];\r
+                   // Format of the MySQL JDBC URL:\r
+                   // http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-configuration-properties.html\r
+                   // FIXME: the last token could contain optional parameters, not accounted for here.\r
+               } else if (getDatabaseProductType(dataSourceName, repositoryName) == DatabaseProductType.MYSQL) {\r
+                   String tokens[] = urlStr.split(JDBC_URL_DATABASE_SEPARATOR);\r
+                   databaseName = tokens[tokens.length - 1];\r
+               }\r
         }\r
+        \r
         return databaseName;\r
     }\r
 \r
index e31f25af451b085b68753e714fc241cff0ed5013..c2672e8b75cd3f74b1cf37025f30fd82262a92ec 100644 (file)
@@ -32,6 +32,7 @@ import javax.transaction.TransactionManager;
 \r
 import org.apache.commons.logging.Log;\r
 import org.apache.commons.logging.LogFactory;\r
+import org.collectionspace.services.config.tenant.RepositoryDomainType;\r
 import org.jboss.remoting.InvokerLocator;\r
 import org.nuxeo.common.collections.ListenerList;\r
 import org.nuxeo.ecm.core.api.repository.Repository;\r
@@ -41,6 +42,7 @@ import org.nuxeo.ecm.core.api.repository.RepositoryManager;
 import org.nuxeo.ecm.core.client.ConnectionListener;\r
 import org.nuxeo.ecm.core.client.DefaultLoginHandler;\r
 import org.nuxeo.ecm.core.client.LoginHandler;\r
+import org.nuxeo.ecm.core.repository.RepositoryDescriptor;\r
 import org.nuxeo.ecm.core.schema.SchemaManager;\r
 import org.nuxeo.ecm.core.schema.SchemaManagerImpl;\r
 import org.nuxeo.ecm.core.schema.TypeProvider;\r
@@ -376,15 +378,39 @@ public final class NuxeoClientEmbedded {
         return getRepositoryManager().getRepository(name);\r
     }\r
 \r
+    /*\r
+     * Open a Nuxeo repo session using the passed in repoDomain and use the default tx timeout period\r
+     */\r
+    public RepositoryInstance openRepository(RepositoryDomainType repoDomain) throws Exception {\r
+        return openRepository(repoDomain.getRepositoryName(), -1);\r
+    }\r
+    \r
+    /*\r
+     * Open a Nuxeo repo session using the passed in repoDomain and use the default tx timeout period\r
+     */\r
+    public RepositoryInstance openRepository(String repoName) throws Exception {\r
+        return openRepository(repoName, -1);\r
+    }    \r
+\r
+    /*\r
+     * Open a Nuxeo repo session using the default repo with the specified (passed in) tx timeout period\r
+     */\r
+    @Deprecated\r
     public RepositoryInstance openRepository(int timeoutSeconds) throws Exception {\r
         return openRepository(null, timeoutSeconds);\r
     }\r
 \r
+    /*\r
+     * Open a Nuxeo repo session using the default repo with the default tx timeout period\r
+     */\r
+    @Deprecated\r
     public RepositoryInstance openRepository() throws Exception {\r
-        return openRepository(-1 /*default timeout period*/);\r
+        return openRepository(null, -1 /*default timeout period*/);\r
     }\r
 \r
-    public RepositoryInstance openRepository(String name, int timeoutSeconds) throws Exception {\r
+    public RepositoryInstance openRepository(String repoName, int timeoutSeconds) throws Exception {\r
+       RepositoryInstance result = null;\r
+       \r
        if (timeoutSeconds > 0) {\r
                TransactionManager transactionMgr = TransactionHelper.lookupTransactionManager();\r
                transactionMgr.setTransactionTimeout(timeoutSeconds);\r
@@ -400,20 +426,27 @@ public final class NuxeoClientEmbedded {
        }\r
        \r
         Repository repository = null;\r
-        if (name != null) {\r
-               repository = getRepositoryManager().getRepository(name);\r
+        if (repoName != null) {\r
+               repository = getRepositoryManager().getRepository(repoName);\r
         } else {\r
-               repository = getRepositoryManager().getDefaultRepository();\r
+               repository = getRepositoryManager().getDefaultRepository(); // Add a log info statement here stating that since no repo name was given we'll use the default repo instead\r
         }\r
-        RepositoryInstance repo = newRepositoryInstance(repository);\r
-       String key = repo.getSessionId();\r
-        repositoryInstances.put(key, repo);\r
-        if (logger.isTraceEnabled()) {\r
-               logger.trace("Added a new repository instance to our repo list.  Current count is now: "\r
-                               + repositoryInstances.size());\r
+        \r
+        if (repository != null) {\r
+               result = newRepositoryInstance(repository);\r
+               String key = result.getSessionId();\r
+               repositoryInstances.put(key, result);\r
+               if (logger.isTraceEnabled()) {\r
+                       logger.trace("Added a new repository instance to our repo list.  Current count is now: "\r
+                                       + repositoryInstances.size());\r
+               }\r
+        } else {\r
+               String errMsg = String.format("Could not open a session to the Nuxeo repository='%s'", repoName);\r
+               logger.error(errMsg);\r
+               throw new Exception(errMsg);\r
         }\r
 \r
-        return repo;\r
+        return result;\r
     }\r
 \r
     public void releaseRepository(RepositoryInstance repo) throws Exception {\r
@@ -449,7 +482,7 @@ public final class NuxeoClientEmbedded {
         if (cl == null) {\r
             cl = NuxeoClientEmbedded.class.getClassLoader();\r
         }\r
-        return new RepositoryInstanceHandler(repository).getProxy();\r
+        return new RepositoryInstanceHandler(repository).getProxy(); // Why a proxy here?\r
     }\r
 \r
     public void addConnectionListener(ConnectionListener listener) {\r
index bda350a7981737c6d04370f87c2dcfe79e18299f..694ab3f937fa73816322de214efbc9d00de5adc1 100644 (file)
@@ -2,17 +2,28 @@ package org.collectionspace.services.nuxeo.client.java;
 \r
 import java.io.File;\r
 import java.io.IOException;\r
+import java.util.Collection;\r
 import java.util.Hashtable;\r
 import java.util.Iterator;\r
 \r
+import javax.naming.InitialContext;\r
+import javax.naming.NamingException;\r
 import javax.servlet.ServletContext;\r
 \r
 import org.collectionspace.services.config.RepositoryClientConfigType;\r
+import org.collectionspace.services.config.tenant.RepositoryDomainType;\r
 import org.collectionspace.services.nuxeo.util.NuxeoUtils;\r
+import org.nuxeo.ecm.core.NXCore;\r
 import org.nuxeo.ecm.core.api.DocumentModel;\r
 import org.nuxeo.ecm.core.api.DocumentModelList;\r
 import org.nuxeo.ecm.core.api.repository.RepositoryInstance;\r
+import org.nuxeo.ecm.core.model.Repository;\r
 import org.nuxeo.osgi.application.FrameworkBootstrap;\r
+import org.nuxeo.ecm.core.repository.RepositoryDescriptor;\r
+import org.nuxeo.ecm.core.repository.RepositoryFactory;\r
+import org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl;\r
+import org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl;\r
+\r
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
 \r
@@ -174,6 +185,30 @@ public class NuxeoConnectorEmbedded {
                        }\r
                }\r
        }\r
+       \r
+       public String getDatabaseName(String repoName) {\r
+               String result = null;\r
+               \r
+               try {\r
+                       this.getRepositoryDescriptor(repoName);\r
+               } catch (Exception e1) {\r
+                       // TODO Auto-generated catch block\r
+                       e1.printStackTrace();\r
+               }\r
+               \r
+               Repository repository = null;\r
+               try {\r
+                       repository = this.lookupRepository(repoName);\r
+               } catch (Exception e) {\r
+                       // TODO Auto-generated catch block\r
+                       e.printStackTrace();\r
+               }\r
+               ConnectionFactoryImpl connectionFactory = (ConnectionFactoryImpl)repository;\r
+               ManagedConnectionFactoryImpl managedConnectionFactory = connectionFactory.getManagedConnectionFactory();\r
+               String serverUrl = managedConnectionFactory.getServerURL();\r
+               \r
+               return result;\r
+       }\r
 \r
        /**\r
         * releaseRepositorySession releases given repository session\r
@@ -198,14 +233,51 @@ public class NuxeoConnectorEmbedded {
         * @return RepositoryInstance\r
         * @throws java.lang.Exception\r
         */\r
-       public RepositoryInstance getRepositorySession() throws Exception {\r
-               RepositoryInstance repoSession = getClient().openRepository();\r
-               if (logger.isDebugEnabled()) {\r
+       public RepositoryInstance getRepositorySession(RepositoryDomainType repoDomain) throws Exception {\r
+               RepositoryInstance repoSession = getClient().openRepository(repoDomain);\r
+               if (logger.isDebugEnabled() && repoSession != null) {\r
                        logger.debug("getRepositorySession() opened repository session");\r
+                       String repoName = repoDomain.getRepositoryName();\r
+                       String databaseName = this.getDatabaseName(repoName); // For debugging purposes only\r
                }\r
                return repoSession;\r
        }\r
 \r
+    public Repository lookupRepository(String name) throws Exception {\r
+        Repository repo;\r
+        try {\r
+            // needed by glassfish\r
+            repo = (Repository) new InitialContext().lookup("NXRepository/"\r
+                    + name);\r
+        } catch (NamingException e) {\r
+            try {\r
+                // needed by jboss\r
+                repo = (Repository) new InitialContext().lookup("java:NXRepository/"\r
+                        + name);\r
+            } catch (NamingException ee) {\r
+                repo = (Repository) NXCore.getRepositoryService().getRepositoryManager().getRepository(\r
+                        name);\r
+            }\r
+        }\r
+        if (repo == null) {\r
+            throw new IllegalArgumentException("Repository not found: " + name);\r
+        }\r
+        return repo;\r
+    }\r
+    \r
+    public RepositoryDescriptor getRepositoryDescriptor(String name) throws Exception {\r
+       RepositoryDescriptor repo = null;\r
+\r
+        Iterable<RepositoryDescriptor> descriptorsList = NXCore.getRepositoryService().getRepositoryManager().getDescriptors();\r
+        for (RepositoryDescriptor descriptor : descriptorsList) {\r
+               String homeDir = descriptor.getHomeDirectory();\r
+               String config = descriptor.getConfigurationFile();\r
+               RepositoryFactory factor = descriptor.getFactory();\r
+        }\r
+\r
+        return repo;\r
+    }\r
+       \r
        /**\r
         * getClient get Nuxeo client for accessing Nuxeo services remotely using\r
         * Nuxeo Java (EJB) Remote APIS\r
@@ -250,32 +322,30 @@ public class NuxeoConnectorEmbedded {
        /**\r
         * retrieveWorkspaceIds retrieves all workspace ids from default repository\r
         * \r
-        * @param tenantDomain\r
-        *            domain representing tenant\r
+        * @param repoDomain\r
+        *            a repository domain for a given tenant - see the tenant bindings XML file for details\r
         * @return\r
         * @throws java.lang.Exception\r
         */\r
-       public Hashtable<String, String> retrieveWorkspaceIds(String tenantDomain)\r
+       public Hashtable<String, String> retrieveWorkspaceIds(RepositoryDomainType repoDomain)\r
                        throws Exception {\r
                RepositoryInstance repoSession = null;\r
                Hashtable<String, String> workspaceIds = new Hashtable<String, String>();\r
                try {\r
-                       repoSession = getRepositorySession();\r
+                       repoSession = getRepositorySession(repoDomain);\r
                        DocumentModel rootDoc = repoSession.getRootDocument();\r
-                       DocumentModelList rootChildrenList = repoSession\r
-                                       .getChildren(rootDoc.getRef());\r
+                       DocumentModelList rootChildrenList = repoSession.getChildren(rootDoc.getRef());\r
                        Iterator<DocumentModel> diter = rootChildrenList.iterator();\r
                        while (diter.hasNext()) {\r
                                DocumentModel domain = diter.next();\r
-                               String domainPath = "/" + tenantDomain;\r
+                               String domainPath = "/" + repoDomain.getStorageName();\r
                                if (!domain.getPathAsString().equalsIgnoreCase(domainPath)) {\r
-                                       continue;\r
+                                       continue; // If it's not our domain folder/directory then skip it\r
                                }\r
                                if (logger.isDebugEnabled()) {\r
                                        logger.debug("domain=" + domain.toString());\r
                                }\r
-                               DocumentModelList domainChildrenList = repoSession\r
-                                               .getChildren(domain.getRef());\r
+                               DocumentModelList domainChildrenList = repoSession.getChildren(domain.getRef());\r
                                Iterator<DocumentModel> witer = domainChildrenList.iterator();\r
                                while (witer.hasNext()) {\r
                                        DocumentModel childNode = witer.next();\r
index 628bf3213fbf8e61bd22253ab975f7ae315f9ce2..10f39f50b2a6861e5cfaab505a1d18f196b1f723 100644 (file)
@@ -48,6 +48,7 @@ import org.collectionspace.services.common.document.DocumentHandler.Action;
 import org.collectionspace.services.common.document.DocumentWrapper;
 import org.collectionspace.services.common.document.DocumentWrapperImpl;
 import org.collectionspace.services.common.document.TransactionException;
+import org.collectionspace.services.config.tenant.RepositoryDomainType;
 
 import org.nuxeo.common.utils.IdUtils;
 import org.nuxeo.ecm.core.api.ClientException;
@@ -1194,19 +1195,24 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
     }
 
     @Override
-    public Hashtable<String, String> retrieveWorkspaceIds(String domainName) throws Exception {
-        return NuxeoConnectorEmbedded.getInstance().retrieveWorkspaceIds(domainName);
+    public Hashtable<String, String> retrieveWorkspaceIds(RepositoryDomainType repoDomain) throws Exception {
+        return NuxeoConnectorEmbedded.getInstance().retrieveWorkspaceIds(repoDomain);
     }
 
     @Override
-    public String createDomain(String domainName) throws Exception {
+    public String createDomain(RepositoryDomainType repositoryDomain) throws Exception {
         RepositoryInstance repoSession = null;
         String domainId = null;
         try {
+               //
+               // Open a connection to the domain's repo/db
+               //
+               String repoName = repositoryDomain.getRepositoryName();
+            repoSession = getRepositorySession(repoName); // domainName=storageName=repoName=databaseName
                //
                // First create the top-level domain directory
                //
-            repoSession = getRepositorySession(null);
+               String domainName = repositoryDomain.getStorageName();
             DocumentRef parentDocRef = new PathRef("/");
             DocumentModel parentDoc = repoSession.getDocument(parentDocRef);
             DocumentModel domainDoc = repoSession.createDocumentModel(parentDoc.getPathAsString(),
@@ -1238,7 +1244,7 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
             }
         } catch (Exception e) {
             if (logger.isDebugEnabled()) {
-                logger.debug("Could not create tenant domain name=" + domainName + " caught exception ", e);
+                logger.debug("Could not create tenant domain name=" + repositoryDomain.getStorageName() + " caught exception ", e);
             }
             throw e;
         } finally {
@@ -1251,20 +1257,21 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
     }
 
     @Override
-    public String getDomainId(String domainName) throws Exception {
+    public String getDomainId(RepositoryDomainType repositoryDomain) throws Exception {
         String domainId = null;
         RepositoryInstance repoSession = null;
         
-        if (domainName != null && !domainName.isEmpty()) {
+        String repoName = repositoryDomain.getRepositoryName();
+        String domainStorageName = repositoryDomain.getStorageName();
+        if (domainStorageName != null && !domainStorageName.isEmpty()) {
                try {
-                   repoSession = getRepositorySession(null);
-                   DocumentRef docRef = new PathRef(
-                           "/" + domainName);
+                   repoSession = getRepositorySession(repoName);
+                   DocumentRef docRef = new PathRef("/" + domainStorageName);
                    DocumentModel domain = repoSession.getDocument(docRef);
                    domainId = domain.getId();
                } catch (Exception e) {
                    if (logger.isTraceEnabled()) {
-                       logger.trace("Caught exception ", e);
+                       logger.trace("Caught exception ", e);  // The document doesn't exist, this let's us know we need to create it
                    }
                    //there is no way to identify if document does not exist due to
                    //lack of typed exception for getDocument method
@@ -1312,16 +1319,18 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
      * @see org.collectionspace.services.common.repository.RepositoryClient#createWorkspace(java.lang.String, java.lang.String)
      */
     @Override
-    public String createWorkspace(String domainName, String workspaceName) throws Exception {
+    public String createWorkspace(RepositoryDomainType repositoryDomain, String workspaceName) throws Exception {
         RepositoryInstance repoSession = null;
         String workspaceId = null;
         try {
-            repoSession = getRepositorySession(null);
-            DocumentModel parentDoc = getWorkspacesRoot(repoSession, domainName);
+               String repoName = repositoryDomain.getRepositoryName();
+            repoSession = getRepositorySession(repoName);
             
+            String domainStorageName = repositoryDomain.getStorageName();
+            DocumentModel parentDoc = getWorkspacesRoot(repoSession, domainStorageName);
             if (logger.isTraceEnabled()) {
                    for (String facet : parentDoc.getFacets()) {
-                       logger.debug("Facet: " + facet);
+                       logger.trace("Facet: " + facet);
                    }
             }
             
@@ -1354,12 +1363,13 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
      * @see org.collectionspace.services.common.repository.RepositoryClient#getWorkspaceId(java.lang.String, java.lang.String)
      */
     @Override
+    @Deprecated
     public String getWorkspaceId(String tenantDomain, String workspaceName) throws Exception {
         String workspaceId = null;
         
         RepositoryInstance repoSession = null;
         try {
-            repoSession = getRepositorySession(null);
+            repoSession = getRepositorySession((ServiceContext)null);
             DocumentRef docRef = new PathRef(
                     "/" + tenantDomain
                     + "/" + NuxeoUtils.Workspaces
@@ -1382,32 +1392,47 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
         return workspaceId;
     }
 
-
+    public RepositoryInstance getRepositorySession(ServiceContext ctx) throws Exception {
+       return getRepositorySession(ctx, ctx.getRepositoryName());
+    }
+    
+    public RepositoryInstance getRepositorySession(String repoName) throws Exception {
+       return getRepositorySession(null, repoName);
+    }
+    
     /**
-     * Gets the repository session. - Package access only.
+     * Gets the repository session. - Package access only.  If the 'ctx' param is null then the repo name must be non-mull and vice-versa
      *
      * @return the repository session
      * @throws Exception the exception
      */
-    public RepositoryInstance getRepositorySession(ServiceContext ctx) throws Exception {
+    public RepositoryInstance getRepositorySession(ServiceContext ctx, String repoName) throws Exception {
        RepositoryInstance repoSession = null;
        
        Profiler profiler = new Profiler("getRepositorySession():", 2);
        profiler.start();
-               
+       //
+       // To get a connection to the Nuxeo repo, we need either a valid ServiceContext instance or a repository name
+       //
         if (ctx != null) {
-               repoSession = (RepositoryInstance)ctx.getCurrentRepositorySession();
-            if (logger.isDebugEnabled() == true) {
-               if (repoSession != null) {
-                       logger.warn("Reusing the current context's repository session.");
-               }
-            }          
-        }
-        
-        // If we couldn't find a repoSession from the service context then we need to create a new one
+               repoName = ctx.getRepositoryName(); // Notice we are overriding the passed in 'repoName' since we have a valid service context passed in to us
+               repoSession = (RepositoryInstance)ctx.getCurrentRepositorySession(); // Look to see if one exists in the context before creating one
+        } else if (repoName == null || repoName.trim().isEmpty()) {
+               String errMsg = String.format("We can't get a connection to the Nuxeo repo because the service context passed in was null and no repository name was passed in either.");
+               logger.error(errMsg);
+               throw new Exception(errMsg);
+        }        
+        //
+        // If we couldn't find a repoSession from the service context (or the context was null) then we need to create a new one using
+        // just the repo name
+        //
         if (repoSession == null) {
                NuxeoClientEmbedded client = NuxeoConnectorEmbedded.getInstance().getClient();
-               repoSession = client.openRepository();
+               repoSession = client.openRepository(repoName);
+        } else {
+            if (logger.isDebugEnabled() == true) {
+               logger.warn("Reusing the current context's repository session.");
+            }          
         }
         
         if (logger.isTraceEnabled()) {
index 93fa7e6a877c956e1f43dca48b06b1eed60902dd..ecbeb4ef3c3c5e78acd3f7df0c42fecafcb9afae 100644 (file)
@@ -83,6 +83,9 @@ public class TenantRepository {
        LoginContext loginContext = null;
        try {
                loginContext = Framework.login();
+               //
+               // Loop through every tenant bindings file
+               //
                for (TenantBindingType tenantBinding : tenantBindings.values()) {
                    setup(tenantBinding);
                }
@@ -135,29 +138,35 @@ public class TenantRepository {
      * @param repositoryDomain
      * @throws Exception
      */
-    synchronized private void createDomain(TenantBindingType tenantBinding,
+    synchronized private String createDomain(TenantBindingType tenantBinding,
             RepositoryDomainType repositoryDomain) throws Exception {
-        String domainName = repositoryDomain.getName();
+       String result = null;
+       
         RepositoryClient repositoryClient = getRepositoryClient(repositoryDomain);
-        String domainId = repositoryClient.getDomainId(repositoryDomain.getStorageName());
+       String domainStorageName = repositoryDomain.getStorageName();
+        String domainId = repositoryClient.getDomainId(repositoryDomain);
+
         if (domainId == null) {
-            domainId = repositoryClient.createDomain(repositoryDomain.getStorageName());
+               // If we didn't find it then we need to create it
+            domainId = repositoryClient.createDomain(repositoryDomain);
             if (logger.isDebugEnabled()) {
-                logger.debug("Created repository domain for " + domainName
+                logger.debug("Created repository domain for " + domainStorageName
                         + " id=" + domainId);
             }
             if (logger.isTraceEnabled()) {
-                String checkDomainId = repositoryClient.getDomainId(repositoryDomain.getStorageName());
-                logger.trace("Fetched repository domain for " + domainName
+                String checkDomainId = repositoryClient.getDomainId(repositoryDomain);
+                logger.trace("Fetched repository domain for " + domainStorageName
                         + " fetchedId=" + checkDomainId);
-                // Now try to fetch the workspace
             }
         } else {
             if (logger.isDebugEnabled()) {
-                logger.debug("Found repository domain for " + domainName
+                logger.debug("Found repository storage domain for " + domainStorageName
                         + " id=" + domainId);
             }
         }
+        
+        result = domainId;
+        return result;
     }
 
     /**
@@ -176,7 +185,7 @@ public class TenantRepository {
         //retrieve all workspace ids for a domain
         //domain specific table of workspace name and id
         Hashtable<String, String> workspaceIds =
-                repositoryClient.retrieveWorkspaceIds(repositoryDomain.getStorageName());
+                repositoryClient.retrieveWorkspaceIds(repositoryDomain);
         //verify if workspace exists for each service from the tenant binding
         for (ServiceBindingType serviceBinding : tenantBinding.getServiceBindings()) {
             String serviceName = serviceBinding.getName();
@@ -222,7 +231,7 @@ public class TenantRepository {
                                 + " in repository.  Creating new workspace ...");
                     }
                     workspaceId = repositoryClient.createWorkspace(
-                            repositoryDomain.getStorageName(),
+                            repositoryDomain,
                             serviceBinding.getName());
                     if (workspaceId == null) {
                         if (logger.isWarnEnabled()) {
diff --git a/services/common/src/main/resources/db/mysql/create_id_generators_table.sql b/services/common/src/main/resources/db/mysql/create_id_generators_table.sql
new file mode 100644 (file)
index 0000000..2273e2f
--- /dev/null
@@ -0,0 +1,44 @@
+/*     
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright Â© 2009 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ */
+
+/*
+ * create_id_generators_table.sql
+ *
+ * Creates the "id_generators" table, used by the ID Service,
+ * and sets the access permissions of that table.
+ *
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ */
+
+-- DROP TABLE IF EXISTS `id_generators`;
+
+CREATE TABLE IF NOT EXISTS `id_generators` (
+  `csid`                varchar(80) PRIMARY KEY,
+  `displayname`         varchar(80),
+  `description`         varchar(500),
+  `priority`            smallint(1) DEFAULT 9 NOT NULL,
+  `id_generator_state`  varchar(8000) NOT NULL,
+  `last_generated_id`   varchar(255),
+  `modified`            timestamp NOT NULL
+                        default CURRENT_TIMESTAMP
+                        on update CURRENT_TIMESTAMP,
+  INDEX `csid_index` (`csid`)
+) ENGINE=InnoDB;
+
+
+SHOW WARNINGS;
diff --git a/services/common/src/main/resources/db/mysql/load_id_generators.sql b/services/common/src/main/resources/db/mysql/load_id_generators.sql
new file mode 100644 (file)
index 0000000..0a7bc83
--- /dev/null
@@ -0,0 +1,640 @@
+/*     
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright Â© 2009 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ */
+
+/*
+ * load_id_generators_table.sql
+ *
+ * Loads a default set of data into the "id_generators" table,
+ * used by the ID Service.
+ *
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ */
+
+/*
+ * Note: in the priority column, values range from  '1' (highest)
+ * to '9' (lowest).
+ */
+
+/*
+ * NOTE: In the id_generator_state column, for numeric sequence parts
+ * whose first generated value should start at the initial value
+ * (such as '1'), enter '-1' for the <currentValue>
+ *
+ * Otherwise, the first generated value will be the next value
+ * in the sequence after the initial value (e.g. '2', if the
+ * initial value is '1').
+ */
+
+-- ACCESSION_LOT_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('1a67470b-19b1-4ae3-88d4-2a0aa936270e',
+     'Accession Activity Number',
+     'Identifies accession activities, in which a lot of
+one or more collection objects is acquired by the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- ACCESSION_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('9dd92952-c384-44dc-a736-95e435c1759c',
+     'Accession Number',
+     'Identifies individual collection objects formally
+acquired by the institution. Used for collection objects
+without parts.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- ARCHIVES_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('70586d30-9dca-4a07-a3a2-1976fe898028',
+     'Archives Number',
+     'Identifies archives-related accession activities,
+in which a lot of one or more collection objects is formally
+acquired for the archives.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>AR</initialValue>
+      <currentValue>AR</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- EVALUATION_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('d2d80822-25c7-4c7c-a105-fc40cdb0c50f',
+     'Evaluation Number',
+     'Identifies evaluation-related intake activities,
+in which a lot of one or more collection objects is formally
+acquired for evaluation.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>EV</initialValue>
+      <currentValue>EV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- INTAKE_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('8088cfa5-c743-4824-bb4d-fb11b12847f7',
+     'Intake Number',
+     'Identifies intake activities, in which a lot of one
+or more collection objects enters the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>IN</initialValue>
+      <currentValue>IN</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- INTAKE_OBJECT_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('a91db555-5c53-4996-9918-6712351397a0',
+     'Intake Object Number',
+     'Identifies individual collection objects that enter
+the institution through intake activities, before they are 
+either returned to their owner or formally acquired.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>IN</initialValue>
+      <currentValue>IN</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- INVENTORY_NUMBER
+
+INSERT IGNORE INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('6d472be6-2534-47f3-a3f1-3f160e7a9303',
+     'Inventory Number',
+     'Unambiguously identifies a location associated with an inventory event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>INV</initialValue>
+      <currentValue>INV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- LIBRARY_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('80fedaf6-1647-4f30-9f53-a75a3cac2ffd',
+     'Library Number',
+     'Identifies library-related accession activities,
+in which a lot of one or more collection objects is
+formally acquired for the library.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LIB</initialValue>
+      <currentValue>LIB</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- LOANS_IN_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('ed87e7c6-0678-4f42-9d33-f671835586ef',
+     'Loan In Number',
+     'Identifies activities in which collection objects are
+received on loan.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LI</initialValue>
+      <currentValue>LI</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- LOANS_OUT_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('4b984865-f93d-4481-b874-3dba863ec589',
+     'Loan Out Number',
+     'Identifies activities in which collection objects are
+loaned out of the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LO</initialValue>
+      <currentValue>LO</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- LOCATION_NUMBER
+
+INSERT IGNORE INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('1fc5e383-0786-4126-9a3c-ec7df4517ee3',
+     'Location Number',
+     'Unambiguously identifies a general location, not associated with an
+inventory or movement event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LOC</initialValue>
+      <currentValue>LOC</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('cd91d8b8-f346-4925-a425-93e02bd1c5c9',
+     'Media Resource Identification Number',
+     'Unambiguously identifies a media resource within a given context.
+Recommended best practice is to identify the resource by means of a string
+conforming to a formal identification system.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>MR</initialValue>
+      <currentValue>MR</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- MOVEMENT_REFERENCE_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('49ca9d8d-7136-47ff-a70e-4a47b9038b70',
+     'Movement Reference Number',
+     'Identifies a movement of a collection object or a group of collection objects.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>MV</initialValue>
+      <currentValue>MV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- OBJECT_EXIT_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('d4eea707-d473-4367-853a-728fbcd9be17',
+     'Object Exit Number',
+     'Identifies an exit from the museum of collection objects, via
+transfer or destruction, and the deaccessioning of those objects
+from the museum\'s collections.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>EX</initialValue>
+      <currentValue>EX</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- STUDY_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('0518132e-dd8c-4773-8fa9-07c9af4444ee',
+     'Study Number',
+     'Identifies study-related intake activities,
+in which a lot of one or more collection objects is
+formally acquired for study.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>ST</initialValue>
+      <currentValue>ST</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- TRANSFER_OF_TITLE_NUMBER
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('c597a209-5954-4fa6-bf3f-f83c1a0ad586',
+     'Transfer of Title Number',
+     'Identifies the transfer of title for one or more collection objects
+to a receiving institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>TT</initialValue>
+      <currentValue>TT</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+-- UUID
+
+/*
+ * Note: these are Type 4 UUIDs, whose generation is based on
+ * random and pseudo-random parts.
+ */
+
+INSERT IGNORE INTO `id_generators`
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES 
+    ('1fa40353-05b8-4ae6-82a6-44a18b4f3c12',
+     'UUID',
+     'Universally unique identifiers (UUIDs), which may be
+used for CollectionSpace IDs (CSIDs) and any other relevant
+purposes.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.UUIDGeneratorPart>
+    </org.collectionspace.services.id.UUIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
+SHOW WARNINGS;
diff --git a/services/common/src/main/resources/db/postgresql/create_id_generators_table.sql b/services/common/src/main/resources/db/postgresql/create_id_generators_table.sql
new file mode 100644 (file)
index 0000000..d087fd5
--- /dev/null
@@ -0,0 +1,53 @@
+/*     
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright Â© 2009-2012 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ */
+
+/*
+ * create_id_generators_table.sql
+ *
+ * Creates the "id_generators" table, used by the ID Service,
+ * and sets the access permissions of that table.
+ *
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ */
+
+-- DROP TABLE IF EXISTS id_generators;
+
+-- 'CREATE TABLE ... IF NOT EXISTS' requires PostgreSQL 9.1 or later
+CREATE TABLE IF NOT EXISTS id_generators
+(
+  csid character varying(80) NOT NULL,
+  displayname character varying(80),
+  description character varying(500),
+  priority integer NOT NULL DEFAULT 9,
+  id_generator_state character varying(8000) NOT NULL,
+  last_generated_id character varying(255),
+  modified timestamp without time zone NOT NULL DEFAULT now(),
+  CONSTRAINT id_generators_pkey PRIMARY KEY (csid)
+) WITH (
+  OIDS=FALSE -- See http://www.postgresql.org/docs/8.4/static/sql-createtable.html
+);
+
+CREATE OR REPLACE FUNCTION update_modified_column()
+    RETURNS TRIGGER AS
+    'BEGIN NEW.modified = now(); RETURN NEW; END;'
+    LANGUAGE 'plpgsql';
+
+CREATE TRIGGER update_customer_modtime BEFORE UPDATE
+    ON id_generators FOR EACH ROW EXECUTE PROCEDURE 
+    update_modified_column();
+
diff --git a/services/common/src/main/resources/db/postgresql/load_id_generators.sql b/services/common/src/main/resources/db/postgresql/load_id_generators.sql
new file mode 100644 (file)
index 0000000..b4ec549
--- /dev/null
@@ -0,0 +1,723 @@
+/*     
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright Â© 2009-2012 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ */
+
+/*
+ * load_id_generators_table.sql
+ *
+ * Loads a default set of data into the "id_generators" table,
+ * used by the ID Service.
+ *
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ */
+
+/*
+ * Note: in the priority column, values range from  '1' (highest)
+ * to '9' (lowest).
+ */
+
+/*
+ * NOTE: In the id_generator_state column, for numeric sequence parts
+ * whose first generated value should start at the initial value
+ * (such as '1'), enter '-1' for the <currentValue>
+ *
+ * Otherwise, the first generated value will be the next value
+ * in the sequence after the initial value (e.g. '2', if the
+ * initial value is '1').
+ */
+
+-- ACCESSION_LOT_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '1a67470b-19b1-4ae3-88d4-2a0aa936270e',
+     'Accession Activity Number',
+     'Identifies accession activities, in which a lot of
+one or more collection objects is acquired by the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '1a67470b-19b1-4ae3-88d4-2a0aa936270e' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- ACCESSION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '9dd92952-c384-44dc-a736-95e435c1759c',
+     'Accession Number',
+     'Identifies individual collection objects formally
+acquired by the institution. Used for collection objects
+without parts.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '9dd92952-c384-44dc-a736-95e435c1759c' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- ARCHIVES_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '70586d30-9dca-4a07-a3a2-1976fe898028',
+     'Archives Number',
+     'Identifies archives-related accession activities,
+in which a lot of one or more collection objects is formally
+acquired for the archives.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>AR</initialValue>
+      <currentValue>AR</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '70586d30-9dca-4a07-a3a2-1976fe898028' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- EVALUATION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     'd2d80822-25c7-4c7c-a105-fc40cdb0c50f',
+     'Evaluation Number',
+     'Identifies evaluation-related intake activities,
+in which a lot of one or more collection objects is formally
+acquired for evaluation.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>EV</initialValue>
+      <currentValue>EV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'd2d80822-25c7-4c7c-a105-fc40cdb0c50f' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- INTAKE_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '8088cfa5-c743-4824-bb4d-fb11b12847f7',
+     'Intake Number',
+     'Identifies intake activities, in which a lot of one
+or more collection objects enters the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>IN</initialValue>
+      <currentValue>IN</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '8088cfa5-c743-4824-bb4d-fb11b12847f7' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- INTAKE_OBJECT_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     'a91db555-5c53-4996-9918-6712351397a0',
+     'Intake Object Number',
+     'Identifies individual collection objects that enter
+the institution through intake activities, before they are 
+either returned to their owner or formally acquired.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>IN</initialValue>
+      <currentValue>IN</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'a91db555-5c53-4996-9918-6712351397a0' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- INVENTORY_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     '6d472be6-2534-47f3-a3f1-3f160e7a9303',
+     'Inventory Number',
+     'Unambiguously identifies a location associated with an inventory event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>INV</initialValue>
+      <currentValue>INV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '6d472be6-2534-47f3-a3f1-3f160e7a9303' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- LIBRARY_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '80fedaf6-1647-4f30-9f53-a75a3cac2ffd',
+     'Library Number',
+     'Identifies library-related accession activities,
+in which a lot of one or more collection objects is
+formally acquired for the library.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LIB</initialValue>
+      <currentValue>LIB</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '80fedaf6-1647-4f30-9f53-a75a3cac2ffd' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- LOANS_IN_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     'ed87e7c6-0678-4f42-9d33-f671835586ef',
+     'Loan In Number',
+     'Identifies activities in which collection objects are
+received on loan.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LI</initialValue>
+      <currentValue>LI</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'ed87e7c6-0678-4f42-9d33-f671835586ef' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- LOANS_OUT_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     '4b984865-f93d-4481-b874-3dba863ec589',
+     'Loan Out Number',
+     'Identifies activities in which collection objects are
+loaned out of the institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LO</initialValue>
+      <currentValue>LO</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '4b984865-f93d-4481-b874-3dba863ec589' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- LOCATION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     '1fc5e383-0786-4126-9a3c-ec7df4517ee3',
+     'Location Number',
+     'Unambiguously identifies a general location, not associated with an
+inventory or movement event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LOC</initialValue>
+      <currentValue>LOC</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '1fc5e383-0786-4126-9a3c-ec7df4517ee3' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     'cd91d8b8-f346-4925-a425-93e02bd1c5c9',
+     'Media Resource Identification Number',
+     'Unambiguously identifies a media resource within a given context.
+Recommended best practice is to identify the resource by means of a string
+conforming to a formal identification system.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>MR</initialValue>
+      <currentValue>MR</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'cd91d8b8-f346-4925-a425-93e02bd1c5c9' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- MOVEMENT_REFERENCE_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     '49ca9d8d-7136-47ff-a70e-4a47b9038b70',
+     'Movement Reference Number',
+     'Identifies a movement of a collection object or a group of collection objects.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>MV</initialValue>
+      <currentValue>MV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '49ca9d8d-7136-47ff-a70e-4a47b9038b70' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- OBJECT_EXIT_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     'd4eea707-d473-4367-853a-728fbcd9be17',
+     'Object Exit Number',
+     'Identifies an exit from the museum of collection objects, via
+transfer or destruction, and the deaccessioning of those objects
+from the museum''s collections.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>EX</initialValue>
+      <currentValue>EX</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'd4eea707-d473-4367-853a-728fbcd9be17' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- STUDY_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     '0518132e-dd8c-4773-8fa9-07c9af4444ee',
+     'Study Number',
+     'Identifies study-related intake activities,
+in which a lot of one or more collection objects is
+formally acquired for study.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+   <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>ST</initialValue>
+      <currentValue>ST</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '0518132e-dd8c-4773-8fa9-07c9af4444ee' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- TRANSFER_OF_TITLE_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT
+     'c597a209-5954-4fa6-bf3f-f83c1a0ad586',
+     'Transfer of Title Number',
+     'Identifies the transfer of title for one or more collection objects
+to a receiving institution.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>TT</initialValue>
+      <currentValue>TT</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE 'c597a209-5954-4fa6-bf3f-f83c1a0ad586' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
+
+-- UUID
+
+/*
+ * Note: these are Type 4 UUIDs, whose generation is based on
+ * random and pseudo-random parts.
+ */
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  SELECT 
+     '1fa40353-05b8-4ae6-82a6-44a18b4f3c12',
+     'UUID',
+     'Universally unique identifiers (UUIDs), which may be
+used for CollectionSpace IDs (CSIDs) and any other relevant
+purposes.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.UUIDGeneratorPart>
+    </org.collectionspace.services.id.UUIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>'
+  WHERE '1fa40353-05b8-4ae6-82a6-44a18b4f3c12' NOT IN
+        (
+        SELECT  csid
+        FROM    id_generators
+        );
diff --git a/services/config/src/main/java/org/collectionspace/services/common/config/ConfigUtils.java b/services/config/src/main/java/org/collectionspace/services/common/config/ConfigUtils.java
new file mode 100644 (file)
index 0000000..3e8c4e1
--- /dev/null
@@ -0,0 +1,57 @@
+package org.collectionspace.services.common.config;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.collectionspace.services.config.tenant.RepositoryDomainType;
+import org.collectionspace.services.config.tenant.TenantBindingType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ConfigUtils {
+    final static Logger logger = LoggerFactory.getLogger(ConfigUtils.class);
+    
+    /*
+     * Returns the list of repository/DB names defined by a tenant bindings file
+     */
+    public static List<String> getRepositoryNameList(TenantBindingType tenantBindingType) {
+       List<String> result = null;
+       
+               List<RepositoryDomainType> repoDomainList = tenantBindingType.getRepositoryDomain();
+               if (repoDomainList != null && repoDomainList.isEmpty() == false) {
+                       result = new ArrayList<String>();
+                       for (RepositoryDomainType repoDomain : repoDomainList) {
+                                       result.add(repoDomain.getRepositoryName());
+                       }
+               }
+               
+       return result;
+    }
+    
+    public static String getRepositoryName(TenantBindingType tenantBindingType, String domainName) {
+               String result = null;
+               
+               
+               if (domainName != null && domainName.trim().isEmpty() == false) {
+                       List<RepositoryDomainType> repoDomainList = tenantBindingType.getRepositoryDomain();
+                       if (repoDomainList != null && repoDomainList.isEmpty() == false) {
+                               for (RepositoryDomainType repoDomain : repoDomainList) {
+                                       if (repoDomain.getName().equalsIgnoreCase(domainName)) {
+                                               result = repoDomain.getRepositoryName();
+                                               break; // We found a match so exit the loop
+                                       }
+                               }
+                       }
+               } else {
+                       logger.error(String.format("No domain name was specified on call to getRepositoryName() method."));
+               }
+               
+               if (result == null && logger.isTraceEnabled()) {
+                       logger.trace(String.format("Could not find the repository name for tenent name='%s' and domain='%s'",
+                                       tenantBindingType.getName(), domainName));
+               }
+               
+               return result;
+       }
+
+}
index 84d86f1a61a210658e6b0bbfad77db372f805a49..5fd98c885d157781a85a46509db342af9b1ff37a 100644 (file)
@@ -66,6 +66,7 @@
         <xs:sequence/>
         <xs:attribute name="name" type="xs:string" use="required"/>
         <xs:attribute name="storageName" type="xs:string" use="required"/>
+        <xs:attribute name="repositoryName" type="xs:string" use="optional" default="default"/>        
         <xs:attribute name="repositoryClient" type="xs:string" use="optional" default="nuxeo-java"/>
     </xs:complexType>
 
index 43c190af4319a7d69ba3289039346d7089eb420d..114bacd9095ebabd62e67f67a23ab9f47a1b4da6 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/contact/.settings/org.maven.ide.eclipse.prefs b/services/contact/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 43e3cc4f0fb587e4673f38cd09acb3caa61c3aeb..9a453ba2d8630d7e9cb9fb86fa345e9f6f604f7d 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/contact/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/contact/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/contact/3rdparty/nuxeo-platform-cs-contact/.settings/org.maven.ide.eclipse.prefs b/services/contact/3rdparty/nuxeo-platform-cs-contact/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/contact/client/.settings/org.maven.ide.eclipse.prefs b/services/contact/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/contact/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/contact/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index dd2ea02..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:48 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/contact/service/.settings/org.maven.ide.eclipse.prefs b/services/contact/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index caefe4a42eab30e84fe83ab8322ac995e5df6489..c602d4fb8f097e248ecf6eb36115265dff0bd1b0 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/dimension/.settings/org.maven.ide.eclipse.prefs b/services/dimension/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index f733f1b4c550fed7c933bc5a4f0873128259dfa0..c7eb0bb79b5a2ed40b3c6006af13f20db2872afd 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/dimension/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/dimension/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/dimension/3rdparty/nuxeo-platform-cs-dimension/.settings/org.maven.ide.eclipse.prefs b/services/dimension/3rdparty/nuxeo-platform-cs-dimension/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/dimension/client/.settings/org.maven.ide.eclipse.prefs b/services/dimension/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/dimension/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/dimension/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 86abf8e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:47 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/dimension/service/.settings/org.maven.ide.eclipse.prefs b/services/dimension/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 86626f2ec4b297e9b682ce486207f3a7e7998c5f..dbf1fa394fbbcb36b64884aef05f3085c57376ad 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/group/.settings/org.maven.ide.eclipse.prefs b/services/group/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index a9335a34b7e2a662ea9b1f6ebbeaf3949afbb72f..fd57793827c4be179a963095c696543a87ee2590 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/group/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/group/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/group/3rdparty/nuxeo-platform-cs-group/.settings/org.maven.ide.eclipse.prefs b/services/group/3rdparty/nuxeo-platform-cs-group/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/group/client/.settings/org.maven.ide.eclipse.prefs b/services/group/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/group/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/group/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f07df..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:45 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/group/service/.settings/org.maven.ide.eclipse.prefs b/services/group/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/hyperjaxb/.settings/org.maven.ide.eclipse.prefs b/services/hyperjaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 97c7be0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:22 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 976db9691e17f17cd9c997e0baffd371ffeba9d0..b8cd682eabde130c425482fd052a7ebd7167c64a 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/id/.settings/org.maven.ide.eclipse.prefs b/services/id/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/id/3rdparty/.project b/services/id/3rdparty/.project
deleted file mode 100644 (file)
index 77c38ab..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<projectDescription>\r
-       <name>org.collectionspace.services.id.3rdparty</name>\r
-       <comment></comment>\r
-       <projects>\r
-       </projects>\r
-       <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-       </buildSpec>\r
-       <natures>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-       </natures>\r
-</projectDescription>\r
diff --git a/services/id/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/id/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/id/3rdparty/nuxeo-platform-cs-id/.project b/services/id/3rdparty/nuxeo-platform-cs-id/.project
deleted file mode 100644 (file)
index 8388db4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<projectDescription>\r
-       <name>nuxeo-platform-collectionspace</name>\r
-       <comment>Nuxeo Enterprise Platform: CS extensions</comment>\r
-       <projects>\r
-       </projects>\r
-       <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-       </buildSpec>\r
-       <natures>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-       </natures>\r
-</projectDescription>\r
diff --git a/services/id/3rdparty/nuxeo-platform-cs-id/.settings/org.maven.ide.eclipse.prefs b/services/id/3rdparty/nuxeo-platform-cs-id/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index f18b0e3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Apr 08 13:24:46 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-version=1\r
diff --git a/services/id/client/.settings/org.maven.ide.eclipse.prefs b/services/id/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1f28bf9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Aug 16 14:44:03 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 8e0ec213c1720932839fe63d0f8c7987e705143d..28e3a03ce04021882bbe898e2ae8727287f6857a 100644 (file)
@@ -9,7 +9,6 @@
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
-    <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.id.client</artifactId>
     <name>services.id.client</name>
 
@@ -19,6 +18,7 @@
             <artifactId>org.collectionspace.services.client</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <!-- 
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.id.service</artifactId>
@@ -26,6 +26,7 @@
             <scope>test</scope>
             <type>jar</type>
         </dependency>
+        -->
     </dependencies>
 
     <build>
index a2c6d7242e66cd9aae85a94a99f331c4479c6ca0..ad0f0d9ffcc43d82beb3b04ac4b82f562f6c81f1 100644 (file)
@@ -11,6 +11,8 @@ import org.jboss.resteasy.client.ClientResponse;
  */
 public class IdClient extends AbstractServiceClientImpl<String, String, String, IdProxy> {
 
+    public static final String SERVICE_NAME = "idgenerators";
+    
     /* (non-Javadoc)
      * @see org.collectionspace.services.client.BaseServiceClient#getServicePathComponent()
      */
diff --git a/services/id/jaxb/.project b/services/id/jaxb/.project
deleted file mode 100644 (file)
index 4d14ff9..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<projectDescription>\r
-       <name>org.collectionspace.services.id.jaxb</name>\r
-       <comment></comment>\r
-       <projects>\r
-       </projects>\r
-       <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-       </buildSpec>\r
-       <natures>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-       </natures>\r
-</projectDescription>\r
diff --git a/services/id/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/id/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index b0beeb0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 06 11:17:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=false\r
-version=1\r
diff --git a/services/id/service/.settings/org.maven.ide.eclipse.prefs b/services/id/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 496d60bf887144447920ce297f3f8da806b806c1..2286b7486149f76500a98b2c5bd8e5cc28371317 100644 (file)
 
     <target name="create_nuxeo_db"
     description="create tables(s), indices for id service">
+       <!-- No longer required since we are doing this work at system startup
                                <sql driver="${db.jdbc.driver.class}"
             url="${db.jdbc.nuxeo.url}"
             userid="${db.nuxeo.user}"
                 <pathelement path="${db.driver.jar}"/>
             </classpath>
         </sql>
+               -->
     </target>
 
     <target name="deploy" depends="install"
index 59480ad67cc000dc12f5338fa0d79992d9c11315..40eb15a22bc3cb33d02a82772d2db35f1e85d06d 100644 (file)
@@ -27,7 +27,6 @@
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
-  <groupId>org.collectionspace.services</groupId>
   <artifactId>org.collectionspace.services.id.service</artifactId>
   <packaging>jar</packaging>
   <name>services.id.service</name>
       <scope>test</scope>
     </dependency>
 
+       <dependency>
+           <groupId>org.collectionspace.services</groupId>
+           <artifactId>org.collectionspace.services.id.client</artifactId>
+           <version>${project.version}</version>
+       </dependency>
+
     <!-- Cobertura, a tool for identifying the extent of code coverage in test classes
     <dependency>
       <groupId>org.codehaus.mojo</groupId>
index e85fcc52c2b60c6797120892e44d361ce890d855..0a7b042a3205e83482c3cc69dd171998f08a29e8 100644 (file)
@@ -37,11 +37,18 @@ import javax.ws.rs.core.Response;
 import javax.ws.rs.core.Response.ResponseBuilder;
 import javax.ws.rs.core.UriBuilder;
 
+import org.collectionspace.services.client.PoxPayloadIn;
+import org.collectionspace.services.client.PoxPayloadOut;
+import org.collectionspace.services.common.AbstractCollectionSpaceResourceImpl;
 // May at some point instead use
 // org.jboss.resteasy.spi.NotFoundException
 import org.collectionspace.services.common.XmlTools;
 import org.collectionspace.services.common.document.BadRequestException;
 import org.collectionspace.services.common.document.DocumentNotFoundException;
+import org.collectionspace.services.common.context.MultipartServiceContextFactory;
+import org.collectionspace.services.common.context.ServiceContext;
+import org.collectionspace.services.common.context.ServiceContextFactory;
+import org.collectionspace.services.client.IdClient;
 
 import org.dom4j.Document;
 import org.dom4j.DocumentHelper;
@@ -62,7 +69,7 @@ import org.slf4j.LoggerFactory;
 // Set the base path component for URLs that access this service.
 @Path("/idgenerators")
 @Produces(MediaType.TEXT_PLAIN)
-public class IDResource {
+public class IDResource extends AbstractCollectionSpaceResourceImpl<PoxPayloadIn, PoxPayloadOut> {
 
     final Logger logger = LoggerFactory.getLogger(IDResource.class);
     final static IDService service = new IDServiceJdbcImpl();
@@ -127,9 +134,9 @@ public class IDResource {
 
         String newId = "";
         try {
-
+               ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
             // Obtain a new ID from the specified ID generator instance.
-            newId = service.createID(csid);
+            newId = service.createID(ctx, csid);
 
             // If the new ID is empty, return an error response.
             if (newId == null || newId.trim().isEmpty()) {
@@ -182,11 +189,12 @@ public class IDResource {
 
         ResponseBuilder builder = Response.ok();
         Response response = builder.build();
-
+        
         try {
+            ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
 
             String csid = UUID.randomUUID().toString();
-            service.createIDGenerator(csid, xmlPayload);
+            service.createIDGenerator(ctx, csid, xmlPayload);
 
             // Build the URI to be returned in the Location header.
             //
@@ -205,8 +213,11 @@ public class IDResource {
                     Response.created(path.build()).entity("").type(MediaType.TEXT_PLAIN).build();
 
         } catch (Exception e) {
-            response =
-                    Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build();
+            response = Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(
+                       e.getMessage()).type(MediaType.TEXT_PLAIN).build();
+            if (logger.isDebugEnabled() == true) {
+               e.printStackTrace();
+            }
         }
 
         return response;
@@ -230,8 +241,8 @@ public class IDResource {
 
         String resourceRepresentation = "";
         try {
-
-            IDGeneratorInstance instance = service.readIDGenerator(csid);
+               ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
+            IDGeneratorInstance instance = service.readIDGenerator(ctx, csid);
 
             Document doc = DocumentHelper.createDocument();
             Element root = doc.addElement(ID_GENERATOR_NAME);
@@ -301,9 +312,9 @@ public class IDResource {
 
         String resourceRepresentation = "";
         try {
-
+               ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
             Map<String, IDGeneratorInstance> generators =
-                    service.readIDGeneratorsList();
+                    service.readIDGeneratorsList(ctx);
 
             // If no ID generator instances were found, return an empty list.
             if (generators == null || generators.isEmpty()) {
@@ -390,7 +401,8 @@ public class IDResource {
         Response response = builder.build();
 
         try {
-            service.deleteIDGenerator(csid);
+               ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
+            service.deleteIDGenerator(ctx, csid);
             response = Response.ok().entity("").type(MediaType.TEXT_PLAIN).build();
         } catch (Exception e) {
             response =
@@ -660,4 +672,26 @@ public class IDResource {
             return BASE_URL_PATH;
         }
     }
+
+       @Override
+       public Class<?> getCommonPartClass() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public ServiceContextFactory<PoxPayloadIn, PoxPayloadOut> getServiceContextFactory() {
+        return MultipartServiceContextFactory.get();
+       }
+
+       @Override
+       public String getServiceName() {
+               return IdClient.SERVICE_NAME;
+       }
+
+       @Override
+       protected String getVersionString() {
+               // TODO Auto-generated method stub
+               return null;
+       }
 }
index a4693c43fda8c912c7c3e4bd86c54c0e521b916f..9baaf8e20b1e1a50118af18e5fb60980c10e7857 100644 (file)
@@ -18,6 +18,10 @@ package org.collectionspace.services.id;
 
 import java.util.Map;
 
+import org.collectionspace.services.client.PoxPayloadIn;
+import org.collectionspace.services.client.PoxPayloadOut;
+import org.collectionspace.services.common.context.ServiceContext;
+
 /**
  * IDService
  *
@@ -34,10 +38,10 @@ public interface IDService {
     // Create
     // Read single object
     // Generates and returns a new ID from the specified ID generator.
-    public String createID(String csid) throws Exception;
+    public String createID(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid) throws Exception;
 
     // Returns the last-generated ID associated with the specified ID generator.
-    public String readLastID(String csid)
+    public String readLastID(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid)
             throws Exception;
 
     // Read a list of objects (aka read multiple)
@@ -46,23 +50,24 @@ public interface IDService {
     // ----------------------------------------
     // Create
     // Adds a new ID generator.
-    public void createIDGenerator(String csid, String serializedIDGenerator)
-            throws Exception;
+    public void createIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx,
+               String csid, String serializedIDGenerator) throws Exception;
 
     // Read single object
-    public IDGeneratorInstance readIDGenerator(String csid)
+    public IDGeneratorInstance readIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid)
             throws Exception;
 
     // Read a list of objects (aka read multiple)
     // and return a list (map) of those objects and their identifiers.
-    public Map<String, IDGeneratorInstance> readIDGeneratorsList()
+    public Map<String, IDGeneratorInstance> readIDGeneratorsList(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx)
             throws Exception;
 
     // Update
-    public void updateIDGenerator(String csid, String serializedIDGenerator)
-            throws Exception;
+    public void updateIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx,
+               String csid, 
+               String serializedIDGenerator) throws Exception;
 
     // Delete (possibly not permitted - deactivate instead?)
-    public void deleteIDGenerator(String csid)
+    public void deleteIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid)
             throws Exception;
 }
index 69a06e73cf240c6fc5538c17b262b7cd79c3cf94..134b923705c5fdea23aea4536266023b460925ac 100644 (file)
@@ -64,7 +64,6 @@
 package org.collectionspace.services.id;
 
 import java.sql.Connection;
-import java.sql.DriverManager;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.PreparedStatement;
@@ -74,6 +73,10 @@ import java.util.Map;
 
 import javax.naming.NamingException;
 import javax.security.auth.login.LoginException;
+
+import org.collectionspace.services.client.PoxPayloadIn;
+import org.collectionspace.services.client.PoxPayloadOut;
+import org.collectionspace.services.common.context.ServiceContext;
 import org.collectionspace.services.common.document.BadRequestException;
 import org.collectionspace.services.common.document.DocumentNotFoundException;
 import org.collectionspace.services.common.storage.JDBCTools;
@@ -101,7 +104,8 @@ public class IDServiceJdbcImpl implements IDService {
     /**
      * Constructor (no-argument).
      */
-    public void IDServiceJdbcImpl() {
+    public IDServiceJdbcImpl() {
+       // Empty
     }
 
     // -----------------
@@ -124,7 +128,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public String createID(String csid) throws Exception {
+    public String createID(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid) throws Exception {
 
         logger.debug("> in createID");
 
@@ -143,7 +147,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         String serializedGenerator = "";
         try {
-            IDGeneratorInstance generator = readIDGenerator(csid);
+            IDGeneratorInstance generator = readIDGenerator(ctx, csid);
             serializedGenerator = generator.getGeneratorState();
             // serializedGenerator = readIDGenerator(csid).getGeneratorState();
         } catch (DocumentNotFoundException e) {
@@ -171,7 +175,7 @@ public class IDServiceJdbcImpl implements IDService {
 
             // Retrieve the last ID associated with this generator
             // from persistent storage.
-            lastId = readLastID(csid);
+            lastId = readLastID(ctx, csid);
 
             // If there was no last generated ID associated with this generator,
             // get a new ID.
@@ -186,12 +190,12 @@ public class IDServiceJdbcImpl implements IDService {
             }
 
             // Store the 'new' ID as the last-generated ID for this generator.
-            updateLastID(csid, newId);
+            updateLastID(ctx, csid, newId);
 
             // Store the new state of this ID generator, reflecting that
             // one of its parts may possibly have had its value updated as
             // a result of the generation of this 'new' ID.
-            updateIDGenerator(csid, generator);
+            updateIDGenerator(ctx, csid, generator);
 
         } catch (DocumentNotFoundException e) {
             throw e;
@@ -220,8 +224,8 @@ public class IDServiceJdbcImpl implements IDService {
      *      *
      * @throws  DocumentNotFoundException if the requested ID generator could not be found.
      */
-    public void updateLastID(String csid, String lastId)
-            throws IllegalStateException, DocumentNotFoundException, NamingException, SQLException {
+    public void updateLastID(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid, String lastId)
+            throws IllegalStateException, DocumentNotFoundException, NamingException, SQLException, Exception {
 
         logger.debug("> in updateLastID");
 
@@ -232,8 +236,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
             conn.setAutoCommit(false);
             Statement stmt = conn.createStatement();
 
@@ -322,7 +325,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public String readLastID(String csid) throws Exception {
+    public String readLastID(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid) throws Exception {
 
         logger.debug("> in readLastID");
 
@@ -334,8 +337,8 @@ public class IDServiceJdbcImpl implements IDService {
         String lastId = null;
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+               String repositoryName = ctx.getRepositoryName();
+            conn = getJdbcConnection(repositoryName);
             Statement stmt = conn.createStatement();
 
             ResultSet rs = stmt.executeQuery(
@@ -391,7 +394,7 @@ public class IDServiceJdbcImpl implements IDService {
      *
      * @throws  IllegalStateException if a storage-related error occurred.
      */
-    public void createIDGenerator(String csid, SettableIDGenerator generator)
+    private void createIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid, SettableIDGenerator generator)
             throws Exception {
 
         logger.debug("> in createIDGenerator(String, SettableIDGenerator)");
@@ -411,7 +414,7 @@ public class IDServiceJdbcImpl implements IDService {
         }
 
         try {
-            createIDGenerator(csid, serializedGenerator);
+            createIDGenerator(ctx, csid, serializedGenerator);
         } catch (IllegalArgumentException e) {
             throw e;
         } catch (IllegalStateException e) {
@@ -441,14 +444,14 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public void createIDGenerator(String csid, String serializedGenerator)
-            throws Exception {
+    public void createIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx,
+               String csid, String serializedIDGenerator) throws Exception {
 
         logger.debug("> in createIDGenerator(String, String)");
 
         // @TODO Add checks for authorization to perform this operation.
 
-        if (serializedGenerator == null || serializedGenerator.equals("")) {
+        if (serializedIDGenerator == null || serializedIDGenerator.equals("")) {
             throw new BadRequestException(
                     "Could not understand or parse this representation "
                     + "of an ID generator.");
@@ -456,8 +459,8 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+               String repositoryName = ctx.getRepositoryName();
+            conn = getJdbcConnection(repositoryName);
             Statement stmt = conn.createStatement();
 
             // Test whether this ID generator already exists in the database.
@@ -504,7 +507,7 @@ public class IDServiceJdbcImpl implements IDService {
 
                 PreparedStatement ps = conn.prepareStatement(SQL_STATEMENT_STRING);
                 ps.setString(1, csid);
-                ps.setString(2, serializedGenerator);
+                ps.setString(2, serializedIDGenerator);
                 ps.setNull(3, java.sql.Types.VARCHAR);
 
                 int rowsUpdated = ps.executeUpdate();
@@ -549,7 +552,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public IDGeneratorInstance readIDGenerator(String csid) throws Exception {
+    public IDGeneratorInstance readIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid) throws Exception {
 
         logger.debug("> in readIDGenerator");
 
@@ -557,8 +560,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
             Statement stmt = conn.createStatement();
 
             ResultSet rs = stmt.executeQuery(
@@ -617,7 +619,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public Map<String, IDGeneratorInstance> readIDGeneratorsList()
+    public Map<String, IDGeneratorInstance> readIDGeneratorsList(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx)
             throws Exception {
 
         logger.debug("> in readIDGeneratorsList");
@@ -628,7 +630,7 @@ public class IDServiceJdbcImpl implements IDService {
         Connection conn = null;
         try {
 
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
             Statement stmt = conn.createStatement();
 
             ResultSet rs = stmt.executeQuery(
@@ -690,8 +692,9 @@ public class IDServiceJdbcImpl implements IDService {
      *
      * @throws  IllegalStateException if a storage-related error occurred.
      */
-    public void updateIDGenerator(String csid, SettableIDGenerator generator)
-            throws Exception {
+    private void updateIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx,
+               String csid, 
+               SettableIDGenerator generator) throws Exception {
 
         logger.debug("> in updateIDGenerator(String, SettableIDGenerator)");
 
@@ -710,7 +713,7 @@ public class IDServiceJdbcImpl implements IDService {
         }
 
         try {
-            updateIDGenerator(csid, serializedGenerator);
+            updateIDGenerator(ctx, csid, serializedGenerator);
         } catch (DocumentNotFoundException e) {
             throw e;
         } catch (BadRequestException e) {
@@ -746,21 +749,22 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public void updateIDGenerator(String csid, String serializedGenerator)
-            throws Exception {
+    public void updateIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx,
+               String csid, 
+               String serializedIDGenerator) throws Exception {
 
         logger.debug("> in updateIDGenerator(String, String)");
 
         // @TODO: Add checks for authorization to perform this operation.
 
-        if (serializedGenerator == null || serializedGenerator.equals("")) {
+        if (serializedIDGenerator == null || serializedIDGenerator.equals("")) {
             throw new BadRequestException(
                     "Could not understand or parse this representation of an ID generator.");
         }
 
         SettableIDGenerator generator;
         try {
-            generator = IDGeneratorSerializer.deserialize(serializedGenerator);
+            generator = IDGeneratorSerializer.deserialize(serializedIDGenerator);
         } catch (IllegalArgumentException e) {
             throw e;
         }
@@ -768,8 +772,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
             conn.setAutoCommit(false);
             Statement stmt = conn.createStatement();
 
@@ -810,7 +813,7 @@ public class IDServiceJdbcImpl implements IDService {
                     + "WHERE csid = ?";
 
             PreparedStatement ps = conn.prepareStatement(SQL_STATEMENT_STRING);
-            ps.setString(1, serializedGenerator);
+            ps.setString(1, serializedIDGenerator);
             ps.setString(2, lastId);
             ps.setString(3, csid);
 
@@ -856,7 +859,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if a storage-related error occurred.
      */
     @Override
-    public void deleteIDGenerator(String csid)
+    public void deleteIDGenerator(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String csid)
             throws Exception {
 
         logger.debug("> in deleteIDGenerator");
@@ -865,8 +868,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
             Statement stmt = conn.createStatement();
 
             // Test whether this ID generator already exists in the database.
@@ -938,13 +940,13 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  LoginException
      * @throws  SQLException if a storage-related error occurred.
      */
-    public Connection getJdbcConnection() throws NamingException, SQLException {
+    public Connection getJdbcConnection(String repositoryName) throws NamingException, SQLException {
 
         logger.debug("> in getJdbcConnection");
         
         Connection conn = null;
         try {
-            conn = JDBCTools.getConnection(JDBCTools.NUXEO_REPOSITORY_NAME);
+            conn = JDBCTools.getConnection(JDBCTools.NUXEO_DATASOURCE_NAME, repositoryName);
         } catch (NamingException e) {
             throw e;
         } catch (SQLException e) {
@@ -966,7 +968,7 @@ public class IDServiceJdbcImpl implements IDService {
      * @throws  IllegalStateException if an error occurs while checking for the
      *          existence of the specified table.
      */
-    public boolean hasTable(String tablename) throws Exception {
+    private boolean hasTable(ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx, String tablename) throws Exception {
 
         logger.debug("> in hasTable");
 
@@ -976,8 +978,7 @@ public class IDServiceJdbcImpl implements IDService {
 
         Connection conn = null;
         try {
-
-            conn = getJdbcConnection();
+            conn = getJdbcConnection(ctx.getRepositoryName());
 
             // Retrieve a list of tables in the current database.
             final String CATALOG_NAME = null;
similarity index 97%
rename from services/id/client/src/test/java/org/collectionspace/services/client/test/IdServiceTest.java
rename to services/id/service/src/test/java/org/collectionspace/services/id/IdServiceTest.java
index 9f8f7500149e3bfa515d9aff6e5f7e516e0a7f91..187b550bad7639ab6827dd1b11956f3839d1aff1 100644 (file)
@@ -20,7 +20,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.collectionspace.services.client.test;
+package org.collectionspace.services.id;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -29,6 +29,9 @@ import javax.ws.rs.core.Response;
 
 import org.collectionspace.services.client.CollectionSpaceClient;
 import org.collectionspace.services.client.IdClient;
+import org.collectionspace.services.client.test.AbstractServiceTestImpl;
+import org.collectionspace.services.client.test.BaseServiceTest;
+import org.collectionspace.services.client.test.ServiceRequestType;
 import org.collectionspace.services.common.document.BadRequestException;
 import org.collectionspace.services.common.document.DocumentNotFoundException;
 import org.collectionspace.services.id.IDGeneratorSerializer;
index ec313bf6b86fbf6108abbaff998c4f81a42f0734..0ffebd6f0178c9bdbb108df32e7dbeb37ea5303b 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
index 51c94af4bb70de0255497cc05af854ab032911a8..7e106358fb775ed730b262f5beafc3270f248db6 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/imports/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/imports/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/imports/3rdparty/nuxeo-platform-cs-imports/.settings/org.maven.ide.eclipse.prefs b/services/imports/3rdparty/nuxeo-platform-cs-imports/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/imports/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/imports/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f07df..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:45 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/imports/service/.settings/org.maven.ide.eclipse.prefs b/services/imports/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 4ba408bab509d1b533ee630d1b04944e40cfdc57..7f4c7ed6962e8da9336509981f18564a3a38ab41 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/intake/.settings/org.maven.ide.eclipse.prefs b/services/intake/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 27ea3f02379c2cb926c2e23be1998dc2034f99e5..3b8c16a8a3d19dfd25ad6f5470eac05f2f1c0658 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/intake/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/intake/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/intake/3rdparty/nuxeo-platform-cs-intake/.settings/org.maven.ide.eclipse.prefs b/services/intake/3rdparty/nuxeo-platform-cs-intake/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/intake/client/.settings/org.maven.ide.eclipse.prefs b/services/intake/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/intake/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/intake/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index dbd51f3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:41 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/intake/service/.settings/org.maven.ide.eclipse.prefs b/services/intake/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 97c7be0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:22 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 476d544fc57312770bca108a612e6b9ec3bd1e41..62877a5f951fa4332353cae0d3748128c8e91128 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/loanin/.settings/org.maven.ide.eclipse.prefs b/services/loanin/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 66b83e8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:19 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 853c6dc771935060f8812e060d03d4a4dd88abc1..059aa39769511f47a94e9894605a34863e66400a 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/loanin/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/loanin/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 66b83e8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:19 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanin/3rdparty/nuxeo-platform-cs-loanin/.settings/org.maven.ide.eclipse.prefs b/services/loanin/3rdparty/nuxeo-platform-cs-loanin/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 66b83e8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:19 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanin/client/.settings/org.maven.ide.eclipse.prefs b/services/loanin/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 66b83e8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:19 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanin/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/loanin/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index a9fa9d6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:43 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanin/service/.settings/org.maven.ide.eclipse.prefs b/services/loanin/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 66b83e8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Apr 05 14:31:19 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ad5fffd385bb0ca26118897790503b68f5de6fc6..5d279352a2a0b949d2c69ece74748c3f27429431 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/loanout/.settings/org.maven.ide.eclipse.prefs b/services/loanout/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 2066d056436870e707fc833aaa1df70f119b807e..e1dd95864caeb91cb9706565e5a866b6e7276c68 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/loanout/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/loanout/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanout/3rdparty/nuxeo-platform-cs-loanout/.settings/org.maven.ide.eclipse.prefs b/services/loanout/3rdparty/nuxeo-platform-cs-loanout/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanout/client/.settings/org.maven.ide.eclipse.prefs b/services/loanout/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanout/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/loanout/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index a9fa9d6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:43 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/loanout/service/.settings/org.maven.ide.eclipse.prefs b/services/loanout/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 700322e21346ccb90ca55c4caf9492caa16e1440..7e663eb30633584aeb9cff8aa5d95aa703f05839 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.person</name>\r
+       <name>org.collectionspace.services.location</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/location/.settings/org.maven.ide.eclipse.prefs b/services/location/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 0f8161b793882906aed3c2e91e2c41f79115ef30..a2270c68b2c8f63e88899db1827bf8540254e71f 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.person.3rdparty</name>\r
+       <name>org.collectionspace.services.location.3rdparty</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/location/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/location/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/location/3rdparty/nuxeo-platform-cs-location/.settings/org.maven.ide.eclipse.prefs b/services/location/3rdparty/nuxeo-platform-cs-location/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 552ddbf..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Oct 06 13:25:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/location/client/.settings/org.maven.ide.eclipse.prefs b/services/location/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ddebb8b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:35 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/location/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/location/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f07df..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:45 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/location/service/.settings/org.maven.ide.eclipse.prefs b/services/location/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ddebb8b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:35 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index c0549808a94b96755476c239b05310f9f1c3dd83..222db5666470069b4f1f4ce716a93035fab2bf6a 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/media/.settings/org.maven.ide.eclipse.prefs b/services/media/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index e783e30955065de10036c33b2affed237336ca99..4b250fa94a935061cc0be7bfba19eb1d7a3bb996 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/media/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/media/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/media/3rdparty/nuxeo-platform-cs-media/.settings/org.maven.ide.eclipse.prefs b/services/media/3rdparty/nuxeo-platform-cs-media/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/media/client/.settings/org.maven.ide.eclipse.prefs b/services/media/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index b0ea9cc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:02 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/media/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/media/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index bd49bfd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:44 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/media/service/.settings/org.maven.ide.eclipse.prefs b/services/media/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 1156693..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Dec 03 15:35:01 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 269abd62d07378ded84788b4edfba666dca624ce..43c50797b0b2dd7ecefa247e08d73573b7189f70 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/movement/.settings/org.maven.ide.eclipse.prefs b/services/movement/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 55873434fa110cd703a7ac586d2ded4798bc41f9..9e1e11858336421478e73501ee3cbca4d7e52f34 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/movement/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/movement/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/movement/3rdparty/nuxeo-platform-cs-movement/.settings/org.maven.ide.eclipse.prefs b/services/movement/3rdparty/nuxeo-platform-cs-movement/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/movement/client/.settings/org.maven.ide.eclipse.prefs b/services/movement/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/movement/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/movement/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 57e45eb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:46 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/movement/service/.settings/org.maven.ide.eclipse.prefs b/services/movement/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 3dc0a0d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 27 21:36:39 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index b2d673e94235dd4070492dedfaf2eacfad5784c4..eff807f25bfbe2e6fd6266fc8bf52489eea4c0eb 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/note/.settings/org.maven.ide.eclipse.prefs b/services/note/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index b2d895a4b3852ab5454866e28976308b2e9d0bb2..b592d9d94ef89624873e1a9cdf9a57e06bcccae2 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/note/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/note/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/note/3rdparty/nuxeo-platform-cs-note/.settings/org.maven.ide.eclipse.prefs b/services/note/3rdparty/nuxeo-platform-cs-note/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/note/client/.settings/org.maven.ide.eclipse.prefs b/services/note/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/note/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/note/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 51e142d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:31 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/note/service/.settings/org.maven.ide.eclipse.prefs b/services/note/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 8bf82a1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:09 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 364a5e930e6138b5eeff87596a811d61ebd11c26..221909388ecf405cd7a965f2c68a31e39d15ea00 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
index e3bcf1bb277c0066cffddf94a4bd6f7d096ee76c..9ffbbb0bcdb8385a73e20d12fa7c5b85781509c3 100644 (file)
@@ -5,11 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -18,6 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/objectexit/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/objectexit/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/objectexit/3rdparty/nuxeo-platform-cs-objectexit/.settings/org.maven.ide.eclipse.prefs b/services/objectexit/3rdparty/nuxeo-platform-cs-objectexit/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/objectexit/client/.settings/org.maven.ide.eclipse.prefs b/services/objectexit/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/objectexit/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/objectexit/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f07df..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:45 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/objectexit/service/.settings/org.maven.ide.eclipse.prefs b/services/objectexit/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e2ce08c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Aug 27 16:35:21 PDT 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 61004388d4a6b598edccc881112dab6ade148566..5985f1b66d45fb714ed791021f7217960cb0d7fd 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/organization/.settings/org.maven.ide.eclipse.prefs b/services/organization/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 9a7019cdc3c096594a633ccbc966e38e47979c50..ac15649ed44c30ee649b8b3842965a10f2534977 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/organization/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/organization/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/organization/3rdparty/nuxeo-platform-cs-organization/.settings/org.maven.ide.eclipse.prefs b/services/organization/3rdparty/nuxeo-platform-cs-organization/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 552ddbf..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Oct 06 13:25:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/organization/client/.settings/org.maven.ide.eclipse.prefs b/services/organization/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ddebb8b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:35 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/organization/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/organization/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index cee0b6d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:38 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 39c03b7d0972a35fd9b04ffbb1809c4b81e687af..a04f35d0c5c8b220cb865f15d40759c2aad0ddf0 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.organization.samples</name>\r
+       <name>org.collectionspace.services.organization.client.samples</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/organization/sample/.settings/org.maven.ide.eclipse.prefs b/services/organization/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e3f71bd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Nov 23 11:53:50 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ba16f0f4c40836e71fb329f3e71102962823c8c8..d6d4cf76ebc786101dac177b75dcb4cd2f4b6a02 100644 (file)
@@ -3,7 +3,6 @@
        <name>org.collectionspace.services.organization.client.sample</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.client</project>\r
        </projects>\r
        <buildSpec>\r
                <buildCommand>\r
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,8 +17,7 @@
                </buildCommand>\r
        </buildSpec>\r
        <natures>\r
-               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
                <nature>org.eclipse.jdt.core.javanature</nature>\r
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/organization/sample/sample/.settings/org.maven.ide.eclipse.prefs b/services/organization/sample/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0624c1a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Sep 16 16:14:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/organization/service/.settings/org.maven.ide.eclipse.prefs b/services/organization/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 73ffce7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 11 15:27:33 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 700322e21346ccb90ca55c4caf9492caa16e1440..bcf39ab3425485c4686740cab247753ceb217bb6 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/person/.settings/org.maven.ide.eclipse.prefs b/services/person/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 0f8161b793882906aed3c2e91e2c41f79115ef30..6eca3a3f9b411185243716736602f957385bc486 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/person/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/person/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/person/3rdparty/nuxeo-platform-cs-person/.settings/org.maven.ide.eclipse.prefs b/services/person/3rdparty/nuxeo-platform-cs-person/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 552ddbf..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Oct 06 13:25:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/person/client/.settings/org.maven.ide.eclipse.prefs b/services/person/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ddebb8b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:35 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/person/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/person/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e3f7cf4..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:39 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 839e940bbd9d469774620c68c25daf31ea9d57e2..bce7b990c405beee0654f3ce82856674934010e9 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.person.samples</name>\r
+       <name>org.collectionspace.services.person.client.samples</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/person/sample/.settings/org.maven.ide.eclipse.prefs b/services/person/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e3f71bd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Nov 23 11:53:50 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 7c3143f9401d558f71fe9f1558313cb3fd92ff79..578b4c5deaa49d0d929ffd354fb3e3b0d84d6325 100644 (file)
@@ -3,8 +3,6 @@
        <name>org.collectionspace.services.person.client.sample</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.client</project>\r
-               <project>org.collectionspace.services.common</project>\r
        </projects>\r
        <buildSpec>\r
                <buildCommand>\r
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -24,8 +17,7 @@
                </buildCommand>\r
        </buildSpec>\r
        <natures>\r
-               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
                <nature>org.eclipse.jdt.core.javanature</nature>\r
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/person/sample/sample/.settings/org.maven.ide.eclipse.prefs b/services/person/sample/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index bac30c9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Thu Jan 07 14:30:38 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index b879b18a6c455e144704f10bec5c10904243b96c..fc789fdaeed1a8ec32c4eba234cd76f8c0772565 100644 (file)
@@ -8,6 +8,7 @@
     <name>person.client.sample</name>\r
     \r
     <dependencies>\r
+    <!-- \r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.person.jaxb</artifactId>\r
@@ -20,6 +21,7 @@
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.person.client</artifactId>\r
         </dependency>\r
+    -->\r
     </dependencies>\r
     \r
     <repositories>\r
diff --git a/services/person/service/.settings/org.maven.ide.eclipse.prefs b/services/person/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index ddebb8b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:35 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 6415b4785654419e69dc66ea2baf2cddd6a51407..03ef415b14e5bf7c227cfd224e3ddc46fb585d61 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/query/.settings/org.maven.ide.eclipse.prefs b/services/query/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93c9e7e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:28 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/query/service/.settings/org.maven.ide.eclipse.prefs b/services/query/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93c9e7e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:28 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index ae65ddee2ae3da6dac656a99d7402637d1e1edfd..666fb035bf39ed2841432f82d1854ca7d0fe498e 100644 (file)
@@ -3,19 +3,8 @@
        <name>org.collectionspace.services.relation</name>\r
        <comment></comment>\r
        <projects>\r
-               <project>org.collectionspace.services.jaxb</project>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -24,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
index 46252a4a1a658aec1e4e134b3bcebf5b0dee1b43..21a9fcf9e93bc5a5a6947a130509808ffb3d3d9b 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/relation/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/relation/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 60695eb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:24 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/.settings/org.maven.ide.eclipse.prefs b/services/relation/3rdparty/nuxeo-platform-cs-relation/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 35aa416..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:27 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/relation/client/.settings/org.maven.ide.eclipse.prefs b/services/relation/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 35aa416..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:27 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/relation/service/.settings/org.maven.ide.eclipse.prefs b/services/relation/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 60695eb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:24 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 84a08b67191f9c27a8f72ec43d18c07527d0ae19..a970c72fb2376353b16781c2b4e4735841353412 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/report/.settings/org.maven.ide.eclipse.prefs b/services/report/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 58071d7c382921da11138232b2c4350c496005a6..887c666a0adc7c62b20fb57eec0268089f3a6313 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/report/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/report/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/report/3rdparty/nuxeo-platform-cs-report/.settings/org.maven.ide.eclipse.prefs b/services/report/3rdparty/nuxeo-platform-cs-report/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/report/client/.settings/org.maven.ide.eclipse.prefs b/services/report/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/report/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/report/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 86abf8e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:47 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/report/service/.settings/org.maven.ide.eclipse.prefs b/services/report/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 1f8dda5c4975407bc8677d015fa790d1b5f9e421..8685ff54f3000f8cc0383ad05c668cc1a5e450f4 100644 (file)
@@ -58,7 +58,7 @@ import javax.ws.rs.core.UriInfo;
 @Produces("application/xml")
 //@Produces("application/xml;charset=UTF-8")
 public class ReportResource extends ResourceBase {
-    private static String REPOSITORY_NAME = JDBCTools.NUXEO_REPOSITORY_NAME;
+    private static String REPOSITORY_NAME = JDBCTools.NUXEO_DATASOURCE_NAME;
     private static String REPORTS_FOLDER = "reports";
     private static String CSID_LIST_SEPARATOR = ",";
     final Logger logger = LoggerFactory.getLogger(ReportResource.class);
index b381395b2bc67514432c0699bc373a8a93927a2d..41d71ea3cdd9536a5e6bd93e88287d7cdc38e8f1 100644 (file)
@@ -56,6 +56,7 @@ import org.collectionspace.services.common.storage.JDBCTools;
 import org.collectionspace.services.jaxb.InvocableJAXBSchema;
 import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;
 import org.collectionspace.services.nuxeo.client.java.RepositoryJavaClientImpl;
+import org.jfree.util.Log;
 import org.nuxeo.ecm.core.api.DocumentModel;
 import org.nuxeo.ecm.core.api.model.PropertyException;
 import org.nuxeo.ecm.core.api.repository.RepositoryInstance;
@@ -70,7 +71,6 @@ import org.slf4j.LoggerFactory;
  */
 public class ReportDocumentModelHandler extends DocHandlerBase<ReportsCommon> {
     private final Logger logger = LoggerFactory.getLogger(ReportDocumentModelHandler.class);
-    private static String REPOSITORY_NAME = JDBCTools.NUXEO_REPOSITORY_NAME;
     private static String REPORTS_FOLDER = "reports";
     private static String CSID_LIST_SEPARATOR = ",";
     
@@ -261,7 +261,20 @@ public class ReportDocumentModelHandler extends DocHandlerBase<ReportsCommon> {
     }
 
     private Connection getConnection() throws NamingException, SQLException {
-       return JDBCTools.getConnection(REPOSITORY_NAME);
+       Connection result = null;
+       
+       ServiceContext ctx = this.getServiceContext();
+       try {
+               String repositoryName = ctx.getRepositoryName();
+               if (repositoryName != null && repositoryName.trim().isEmpty() == false) {
+                       result = JDBCTools.getConnection(JDBCTools.NUXEO_DATASOURCE_NAME, repositoryName);
+               }
+               } catch (Exception e) {
+                       Log.error(e);
+                       throw new NamingException();
+               }
+       
+       return result;
     }
 
 }
index 409bfd5cd9f751bcfe1ac4fefe97eb6cf5e87dde..c215e0590bd07a10b9a18e6d4ac834707eea4dd0 100644 (file)
@@ -57,12 +57,13 @@ public class ReportPostInitHandler extends InitHandler implements IInitHandler {
     /** See the class javadoc for this class: it shows the syntax supported in the configuration params.\r
      */\r
     @Override\r
-    public void onRepositoryInitialized(DataSource dataSource,\r
+    public void onRepositoryInitialized(String dataSourceName,\r
+               String repositoryName,\r
                ServiceBindingType sbt, \r
                List<Field> fields, \r
-               List<Property> properties) throws Exception {\r
+               List<Property> propertyList) throws Exception {\r
         //Check for existing privileges, and if not there, grant them\r
-       for(Property prop:properties) {\r
+       for(Property prop : propertyList) {\r
                if(READ_ROLE_NAME_KEY.equals(prop.getKey())) {\r
                    String value = prop.getValue();\r
                    if(Tools.notEmpty(value) && !readerRoleName.equals(value)){\r
@@ -76,12 +77,16 @@ public class ReportPostInitHandler extends InitHandler implements IInitHandler {
         Statement stmt = null;\r
         String sql = "";\r
         try {\r
-            DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType();\r
+            DatabaseProductType databaseProductType = JDBCTools.getDatabaseProductType(dataSourceName, repositoryName);\r
             if (databaseProductType == DatabaseProductType.MYSQL) {\r
                // Nothing to do: MYSQL already does wildcard grants in init_db.sql\r
             } else if(databaseProductType != DatabaseProductType.POSTGRESQL) {\r
                 throw new Exception("Unrecognized database system " + databaseProductType);\r
             } else {\r
+               //\r
+               // FIXME: REM 12/11/2012 - The local 'stmt' is alway null? An exception will always get thrown inside\r
+               // this clause\r
+               //\r
                 sql = "REVOKE SELECT ON ALL TABLES IN SCHEMA public FROM "+readerRoleName;\r
                     stmt.execute(sql);\r
                 sql = "GRANT SELECT ON ALL TABLES IN SCHEMA public TO "+readerRoleName;\r
diff --git a/services/sdk/.project b/services/sdk/.project
deleted file mode 100644 (file)
index 382f5bf..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<projectDescription>\r
-       <name>org.collectionspace.services.sdk</name>\r
-       <comment></comment>\r
-       <projects>\r
-       </projects>\r
-       <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-       </buildSpec>\r
-       <natures>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-       </natures>\r
-</projectDescription>\r
diff --git a/services/sdk/.settings/org.maven.ide.eclipse.prefs b/services/sdk/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index b78ecd7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Jan 04 16:40:40 PST 2010\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/sdk/sample/.project b/services/sdk/sample/.project
deleted file mode 100644 (file)
index 4aba549..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<projectDescription>\r
-       <name>org.collectionspace.services.client.sample</name>\r
-       <comment></comment>\r
-       <projects>\r
-               <project>org.collectionspace.services.client</project>\r
-               <project>org.collectionspace.services.collectionobject.client</project>\r
-               <project>org.collectionspace.services.collectionobject.jaxb</project>\r
-               <project>org.collectionspace.services.common</project>\r
-       </projects>\r
-       <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-       </buildSpec>\r
-       <natures>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-       </natures>\r
-</projectDescription>\r
diff --git a/services/sdk/sample/.settings/org.maven.ide.eclipse.prefs b/services/sdk/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0624c1a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Sep 16 16:14:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index a51bbe9e74fadb250a1db282c4f5b6135cbd6372..ddf9eb9fa61b980431c91734c1770ad68c1bdb89 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/security/.settings/org.maven.ide.eclipse.prefs b/services/security/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f3ca2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:12 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/security/client/.settings/org.maven.ide.eclipse.prefs b/services/security/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index c9f3ca2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Dec 28 10:22:12 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 7bc666d00c12fa9e14c9db14e0d660e58af7cdc0..dbf94a5899af50aa642322afe3629bbcacbd4b44 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/vocabulary/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index a06eb8da9b1ee1d56ba4f3e58c3c6b5d39cf164f..c8187641e1b320610c242ca9ed4f28d62b4909f3 100644 (file)
@@ -5,16 +5,6 @@
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/vocabulary/3rdparty/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/3rdparty/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 552ddbf..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Oct 06 13:25:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/vocabulary/client/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/client/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 93b6f8a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:30 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/vocabulary/jaxb/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/jaxb/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index d97eeb9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Jan 19 22:49:37 PST 2011\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 474a7ee7755ee8a6912d9503f8605e3312dc8cc7..89c52d5274c758f55f0f79c220a8909579db1dde 100644 (file)
@@ -1,20 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-       <name>org.collectionspace.services.vocabulary.samples</name>\r
+       <name>org.collectionspace.services.vocabulary.client.samples</name>\r
        <comment></comment>\r
        <projects>\r
        </projects>\r
        <buildSpec>\r
-               <buildCommand>\r
-                       <name>org.eclipse.jdt.core.javabuilder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -23,7 +13,5 @@
        </buildSpec>\r
        <natures>\r
                <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.eclipse.jdt.core.javanature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/vocabulary/sample/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index e3f71bd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Mon Nov 23 11:53:50 PST 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
index 86790550456a8f5c9b9e318a8218e87b09f3c21c..e08b6fd1a36566bbea12c7a569e19f792a465a47 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
-               <buildCommand>\r
-                       <name>org.maven.ide.eclipse.maven2Builder</name>\r
-                       <arguments>\r
-                       </arguments>\r
-               </buildCommand>\r
                <buildCommand>\r
                        <name>org.eclipse.m2e.core.maven2Builder</name>\r
                        <arguments>\r
@@ -22,8 +17,7 @@
                </buildCommand>\r
        </buildSpec>\r
        <natures>\r
-               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
-               <nature>org.maven.ide.eclipse.maven2Nature</nature>\r
                <nature>org.eclipse.jdt.core.javanature</nature>\r
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
        </natures>\r
 </projectDescription>\r
diff --git a/services/vocabulary/sample/sample/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/sample/sample/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 0624c1a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Wed Sep 16 16:14:17 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r
diff --git a/services/vocabulary/service/.settings/org.maven.ide.eclipse.prefs b/services/vocabulary/service/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644 (file)
index 95a5ba0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#Fri Sep 11 17:00:29 PDT 2009\r
-activeProfiles=\r
-eclipse.preferences.version=1\r
-fullBuildGoals=process-test-resources\r
-includeModules=false\r
-resolveWorkspaceProjects=true\r
-resourceFilterGoals=process-resources resources\:testResources\r
-skipCompilerPlugin=true\r
-version=1\r