]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4526: Creating a branch for the Apache Tomcat 6 and embedded Nuxeo 5.4.2 upgra...
authorRichard Millet <richard.millet@berkeley.edu>
Wed, 9 Nov 2011 20:28:01 +0000 (20:28 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Wed, 9 Nov 2011 20:28:01 +0000 (20:28 +0000)
362 files changed:
.project
3rdparty/.project
3rdparty/nuxeo/.project
3rdparty/nuxeo/build.xml
3rdparty/nuxeo/nuxeo-platform-collectionspace/pom.xml
3rdparty/nuxeo/nuxeo-platform-quote-api/pom.xml
3rdparty/nuxeo/nuxeo-platform-quote/pom.xml
3rdparty/nuxeo/pom.xml
3rdparty/pom.xml
HelloWorld/HelloWorldNuxeoService/pom.xml
build.properties
pom.xml
services/.project
services/IntegrationTests/pom.xml
services/IntegrationTests/src/test/resources/test-data/xmlreplay/security/2-elmo-permission.xml
services/JaxRsServiceProvider/pom.xml
services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CSpaceResteasyBootstrap.java
services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
services/JaxRsServiceProvider/src/main/webapp/WEB-INF/jboss-web.xml
services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
services/PerformanceTests/pom.xml
services/account/.project
services/account/client/pom.xml
services/account/client/src/main/java/org/collectionspace/services/client/AccountRoleFactory.java
services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountRoleServiceTest.java
services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
services/account/client/src/test/resources/META-INF/persistence.xml
services/account/jaxb/pom.xml
services/account/jaxb/src/main/resources/accounts_common.xsd
services/account/pom.xml
services/account/pstore/pom.xml
services/account/pstore/src/main/resources/db/mysql/account.sql
services/account/service/pom.xml
services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
services/account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.java
services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountRoleDocumentHandler.java
services/acquisition/.project
services/acquisition/3rdparty/.project
services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/pom.xml
services/acquisition/3rdparty/pom.xml
services/acquisition/client/pom.xml
services/acquisition/jaxb/pom.xml
services/acquisition/pom.xml
services/acquisition/service/pom.xml
services/authentication/.project
services/authentication/client/pom.xml
services/authentication/jaxb/pom.xml
services/authentication/pom.xml
services/authentication/pstore/pom.xml
services/authentication/service/pom.xml
services/authentication/service/src/main/java/org/collectionspace/authentication/AuthN.java
services/authentication/service/src/main/java/org/collectionspace/authentication/CSpacePrincipal.java
services/authentication/service/src/main/java/org/collectionspace/authentication/jaas/CSpaceJBossDBLoginModule.java
services/authentication/service/src/main/java/org/collectionspace/authentication/realm/db/CSpaceDbRealm.java
services/authority/jaxb/pom.xml
services/authority/service/pom.xml
services/authorization-mgt/.project
services/authorization-mgt/client/pom.xml
services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionClient.java
services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionFactory.java
services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionProxy.java
services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleFactory.java
services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RolePermissionServiceTest.java
services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
services/authorization-mgt/import/pom.xml
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/driver/AuthorizationSeedDriver.java
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationGen.java
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationSeed.java
services/authorization-mgt/import/src/main/resources/META-INF/persistence.xml
services/authorization-mgt/import/src/main/resources/log4j.properties
services/authorization-mgt/pom.xml
services/authorization-mgt/service/pom.xml
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionResource.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionDocumentHandler.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleDocumentHandler.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleUtil.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleValidatorHandler.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionValidatorHandler.java
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
services/authorization/.project
services/authorization/jaxb/pom.xml
services/authorization/jaxb/src/main/resources/accounts_permissions.xsd
services/authorization/jaxb/src/main/resources/accounts_roles.xsd
services/authorization/jaxb/src/main/resources/authorization_common.xsd
services/authorization/jaxb/src/main/resources/permissions.xsd [deleted file]
services/authorization/jaxb/src/main/resources/permissions_list.xsd [deleted file]
services/authorization/jaxb/src/main/resources/permissions_roles.xsd
services/authorization/jaxb/src/main/resources/roles.xsd
services/authorization/jaxb/src/main/resources/roles_list.xsd
services/authorization/pom.xml
services/authorization/pstore/pom.xml
services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
services/authorization/service/pom.xml
services/authorization/service/src/main/java/org/collectionspace/services/authorization/PermissionActionUtil.java
services/authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java
services/authorization/service/src/main/resources/applicationContext-authorization.xml
services/batch/.project
services/batch/3rdparty/.project
services/batch/3rdparty/nuxeo-platform-cs-batch/pom.xml
services/batch/3rdparty/nuxeo-platform-cs-batch/src/main/resources/OSGI-INF/deployment-fragment.xml
services/batch/3rdparty/pom.xml
services/batch/client/pom.xml
services/batch/jaxb/pom.xml
services/batch/pom.xml
services/batch/service/pom.xml
services/blob/.project
services/blob/3rdparty/.project
services/blob/3rdparty/nuxeo-platform-cs-blob/pom.xml
services/blob/3rdparty/nuxeo-platform-cs-blob/src/main/resources/OSGI-INF/deployment-fragment.xml
services/blob/3rdparty/pom.xml
services/blob/client/pom.xml
services/blob/jaxb/pom.xml
services/blob/pom.xml
services/blob/service/pom.xml
services/client/pom.xml
services/client/src/main/java/org/collectionspace/services/client/PoxPayload.java
services/client/src/main/resources/collectionspace-client.properties
services/collectionobject/.project
services/collectionobject/3rdparty/.project
services/collectionobject/3rdparty/nuxeo-platform-collectionobject-lifesci/pom.xml
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/pom.xml
services/collectionobject/3rdparty/pom.xml
services/collectionobject/client/pom.xml
services/collectionobject/jaxb/pom.xml
services/collectionobject/pom.xml
services/collectionobject/sample/.project
services/collectionobject/sample/pom.xml
services/collectionobject/sample/sample/.classpath
services/collectionobject/sample/sample/.project
services/collectionobject/sample/sample/pom.xml
services/collectionobject/service/pom.xml
services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectValidatorHandler.java
services/common-api/pom.xml
services/common-test/pom.xml
services/common/lib/jpa-upgrade/derby-10.7.1.1.jar [new file with mode: 0644]
services/common/lib/jpa-upgrade/mysql-connector-java-5.1.7-bin.jar [new file with mode: 0644]
services/common/pom.xml
services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceServiceContextListener.java
services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
services/common/src/main/java/org/collectionspace/services/common/config/ServicesConfigReaderImpl.java
services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java
services/common/src/main/java/org/collectionspace/services/common/document/ValidatorHandlerImpl.java
services/common/src/main/java/org/collectionspace/services/common/imaging/nuxeo/NuxeoImageUtils.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/query/nuxeo/QueryManagerNuxeoImpl.java
services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java
services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java
services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaRelationshipStorageClient.java
services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/CommonList.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandlerImpl.java
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClientImpl.java
services/common/src/main/java/org/collectionspace/services/nuxeo/util/NuxeoUtils.java
services/contact/.project
services/contact/3rdparty/.project
services/contact/3rdparty/nuxeo-platform-cs-contact/pom.xml
services/contact/3rdparty/nuxeo-platform-cs-contact/src/main/resources/OSGI-INF/deployment-fragment.xml
services/contact/3rdparty/pom.xml
services/contact/client/pom.xml
services/contact/jaxb/pom.xml
services/contact/pom.xml
services/contact/service/pom.xml
services/dimension/.project
services/dimension/3rdparty/.project
services/dimension/3rdparty/nuxeo-platform-cs-dimension/pom.xml
services/dimension/3rdparty/pom.xml
services/dimension/client/pom.xml
services/dimension/jaxb/pom.xml
services/dimension/pom.xml
services/dimension/service/pom.xml
services/group/.project
services/group/3rdparty/.project
services/group/3rdparty/nuxeo-platform-cs-group/pom.xml
services/group/3rdparty/nuxeo-platform-cs-group/src/main/resources/OSGI-INF/deployment-fragment.xml
services/group/3rdparty/pom.xml
services/group/client/pom.xml
services/group/jaxb/pom.xml
services/group/pom.xml
services/group/service/pom.xml
services/hyperjaxb/pom.xml
services/hyperjaxb/src/main/resources/AbstractCommonList.xsd
services/hyperjaxb/src/main/resources/permissions.xsd [new file with mode: 0644]
services/hyperjaxb/src/main/resources/permissions_list.xsd [new file with mode: 0644]
services/id/.project
services/id/3rdparty/pom.xml
services/id/client/pom.xml
services/id/jaxb/pom.xml
services/id/pom.xml
services/id/service/pom.xml
services/imports/.project
services/imports/3rdparty/.project
services/imports/3rdparty/nuxeo-platform-cs-imports/pom.xml
services/imports/3rdparty/nuxeo-platform-cs-imports/src/main/resources/OSGI-INF/deployment-fragment.xml
services/imports/3rdparty/pom.xml
services/imports/jaxb/pom.xml
services/imports/pom.xml
services/imports/service/pom.xml
services/imports/service/src/main/java/org/collectionspace/services/imports/ImportsResource.java
services/imports/service/src/main/java/org/collectionspace/services/imports/nuxeo/ImportCommand.java
services/intake/.project
services/intake/3rdparty/.project
services/intake/3rdparty/nuxeo-platform-cs-intake/pom.xml
services/intake/3rdparty/pom.xml
services/intake/client/pom.xml
services/intake/jaxb/pom.xml
services/intake/pom.xml
services/intake/service/pom.xml
services/jaxb/pom.xml
services/loanin/.project
services/loanin/3rdparty/.project
services/loanin/3rdparty/nuxeo-platform-cs-loanin/pom.xml
services/loanin/3rdparty/pom.xml
services/loanin/client/pom.xml
services/loanin/jaxb/pom.xml
services/loanin/pom.xml
services/loanin/service/pom.xml
services/loanout/.project
services/loanout/3rdparty/.project
services/loanout/3rdparty/nuxeo-platform-cs-loanout/pom.xml
services/loanout/3rdparty/pom.xml
services/loanout/client/pom.xml
services/loanout/jaxb/pom.xml
services/loanout/pom.xml
services/loanout/service/pom.xml
services/location/.project
services/location/3rdparty/.project
services/location/3rdparty/nuxeo-platform-cs-location/pom.xml
services/location/3rdparty/nuxeo-platform-cs-location/src/main/resources/OSGI-INF/deployment-fragment.xml
services/location/3rdparty/pom.xml
services/location/client/pom.xml
services/location/jaxb/pom.xml
services/location/pom.xml
services/location/service/pom.xml
services/media/.project
services/media/3rdparty/.project
services/media/3rdparty/nuxeo-platform-cs-media/pom.xml
services/media/3rdparty/pom.xml
services/media/client/pom.xml
services/media/client/src/main/java/org/collectionspace/services/client/MediaClient.java
services/media/client/src/main/java/org/collectionspace/services/client/MediaProxy.java
services/media/client/src/test/java/org/collectionspace/services/client/test/MediaServiceTest.java
services/media/jaxb/pom.xml
services/media/pom.xml
services/media/service/pom.xml
services/movement/.project
services/movement/3rdparty/.project
services/movement/3rdparty/nuxeo-platform-cs-movement/pom.xml
services/movement/3rdparty/pom.xml
services/movement/client/pom.xml
services/movement/jaxb/pom.xml
services/movement/pom.xml
services/movement/service/pom.xml
services/note/.project
services/note/3rdparty/.project
services/note/3rdparty/nuxeo-platform-cs-note/pom.xml
services/note/3rdparty/nuxeo-platform-cs-note/src/main/resources/OSGI-INF/deployment-fragment.xml
services/note/3rdparty/pom.xml
services/note/client/pom.xml
services/note/jaxb/pom.xml
services/note/pom.xml
services/note/service/pom.xml
services/objectexit/.project
services/objectexit/3rdparty/.project
services/objectexit/3rdparty/nuxeo-platform-cs-objectexit/pom.xml
services/objectexit/3rdparty/nuxeo-platform-cs-objectexit/src/main/resources/OSGI-INF/deployment-fragment.xml
services/objectexit/3rdparty/pom.xml
services/objectexit/client/pom.xml
services/objectexit/jaxb/pom.xml
services/objectexit/pom.xml
services/objectexit/service/pom.xml
services/organization/.project
services/organization/3rdparty/.project
services/organization/3rdparty/nuxeo-platform-cs-organization/pom.xml
services/organization/3rdparty/nuxeo-platform-cs-organization/src/main/resources/OSGI-INF/deployment-fragment.xml
services/organization/3rdparty/pom.xml
services/organization/client/pom.xml
services/organization/jaxb/pom.xml
services/organization/pom.xml
services/organization/sample/.project
services/organization/sample/pom.xml
services/organization/sample/sample/.classpath
services/organization/sample/sample/.project
services/organization/sample/sample/pom.xml
services/organization/service/pom.xml
services/person/.project
services/person/3rdparty/.project
services/person/3rdparty/nuxeo-platform-cs-person/pom.xml
services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/OSGI-INF/deployment-fragment.xml
services/person/3rdparty/pom.xml
services/person/client/pom.xml
services/person/jaxb/pom.xml
services/person/pom.xml
services/person/sample/.project
services/person/sample/sample/.classpath
services/person/sample/sample/.project
services/person/sample/sample/pom.xml
services/person/service/pom.xml
services/pom.xml
services/query/.project
services/query/pom.xml
services/query/service/pom.xml
services/relation/.project
services/relation/3rdparty/.project
services/relation/3rdparty/nuxeo-platform-cs-relation/pom.xml
services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml
services/relation/3rdparty/pom.xml
services/relation/client/pom.xml
services/relation/pom.xml
services/relation/service/pom.xml
services/report/.project
services/report/3rdparty/.project
services/report/3rdparty/nuxeo-platform-cs-report/pom.xml
services/report/3rdparty/nuxeo-platform-cs-report/src/main/resources/OSGI-INF/deployment-fragment.xml
services/report/3rdparty/pom.xml
services/report/client/pom.xml
services/report/jaxb/pom.xml
services/report/pom.xml
services/report/service/pom.xml
services/report/service/src/main/java/org/collectionspace/services/report/nuxeo/ReportPostInitHandler.java
services/sdk/pom.xml
services/sdk/sample/pom.xml
services/security/.project
services/security/client/pom.xml
services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java
services/security/client/src/test/java/org/collectionspace/services/security/client/test/MultiTenancyTest.java
services/security/pom.xml
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/pom.xml
services/taxonomy/3rdparty/nuxeo-platform-cs-taxonomy/src/main/resources/OSGI-INF/deployment-fragment.xml
services/taxonomy/3rdparty/pom.xml
services/taxonomy/client/pom.xml
services/taxonomy/jaxb/pom.xml
services/taxonomy/pom.xml
services/taxonomy/service/pom.xml
services/vocabulary/.project
services/vocabulary/3rdparty/.project
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/pom.xml
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/OSGI-INF/deployment-fragment.xml
services/vocabulary/3rdparty/pom.xml
services/vocabulary/client/pom.xml
services/vocabulary/jaxb/pom.xml
services/vocabulary/pom.xml
services/vocabulary/sample/.project
services/vocabulary/sample/sample/.classpath
services/vocabulary/sample/sample/.project
services/vocabulary/sample/sample/pom.xml
services/vocabulary/service/pom.xml
services/workflow/3rdparty/nuxeo-platform-cs-workflow/pom.xml
services/workflow/3rdparty/pom.xml
services/workflow/client/pom.xml
services/workflow/jaxb/pom.xml
services/workflow/pom.xml
services/workflow/service/pom.xml
src/main/resources/config/nuxeo.conf

index dd893df639981a4a139bbb4e87743f28f6f63258..aee48444d363d848a9e8e154c13c1b49156e33bc 100644 (file)
--- a/.project
+++ b/.project
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 11edb7ec5a947310495e72695dad453eda61c2cd..7abb84ea5598ab83dbccbf0fbdd17af92a912346 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 2541ff6cc4b9e737ff30d1f7ef851ffe36f1608e..b620a1410b21fbd1da085b509257339c31355fa8 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 7bb24cf08392e838dad1621581918169d545e3e8..1a6637ec1c93a703c26deb90e86428b51c894b71 100644 (file)
 \r
     <target name="deploy" depends="package"\r
        description="deploy nuxeo client libs to ${jboss.server.cspace}">\r
-        <copy todir="${jboss.server.cspace}/nuxeo-client/lib">\r
-            <fileset dir="${basedir}/nuxeo-client/lib">\r
-                <include name="*.jar"/>\r
-            </fileset>\r
-            <fileset dir="${basedir}/nuxeo-client/lib/${nuxeo.release}">\r
-                <include name="*.jar"/>\r
-            </fileset>\r
+        <copy todir="${jboss.server.cspace}/nuxeo-client">\r
+            <fileset dir="${basedir}/nuxeo-client/lib/${nuxeo.release}"/>\r
         </copy>\r
         <ant antfile="nuxeo-platform-collectionspace/build.xml" target="deploy" inheritall="false"/>\r
+       <!--\r
                <ant antfile="nuxeo-platform-quote/build.xml" target="deploy" inheritall="false"/>\r
                <ant antfile="nuxeo-platform-quote-api/build.xml" target="deploy" inheritall="false"/>\r
+               -->\r
         <ant antfile="nuxeo-database-templates/build.xml" target="deploy" inheritall="false"/>\r
     </target>\r
 \r
index 688330e6b9bc24614dd8612abc444156305e06aa..9a97bab141af460b149d9da654545096eec77150 100644 (file)
@@ -5,7 +5,7 @@
   <parent>\r
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.3rdparty.nuxeo</artifactId>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
   </parent>\r
 \r
   <modelVersion>4.0.0</modelVersion>\r
index 49aa280b6ddcaa10e415eed1bb9dce0857bd49c7..bbe97dcba8790fd8c1f401212cad699583923c29 100644 (file)
@@ -5,7 +5,7 @@
        <parent>\r
                <groupId>org.collectionspace.services</groupId>\r
                <artifactId>org.collectionspace.services.3rdparty.nuxeo</artifactId>\r
-               <version>1.12-SNAPSHOT</version>\r
+               <version>1.14-SNAPSHOT</version>\r
        </parent>\r
 \r
        <groupId>org.collectionspace.services</groupId>\r
index 56ee1eb93c9f5d1b36f595335fd0effa1057b72d..4930589d9b2d031c3687364a31d759ed27c83e36 100644 (file)
@@ -5,7 +5,7 @@
        <parent>\r
                <groupId>org.collectionspace.services</groupId>\r
                <artifactId>org.collectionspace.services.3rdparty.nuxeo</artifactId>\r
-               <version>1.12-SNAPSHOT</version>\r
+               <version>1.14-SNAPSHOT</version>\r
        </parent>\r
 \r
   <groupId>org.collectionspace.services</groupId>\r
@@ -75,8 +75,8 @@
       <artifactId>jms</artifactId>\r
     </dependency>\r
     <dependency>\r
-      <groupId>jboss</groupId>\r
-      <artifactId>jboss-j2ee</artifactId>\r
+         <groupId>org.jboss.javaee</groupId>\r
+         <artifactId>jboss-javaee</artifactId>   \r
     </dependency>\r
     \r
     <dependency>\r
     <dependency>\r
       <groupId>org.nuxeo.ecm.core</groupId>\r
       <artifactId>nuxeo-core-jcr-connector</artifactId>\r
-      <version>${nuxeo.core.version}</version>\r
+      <version>1.6.2</version>\r
       <scope>test</scope>\r
     </dependency>\r
     <dependency>\r
       <groupId>org.nuxeo.ecm.core</groupId>\r
       <artifactId>nuxeo-core-jcr-connector-test</artifactId>\r
-      <version>${nuxeo.core.version}</version>\r
+      <version>1.6.2</version>\r
       <scope>test</scope>\r
     </dependency>\r
     <dependency>\r
index cf106f1b615e84f5bc496babfcc59867c807e3ec..2b0a710574c4c3d50a8a9f81aefc1f22d657322a 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.3rdparty</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
         </dependency>\r
         <!-- jboss -->\r
         <dependency>\r
-            <groupId>jboss</groupId>\r
-            <artifactId>jboss-remoting</artifactId>\r
-            <version>2.2.2.SP8</version>\r
-            <scope>provided</scope>\r
+               <groupId>org.jboss.remoting</groupId>\r
+               <artifactId>jboss-remoting</artifactId>\r
+        <scope>provided</scope>\r
         </dependency>\r
     </dependencies>\r
 \r
index 96e131cdd864a09ed27a1a693f2680e69b252d89..34ed2cf0748cd2b7b18595d15c5e2d139530e0b7 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <artifactId>org.collectionspace.services</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 2d0b467a25a377fef753f09a36866714e05d56d4..d0363e4867033bb62bc6d5b0f2302f57c44bef65 100644 (file)
             <url>http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin</url>\r
         </repository>\r
 \r
-        <repository>\r
-            <id>maven-restlet</id>\r
-            <name>Public online Restlet repository</name>\r
-            <url>http://maven.restlet.org</url>\r
-        </repository>\r
-        \r
         <repository>\r
             <id>cspace.local.nuxeo</id>\r
             <url>${nuxeo.local.repo.dir}</url>\r
         </dependency>\r
 -->\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
         <dependency>\r
             <groupId>jaxen</groupId>\r
             <artifactId>jaxen</artifactId>\r
index 73a894d285b1b2b0d9f469d2f862e2b2c04915b3..7aa9c613a8ec3965cb0efa032eecd5cb887d1f49 100644 (file)
@@ -1,6 +1,6 @@
 host=127.0.0.1\r
 #cspace\r
-release.version=1.12\r
+release.version=1.14\r
 cspace.release=${release.version}-SNAPSHOT\r
 cspace.services.release=cspace-services-${cspace.release}\r
 cspace.services.war=cspace-services.war\r
@@ -9,9 +9,10 @@ domain.nuxeo=default
 \r
 #nuxeo\r
 #nuxeo.release=5.2.M4\r
-nuxeo.release=5.3.2\r
+#nuxeo.release=5.3.2\r
+nuxeo.release=5.4.2-HF05\r
 nuxeo.ear=nuxeo.ear\r
-nuxeo.system=${nuxeo.ear}/system\r
+nuxeo.system=${nuxeo.ear}/bundles\r
 nuxeo.plugins=${nuxeo.ear}/plugins\r
 nuxeo.templates=templates\r
 \r
@@ -38,7 +39,8 @@ dist.deploy.nuxeo.plugins=${dist.deploy.nuxeo}/${nuxeo.plugins}
 \r
 #jboss\r
 #assumption: both nuxeo and cspace domains are using the same JBoss installation\r
-jboss.release=jboss-4.2.3.GA\r
+#jboss.release=jboss-4.2.3.GA\r
+jboss.release=jboss-5.1.0.GA\r
 jboss.dir=${env.JBOSS_HOME}\r
 jboss.home=${jboss.dir}\r
 jboss.bin=${jboss.home}/bin\r
@@ -69,29 +71,31 @@ nuxeo.main.config.file=${jboss.bin}/nuxeo.conf
 #database - select one or the other (not both!), and then uncomment the\r
 # appropriate section below the common settings\r
 #db=mysql|postgresql\r
-db=postgresql\r
+db=mysql\r
 #For mysql, uncomment this, and comment out postgres section\r
-#db.port=3306\r
-#db.driver.jar=${jboss.lib.cspace}/mysql-connector-java-5.1.7-bin.jar\r
-#db.jdbc.driver.class=com.mysql.jdbc.Driver\r
-#db.dialect=org.hibernate.dialect.MySQLDialect\r
-#db.typemapping=mySQL\r
-#db.exceptionsorter=org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter\r
-#db.spring.acl.classIdentityQuery=SELECT @@IDENTITY\r
-#db.spring.acl.sidIdentityQuery=SELECT @@IDENTITY\r
+db.port=3306\r
+db.driver.jar=${jboss.lib.cspace}/mysql-connector-java-5.1.7-bin.jar\r
+db.jdbc.driver.class=com.mysql.jdbc.Driver\r
+db.dialect=org.hibernate.dialect.MySQLDialect\r
+db.typemapping=mySQL\r
+db.exceptionsorter=org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter\r
+db.spring.acl.classIdentityQuery=SELECT @@IDENTITY\r
+db.spring.acl.sidIdentityQuery=SELECT @@IDENTITY\r
 \r
 #For postgresql, uncomment this, and comment out mysql section\r
-db.port=5432\r
-db.driver.jar=${jboss.lib.cspace}/postgresql-8.4-702.jdbc4.jar\r
-db.jdbc.driver.class=org.postgresql.Driver\r
-db.dialect=org.hibernate.dialect.PostgreSQLDialect\r
-db.typemapping=PostgreSQL 8.0\r
+#db.port=5432\r
+#db.driver.jar=${jboss.lib.cspace}/postgresql-8.4-702.jdbc4.jar\r
+#db.jdbc.driver.class=org.postgresql.Driver\r
+#db.dialect=org.hibernate.dialect.PostgreSQLDialect\r
+#db.typemapping=PostgreSQL 8.0\r
 # Should be org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter\r
 # but current JBoss does not seem to include it...\r
-db.exceptionsorter= \r
-db.spring.acl.classIdentityQuery=select currval(pg_get_serial_sequence('acl_class', 'id'))\r
-db.spring.acl.sidIdentityQuery=select currval(pg_get_serial_sequence('acl_sid', 'id'))\r
+#db.exceptionsorter= \r
+#db.spring.acl.classIdentityQuery=select currval(pg_get_serial_sequence('acl_class', 'id'))\r
+#db.spring.acl.sidIdentityQuery=select currval(pg_get_serial_sequence('acl_sid', 'id'))\r
 \r
+#Hibernate properties for Ant and Maven plugins\r
+hibernate.dialect=${db.dialect}\r
 \r
 #database common settings\r
 db.script.dir=${jboss.server.cspace}/cspace/services/db/${db}\r
diff --git a/pom.xml b/pom.xml
index d595e8c9d59335abc9f4dea83d66312a033c950d..fe5b7a62f73960dbd218bb57c79b968c48a808f7 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -6,18 +6,19 @@
     <modelVersion>4.0.0</modelVersion>\r
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services</artifactId>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     <packaging>pom</packaging>\r
     <name>services</name>\r
 \r
     <properties>\r
-        <jboss.version>4.2.3.GA</jboss.version>\r
+        <jboss.version>5.1.0.GA</jboss.version>\r
         <jboss.ejb.version>3.0</jboss.ejb.version>\r
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
-        <nuxeo.platform.version>5.3.2</nuxeo.platform.version>\r
-        <nuxeo.core.version>1.6.2</nuxeo.core.version>\r
-        <cspace.services.version>1.12-SNAPSHOT</cspace.services.version>\r
-        <cspace.services.client.version>1.12-SNAPSHOT</cspace.services.client.version>\r
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>             \r
+        <nuxeo.shell.version>5.4.2-HF05</nuxeo.shell.version>\r
+               <nuxeo.platform.version>5.4.2-HF05</nuxeo.platform.version>\r
+        <nuxeo.core.version>5.4.2-HF05</nuxeo.core.version>\r
+        <cspace.services.version>1.14-SNAPSHOT</cspace.services.version>\r
+        <cspace.services.client.version>1.14-SNAPSHOT</cspace.services.client.version>\r
     </properties>\r
 \r
     <distributionManagement>\r
             </snapshots>\r
         </repository>-->\r
 \r
-        <repository>\r
-            <id>maven-restlet</id>\r
-            <name>Public online Restlet repository</name>\r
-            <url>http://maven.restlet.org</url>\r
-            <snapshots>\r
-                <enabled>false</enabled>\r
-            </snapshots>\r
-        </repository>\r
-\r
         <repository>\r
             <id>jboss.org</id>\r
-            <url>http://repository.jboss.org/maven2</url>\r
+            <url>https://repository.jboss.org/nexus</url>\r
             <snapshots>\r
                 <enabled>false</enabled>\r
             </snapshots>\r
         <!-- some security binaries available under .com only perhaps due to licensing issues -->\r
         <repository>\r
             <id>jboss.com</id>\r
-            <url>http://repository.jboss.com/maven2</url>\r
+            <url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>\r
             <snapshots>\r
                 <enabled>false</enabled>\r
             </snapshots>\r
             </releases>\r
             <snapshots>\r
                 <enabled>false</enabled>\r
-                <updatePolicy>never</updatePolicy>\r
+                <!--<updatePolicy>never</updatePolicy>-->\r
             </snapshots>\r
         </repository>\r
 \r
             <url>http://maven.nuxeo.org/public</url>\r
             <!-- Nuxeo Releases Repository is disabled. -->\r
             <releases>\r
-                <enabled>false</enabled>\r
+                <enabled>true</enabled>\r
             </releases>\r
             <snapshots>\r
                 <enabled>false</enabled>\r
         <version>1.1</version>\r
         <scope>provided</scope>\r
       </dependency>\r
-      <dependency>\r
-        <groupId>jboss</groupId>\r
-        <artifactId>jboss-annotations-ejb3</artifactId>\r
-        <version>3.0-RC8</version>\r
-        <scope>provided</scope>\r
-      </dependency>\r
+         \r
+       <dependency>\r
+               <groupId>org.jboss.remoting</groupId>\r
+               <artifactId>jboss-remoting</artifactId>\r
+               <version>2.5.1</version>\r
+               <scope>provided</scope>\r
+       </dependency>\r
+       <dependency>\r
+               <groupId>jboss</groupId>\r
+               <artifactId>jboss-annotations-ejb3</artifactId>\r
+               <version>3.0-RC8</version>\r
+               <scope>provided</scope>\r
+       </dependency>     \r
+       <dependency>\r
+               <groupId>org.jboss.javaee</groupId>\r
+               <artifactId>jboss-javaee</artifactId>\r
+               <version>5.0.1.GA</version>\r
+               <scope>provided</scope>\r
+       </dependency>\r
+       \r
+       <!--\r
       <dependency>\r
         <groupId>jboss</groupId>\r
         <artifactId>jboss-j2ee</artifactId>\r
         <version>${jboss.version}</version>\r
         <scope>provided</scope>\r
       </dependency>\r
+         -->\r
       <dependency>\r
         <groupId>javax.ejb</groupId>\r
         <artifactId>ejb-api</artifactId>\r
index 10342ad48579aec96f713ed054a6a536e3380488..ca988923dde5ddab0bd9ad127a12c31420329df4 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 6ed6de24cd24ae10ec02cdea2dc3cd52efad494f..2dc4556b5d2d1ba482139d70b9a68e0a836eb623 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             <version>${project.version}</version>\r
         </dependency>        \r
 <!-- External dependencies -->\r
+        <dependency>\r
+                       <groupId>commons-cli</groupId>\r
+                       <artifactId>commons-cli</artifactId>\r
+                       <version>1.2</version>\r
+        </dependency>\r
         <dependency>\r
             <groupId>org.testng</groupId>\r
             <artifactId>testng</artifactId>\r
index 8396775f12fe6391c7e8ae9e304d519cc2414b40..25f05dff121d1e68672c653d826ce252a9db7bb0 100755 (executable)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
-<ns2:permission   xmlns:ns2="http://collectionspace.org/services/authorization">\r
+<ns3:permission xmlns:ns2="http://collectionspace.org/services/hyperjaxb"\r
+    xmlns:ns3="http://collectionspace.org/services/authorization/perms">\r
   <resourceName>dimensions</resourceName>\r
   <action>\r
     <name>READ</name>\r
   </action>\r
   <effect>PERMIT</effect>\r
-</ns2:permission>\r
-\r
+</ns3:permission>\r
index 5ec81e874770044770d2a21ab04dae802b0d8c9e..0ba93f31497a386d5105a131fbda5e0bfbad1a87 100644 (file)
@@ -4,11 +4,10 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
-    <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.jaxrs.provider</artifactId>\r
     <name>services.jaxrs.provider</name>\r
     <packaging>war</packaging>\r
             <artifactId>org.collectionspace.services.authorization.service</artifactId>\r
             <version>${project.version}</version>\r
             <scope>provided</scope>\r
+            <exclusions>\r
+               <exclusion>\r
+                       <artifactId>jboss-logging-log4j</artifactId>\r
+                       <groupId>org.jboss.logging</groupId>\r
+               </exclusion>\r
+            </exclusions>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.common</artifactId>\r
             <version>${project.version}</version>\r
+            <exclusions>\r
+               <exclusion>\r
+                       <artifactId>servlet-api-2.5</artifactId>\r
+                       <groupId>org.mortbay.jetty</groupId>\r
+               </exclusion>\r
+            </exclusions>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.authorization-mgt.service</artifactId>\r
             <version>${project.version}</version>\r
                        <exclusions>\r
-                <exclusion>  <!-- declare the exclusion here -->\r
+               <exclusion>\r
+                       <artifactId>jboss-logging-log4j</artifactId>\r
+                       <groupId>org.jboss.logging</groupId>\r
+               </exclusion>\r
+                <exclusion>\r
                     <groupId>org.collectionspace.services</groupId>\r
                     <artifactId>org.collectionspace.services.authorization-mgt.import</artifactId>\r
                 </exclusion>\r
         <dependency>\r
             <groupId>org.jboss.resteasy</groupId>\r
             <artifactId>resteasy-jaxrs</artifactId>\r
-            <exclusions>\r
-                <exclusion>\r
-                    <groupId>tjws</groupId>\r
-                    <artifactId>webserver</artifactId>\r
-                </exclusion>\r
-            </exclusions>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.jboss.resteasy</groupId>\r
             <scope>provided</scope>\r
         </dependency>\r
         <!-- nuxeo -->\r
-\r
+               <dependency>\r
+                       <groupId>org.nuxeo.shell</groupId>\r
+                       <artifactId>nuxeo-shell-ejb-core</artifactId>\r
+            <version>${nuxeo.shell.version}</version>\r
+            <exclusions>\r
+               <exclusion>\r
+                       <artifactId>jruby</artifactId>\r
+                       <groupId>org.jruby</groupId>\r
+               </exclusion>\r
+            </exclusions>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.nuxeo.shell</groupId>\r
+                       <artifactId>nuxeo-shell-ejb-servlet-handlers</artifactId>\r
+            <version>${nuxeo.shell.version}</version>\r
+               </dependency>\r
         <dependency>\r
             <groupId>org.nuxeo.common</groupId>\r
             <artifactId>nuxeo-common</artifactId>\r
             <version>${nuxeo.core.version}</version>\r
-            <scope>provided</scope>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.nuxeo.runtime</groupId>\r
             <artifactId>nuxeo-runtime</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>            \r
+        </dependency>\r
+        <dependency>\r
+            <groupId>org.nuxeo.ecm.core</groupId>\r
+            <artifactId>nuxeo-core</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+                       <exclusions>\r
+                <exclusion>\r
+                    <groupId>xerces</groupId>\r
+                    <artifactId>xercesImpl</artifactId>\r
+                </exclusion>\r
+            </exclusions> \r
         </dependency>\r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-api</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>            \r
+        </dependency>\r
+        <dependency>\r
+            <groupId>org.nuxeo.ecm.core</groupId>\r
+            <artifactId>nuxeo-core-convert</artifactId>\r
+                       <version>${nuxeo.core.version}</version>            \r
+        </dependency>\r
+        <dependency>\r
+            <groupId>org.nuxeo.ecm.core</groupId>\r
+            <artifactId>nuxeo-core-storage-sql-extensions</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-client</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>\r
+            <exclusions>\r
+                <exclusion>\r
+                    <groupId>org.jboss.jbossas</groupId>\r
+                    <artifactId>jboss-as-jbossas-remoting</artifactId>\r
+                </exclusion>\r
+            </exclusions>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-io</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>            \r
+        </dependency>\r
+<!--         \r
+        <dependency>\r
+                 <groupId>org.nuxeo.runtime</groupId>\r
+                 <artifactId>nuxeo-runtime-scripting</artifactId>\r
+                 <version>${nuxeo.core.version}</version>                \r
+        </dependency>\r
+ -->        \r
+        <dependency>\r
+                       <groupId>org.nuxeo.runtime</groupId>\r
+                       <artifactId>nuxeo-runtime-jtajca</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
         </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.runtime</groupId>\r
+                       <artifactId>nuxeo-runtime-datasource</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-usermanager-api</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-api</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-login</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-imaging-core</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-imaging-preview</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+                       <exclusions>\r
+                               <exclusion>\r
+                                       <artifactId>jboss-seam-pdf</artifactId>\r
+                                       <groupId>org.jboss.seam</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>jboss-seam-rss</artifactId>\r
+                                       <groupId>org.jboss.seam</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>jboss-seam-excel</artifactId>\r
+                                       <groupId>org.jboss.seam</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>nuxeo-platform-ui-web</artifactId>\r
+                                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>xercesImpl</artifactId>\r
+                                       <groupId>xerces</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>servlet-api</artifactId>\r
+                                       <groupId>javax.servlet</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>oauth-httpclient3</artifactId>\r
+                                       <groupId>net.oauth.core</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>oauth-consumer</artifactId>\r
+                                       <groupId>net.oauth.core</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>oauth-provider</artifactId>\r
+                                       <groupId>net.oauth.core</groupId>\r
+                               </exclusion>\r
+                               <exclusion>\r
+                                       <artifactId>oauth</artifactId>\r
+                                       <groupId>net.oauth.core</groupId>\r
+                               </exclusion>\r
+                       </exclusions>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.nuxeo.ecm.platform</groupId>\r
+                       <artifactId>nuxeo-platform-audit-api</artifactId>\r
+                       <version>${nuxeo.core.version}</version>\r
+        </dependency>\r
+        <!-- \r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-facade</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>\r
+                       <scope>provided</scope>\r
+                       <exclusions>\r
+                <exclusion>\r
+                    <groupId>xerces</groupId>\r
+                    <artifactId>xercesImpl</artifactId>\r
+                </exclusion>\r
+            </exclusions> \r
         </dependency>\r
+         -->\r
         <dependency>\r
             <groupId>org.nuxeo.runtime</groupId>\r
             <artifactId>nuxeo-runtime-osgi</artifactId>\r
-                                               <version>${nuxeo.core.version}</version>            \r
+                       <version>${nuxeo.core.version}</version>            \r
         </dependency>\r
         <dependency>\r
             <groupId>org.osgi</groupId>\r
             <artifactId>testng</artifactId>\r
             <version>5.6</version>\r
         </dependency>\r
+        <!-- Possibly not needed.  Please experiment and remove unnecessary artifacts -->\r
+        <dependency>\r
+                       <groupId>javax.security</groupId>\r
+                       <artifactId>jaas</artifactId>\r
+                       <version>1.0.01</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>wutka-dtdparser</groupId>\r
+                       <artifactId>dtdparser121</artifactId>\r
+                       <version>1.2.1</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>oswego-concurrent</groupId>\r
+                       <artifactId>concurrent</artifactId>\r
+                       <version>1.3.4-jboss-update1</version>\r
+        </dependency>\r
+        <dependency>\r
+                 <groupId>trove</groupId>\r
+                 <artifactId>trove</artifactId>\r
+                 <version>2.1.1</version>\r
+        </dependency>\r
+        <dependency>\r
+                 <groupId>qdox</groupId>\r
+                 <artifactId>qdox</artifactId>\r
+                 <version>1.6.1</version>\r
+               </dependency>\r
+        <dependency>\r
+                 <groupId>apache-xerces</groupId>\r
+                 <artifactId>xml-apis</artifactId>\r
+                 <version>2.9.1</version>\r
+        </dependency>\r
+        <dependency>\r
+                 <groupId>org.apache</groupId>\r
+                 <artifactId>xmlsec</artifactId>\r
+                 <version>1.4.2</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.apache.bcel</groupId>\r
+                       <artifactId>bcel</artifactId>\r
+                       <version>5.1</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.apache.ant</groupId>\r
+                       <artifactId>ant</artifactId>\r
+                       <version>1.7.0</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.apache.geronimo.components</groupId>\r
+                       <artifactId>geronimo-transaction</artifactId>\r
+                       <version>2.1.3-NX1</version>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.apache.geronimo.components</groupId>\r
+                       <artifactId>geronimo-connector</artifactId>\r
+                       <version>2.1.3-NX1</version>\r
+        </dependency>\r
     </dependencies>\r
 \r
     <build>\r
index 15dac1c7860dc71bb5a65811b4d5a33cef4bd8e0..c7fcf779079feb75ef3fad02caed4edf463a4cba 100644 (file)
@@ -1,14 +1,38 @@
 package org.collectionspace.services.jaxrs;\r
 \r
+import javax.servlet.ServletContext;\r
 import javax.servlet.ServletContextEvent;\r
 \r
 import org.jboss.resteasy.core.Dispatcher;\r
 import org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap;\r
 import org.collectionspace.services.common.ResourceMap;\r
+import org.collectionspace.services.common.ServiceMain;\r
 \r
 public class CSpaceResteasyBootstrap extends ResteasyBootstrap {\r
        \r
+//     private static final String \r
        public void  contextInitialized(ServletContextEvent event) {\r
+       if (true) {\r
+               System.out.print("Pausing 1 seconds in RESTEasy bootstrap for you to attached the debugger");\r
+               long startTime, currentTime;\r
+               currentTime = startTime = System.currentTimeMillis();\r
+               long stopTime = startTime + 1 * 1000; //5 seconds\r
+               do {\r
+                       if (currentTime % 1000 == 0) {\r
+                               System.out.print(".");\r
+                       }\r
+                       currentTime = System.currentTimeMillis();\r
+               } while (currentTime < stopTime);\r
+                       \r
+               System.out.println();\r
+               System.out.println("Resuming RESTEasy bootstrap initialization.");\r
+       }\r
+               \r
+       // Save a copy of the ServletContext inside our ServiceMain singleton\r
+               ServletContext servletContext = event.getServletContext();\r
+               ServiceMain.getInstance(servletContext); //First access causes initialization of the Services' main class\r
+               \r
+               // This call to super instantiates and initializes our JAX-RS application class (org.collectionspace.services.jaxrs.CollectionSpaceJaxRsApplication)\r
                super.contextInitialized(event);\r
                CollectionSpaceJaxRsApplication app = \r
                        (CollectionSpaceJaxRsApplication)deployment.getApplication();\r
index 60e2933454dda80b1130d5a3e858b946e104ddc4..7abd3df3363a937dd4250ca2f1643b2f16239b14 100644 (file)
@@ -50,6 +50,7 @@ import org.collectionspace.services.workflow.WorkflowResource;
 
 //import org.collectionspace.services.query.QueryResource;
 
+import javax.servlet.ServletContext;
 import javax.ws.rs.core.Application;
 import javax.ws.rs.core.Context;
 
@@ -85,6 +86,7 @@ public class CollectionSpaceJaxRsApplication extends Application
     private Set<Object> singletons = new HashSet<Object>();
     private Set<Class<?>> empty = new HashSet<Class<?>>();    
     private ResourceMap resourceMap = new ResourceMapImpl();
+    private ServletContext servletContext = null;
 
     public CollectionSpaceJaxRsApplication() {         
        //
@@ -146,5 +148,13 @@ public class CollectionSpaceJaxRsApplication extends Application
     public ResourceMap getResourceMap() {
         return resourceMap;
     }
+    
+    public void setServletContext(ServletContext servletContext) {
+       this.servletContext = servletContext;
+    }
+    
+    public ServletContext getServletContext() {
+       return this.servletContext;
+    }
 }
 
index 9bed0370d3a30b2458c2731a990fad455fa14381..b9b4a5ecc22f055c2ae41685a7b2b0cdfcf60cd6 100644 (file)
@@ -9,8 +9,8 @@
         <class>org.collectionspace.services.account.AccountTenant</class>
         <class>org.collectionspace.services.account.Status</class>
         <class>org.collectionspace.services.authentication.User</class>
-        <class>org.collectionspace.services.authorization.Permission</class>
-        <class>org.collectionspace.services.authorization.PermissionAction</class>
+        <class>org.collectionspace.services.authorization.perms.Permission</class>
+        <class>org.collectionspace.services.authorization.perms.PermissionAction</class>
         <class>org.collectionspace.services.authorization.PermissionRoleRel</class>
         <class>org.collectionspace.services.authorization.Role</class>
         <class>org.collectionspace.services.authorization.AccountRoleRel</class>
index 2dddc9661e80596bb81e405602e32cb7552cf3c7..f9d978f1b0fd2ebd959fc8ce5ce8f1d5cdd76a4b 100644 (file)
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <jboss-web>\r
-  <!-- All secure web resources will use this security domain -->\r
+   <class-loading java2ClassLoadingCompliance="true"> \r
+   </class-loading>\r
+   <!-- All secure web resources will use this security domain -->\r
     <security-domain>java:/jaas/cspace</security-domain>\r
     <context-root>/cspace-services</context-root>\r
     <!--resource-ref>\r
index 079bb6bc5043c548d42b99bd4490f64d6d428071..5eb7dbdefe57021ece01cdf9e84c9db9f0adec07 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">\r
 <!--\r
     Document   : web.xml\r
     Created on : May 19, 2009, 1:31 PM\r
@@ -8,13 +7,13 @@
     Description:\r
         service layer web application\r
 -->\r
-<web-app>\r
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">    \r
     <display-name>CollectionSpace Services</display-name>\r
     <env-entry>\r
         <description>Sets the logging context for the Tiger web-app</description>\r
         <env-entry-name>cspace-logging-context</env-entry-name>\r
-        <env-entry-value>CSpaceLoggingContext</env-entry-value>\r
         <env-entry-type>java.lang.String</env-entry-type>\r
+        <env-entry-value>CSpaceLoggingContext</env-entry-value>\r
     </env-entry>\r
 \r
     <context-param>\r
index 5a5910258da606c11ed694f16461940fe39ac8d2..767602ab9403ececea851f603776accebd151c26 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 6a831923be01cf81581c684dd8860caff86b604b..0ce4c5b34cbccc2aa63ad7eaf03e68359423ee7a 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 5be63a7371707ff59f80830f761272577630d19d..b434528b6d8c9b3deb9bbe2c744ad18d0e0dc9a7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.account</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
             <artifactId>org.collectionspace.services.account.jaxb</artifactId>\r
             <version>${project.version}</version>\r
         </dependency>\r
+        <dependency>\r
+                       <groupId>org.collectionspace.services</groupId>\r
+                       <artifactId>org.collectionspace.services.hyperjaxb</artifactId>\r
+                       <version>${project.version}</version>\r
+        </dependency>        \r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.authorization.jaxb</artifactId>\r
index 0ab1f131321ac34ba2ebd59fb961d9f894fed39d..0e4d758a1ee84380617198dbc08d46ce35d0a789 100644 (file)
@@ -61,7 +61,7 @@ public class AccountRoleFactory {
         if (usePermId) {
             ArrayList<AccountValue> pvs = new ArrayList<AccountValue>();
             pvs.add(pv);
-            accRole.setAccounts(pvs);
+            accRole.setAccount(pvs);
         }
         if (useRoleId) {
             //FIXME is there a better way?
@@ -69,7 +69,7 @@ public class AccountRoleFactory {
             for (RoleValue rv : rvs) {
                 rvas.add(rv);
             }
-            accRole.setRoles(rvas);
+            accRole.setRole(rvas);
         }
 
         return accRole;
index 0a1485124e166e3e3660ef15b444a916f36a5273..a23530cb88a1899ffd6e85a77ab4b7cd18e2952b 100644 (file)
@@ -31,6 +31,8 @@ import javax.ws.rs.core.Response;
 //import org.collectionspace.services.authorization.AccountRolesList;
 import org.collectionspace.services.account.AccountsCommon;
 import org.collectionspace.services.account.AccountsCommonList;
+import org.collectionspace.services.account.AccountListItem;
+
 import org.collectionspace.services.authorization.AccountRole;
 import org.collectionspace.services.authorization.AccountValue;
 import org.collectionspace.services.authorization.Role;
@@ -340,8 +342,9 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
             Assert.assertEquals(statusCode, Response.Status.OK.getStatusCode());
             AccountRole output = res.getEntity();
 
-            String sOutput = objectAsXmlString(output, AccountRole.class);
             if(logger.isDebugEnabled()) {
+               org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();
+               String sOutput = objectAsXmlString(objectFactory.createAccountRole(output), AccountRole.class);
                 logger.debug(testName + " received " + sOutput);
             }
         } finally {
@@ -404,7 +407,7 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
             AccountRole output = res.getEntity();
             
             // Now verify that the role has 2 accounts associate to it.
-            Assert.assertEquals(output.getAccounts().size(), 1);
+            Assert.assertEquals(output.getAccount().size(), 1);
 
             String sOutput = objectAsXmlString(output, AccountRole.class);
             if(logger.isDebugEnabled()) {
@@ -515,7 +518,7 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
         }
 
         ClientResponse<Response> res = client.delete(
-                toDelete.getAccounts().get(0).getAccountId(), toDelete);
+                toDelete.getAccount().get(0).getAccountId(), toDelete);
         try {
             int statusCode = res.getStatus();
             Assert.assertTrue(REQUEST_TYPE.isValidStatusCode(statusCode),
@@ -543,7 +546,7 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
                readResponse.releaseConnection();
         }
 
-        res = client.delete(toDelete.getAccounts().get(0).getAccountId());
+        res = client.delete(toDelete.getAccount().get(0).getAccountId());
         try {
             int statusCode = res.getStatus();
             Assert.assertTrue(REQUEST_TYPE.isValidStatusCode(statusCode),
@@ -654,7 +657,8 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
 
         if (logger.isDebugEnabled()) {
             logger.debug("to be created, accRole common");
-            logger.debug(objectAsXmlString(accRole, AccountRole.class));
+            org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();
+            logger.debug(objectAsXmlString(objectFactory.createAccountRole(accRole), AccountRole.class));
         }
         return accRole;
     }
@@ -732,9 +736,9 @@ public class AccountRoleServiceTest extends AbstractServiceTestImpl {
             int statusCode = res.getStatus();
 
             Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
-            List<AccountsCommonList.AccountListItem> items = list.getAccountListItem();
+            List<AccountListItem> items = list.getAccountListItem();
             Assert.assertEquals(1, items.size(), "Found more than one Admin account!");
-            AccountsCommonList.AccountListItem item = items.get(0);
+            AccountListItem item = items.get(0);
             prebuiltAdminCSID = item.getCsid();
             if (logger.isDebugEnabled()) {
                 logger.debug("Found Admin Account with ID: " + prebuiltAdminCSID);
index ba080fa92475a661d48e8e7ebbacfc1c3b2496cd..4682f44a02791b669d0542b9bd55d86655e702fb 100644 (file)
@@ -29,6 +29,8 @@ import org.collectionspace.services.client.AccountClient;
 import org.collectionspace.services.client.CollectionSpaceClient;
 import org.collectionspace.services.account.AccountsCommon;
 import org.collectionspace.services.account.AccountsCommonList;
+import org.collectionspace.services.account.AccountListItem;
+
 import org.collectionspace.services.account.Status;
 import org.collectionspace.services.client.AccountFactory;
 import org.collectionspace.services.client.test.AbstractServiceTestImpl;
@@ -945,9 +947,9 @@ public class AccountServiceTest extends AbstractServiceTestImpl {
             int statusCode = res.getStatus();
 
             Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
-            List<AccountsCommonList.AccountListItem> items = list.getAccountListItem();
+            List<AccountListItem> items = list.getAccountListItem();
             Assert.assertEquals(1, items.size(), "Found more than one Admin account!");
-            AccountsCommonList.AccountListItem item = items.get(0);
+            AccountListItem item = items.get(0);
             prebuiltAdminCSID = item.getCsid();
             if (logger.isDebugEnabled()) {
                 logger.debug("Found Admin Account with ID: " + prebuiltAdminCSID);
@@ -1418,11 +1420,11 @@ public class AccountServiceTest extends AbstractServiceTestImpl {
      * @param list the list
      */
     private void printList(String testName, AccountsCommonList list) {
-        List<AccountsCommonList.AccountListItem> items =
+        List<AccountListItem> items =
                 list.getAccountListItem();
         int i = 0;
 
-        for (AccountsCommonList.AccountListItem item : items) {
+        for (AccountListItem item : items) {
             logger.debug(testName + ": list-item[" + i + "] csid="
                     + item.getCsid());
             logger.debug(testName + ": list-item[" + i + "] screenName="
index 43c1402c91ecfbb3311eab0af27e26df627c63b3..0b6711432e7dc4f87a131922b97949cc4348790a 100644 (file)
@@ -4,7 +4,7 @@
     <persistence-unit name="org.collectionspace.services.account">
         <class>org.collectionspace.services.account.AccountsCommon</class>
         <class>org.collectionspace.services.account.AccountsCommonList</class>
-        <class>org.collectionspace.services.account.AccountsCommonList$AccountListItem</class>
+        <class>org.collectionspace.services.account.AccountListItem</class>
         <class>org.collectionspace.services.account.Tenant</class>
         <class>org.collectionspace.services.account.AccountTenant</class>
         <class>org.collectionspace.services.account.Status</class>
index 986b4741f328cb5cdd9ff40c1992bcfa6b2ae20d..79467ad12a3e36a94db7c20ccba2ad7ee7f2ddfb 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.account</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <groupId>org.jvnet.jaxb2-commons</groupId>
             <artifactId>property-listener-injector</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>javax.persistence</groupId>
             <artifactId>persistence-api</artifactId>
index 80454216f4c4220e49c51c46e6f0029476f2eb8b..eab81edd6660a8de028f2dbc63f2d6c5ec0143a8 100644 (file)
@@ -14,7 +14,7 @@
 <xs:schema 
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
-    jaxb:version="1.0" elementFormDefault="unqualified"
+    jaxb:version="2.1" elementFormDefault="unqualified"
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
     xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
     xmlns:ns="http://collectionspace.org/services/account"
     See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
 -->
 
+       <xs:annotation>
+               <xs:appinfo>
+                       <jaxb:globalBindings generateIsSetMethod="true" localScoping="toplevel">
+                               <jaxb:serializable/>
+                       </jaxb:globalBindings>
+               </xs:appinfo>
+       </xs:annotation>
+       
+    <xs:element name="bar-common-list">
+        <xs:complexType>
+            <xs:annotation>
+                <xs:documentation>
+                    AccountsCommonList contains information about one or more
+                    accounts. An instance of this type could be returned on
+                    index and search operations.
+                </xs:documentation>
+                <xs:appinfo>
+                    <hj:ignored/>
+                </xs:appinfo>
+            </xs:annotation>
+            <xs:complexContent>
+                <xs:extension base="abstractCommonList">                    
+                           <xs:sequence>
+                               <xs:element name="bar-list-item" maxOccurs="unbounded">
+                                   <xs:complexType>
+                                       <xs:annotation>
+                                           <xs:appinfo>
+                                               <hj:ignored/>
+                                           </xs:appinfo>
+                                       </xs:annotation>
+                                       <xs:sequence>
+                                           <xs:element name="screenName" type="xs:string" minOccurs="1"/>
+                                           <xs:element name="personRefName" type="xs:string" minOccurs="1" />
+                                           <xs:element name="email" type="xs:string" minOccurs="1" />
+                                           <!-- uri to retrive collection object details -->
+                                           <xs:element name="uri" type="xs:anyURI" minOccurs="1" />
+                                           <xs:element name="csid" type="xs:string" minOccurs="1" />
+                                       </xs:sequence>
+                                   </xs:complexType>
+                               </xs:element>
+                           </xs:sequence>
+                </xs:extension>
+            </xs:complexContent>        
+        </xs:complexType>
+    </xs:element>
+       
     <!-- accounts-common -->
     <!-- convention: <servicename>-common  -->
     <xs:element name="accounts_common">
index 35b581b595912161198518039e2af8e237ba1291..924c23d56f9933ed51ade9a5d4586e77203a71e5 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 0623d721a73ade5bfa023a806204788f6f7ea907..8026e43cc70bac3f57f7b4e35be8dccd1e7ce690 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>\r
-<project xmlns="http://maven.apache.org/POM/4.0.0"\r
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
-    <parent>\r
-        <artifactId>org.collectionspace.services.account</artifactId>\r
-        <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
-    </parent>\r
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
+       <parent>\r
+               <artifactId>org.collectionspace.services.account</artifactId>\r
+               <groupId>org.collectionspace.services</groupId>\r
+               <version>1.14-SNAPSHOT</version>\r
+       </parent>\r
 \r
-    <modelVersion>4.0.0</modelVersion>\r
-    <groupId>org.collectionspace.services</groupId>\r
-    <artifactId>org.collectionspace.services.account.pstore</artifactId>\r
-    <name>services.account.pstore</name>\r
+       <modelVersion>4.0.0</modelVersion>\r
+       <groupId>org.collectionspace.services</groupId>\r
+       <artifactId>org.collectionspace.services.account.pstore</artifactId>\r
+       <name>services.account.pstore</name>\r
 \r
-    <properties>\r
-        <sql.file>account.sql</sql.file>\r
-                               <sql.dir>${basedir}/src/main/resources/db</sql.dir>\r
-    </properties>\r
+       <properties>\r
+               <sql.file>account.sql</sql.file>\r
+               <sql.dir>${basedir}/src/main/resources/db</sql.dir>\r
+       </properties>\r
 \r
-    <dependencies>\r
-        <dependency>\r
-            <groupId>com.sun.xml.bind</groupId>\r
-            <artifactId>jaxb-impl</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2-commons</groupId>\r
-            <artifactId>property-listener-injector</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
-        </dependency>\r
-        <!-- External dependencies -->\r
-        <dependency>\r
-            <groupId>mysql</groupId>\r
-            <artifactId>mysql-connector-java</artifactId>\r
-        </dependency>\r
-                               <dependency>\r
-                                               <groupId>postgresql</groupId>\r
-                                               <artifactId>postgresql</artifactId>\r
-                               </dependency>\r
-         <!-- CollectionSpace dependencies -->\r
-        <dependency>\r
-            <groupId>org.collectionspace.services</groupId>\r
-            <artifactId>org.collectionspace.services.account.jaxb</artifactId>\r
-            <version>${project.version}</version>\r
-        </dependency>\r
-    </dependencies>\r
+       <dependencies>\r
+               <dependency>\r
+                       <groupId>com.sun.xml.bind</groupId>\r
+                       <artifactId>jaxb-impl</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.jvnet.jaxb2-commons</groupId>\r
+                       <artifactId>property-listener-injector</artifactId>\r
+               </dependency>\r
+               <!-- External dependencies -->\r
+               <dependency>\r
+                       <groupId>mysql</groupId>\r
+                       <artifactId>mysql-connector-java</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>postgresql</groupId>\r
+                       <artifactId>postgresql</artifactId>\r
+               </dependency>\r
+               <!-- CollectionSpace dependencies -->\r
+               <dependency>\r
+                       <groupId>org.collectionspace.services</groupId>\r
+                       <artifactId>org.collectionspace.services.account.jaxb</artifactId>\r
+                       <version>${project.version}</version>\r
+               </dependency>\r
+       </dependencies>\r
 \r
-    <build>\r
-        <finalName>collectionspace-services-account-pstore</finalName>\r
-        <plugins>\r
-            <plugin>\r
-                <artifactId>maven-antrun-plugin</artifactId>\r
-                <executions>\r
-                    <execution>\r
-                        <id>subs-hibernate-config</id>\r
-                        <phase>generate-test-resources</phase>\r
-                        <goals>\r
-                            <goal>run</goal>\r
-                        </goals>\r
-                        <configuration>\r
-                            <tasks>\r
-                                <property name="runtime-classpath" refid="maven.runtime.classpath"/>\r
-                                <ant target="setup_hibernate.cfg" inheritRefs="true"/>\r
-                            </tasks>\r
-                        </configuration>\r
-                    </execution>\r
-                </executions>\r
-            </plugin>\r
+       <build>\r
+               <finalName>collectionspace-services-account-pstore</finalName>\r
+               <plugins>\r
+                       <plugin>\r
+                               <artifactId>maven-antrun-plugin</artifactId>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <id>subs-hibernate-config</id>\r
+                                               <phase>generate-test-resources</phase>\r
+                                               <goals>\r
+                                                       <goal>run</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <tasks>\r
+                                                               <property name="runtime-classpath" refid="maven.runtime.classpath" />\r
+                                                               <ant target="setup_hibernate.cfg" inheritRefs="true" />\r
+                                                       </tasks>\r
+                                               </configuration>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
 \r
-        </plugins>\r
-    </build>\r
-    <profiles>\r
-        <profile>\r
-            <!-- use profile as this task is not needed for every build and test -->\r
-            <id>ddl</id>\r
-            <build>\r
-                <plugins>\r
-                                                                               <plugin>\r
-                                                                                       <groupId>org.codehaus.mojo</groupId>\r
-                                                                                       <artifactId>properties-maven-plugin</artifactId>\r
-                                                                                       <version>1.0-alpha-2</version>\r
-                                                                                       <executions>\r
-                                                                                               <execution>\r
-                                                                                                       <phase>initialize</phase>\r
-                                                                                                       <goals>\r
-                                                                                                               <goal>read-project-properties</goal>\r
-                                                                                                       </goals>\r
-                                                                                                       <configuration>\r
-                                                                                                               <files>\r
-                                                                                                                       <file>${basedir}/../../../build.properties</file>\r
-                                                                                                               </files>\r
-                                                                                                       </configuration>\r
-                                                                                               </execution>\r
-                                                                                       </executions>\r
-                                                                               </plugin>\r
-                    <plugin>\r
-                        <groupId>org.codehaus.mojo</groupId>\r
-                        <artifactId>hibernate3-maven-plugin</artifactId>\r
-                        <version>2.2</version>\r
-                        <executions>\r
-                            <execution>\r
-                                <phase>process-test-resources</phase>\r
-                                <goals>\r
-                                    <goal>hbm2ddl</goal>\r
-                                </goals>\r
-                            </execution>\r
-                        </executions>\r
-                        <configuration>\r
-                            <components>\r
-                                <component>\r
-                                    <name>hbm2ddl</name>\r
-                                </component>\r
-                            </components>\r
-                            <componentProperties>\r
-                                <outputfilename>${sql.file}</outputfilename>\r
-                                <implementation>jpaconfiguration</implementation>\r
-                                <drop>true</drop>\r
-                                <create>true</create>\r
-                                <export>true</export>\r
-                                <jdk5>true</jdk5>\r
-                                <ejb3>false</ejb3>\r
-                                <persistenceunit>org.collectionspace.services.account</persistenceunit>\r
-                            </componentProperties>\r
-                        </configuration>\r
-                        <dependencies>\r
-                            <dependency>\r
-                                <groupId>mysql</groupId>\r
-                                <artifactId>mysql-connector-java</artifactId>\r
-                                                                                                                               <version>5.1.5</version>\r
-                            </dependency>\r
-                                                                                                               <dependency>\r
-                                                                                                                               <groupId>postgresql</groupId>\r
-                                                                                                                               <artifactId>postgresql</artifactId>\r
-                                                                                                                               <version>8.4-702.jdbc4</version>\r
-                                                                                                               </dependency>\r
-                        </dependencies>\r
-                    </plugin>\r
-                    <plugin>\r
-                        <artifactId>maven-antrun-plugin</artifactId>\r
-                        <executions>\r
-                            <execution>\r
-                                <phase>process-test-resources</phase>\r
-                                <configuration>\r
-                                    <tasks>\r
-                                                                                                                                                       <copy file="${basedir}/target/hibernate3/sql/${sql.file}" tofile="${sql.dir}/${db}/${sql.file}"/>\r
-                                    </tasks>\r
-                                </configuration>\r
-                                <goals>\r
-                                    <goal>run</goal>\r
-                                </goals>\r
-                            </execution>\r
-                        </executions>\r
-                    </plugin>\r
+               </plugins>\r
+       </build>\r
+       <profiles>\r
+               <profile>\r
+                       <!-- use profile as this task is not needed for every build and test -->\r
+                       <id>ddl</id>\r
+                       <build>\r
+                               <plugins>\r
+                                       <plugin>\r
+                                               <groupId>org.codehaus.mojo</groupId>\r
+                                               <artifactId>properties-maven-plugin</artifactId>\r
+                                               <version>1.0-alpha-2</version>\r
+                                               <executions>\r
+                                                       <execution>\r
+                                                               <phase>initialize</phase>\r
+                                                               <goals>\r
+                                                                       <goal>read-project-properties</goal>\r
+                                                               </goals>\r
+                                                               <configuration>\r
+                                                                       <files>\r
+                                                                               <file>${basedir}/../../../build.properties</file>\r
+                                                                       </files>\r
+                                                               </configuration>\r
+                                                       </execution>\r
+                                               </executions>\r
+                                       </plugin>\r
+                                       <plugin>\r
+                                               <groupId>org.codehaus.mojo</groupId>\r
+                                               <artifactId>hibernate3-maven-plugin</artifactId>\r
+                                               <version>2.2</version>\r
+                                               <executions>\r
+                                                       <execution>\r
+                                                               <phase>process-test-resources</phase>\r
+                                                               <goals>\r
+                                                                       <goal>hbm2ddl</goal>\r
+                                                               </goals>\r
+                                                       </execution>\r
+                                               </executions>\r
+                                               <configuration>\r
+                                                       <components>\r
+                                                               <component>\r
+                                                                       <name>hbm2ddl</name>\r
+                                                               </component>\r
+                                                       </components>\r
+                                                       <componentProperties>\r
+                                                               <outputfilename>${sql.file}</outputfilename>\r
+                                                               <implementation>jpaconfiguration</implementation>\r
+                                                               <drop>true</drop>\r
+                                                               <create>true</create>\r
+                                                               <export>true</export>\r
+                                                               <jdk5>true</jdk5>\r
+                                                               <ejb3>false</ejb3>\r
+                                                               <persistenceunit>org.collectionspace.services.account</persistenceunit>\r
+                                                       </componentProperties>\r
+                                               </configuration>\r
+                                               <dependencies>\r
+                                                       <dependency>\r
+                                                               <groupId>mysql</groupId>\r
+                                                               <artifactId>mysql-connector-java</artifactId>\r
+                                                               <version>5.1.5</version>\r
+                                                       </dependency>\r
+                                                       <dependency>\r
+                                                               <groupId>postgresql</groupId>\r
+                                                               <artifactId>postgresql</artifactId>\r
+                                                               <version>8.4-702.jdbc4</version>\r
+                                                       </dependency>\r
+                                               </dependencies>\r
+                                       </plugin>\r
+                                       <plugin>\r
+                                               <artifactId>maven-antrun-plugin</artifactId>\r
+                                               <executions>\r
+                                                       <execution>\r
+                                                               <phase>process-test-resources</phase>\r
+                                                               <configuration>\r
+                                                                       <tasks>\r
+                                                                               <copy file="${basedir}/target/hibernate3/sql/${sql.file}"\r
+                                                                                       tofile="${sql.dir}/${db}/${sql.file}" />\r
+                                                                       </tasks>\r
+                                                               </configuration>\r
+                                                               <goals>\r
+                                                                       <goal>run</goal>\r
+                                                               </goals>\r
+                                                       </execution>\r
+                                               </executions>\r
+                                       </plugin>\r
 \r
-                </plugins>\r
-            </build>\r
-        </profile>\r
-    </profiles>\r
+                               </plugins>\r
+                       </build>\r
+               </profile>\r
+       </profiles>\r
 </project>\r
 \r
index 7e71097b338f3a63b16c4b7dd7d80da183bdcc92..fd92a4110a2f3cb097228e9d3d10da87e74cac7c 100644 (file)
@@ -2,7 +2,7 @@ alter table accounts_tenants drop foreign key FKFDA649B05A9CEEB5;
 drop table if exists accounts_common;
 drop table if exists accounts_tenants;
 drop table if exists tenants;
-create table accounts_common (csid varchar(128) not null, created_at datetime not null, email varchar(255) not null, mobile varchar(255), person_ref_name varchar(255), phone varchar(255), screen_name varchar(128) not null, status varchar(15) not null, updated_at datetime, userid varchar(128) not null, metadata_protection varchar(255), roles_protection varchar(255), primary key (csid));
+create table accounts_common (csid varchar(128) not null, created_at datetime not null, email varchar(255) not null, metadata_protection varchar(255), mobile varchar(255), person_ref_name varchar(255), phone varchar(255), roles_protection varchar(255), screen_name varchar(128) not null, status varchar(15) not null, updated_at datetime, userid varchar(128) not null, primary key (csid));
 create table accounts_tenants (HJID bigint not null auto_increment, tenant_id varchar(128) not null, TENANTS_ACCOUNTSCOMMON_CSID varchar(128), primary key (HJID));
 create table tenants (id varchar(128) not null, created_at datetime not null, name varchar(255) not null, updated_at datetime, primary key (id));
 alter table accounts_tenants add index FKFDA649B05A9CEEB5 (TENANTS_ACCOUNTSCOMMON_CSID), add constraint FKFDA649B05A9CEEB5 foreign key (TENANTS_ACCOUNTSCOMMON_CSID) references accounts_common (csid);
index cf6a2da6dfeb6c0e90e8735585852693196bec8d..e712b95d43c730e485accb3603778a957856ce11 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.account</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 4be106a4d9c8c7e20a156400f281ff48b9f2cc21..5165b3d8047dba2bad4f2ba868809f3ee1caa4f7 100644 (file)
@@ -29,6 +29,7 @@ import org.collectionspace.services.authorization.AccountRole;
 import org.collectionspace.services.authorization.AccountRoleRel;
 import org.collectionspace.services.authorization.SubjectType;
 import org.collectionspace.services.client.AccountClient;
+import org.collectionspace.services.client.PayloadOutputPart;
 import org.collectionspace.services.common.SecurityResourceBase;
 import org.collectionspace.services.common.ServiceMessages;
 import org.collectionspace.services.common.context.RemoteServiceContextFactory;
@@ -105,7 +106,11 @@ public class AccountResource extends SecurityResourceBase {
     @GET
     @Produces("application/xml")
     public AccountsCommonList getAccountList(@Context UriInfo ui) {
-        return (AccountsCommonList)getList(ui, AccountsCommon.class);
+       AccountsCommonList result = (AccountsCommonList)getList(ui, AccountsCommon.class);
+       PayloadOutputPart ppo = new PayloadOutputPart(AccountsCommonList.class.getSimpleName(),
+                       result);
+       System.out.println(ppo.asXML());
+       return result;
     }
 
     @PUT
index df8d5b185307ad8e6c4898640bd7893872877e15..4b05c1bd9d2de143c90b95df09042ee7e7762975 100644 (file)
@@ -32,9 +32,7 @@ import org.collectionspace.services.account.storage.AccountRoleDocumentHandler;
 //import org.collectionspace.services.authorization.AccountRolesList;
 //import org.collectionspace.services.authorization.AccountRolesList.AccountRoleListItem;
 import org.collectionspace.services.authorization.AccountRole;
-import org.collectionspace.services.authorization.AccountValue;
 import org.collectionspace.services.authorization.AccountRoleRel;
-import org.collectionspace.services.authorization.Permission;
 import org.collectionspace.services.authorization.Role;
 import org.collectionspace.services.authorization.RoleValue;
 import org.collectionspace.services.authorization.SubjectType;
@@ -173,11 +171,11 @@ public class AccountRoleSubResource
        //
        
        //Preserve the original incoming list of roles
-       List<RoleValue> inputRoleValues = input.getRoles();
+       List<RoleValue> inputRoleValues = input.getRole();
 
        //Change the role list to be just the Spring role
        List<RoleValue> springRoles = new ArrayList<RoleValue>();
-       input.setRoles(springRoles);
+       input.setRole(springRoles);
        RoleValue springAdminRole = new RoleValue();
        springRoles.add(springAdminRole);
        springAdminRole.setRoleId(AuthorizationCommon.ROLE_SPRING_ADMIN_ID);
@@ -195,14 +193,14 @@ public class AccountRoleSubResource
                if (logger.isTraceEnabled() == true) {
                        logger.trace(AuthorizationCommon.ROLE_SPRING_ADMIN_NAME +
                                        " relationship already exists for account: " +
-                                       input.getAccounts().get(0).getAccountId(), e);
+                                       input.getAccount().get(0).getAccountId(), e);
                }
        }
        
        //
        // Now we'll add the account relationships for the original incoming roles.
        //
-       input.setRoles(inputRoleValues);
+       input.setRole(inputRoleValues);
         ServiceContext<AccountRole, AccountRole> ctx = createServiceContext(input, subject);
         DocumentHandler handler = createDocumentHandler(ctx);        
         String bogusCsid = getStorageClient(ctx).create(ctx, handler);
index 5ccb9f0f5a95adb97e6ec167ccb4425c8cb7550a..8a0111804f09e264516afe20a28e71c9b8f8fd37 100644 (file)
@@ -31,7 +31,7 @@ import java.util.UUID;
 import org.collectionspace.services.account.AccountTenant;
 import org.collectionspace.services.account.AccountsCommon;
 import org.collectionspace.services.account.AccountsCommonList;
-import org.collectionspace.services.account.AccountsCommonList.AccountListItem;
+import org.collectionspace.services.account.AccountListItem;
 import org.collectionspace.services.account.Status;
 
 import org.collectionspace.services.client.AccountClient;
@@ -157,7 +157,7 @@ public class AccountDocumentHandler
 
        AccountsCommonList accList = this.extractPagingInfo(new AccountsCommonList(), wrapDoc);
 //        AccountsCommonList accList = new AccountsCommonList();
-        List<AccountsCommonList.AccountListItem> list = accList.getAccountListItem();
+        List<AccountListItem> list = accList.getAccountListItem();
 
         for (Object obj : wrapDoc.getWrappedObject()) {
             AccountsCommon account = (AccountsCommon) obj;
index e3e87f73cc8d4ca3260ef646d9522c745fbc4a01..150978b19041789cd1ae45662c283bfb0e360df3 100644 (file)
@@ -221,16 +221,16 @@ public class AccountRoleDocumentHandler
         }
         if (subject.equals(SubjectType.ROLE)) {
             //FIXME: potential index out of bounds exception...negative test needed
-            AccountValue av = ar.getAccounts().get(0);
+            AccountValue av = ar.getAccount().get(0);
 
-            for (RoleValue rv : ar.getRoles()) {
+            for (RoleValue rv : ar.getRole()) {
                 AccountRoleRel arr = buildAccountRoleRel(av, rv, handleDelete);
                 arrl.add(arr);
             }
         } else if (SubjectType.ACCOUNT.equals(subject)) {
             //FIXME: potential index out of bounds exception...negative test needed
-               RoleValue rv = ar.getRoles().get(0);
-            for (AccountValue av : ar.getAccounts()) {
+               RoleValue rv = ar.getRole().get(0);
+            for (AccountValue av : ar.getAccount()) {
                 AccountRoleRel arr = buildAccountRoleRel(av, rv, handleDelete);
                 arrl.add(arr);
             }
@@ -264,7 +264,7 @@ public class AccountRoleDocumentHandler
         if (SubjectType.ROLE.equals(subject)) {
 
             List<AccountValue> avs = new ArrayList<AccountValue>();
-            ar.setAccounts(avs);
+            ar.setAccount(avs);
             AccountValue av = AuthorizationRoleRel.buildAccountValue(ar0);
             if (av != null) {
                avs.add(av);
@@ -272,7 +272,7 @@ public class AccountRoleDocumentHandler
 
             //add roles
             List<RoleValue> rvs = new ArrayList<RoleValue>();
-            ar.setRoles(rvs);
+            ar.setRole(rvs);
             for (AccountRoleRel arr : arrl) {
                RoleValue rv = AuthorizationRoleRel.buildRoleValue(arr);
                if (rv != null) {
@@ -282,13 +282,13 @@ public class AccountRoleDocumentHandler
         } else if (SubjectType.ACCOUNT.equals(subject)) {
 
             List<RoleValue> rvs = new ArrayList<RoleValue>();
-            ar.setRoles(rvs);
+            ar.setRole(rvs);
             RoleValue rv = AuthorizationRoleRel.buildRoleValue(ar0);
             rvs.add(rv);
 
             //add accounts
             List<AccountValue> avs = new ArrayList<AccountValue>();
-            ar.setAccounts(avs);
+            ar.setAccount(avs);
             for (AccountRoleRel arr : arrl) {
                 AccountValue av = AuthorizationRoleRel.buildAccountValue(arr);
                 avs.add(av);
index 0da3c7ce3d24618ca93cec07e20e4ce7aa94cc29..cc56a56745d5c2517f6a6aeba8972c9880e269ca 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index f2b6bc160fb6338117f7d20a6ddcd7f89134153e..c5762ab9e352dad9f046ed19c0606158c21ce000 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 2c25a38cb8b3b119ed0527256f369661ac2d472d..646261a5229cc4e59d550395937a5f6017d3a876 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.acquisition.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index e34350e1240281f4bee2d97a137c95fafa90e1ea..2eabe359a39c7fcf2a41522a7ab05dfe23c43098 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.acquisition</artifactId>\r
-        <version>1.12-SNAPSHOT</version> \r
+        <version>1.14-SNAPSHOT</version> \r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 03532b092d0bca3132c05544a8470d5f93025566..ef0c24baf76edd6d9e71d66402ec84309737cd44 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.acquisition</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index a08453d90902bad2cc4e418b4faf446e3b399d27..104002511860fa8ef35dacf2f957226b1ee4f1cf 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.acquisition</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.acquisition.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index ca511f461b762b40630dee4c519179d4bbe2e1c7..47bffd4a9f8104e034347ddf2462c55cb280daee 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 1e7e4e9b386f34fbdf4af3bdb86d1db59c1bb3a6..d96edf8467dfd7193350e4ef59377bff4fc94fd3 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.acquisition</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index ae9f1bc62659c5292ba1f31c39784e70c06e598d..54b316dd5638e3e1d02f75040796cd283914eb20 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index ced598861633754e2ebf6268be11a3ee3e4a420e..d937b5ff1b95c02f6b9927f353ff2ef9564e1c17 100644 (file)
@@ -6,7 +6,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.authentication</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index f86ec725052a9a3d8d634198f00d9ebcbecc5d52..2620e50bce6877315916627874d8a260350c5b38 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.authentication</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <groupId>org.jvnet.jaxb2-commons</groupId>
             <artifactId>property-listener-injector</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>javax.persistence</groupId>
             <artifactId>persistence-api</artifactId>
index 7ea63eb14e7ef33d594940d9f6067111b232cd24..534c0529fd4977fc72021da6918f56f737ae9ee1 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 3af1728ed67a3111045fde78c2f3d989c69c2f21..2808fcc8cd4fe0190c420185e23f37734544de5c 100644 (file)
@@ -6,7 +6,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.authentication</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
     </properties>\r
 \r
     <dependencies>\r
-        <dependency>\r
-            <groupId>com.sun.xml.bind</groupId>\r
-            <artifactId>jaxb-impl</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2-commons</groupId>\r
-            <artifactId>property-listener-injector</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
-        </dependency>\r
         <dependency>\r
             <groupId>mysql</groupId>\r
             <artifactId>mysql-connector-java</artifactId>\r
         </dependency>\r
-                               <dependency>\r
-                                               <groupId>postgresql</groupId>\r
-                                               <artifactId>postgresql</artifactId>\r
+               <dependency>\r
+                       <groupId>postgresql</groupId>\r
+                       <artifactId>postgresql</artifactId>\r
         </dependency>\r
         <!-- CollectionSpace -->\r
         <dependency>\r
index e9ee0aefffb3cba41e0bf3da769005e846a3c7c9..38aa471bca0ae9a17f983af5c0180a180b3cb74e 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.authentication</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             <version>2.1.0.GA</version>
         </dependency>
         <dependency>
+        <!--
             <groupId>jboss</groupId>
             <artifactId>jbosssx</artifactId>
             <version>4.2.3.GA</version>
+            -->
+                 <groupId>org.jboss.security</groupId>
+                 <artifactId>jbosssx</artifactId>
             <scope>provided</scope>
+                       <version>2.0.3.SP1</version>            
         </dependency>
         <dependency>
             <groupId>org.springframework.security</groupId>
index 29bca951849caed1324d83ee51866e91d7790aab..13a5ac599c444bcc825f357387f10b6f3d8023d0 100644 (file)
@@ -49,6 +49,8 @@
  */
 package org.collectionspace.authentication;
 
+import javax.sql.DataSource;
+
 import org.collectionspace.authentication.spi.AuthNContext;
 import org.collectionspace.authentication.spring.SpringAuthNContext;
 
@@ -63,6 +65,7 @@ public class AuthN {
      * volatile is used here to assume about ordering (post JDK 1.5)
      */
     private static volatile AuthN self = new AuthN();
+    private static DataSource dataSource = null;
     private AuthNContext authnContext;
 
     private AuthN() {
@@ -74,6 +77,14 @@ public class AuthN {
     public final static AuthN get() {
         return self;
     }
+    
+    public static void setDataSource(DataSource dataSource) {
+       AuthN.dataSource = dataSource;
+    }
+    
+    public static DataSource getDataSource() {
+       return AuthN.dataSource;
+    }
 
     /**
      * getAuthn returns authentication utilities
index b096117b94a722052958717d5994c84516933315..122adb1a17b059d7745dd7b3d6a4d4a7a5ae46a0 100644 (file)
@@ -32,7 +32,11 @@ import java.security.Principal;
 final public class CSpacePrincipal
         implements Principal, java.io.Serializable {
 
-    private String name;
+    /**
+        * 
+        */
+       private static final long serialVersionUID = -1357683611240908638L;
+       private String name;
     private String tenantId;
 
     public CSpacePrincipal(String name) {
index b9384cc51c6d1572f6f6475691d592ad9442cd7d..4a2dec8b3d25eaf2ef5ad462bef6c8a3591343a8 100644 (file)
@@ -87,6 +87,20 @@ public class CSpaceJBossDBLoginModule extends UsernamePasswordLoginModule {
         }\r
         return password;\r
     }\r
+    \r
+    @Override\r
+    public boolean commit() throws LoginException {\r
+       boolean result;\r
+       result = super.commit();\r
+       return result;\r
+    }\r
+    \r
+    @Override\r
+    public boolean abort() throws LoginException {\r
+       boolean result;\r
+       result = super.abort();\r
+       return result;\r
+    }\r
 \r
     /** Execute the rolesQuery against the dsJndiName to obtain the roles for\r
     the authenticated user.\r
index fe3955cb7bf6c0478a82e881d90aa1ea28abbd93..887017f5f9ba6db7b3486c7fd54d6a36633878a8 100644 (file)
@@ -59,6 +59,8 @@ import java.sql.SQLException;
 import java.util.Collection;
 import java.util.HashMap;
 import java.util.Map;
+
+import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import javax.security.auth.login.FailedLoginException;
@@ -68,6 +70,7 @@ import javax.sql.DataSource;
 //import org.apache.commons.logging.Log;
 //import org.apache.commons.logging.LogFactory;
 
+import org.collectionspace.authentication.AuthN;
 import org.collectionspace.authentication.CSpaceTenant;
 import org.collectionspace.authentication.realm.CSpaceRealm;
 
@@ -405,16 +408,53 @@ public class CSpaceDbRealm implements CSpaceRealm {
     private Connection getConnection() throws LoginException, SQLException {
         InitialContext ctx = null;
         Connection conn = null;
+        String dataSourceName = getDataSourceName();
+        DataSource ds = null;
         try {
             ctx = new InitialContext();
-            DataSource ds = (DataSource) ctx.lookup(getDataSourceName());
+            try {
+               ds = (DataSource) ctx.lookup(dataSourceName);
+            } catch (Exception e) {}
+            
+               try {
+                       Context envCtx = (Context) ctx.lookup("java:comp/env");
+                       ds = (DataSource) envCtx.lookup(dataSourceName);
+               } catch (Exception e) {}
+               
+               try {
+                       Context envCtx = (Context) ctx.lookup("java:comp");
+                       ds = (DataSource) envCtx.lookup(dataSourceName);
+               } catch (Exception e) {}
+               
+               try {
+                       Context envCtx = (Context) ctx.lookup("java:");
+                       ds = (DataSource) envCtx.lookup(dataSourceName);
+               } catch (Exception e) {}
+               
+               try {
+                       Context envCtx = (Context) ctx.lookup("java");
+                       ds = (DataSource) envCtx.lookup(dataSourceName);
+               } catch (Exception e) {}
+               
+               try {
+                       ds = (DataSource) ctx.lookup("java:/" + dataSourceName);
+               } catch (Exception e) {}  
+
+               if (ds == null) {
+               ds = AuthN.getDataSource();
+               }
+               
             if (ds == null) {
-                throw new IllegalArgumentException("datasource not found: " + getDataSourceName());
+                throw new IllegalArgumentException("datasource not found: " + dataSourceName);
             }
+            
             conn = ds.getConnection();
+            if (conn == null) {
+               conn = AuthN.getDataSource().getConnection();  //FIXME:REM - This is the result of some type of JNDI mess.  Should try to solve this problem and clean up this code.
+            }
             return conn;
         } catch (NamingException ex) {
-            LoginException le = new LoginException("Error looking up DataSource from: " + getDataSourceName());
+            LoginException le = new LoginException("Error looking up DataSource from: " + dataSourceName);
             le.initCause(ex);
             throw le;
         } finally {
@@ -422,6 +462,7 @@ public class CSpaceDbRealm implements CSpaceRealm {
                 try {
                     ctx.close();
                 } catch (Exception e) {
+                       e.printStackTrace();
                 }
             }
         }
index 557655e729a86a348df45da02fb8ef4739925e8a..868c656d2423609a9722c3a22348a3b41734db40 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.authority</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             <groupId>org.jvnet.jaxb2-commons</groupId>
             <artifactId>property-listener-injector</artifactId>
         </dependency>
+               <!--
         <dependency>
             <groupId>org.jvnet.jaxb2_commons</groupId>
             <artifactId>runtime</artifactId>
         </dependency>
+               -->
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index c1aeec085f21a4af960a8b4a8374c6f9acd7c7b7..53b6b334fcbe2139c9c5ac4f536b17db75760600 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.authority</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
             <groupId>org.jvnet.jaxb2-commons</groupId>\r
             <artifactId>property-listener-injector</artifactId>\r
         </dependency>\r
+               <!--\r
         <dependency>\r
             <groupId>org.jvnet.jaxb2_commons</groupId>\r
             <artifactId>runtime</artifactId>\r
         </dependency>\r
+               -->\r
 \r
         <!-- jboss -->\r
         <dependency>\r
index 0d8fe5563e64836bb83dd8ca48a548678280adb6..9a9957d7fe89cbbba2939bf69e5d0e6006fb249a 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 1606d4b1b7180aa92a4a89bb27a4fea801c95cbe..78d300dfe487277a56be80fb4d0be0dc2312a01c 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.authorization-mgt</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 4346cec781c50a6c575dfcb4e347f840a7da5d5e..0fc1fbe47af8d1461f8ac15f8515bd9f4951a77a 100644 (file)
@@ -29,8 +29,8 @@ package org.collectionspace.services.client;
 import javax.ws.rs.core.Response;
 import org.jboss.resteasy.client.ClientResponse;
 
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionsList;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 
 /**
  * A PermissionClient.
index 8f2a2c4f22662a5a40c4b019196b860f5edae339..db52ed1c928c03dc7361047caec9b6cef1ab665d 100644 (file)
@@ -26,10 +26,10 @@ package org.collectionspace.services.client;
 
 import java.util.ArrayList;
 import java.util.List;
-import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.ActionType;
+import org.collectionspace.services.authorization.perms.EffectType;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -66,7 +66,7 @@ public class PermissionFactory {
             permission.setResourceName(resourceName);
         }
         if (useAction) {
-            permission.setActions(actionList);
+            permission.setAction(actionList);
         }
         if (useEffect) {
             permission.setEffect(effect);
index 54eb5c43ef0bdb48abd4219491892020e474cbcd..5621f95a096747aac4e393456907da523132549c 100644 (file)
@@ -36,8 +36,8 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.Response;
 
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionsList;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.jboss.resteasy.client.ClientResponse;
 
 /**
index 3d7a7a05ecdbd0f548a2739b599c8031c9859cb9..94563b5f4317c3ee6efada50445ab1a22e3a38fd 100644 (file)
@@ -60,10 +60,10 @@ public class PermissionRoleFactory {
         if (usePermId) {
             ArrayList<PermissionValue> pvs = new ArrayList<PermissionValue>();
             pvs.add(pv);
-            permRole.setPermissions(pvs);
+            permRole.setPermission(pvs);
         }
         if (useRoleId) {
-            permRole.setRoles(rvs);
+            permRole.setRole(rvs);
         }
 
         return permRole;
@@ -90,10 +90,10 @@ public class PermissionRoleFactory {
         if (useRoleId) {
             ArrayList<RoleValue> rvs = new ArrayList<RoleValue>();
             rvs.add(rv);
-            permRole.setRoles(rvs);
+            permRole.setRole(rvs);
         }
         if (usePermId) {
-            permRole.setPermissions(pvs);
+            permRole.setPermission(pvs);
         }
 
         return permRole;
index b896bb8627e40bb388b9d93c0356b0d79d2c7c96..5fa350dbf5c0d43b9adb0d2864ae29d214386873 100644 (file)
@@ -29,9 +29,9 @@ import java.util.List;
 import javax.ws.rs.core.Response;
 
 import org.collectionspace.services.jaxb.AbstractCommonList;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.EffectType;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
@@ -477,7 +477,7 @@ public class PermissionRoleServiceTest extends AbstractServiceTestImpl {
         }        
 
         ClientResponse<Response> res = client.delete(
-                       toDelete.getPermissions().get(0).getPermissionId(), toDelete);
+                       toDelete.getPermission().get(0).getPermissionId(), toDelete);
         try {
             int statusCode = res.getStatus();
             Assert.assertTrue(REQUEST_TYPE.isValidStatusCode(statusCode),
@@ -507,7 +507,7 @@ public class PermissionRoleServiceTest extends AbstractServiceTestImpl {
                readResponse.releaseConnection();
         }
 
-        res = client.delete(toDelete.getPermissions().get(0).getPermissionId());
+        res = client.delete(toDelete.getPermission().get(0).getPermissionId());
         try {
             int statusCode = res.getStatus();
             Assert.assertTrue(REQUEST_TYPE.isValidStatusCode(statusCode),
index aa45d93aa37c7276a51686d85c30e524f5d66847..134bf6275d2726208a1ba4e26f8d6b902e240e9b 100644 (file)
@@ -26,13 +26,13 @@ package org.collectionspace.services.authorization.client.test;
 import java.util.List;
 import javax.ws.rs.core.Response;
 //import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.EffectType;
+import org.collectionspace.services.authorization.perms.EffectType;
 
 import org.collectionspace.services.client.CollectionSpaceClient;
 import org.collectionspace.services.client.PermissionClient;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
-import org.collectionspace.services.authorization.PermissionsList;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.collectionspace.services.client.PermissionFactory;
 import org.collectionspace.services.client.test.AbstractServiceTestImpl;
 import org.collectionspace.services.client.test.ServiceRequestType;
@@ -365,7 +365,7 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
         // Submit the request to the service and store the response.
         PermissionClient client = new PermissionClient();
         ClientResponse<PermissionsList> res = client.readList();
-        PermissionsList list = res.getEntity();
+        PermissionsList list = res.getEntity(PermissionsList.class);
         int statusCode = res.getStatus();
 
         // Check the status code of the response: does it match
@@ -403,7 +403,7 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
         // Submit the request to the service and store the response.
         PermissionClient client = new PermissionClient();
         ClientResponse<PermissionsList> res = client.readSearchList("acquisition");
-        PermissionsList list = res.getEntity();
+        PermissionsList list = res.getEntity(PermissionsList.class);
         int statusCode = res.getStatus();
         // Check the status code of the response: does it match
         // the expected response(s)?
@@ -414,18 +414,18 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
                 invalidStatusCodeMessage(REQUEST_TYPE, statusCode));
         Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
         int EXPECTED_ITEMS = 5; //seeded permissions
-        int actual = list.getPermissions().size();
+        int actual = list.getPermission().size();
         if (logger.isDebugEnabled()) {
             logger.debug(testName + ": received = " + actual
                     + " expected=" + EXPECTED_ITEMS);
         }
         // Optionally output additional data about list members for debugging.
         boolean iterateThroughList = true;
-        if ((iterateThroughList || (EXPECTED_ITEMS != list.getPermissions().size()))
+        if ((iterateThroughList || (EXPECTED_ITEMS != list.getPermission().size()))
                        && logger.isDebugEnabled()) {
             printList(testName, list);
         }
-        Assert.assertEquals(list.getPermissions().size(), EXPECTED_ITEMS);
+        Assert.assertEquals(list.getPermission().size(), EXPECTED_ITEMS);
 
     }
 
@@ -539,7 +539,7 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
             logger.debug(testName + " no. of actions default=" + default_actions
                     + " to update =" + toUpdate_actions);
         }
-        permToUpdate.setActions(actions);
+        permToUpdate.setAction(actions);
         if (logger.isDebugEnabled()) {
             logger.debug(testName + " updated object\n"
                     + objectAsXmlString(permToUpdate, Permission.class));
@@ -558,7 +558,7 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
 
         Permission permUpdated = (Permission) res.getEntity();
         Assert.assertNotNull(permUpdated);
-        int updated_actions = permToUpdate.getActions().size();
+        int updated_actions = permToUpdate.getAction().size();
         if (logger.isDebugEnabled()) {
             logger.debug(testName + " no. of actions to update=" + toUpdate_actions
                     + " updated =" + updated_actions);
@@ -782,7 +782,7 @@ public class PermissionServiceTest extends AbstractServiceTestImpl {
 
         int i = 0;
 
-        for (Permission permission : list.getPermissions()) {
+        for (Permission permission : list.getPermission()) {
             logger.debug(testName + " permission csid=" + permission.getCsid()
                     + " name=" + permission.getResourceName()
                     + " desc=" + permission.getDescription());
index 5142e0eb32274c699feaaeec0a92b396ceb198f5..1953c9ce970f2648f08d1dd698174ffead368c5b 100644 (file)
@@ -28,10 +28,10 @@ import java.util.Date;
 import java.util.Hashtable;
 import java.util.List;
 import javax.ws.rs.core.Response;
-import org.collectionspace.services.authorization.EffectType;
+import org.collectionspace.services.authorization.perms.EffectType;
 
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
@@ -478,7 +478,7 @@ public class RolePermissionServiceTest extends AbstractServiceTestImpl {
         PermissionRole toDelete = readResponse.getEntity();
         readResponse.releaseConnection();        
         
-        rv = toDelete.getRoles().get(0);
+        rv = toDelete.getRole().get(0);
         ClientResponse<Response> res = null;
         try {
             res = client.delete(
index fe636436c4d3103dd63f9bb77e04bc8a5528cafa..6ec65bdc3a9f4e6d9bfad6844f77197e59acb5ce 100644 (file)
@@ -58,10 +58,10 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
     // Instance variables specific to this test.
     /** The known resource id. */
     private String knownResourceId = null;
-    private String knownRoleName = "ROLE_USERS_TEST";
-    private String knownRoleDisplayName = "ROLE_DISPLAYNAME_USERS_TEST";
+    private String knownRoleName = "ROLE_USERS_MOCK";
+    private String knownRoleDisplayName = "ROLE_DISPLAYNAME_USERS_MOCK";
     private String verifyResourceId = null;
-    private String verifyRoleName = "collections_manager_test";
+    private String verifyRoleName = "collections_manager_mock";
 //    private List<String> allResourceIdsCreated = new ArrayList<String>();
 
     @Override
@@ -547,10 +547,10 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
         Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
         int EXPECTED_ITEMS = 1;
         if (logger.isDebugEnabled()) {
-            logger.debug(testName + ": received = " + list.getRoles().size()
+            logger.debug(testName + ": received = " + list.getRole().size()
                     + " expected=" + EXPECTED_ITEMS);
         }
-        Assert.assertEquals(EXPECTED_ITEMS, list.getRoles().size());
+        Assert.assertEquals(EXPECTED_ITEMS, list.getRole().size());
         // Optionally output additional data about list members for debugging.
         boolean iterateThroughList = true;
         if (iterateThroughList && logger.isDebugEnabled()) {
@@ -587,7 +587,8 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
         roleToUpdate.setDescription("updated role description");
         if (logger.isDebugEnabled()) {
             logger.debug("updated object");
-            logger.debug(objectAsXmlString(roleToUpdate,
+            org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();            
+            logger.debug(objectAsXmlString(objectFactory.createRole(roleToUpdate),
                     Role.class));
         }
         RoleClient client = new RoleClient();
@@ -684,7 +685,9 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
        Assert.assertNotNull(roleUpdated);
         if (logger.isDebugEnabled()) {
             logger.debug(testName + "Updated role: ");
-            logger.debug(objectAsXmlString(roleUpdated,Role.class));
+            org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();            
+            logger.debug(objectAsXmlString(objectFactory.createRole(roleUpdated),
+                    Role.class));            
         }
 
        Assert.assertFalse(
@@ -711,7 +714,8 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
         roleToUpdate.setDisplayName("UPDATED-ROLE_USERS_TEST");
         if (logger.isDebugEnabled()) {
             logger.debug("updated object");
-            logger.debug(objectAsXmlString(roleToUpdate,
+            org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();            
+            logger.debug(objectAsXmlString(objectFactory.createRole(roleToUpdate),
                     Role.class));
         }
         RoleClient client = new RoleClient();
@@ -914,7 +918,9 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
                 useRoleName);
         if (logger.isDebugEnabled()) {
             logger.debug("to be created, role");
-            logger.debug(objectAsXmlString(role, Role.class));
+            org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();            
+            logger.debug(objectAsXmlString(objectFactory.createRole(role),
+                    Role.class));
         }
         return role;
 
@@ -931,7 +937,7 @@ public class RoleServiceTest extends AbstractServiceTestImpl {
 
         int i = 0;
 
-        for (Role role : list.getRoles()) {
+        for (Role role : list.getRole()) {
             logger.debug(testName + " role csid=" + role.getCsid()
                     + " name=" + role.getRoleName()
                     + " desc=" + role.getDescription());
index d74206c25774924d9ec8e224e8bb586598bf008e..13b7bd4e810f9925ee810e55fc3537ea67c0dca7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.authorization-mgt</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
         <dependency>\r
             <groupId>org.slf4j</groupId>\r
             <artifactId>slf4j-api</artifactId>\r
+            <version>1.6.1</version>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.slf4j</groupId>\r
             <artifactId>slf4j-log4j12</artifactId>\r
+            <version>1.6.1</version>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
index 2e3e8cb3d568e88506622c6594586d0945b1a461..1273605ef1fed0359e7178d33ee2fa3082466f0b 100644 (file)
@@ -28,7 +28,7 @@ import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.List;
 import org.collectionspace.services.authorization.AuthZ;
-import org.collectionspace.services.authorization.Permission;
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionRoleRel;
 import org.collectionspace.services.authorization.Role;
index 24802713b64ac145311dfca4fa89b601e966b249..ffaa8f7d5e63a9ad48149bd991c4889abf7d8e36 100644 (file)
@@ -33,14 +33,14 @@ import java.util.List;
 import java.util.UUID;
 import javax.xml.bind.JAXBContext;
 import javax.xml.bind.Marshaller;
-import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.ActionType;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.EffectType;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionActionUtil;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
-import org.collectionspace.services.authorization.PermissionsList;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.collectionspace.services.authorization.PermissionsRolesList;
 import org.collectionspace.services.client.RoleClient;
 import org.collectionspace.services.authorization.Role;
@@ -160,7 +160,7 @@ public class AuthorizationGen {
         
         perm.setActionGroup(ACTIONGROUP_CRUDL);
         ArrayList<PermissionAction> pas = new ArrayList<PermissionAction>();
-        perm.setActions(pas);
+        perm.setAction(pas);
 
         PermissionAction permAction = PermissionActionUtil.create(perm, ActionType.CREATE);
         pas.add(permAction);
@@ -225,7 +225,7 @@ public class AuthorizationGen {
         
         perm.setActionGroup(ACTIONGROUP_RL);
         ArrayList<PermissionAction> pas = new ArrayList<PermissionAction>();
-        perm.setActions(pas);
+        perm.setAction(pas);
 
         PermissionAction permAction = PermissionActionUtil.create(perm, ActionType.READ);
         pas.add(permAction);
@@ -342,7 +342,7 @@ public class AuthorizationGen {
         PermissionRole pr = new PermissionRole();
         pr.setSubject(SubjectType.ROLE);
         List<PermissionValue> permValues = new ArrayList<PermissionValue>();
-        pr.setPermissions(permValues);
+        pr.setPermission(permValues);
         PermissionValue permValue = new PermissionValue();
         permValue.setPermissionId(perm.getCsid());
         permValue.setResourceName(perm.getResourceName().toLowerCase());
@@ -372,7 +372,7 @@ public class AuthorizationGen {
         // otherwise, return null;
         //
         if (roleValues.isEmpty() == false) {
-               pr.setRoles(roleValues);
+               pr.setRole(roleValues);
                result = pr;
         }
 
@@ -408,8 +408,13 @@ public class AuthorizationGen {
         List<Role> allRoleList = new ArrayList<Role>();
         allRoleList.addAll(adminRoles);
         allRoleList.addAll(readerRoles);
-        rList.setRoles(allRoleList);
-        toFile(rList, RolesList.class,
+        rList.setRole(allRoleList);
+        //
+        // Since it is missing the @XMLRootElement annotation, create a JAXBElement wrapper for the RoleList instance
+        // so we can have it marshalled it correctly.
+        //
+        org.collectionspace.services.authorization.ObjectFactory objectFactory = new org.collectionspace.services.authorization.ObjectFactory();
+        toFile(objectFactory.createRolesList(rList), RolesList.class,
                 fileName);
         if (logger.isDebugEnabled()) {
             logger.debug("exported roles to " + fileName);
@@ -421,8 +426,11 @@ public class AuthorizationGen {
         List<Permission> allPermList = new ArrayList<Permission>();
         allPermList.addAll(adminPermList);
         allPermList.addAll(readerPermList);
-        pcList.setPermissions(allPermList);
+        pcList.setPermission(allPermList);
+        org.collectionspace.services.authorization.ObjectFactory objectFactory =
+               new org.collectionspace.services.authorization.ObjectFactory();
         toFile(pcList, PermissionsList.class,
+//        toFile(objectFactory.createPermissionsList(pcList), PermissionsList.class,
                 fileName);
         if (logger.isDebugEnabled()) {
             logger.debug("exported permissions to " + fileName);
@@ -434,7 +442,7 @@ public class AuthorizationGen {
         List<PermissionRole> allPermRoleList = new ArrayList<PermissionRole>();
         allPermRoleList.addAll(adminPermRoleList);
         allPermRoleList.addAll(readerPermRoleList);
-        psrsl.setPermissionRoles(allPermRoleList);
+        psrsl.setPermissionRole(allPermRoleList);
         toFile(psrsl, PermissionsRolesList.class,
                 fileName);
         if (logger.isDebugEnabled()) {
index 4e80ddb5bfbc7500dad24c8d87cee11df7b96db9..cd99f641ec04b4af1ff8248f0449a6dc751c68db 100644 (file)
@@ -29,17 +29,17 @@ import java.util.ArrayList;
 import java.util.List;
 import javax.xml.bind.JAXBContext;
 import javax.xml.bind.Unmarshaller;
-import org.collectionspace.services.authorization.ActionType;
+import org.collectionspace.services.authorization.perms.ActionType;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.collectionspace.services.authorization.AuthZ;
 import org.collectionspace.services.authorization.CSpaceAction;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.EffectType;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionException;
 import org.collectionspace.services.authorization.PermissionRole;
-import org.collectionspace.services.authorization.PermissionsList;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.collectionspace.services.authorization.PermissionsRolesList;
 import org.collectionspace.services.authorization.RoleValue;
 import org.collectionspace.services.authorization.URIResourceImpl;
@@ -60,18 +60,18 @@ public class AuthorizationSeed {
      * @throws Exception
      */
     public void seedPermissions(String permFileName, String permRoleFileName) throws Exception {
-        PermissionsList permList =
-                (PermissionsList) fromFile(PermissionsList.class,
-                permFileName);
-        if (logger.isDebugEnabled()) {
-            logger.debug("read permissions from " + permFileName);
-        }
         PermissionsRolesList permRoleList =
                 (PermissionsRolesList) fromFile(PermissionsRolesList.class,
                 permRoleFileName);
         if (logger.isDebugEnabled()) {
             logger.debug("read permissions-roles from " + permRoleFileName);
         }
+        PermissionsList permList =
+            (PermissionsList) fromFile(PermissionsList.class,
+            permFileName);
+           if (logger.isDebugEnabled()) {
+               logger.debug("read permissions from " + permFileName);
+           }
 
         seedPermissions(permList, permRoleList);
     }
@@ -84,13 +84,13 @@ public class AuthorizationSeed {
      */
     public void seedPermissions(PermissionsList permList, PermissionsRolesList permRoleList)
             throws Exception {
-        for (Permission p : permList.getPermissions()) {
+        for (Permission p : permList.getPermission()) {
             if (logger.isTraceEnabled()) {
                 logger.trace("adding permission for res=" + p.getResourceName() +
                         " for tenant=" + p.getTenantId());
             }
-            for (PermissionRole pr : permRoleList.getPermissionRoles()) {
-                if (pr.getPermissions().get(0).getPermissionId().equals(p.getCsid())) {
+            for (PermissionRole pr : permRoleList.getPermissionRole()) {
+                if (pr.getPermission().get(0).getPermissionId().equals(p.getCsid())) {
                     addPermissionsForUri(p, pr);
                 }
             }
@@ -105,16 +105,16 @@ public class AuthorizationSeed {
     private void addPermissionsForUri(Permission perm,
             PermissionRole permRole) throws PermissionException {
         List<String> principals = new ArrayList<String>();
-        if (!perm.getCsid().equals(permRole.getPermissions().get(0).getPermissionId())) {
+        if (!perm.getCsid().equals(permRole.getPermission().get(0).getPermissionId())) {
             throw new IllegalArgumentException("permission ids do not"
-                    + " match for role=" + permRole.getRoles().get(0).getRoleName()
-                    + " with permissionId=" + permRole.getPermissions().get(0).getPermissionId()
+                    + " match for role=" + permRole.getRole().get(0).getRoleName()
+                    + " with permissionId=" + permRole.getPermission().get(0).getPermissionId()
                     + " for permission with csid=" + perm.getCsid());
         }
-        for (RoleValue roleValue : permRole.getRoles()) {
+        for (RoleValue roleValue : permRole.getRole()) {
             principals.add(roleValue.getRoleName());
         }
-        List<PermissionAction> permActions = perm.getActions();
+        List<PermissionAction> permActions = perm.getAction();
         for (PermissionAction permAction : permActions) {
             CSpaceAction action = URIResourceImpl.getAction(permAction.getName());
             URIResourceImpl uriRes = new URIResourceImpl(perm.getTenantId(),
index ec517f79d8df503f83b239af54b011f326a93948..911f05335423c5b3ad609d5f4ea4ec185c36be7b 100644 (file)
@@ -2,8 +2,8 @@
 <persistence version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
              http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <persistence-unit name="org.collectionspace.services.authorization">
-        <class>org.collectionspace.services.authorization.Permission</class>
-        <class>org.collectionspace.services.authorization.PermissionAction</class>
+        <class>org.collectionspace.services.authorization.perms.Permission</class>
+        <class>org.collectionspace.services.authorization.perms.PermissionAction</class>
         <class>org.collectionspace.services.authorization.PermissionRoleRel</class>
         <class>org.collectionspace.services.authorization.Role</class>
         <class>org.collectionspace.services.authorization.AccountRoleRel</class>
index 9963ddb4c093d57dd750d1d9540355e58ecddcf2..7eab9d9f159277f9d5746ba92a8f7faf6da865d3 100644 (file)
@@ -26,3 +26,5 @@ log4j.logger.hibernate=WARN
 log4j.logger.org.hibernate=WARN\r
 log4j.logger.org.hibernate.cfg=WARN\r
 log4j.logger.org.springframework=INFO\r
+log4j.logger.ch.elca.el4j.services.xmlmerge=INFO\r
+log4j.logger.com.sun.xml.bind.v2.runtime=DEBUG\r
index 3f2a79855c69acb8ad2ff74b15cb4feea97f13d7..891808cd6a9c45fcfe299503005ff1ba8a2ed7d3 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <artifactId>org.collectionspace.services.main</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <groupId>org.collectionspace.services</groupId>
index 646c3a3202f866d232b559a1e6a7958af4afa8bd..e3d579f729be1b5d8248d6992ba8d793aaabd350 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.authorization-mgt</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.authorization-mgt.service</artifactId>\r
index 41701453e6906b5fbed34148bcf134a74bb12459..4f7b0e6f57bac629b0501bbb352de331cd440eb5 100644 (file)
  */
 package org.collectionspace.services.authorization;
 
+import org.collectionspace.services.authorization.perms.FooPermissionsList;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.collectionspace.services.authorization.storage.AuthorizationDelegate;
+import org.collectionspace.services.client.PayloadOutputPart;
 import org.collectionspace.services.client.PermissionClient;
 import org.collectionspace.services.common.SecurityResourceBase;
 import org.collectionspace.services.common.ServiceMessages;
@@ -98,7 +102,19 @@ public class PermissionResource extends SecurityResourceBase {
     @GET
     @Produces("application/xml")
     public PermissionsList getPermissionList(@Context UriInfo ui) {
-        return (PermissionsList)getList(ui, Permission.class);
+       PermissionsList result = (PermissionsList)getList(ui, Permission.class);
+       PayloadOutputPart ppo = new PayloadOutputPart(PermissionsList.class.getName(), result);
+       System.out.println(ppo.asXML());
+       
+       return result;
+    }
+
+    @GET
+    @Path("{csid}/foo")
+    @Produces("application/xml")
+    public FooPermissionsList getPermissionFooList(@Context UriInfo ui) {
+       FooPermissionsList result = new FooPermissionsList();           
+       return result;
     }
 
     @PUT
index 053d4648066f0260f9f5fb0b11230a7df7eee98f..c5fbde75fbdfa451aec835d3814b53ad2f4f7038 100644 (file)
@@ -23,6 +23,7 @@
  */
 package org.collectionspace.services.authorization;
 
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.authorization.storage.PermissionRoleDocumentHandler;
 
 import org.collectionspace.services.common.AbstractCollectionSpaceResourceImpl;
index 90302c9f7c040e277723227976aa2980b2d6cf3d..1b0f249b219e9e5e348f711c2eb4bba95f346f33 100644 (file)
@@ -25,13 +25,13 @@ package org.collectionspace.services.authorization.storage;
 
 import java.util.ArrayList;
 import java.util.List;
-import org.collectionspace.services.authorization.ActionType;
+import org.collectionspace.services.authorization.perms.ActionType;
 import org.collectionspace.services.authorization.AuthZ;
 import org.collectionspace.services.authorization.CSpaceAction;
 import org.collectionspace.services.authorization.CSpaceResource;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.EffectType;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionException;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
@@ -66,7 +66,7 @@ public class AuthorizationDelegate {
         SubjectType subject = PermissionRoleUtil.getRelationSubject(ctx, pr);
         AuthZ authz = AuthZ.get();
         if (subject.equals(SubjectType.ROLE)) {
-            PermissionValue pv = pr.getPermissions().get(0);
+            PermissionValue pv = pr.getPermission().get(0);
             Permission p = getPermission(pv.getPermissionId());
             if (p == null) {
                 String msg = "addPermissions: No permission found for id=" + pv.getPermissionId();
@@ -74,13 +74,13 @@ public class AuthorizationDelegate {
                 throw new DocumentNotFoundException(msg);
             }
             CSpaceResource[] resources = getResources(p);
-            String[] roles = getRoles(pr.getRoles());
+            String[] roles = getRoles(pr.getRole());
             for (CSpaceResource res : resources) {
                 boolean grant = p.getEffect().equals(EffectType.PERMIT) ? true : false;
                 authz.addPermissions(res, roles, grant);
             }
         } else if (SubjectType.PERMISSION.equals(subject)) {
-            RoleValue rv = pr.getRoles().get(0);
+            RoleValue rv = pr.getRole().get(0);
             Role r = getRole(rv.getRoleId());
             if (r == null) {
                 String msg = "addPermissions: No role found for id=" + rv.getRoleId();
@@ -90,7 +90,7 @@ public class AuthorizationDelegate {
             //using r not rv ensures we're getting the "ROLE" prefix/qualified name
             // This needs to use the qualified name, not the display name
             String[] roles = {r.getRoleName()};
-            for (PermissionValue pv : pr.getPermissions()) {
+            for (PermissionValue pv : pr.getPermission()) {
                 Permission p = getPermission(pv.getPermissionId());
                 if (p == null) {
                     String msg = "addPermissions: No permission found for id=" + pv.getPermissionId();
@@ -118,7 +118,7 @@ public class AuthorizationDelegate {
         SubjectType subject = PermissionRoleUtil.getRelationSubject(ctx, pr);
         AuthZ authz = AuthZ.get();
         if (subject.equals(SubjectType.ROLE)) {
-               List<PermissionValue> permissionValues = pr.getPermissions();
+               List<PermissionValue> permissionValues = pr.getPermission();
                if (permissionValues != null & permissionValues.size() > 0) {
                    PermissionValue pv = permissionValues.get(0);
                    Permission p = getPermission(pv.getPermissionId());
@@ -128,13 +128,13 @@ public class AuthorizationDelegate {
                        throw new DocumentNotFoundException(msg);
                    }
                    CSpaceResource[] resources = getResources(p);
-                   String[] roles = getRoles(pr.getRoles());
+                   String[] roles = getRoles(pr.getRole());
                    for (CSpaceResource res : resources) {
                        authz.deletePermissions(res, roles);
                    }
                }
         } else if (SubjectType.PERMISSION.equals(subject)) {
-               List<RoleValue> roleValues = pr.getRoles();
+               List<RoleValue> roleValues = pr.getRole();
                if (roleValues != null && roleValues.size() > 0) {
                    RoleValue rv = roleValues.get(0);
                    Role r = getRole(rv.getRoleId());
@@ -146,7 +146,7 @@ public class AuthorizationDelegate {
                    //using r not rv ensures we're getting the "ROLE" prefix/qualified name
                    // This needs to use the qualified name, not the display name
                    String[] roles = {r.getRoleName()}; 
-                   for (PermissionValue pv : pr.getPermissions()) {
+                   for (PermissionValue pv : pr.getPermission()) {
                        Permission p = getPermission(pv.getPermissionId());
                        if (p == null) {
                            String msg = "deletePermissions: No permission found for id=" + pv.getPermissionId();
@@ -225,7 +225,7 @@ public class AuthorizationDelegate {
     private static CSpaceResource[] getResources(Permission p) {
         List<CSpaceResource> rl = new ArrayList<CSpaceResource>();
 
-        for (PermissionAction pa : p.getActions()) {
+        for (PermissionAction pa : p.getAction()) {
             CSpaceResource res = null;
             if (p.getTenantId() == null) {
                 res = new URIResourceImpl(p.getResourceName(),
index 8fda7558744554093dc24a0a09918b345e135445..6c0ea8e81210a28f057c1de70c0e65942b876d57 100644 (file)
@@ -27,20 +27,13 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.UUID;
 
-import org.collectionspace.services.authorization.AccountRole;
-import org.collectionspace.services.authorization.AccountRoleRel;
-import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.AuthZ;
+import org.collectionspace.services.authorization.perms.ActionType;
 import org.collectionspace.services.authorization.CSpaceAction;
-import org.collectionspace.services.authorization.EffectType;
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
-import org.collectionspace.services.authorization.PermissionActionUtil;
-import org.collectionspace.services.authorization.PermissionsList;
-import org.collectionspace.services.authorization.PermissionsRolesList;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
+import org.collectionspace.services.authorization.perms.PermissionsList;
 import org.collectionspace.services.authorization.URIResourceImpl;
 
-import org.collectionspace.services.common.document.AbstractDocumentHandlerImpl;
 import org.collectionspace.services.common.document.BadRequestException;
 import org.collectionspace.services.common.document.DocumentFilter;
 import org.collectionspace.services.common.document.DocumentWrapper;
@@ -92,7 +85,7 @@ public class PermissionDocumentHandler
     private void handlePermissionActions(Permission perm) {
        //FIXME: REM - Having Java class loader issues with ActionType class.  Not sure of the cause.
        try {
-               List<PermissionAction> permActions = perm.getActions();
+               List<PermissionAction> permActions = perm.getAction();
                for (PermissionAction permAction : permActions) {
                    CSpaceAction action = getAction(permAction.getName());
                    URIResourceImpl uriRes = new URIResourceImpl(perm.getTenantId(),
@@ -147,10 +140,10 @@ public class PermissionDocumentHandler
         if (from.getEffect() != null) {
             to.setEffect(from.getEffect());
         }
-        List<PermissionAction> fromActions = from.getActions();
+        List<PermissionAction> fromActions = from.getAction();
         if (!fromActions.isEmpty()) {
             //override the whole list, no reconcilliation by design
-            to.setActions(fromActions);
+            to.setAction(fromActions);
         }
 
         if (logger.isDebugEnabled()) {
@@ -209,7 +202,7 @@ public class PermissionDocumentHandler
 
         PermissionsList permissionsList = new PermissionsList();
         List<Permission> list = new ArrayList<Permission>();
-        permissionsList.setPermissions(list);
+        permissionsList.setPermission(list);
         for (Object obj : wrapDoc.getWrappedObject()) {
             Permission permission = (Permission) obj;
             sanitize(permission);
index c4e7da89f8a44b9f7a2d2ccfd9ab84e8f15a6322..ba1871de11bdb8328fba9cc017f66750217b4d52 100644 (file)
@@ -26,19 +26,14 @@ package org.collectionspace.services.authorization.storage;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.collectionspace.services.authorization.AccountRole;
-import org.collectionspace.services.authorization.AccountRoleRel;
-import org.collectionspace.services.authorization.Permission;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionRoleRel;
 import org.collectionspace.services.authorization.PermissionValue;
-import org.collectionspace.services.authorization.PermissionsList;
 import org.collectionspace.services.authorization.PermissionsRolesList;
 import org.collectionspace.services.authorization.RoleValue;
 import org.collectionspace.services.authorization.SubjectType;
 
 import org.collectionspace.services.common.authorization_mgt.AuthorizationRoleRel;
-import org.collectionspace.services.common.document.AbstractDocumentHandlerImpl;
 import org.collectionspace.services.common.document.DocumentFilter;
 import org.collectionspace.services.common.document.DocumentWrapper;
 import org.collectionspace.services.common.storage.jpa.JpaDocumentHandler;
@@ -160,13 +155,13 @@ public class PermissionRoleDocumentHandler
         if (SubjectType.ROLE.equals(subject)) {
 
             List<PermissionValue> pvs = new ArrayList<PermissionValue>();
-            pr.setPermissions(pvs);
+            pr.setPermission(pvs);
             PermissionValue pv = AuthorizationRoleRel.buildPermissionValue(prr0);
             pvs.add(pv);
 
             //add roles
             List<RoleValue> rvs = new ArrayList<RoleValue>();
-            pr.setRoles(rvs);
+            pr.setRole(rvs);
             for (PermissionRoleRel prr : prrl) {
                 RoleValue rv = AuthorizationRoleRel.buildRoleValue(prr);
                 rvs.add(rv);
@@ -174,13 +169,13 @@ public class PermissionRoleDocumentHandler
         } else if (SubjectType.PERMISSION.equals(subject)) {
 
             List<RoleValue> rvs = new ArrayList<RoleValue>();
-            pr.setRoles(rvs);
+            pr.setRole(rvs);
             RoleValue rv = AuthorizationRoleRel.buildRoleValue(prr0);
             rvs.add(rv);
 
             //add permssions
             List<PermissionValue> pvs = new ArrayList<PermissionValue>();
-            pr.setPermissions(pvs);
+            pr.setPermission(pvs);
             for (PermissionRoleRel prr : prrl) {
                 PermissionValue pv = AuthorizationRoleRel.buildPermissionValue(prr);
                 pvs.add(pv);
index 7022a8c61080529eec16ce730f2333e462b048ff..c2a53b686b274fb3ead4685b2c68be45c95c120b 100644 (file)
@@ -32,12 +32,11 @@ import org.collectionspace.services.common.context.ServiceContextProperties;
 import org.collectionspace.services.common.storage.jpa.JpaRelationshipStorageClient;
 import org.collectionspace.services.common.storage.jpa.JpaStorageUtils;
 
-import org.collectionspace.services.authorization.Permission;
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionRoleRel;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
-import org.collectionspace.services.authorization.RoleResource;
 import org.collectionspace.services.authorization.RoleValue;
 import org.collectionspace.services.authorization.SubjectType;
 
@@ -101,19 +100,19 @@ public class PermissionRoleUtil {
                boolean handleDelete)
                        throws DocumentNotFoundException {
         if (subject.equals(SubjectType.ROLE)) {
-               List<PermissionValue> permissionValues = pr.getPermissions();
+               List<PermissionValue> permissionValues = pr.getPermission();
                if (permissionValues != null && permissionValues.size() > 0) {
                    PermissionValue pv = permissionValues.get(0);
-                   for (RoleValue rv : pr.getRoles()) {
+                   for (RoleValue rv : pr.getRole()) {
                        PermissionRoleRel prr = buildPermissonRoleRel(pv, rv, subject, handleDelete);
                        prrl.add(prr);
                    }
                }
         } else if (subject.equals(SubjectType.PERMISSION)) {
-               List<RoleValue> roleValues = pr.getRoles();
+               List<RoleValue> roleValues = pr.getRole();
                if (roleValues != null && roleValues.size() > 0) {
                    RoleValue rv = roleValues.get(0);
-                   for (PermissionValue pv : pr.getPermissions()) {
+                   for (PermissionValue pv : pr.getPermission()) {
                        PermissionRoleRel prr = buildPermissonRoleRel(pv, rv, subject, handleDelete);
                        prrl.add(prr);
                    }
index 8d41506ce4917a74a7e2b43e7c599cfab991e9a7..e466c708315424aee79aef0f494c2cee78368417 100644 (file)
@@ -25,7 +25,7 @@
 package org.collectionspace.services.authorization.storage;
 
 import org.collectionspace.services.common.document.DocumentNotFoundException;
-import org.collectionspace.services.authorization.Permission;
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
@@ -60,12 +60,12 @@ public class PermissionRoleValidatorHandler implements ValidatorHandler {
 
             if (action.equals(Action.CREATE)) {
 
-                for (PermissionValue pv : permRole.getPermissions()) {
+                for (PermissionValue pv : permRole.getPermission()) {
                     if (isPermissionInvalid(pv.getPermissionId(), msgBldr)) {
                         invalid = true;
                     }
                 }
-                for (RoleValue rv : permRole.getRoles()) {
+                for (RoleValue rv : permRole.getRole()) {
                     if (isRoleInvalid(rv.getRoleId(), msgBldr)) {
                         invalid = true;
                     }
index fd4ee58bf53466fe2429e681376a6205d90ebde3..ee1d43b7138d09b64cff6779d745ad87b35932ec 100644 (file)
@@ -24,7 +24,7 @@
 
 package org.collectionspace.services.authorization.storage;
 
-import org.collectionspace.services.authorization.Permission;
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.common.ServiceMessages;
 import org.collectionspace.services.common.context.ServiceContext;
 import org.collectionspace.services.common.document.DocumentHandler.Action;
index ccec2ad698f60c6602a1cbdbeae8d8fd6caded60..5526957ce290a8626400c9b30570a40784a9d7fd 100644 (file)
@@ -112,7 +112,9 @@ public class RoleDocumentHandler
         }
         // Note that we do not allow update of locks
         if (logger.isDebugEnabled()) {
-            logger.debug("merged role=" + JaxbUtils.toString(to, Role.class));
+               org.collectionspace.services.authorization.ObjectFactory objectFactory =
+                       new org.collectionspace.services.authorization.ObjectFactory();
+            logger.debug("merged role=" + JaxbUtils.toString(objectFactory.createRole(to) ,Role.class));
         }
         return to;
     }
@@ -158,7 +160,7 @@ public class RoleDocumentHandler
 
         RolesList rolesList = new RolesList();
         List<Role> list = new ArrayList<Role>();
-        rolesList.setRoles(list);
+        rolesList.setRole(list);
         for (Object obj : wrapDoc.getWrappedObject()) {
             Role role = (Role) obj;
             sanitize(role);
index c5047dea08b24149831e10e01318a33d867a78be..c2f1a72c8aaa9d17b44b5bd78993315a6b9eef59 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 834ef8f77b593bea5a4448d4e36fc0a8e53e7118..ced6d26670638171a8fd33088188d93b6bd29bba 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.authorization</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
             <artifactId>property-listener-injector</artifactId>\r
         </dependency>\r
         <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
+            <groupId>javax.persistence</groupId>\r
+            <artifactId>persistence-api</artifactId>\r
         </dependency>\r
+        <dependency>\r
+            <groupId>org.hibernate</groupId>\r
+            <artifactId>hibernate-entitymanager</artifactId>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>org.jvnet.hyperjaxb3</groupId>\r
+            <artifactId>hyperjaxb3-ejb-runtime</artifactId>\r
+        </dependency>\r
+        <dependency>\r
+                       <groupId>org.collectionspace.services</groupId>\r
+                       <artifactId>org.collectionspace.services.hyperjaxb</artifactId>\r
+                       <version>${project.version}</version>\r
+        </dependency>        \r
+<!--     \r
         <dependency>\r
             <groupId>javax.persistence</groupId>\r
             <artifactId>persistence-api</artifactId>\r
             <groupId>org.hibernate</groupId>\r
             <artifactId>hibernate-entitymanager</artifactId>\r
         </dependency>\r
+        <dependency>\r
+                       <groupId>org.collectionspace.services</groupId>\r
+                       <artifactId>org.collectionspace.services.hyperjaxb</artifactId>\r
+                       <version>${project.version}</version>\r
+                       <exclusions>\r
+                               <exclusion>\r
+                                       <artifactId>jaxb-impl</artifactId>\r
+                                       <groupId>com.sun.xml.bind</groupId>\r
+                               </exclusion>\r
+                       </exclusions>\r
+        </dependency>\r
+-->\r
     </dependencies>\r
 \r
     <build>\r
@@ -45,7 +71,6 @@
         <defaultGoal>install</defaultGoal>\r
         <plugins>\r
             <plugin>\r
-                <!-- maven-hyperjaxb3-plugin generates jaxb + jpa bindings -->\r
                 <groupId>org.jvnet.hyperjaxb3</groupId>\r
                 <artifactId>maven-hyperjaxb3-plugin</artifactId>\r
             </plugin>\r
index 6bdf5735efc1f08a7333b6c47977e9c7ac1c699d..9417bd38c82974651959a421aa9b9c5b49265ba3 100644 (file)
     jaxb:extensionBindingPrefixes="hj orm xjc"\r
     >\r
 \r
-    <!--\r
-    Avoid XmlRootElement nightmare:\r
-    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html\r
-    -->\r
-\r
-    <!--xs:annotation>\r
-    Note that roles.xsd already defines global bindings for the authorization namespace\r
-    so, it is not necessary to give the bindingings here because all the xsds are compiled\r
-    at once for this namespace\r
-        <xs:appinfo>\r
-            <jaxb:globalBindings>\r
-                <xjc:simple />\r
-            </jaxb:globalBindings>\r
-        </xs:appinfo>\r
-    </xs:annotation-->\r
-\r
     <xs:include schemaLocation="authorization_common.xsd"/>\r
 \r
     <xs:element name="account_permission" type="account_permission"/>\r
index 2acd1c59364c9f4a9a2586f16055f460e0967c03..58af0e53d03f8a028ffd74a42602348e4cc07d3c 100644 (file)
     jaxb:extensionBindingPrefixes="hj orm xjc"
     >
 
-    <!--
-    Avoid XmlRootElement nightmare:
-    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
--->
 <!--
     Notes for MySQL
     MySQL puts key length limit of 1000 bytes
     hbm2ddl makes column length >= 256 as long text, such as column cannot be used
     in defining a key (pk, fk or constraint)
     -->
-    <!--xs:annotation>
-    Note that roles.xsd already defines global bindings for the authorization namespace
-    so, it is not necessary to give the bindingings here because all the xsds are compiled
-    at once for this namespace
-        <xs:appinfo>
-            <jaxb:globalBindings>
-                <xjc:simple />
-            </jaxb:globalBindings>
-        </xs:appinfo>
-    </xs:annotation-->
 
     <xs:include schemaLocation="authorization_common.xsd"/>
 
index 906f27726f0070106807e24c6111532b3d345a56..cadd94c4a720066dcc855727feb880b0db384f9c 100644 (file)
@@ -13,6 +13,7 @@
 <xs:schema 
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+    jaxb:version="1.0" elementFormDefault="unqualified"
     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
     xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
     xmlns="http://collectionspace.org/services/authorization"
     targetNamespace="http://collectionspace.org/services/authorization"
     version="0.1"
-    jaxb:version="1.0"
     jaxb:extensionBindingPrefixes="hj orm xjc"
     >
 
-    <!--
-    see http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always
-    for more details behind xjc:simple
-    -->
-    <!--xs:annotation>
-    Note that roles.xsd already defines global bindings for the authorization namespace
-    so, it is not necessary to give the bindings here because all the xsds are compiled
-    at once for this namespace
-        <xs:appinfo>
-            <jaxb:globalBindings>
-                <xjc:simple />
-            </jaxb:globalBindings>
-        </xs:appinfo>
-    </xs:annotation-->
-
     <xs:complexType name="account_value" >
         <xs:annotation>
             <xs:documentation>
diff --git a/services/authorization/jaxb/src/main/resources/permissions.xsd b/services/authorization/jaxb/src/main/resources/permissions.xsd
deleted file mode 100644 (file)
index 0b88a8c..0000000
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
-<!--
-    CollectionSpace default (security) authorization provider schema (XSD)
-
-    Entity(s)  : permission
-    Used for:
-
-    $LastChangedRevision: 916 $
-    $LastChangedDate: 2009-11-05 16:59:20 -0800 (Thu, 05 Nov 2009) $
--->
-
-<xs:schema 
-    xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
-    xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
-    xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
-    xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
-    xmlns:ns="http://collectionspace.org/services/authorization"
-    xmlns="http://collectionspace.org/services/authorization"
-    targetNamespace="http://collectionspace.org/services/authorization"
-    version="0.1"
-    jaxb:version="1.0"
-    jaxb:extensionBindingPrefixes="hj orm xjc"
-    >
-
-    <!--
-    Avoid XmlRootElement nightmare:
-    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
--->
-
-    <!--
-    see http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always
-    for more details behind xjc:simple
-    -->
-    <!--xs:annotation>
-    Note that roles.xsd already defines global bindings for the authorization namespace
-    so, it is not necessary to give the bindingings here because all the xsds are compiled
-    at once for this namespace
-        <xs:appinfo>
-            <jaxb:globalBindings>
-                <xjc:simple />
-            </jaxb:globalBindings>
-        </xs:appinfo>
-    </xs:annotation-->
-    <xs:element name="permission" type="permission"/>
-    <xs:complexType name="permission">
-        <xs:annotation>
-            <xs:documentation>
-                CspacePermissionConfig describes permission in CollectionSpace
-                - resourceName could be a service path, e.g. collectionobjects or intakes
-                no need to give slash at the beginning or end
-                - attributeName could be an attribute of the service schema
-                e.g. otherNumber from collectionobjects_common
-                - actionGroup is label that can be used by a client to "group" sets of actions for operations
-                like searching for permissions by a specific actionGroup label.
-                - action describes the actions that could be taken on given resource (and attribute)
-                - effect describes the effect of the access control for the action
-                performed on the given resource (and attribute)
-            </xs:documentation>
-            <xs:appinfo>
-                <hj:entity>
-                    <orm:table name="permissions"/>
-                </hj:entity>
-            </xs:appinfo>
-        </xs:annotation>
-        <xs:sequence>
-
-            <xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="description" />
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="resourceName" type="xs:string" minOccurs="1" maxOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="resource_name" length="128"  nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="attributeName" type="xs:string" minOccurs="0" maxOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="attribute_name" length="128"  nullable="true"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="actionGroup" type="xs:string" minOccurs="0" maxOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="action_group" length="128"  nullable="true"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="action" type="permission_action" minOccurs="1" maxOccurs="unbounded"/>
-            <xs:element name="effect" type="effect_type" minOccurs="1" maxOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="effect" length="32"  nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="tenant_id" type="xs:string" minOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="tenant_id" length="128" nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="createdAt" type="xs:dateTime">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="created_at" nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="updatedAt" type="xs:dateTime">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="updated_at" />
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-        </xs:sequence>
-        <xs:attribute name="csid" type="xs:string">
-            <xs:annotation>
-                <xs:appinfo>
-                    <hj:id>
-                        <orm:column name="csid" length="128" nullable="false"/>
-                    </hj:id>
-                </xs:appinfo>
-            </xs:annotation>
-        </xs:attribute>
-    </xs:complexType>
-
-    <xs:complexType name="permission_action">
-        <xs:annotation>
-            <xs:appinfo>
-                <hj:entity>
-                    <orm:table name="permissions_actions">
-                    </orm:table>
-                </hj:entity>
-            </xs:appinfo>
-        </xs:annotation>
-        <xs:sequence>
-            <xs:element name="name" type="action_type" minOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="name" length="128" nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="objectIdentity" type="xs:string" minOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="objectIdentity" length="128" nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>
-            <xs:element name="objectIdentityResource" type="xs:string" minOccurs="1">
-                <xs:annotation>
-                    <xs:appinfo>
-                        <hj:basic>
-                            <orm:column name="objectIdentityResource" length="128" nullable="false"/>
-                        </hj:basic>
-                    </xs:appinfo>
-                </xs:annotation>
-            </xs:element>            
-        </xs:sequence>
-    </xs:complexType>
-
-    <xs:simpleType name = "action_type">
-        <xs:restriction base = "xs:string">
-            <xs:enumeration value = "CREATE"/>
-            <xs:enumeration value = "READ"/>
-            <xs:enumeration value = "UPDATE"/>
-            <xs:enumeration value = "DELETE"/>
-            <xs:enumeration value = "SEARCH"/>
-            <xs:enumeration value = "START"/>
-            <xs:enumeration value = "STOP"/>
-            <xs:enumeration value = "RUN"/>
-            <xs:enumeration value = "ADMIN"/>
-        </xs:restriction>
-    </xs:simpleType>
-
-    <xs:simpleType name = "effect_type">
-        <xs:restriction base = "xs:string">
-            <xs:enumeration value = "PERMIT"/>
-            <xs:enumeration value = "DENY"/>
-        </xs:restriction>
-    </xs:simpleType>
-
-</xs:schema>
-
diff --git a/services/authorization/jaxb/src/main/resources/permissions_list.xsd b/services/authorization/jaxb/src/main/resources/permissions_list.xsd
deleted file mode 100644 (file)
index 03c7e2f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
-<!--
-    CollectionSpace default (security) authorization provider schema (XSD)
-
-    Entity(s)  : permission
-    Used for:
-
-    $LastChangedRevision: 916 $
-    $LastChangedDate: 2009-11-05 16:59:20 -0800 (Thu, 05 Nov 2009) $
--->
-
-<xs:schema 
-    xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
-    xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
-    xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
-    xmlns:ns="http://collectionspace.org/services/authorization"
-    xmlns="http://collectionspace.org/services/authorization"
-    targetNamespace="http://collectionspace.org/services/authorization"
-    version="0.1"
-    jaxb:extensionBindingPrefixes="hj orm"
-    >
-
-    <!--
-    Avoid XmlRootElement nightmare:
-    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
--->
-
-    <xs:include schemaLocation="permissions.xsd"/>
-    <xs:element name="permissions_list">
-        <xs:complexType>
-            <xs:annotation>
-                <xs:appinfo>
-                    <hj:ignored/>
-                </xs:appinfo>
-            </xs:annotation>
-            <xs:sequence>
-                <xs:annotation>
-                    <xs:documentation>permission configuration list</xs:documentation>
-                </xs:annotation>
-                <xs:element name="permission" type="ns:permission" minOccurs="1" maxOccurs="unbounded"/>
-            </xs:sequence>
-        </xs:complexType>
-    </xs:element>
-
-</xs:schema>
-
index b3574025b436a9a2b18ba1bb6e109212134c0ac2..00a7e9646179877ad50d7b9520badb59c5d6e9cf 100644 (file)
@@ -13,6 +13,7 @@
 <xs:schema
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+    jaxb:version="1.0" elementFormDefault="unqualified"
     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
     xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
     xmlns="http://collectionspace.org/services/authorization"
     targetNamespace="http://collectionspace.org/services/authorization"
     version="0.1"
-    jaxb:version="1.0"
     jaxb:extensionBindingPrefixes="hj orm xjc"
     >
 
-    <!--
-    Avoid XmlRootElement nightmare:
-    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
--->
 <!--
     Notes for MySQL
     MySQL puts key length limit of 1000 bytes
     hbm2ddl makes column length >= 256 as long text, such as column cannot be used
     in defining a key (pk, fk or constraint)
     -->
-    <!--xs:annotation>
-    Note that roles.xsd already defines global bindings for the authorization namespace
-    so, it is not necessary to give the bindingings here because all the xsds are compiled
-    at once for this namespace
-        <xs:appinfo>
-            <jaxb:globalBindings>
-                <xjc:simple />
-            </jaxb:globalBindings>
-        </xs:appinfo>
-    </xs:annotation-->
 
     <xs:include schemaLocation="authorization_common.xsd"/>
 
index bc5d3498256461c79a181de583c897d9a572eef1..ee3103d238deaeef5e9bdacad43e5fd87139b4f0 100644 (file)
 <xs:schema 
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+    jaxb:version="1.0" elementFormDefault="unqualified"
     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
     xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
     xmlns:ns="http://collectionspace.org/services/authorization"
     xmlns="http://collectionspace.org/services/authorization"
     targetNamespace="http://collectionspace.org/services/authorization"
-    version="0.1"
-    jaxb:version="1.0"
-    jaxb:extensionBindingPrefixes="hj orm xjc"
+               version="0.1"
+               jaxb:extensionBindingPrefixes="hj orm xjc"
     >
 
-    <!--
-    Notes for MySQL
-    MySQL puts key length limit of 1000 bytes
-    username - rolename constraint should be within 1000 bytes
-    hbm2ddl makes column length >= 256 as long text, such as column cannot be used
-    in defining a key (pk, fk or constraint)
-    -->
-
     <!--
     see http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always
     for more details behind xjc:simple
     -->
+    <!-- 
     <xs:annotation>
         <xs:appinfo>
             <jaxb:globalBindings>
             </jaxb:globalBindings>
         </xs:appinfo>
     </xs:annotation>
+    -->
+    
+       <xs:annotation>
+               <xs:appinfo>
+                       <jaxb:globalBindings generateIsSetMethod="true" localScoping="toplevel">
+                               <jaxb:serializable/>
+                       </jaxb:globalBindings>
+               </xs:appinfo>
+       </xs:annotation>
+    
+    <!--
+    Notes for MySQL
+    MySQL puts key length limit of 1000 bytes
+    username - rolename constraint should be within 1000 bytes
+    hbm2ddl makes column length >= 256 as long text, such as column cannot be used
+    in defining a key (pk, fk or constraint)
+    -->
+
     <xs:element name="role" type="role"/>
     <!-- role type has a name so that it could be referred from roles_list -->
     <xs:complexType name="role">
index 5392895be50fa1b86777a201eeda59868cc66d6b..0e3fc1db13985d04eacf4ca92325db80bef361d1 100644 (file)
@@ -13,6 +13,7 @@
 <xs:schema 
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+    jaxb:version="1.0" elementFormDefault="unqualified"
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
     xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
     xmlns:ns="http://collectionspace.org/services/authorization"
     -->
     <xs:include schemaLocation="roles.xsd"/>
 
-    <xs:element name="roles_list">
-        <xs:complexType>
+    <xs:element name="roles_list" type="roles_list"/>
+    <xs:complexType name="roles_list">
+        <xs:annotation>
+            <xs:appinfo>
+                <hj:ignored/>
+            </xs:appinfo>
+        </xs:annotation>
+        <xs:sequence>
             <xs:annotation>
-                <xs:appinfo>
-                    <hj:ignored/>
-                </xs:appinfo>
+                <xs:documentation>role list</xs:documentation>
             </xs:annotation>
-            <xs:sequence>
-                <xs:annotation>
-                    <xs:documentation>role list</xs:documentation>
-                </xs:annotation>
-                <xs:element name="role" type="ns:role" minOccurs="1" maxOccurs="unbounded"/>
-            </xs:sequence>
-        </xs:complexType>
-    </xs:element>
+            <xs:element name="role" type="ns:role" minOccurs="1" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
 
 </xs:schema>
 
index 7f9ca309f297076e59c2ed9db3f8f5492830cf0c..d532a2c149ae0f3644a63ec8a8a59b3b8fafa1e3 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <artifactId>org.collectionspace.services.main</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.authorization</artifactId>
index 8091110035810d77ad2ccf5cb8cec713974ed1d4..19f50e2aa950c2b0f2b4466d42e8a9c320af6423 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.authorization</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
         <sql.dir>${basedir}/src/main/resources/db</sql.dir>\r
     </properties>\r
     <dependencies>\r
-        <dependency>\r
-            <groupId>com.sun.xml.bind</groupId>\r
-            <artifactId>jaxb-impl</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2-commons</groupId>\r
-            <artifactId>property-listener-injector</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
-        </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.authorization.jaxb</artifactId>\r
@@ -37,9 +25,9 @@
             <groupId>mysql</groupId>\r
             <artifactId>mysql-connector-java</artifactId>\r
         </dependency>\r
-                               <dependency>\r
-                                               <groupId>postgresql</groupId>\r
-                                               <artifactId>postgresql</artifactId>\r
+                       <dependency>\r
+                       <groupId>postgresql</groupId>\r
+                       <artifactId>postgresql</artifactId>\r
         </dependency>\r
     </dependencies>\r
 \r
index a8d688f751308eb8dbfa96b1854c47e8635a72a5..f887892c507752292acf7128d947aea94fe81f8f 100644 (file)
@@ -6,7 +6,7 @@ drop table if exists permissions_roles;
 drop table if exists roles;
 create table accounts_roles (HJID bigint not null auto_increment, account_id varchar(128) not null, created_at datetime not null, role_id varchar(128) not null, role_name varchar(255), screen_name varchar(255), user_id varchar(128) not null, primary key (HJID), unique (account_id, role_id));
 create table permissions (csid varchar(128) not null, action_group varchar(128), attribute_name varchar(128), created_at datetime not null, description varchar(255), effect varchar(32) not null, resource_name varchar(128) not null, tenant_id varchar(128) not null, updated_at datetime, primary key (csid));
-create table permissions_actions (HJID bigint not null auto_increment, name varchar(128) not null, objectIdentity varchar(128) not null, objectIdentityResource varchar(128) not null, ACTIONS_PERMISSION_CSID varchar(128), primary key (HJID));
+create table permissions_actions (HJID bigint not null auto_increment, name varchar(128) not null, objectIdentity varchar(128) not null, objectIdentityResource varchar(128) not null, ACTION__PERMISSION_CSID varchar(128), primary key (HJID));
 create table permissions_roles (HJID bigint not null auto_increment, actionGroup varchar(255), created_at datetime not null, permission_id varchar(128) not null, permission_resource varchar(255), role_id varchar(128) not null, role_name varchar(255), primary key (HJID), unique (permission_id, role_id));
 create table roles (csid varchar(128) not null, created_at datetime not null, description varchar(255), displayname varchar(200) not null, rolegroup varchar(255), rolename varchar(200) not null, tenant_id varchar(128) not null, metadata_protection varchar(255), perms_protection varchar(255), updated_at datetime, primary key (csid), unique (rolename, tenant_id), unique (displayname, tenant_id));
-alter table permissions_actions add index FK85F82042E2DC84FD (ACTIONS_PERMISSION_CSID), add constraint FK85F82042E2DC84FD foreign key (ACTIONS_PERMISSION_CSID) references permissions (csid);
+alter table permissions_actions add index FK85F82042E2DC84FD (ACTION__PERMISSION_CSID), add constraint FK85F82042E2DC84FD foreign key (ACTION__PERMISSION_CSID) references permissions (csid);
index 3975a813d453c63987dda757cb2aeef9b42d9c69..bbb9cd01a8aa05b3d83a967e404fcd6e3d13c49f 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <artifactId>org.collectionspace.services.authorization</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.authorization.service</artifactId>
index d6b80042166646b271a5d38daaa72fe4fe0ed84c..c5c34ca95aae1116adb02374eff1bbab3fa15c0e 100644 (file)
@@ -1,8 +1,8 @@
 package org.collectionspace.services.authorization;\r
 \r
-import org.collectionspace.services.authorization.PermissionAction;\r
-import org.collectionspace.services.authorization.ActionType;\r
-import org.collectionspace.services.authorization.Permission;\r
+import org.collectionspace.services.authorization.perms.PermissionAction;\r
+import org.collectionspace.services.authorization.perms.ActionType;\r
+import org.collectionspace.services.authorization.perms.Permission;\r
 \r
 public class PermissionActionUtil {\r
 \r
index 04b40aae7f7254680d5e5d9f2b22b73e88fd2a99..05c12b23f16492d53adfeeb8ce24f8de4e0cb045 100644 (file)
@@ -24,6 +24,7 @@
 package org.collectionspace.services.authorization;
 
 import java.util.StringTokenizer;
+import org.collectionspace.services.authorization.perms.ActionType;
 
 /**
  * A security resource that represents URI and method invoked on it
index 49d568cebca2dc30722231cda148b5b4d14b5f20..625ddefc8ac180bcc934db3dd4edbae846b00d1a 100644 (file)
         <property name="sidIdentityQuery" value="${db.spring.acl.sidIdentityQuery}"/>
     </bean>
 
+       <!-- Until we resolve the JNDI issue with Nuxeo startup, we can't use this datasource
     <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
         <property name="jndiName" value="CspaceDS"/>
     </bean>
+     -->
+    
+       <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
+        <property name="url" value="jdbc:mysql://localhost:3306/cspace"/>
+        <property name="username" value="root"/>
+        <property name="password" value="admin"/>
+    </bean>    
 
     <bean id="lookupStrategy" class="org.springframework.security.acls.jdbc.BasicLookupStrategy">
         <constructor-arg ref="dataSource"/>
index 6b6c5f3afb6409bbd10268f9cba36ef82fc7eb07..3001e96dea62e5744149e6434a877d39dc50058b 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 543b336418ab54cddcb3c0260ef86dbb838579a3..5b4b02f88d73947be0620b79a6b6f161375e9421 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 c7a2f825087cd8641b7297352c081a747fe603d0..982e201259702e911545a3b9ec34916326e81936 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.batch.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 3ff9c2a88a1fddc2af43483e22330827372fb425..d63ff16996c2bd523d2bb164c2f764e3af3ac59a 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.batch</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index a751d5397dbfacb48cbfce46b4c11b2d8b9107c9..d92e83a2768c3435f7842b843525cf542857e871 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.batch</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index f994d6e23fb121aad77e1f5ab75e33276a997a89..84651dbebb108c750e959ba7af8f3eb7ca1585e2 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.batch</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.batch.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index b4afb5332c4ca47e9fbf3a9d304d6a1e5d397189..048921a9d8863b8b335100e03499e4d9465d9ac2 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index d2748f57be090b8435bbc323e4048f5cdc9be698..d2a97717c5cf75a096638fb97a1e93d92045eade 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.batch</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
                 </exclusion>
             </exclusions>
         </dependency>
-
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index ee41ee47073b9213b7ec35b7f9a1738e52a4fb6e..7a546e8362099a2dbcd095ad18978f869a836b4c 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 34ae29ef13850fdbead4a4a5f63d8a714d038b51..ea8c9be87a25539a7c331579db108c8087cb0071 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 d5d098632b31ece9de6d64c26d4e340511feb734..09980d67ce786fa552113f9a50956107f4488371 100644 (file)
@@ -5,7 +5,7 @@
        <parent>
                <groupId>org.collectionspace.services</groupId>
                <artifactId>org.collectionspace.services.blob.3rdparty</artifactId>
-               <version>1.12-SNAPSHOT</version>
+               <version>1.14-SNAPSHOT</version>
        </parent>
     
     <groupId>org.collectionspace.services</groupId>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index ca1374b761e2fce513784f4acacfa5937d8b9748..0a12b270cc44f0148ba81b96ee9ce83103f71e8f 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.blob</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 1459035aaf2aa2996dcc5e2621f111cf1a4f3a07..40bf55d24936790324f508138f9032f077e89bb7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.blob</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 5fad76f8662413fcbe2bdf96689244a20005f6a8..2394559968a0b65741897e6c594de15e96a3b41e 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.blob</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.blob.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 48b8e96ebfe9a3687c94f20ce5b69b81d9afb495..de9c809bc2f741161192c33df5ccbdb31376a402 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <artifactId>org.collectionspace.services.main</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <groupId>org.collectionspace.services</groupId>
index 0fa755f0a65e6f4c00b9356252b4b674a01aac4c..10b6fc0798a6edc6199542ed0be7710dbe6cb35a 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.blob</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
                 </exclusion>
             </exclusions>
         </dependency>
-
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index 58da4b2a968b3be6bf18c214b569fe9209dabcfd..7ed7526cce7ddd45def58cf238195d9c53f43556 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
@@ -41,6 +41,7 @@
             <groupId>org.apache.maven.plugins</groupId>\r
             <artifactId>maven-surefire-plugin</artifactId>\r
             <version>2.4.3</version>\r
+            <scope>test</scope>\r
         </dependency>\r
         <dependency>\r
             <groupId>commons-io</groupId>\r
index 8fc3c58c79e3c2f205b773fc15e6bb5dcc0436a4..1d41669a0fafc7258ca44840dc1159abfee116f7 100644 (file)
@@ -9,6 +9,7 @@ import java.util.Iterator;
 import java.util.List;\r
 \r
 import javax.xml.bind.JAXBContext;\r
+import javax.xml.bind.JAXBElement;\r
 import javax.xml.bind.Marshaller;\r
 import javax.xml.bind.Unmarshaller;\r
 import javax.xml.transform.stream.StreamSource;\r
@@ -270,6 +271,10 @@ public abstract class PoxPayload<PT extends PayloadPart> {
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\r
        try {\r
                String thePackage = jaxbObject.getClass().getPackage().getName();\r
+               if (thePackage.equals(JAXBElement.class.getPackage().getName())) {\r
+                       JAXBElement jaxbElement = (JAXBElement)jaxbObject;\r
+                       thePackage = jaxbElement.getValue().getClass().getPackage().getName();\r
+               }\r
                JAXBContext jc = JAXBContext.newInstance(thePackage);\r
                //Create marshaller\r
                Marshaller m = jc.createMarshaller();\r
index 272ccde42d061acc7b3c24b302432bcce6bbdb74..332c6865458c7cb46b01c4320bb39a38749c9eeb 100644 (file)
@@ -1,5 +1,7 @@
 #url of the collectionspace server\r
 cspace.url=http://localhost:8180/cspace-services/\r
+#cspace.url=http://nightly.collectionspace.org:8180/cspace-services/\r
+\r
 #cspace.url=http://localhost:8200/cspace-services/\r
 #for sockspy: \r
 #cspace.url=http://localhost:8280/cspace-services/\r
index 0d231bad3489a60f359aa34fde2e6efe702ae975..0a86d9b35b9b78dfcf5e04efe933a71f98ddb841 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 0f6b5a42c12de55440f3ea289eee7f3c541570ab..696a5c2df6c0fb96b762363a3279c816c346265e 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index b91e364fed5ffbd47424a71f797d8a12a1dd934d..65ae2e55f2745b37cf13b2ccf0b57312c0ea3912 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.collectionobject.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 35bcc08cb447a39db9596d4b5fb538b5eb267130..fa9c927f19db2dac8c9a768373a46f433c36eedd 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.collectionobject.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 135709b18a8172ecbf0fa3c56f12d3b91d86f5dd..86ef613b4cfbba25cb7ec580f2b3e0ed045332c9 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.collectionobject</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 7249f02bdce0f6aeeb7a8b526a413fb12660d432..008887720e03b0230d268aa41a226e5ead35a330 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.collectionobject</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index e0ae3af58854fe98a88832d66196653e43448c0c..f6a95013077cab762e7089830445242a05dcd0a8 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.collectionobject</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.collectionobject.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 8c2425644c883d4c1c4f3f2e4976c502af10c0cc..5e8dcf86cf1cd4f3ca9a2e5fb448ea2f9dbc9d35 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>        \r
+        <version>1.14-SNAPSHOT</version>        \r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index dd5859b10f66d66fdffaec3e4c2f0417dfec8bf2..3f4c8fe25305ac2ff4b5b480daa885d6f8739698 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index beeea078d555e175b5410ef55c908f388d36ef73..c8d25ed81947854099cee87fa391747a60f701b7 100644 (file)
@@ -4,7 +4,7 @@
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.collectionobject.client.samples</artifactId>
     <packaging>pom</packaging>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
     <name>collectionobject.client.samples</name>
 
     <modules>
index 425cd1620f3d44a6c3d1d8c43488a67552f09765..5a7ff6e2a64a01ea70501298eaf4b72704a5dfac 100644 (file)
@@ -5,6 +5,7 @@
        <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>\r
        <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>\r
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+       <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
index 8298ccf28b849e1d326073301a9ded1a20bbd3d7..e028f2e1590dac9f310455e932965cb0957fcba5 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 2b36e852b4779d5cf8611aedf8e4b37714b0a6b5..46780e3e4493ca2a66a67df24ecc315cbc8a3e4d 100644 (file)
@@ -5,7 +5,7 @@
     <artifactId>org.collectionspace.services.collectionobject.client.sample</artifactId>
     <packaging>jar</packaging>
     <name>collectionobject.client.sample</name>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
     
     <dependencies>
         <!-- keep slf4j dependencies on the top -->
index d77c64ef2437b369cf63df94d58a1049f02e0865..877716ef066bf1a9ca99abbfdd0239bfa376051c 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.collectionobject</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
                 </exclusion>\r
             </exclusions>\r
         </dependency>\r
-\r
-<!--        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency> -->\r
     </dependencies>\r
     \r
     <build>\r
index 6d241bc2bdd6eff9fce854584568d06f9e20dd6d..289fcd5485bc60528585ba466b3df9da6e003b4d 100644 (file)
@@ -129,10 +129,10 @@ public class CollectionObjectValidatorHandler extends ValidatorHandlerImpl<PoxPa
     // Private Methods\r
     //    \r
     private void validateCollectionobjectsCommon(CollectionobjectsCommon co) throws AssertionError {\r
-        assert(co != null);\r
+       CS_ASSERT(co != null);\r
         String objectNumber = co.getObjectNumber();\r
-        assert(objectNumber != null);\r
-        assert(objectNumber.isEmpty() == false) : OBJECTNUMBER_NULL_ERROR;\r
+        CS_ASSERT(objectNumber != null);\r
+        CS_ASSERT(objectNumber.isEmpty() == false, OBJECTNUMBER_NULL_ERROR);\r
 \r
     }\r
 }\r
index f5ecd52affc4e6c0632a0b11a12d3db9f3f65801..81bea14794887c904bdeb52f1c042cb172f13d94 100755 (executable)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 2bd26e7409ad6d5cdc8dbb862ee7a0cf0783898d..4d53ce55153ba19b9269fce7b79f616e6cd7a927 100644 (file)
@@ -4,11 +4,11 @@
     <parent>
         <artifactId>org.collectionspace.services.main</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.common-test</artifactId>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
     <name>services.common-test</name>
     <url>http://maven.apache.org</url>
     <packaging>jar</packaging>
diff --git a/services/common/lib/jpa-upgrade/derby-10.7.1.1.jar b/services/common/lib/jpa-upgrade/derby-10.7.1.1.jar
new file mode 100644 (file)
index 0000000..82e0633
Binary files /dev/null and b/services/common/lib/jpa-upgrade/derby-10.7.1.1.jar differ
diff --git a/services/common/lib/jpa-upgrade/mysql-connector-java-5.1.7-bin.jar b/services/common/lib/jpa-upgrade/mysql-connector-java-5.1.7-bin.jar
new file mode 100644 (file)
index 0000000..ebfe068
Binary files /dev/null and b/services/common/lib/jpa-upgrade/mysql-connector-java-5.1.7-bin.jar differ
index be7d84e309a49f9db642aacde19149454a4630b3..47ed90aba38c3980f70a383bbbbe846709ce7ff7 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
             <artifactId>org.collectionspace.services.common-api</artifactId>\r
             <version>${project.version}</version>\r
         </dependency>\r
+        <!-- \r
         <dependency>\r
                        <groupId>org.collectionspace.services</groupId>\r
                        <artifactId>org.collectionspace.services.3rdparty.nuxeo.quote-api</artifactId>        \r
             <version>${project.version}</version>\r
         </dependency>\r
+         -->\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.jaxb</artifactId>\r
         </dependency>\r
 \r
         <!-- Utilities -->\r
+        <!-- For NuxeoRESTClient.java class -->\r
+        <dependency>\r
+            <groupId>org.restlet</groupId>\r
+            <artifactId>org.restlet</artifactId>\r
+            <version>1.0.7</version>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>com.noelios.restlet</groupId>\r
+            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
+            <version>1.0.7</version>\r
+        </dependency>\r
+        <dependency>\r
+            <groupId>com.noelios.restlet</groupId>\r
+            <artifactId>com.noelios.restlet</artifactId>\r
+            <version>1.0.7</version>\r
+        </dependency>\r
 \r
         <dependency>\r
             <groupId>org.slf4j</groupId>\r
         <dependency>\r
             <groupId>mysql</groupId>\r
             <artifactId>mysql-connector-java</artifactId>\r
+            <scope>provided</scope>\r
         </dependency>\r
                                <dependency>\r
                                                <groupId>postgresql</groupId>\r
                                                <artifactId>postgresql</artifactId>\r
+                                               <scope>provided</scope>\r
                                </dependency>\r
          <dependency>\r
             <groupId>javax.persistence</groupId>\r
             <artifactId>persistence-api</artifactId>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>com.sun.xml.bind</groupId>\r
-            <artifactId>jaxb-impl</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2-commons</groupId>\r
-            <artifactId>property-listener-injector</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
-        </dependency>\r
-\r
         <!-- jboss -->\r
         <dependency>\r
             <groupId>org.jboss.resteasy</groupId>\r
         </dependency>\r
         <!-- jboss -->\r
         <dependency>\r
-            <groupId>jboss</groupId>\r
-            <artifactId>jbosssx</artifactId>\r
-            <version>4.2.3.GA</version>\r
-            <scope>provided</scope>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>jboss</groupId>\r
-            <artifactId>jboss-remoting</artifactId>\r
-            <version>2.2.2.SP8</version>\r
-            <scope>provided</scope>\r
-        </dependency>\r
+                       <groupId>org.jboss.security</groupId>\r
+                       <artifactId>jbosssx</artifactId>\r
+                       <version>2.0.3.SP1</version>\r
+                       <scope>provided</scope>\r
+       </dependency>\r
+               <dependency>\r
+                       <groupId>org.jboss.remoting</groupId>\r
+                       <artifactId>jboss-remoting</artifactId>\r
+                       <scope>provided</scope>\r
+               </dependency>\r
         <!-- nuxeo -->\r
+           <dependency>\r
+             <groupId>org.nuxeo.runtime</groupId>\r
+             <artifactId>nuxeo-runtime-launcher</artifactId>\r
+             <version>${nuxeo.platform.version}</version>\r
+           </dependency>\r
            <dependency>\r
              <groupId>org.nuxeo.ecm.platform</groupId>\r
              <artifactId>nuxeo-platform-mimetype-api</artifactId>\r
             <artifactId>nuxeo-core-io</artifactId>\r
             <version>${nuxeo.core.version}</version>\r
         </dependency>\r
+<!-- \r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-facade</artifactId>\r
             <version>${nuxeo.core.version}</version>\r
         </dependency>\r
+ -->\r
         <dependency>\r
             <groupId>org.nuxeo.ecm.core</groupId>\r
             <artifactId>nuxeo-core-io</artifactId>\r
             <version>4.1.0</version>\r
         </dependency>\r
 \r
-        <!-- fixme remove restlet dependencies once REST client is no longer  used -->\r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
                <dependency>\r
                    <groupId>commons-fileupload</groupId>\r
                    <artifactId>commons-fileupload</artifactId>\r
index c089b5e78e6d58af095d506033df9ac4a002503e..45dd1ad7e8215a1563568b72674a1fdb134238b7 100644 (file)
@@ -18,14 +18,12 @@ public class CollectionSpaceServiceContextListener implements ServletContextList
     @Override
     public void contextInitialized(ServletContextEvent event) {
         try {
-            ServletContext sc = event.getServletContext();
-
             //create repository select to stop jboss from jamming
             //our log on top of theirs
 //            LogManager.setRepositorySelector(new CollectionSpaceLog4jRepositorySelector(),
 //                    null);
 
-            ServiceMain svcMain = ServiceMain.getInstance(); //first access initializes as well
+            ServiceMain svcMain = ServiceMain.getInstance();
             svcMain.retrieveAllWorkspaceIds();
 
         } catch (Exception e) {
index 064bb8180c17afe3c2baaaccb5b9176668ed0365..2a11dd8cfbee4959968ad3e4857a877ec40d288e 100644 (file)
@@ -13,8 +13,12 @@ import java.util.Hashtable;
 import java.util.List;\r
 import java.util.UUID;\r
 \r
+import javax.naming.NamingException;\r
 import javax.security.auth.login.LoginException;\r
+import javax.servlet.ServletContext;\r
+import javax.sql.DataSource;\r
 \r
+import org.collectionspace.authentication.AuthN;\r
 import org.collectionspace.services.common.config.ServicesConfigReaderImpl;\r
 import org.collectionspace.services.common.config.TenantBindingConfigReaderImpl;\r
 import org.collectionspace.services.common.init.IInitHandler;\r
@@ -26,7 +30,9 @@ import org.collectionspace.services.common.tenant.TenantBindingType;
 import org.collectionspace.services.common.types.PropertyItemType;\r
 import org.collectionspace.services.common.types.PropertyType;\r
 import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;\r
-import org.collectionspace.services.nuxeo.client.java.NuxeoConnector;\r
+//import org.collectionspace.services.nuxeo.client.java.NuxeoConnector;\r
+//import org.collectionspace.services.nuxeo.client.java.NxConnect;\r
+import org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded;\r
 import org.collectionspace.services.nuxeo.client.java.TenantRepository;\r
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
@@ -44,10 +50,12 @@ public class ServiceMain {
      */\r
     private static volatile ServiceMain instance = null;\r
     final Logger logger = LoggerFactory.getLogger(ServiceMain.class);\r
-    private NuxeoConnector nuxeoConnector;\r
+    private NuxeoConnectorEmbedded nuxeoConnector;\r
+    private static ServletContext servletContext;\r
     private String serverRootDir = null;\r
     private ServicesConfigReaderImpl servicesConfigReader;\r
     private TenantBindingConfigReaderImpl tenantBindingConfigReader;\r
+    \r
     private static final String TENANT_ADMIN_ACCT_PREFIX = "admin@"; \r
     private static final String TENANT_READER_ACCT_PREFIX = "reader@"; \r
     private static final String ROLE_PREFIX = "ROLE_"; \r
@@ -56,11 +64,34 @@ public class ServiceMain {
     private static final String TENANT_READER_ROLE_SUFFIX = "_TENANT_READER"; \r
     private static final String DEFAULT_ADMIN_PASSWORD = "Administrator";\r
     private static final String DEFAULT_READER_PASSWORD = "reader";\r
+    private static final String SERVER_HOME_PROPERTY = "catalina.home";\r
+    \r
+    private static DataSource cspaceDataSource = null;\r
+    private static DataSource nuxeoDataSource = null;\r
     \r
     private ServiceMain() {\r
        //empty\r
     }\r
     \r
+    /*\r
+     * FIXME: REM - This method is no longer necessary and can should be removed.\r
+     * \r
+     * Set this singletons ServletContext without any call to initialize\r
+     */\r
+    @Deprecated\r
+    private static void setServletContext(ServletContext servletContext) {\r
+               if (servletContext != null) {\r
+               synchronized (ServiceMain.class) {\r
+                       ServiceMain.servletContext = servletContext;\r
+               }\r
+               }\r
+    }\r
+    \r
+    public static ServiceMain getInstance(ServletContext servletContext) {\r
+       ServiceMain.servletContext = servletContext;\r
+       return ServiceMain.getInstance();\r
+    }\r
+    \r
     /**\r
      * getInstance returns the ServiceMain singleton instance after proper\r
      * initialization in a thread-safe manner\r
@@ -89,6 +120,23 @@ public class ServiceMain {
     }\r
 \r
     private void initialize() throws Exception {\r
+       if (logger.isDebugEnabled() == true) {\r
+               System.out.print("Pausing 1 seconds for you to attached the debugger");\r
+               long startTime, currentTime;\r
+               currentTime = startTime = System.currentTimeMillis();\r
+               long stopTime = startTime + 1 * 1000; //5 seconds\r
+               do {\r
+                       if (currentTime % 1000 == 0) {\r
+                               System.out.print(".");\r
+                       }\r
+                       currentTime = System.currentTimeMillis();\r
+               } while (currentTime < stopTime);\r
+                       \r
+               System.out.println();\r
+               System.out.println("Resuming cspace services initialization.");\r
+       }\r
+       \r
+       setDataSources();\r
        setServerRootDir();\r
         readConfig();\r
         propagateConfiguredProperties();\r
@@ -97,16 +145,24 @@ public class ServiceMain {
         } catch(Exception e) {\r
                logger.error("Default Account setup failed on exception: " + e.getLocalizedMessage());\r
         }\r
+        //\r
+        // Start up and initialize our embedded Nuxeo server instance\r
+        //\r
+        if (getClientType().equals(ClientType.JAVA)) {\r
+            nuxeoConnector = NuxeoConnectorEmbedded.getInstance();\r
+            nuxeoConnector.initialize(getServicesConfigReader().getConfiguration().getRepositoryClient(),\r
+                       ServiceMain.servletContext);\r
+        }\r
+\r
         try {\r
-            firePostInitHandlers();\r
+               //\r
+               // Invoke all post-initialization handlers, passing in a DataSource instance of the Nuxeo db.\r
+               // Typically, these handlers modify column types and add indexes to the Nuxeo db schema.\r
+               //\r
+            firePostInitHandlers(ServiceMain.nuxeoDataSource);\r
         } catch(Exception e) {\r
             logger.error("ServiceMain.initialize firePostInitHandlers failed on exception: " + e.getLocalizedMessage());\r
         }\r
-\r
-        if (getClientType().equals(ClientType.JAVA)) {\r
-            nuxeoConnector = NuxeoConnector.getInstance();\r
-            nuxeoConnector.initialize(getServicesConfigReader().getConfiguration().getRepositoryClient());\r
-        }\r
     }\r
 \r
     /**\r
@@ -145,6 +201,10 @@ public class ServiceMain {
         }\r
     }\r
     \r
+    /*\r
+     * FIXME: REM - This method is way too big -over 300 lines!  We need to break it up into\r
+     * smaller, discrete, sub-methods.\r
+     */\r
     private void createDefaultAccounts() {\r
        if (logger.isDebugEnabled()) {\r
                logger.debug("ServiceMain.createDefaultAccounts starting...");\r
@@ -532,7 +592,7 @@ public class ServiceMain {
        return TENANT_READER_ACCT_PREFIX+tenantName;\r
     }\r
 \r
-    private void firePostInitHandlers() throws Exception {\r
+    private void firePostInitHandlers(DataSource dataSource) throws Exception {\r
         Hashtable<String, TenantBindingType> tenantBindingTypeMap = tenantBindingConfigReader.getTenantBindings();\r
         //Loop through all tenants in tenant-bindings.xml\r
         for (TenantBindingType tbt: tenantBindingTypeMap.values()){\r
@@ -558,7 +618,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(sbt, fields, props);\r
+                        handler.onRepositoryInitialized(dataSource, 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
@@ -602,7 +662,7 @@ public class ServiceMain {
     /**\r
      * @return the nuxeoConnector\r
      */\r
-    public NuxeoConnector getNuxeoConnector() {\r
+    public NuxeoConnectorEmbedded getNuxeoConnector() {\r
         return nuxeoConnector;\r
     }\r
     \r
@@ -613,10 +673,25 @@ public class ServiceMain {
         return serverRootDir;\r
     }\r
 \r
+    /*\r
+     * Save a copy of the DataSource instances that exist in our initial JNDI context.  For some reason, after starting up\r
+     * our instance of embedded Nuxeo, we can find our datasources.  Therefore, we need to preserve the datasources in these\r
+     * static members.\r
+     */\r
+    private void setDataSources() throws NamingException {\r
+       ServiceMain.cspaceDataSource = JDBCTools.getDataSource(JDBCTools.CSPACE_REPOSITORY_NAME);\r
+       ServiceMain.nuxeoDataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
+       AuthN.setDataSource(cspaceDataSource);\r
+    }\r
+    \r
     private void setServerRootDir() {\r
-        serverRootDir = System.getProperty("jboss.server.home.dir");\r
+        serverRootDir = System.getProperty(SERVER_HOME_PROPERTY);\r
         if (serverRootDir == null) {\r
             serverRootDir = "."; //assume server is started from server root, e.g. server/cspace\r
+            logger.warn("System property '" +\r
+                       SERVER_HOME_PROPERTY + "' was not set.  Using \"" +\r
+                       serverRootDir +\r
+                       "\" instead.");\r
         }\r
     }\r
 \r
index e1621d062847da5d11a7e22aa1ec0dd4fc28dc72..a576f4a5cd4e33e593de4f5077cc563aa06c87dc 100644 (file)
@@ -65,7 +65,7 @@ public class ServicesConfigReaderImpl
         }
         File configFile = new File(configFileName);
         if (!configFile.exists()) {
-            String msg = "Could not find configuration file " + configFileName;
+            String msg = "Could not find configuration file " + configFile.getAbsolutePath(); //configFileName;
             logger.error(msg);
             throw new RuntimeException(msg);
         }
index 71c93d2c43cf55e346314bc77eee9cc9a12aaf79..8bf40e44b403d07bc7f0753ad96cab52ea314ebb 100644 (file)
@@ -173,8 +173,8 @@ public class TenantBindingConfigReaderImpl
             tenantBindings.put(tenantBinding.getId(), tenantBinding);
             readDomains(tenantBinding);
             readServiceBindings(tenantBinding);
-            if (logger.isDebugEnabled()) {
-                logger.debug("read() added tenant id=" + tenantBinding.getId()
+            if (logger.isInfoEnabled()) {
+                logger.info("Finished reading tenant bindings for tenant id=" + tenantBinding.getId()
                         + " name=" + tenantBinding.getName());
             }
         }
index 562566b0981127a218ab854a7167407b214f6426..7be27b6187fe7562ee0be098b30db890671980d5 100644 (file)
@@ -1,17 +1,9 @@
 package org.collectionspace.services.common.document;\r
 \r
-import java.lang.reflect.Field;\r
-import java.lang.reflect.ParameterizedType;\r
-import java.lang.reflect.Type;\r
-import java.lang.reflect.TypeVariable;\r
-import java.util.ArrayList;\r
 \r
 import org.collectionspace.services.common.context.MultipartServiceContext;\r
 import org.collectionspace.services.common.context.ServiceContext;\r
 import org.collectionspace.services.common.document.DocumentHandler.Action;\r
-import org.collectionspace.services.relation.RelationsCommon;\r
-import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;\r
-import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;\r
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
 \r
@@ -30,17 +22,54 @@ public abstract class ValidatorHandlerImpl<IT, OT> implements ValidatorHandler<I
        return ctx;\r
     }\r
     \r
-    protected void setServiceContext(ServiceContext<IT, OT> ctx) {\r
+    // gets reset by calls to setServiceContext() method\r
+    protected boolean enforceAsserts = true;\r
+    \r
+    public boolean getEnforceAsserts() {\r
+               return enforceAsserts;\r
+       }\r
+\r
+       public void setEnforceAsserts(ServiceContext<IT, OT> ctx) {\r
+               Boolean disableAssertsAttr = ctx.getServiceBinding().isDisableAsserts();\r
+               if (disableAssertsAttr == null) {\r
+                       enforceAsserts = true;\r
+               } else {\r
+                       enforceAsserts = !disableAssertsAttr.booleanValue();\r
+               }\r
+       }\r
+\r
+       protected void setServiceContext(ServiceContext<IT, OT> ctx) {\r
        this.ctx = ctx;\r
+       \r
+    }\r
+    \r
+    protected void CS_ASSERT(boolean expression, String errorMsg) throws AssertionError {\r
+       if (expression != true) {\r
+               if (errorMsg == null) {\r
+                       errorMsg = "Validation exception occurred in: " +\r
+                                       this.getClass().getName();\r
+               }\r
+               throw new AssertionError(errorMsg);\r
+       }\r
+    }\r
+    \r
+    protected void CS_ASSERT(boolean expression) throws AssertionError {\r
+       CS_ASSERT(expression, null);\r
     }\r
        \r
+    private void init(ServiceContext<IT, OT> ctx) {\r
+       setEnforceAsserts(ctx);\r
+               setServiceContext(ctx);\r
+    }\r
+    \r
        /* (non-Javadoc)\r
         * @see org.collectionspace.services.common.document.ValidatorHandler#validate(org.collectionspace.services.common.document.DocumentHandler.Action, org.collectionspace.services.common.context.ServiceContext)\r
         */\r
        @Override\r
     public void validate(Action action, ServiceContext<IT, OT> ctx)\r
                throws InvalidDocumentException {\r
-               setServiceContext(ctx);\r
+               init(ctx);\r
+               \r
                switch (action) {\r
                        case CREATE:\r
                                handleCreate();\r
@@ -63,6 +92,10 @@ public abstract class ValidatorHandlerImpl<IT, OT> implements ValidatorHandler<I
                }       \r
     }\r
        \r
+       protected boolean enforceAsserts() {\r
+               return !ctx.getServiceBinding().isDisableAsserts();\r
+       }\r
+       \r
     protected Object getCommonPart() {\r
        Object result = null;           \r
 \r
index 77d4d2c6965911106164f717a17c1d222d5a098f..c3fed110f27a4d1d5a365152fb088bc6dcbbdfef 100644 (file)
@@ -124,7 +124,7 @@ import org.collectionspace.services.jaxb.BlobJAXBSchema;
 import org.collectionspace.services.nuxeo.client.java.CommonList;\r
 import org.collectionspace.services.common.blob.BlobOutput;\r
 \r
-import org.collectionspace.ecm.platform.quote.api.QuoteManager;\r
+//import org.collectionspace.ecm.platform.quote.api.QuoteManager;\r
 \r
 // TODO: Auto-generated Javadoc\r
 /**\r
@@ -260,13 +260,14 @@ public class NuxeoImageUtils {
                DocumentBlobHolder docBlobHolder = (DocumentBlobHolder)documentModel.getAdapter(BlobHolder.class);\r
                //\r
                // FIXME: REM this looks like cruft\r
-               try {\r
+/*             try {\r
                        QuoteManager quoteManager = (QuoteManager)Framework.getService(QuoteManager.class);\r
                        quoteManager.createQuote(documentModel, "Quoted - Comment" + System.currentTimeMillis(),\r
                                        "Administrator");\r
                } catch (Exception e) {\r
                        e.printStackTrace();\r
                }\r
+               */\r
                //\r
                //\r
                List<Blob> docBlobs = docBlobHolder.getBlobs();         \r
@@ -563,14 +564,14 @@ public class NuxeoImageUtils {
         * verified by the mimetype service.\r
         * @return the blob\r
         */\r
-       private static Blob createStreamingBlob(InputStream file,\r
+       private static Blob createStreamingBlob(File file,\r
                        String filename, String mimeType) {\r
                Blob blob = null;\r
                try {\r
                        // persisting the blob makes it possible to read the binary content\r
                        // of the request stream several times (mimetype sniffing, digest\r
                        // computation, core binary storage)\r
-                       blob = StreamingBlob.createFromStream(file, mimeType).persist();\r
+                       blob = StreamingBlob.createFromFile(file, mimeType).persist();\r
                        // filename\r
                        if (filename != null) {\r
                                filename = getCleanFileName(filename);\r
@@ -662,7 +663,7 @@ public class NuxeoImageUtils {
                        FileInputStream inputStream = new FileInputStream(blobFile);            \r
                        if (inputStream != null) {\r
                                result = createImage(repoSession, wspaceDoc,\r
-                                               inputStream, blobFile.getName(), null);\r
+                                               inputStream, blobFile, null);\r
                        }            \r
                } catch (Exception e) {\r
                        logger.error("Could not create image blob", e);\r
@@ -684,15 +685,15 @@ public class NuxeoImageUtils {
        static public BlobsCommon createImage(RepositoryInstance nuxeoSession,\r
                        DocumentModel blobLocation,\r
                        InputStream file,\r
-                       String fileName, \r
+                       File blobFile, \r
                        String mimeType) {\r
                BlobsCommon result = null;\r
 \r
                try {\r
-                       Blob fileBlob = createStreamingBlob(file, fileName, mimeType);\r
+                       Blob fileBlob = createStreamingBlob(blobFile, blobFile.getName(), mimeType);\r
                        String digestAlgorithm = getFileManagerService().getDigestAlgorithm(); //Need some way on initializing the FileManager with a call.\r
                        DocumentModel documentModel = getFileManagerService().createDocumentFromBlob(nuxeoSession,\r
-                                       fileBlob, blobLocation.getPathAsString(), true, fileName);\r
+                                       fileBlob, blobLocation.getPathAsString(), true, blobFile.getName());\r
                        result = createBlobsCommon(documentModel, fileBlob);\r
                } catch (Exception e) {\r
                        result = null;\r
index 5735c9aea12259db370ad8c7b92398c684768592..944fd2d57bd5944a61e136ee788117c6129e43ad 100755 (executable)
@@ -23,6 +23,8 @@ import java.sql.SQLException;
 import java.sql.Statement;\r
 import java.util.List;\r
 \r
+import javax.sql.DataSource;\r
+\r
 import org.collectionspace.services.common.api.Tools;\r
 import org.collectionspace.services.common.service.ServiceBindingType;\r
 import org.collectionspace.services.common.service.InitHandler.Params.Field;\r
@@ -84,7 +86,10 @@ 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(ServiceBindingType sbt, List<Field> fields, List<Property> properties) throws Exception {\r
+    public void onRepositoryInitialized(DataSource dataSource,\r
+               ServiceBindingType sbt, \r
+               List<Field> fields, \r
+               List<Property> properties) throws Exception {\r
         //todo: all post-init tasks for services, or delegate to services that override.\r
         int rows = 0;\r
         String sql = "";\r
@@ -98,21 +103,21 @@ 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(tableName, fn);\r
+                    rows = addOneIndex(dataSource, tableName, fn);\r
                 }\r
             } else {\r
-                rows = addOneIndex(tableName, fieldName);\r
+                rows = addOneIndex(dataSource, tableName, fieldName);\r
             }\r
         }\r
     }\r
 \r
-    private int addOneIndex(String tableName, String columnName){\r
+    private int addOneIndex(DataSource dataSource, String tableName, 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(databaseProductType, tableName, columnName, indexName)) {\r
+            if (indexExists(dataSource, databaseProductType, 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
@@ -140,7 +145,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(JDBCTools.NUXEO_REPOSITORY_NAME, sql);\r
+                rows = JDBCTools.executeUpdate(dataSource, sql);\r
                 logger.trace("Index added to column ("+columnName+") on table ("+tableName+")");\r
             }\r
             return rows;\r
@@ -150,8 +155,11 @@ public class AddIndices extends InitHandler implements IInitHandler {
         }\r
     }\r
 \r
-    private boolean indexExists(DatabaseProductType databaseProductType,\r
-            String tableName, String colName, String indexName) {\r
+    private boolean indexExists(DataSource dataSource,\r
+               DatabaseProductType databaseProductType,\r
+            String tableName, \r
+            String colName, \r
+            String indexName) {\r
         \r
         // FIXME: May need to qualify table name by database/catalog,\r
         // as table names likely will not be globally unique across same\r
@@ -193,7 +201,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(JDBCTools.NUXEO_REPOSITORY_NAME);\r
+            conn = JDBCTools.getConnection(dataSource);\r
             stmt = conn.createStatement();\r
             rs = stmt.executeQuery(sql);\r
             if (rs.next()) {\r
index d9da3391bd7cd2fcb28de4c7e3b85e1d24a072fd..fa7eccdfb2a6ee1696941b82ae5c85ff17fe7e89 100755 (executable)
@@ -6,6 +6,8 @@ import org.collectionspace.services.common.service.InitHandler.Params.Property;
 \r
 import java.util.List;\r
 \r
+import javax.sql.DataSource;\r
+\r
 /**\r
  * User: laramie\r
  * $LastChangedRevision$\r
@@ -13,5 +15,8 @@ import java.util.List;
  */\r
 \r
 public interface IInitHandler {\r
-    public void onRepositoryInitialized(ServiceBindingType sbt, List<Field> fields, List<Property> property) throws Exception;\r
+    public void onRepositoryInitialized(DataSource dataSource,\r
+               ServiceBindingType sbt, \r
+               List<Field> fields, \r
+               List<Property> property) throws Exception;\r
 }\r
index 647062effe2402ab4d15541464d00a4fb8aed19f..f99287b96f560ee8503332de333dba616cd7ae3c 100755 (executable)
@@ -29,6 +29,8 @@ import org.slf4j.LoggerFactory;
 import java.sql.ResultSet;\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
@@ -51,7 +53,10 @@ public class InitHandler implements IInitHandler {
      * @throws Exception\r
      */\r
     @Override\r
-    public void onRepositoryInitialized(ServiceBindingType sbt, List<Field> fields, List<Property> properties) throws Exception {\r
+    public void onRepositoryInitialized(DataSource dataSource,\r
+               ServiceBindingType sbt, \r
+               List<Field> fields, \r
+               List<Property> properties) throws Exception {\r
 \r
         // For debugging.\r
         /*\r
index fa68210bd7f9d4fb1941b057bc42f17344dc59f2..5ab9040cbd4aa71f6697bdf1ad6466c9f3418bab 100644 (file)
@@ -28,6 +28,8 @@ import java.sql.SQLException;
 import java.sql.Statement;
 import java.util.List;
 
+import javax.sql.DataSource;
+
 import org.collectionspace.services.common.service.ServiceBindingType;
 import org.collectionspace.services.common.service.InitHandler.Params.Field;
 import org.collectionspace.services.common.service.InitHandler.Params.Property;
@@ -49,7 +51,10 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
     final Logger logger = LoggerFactory.getLogger(ModifyFieldDatatypes.class);
 
     @Override
-    public void onRepositoryInitialized(ServiceBindingType sbt, List<Field> fields, List<Property> properties) throws Exception {
+    public void onRepositoryInitialized(DataSource dataSource,
+               ServiceBindingType sbt, 
+               List<Field> fields, 
+               List<Property> properties) throws Exception {
         //todo: all post-init tasks for services, or delegate to services that override.
         int rows = 0;
         String sql = "";
@@ -63,7 +68,7 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
             for (Field field : fields) {
                 datatype = getDatatypeFromLogicalType(databaseProductType, field.getType());
                 // If the field is already of the desired datatype, skip it.
-                if (fieldHasDesiredDatatype(databaseProductType, field, datatype)) {
+                if (fieldHasDesiredDatatype(dataSource, databaseProductType, field, datatype)) {
                     logger.trace("Field " + field.getTable() + "." + field.getCol()
                             + " is already of desired datatype " + datatype);
                     continue;
@@ -93,7 +98,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(JDBCTools.NUXEO_REPOSITORY_NAME, sql);
+                rows = JDBCTools.executeUpdate(dataSource, sql);
             }
         } catch (Exception e) {
             throw e;
@@ -121,7 +126,8 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
         return datatype;
     }
 
-    private boolean fieldHasDesiredDatatype(DatabaseProductType databaseProductType,
+    private boolean fieldHasDesiredDatatype(DataSource dataSource,
+               DatabaseProductType databaseProductType,
             Field field, String datatype) {
         
         // FIXME: Consider instead using the database-agnostic
@@ -149,7 +155,7 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
         }
 
         try {
-            conn = JDBCTools.getConnection(JDBCTools.NUXEO_REPOSITORY_NAME);
+            conn = JDBCTools.getConnection(dataSource);
             stmt = conn.createStatement();
             rs = stmt.executeQuery(sql);
             while (rs.next()) {
index 16be5b55abd8fda7e0376e214a0b19b639a5588d..894ab2a9117617bb0ff611f3d8a4fff785a9f8ee 100644 (file)
@@ -34,10 +34,14 @@ import java.util.regex.Pattern;
 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.client.NuxeoClient;\r
+//import org.nuxeo.ecm.core.client.NuxeoClient;\r
 \r
 import org.collectionspace.services.jaxb.InvocableJAXBSchema;\r
-import org.collectionspace.services.nuxeo.client.java.NuxeoConnector;\r
+//import org.collectionspace.services.nuxeo.client.java.NuxeoConnector;\r
+//import org.collectionspace.services.nuxeo.client.java.NxConnect;\r
+import org.collectionspace.services.nuxeo.client.java.NuxeoClientEmbedded;\r
+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
@@ -92,9 +96,9 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
        @Override\r
        @Deprecated\r
        public void execQuery(String queryString) {\r
-               NuxeoClient client = null;\r
+               NuxeoClientEmbedded client = null;\r
                try {\r
-                       client = NuxeoConnector.getInstance().getClient();\r
+                       client = NuxeoConnectorEmbedded.getInstance().getClient();\r
                        RepositoryInstance repoSession = client.openRepository();\r
 \r
                        DocumentModelList docModelList = repoSession\r
index 4da74926512ad207b5037a16c2453c2d8035dabf..42ae418886d0150e345d854e7e10d692e8d97a87 100644 (file)
  */
 package org.collectionspace.services.common.security;
 
+import java.security.MessageDigest;
 import java.util.List;
-import java.net.URI;
+import java.io.UnsupportedEncodingException;
 import java.net.URISyntaxException;
 import java.util.StringTokenizer;
 
 import javax.ws.rs.core.MultivaluedMap;
-import javax.ws.rs.core.PathSegment;
 import javax.ws.rs.core.UriInfo;
 
 import org.collectionspace.authentication.AuthN;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import org.jboss.crypto.digest.DigestCallback;
+import org.jboss.security.Base64Encoder;
+import org.jboss.security.Base64Utils;
+
 /**
  *
  * @author 
@@ -45,6 +49,12 @@ public class SecurityUtils {
     public static final String URI_PATH_SEPARATOR = "/";
     public static final int MIN_PASSWORD_LENGTH = 8;
     public static final int MAX_PASSWORD_LENGTH = 24;
+    
+    public static final String BASE64_ENCODING = "BASE64";
+    public static final String BASE16_ENCODING = "HEX";
+    public static final String RFC2617_ENCODING = "RFC2617";
+    private static char MD5_HEX[] = "0123456789abcdef".toCharArray();
+    
 
     /**
      * createPasswordHash creates password has using configured digest algorithm
@@ -55,7 +65,7 @@ public class SecurityUtils {
      */
     public static String createPasswordHash(String username, String password) {
         //TODO: externalize digest algo and encoding
-        return org.jboss.security.Util.createPasswordHash("SHA-256", //digest algo
+        return createPasswordHash("SHA-256", //digest algo
                 "base64", //encoding
                 null, //charset
                 username,
@@ -206,4 +216,113 @@ public class SecurityUtils {
             return false;
         }
     }
+    
+    public static String createPasswordHash(String hashAlgorithm, String hashEncoding, String hashCharset, String username, String password)
+    {
+        return createPasswordHash(hashAlgorithm, hashEncoding, hashCharset, username, password, null);
+    }
+
+    public static String createPasswordHash(String hashAlgorithm, String hashEncoding, String hashCharset, String username, String password, DigestCallback callback)
+    {
+        String passwordHash = null;
+        byte passBytes[];
+        try
+        {
+            if(hashCharset == null)
+                passBytes = password.getBytes();
+            else
+                passBytes = password.getBytes(hashCharset);
+        }
+        catch(UnsupportedEncodingException uee)
+        {
+            logger.error((new StringBuilder()).append("charset ").append(hashCharset).append(" not found. Using platform default.").toString(), uee);
+            passBytes = password.getBytes();
+        }
+        try
+        {
+            MessageDigest md = MessageDigest.getInstance(hashAlgorithm);
+            if(callback != null)
+                callback.preDigest(md);
+            md.update(passBytes);
+            if(callback != null)
+                callback.postDigest(md);
+            byte hash[] = md.digest();
+            if(hashEncoding.equalsIgnoreCase("BASE64"))
+                passwordHash = encodeBase64(hash);
+            else
+            if(hashEncoding.equalsIgnoreCase("HEX"))
+                passwordHash = encodeBase16(hash);
+            else
+            if(hashEncoding.equalsIgnoreCase("RFC2617"))
+                passwordHash = encodeRFC2617(hash);
+            else
+                logger.error((new StringBuilder()).append("Unsupported hash encoding format ").append(hashEncoding).toString());
+        }
+        catch(Exception e)
+        {
+            logger.error("Password hash calculation failed ", e);
+        }
+        return passwordHash;
+    }
+
+    public static String encodeRFC2617(byte data[])
+    {
+        char hash[] = new char[32];
+        for(int i = 0; i < 16; i++)
+        {
+            int j = data[i] >> 4 & 0xf;
+            hash[i * 2] = MD5_HEX[j];
+            j = data[i] & 0xf;
+            hash[i * 2 + 1] = MD5_HEX[j];
+        }
+
+        return new String(hash);
+    }
+
+    public static String encodeBase16(byte bytes[])
+    {
+        StringBuffer sb = new StringBuffer(bytes.length * 2);
+        for(int i = 0; i < bytes.length; i++)
+        {
+            byte b = bytes[i];
+            char c = (char)(b >> 4 & 0xf);
+            if(c > '\t')
+                c = (char)((c - 10) + 97);
+            else
+                c += '0';
+            sb.append(c);
+            c = (char)(b & 0xf);
+            if(c > '\t')
+                c = (char)((c - 10) + 97);
+            else
+                c += '0';
+            sb.append(c);
+        }
+
+        return sb.toString();
+    }
+
+    public static String encodeBase64(byte bytes[])
+    {
+        String base64 = null;
+        try
+        {
+            base64 = Base64Encoder.encode(bytes);
+        }
+        catch(Exception e) { }
+        return base64;
+    }
+
+    public static String tob64(byte buffer[])
+    {
+        return Base64Utils.tob64(buffer);
+    }
+
+    public static byte[] fromb64(String str)
+        throws NumberFormatException
+    {
+        return Base64Utils.fromb64(str);
+    }
+
+    
 }
index 125bc65b08b34d85ed174066c40eaae713cb5fad..01b4e252285502c45858751246bbf657afbb89ec 100755 (executable)
@@ -22,6 +22,7 @@ import org.collectionspace.services.common.api.Tools;
 import org.slf4j.Logger;\r
 import org.slf4j.LoggerFactory;\r
 \r
+import javax.naming.Context;\r
 import javax.naming.InitialContext;\r
 import javax.naming.NamingException;\r
 import javax.security.auth.login.LoginException;\r
@@ -46,36 +47,73 @@ public class JDBCTools {
 \r
     //todo: make sure this will get instantiated in the right order\r
     final static Logger logger = LoggerFactory.getLogger(JDBCTools.class);\r
+    \r
+    public static DataSource getDataSource(String repositoryName) throws NamingException {\r
+       DataSource result = null;\r
+       InitialContext ctx = new InitialContext();\r
+       Context envCtx = null;\r
+       \r
+        if (logger.isDebugEnabled() == true) {\r
+               logger.debug("Looking up datasource in JNDI with name: " + repositoryName);\r
+        }\r
+               \r
+       try {\r
+               envCtx = (Context) ctx.lookup("java:comp/env");\r
+               DataSource ds = (DataSource) envCtx.lookup("jdbc/" + repositoryName);\r
+               if (ds == null) {\r
+                   throw new IllegalArgumentException("datasource not found: " + repositoryName);\r
+               } else {\r
+                       result = ds;\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
+                }\r
+            }\r
+            if (envCtx != null) {\r
+                try {\r
+                       envCtx.close();\r
+                } catch (Exception e) {\r
+                       logger.error("Error getting DataSource for: " + repositoryName, e);\r
+                }\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 LoginException, SQLException {\r
-        if (Tools.isEmpty(repositoryName)) {\r
+       Connection result = null;\r
+       \r
+       if (Tools.isEmpty(repositoryName)) {\r
             repositoryName = getDefaultRepositoryName();\r
         }\r
-        InitialContext ctx = null;\r
+        \r
         Connection conn = null;\r
         try {\r
-            ctx = new InitialContext();\r
-            DataSource ds = (DataSource) ctx.lookup(repositoryName);\r
-            if (ds == null) {\r
-                throw new IllegalArgumentException("datasource not found: " + repositoryName);\r
-            }\r
+            DataSource ds = getDataSource(repositoryName);\r
             conn = ds.getConnection();\r
-            return conn;\r
+            result = conn;\r
         } catch (NamingException ex) {\r
             LoginException le = new LoginException("Error looking up DataSource from: " + repositoryName);\r
             le.initCause(ex);\r
             throw le;\r
         } catch (SQLException e) {\r
             throw e;\r
-        } finally {\r
-            if (ctx != null) {\r
-                try {\r
-                    ctx.close();\r
-                } catch (Exception e) {\r
-                    // Do nothing with exception in 'finally' clause.\r
-                }\r
-            }\r
         }\r
+        \r
+        return result;\r
     }\r
 \r
 \r
@@ -111,11 +149,11 @@ public class JDBCTools {
         }\r
     } */\r
 \r
-    public static int executeUpdate(String repoName, String sql) throws Exception {\r
+    public static int executeUpdate(DataSource dataSource, String sql) throws Exception {\r
         Connection conn = null;\r
         Statement stmt = null;\r
         try {\r
-            conn = getConnection(repoName);    // If null, uses default\r
+            conn = getConnection(dataSource);\r
             stmt = conn.createStatement();\r
             int rows = stmt.executeUpdate(sql);\r
             stmt.close();\r
@@ -165,7 +203,7 @@ public class JDBCTools {
        if(DBProductName==null) {\r
                Connection conn = null;\r
                try {\r
-                   conn = getConnection(getDefaultRepositoryName());\r
+                   conn = getConnection(getDefaultRepositoryName()); //FIXME: REM - getDefaultRepositoryName returns the Nuxeo repo name -we should be using the "cspace" repo name\r
                    DBProductName = conn.getMetaData().getDatabaseProductName();\r
                } catch (Exception e) {\r
                } finally {\r
index bce83ff1cc9317d66c5d0010917e6fa62f29d10b..2918f652ac196a2139f10d26669dbd8ee371d1f6 100644 (file)
@@ -36,7 +36,7 @@ import javax.persistence.NoResultException;
 import javax.persistence.PersistenceException;
 import javax.persistence.Query;
 
-import org.collectionspace.services.authorization.Permission;
+import org.collectionspace.services.authorization.perms.Permission;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
 import org.collectionspace.services.authorization.RoleValue;
index 2f9037fc3b2293d6d35ca3b838e71fab57456dc9..60685d6fb07d296111994c084abe9fc53e4d51d2 100644 (file)
@@ -245,7 +245,7 @@ public class JpaStorageUtils {
         try {
                List<AccountValue> accountValues = new ArrayList<AccountValue>();
                accountValues.add(account);
-            result.setAccounts(accountValues);
+            result.setAccount(accountValues);
 
             emf = getEntityManagerFactory();
             em = emf.createEntityManager();
@@ -271,7 +271,7 @@ public class JpaStorageUtils {
                        PermissionRoleRel permRolRel = (PermissionRoleRel)resultList.next();
                        permissionValues.add(AuthorizationRoleRel.buildPermissionValue(permRolRel));
                    }
-                   result.setPermissions(permissionValues);
+                   result.setPermission(permissionValues);
             }
         } catch (NoResultException nre) {
             if (em != null && em.getTransaction().isActive()) {
index 9b807de64fc3c8aaa60133f5008f888daf98a0ba..2b2e8f100fbf2a6ce59e46df3180628772d6947a 100644 (file)
@@ -32,7 +32,6 @@ import org.collectionspace.services.jaxb.AbstractCommonList;
 \r
 import org.apache.commons.lang.builder.ToStringBuilder;\r
 import org.jvnet.jaxb2_commons.lang.ToString;\r
-import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;\r
 import javax.xml.parsers.DocumentBuilder;\r
 import javax.xml.parsers.DocumentBuilderFactory;\r
 import org.w3c.dom.Document;\r
index 5e6f05251c3a8caf2387e2a1e13243a86d4cae7f..0eaafcae75ed3700af7573b62c55fe3486c9db84 100644 (file)
@@ -34,6 +34,7 @@ import java.util.Set;
 import javax.ws.rs.WebApplicationException;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
+import javax.xml.bind.JAXBElement;
 
 import org.collectionspace.services.authorization.AccountPermission;
 import org.collectionspace.services.jaxb.AbstractCommonList;
@@ -210,7 +211,10 @@ public abstract class   RemoteDocumentModelHandlerImpl<T, TL>
         }
         AccountPermission accountPermission = JpaStorageUtils.getAccountPermissions(JpaStorageUtils.CS_CURRENT_USER,
                        currentServiceName, workflowSubResource);
-        PayloadOutputPart accountPermissionPart = new PayloadOutputPart("account_permission", accountPermission);
+        org.collectionspace.services.authorization.ObjectFactory objectFactory =
+               new org.collectionspace.services.authorization.ObjectFactory();
+        JAXBElement<AccountPermission> ap = objectFactory.createAccountPermission(accountPermission);
+        PayloadOutputPart accountPermissionPart = new PayloadOutputPart("account_permission", ap);
         ctx.addOutputPart(accountPermissionPart);
     }
 
index c80607d16c1b77520d9506d83ed9db0bdf5c0466..5339dcbe517a57ddc90d9115f236b8120fda7573 100644 (file)
@@ -58,7 +58,7 @@ import org.nuxeo.ecm.core.api.DocumentRef;
 import org.nuxeo.ecm.core.api.IdRef;
 import org.nuxeo.ecm.core.api.PathRef;
 import org.nuxeo.ecm.core.api.repository.RepositoryInstance;
-import org.nuxeo.ecm.core.client.NuxeoClient;
+//import org.nuxeo.ecm.core.client.NuxeoClient;
 import org.nuxeo.ecm.core.schema.SchemaManager;
 import org.nuxeo.runtime.api.Framework;
 
@@ -79,6 +79,9 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
 //    private final Logger profilerLogger = LoggerFactory.getLogger("remperf");
 //    private String foo = Profiler.createLogger();
 
+    public static final String NUXEO_CORE_TYPE_DOMAIN = "Domain";
+    public static final String NUXEO_CORE_TYPE_WORKSPACEROOT = "WorkspaceRoot";
+    
     /**
      * Instantiates a new repository java client impl.
      */
@@ -760,7 +763,7 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
 
     @Override
     public Hashtable<String, String> retrieveWorkspaceIds(String domainName) throws Exception {
-        return NuxeoConnector.getInstance().retrieveWorkspaceIds(domainName);
+        return NuxeoConnectorEmbedded.getInstance().retrieveWorkspaceIds(domainName);
     }
 
     @Override
@@ -768,20 +771,35 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
         RepositoryInstance repoSession = null;
         String domainId = null;
         try {
+               //
+               // First create the top-level domain directory
+               //
             repoSession = getRepositorySession();
             DocumentRef parentDocRef = new PathRef("/");
             DocumentModel parentDoc = repoSession.getDocument(parentDocRef);
-            DocumentModel doc = repoSession.createDocumentModel(parentDoc.getPathAsString(),
-                    domainName, "Domain");
-            doc.setPropertyValue("dc:title", domainName);
-            doc.setPropertyValue("dc:description", "A CollectionSpace domain "
+            DocumentModel domainDoc = repoSession.createDocumentModel(parentDoc.getPathAsString(),
+                    domainName, NUXEO_CORE_TYPE_DOMAIN);
+            domainDoc.setPropertyValue("dc:title", domainName);
+            domainDoc.setPropertyValue("dc:description", "A CollectionSpace domain "
                     + domainName);
-            doc = repoSession.createDocument(doc);
-            domainId = doc.getId();
+            domainDoc = repoSession.createDocument(domainDoc);
+            domainId = domainDoc.getId();
             repoSession.save();
+            //
+            // Next, create a "Workspaces" root directory to contain the workspace folders for the individual service documents
+            //
+            DocumentModel workspacesRoot = repoSession.createDocumentModel(domainDoc.getPathAsString(),
+                       NuxeoUtils.Workspaces, NUXEO_CORE_TYPE_WORKSPACEROOT);
+            workspacesRoot.setPropertyValue("dc:title", NuxeoUtils.Workspaces);
+            workspacesRoot.setPropertyValue("dc:description", "A CollectionSpace workspaces directory for "
+                    + domainDoc.getPathAsString());
+            workspacesRoot = repoSession.createDocument(workspacesRoot);
+            String workspacesRootId = workspacesRoot.getId();
+            
             if (logger.isDebugEnabled()) {
-                logger.debug("created tenant domain name=" + domainName
-                        + " id=" + domainId);
+                logger.debug("Created tenant domain name=" + domainName
+                        + " id=" + domainId + " " +
+                        NuxeoUtils.Workspaces + " id=" + workspacesRootId);
             }
         } catch (Exception e) {
             if (logger.isDebugEnabled()) {
@@ -836,7 +854,7 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
             repoSession = getRepositorySession();
             DocumentRef parentDocRef = new PathRef(
                     "/" + domainName
-                    + "/" + NuxeoUtils.WORKSPACES);
+                    + "/" + NuxeoUtils.Workspaces);
             DocumentModel parentDoc = repoSession.getDocument(parentDocRef);
             DocumentModel doc = repoSession.createDocumentModel(parentDoc.getPathAsString(),
                     workspaceName, "Workspace");
@@ -874,7 +892,7 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
             repoSession = getRepositorySession();
             DocumentRef docRef = new PathRef(
                     "/" + tenantDomain
-                    + "/" + NuxeoUtils.WORKSPACES
+                    + "/" + NuxeoUtils.Workspaces
                     + "/" + workspaceName);
             DocumentModel workspace = repoSession.getDocument(docRef);
             workspaceId = workspace.getId();
@@ -905,9 +923,9 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
         // Authentication failures happen while trying to reuse the session
        Profiler profiler = new Profiler("getRepositorySession():", 2);
        profiler.start();
-        NuxeoClient client = NuxeoConnector.getInstance().getClient();
+        NuxeoClientEmbedded client = NuxeoConnectorEmbedded.getInstance().getClient();
         RepositoryInstance repoSession = client.openRepository();
-        if (logger.isTraceEnabled()) {
+        if (logger.isDebugEnabled()) {
             logger.debug("getRepository() repository root: " + repoSession.getRootDocument());
         }
         profiler.stop();
@@ -921,7 +939,7 @@ public class RepositoryJavaClientImpl implements RepositoryClient<PoxPayloadIn,
      */
     private void releaseRepositorySession(RepositoryInstance repoSession) {
         try {
-            NuxeoClient client = NuxeoConnector.getInstance().getClient();
+            NuxeoClientEmbedded client = NuxeoConnectorEmbedded.getInstance().getClient();
             // release session
             client.releaseRepository(repoSession);
         } catch (Exception e) {
index 4832fbf512ede8f9e3b22ba0cc9913eae0df5843..c12a1b1a77b0a86a43f28347cd23b462082f0dd5 100644 (file)
@@ -86,7 +86,8 @@ public class NuxeoUtils {
     // Base document type in Nuxeo is "Document"
     //
     public static final String BASE_DOCUMENT_TYPE = "Document";
-    public static final String WORKSPACES = "workspaces";
+//    public static final String WORKSPACES = "workspaces";
+    public static final String Workspaces = "Workspaces";
     
     // Regular expressions pattern for identifying valid ORDER BY clauses.
     // FIXME: Currently supports only USASCII word characters in field names.
@@ -439,7 +440,7 @@ public class NuxeoUtils {
      */
     public static DocumentRef createPathRef(ServiceContext ctx, String id) {
         return new PathRef("/" + ctx.getRepositoryDomainStorageName() +
-                "/" + WORKSPACES +
+                "/" + Workspaces +
                 "/" + ctx.getRepositoryWorkspaceName() +
                 "/" + id);
     }
index 5158850e9b7abb1cbdaf11f67309911fd2047781..43c190af4319a7d69ba3289039346d7089eb420d 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 7a65fa7ff1d9fff60ade2fa633aefac99d8b1c39..43e3cc4f0fb587e4673f38cd09acb3caa61c3aeb 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index f3e6c666dc580181efa9df1c0637e3f32758a656..d934ded7502122bafcff7174847a290cb763ab4a 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.contact.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 7f37e60d2495f644f753055c0e4a7d0bb211778a..cf91829d5228d0c1f4509fad909e82687c135548 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.contact</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index f76eda645541ac03de04ceccf8c7e42d29db40ca..8844ab0309daddf90bcd05dbe07952dc441360de 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.contact</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 7393cb49b5ea6f249b02075f5cf8a5f9adbcfbfa..a3b45b7816430eef306b4b918ad3605db73795c7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.contact</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.contact.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 4aa3fab721f7a8bcef769ee6b8b1ed499e8dd477..1e8c9e04121c8ce48cdd2bfacbeb54b2ea3656e8 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <artifactId>org.collectionspace.services.main</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 49a787eff5583ad07cefd21e892c88eb1344c92a..3372cfbacba45f77bb8f04f2fd4ee8adab083a4b 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <artifactId>org.collectionspace.services.contact</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index bf35ab41d829ee0a762f63d7146b92ab7182ed7a..caefe4a42eab30e84fe83ab8322ac995e5df6489 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 47f84edf5d641f1e3b34504710a0943cc06a5821..f733f1b4c550fed7c933bc5a4f0873128259dfa0 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index ff8e486628b12c487a7628b8f7b61ba3d43d771c..55c1fed45401b557b333ce206da23c1b10d919ae 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.dimension.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index b6a71c6f3526c3edc864e6f39c6fbe03b2e82a89..a1d437f129bd733983d99d3198010d4d6628f513 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.dimension</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index e88f3e3e627fe06596cfd15f37d860f4e8be4df8..032e9479118b3ad2c674091ac232a6f50b440878 100644 (file)
@@ -6,7 +6,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.dimension</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 195107a20b83971f40b73a401f3b666b4b2d0137..816ecb6fc429670e87db6bb557931f846ea443b8 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.dimension</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
     <name>services.dimension.jaxb</name>
 
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 450efc5121c133f359b51367f27b09991a9ef429..35654b9156e851750c1ca40ccae797a7be1359a7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 36862b9df1a28003a05dac7110f01527915e1587..7f96a6d0724083422adb23cf45a6e39af7d85ce0 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.dimension</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <!-- Restlet -->\r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index 4266eac1f3c1c6fb9a82394a35037205f733000e..86626f2ec4b297e9b682ce486207f3a7e7998c5f 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 738d25db7f133b04234eeb47c0375337a14d16b6..a9335a34b7e2a662ea9b1f6ebbeaf3949afbb72f 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index bd84c0cc94b7f4638cc184e1f9acecf15824bb92..f7be7faa93961c8d16911dd232f1dea73e89f4fe 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.group.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 4f727db2ed06b44f550c2fb0a79055c80458d6ec..7b434f804c70e916ad196e603f924cde82db46a8 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.group</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 6d0fa2bbcdfd898620579742b50db73c5ebff601..5c18f78a7ae6c69ea34a752d12462572b16e6145 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.group</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 46ffa4f1f6a9d3ba7f80b4273daebe8c076f3c6d..bfee936d5e3a632ffc695eb7d93902341c4404dc 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.group</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.group.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 977408f7f72392816fa0feda8be3237af47391e9..15b84f841ac3ad6e5136e0a6f5c80708cdb833dd 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 777bdd1e3a83bc47b41ddad2772ce52b777fd858..e1027372b455db40684cc7b5c5046e2aa06d2e86 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.group</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index cfac149dcc199cae5263747eab57d106927255b9..39a9a4311205c873c56f846810cd486579566bbd 100644 (file)
@@ -26,7 +26,7 @@
   <parent>\r
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.main</artifactId>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
   </parent>\r
   \r
   <modelVersion>4.0.0</modelVersion>\r
@@ -34,7 +34,8 @@
   <artifactId>org.collectionspace.services.hyperjaxb</artifactId>\r
   <name>services.hyperjaxb</name>\r
   \r
-  <dependencies>  \r
+  <dependencies>\r
+  <!-- \r
                <dependency>\r
                  <groupId>com.sun.xml.bind</groupId>\r
                  <artifactId>jaxb-impl</artifactId>\r
                <dependency>\r
                  <groupId>org.jvnet.jaxb2-commons</groupId>\r
                  <artifactId>property-listener-injector</artifactId>\r
-               </dependency>    \r
+               </dependency>   \r
                <dependency>\r
-                 <groupId>org.jvnet.jaxb2_commons</groupId>\r
-                 <artifactId>runtime</artifactId>\r
+                       <groupId>org.jvnet.jaxb2_commons</groupId>\r
+                       <artifactId>jaxb2-basics-runtime</artifactId>\r
                </dependency>\r
+                -->\r
     <!-- Dependencies for HyperJaxB -->\r
                <dependency>\r
                    <groupId>javax.persistence</groupId>\r
index 3adc9ae26ae48fac2dc5e1e35664e2d7566f32d9..b5906a88e68a77a71559d301080cc7a2c9ea1ec2 100644 (file)
@@ -7,7 +7,7 @@
 \r
 <xs:schema \r
     xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
-    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"\r
+    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"\r
     xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"\r
     xmlns:ns="http://collectionspace.org/services/hyperjaxb"\r
     xmlns="http://collectionspace.org/services/hyperjaxb"\r
     jaxb:extensionBindingPrefixes="hj"\r
     version="0.9">\r
     \r
+       <xs:annotation>\r
+               <xs:appinfo>\r
+                       <jaxb:globalBindings generateIsSetMethod="true" localScoping="toplevel">\r
+                               <jaxb:serializable/>\r
+                       </jaxb:globalBindings>\r
+               </xs:appinfo>\r
+       </xs:annotation>\r
+           \r
     <xs:element name="abstract-common-list">\r
         <xs:complexType>\r
             <xs:annotation>\r
diff --git a/services/hyperjaxb/src/main/resources/permissions.xsd b/services/hyperjaxb/src/main/resources/permissions.xsd
new file mode 100644 (file)
index 0000000..3a2dc17
--- /dev/null
@@ -0,0 +1,204 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+
+<!-- CollectionSpace default (security) authorization provider schema (XSD) 
+       Entity(s) : permission Used for: $LastChangedRevision: 916 $ $LastChangedDate: 
+       2009-11-05 16:59:20 -0800 (Thu, 05 Nov 2009) $ -->
+
+<xs:schema
+       xmlns:xs="http://www.w3.org/2001/XMLSchema"
+       xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+       jaxb:version="2.1" elementFormDefault="unqualified"
+       xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
+       xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
+       xmlns:ns="http://collectionspace.org/services/authorization/perms"
+       xmlns="http://collectionspace.org/services/authorization/perms"
+       targetNamespace="http://collectionspace.org/services/authorization/perms"
+       version="0.1"
+       jaxb:extensionBindingPrefixes="hj orm">
+
+       <xs:element name="permission" type="permission" />
+       <xs:complexType name="permission">
+               <xs:annotation>
+                       <xs:documentation>
+                               CspacePermissionConfig describes permission in CollectionSpace
+                               - resourceName could be a service path, e.g. collectionobjects or
+                               intakes
+                               no need to give slash at the beginning or end
+                               - attributeName could be an attribute of the service schema
+                               e.g. otherNumber from collectionobjects_common
+                               - actionGroup is label that can be used by a client to "group" sets
+                               of actions for operations
+                               like searching for permissions by a specific actionGroup label.
+                               - action describes the actions that could be taken on given resource
+                               (and attribute)
+                               - effect describes the effect of the access control for the action
+                               performed on the given resource (and attribute)
+            </xs:documentation>
+                       <xs:appinfo>
+                               <hj:entity>
+                                       <orm:table name="permissions" />
+                               </hj:entity>
+                       </xs:appinfo>
+               </xs:annotation>
+               <xs:sequence>
+
+                       <xs:element name="description" type="xs:string" minOccurs="0"
+                               maxOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="description" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="resourceName" type="xs:string"
+                               minOccurs="1" maxOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="resource_name" length="128"
+                                                               nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="attributeName" type="xs:string"
+                               minOccurs="0" maxOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="attribute_name" length="128"
+                                                               nullable="true" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="actionGroup" type="xs:string" minOccurs="0"
+                               maxOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="action_group" length="128" nullable="true" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="action" type="permission_action"
+                               minOccurs="1" maxOccurs="unbounded" />
+                       <xs:element name="effect" type="effect_type" minOccurs="1"
+                               maxOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="effect" length="32" nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="tenant_id" type="xs:string" minOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="tenant_id" length="128" nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="createdAt" type="xs:dateTime">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="created_at" nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="updatedAt" type="xs:dateTime">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="updated_at" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+               </xs:sequence>
+               <xs:attribute name="csid" type="xs:string">
+                       <xs:annotation>
+                               <xs:appinfo>
+                                       <hj:id>
+                                               <orm:column name="csid" length="128" nullable="false" />
+                                       </hj:id>
+                               </xs:appinfo>
+                       </xs:annotation>
+               </xs:attribute>
+       </xs:complexType>
+
+       <xs:complexType name="permission_action">
+               <xs:annotation>
+                       <xs:appinfo>
+                               <hj:entity>
+                                       <orm:table name="permissions_actions">
+                                       </orm:table>
+                               </hj:entity>
+                       </xs:appinfo>
+               </xs:annotation>
+               <xs:sequence>
+                       <xs:element name="name" type="action_type" minOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="name" length="128" nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="objectIdentity" type="xs:string"
+                               minOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="objectIdentity" length="128"
+                                                               nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="objectIdentityResource" type="xs:string"
+                               minOccurs="1">
+                               <xs:annotation>
+                                       <xs:appinfo>
+                                               <hj:basic>
+                                                       <orm:column name="objectIdentityResource" length="128"
+                                                               nullable="false" />
+                                               </hj:basic>
+                                       </xs:appinfo>
+                               </xs:annotation>
+                       </xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:simpleType name="action_type">
+               <xs:restriction base="xs:string">
+                       <xs:enumeration value="CREATE" />
+                       <xs:enumeration value="READ" />
+                       <xs:enumeration value="UPDATE" />
+                       <xs:enumeration value="DELETE" />
+                       <xs:enumeration value="SEARCH" />
+                       <xs:enumeration value="START" />
+                       <xs:enumeration value="STOP" />
+                       <xs:enumeration value="RUN" />
+                       <xs:enumeration value="ADMIN" />
+               </xs:restriction>
+       </xs:simpleType>
+
+       <xs:simpleType name="effect_type">
+               <xs:restriction base="xs:string">
+                       <xs:enumeration value="PERMIT" />
+                       <xs:enumeration value="DENY" />
+               </xs:restriction>
+       </xs:simpleType>
+
+</xs:schema>
+
diff --git a/services/hyperjaxb/src/main/resources/permissions_list.xsd b/services/hyperjaxb/src/main/resources/permissions_list.xsd
new file mode 100644 (file)
index 0000000..83234aa
--- /dev/null
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+
+<!--
+    CollectionSpace default (security) authorization provider schema (XSD)
+
+    Entity(s)  : permission
+    Used for:
+
+    $LastChangedRevision: 916 $
+    $LastChangedDate: 2009-11-05 16:59:20 -0800 (Thu, 05 Nov 2009) $
+-->
+
+<xs:schema 
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+    jaxb:version="2.1" elementFormDefault="unqualified"
+    xmlns:hj="http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
+    xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
+    xmlns:ns="http://collectionspace.org/services/authorization/perms"
+    xmlns="http://collectionspace.org/services/authorization/perms"
+    targetNamespace="http://collectionspace.org/services/authorization/perms"
+    version="0.1"
+    jaxb:extensionBindingPrefixes="hj orm"
+    >
+
+    <!--
+    Avoid XmlRootElement nightmare:
+    See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
+-->
+
+
+    <xs:include schemaLocation="permissions.xsd"/>
+   
+    <xs:element name="permissions_list">
+           <xs:complexType>
+               <xs:annotation>
+                   <xs:appinfo>
+                       <hj:ignored/>
+                   </xs:appinfo>
+               </xs:annotation>
+               <xs:sequence>
+                   <xs:annotation>
+                       <xs:documentation>permission configuration list</xs:documentation>
+                   </xs:annotation>
+                   <xs:element name="permission" type="ns:permission" minOccurs="1" maxOccurs="unbounded"/>
+               </xs:sequence>
+           </xs:complexType>
+       </xs:element>
+
+    <xs:element name="foo_permissions_list">
+           <xs:complexType>
+               <xs:annotation>
+                   <xs:appinfo>
+                       <hj:ignored/>
+                   </xs:appinfo>
+               </xs:annotation>
+            <xs:complexContent>
+                <xs:extension base="abstractCommonList">                    
+                           <xs:sequence>
+                               <xs:element name="permissions-list-item" maxOccurs="unbounded">
+                                   <xs:complexType>
+                                       <xs:annotation>
+                                           <xs:appinfo>
+                                               <hj:ignored/>
+                                           </xs:appinfo>
+                                       </xs:annotation>
+                                       <xs:sequence>
+                                           <xs:element name="screenName" type="xs:string" minOccurs="1"/>
+                                           <xs:element name="personRefName" type="xs:string" minOccurs="1" />
+                                           <xs:element name="email" type="xs:string" minOccurs="1" />
+                                           <!-- uri to retrive collection object details -->
+                                           <xs:element name="uri" type="xs:anyURI" minOccurs="1" />
+                                           <xs:element name="csid" type="xs:string" minOccurs="1" />
+                                       </xs:sequence>
+                                   </xs:complexType>
+                               </xs:element>
+                           </xs:sequence>
+                </xs:extension>
+            </xs:complexContent>        
+           </xs:complexType>
+       </xs:element>
+       
+    <!-- This is the base class for paginated lists -->
+    <xs:complexType name="abstractCommonList">
+        <xs:annotation>
+            <xs:appinfo>
+                <jaxb:class ref="org.collectionspace.services.hyperjaxb.AbstractCommonList"/>
+            </xs:appinfo>
+        </xs:annotation>
+    </xs:complexType>
+       
+    <xs:element name="foo-common-list">
+        <xs:complexType>
+            <xs:annotation>
+                <xs:documentation>
+                    AccountsCommonList contains information about one or more
+                    accounts. An instance of this type could be returned on
+                    index and search operations.
+                </xs:documentation>
+                <xs:appinfo>
+                    <hj:ignored/>
+                </xs:appinfo>
+            </xs:annotation>
+            <xs:complexContent>
+                <xs:extension base="abstractCommonList">                    
+                           <xs:sequence>
+                               <xs:element name="foo-list-item" maxOccurs="unbounded">
+                                   <xs:complexType>
+                                       <xs:annotation>
+                                           <xs:appinfo>
+                                               <hj:ignored/>
+                                           </xs:appinfo>
+                                       </xs:annotation>
+                                       <xs:sequence>
+                                           <xs:element name="screenName" type="xs:string" minOccurs="1"/>
+                                           <xs:element name="personRefName" type="xs:string" minOccurs="1" />
+                                           <xs:element name="email" type="xs:string" minOccurs="1" />
+                                           <!-- uri to retrive collection object details -->
+                                           <xs:element name="uri" type="xs:anyURI" minOccurs="1" />
+                                           <xs:element name="csid" type="xs:string" minOccurs="1" />
+                                       </xs:sequence>
+                                   </xs:complexType>
+                               </xs:element>
+                           </xs:sequence>
+                </xs:extension>
+            </xs:complexContent>        
+        </xs:complexType>
+    </xs:element>
+       
+
+</xs:schema>
+
index c5f063a03b934d767979dae957a8885cde6b7052..976db9691e17f17cd9c997e0baffd371ffeba9d0 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index efdae380cedbf3140947c0eb22dc9aea541d9678..fcb054df970ca14147953a26f4566a9a6cda6883 100644 (file)
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.id</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
         
     <modelVersion>4.0.0</modelVersion>
index bad2ebe267fa37451790d53b87f51507d7577442..b3499bf27ecb33ca3408d4e2139bf19a42f3b491 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.id</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
@@ -22,7 +22,7 @@
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.id.service</artifactId>
-            <version>1.12-SNAPSHOT</version>
+            <version>1.14-SNAPSHOT</version>
             <scope>test</scope>
             <type>jar</type>
         </dependency>
index 487748d338b31390de2d51c4720c0f78c1cb3121..1c130c98379cd9efe38cc075a2bd2b0d3fd3fba6 100644 (file)
@@ -25,7 +25,7 @@
   <parent>
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.id</artifactId>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
   <name>services.id.jaxb</name>
 
   <dependencies>
-    <dependency>
-      <groupId>com.sun.xml.bind</groupId>
-      <artifactId>jaxb-impl</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.jvnet.jaxb2-commons</groupId>
-      <artifactId>property-listener-injector</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.jvnet.jaxb2_commons</groupId>
-      <artifactId>runtime</artifactId>
-    </dependency>
+       <dependency>
+               <groupId>org.jvnet.jaxb2_commons</groupId>
+               <artifactId>jaxb2-basics-runtime</artifactId>
+       </dependency>
   </dependencies>
 
   <build>
index ccd06eddc4498d18ed49efa3e55c852e9b5a2c85..42535ac0b08ce0720b1fdb8c24891be810c51f59 100644 (file)
@@ -23,7 +23,7 @@
   <parent>
     <groupId>org.collectionspace.services</groupId>
     <artifactId>org.collectionspace.services.main</artifactId>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
   </parent>
   
   <modelVersion>4.0.0</modelVersion>
   <name>services.id</name>
   <packaging>pom</packaging>
   
+       <dependencies>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+                       <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+                       <scope>provided</scope>
+        </dependency>
+       </dependencies>
+  
   <modules>
     <!--module>3rdparty</module-->
     <!--module>jaxb</module-->
index 521f11becbd3a7a5e447ae4ed5c9cf09d31ebbe8..6a202537e4ac6c5513dd2e4cbdfec940c537657d 100644 (file)
@@ -23,7 +23,7 @@
   <parent>
     <artifactId>org.collectionspace.services.id</artifactId>
     <groupId>org.collectionspace.services</groupId>
-    <version>1.12-SNAPSHOT</version>
+    <version>1.14-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
index c75fc0876e4f81dacb7d7dc791445f8e81d42dc9..ec313bf6b86fbf6108abbaff998c4f81a42f0734 100755 (executable)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 7c6ede9cfa45b9b4f28844fb94ce165e74cc8d7b..51c94af4bb70de0255497cc05af854ab032911a8 100755 (executable)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 25f396c636556fa7d99f22dd62cf8563a80562bb..f017e822b33129ef430713703f5b66831a75155e 100755 (executable)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.imports.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 4705cbcc4c82bf64f0d7ec14782631d27b9cdd44..bd217b96aec2fd523190b8b1eb74f648c716378b 100755 (executable)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.imports</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 5b6c3a9cc49f94f7bf8c9fe9c27911bffe1d06d5..8b134b913cc25755ccdfd2150fac4018cff40c3f 100755 (executable)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.imports</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.imports.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 786e22ef933faeefcb5f901334539029f8334a19..f6ade6a2daa94a74b7bc48ab00b7e3a3edc0af5d 100755 (executable)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 9c413800f4b683e3141175a8f56c1186051eb1f6..e2384d3720f5a049dd1bfab1893d2b424168e0a8 100755 (executable)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.imports</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
@@ -87,9 +87,9 @@
         
 
         <dependency>
-            <groupId>org.nuxeo.ecm.platform</groupId>
+            <groupId>org.nuxeo.shell</groupId>
             <artifactId>nuxeo-shell-core</artifactId>
-            <version>${nuxeo.platform.version}</version>
+            <version>${nuxeo.shell.version}</version>
         </dependency>
         <dependency>
             <groupId>org.nuxeo.ecm.core</groupId>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index 2b677c206e1b7f8bcb49bc51071bc7c50a57f759..55128fe12a82b2bdb88913d1cdfd208dea9b2989 100755 (executable)
@@ -87,7 +87,7 @@ public class ImportsResource extends ResourceBase {
        List<RepositoryDomainType> repositoryDomainList = tenantBinding.getRepositoryDomain();
        if (repositoryDomainList.size() == 1) {
                String domainName = repositoryDomainList.get(0).getStorageName().trim();
-               result = "/" + domainName + "/" + NuxeoUtils.WORKSPACES;                
+               result = "/" + domainName + "/" + NuxeoUtils.Workspaces;                
        } else {
                throw new ConfigurationException("Tenant bindings contains 0 or more than 1 repository domains.");
        }
index 68a4c1ef405778087f3bca2c3806053e6809f5c7..3dfd17565dbe910ab7c67bcd312942c82c879e5b 100755 (executable)
@@ -3,9 +3,11 @@ package org.collectionspace.services.imports.nuxeo;
 import java.io.File;\r
 import org.apache.commons.logging.Log;\r
 import org.apache.commons.logging.LogFactory;\r
+import org.collectionspace.services.nuxeo.client.java.NuxeoClientEmbedded;\r
 import org.collectionspace.services.nuxeo.client.java.NuxeoConnector;\r
+import org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded;\r
 import org.nuxeo.ecm.core.api.repository.RepositoryInstance;\r
-import org.nuxeo.ecm.core.client.NuxeoClient;\r
+//import org.nuxeo.ecm.core.client.NuxeoClient;\r
 import org.nuxeo.ecm.core.io.DocumentPipe;\r
 import org.nuxeo.ecm.core.io.DocumentReader;\r
 import org.nuxeo.ecm.core.io.DocumentWriter;\r
@@ -20,7 +22,7 @@ public class ImportCommand {
     public String run(String src, String dest) throws Exception {\r
         File file = new File(src);\r
         ///cspace way of configuring client and auth:\r
-        NuxeoClient client = NuxeoConnector.getInstance().getClient();\r
+        NuxeoClientEmbedded client = NuxeoConnectorEmbedded.getInstance().getClient();\r
         RepositoryInstance  repository = client.openRepository();\r
         try {\r
             return importTree(repository, file, dest);\r
index 69c7cb3d65e60b189f190c1afb4f09f9e971e608..4ba408bab509d1b533ee630d1b04944e40cfdc57 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 5fe78e8aaf8c010afab071790d6f40d9581ee8d2..27ea3f02379c2cb926c2e23be1998dc2034f99e5 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 04033766d87ac1b88c963ce0b1de5e89d01e3b4b..31e43b9d9575f7574c6e741a21c832cd125361f1 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.intake.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 1463bff1ce330cfa5ef8e31ce9221969f981d127..cb640fbf226e4c91fcab53168da5302b9ccb7d6e 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.intake</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 55e9c2b6052683a19fead203d00de09207580d10..74ce9e9c4a9992a3b5b68caf3eb506c2a4ae41a5 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.intake</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index df5de7a7f8690fb48187e9570e6b2952800a9fb4..96c24c295807fd3173b2638f5ab0cee0cea46f22 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.intake</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.intake.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 9cc4c68640476425466c2bdd8a8c651378df9305..bff983dac486eb92e8b2ce593f126eba4e4efc25 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 85bb4b38071ee07b7327c92ad527440447cf2f5d..18e1aa72655e184abe765534f3be3b70a176328f 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.intake</artifactId>        \r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
     </dependencies>\r
     \r
     <build>\r
index 1f2109a8f9e1fae2ea7fec3cd01780bc31c7d7be..4fc90d906c112db19f68f026a879e987ff53b120 100644 (file)
@@ -1,68 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 \r
-<!--\r
- pom.xml\r
\r
- A Maven 2 project file for the 'jaxb' module of the ID Service project.\r
+<!-- pom.xml A Maven 2 project file for the 'jaxb' module of the ID Service \r
+       project. This document is a part of the source code and related artifacts \r
+       for CollectionSpace, an open source collections management system for museums \r
+       and related institutions: http://www.collectionspace.org http://wiki.collectionspace.org \r
+       Based on work by Sanjay Dalal and Richard Millet. $LastChangedBy: aron $ \r
+       $LastChangedRevision: 302 $ $LastChangedDate: 2009-06-29 15:36:29 -0700 (Mon, \r
+       29 Jun 2009) $ -->\r
 \r
- This document is a part of the source code and related artifacts\r
- for CollectionSpace, an open source collections management system\r
- for museums and related institutions:\r
\r
- http://www.collectionspace.org\r
- http://wiki.collectionspace.org\r
\r
- Based on work by Sanjay Dalal and Richard Millet.\r
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
 \r
- $LastChangedBy: aron $\r
- $LastChangedRevision: 302 $\r
- $LastChangedDate: 2009-06-29 15:36:29 -0700 (Mon, 29 Jun 2009) $\r
--->\r
+       <parent>\r
+               <groupId>org.collectionspace.services</groupId>\r
+               <artifactId>org.collectionspace.services.main</artifactId>\r
+               <version>1.14-SNAPSHOT</version>\r
+       </parent>\r
 \r
-<project xmlns="http://maven.apache.org/POM/4.0.0"\r
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
+       <modelVersion>4.0.0</modelVersion>\r
+       <groupId>org.collectionspace.services</groupId>\r
+       <artifactId>org.collectionspace.services.jaxb</artifactId>\r
+       <name>services.jaxb</name>\r
 \r
-  <parent>\r
-    <groupId>org.collectionspace.services</groupId>\r
-    <artifactId>org.collectionspace.services.main</artifactId>\r
-    <version>1.12-SNAPSHOT</version>\r
-  </parent>\r
-  \r
-  <modelVersion>4.0.0</modelVersion>\r
-  <groupId>org.collectionspace.services</groupId>\r
-  <artifactId>org.collectionspace.services.jaxb</artifactId>\r
-  <name>services.jaxb</name>\r
-  \r
-  <dependencies>  \r
-    <dependency>\r
-      <groupId>com.sun.xml.bind</groupId>\r
-      <artifactId>jaxb-impl</artifactId>\r
-    </dependency>\r
-    \r
-    <dependency>\r
-      <groupId>org.jvnet.jaxb2-commons</groupId>\r
-      <artifactId>property-listener-injector</artifactId>\r
-    </dependency>\r
-    \r
-    <dependency>\r
-      <groupId>org.jvnet.jaxb2_commons</groupId>\r
-      <artifactId>runtime</artifactId>\r
-    </dependency>\r
-    \r
-  </dependencies>\r
-  \r
-  <build>\r
-    <finalName>collectionspace-services-jaxb</finalName>\r
-    <defaultGoal>install</defaultGoal>\r
-    <plugins>\r
-    \r
-      <plugin>\r
-        <groupId>org.jvnet.jaxb2.maven2</groupId>\r
-        <artifactId>maven-jaxb2-plugin</artifactId>\r
-      </plugin>\r
-    </plugins>\r
-  </build>\r
+       <dependencies>\r
+               <dependency>\r
+                       <groupId>com.sun.xml.bind</groupId>\r
+                       <artifactId>jaxb-impl</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.jvnet.jaxb2_commons</groupId>\r
+                       <artifactId>jaxb2-basics</artifactId>\r
+                       <version>${jaxb2-basics.version}</version>\r
+               </dependency>\r
+       </dependencies>\r
+\r
+       <build>\r
+               <finalName>collectionspace-services-jaxb</finalName>\r
+               <defaultGoal>install</defaultGoal>\r
+               <plugins>\r
+                       <plugin>\r
+                               <groupId>org.jvnet.jaxb2.maven2</groupId>\r
+                               <artifactId>maven-jaxb2-plugin</artifactId>\r
+                       </plugin>\r
+               </plugins>\r
+       </build>\r
 \r
 </project>\r
 \r
index e7df6c55947140ea237c43f0d813626750550ef7..476d544fc57312770bca108a612e6b9ec3bd1e41 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 49b2bf2ce9bb33649897413c6a137a3172533c54..853c6dc771935060f8812e060d03d4a4dd88abc1 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 02a098a4c022ff128b1c4828436e562fd884ae3a..b1d88dc4c851ee958ea82242a023164d2516f38c 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanin.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index a1b17a33c27fdd8c24be842c84f2c57f1a68781f..ec557877704fc9151156718db37b33e77376fefc 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.loanin</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 503295fa7552cca1447891eb3a7ae3f114a620cf..f6c83afc2938fa2de7dc0121caa8342068612ae5 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanin</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index bd97bb0bc426d7912db3f00e901ef44970999c46..9d29569628010bafd8212735ec3a3438a254a333 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.loanin</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.loanin.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 467a27507348539b37bede8cdc4a562eabc887bc..b756f6a1e9472bf220796792c9e468e8cf0ba0cc 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 2c1d1af5b0c5ca9b88816b4ea13c91bce1b4f34b..aac35f11caa27b369418389302f1ee6633c11a1e 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanin</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index 66daf6a6394d3c3f8ac4aba8d0870998e4bb59e0..ad5fffd385bb0ca26118897790503b68f5de6fc6 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 b36c7eaa3fbe368f2e462c3be6f00a685c8cb19f..2066d056436870e707fc833aaa1df70f119b807e 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 c37e1a6c42ecb381da5de8b18cd2433cef5acbcf..353eca1f460c5d339b625768264a770e3e9c3301 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanout.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 97be63a1f5914dc4190d6e91a6d810fcb77ce390..0d18891bdc486e4e280695bbe29f300ea5b07a8c 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.loanout</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 5e27b9008891f6bb2030d6ec1c74f703fceb4bcf..376042377e0dae91baeeee3676469ce4feff0691 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanout</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 93f234c6e7930274eccf9250494c5d150717a051..30e298d4c83ef88c79250e2fa27d7392ae01e420 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.loanout</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.loanout.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index d07f2020c69ef80e7db3b177686569c6643d9e69..189f6e8e812fd3eaa9df3c205dabe1de2afee15f 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 6a8423480c1c66141eb772f6a954be1a7ce2901f..5446bf33d9f187bd6388bf82fd9fb0498b8956ca 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.loanout</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index eba3c0275a00969df893025933a32351a4f24cc0..700322e21346ccb90ca55c4caf9492caa16e1440 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index a84a0da908bd136c4362e9a6e024cdd112838a3c..0f8161b793882906aed3c2e91e2c41f79115ef30 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 13510aecd2559bba6488bc6e7459890ee5f911d5..27f10468900fd8bbd2ab7c6201f7f8b02382d725 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.location.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 8bbdd72b6a278355fc321eae4b47730b309b31d1..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_orgauthorities.xhtml">
-      breadcrumb=title.orgauthorities
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthorities</from-outcome>
-      <to-view-id>/view_orgauthorities.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthority</from-outcome>
-      <to-view-id>/view_orgauthority.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 3618aae335001d6aa0935974ec112bb930d8b473..fcf8cf12e961a8a517aac615f1ff99b417657d2c 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.location</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 627b746fd41b90cfe1b57f9deca8f5653a84152f..8a18152ca56e91ddbb7e0b5d75ce50eacdef92a0 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.location</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 639cc224b39e531e8aa58e181aaff49f0bf1e8f3..3c47a6ff75cf079f22b3ca95bc29f145ef58396a 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.location</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <artifactId>org.collectionspace.services.common</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 32b502480faa3565b39a2e1567fcf5f7b0580be8..4dae7693d22f882216cf314aed37cfd9b9e31e32 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 19deb675a8b462bac64359dd3f8cc84ec3f46aee..dc624b15ed090a448f62d1a86355ef6afa168fb6 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.location</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index 7841cfa43e1b94adaa5a01997b76a2d1b02d53d9..c0549808a94b96755476c239b05310f9f1c3dd83 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 58dccdbefeebb94dab66730eb37d3c2f5da77dbc..e783e30955065de10036c33b2affed237336ca99 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 633b3d315a0f7c95b14e27314e7ef5683a67b9e4..70743f961ff349816efa2b5809f5c46ff16977e6 100644 (file)
@@ -6,7 +6,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.media.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 03efcd3e6faac1b522ee043d6d6b0a8f4359911f..d0f851e941af0e902bc93f2009632c84b0ab41a0 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.media</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index bc2a854c1737f994de241792da4262c2e9e4138b..29dadefe82fce5414a7fdf253f804eee6ed1d6da 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.media</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 04efdc9884643c17618560bbb110d53c57cd8e5f..67ac258d34e809fea4b2f56509df9dd4c8fb5e68 100644 (file)
@@ -68,7 +68,7 @@ public class MediaClient extends AbstractCommonListPoxServiceClientImpl<MediaPro
      *
      */
     public ClientResponse<Response> createBlobFromUri(String csid, String blobUri) {
-        return getProxy().createBlobFromUri(csid, blobUri);
+        return getProxy().createBlobFromUri(csid, blobUri, blobUri); //send the URI as both a query param and as content
     }    
         
     /**
index ea59a91d93dc142296d2f66745c55eb8c40a38a4..841cc57aba90ba192a8e63b36362f9ed6ca78efb 100644 (file)
@@ -22,16 +22,16 @@ import org.collectionspace.services.client.BlobClient;
 public interface MediaProxy extends CollectionSpaceCommonListPoxProxy {
 
     @POST
-    @Path("/{csid}")
+    @Path("{csid}")
     @Consumes("multipart/form-data")
     ClientResponse<Response> createBlobFromFormData(@PathParam("csid") String csid,
                MultipartFormDataOutput formDataOutput);
             
     @POST
-    @Path("/{csid}")
+    @Path("{csid}")
        @Produces("application/xml")
        @Consumes("application/xml")
     ClientResponse<Response>createBlobFromUri(@PathParam("csid") String csid,
-               @QueryParam(BlobClient.BLOB_URI_PARAM) String blobUri);
-    
+               @QueryParam(BlobClient.BLOB_URI_PARAM) String blobUri,
+               String emptyXML); //this "emptyXML" param is needed to force RESTEasy to produce a Content-Type header for this POST    
 }
index c9f4c8fdf867e06f9cc7ef09d54aa033048fdd19..87fa5a38f999af2f5c359b03cf19c4a7659be888 100644 (file)
@@ -132,9 +132,15 @@ public class MediaServiceTest extends AbstractServiceTestImpl {
         setupCreate();
         MediaClient client = new MediaClient();
         PoxPayloadOut multipart = createMediaInstance(createIdentifier());
-        ClientResponse<Response> mediaRes = client.create(multipart);
-        assertStatusCode(mediaRes, testName);
-        String mediaCsid = extractId(mediaRes);
+        ClientResponse<Response> mediaRes = null;
+        String mediaCsid = null;
+        try {
+               mediaRes = client.create(multipart);
+               assertStatusCode(mediaRes, testName);
+               mediaCsid = extractId(mediaRes);
+        } finally {
+               mediaRes.releaseConnection();
+        }
         
         String currentDir = this.getResourceDir();
         String blobsDirPath = currentDir + File.separator + BLOBS_DIR;
@@ -157,17 +163,22 @@ public class MediaServiceTest extends AbstractServiceTestImpl {
                        // If we found a good blob candidate file, then try to create the blob record
                        //
                        if (blobFile != null) {
+                               client = new MediaClient();
                                ClientResponse<Response> res = null;
                                String mimeType = this.getMimeType(blobFile);
                                logger.debug("Processing file URI: " + blobFile.getAbsolutePath());
                                logger.debug("MIME type is: " + mimeType);
-                               if (fromUri == true) {
-                                       URL childUrl = blobFile.toURI().toURL();
-                                       res = client.createBlobFromUri(mediaCsid, childUrl.toString());
-                               } else {
-                                   MultipartFormDataOutput formData = new MultipartFormDataOutput();
-                                   OutputPart outputPart = formData.addFormData("file", blobFile, MediaType.valueOf(mimeType));
-                                   res = client.createBlobFromFormData(mediaCsid, formData);
+                               try {
+                                       if (fromUri == true) {
+                                               URL childUrl = blobFile.toURI().toURL();
+                                               res = client.createBlobFromUri(mediaCsid, childUrl.toString());
+                                       } else {
+                                           MultipartFormDataOutput formData = new MultipartFormDataOutput();
+                                           OutputPart outputPart = formData.addFormData("file", blobFile, MediaType.valueOf(mimeType));
+                                           res = client.createBlobFromFormData(mediaCsid, formData);
+                                       }
+                               } finally {
+                                       res.releaseConnection();
                                }
                            assertStatusCode(res, testName);
                            if (isMediaCleanup() == true) {
index e670f095bce8a3e885bc240e72e056aadcb93a76..65808457d3b5b8b447e97c26378d9e3e1783e142 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.media</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.media.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 73b978a875f761947bc50b83c5c9c9053277bc49..33a6d42463f96bab0a987c004937a14e6d446269 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 38bbe0767aeda89389b8244cd35cd2abcd9e2cea..334bcce6c58d946c36ea76e1648a3350daa7f324 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.media</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
                 </exclusion>
             </exclusions>
         </dependency>
-
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index 41f228d441f16b4530c30ad183f7dee9eb6beea6..269abd62d07378ded84788b4edfba666dca624ce 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 07012377ea38f96032c8a14429b2e2a5b596a75b..55873434fa110cd703a7ac586d2ded4798bc41f9 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 a4fe9590041b95292e32b9f182e829390098408a..2d9e9be0c71ffa9c34087a8d1baba103692d82d1 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.movement.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 6c4a0fd89ff805846ef43e979b4fe9b60ccf4d21..10a77b0864a851e0e42cf4d1dad6dba59c58fb3c 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.movement</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 0d39ad2b8ebabd8d38f31a1a85df0246b88400cf..4027bfc484d2794d0129c7f28c0a98ce21990666 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.movement</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 6e1b9ecd2392b90890b567d9ea73244d71d4cd76..ec41a7f20b0f1a5f9cf93585c974170188fc9fba 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.movement</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.movement.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 39f9267ad2dfd7188bb57a65bec9d4c10b256d68..7d6a364317bcacbff5a6f41ebc97782b45e51a6b 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 6684b6bd53ce92328c42bc8a4c98fb58aa630401..30f89d46179d84b7de361891afd72bc45d0a33c8 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.movement</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
                 </exclusion>
             </exclusions>
         </dependency>
-
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index 0b6b693f204a46b339b558cd70db454c5c173277..b2d673e94235dd4070492dedfaf2eacfad5784c4 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 469b6a0168670368d7f9d968f15fb917efeb9fe3..b2d895a4b3852ab5454866e28976308b2e9d0bb2 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index ff6b19dfcf3e870c5fa5a6fd46ca1c878d70cbec..819b308114a952053c6663d85919241bd9c60198 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.note.3rdparty</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index ee899e66abd16370263bbcd8a712d9dbf1a52eae..226075b98d5cc6418a9ce5ee3688ac7e83fc4b2c 100644 (file)
@@ -3,406 +3,8 @@
 \r
   <extension target="application#MODULE">\r
     <module>\r
-      <ejb>${bundle.fileName}</ejb>\r
+      <java>${bundle.fileName}</java>\r
     </module>\r
-\r
-    <module>\r
-      <web>\r
-        <web-uri>nuxeo.war</web-uri>\r
-        <context-root>/nuxeo</context-root>\r
-      </web>\r
-    </module>\r
-  </extension>\r
-\r
-  <!-- uncomment that to enable tomcat based auth\r
-    <extension target="web#LOGIN-CONFIG">\r
-    <login-config>\r
-    <auth-method>FORM</auth-method>\r
-    <realm-name>nuxeo.ecm</realm-name>\r
-    <form-login-config>\r
-    <form-login-page>/login.jsp</form-login-page>\r
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>\r
-    </form-login-config>\r
-    </login-config>\r
-    </extension>\r
-  -->\r
-\r
-  <extension target="web#FILTER-MAPPING">\r
-\r
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web\r
-      deployment fragment -->\r
-\r
-    <filter-mapping>\r
-      <filter-name>Seam Context Filter</filter-name>\r
-      <url-pattern>/ws/FileManageWS</url-pattern>\r
-    </filter-mapping>\r
-\r
-    <filter-mapping>\r
-      <filter-name>Seam Context Filter</filter-name>\r
-      <url-pattern>/DocumentManagerWS</url-pattern>\r
-    </filter-mapping>\r
-  </extension>\r
-\r
-  <extension target="web#SERVLET">\r
-  </extension>\r
-\r
-  <extension target="web#SERVLET-MAPPING">\r
-  </extension>\r
-\r
-  <extension target="pages#PAGES">\r
-    <!-- This calls a method which load the Workspace logo -->\r
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>\r
-\r
-    <!-- Bind URL to the Document URL resolver-->\r
-    <page view-id="/getDocument.xhtml"\r
-        action="#{navigationContext.navigateToURL}">\r
-    </page>\r
-\r
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>\r
-\r
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->\r
-    <page view-id="/parallele.xhtml"\r
-        action="#{paralleleNavigationHelper.navigateToURL}">\r
-    </page>\r
-\r
-    <!-- Post login and 'home' view handler -->\r
-    <page view-id="/nxstartup.xhtml"\r
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>\r
-\r
-    <!-- To redirect to the user dashboard instead, use instead:\r
-\r
-      <page view-id="/nxstartup.xhtml"\r
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />\r
-    -->\r
-\r
-    <!--  config for workspace management\r
-      = give a description for each viewId\r
-    -->\r
-\r
-    <page view-id="/view_domains.xhtml">\r
-      #{currentServerLocation.name}/#{currentTabAction.label}\r
-    </page>\r
-\r
-    <page view-id="/select_document_type.faces.xhtml">\r
-      Create new document in #{currentDocument.name}\r
-    </page>\r
-\r
-    <page view-id="/create_document.faces.xhtml">\r
-      Create new document in #{currentDocument.name}\r
-    </page>\r
-\r
-    <page view-id="/user_dashboard.xhtml">\r
-      breadcrumb=command.user_dashboard\r
-    </page>\r
-\r
-    <page view-id="/view_users.xhtml">\r
-      breadcrumb=command.manageMembers\r
-    </page>\r
-\r
-    <page view-id="/view_many_users.xhtml">\r
-      breadcrumb=command.manageMembers\r
-    </page>\r
-\r
-    <page view-id="/view_vocabularies.xhtml">\r
-      breadcrumb=title.vocabularies\r
-    </page>\r
-\r
-    <page view-id="/search/search_form.xhtml">\r
-      breadcrumb=command.advancedSearch\r
-    </page>\r
-  </extension>\r
-\r
-  <extension target="faces-config#APPLICATION">\r
-    <locale-config>\r
-      <default-locale>en</default-locale>\r
-      <supported-locale>en_GB</supported-locale>\r
-      <supported-locale>en_US</supported-locale>\r
-      <supported-locale>fr</supported-locale>\r
-      <supported-locale>de</supported-locale>\r
-      <supported-locale>es</supported-locale>\r
-      <supported-locale>it</supported-locale>\r
-      <supported-locale>ar</supported-locale>\r
-      <supported-locale>ru</supported-locale>\r
-      <supported-locale>ja</supported-locale>\r
-      <supported-locale>vn</supported-locale>\r
-    </locale-config>\r
-\r
-    <message-bundle>messages</message-bundle>\r
-  </extension>\r
-\r
-  <extension target="components#PAGEFLOW">\r
-    <value>config/addWorkspace.jpdl.xml</value>\r
-  </extension>\r
-\r
-  <extension target="faces-config#NAVIGATION">\r
-    <!-- generic pages -->\r
-    <navigation-case>\r
-      <from-outcome>generic_error_page</from-outcome>\r
-      <to-view-id>/generic_error_page.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>generic_message_page</from-outcome>\r
-      <to-view-id>/generic_message_page.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>home</from-outcome>\r
-      <to-view-id>/nxstartup.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>user_login</from-outcome>\r
-      <to-view-id>/login.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>user_logout</from-outcome>\r
-      <to-view-id>/logout.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_servers</from-outcome>\r
-      <to-view-id>/view_servers.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- pages for document actions -->\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_domains</from-outcome>\r
-      <to-view-id>/view_domains.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>select_document_type</from-outcome>\r
-      <to-view-id>/select_document_type.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>create_document</from-outcome>\r
-      <to-view-id>/create_document.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>edit_document</from-outcome>\r
-      <to-view-id>/edit_document.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_documents</from-outcome>\r
-      <to-view-id>/view_documents.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>create_file</from-outcome>\r
-      <to-view-id>/create_file.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>create_workspace_wizard</from-outcome>\r
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>send_email</from-outcome>\r
-      <to-view-id>/document_email.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- AT: BBB, use view_documents instead -->\r
-    <navigation-case>\r
-      <from-outcome>view_workspaces</from-outcome>\r
-      <to-view-id>/view_workspaces.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- AT: BBB, use create_document instead -->\r
-    <navigation-case>\r
-      <from-outcome>create_domain</from-outcome>\r
-      <to-view-id>/create_domain.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- AT: BBB, use edit_document instead -->\r
-    <navigation-case>\r
-      <from-outcome>edit_domain</from-outcome>\r
-      <to-view-id>/edit_domain.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- AT: BBB, use create_document instead -->\r
-    <navigation-case>\r
-      <from-outcome>create_workspace</from-outcome>\r
-      <to-view-id>/create_workspace.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- AT: BBB, use edit_document instead -->\r
-    <navigation-case>\r
-      <from-outcome>edit_workspace</from-outcome>\r
-      <to-view-id>/edit_workspace.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- users ang groups -->\r
-\r
-    <navigation-case>\r
-      <from-outcome>members_management</from-outcome>\r
-      <to-view-id>/members_management.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_users</from-outcome>\r
-      <to-view-id>/view_users.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_many_users</from-outcome>\r
-      <to-view-id>/view_many_users.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>edit_user</from-outcome>\r
-      <to-view-id>/edit_user.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>edit_user_password</from-outcome>\r
-      <to-view-id>/edit_user_password.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_user</from-outcome>\r
-      <to-view-id>/view_user.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>create_user</from-outcome>\r
-      <to-view-id>/create_user.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_groups</from-outcome>\r
-      <to-view-id>/view_groups.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_group</from-outcome>\r
-      <to-view-id>/view_group.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>edit_group</from-outcome>\r
-      <to-view-id>/edit_group.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>create_group</from-outcome>\r
-      <to-view-id>/create_group.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_vocabularies</from-outcome>\r
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>view_vocabulary</from-outcome>\r
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- search -->\r
-\r
-    <navigation-case>\r
-      <from-outcome>search_form</from-outcome>\r
-      <to-view-id>/search/search_form.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>search_results_nxql</from-outcome>\r
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>search_results_advanced</from-outcome>\r
-      <to-view-id>\r
-        /search/search_results_advanced.xhtml\r
-      </to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>search_results_simple</from-outcome>\r
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <!-- miscellaneaous -->\r
-\r
-    <navigation-case>\r
-      <from-outcome>clipboard</from-outcome>\r
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>user_dashboard</from-outcome>\r
-      <to-view-id>/user_dashboard.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>select_workspace_template</from-outcome>\r
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>pdf_generation_error</from-outcome>\r
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>mass_edit</from-outcome>\r
-      <to-view-id>/massedit_documents.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
-\r
-    <navigation-case>\r
-      <from-outcome>mass_edit_confirm</from-outcome>\r
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>\r
-      <redirect/>\r
-    </navigation-case>\r
   </extension>\r
-\r
+  \r
 </fragment>\r
-\r
index f07bfee1256824ba830e34cbdc2e0135c6105ff2..a47fa511b339d03d667e4a1ed64f8c35dfa09571 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.note</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 67ef18d8387977316e3e6dd404465a8a7d7ee61a..955d37c1372c6bfced0c8eb5948798b385169670 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.note</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 577eca4dab119e5f7c1c09d509f6e0b5595b6c0a..cd629f84b73eae5f1d12c63449c2cb21fe9d8d09 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.note</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
     <name>services.note.jaxb</name>\r
     \r
     <dependencies>\r
-        <dependency>\r
-            <groupId>com.sun.xml.bind</groupId>\r
-            <artifactId>jaxb-impl</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2-commons</groupId>\r
-            <artifactId>property-listener-injector</artifactId>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>org.jvnet.jaxb2_commons</groupId>\r
-            <artifactId>runtime</artifactId>\r
-        </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.jaxb</artifactId>\r
index 10efc2a29ec630ae748912b2b90964735e5cda19..dab7f915d40048b8cda6d1060d32bf8a7fd65d32 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 03c8e77ee5f23a8ac0624c99d382bff1fb219dab..722993f173df8322f2b169e12dd967075e9f3138 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.note</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index c9150bb00c64caa842653a17066db2a234d4cbbb..364a5e930e6138b5eeff87596a811d61ebd11c26 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 1daa752fbba9ab1ad7c9b76136be813f84f15f44..e3bcf1bb277c0066cffddf94a4bd6f7d096ee76c 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
        </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 b8fe2d3ab7422429facdadb2ffe6ff7d7caf8601..a1c638b3ff3a27339257b2878d8c31c6172d76a5 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.objectexit.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index b7ea2f3e99b2811de04f8ec851b8cdfdd32b1023..cad678159118c821365f51d87b229ab0ff54a7e1 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.objectexit</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 9df823f6ba22673e0e8f34e5ce0b4c7ad6ff8161..0937dcb6637e3667fda2cb9ecd3f5114130b549d 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.objectexit</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 56d9b6c12b346188210eadbc924f488ae314ca50..196f1134ef1db5722acf5cb820bcbbc296a786e4 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.objectexit</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.objectexit.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 20a57a45dbef41784be88d1585e0a977a8fa44df..b6b8ee822ae3f57e341c5cadfab834af99dcf6d9 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 5bf23fb14c187c34beddbed2217f0c7cb1dd212e..4e48276f9b4d1d397e953113dd21d86ae424356b 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.objectexit</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
     </dependencies>
     
     <build>
index a1651b42af4938172540dcd1b18352a22b44d95e..61004388d4a6b598edccc881112dab6ade148566 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 6e3bacab052cdd71b8ac52c113efc02c5c740561..9a7019cdc3c096594a633ccbc966e38e47979c50 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 753681969874689edea2e8f911174eda25a70f6f..8aea6ec2099df0850daf7ee4d4bc6ef166f13491 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.organization.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 8bbdd72b6a278355fc321eae4b47730b309b31d1..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_orgauthorities.xhtml">
-      breadcrumb=title.orgauthorities
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthorities</from-outcome>
-      <to-view-id>/view_orgauthorities.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthority</from-outcome>
-      <to-view-id>/view_orgauthority.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 5d85842a29dea0d4a36556fd568ed87a02b2b223..b07efc75a59be68a1d304daba74faefb0466cadf 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.organization</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 7d1b314c6fc63a84a6815ea1d395377bdac3bcf3..179af5ae4179acf798d9aecbf84116d141ddcccb 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.organization</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 4da8fc09c282cd3c84c5f9c659c2113e7fc84778..75ed734f2a9f04298a3d21ecf8b7048f06353233 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.organization</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             <artifactId>org.collectionspace.services.common</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 5acef8dc3e67a4e5a273a31c21b4c65ba9a57b7c..0757d61e715b0f10704c519e00399cf9c267aee9 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 9c027e0c81d59a2bd6b729cc5aea29e7fec73dd6..39c03b7d0972a35fd9b04ffbb1809c4b81e687af 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index ba9f4def13bf91717656fdc43c6caa9a9a5699d6..fd7852ee2560d9472c2254720e24c8bfd537066b 100644 (file)
@@ -4,7 +4,7 @@
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.organization.client.samples</artifactId>\r
     <packaging>pom</packaging>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     <name>organization.client.samples</name>\r
 \r
     <modules>\r
index 23283eb6c16475555f30bd5df6acf3cbb816f1e3..5a7ff6e2a64a01ea70501298eaf4b72704a5dfac 100644 (file)
@@ -5,7 +5,7 @@
        <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>\r
        <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>\r
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+       <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
-\r
index 000d20ea88b913fe52beebcedd007b770163a390..ba16f0f4c40836e71fb329f3e71102962823c8c8 100644 (file)
@@ -1,19 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-  <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
-      <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.maven.ide.eclipse.maven2Nature</nature>\r
-    <nature>org.eclipse.jdt.core.javanature</nature>\r
-  </natures>\r
+       <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
+                       <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
+                       </arguments>\r
+               </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
+       </natures>\r
 </projectDescription>\r
index c1068ea14d64ccdb8dce86d7111dcdbd3c2da685..a9c4c30102aadb94829911cef4d1f61b924847d0 100644 (file)
@@ -4,7 +4,7 @@
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.organization.client.sample</artifactId>\r
     <packaging>jar</packaging>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     <name>organization.client.sample</name>\r
     \r
     <dependencies>\r
index 55924d0e9f990fca2b4874db9cb2b32caea45d0f..f2bf26f04f4f6042a674b0abaea1168c0d4bd637 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.organization</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index eba3c0275a00969df893025933a32351a4f24cc0..700322e21346ccb90ca55c4caf9492caa16e1440 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index a84a0da908bd136c4362e9a6e024cdd112838a3c..0f8161b793882906aed3c2e91e2c41f79115ef30 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 1ba38aaf7bf5c6447179945d3ec8cf51ae8870d0..fe78afb83585efd18b71d954758d8dff2a0ba806 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.person.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 8bbdd72b6a278355fc321eae4b47730b309b31d1..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_orgauthorities.xhtml">
-      breadcrumb=title.orgauthorities
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthorities</from-outcome>
-      <to-view-id>/view_orgauthorities.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthority</from-outcome>
-      <to-view-id>/view_orgauthority.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 6fc258d410a6b3b61852899ebdb1d7082a26e9de..4fcf814c702cd00cb72a134e0dd1ec1e6de435b1 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.person</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 8942b0473b050c082dd39548437dbf4b0dee38cf..e8968b02af01dca6397196a2fa9fd11a80fb5771 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.person</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index ecae7445809f41420858b27976fbb3228e83f6a4..9b1ff74139f68b91c15dd324dd7bda20039de7ad 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.person</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <artifactId>org.collectionspace.services.common</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index ee3dee3899b1f15a395e2ea2aecf7219efe05fa8..888f4da6efab3ae45b22554e2cc1ac32dd8d8211 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index c37a73f39a9513349c34af2ec3f91b004b5c02b5..839e940bbd9d469774620c68c25daf31ea9d57e2 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 199bbbbdbabba5e7cbae0d055b2ea2d981077cfc..68da5cd86f3e17eec825062ff1acba8a13814cb3 100644 (file)
@@ -3,6 +3,7 @@
        <classpathentry kind="src" output="target/classes" path="src/main/java"/>\r
        <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>\r
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+       <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
index 734c9410252455ae564573a37431a505d354bde4..7c3143f9401d558f71fe9f1558313cb3fd92ff79 100644 (file)
@@ -1,20 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-  <name>org.collectionspace.services.person.client.sample</name>\r
+       <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
-      <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.maven.ide.eclipse.maven2Nature</nature>\r
-    <nature>org.eclipse.jdt.core.javanature</nature>\r
-  </natures>\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
+                       </arguments>\r
+               </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
+       </natures>\r
 </projectDescription>\r
index 9ab3708fb64384ec8716d2ac5ae449459542ef18..1ca5bb9746dcea70f0827881e7d851d9a61475e2 100644 (file)
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.person.jaxb</artifactId>\r
-            <version>1.12-SNAPSHOT</version>\r
+            <version>1.14-SNAPSHOT</version>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.client</artifactId>\r
-            <version>1.12-SNAPSHOT</version>\r
+            <version>1.14-SNAPSHOT</version>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.person.client</artifactId>\r
-            <version>1.12-SNAPSHOT</version>\r
+            <version>1.14-SNAPSHOT</version>\r
         </dependency>\r
     </dependencies>\r
     \r
index d2c37e1f11430dde66caf75a7c4e6c30c5da7961..1c22ab07f5b4eb0a7ffc5014dc9674959c549572 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.person</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index 95eb77d5c6ab1afcf30d224e4ee2fd34e73f6c64..c7c4c1b444045613bfebb99b195108500ef7303f 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
     <name>services.main</name>
     <packaging>pom</packaging>
 
+       <properties>
+               <annox.version>0.5.0</annox.version>
+               <jaxb2-basics.version>0.6.2</jaxb2-basics.version>
+               <maven-jaxb2-plugin.version>0.8.0</maven-jaxb2-plugin.version>
+               <jaxb.version>2.2.4-1</jaxb.version>
+       </properties>
+
     <!--
     !!!!!PLEASE READ!!!!!
     Make sure you add modules below in the order of dependency. Security and
           <artifactId>properties-maven-plugin</artifactId>
           <version>1.0-alpha-2</version>
         </plugin>
-                                                               
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-site-plugin</artifactId>
                 <plugin>
                     <groupId>org.jvnet.hyperjaxb3</groupId>
                     <artifactId>maven-hyperjaxb3-plugin</artifactId>
-                    <version>0.5.4</version>
+                    <version>0.5.6</version>
                     <executions>
                         <execution>
                             <goals>
                         </execution>
                     </executions>
                     <configuration>
+                       <bindingIncludes>
+                                       <include>bindings.xjb</include>
+                               </bindingIncludes>
                         <extension>true</extension>
                         <jdk5>true</jdk5>
                         <ejb3>false</ejb3>
                         <persistenceUnitName>garbage</persistenceUnitName>
                     </configuration>
                 </plugin>
-                <plugin>
-                    <groupId>org.jvnet.jaxb2.maven2</groupId>
-                    <artifactId>maven-jaxb2-plugin</artifactId>
-                                       <version>0.7.3</version>
-                    <executions>
-                        <execution>
-                            <goals>
-                                <goal>generate</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                    <dependencies>
-                        <!-- javax.activation.DataSource provider is required by spec -->
-                        <dependency>
-                            <groupId>javax.activation</groupId>
-                            <artifactId>activation</artifactId>
-                            <version>1.1</version>
-                        </dependency>
-                    </dependencies>
-                    <configuration>
-                        <args>
-                            <arg>-XtoString</arg>
-                            <arg>-Xinject-listener-code</arg>
-
-                            <!-- <arg>-Xcollection-setter-injector</arg>
-                                <arg>-Xfluent-api</arg> -->
-                        </args>
-                        <plugins>
-                            <plugin>
-                                <groupId>org.jvnet.jaxb2_commons</groupId>
-                                <artifactId>basic</artifactId>
-                                <version>0.4.1</version>
-                            </plugin>
-                            <plugin>
-                                <groupId>org.jvnet.jaxb2-commons</groupId>
-                                <artifactId>property-listener-injector</artifactId>
-                                <version>1.0</version>
-                            </plugin>
-                        </plugins>
-                    </configuration>
-                </plugin>
+                               <plugin>
+                                       <groupId>org.jvnet.jaxb2.maven2</groupId>
+                                       <artifactId>maven-jaxb2-plugin</artifactId>
+                                       <version>${maven-jaxb2-plugin.version}</version>
+                                       <executions>
+                                               <execution>
+                                                       <goals>
+                                                               <goal>generate</goal>
+                                                       </goals>
+                                                       <configuration>
+                                                               <extension>true</extension>
+                                                               <bindingIncludes>
+                                                       <include>xbindings.xjb</include>
+                                               </bindingIncludes>
+                                                               <args>
+                                                                       <arg>-Xannotate</arg> 
+                                                                       <arg>-verbose</arg> 
+                                                                       <arg>-XtoString</arg>
+                                                                       <arg>-Xequals</arg>
+                                                                       <arg>-XhashCode</arg>
+                                                                       <arg>-Xcopyable</arg>
+                                                               </args>
+                                                               <plugins>
+                                                                       <plugin> 
+                                                                         <groupId>javax.xml.bind</groupId>
+                                                                         <artifactId>jaxb-api</artifactId>
+                                                                         <version>2.1</version>
+                                    </plugin> 
+                                                                       <plugin> 
+                                           <groupId>org.jvnet.jaxb2_commons</groupId> 
+                                           <artifactId>jaxb2-basics-annotate</artifactId> 
+                                                                               <version>${jaxb2-basics.version}</version>
+                                    </plugin> 
+                                                                       <plugin>
+                                                                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                                                                               <artifactId>jaxb2-basics</artifactId>
+                                                                               <version>${jaxb2-basics.version}</version>
+                                                                       </plugin>
+                                                               </plugins>
+                                                       </configuration>
+                                               </execution>
+                                       </executions>
+                               </plugin>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>exec-maven-plugin</artifactId>
                 <scope>test</scope>
                 <classifier>jdk15</classifier>
             </dependency>
-            <dependency>
-                <groupId>org.jvnet.jaxb2_commons</groupId>
-                <artifactId>basic</artifactId>
-                <version>0.4.1</version>
-            </dependency>
+                       <dependency>
+                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                               <artifactId>jaxb2-basics</artifactId>
+                               <version>${jaxb2-basics.version}</version>
+                       </dependency>
             <dependency>
                 <groupId>org.jvnet.jaxb2-commons</groupId>
                 <artifactId>property-listener-injector</artifactId>
                 <version>1.0</version>
             </dependency>
-            <dependency>
-                <groupId>org.jvnet.jaxb2_commons</groupId>
-                <artifactId>runtime</artifactId>
-                <version>0.4.1.4</version>
-            </dependency>
+                       <dependency>
+                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                               <artifactId>jaxb2-basics-runtime</artifactId>
+                               <version>${jaxb2-basics.version}</version>
+                       </dependency>
             <dependency>
                 <groupId>org.jboss.resteasy</groupId>
                 <artifactId>jaxrs-api</artifactId>
-                <version>1.2.1.GA</version>
+                <version>2.2.2.GA</version>
             </dependency>
             <dependency>
                 <groupId>org.jboss.resteasy</groupId>
                 <artifactId>resteasy-jaxrs</artifactId>
-                <version>1.2.1.GA</version>
+                <version>2.2.2.GA</version>
             </dependency>
             <dependency>
                 <groupId>org.jboss.resteasy</groupId>
                 <artifactId>resteasy-jaxb-provider</artifactId>
-                <version>1.2.1.GA</version>
+                <version>2.2.2.GA</version>
             </dependency>
             <dependency>
                 <groupId>org.jboss.resteasy</groupId>
                 <artifactId>resteasy-multipart-provider</artifactId>
-                <version>1.2.1.GA</version>
+                <version>2.2.2.GA</version>
             </dependency>
             <dependency>
                 <groupId>commons-httpclient</groupId>
                 <artifactId>commons-cli</artifactId>
                 <version>1.2</version>
             </dependency>
-            <dependency>
-                <groupId>com.sun.xml.bind</groupId>
-                <artifactId>jaxb-impl</artifactId>
-                <version>2.1.9</version>
-            </dependency>
+                       <dependency>
+                               <groupId>com.sun.xml.bind</groupId>
+                               <artifactId>jaxb-impl</artifactId>
+                               <version>${jaxb.version}</version>
+                       </dependency>
             <dependency>
                 <groupId>javax.persistence</groupId>
                 <artifactId>persistence-api</artifactId>
                 <groupId>org.jvnet.hyperjaxb3</groupId>
                 <!-- for time type adapters -->
                 <artifactId>hyperjaxb3-ejb-runtime</artifactId>
-                <version>0.5.4</version>
+                <version>0.5.6</version>
             </dependency>
             <dependency>
                 <groupId>mysql</groupId>
index a39a88e4f5741455eff1f5ee620fb22c43384c4c..6415b4785654419e69dc66ea2baf2cddd6a51407 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 5ed454bdf041887380675b7c38db89a632f4ef6c..dc670eb8cc3ebf5d03b7790a65348cb1c653b08b 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 66cad84246375ca37463514282112b6d1210cbf2..a9307fd8d0383b0bb83ee2e83fb1513f4e941288 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.query</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index c298d0a8715ac12b49bd66f7630ee03371f1ca77..ae65ddee2ae3da6dac656a99d7402637d1e1edfd 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index ff766b70bc052b72c866b8ed2b9c52c8a6818a88..46252a4a1a658aec1e4e134b3bcebf5b0dee1b43 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 4de538f7376ae604a65a3278ddb33fd03b653a81..f14841a34beffa66535f7d31e12d06dcb274030f 100644 (file)
@@ -4,7 +4,7 @@
   <parent>\r
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.relation.3rdparty</artifactId>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
   </parent>\r
 \r
   <modelVersion>4.0.0</modelVersion>\r
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 1159d8acb04998c3f36475cd4070a47e09b95f18..cb931b2e3099e08869e6883e55323039b713ed84 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.relation</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 65c6744f63d124c268c32821b0a2513c17b3f556..24d12ede8fe181798cd7de946bd7162c776009a9 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.relation</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 206ca79f7d79bb10747e1a36f4291526ad4b81b2..fed35bf13a632dc6ace9a091fbaf0b5fd5303bae 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 651c4395231aaf00810d8ffbffbc0b49532d904b..b0ce0195fbd2efa66502fc2408645cce65559111 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.relation</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index 1b84b0e195e71176a20e4f695f838235a6f7728a..84a08b67191f9c27a8f72ec43d18c07527d0ae19 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index dd33e63c21d98555290b6d5e4b2120676789c3f3..58071d7c382921da11138232b2c4350c496005a6 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index c5c92c05ea701080d2ea69e8e19bde92015ba84a..096db11ce5e3faa90a3a9b87313897c37a8109df 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.report.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 6a3845f0205e15feb4014b41a5ecf8f4aee9e815..2ce9d9bb567ce2ae2430fd4f25ec936e2304ac76 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.report</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index 2f899c33d86b938d808e8003dc1e66d065ecac8a..4c4502f852176f48c60a81abbe13e1572b8fd139 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.report</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index e85d8b1c93ff42f85242d703c041f69bf2ba3e03..041ab77402bc634002bb2493957c5b29806c2dbb 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.report</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.report.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 67fd1cb00518d695fc333df9f07a4d9e5fb6895b..5c7f057482a66706fde1dcc1eade929b139b4906 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index ab8702d248e4b82ebc83dacb1e8dd5ce0e9abda4..f7a425b6d8b4840c028028c66ed637fd694206dd 100644 (file)
@@ -4,7 +4,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.report</artifactId>        \r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
     </dependencies>\r
     \r
     <build>\r
index 9945742b9d2e47760e4ae8bac7f75e15f45309b4..ea2efeb80920d301e3d95b9bc72ec07b30dbf984 100644 (file)
@@ -23,6 +23,8 @@ import java.sql.SQLException;
 import java.sql.Statement;\r
 import java.util.List;\r
 \r
+import javax.sql.DataSource;\r
+\r
 import org.collectionspace.services.common.api.Tools;\r
 import org.collectionspace.services.common.service.ServiceBindingType;\r
 import org.collectionspace.services.common.init.IInitHandler;\r
@@ -54,8 +56,10 @@ 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(ServiceBindingType sbt, List<Field> fields, \r
-                       List<Property> properties) throws Exception {\r
+    public void onRepositoryInitialized(DataSource dataSource,\r
+               ServiceBindingType sbt, \r
+               List<Field> fields, \r
+               List<Property> properties) throws Exception {\r
         //Check for existing privileges, and if not there, grant them\r
        for(Property prop:properties) {\r
                if(READ_ROLE_NAME_KEY.equals(prop.getKey())) {\r
@@ -81,7 +85,7 @@ public class ReportPostInitHandler extends InitHandler implements IInitHandler {
                // Check for rights on report_common, and infer rights from that\r
                sql = "SELECT has_table_privilege('"+readerRoleName\r
                        +"', '"+ReportConstants.DB_COMMON_PART_TABLE_NAME+"', 'SELECT')";\r
-                conn = JDBCTools.getConnection(JDBCTools.NUXEO_REPOSITORY_NAME);\r
+                conn = JDBCTools.getConnection(dataSource);\r
                 stmt = conn.createStatement();\r
                 ResultSet rs = stmt.executeQuery(sql);\r
                 if(rs.next()) {\r
index f987c8981b57a1610ef88ea8c4717d8aee49fd64..9939a851515491a9f62661d8f82cccd7b49b9c9d 100644 (file)
@@ -5,7 +5,7 @@
     <artifactId>org.collectionspace.services.sdk</artifactId>\r
     <packaging>pom</packaging>\r
     <name>services.sdk</name>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     \r
     <distributionManagement>\r
         <repository>\r
index eb1788061cda18df0b7ea3f0154a84bdd66a4f4b..2a206afca0e2f8eb0bbf5a870611a50257887eab 100644 (file)
@@ -5,13 +5,13 @@
     <artifactId>org.collectionspace.services.client.sample</artifactId>\r
     <packaging>jar</packaging>\r
     <name>client.sample</name>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     \r
     <dependencies>\r
         <dependency>\r
             <groupId>org.collectionspace.services</groupId>\r
             <artifactId>org.collectionspace.services.collectionobject.client</artifactId>\r
-            <version>1.12-SNAPSHOT</version>\r
+            <version>1.14-SNAPSHOT</version>\r
         </dependency>\r
         <dependency>\r
             <groupId>org.slf4j</groupId>\r
index c6a3b2e8bf0060232e26e3f896873ccee3bbe381..a51bbe9e74fadb250a1db282c4f5b6135cbd6372 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 2f2876ea0f22408b06c2b00ce230bd88106ec42e..7df244452519a6a7b203b6c663745cbd4fb77d3d 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.security</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index 9828b1286881f7cce64ccddc79c7a6a18938f74c..ec73d0cd7714e5fe3dc2c26d1bafb3809c4b93f6 100644 (file)
@@ -37,11 +37,11 @@ import javax.ws.rs.core.Response;
 import org.collectionspace.services.account.AccountsCommon;
 import org.collectionspace.services.authorization.AccountRole;
 import org.collectionspace.services.authorization.AccountValue;
-import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.EffectType;
+import org.collectionspace.services.authorization.perms.ActionType;
+import org.collectionspace.services.authorization.perms.EffectType;
 
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
index f2f02f90a7fbdd18457b89a409063a3fe7c58b89..c24180d5d1d3f5d4e1541c824d355d461f9ec914 100644 (file)
@@ -37,11 +37,11 @@ import javax.ws.rs.core.Response;
 import org.collectionspace.services.account.AccountsCommon;
 import org.collectionspace.services.authorization.AccountRole;
 import org.collectionspace.services.authorization.AccountValue;
-import org.collectionspace.services.authorization.ActionType;
-import org.collectionspace.services.authorization.EffectType;
+import org.collectionspace.services.authorization.perms.ActionType;
+import org.collectionspace.services.authorization.perms.EffectType;
 
-import org.collectionspace.services.authorization.Permission;
-import org.collectionspace.services.authorization.PermissionAction;
+import org.collectionspace.services.authorization.perms.Permission;
+import org.collectionspace.services.authorization.perms.PermissionAction;
 import org.collectionspace.services.authorization.PermissionRole;
 import org.collectionspace.services.authorization.PermissionValue;
 import org.collectionspace.services.authorization.Role;
index 376a066746273b7a74ef8db9d5c064424816a599..e97f33731930a471da73c40855ab391c878b96ba 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
index c7ad9fa72ecd9edf87fa3b11448f2dd222de58a2..555446b5999a53e397d26225a353f877982b44f9 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.taxonomy.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 8bbdd72b6a278355fc321eae4b47730b309b31d1..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_orgauthorities.xhtml">
-      breadcrumb=title.orgauthorities
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthorities</from-outcome>
-      <to-view-id>/view_orgauthorities.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_orgauthority</from-outcome>
-      <to-view-id>/view_orgauthority.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 1d59953cbcd38ddb10af259c310b62739ef20cda..7726db38614cace374a5116c8a7546777ecc91e5 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.taxonomy</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 771993f9c2fff7d78f64fdb465b1b552f679c5bb..5d66beb0ac329fe6ed2ae4daca956925dec27280 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.taxonomy</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 9072d075107377310d7faa1f04b372296acf450e..7e46cd942d8f90553b17e7ff56444295832a1d4e 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.taxonomy</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <artifactId>org.collectionspace.services.common</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 2885bccc5d74781f8039817fb930fadb184f1f75..ba3332726d22b7533ccb64862183b9b8623538a3 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index cd7cfd6f0272642271d906c331fad0b6a8a8181d..84c059467f8cec78074461c0e3fce01f3cfeb38f 100644 (file)
@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.taxonomy</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
             </exclusions>
         </dependency>
 
-        <dependency>
-            <groupId>org.restlet</groupId>
-            <artifactId>org.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.noelios.restlet</groupId>
-            <artifactId>com.noelios.restlet</artifactId>
-            <version>1.0.7</version>
-        </dependency>
-
     </dependencies>
     
     <build>
index 3832c86ced6f7851014c0992d64c54c3ef5f5300..7bc666d00c12fa9e14c9db14e0d660e58af7cdc0 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 82b5d2ae72cffd1ad6f7c64a28eb6b4b8f31f9d4..a06eb8da9b1ee1d56ba4f3e58c3c6b5d39cf164f 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index fa9617dc9b56813a966e690fd02712d898f3338c..72936fb2fe370ceb7d844106847bff2ae451ed89 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.vocabulary.3rdparty</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 88b94ffd1dba31e899fd8dc1abd291fb1b8550cc..270abbd5f94b6ef70ed7b24956b6ef7701815222 100644 (file)
@@ -3,406 +3,8 @@
 
   <extension target="application#MODULE">
     <module>
-      <ejb>${bundle.fileName}</ejb>
+      <java>${bundle.fileName}</java>
     </module>
-
-    <module>
-      <web>
-        <web-uri>nuxeo.war</web-uri>
-        <context-root>/nuxeo</context-root>
-      </web>
-    </module>
-  </extension>
-
-  <!-- uncomment that to enable tomcat based auth
-    <extension target="web#LOGIN-CONFIG">
-    <login-config>
-    <auth-method>FORM</auth-method>
-    <realm-name>nuxeo.ecm</realm-name>
-    <form-login-config>
-    <form-login-page>/login.jsp</form-login-page>
-    <form-error-page>/login.jsp?loginFailed=true</form-error-page>
-    </form-login-config>
-    </login-config>
-    </extension>
-  -->
-
-  <extension target="web#FILTER-MAPPING">
-
-    <!-- Seam Context Filter is declared in org.nuxeo.ecm.platform.ui.web
-      deployment fragment -->
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/ws/FileManageWS</url-pattern>
-    </filter-mapping>
-
-    <filter-mapping>
-      <filter-name>Seam Context Filter</filter-name>
-      <url-pattern>/DocumentManagerWS</url-pattern>
-    </filter-mapping>
-  </extension>
-
-  <extension target="web#SERVLET">
-  </extension>
-
-  <extension target="web#SERVLET-MAPPING">
-  </extension>
-
-  <extension target="pages#PAGES">
-    <!-- This calls a method which load the Workspace logo -->
-    <page view-id="/showLogo.xhtml" action="#{logoHelper.getLogo}"/>
-
-    <!-- Bind URL to the Document URL resolver-->
-    <page view-id="/getDocument.xhtml"
-        action="#{navigationContext.navigateToURL}">
-    </page>
-
-    <page view-id="/nxliveedit.xhtml" action="#{liveEditHelper.getBootstrap()}"/>
-
-    <!-- Bind URL to the Parallele conversation Document URL resolver-->
-    <page view-id="/parallele.xhtml"
-        action="#{paralleleNavigationHelper.navigateToURL}">
-    </page>
-
-    <!-- Post login and 'home' view handler -->
-    <page view-id="/nxstartup.xhtml"
-        action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'view')}"/>
-
-    <!-- To redirect to the user dashboard instead, use instead:
-
-      <page view-id="/nxstartup.xhtml"
-      action="#{startupHelper.initDomainAndFindStartupPage('Default domain', 'user_dashboard')}" />
-    -->
-
-    <!--  config for workspace management
-      = give a description for each viewId
-    -->
-
-    <page view-id="/view_domains.xhtml">
-      #{currentServerLocation.name}/#{currentTabAction.label}
-    </page>
-
-    <page view-id="/select_document_type.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/create_document.faces.xhtml">
-      Create new document in #{currentDocument.name}
-    </page>
-
-    <page view-id="/user_dashboard.xhtml">
-      breadcrumb=command.user_dashboard
-    </page>
-
-    <page view-id="/view_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_many_users.xhtml">
-      breadcrumb=command.manageMembers
-    </page>
-
-    <page view-id="/view_vocabularies.xhtml">
-      breadcrumb=title.vocabularies
-    </page>
-
-    <page view-id="/search/search_form.xhtml">
-      breadcrumb=command.advancedSearch
-    </page>
-  </extension>
-
-  <extension target="faces-config#APPLICATION">
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>en_GB</supported-locale>
-      <supported-locale>en_US</supported-locale>
-      <supported-locale>fr</supported-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>es</supported-locale>
-      <supported-locale>it</supported-locale>
-      <supported-locale>ar</supported-locale>
-      <supported-locale>ru</supported-locale>
-      <supported-locale>ja</supported-locale>
-      <supported-locale>vn</supported-locale>
-    </locale-config>
-
-    <message-bundle>messages</message-bundle>
-  </extension>
-
-  <extension target="components#PAGEFLOW">
-    <value>config/addWorkspace.jpdl.xml</value>
-  </extension>
-
-  <extension target="faces-config#NAVIGATION">
-    <!-- generic pages -->
-    <navigation-case>
-      <from-outcome>generic_error_page</from-outcome>
-      <to-view-id>/generic_error_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>generic_message_page</from-outcome>
-      <to-view-id>/generic_message_page.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>home</from-outcome>
-      <to-view-id>/nxstartup.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_login</from-outcome>
-      <to-view-id>/login.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_logout</from-outcome>
-      <to-view-id>/logout.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_servers</from-outcome>
-      <to-view-id>/view_servers.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- pages for document actions -->
-
-    <navigation-case>
-      <from-outcome>view_domains</from-outcome>
-      <to-view-id>/view_domains.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_document_type</from-outcome>
-      <to-view-id>/select_document_type.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_document</from-outcome>
-      <to-view-id>/create_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_document</from-outcome>
-      <to-view-id>/edit_document.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_documents</from-outcome>
-      <to-view-id>/view_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_file</from-outcome>
-      <to-view-id>/create_file.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_workspace_wizard</from-outcome>
-      <to-view-id>/createWorkspaceWizard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>send_email</from-outcome>
-      <to-view-id>/document_email.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use view_documents instead -->
-    <navigation-case>
-      <from-outcome>view_workspaces</from-outcome>
-      <to-view-id>/view_workspaces.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_domain</from-outcome>
-      <to-view-id>/create_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_domain</from-outcome>
-      <to-view-id>/edit_domain.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use create_document instead -->
-    <navigation-case>
-      <from-outcome>create_workspace</from-outcome>
-      <to-view-id>/create_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- AT: BBB, use edit_document instead -->
-    <navigation-case>
-      <from-outcome>edit_workspace</from-outcome>
-      <to-view-id>/edit_workspace.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- users ang groups -->
-
-    <navigation-case>
-      <from-outcome>members_management</from-outcome>
-      <to-view-id>/members_management.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_users</from-outcome>
-      <to-view-id>/view_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_many_users</from-outcome>
-      <to-view-id>/view_many_users.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user</from-outcome>
-      <to-view-id>/edit_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_user_password</from-outcome>
-      <to-view-id>/edit_user_password.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_user</from-outcome>
-      <to-view-id>/view_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_user</from-outcome>
-      <to-view-id>/create_user.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_groups</from-outcome>
-      <to-view-id>/view_groups.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_group</from-outcome>
-      <to-view-id>/view_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>edit_group</from-outcome>
-      <to-view-id>/edit_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>create_group</from-outcome>
-      <to-view-id>/create_group.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabularies</from-outcome>
-      <to-view-id>/view_vocabularies.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>view_vocabulary</from-outcome>
-      <to-view-id>/view_vocabulary.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- search -->
-
-    <navigation-case>
-      <from-outcome>search_form</from-outcome>
-      <to-view-id>/search/search_form.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_nxql</from-outcome>
-      <to-view-id>/search/search_results_nxql.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_advanced</from-outcome>
-      <to-view-id>
-        /search/search_results_advanced.xhtml
-      </to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>search_results_simple</from-outcome>
-      <to-view-id>/search/search_results_simple.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <!-- miscellaneaous -->
-
-    <navigation-case>
-      <from-outcome>clipboard</from-outcome>
-      <to-view-id>/incl/clipboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>user_dashboard</from-outcome>
-      <to-view-id>/user_dashboard.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>select_workspace_template</from-outcome>
-      <to-view-id>/select_workspace_template.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>pdf_generation_error</from-outcome>
-      <to-view-id>/pdf_generation_error.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit</from-outcome>
-      <to-view-id>/massedit_documents.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
-
-    <navigation-case>
-      <from-outcome>mass_edit_confirm</from-outcome>
-      <to-view-id>/massedit_documents_preview.xhtml</to-view-id>
-      <redirect/>
-    </navigation-case>
   </extension>
-
+  
 </fragment>
-
index 302a3a1fc9791a3acf7a699b4a78383277faba13..45d1acc001479ae16d5da0489d82743c6d2c00d9 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.vocabulary</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index cc5dca721ce5534d1eebfe4fd93c190073dbbc1c..c03b512ce879939ef0ee3478b45b987d65b175a5 100644 (file)
@@ -6,7 +6,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.vocabulary</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index df6336096da227a6d25037ede3c52b1a8ef445a3..dd6f9a98da43dad52a161196ba326b8db6206ea7 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.vocabulary</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
             <version>${project.version}</version>
         </dependency>
         <!-- External dependencies -->
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 642852793bdf2304a8fd5c82d6ae247ef651745a..062117f27a78f46f43b8a376a9bf58034060f94e 100644 (file)
@@ -5,7 +5,7 @@
     <parent>\r
         <artifactId>org.collectionspace.services.main</artifactId>\r
         <groupId>org.collectionspace.services</groupId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
 \r
     <modelVersion>4.0.0</modelVersion>\r
index cdab4365496077d74f08f3485b81d11563392531..474a7ee7755ee8a6912d9503f8605e3312dc8cc7 100644 (file)
                        <arguments>\r
                        </arguments>\r
                </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.m2e.core.maven2Builder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </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
        </natures>\r
index 425cd1620f3d44a6c3d1d8c43488a67552f09765..5a7ff6e2a64a01ea70501298eaf4b72704a5dfac 100644 (file)
@@ -5,6 +5,7 @@
        <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>\r
        <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>\r
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
+       <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
index 6e3522275c063f67772989e894b31dd27e473d26..86790550456a8f5c9b9e318a8218e87b09f3c21c 100644 (file)
@@ -1,17 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <projectDescription>\r
-  <name>org.collectionspace.services.vocabulary.client.sample</name>\r
-  <comment/>\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.maven.ide.eclipse.maven2Nature</nature>\r
-    <nature>org.eclipse.jdt.core.javanature</nature>\r
-  </natures>\r
-</projectDescription>
\ No newline at end of file
+       <name>org.collectionspace.services.vocabulary.client.sample</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
+                       </arguments>\r
+               </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
+       </natures>\r
+</projectDescription>\r
index 604e0c621e11b4ff0caea58b0c985726ac7a19b0..92bfde0f206142c64bf0691e43c7f55799de70e4 100644 (file)
@@ -4,7 +4,7 @@
     <groupId>org.collectionspace.services</groupId>\r
     <artifactId>org.collectionspace.services.vocabulary.client.sample</artifactId>\r
     <packaging>jar</packaging>\r
-    <version>1.12-SNAPSHOT</version>\r
+    <version>1.14-SNAPSHOT</version>\r
     <name>vocabulary.client.sample</name>\r
     \r
     <dependencies>\r
index 9940c99b700c4c54da86f825f292b23c274d69e2..81e5d25b16ca29489ede56997ad20f76a673a49b 100644 (file)
@@ -3,7 +3,7 @@
     <parent>\r
         <groupId>org.collectionspace.services</groupId>\r
         <artifactId>org.collectionspace.services.vocabulary</artifactId>\r
-        <version>1.12-SNAPSHOT</version>\r
+        <version>1.14-SNAPSHOT</version>\r
     </parent>\r
     \r
     <modelVersion>4.0.0</modelVersion>\r
             </exclusions>\r
         </dependency>\r
 \r
-        <dependency>\r
-            <groupId>org.restlet</groupId>\r
-            <artifactId>org.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet.ext.httpclient</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-        <dependency>\r
-            <groupId>com.noelios.restlet</groupId>\r
-            <artifactId>com.noelios.restlet</artifactId>\r
-            <version>1.0.7</version>\r
-        </dependency>\r
-\r
     </dependencies>\r
     \r
     <build>\r
index 70ab0199a68be26a2b3dd96281e4efca1359a7aa..a48aa36d581773888fc7c55b5c3e02e88bd85442 100644 (file)
@@ -5,7 +5,7 @@
        <parent>
                <groupId>org.collectionspace.services</groupId>
                <artifactId>org.collectionspace.services.workflow.3rdparty</artifactId>
-               <version>1.12-SNAPSHOT</version>
+               <version>1.14-SNAPSHOT</version>
        </parent>
     
     <groupId>org.collectionspace.services</groupId>
index 6e83a788096fdf9bb7d1bdb1d806af369d542207..4288c58d533130fc0398cae99112bf376b961fd2 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.workflow</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 13ff5827d127c12ff73e84ca52b516504f6f81bb..beae4104fce887c943f8ed7f14ecc1423ebba388 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.workflow</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
index 6e9807ff02ba62b3e5202356cc4975ba3c5a9580..5e7b8a01c31f448ff48c7fa9e1b9324604cd41dc 100644 (file)
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>org.collectionspace.services.workflow</artifactId>
         <groupId>org.collectionspace.services</groupId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
     <name>services.workflow.jaxb</name>
     
     <dependencies>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2-commons</groupId>
-            <artifactId>property-listener-injector</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.jvnet.jaxb2_commons</groupId>
-            <artifactId>runtime</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.collectionspace.services</groupId>
             <artifactId>org.collectionspace.services.jaxb</artifactId>
index 19183b4cb8d0f67a7826907af36bc6e210b0c9b1..74a4c44bc28166bc771d64d49a916357d5e9bfb3 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.main</artifactId>
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index c3e094f6f3397d1a911d36c9a320487b634113c9..17e72e71d3ea45ff7cb0d891e47e7638664589ee 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.collectionspace.services</groupId>
         <artifactId>org.collectionspace.services.workflow</artifactId>        
-        <version>1.12-SNAPSHOT</version>
+        <version>1.14-SNAPSHOT</version>
     </parent>
     
     <modelVersion>4.0.0</modelVersion>
index 315fd5971e6e881a9feccf4769cd67c33feb6bc4..d492d3026ae18570f578f211523ab66f3d74b4f7 100644 (file)
@@ -1,9 +1,7 @@
 # Configuration file for Nuxeo
 
-# See
-# https://doc.nuxeo.com/display/NXDOC/Configuring+Nuxeo+EP
-# and
-# https://doc.nuxeo.com/display/NXDOC/Available+Parameters+for+nuxeo.conf
+# See https://doc.nuxeo.com/x/PwA7
+# and https://doc.nuxeo.com/x/QQA7
 # for detailed information about the settings below
 
 # Java ---------------------------------------------------
 #JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
 JAVA_OPTS=-Xms512m -Xmx768m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8
 
-# Nuxeo default layout -------------------------------------------
-# Relative paths will be anchored at NUXEO_HOME
-#nuxeo.log.dir=log
-#nuxeo.pid.dir=bin
-#nuxeo.data.dir=data
+# Nuxeo launcher -----------------------------------------
+#launcher.start.max.wait = 300
+#launcher.override.java.tmpdir = true
 
-# Will regenerate config from these parameters each time the server is
-# restarted
+# Nuxeo layout -------------------------------------------
+# Relative paths will be anchored at NUXEO_HOME; here are not default but recommended values
+#nuxeo.log.dir=/var/log/nuxeo
+#nuxeo.pid.dir=/var/run
+#nuxeo.data.dir=/var/lib/nuxeo
+
+# Will regenerate config from these parameters each time the server is restarted
 nuxeo.force.generation=true
 
 # General parameters
@@ -29,10 +30,13 @@ nuxeo.templates=collectionspace_@DB@
 #nuxeo.url=http://localhost:8080/nuxeo
 #org.nuxeo.ecm.contextPath=/nuxeo
 
-#org.nuxeo.ecm.instance.name=
-#org.nuxeo.ecm.instance.description=
 #org.nuxeo.ecm.product.name=
 #org.nuxeo.ecm.product.version=
+
+# Defines the dashboard mode. There are 3 modes:
+# - auto: (default) let Nuxeo choose dashboard based on user browser capabilities
+# - old: force usage of the 'old' JSF based dashboard for all users
+# - opensocial: force usage of the new OpenSocial based dashboard for all users
 #org.nuxeo.ecm.webapp.dashboard.mode=
 
 # Database configuration
@@ -43,34 +47,66 @@ nuxeo.db.password=@NUXEO_PW@
 #nuxeo.db.port=
 #nuxeo.db.min-pool-size=
 #nuxeo.db.max-pool-size=
-#nuxeo.vcs.min-pool-size= 
+#nuxeo.vcs.min-pool-size=
 #nuxeo.vcs.max-pool-size=
 
 # Mail settings (for notifications)
 #nuxeo.notification.eMailSubjectPrefix="[Nuxeo]"
 #mail.smtp.host=
 #mail.smtp.port=
-#mail.smtp.auth=        
+#mail.smtp.auth=
 #mail.smtp.username=
-#mail.smtp.password=    
+#mail.smtp.password=
 #mail.from=
 
 #mailservice.user=
 #mailservice.password=
-#mail.store.protocol= 
+#mail.store.protocol=
 #mail.transport.protocol=
-#mail.user= 
+#mail.user=
 #mail.pop3.host=
 #mail.debug=
 
+# OOo server config
+#jod.connection.protocol=SOCKET
+#jod.max.tasks.per.process=
+#jod.task.execution.timeout=
+#jod.task.queue.timeout=
+#jod.office.home=
+#jod.jpipe.lib.path=
+#jod.template.profile.dir=
+
 # OpenSocial settings
+#opensocial.gadgets.embeddedServer=
 #opensocial.gadgets.host=
-#opensocial.gadgets.port= 
+#opensocial.gadgets.port=
+#opensocial.gadgets.path=
 #opensocial.proxy.proxySet=
 #opensocial.proxy.proxyHost=
 #opensocial.proxy.proxyPort=
 #opensocial.proxy.user=
 #opensocial.proxy.password=
+#opensocial.trusted.hosts=
+
+# Encoding of the zip entries filename
+#zip.entry.encoding=ascii
+
+# JSF facelets
+# When a page is requested, what interval in seconds should the compiler check
+# for changes.
+# If you don't want the compiler to check for changes once the page is
+# compiled, then use a value of -1.
+# Setting a low refresh period helps during development to be able to edit
+# pages in a running application.
+#facelets.REFRESH_PERIOD=2
+
+# LiveEdit auto-versioning will minor version if set to minor
+#org.nuxeo.ecm.platform.liveedit.autoversioning=minor
+
+# Clustering settings
+#repository.clustering.enabled=false
+#repository.clustering.delay=1000
+# If clustering is activated, set repository.binary.store=/path/to/some/shared/folder/for/binaries
 
 ## More JVM options ------------------------------------------
 
@@ -85,11 +121,11 @@ nuxeo.db.password=@NUXEO_PW@
 #JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote=true
 
 # Log Garbage Collector informations into a file
-#JAVA_OPTS=$JAVA_OPTS -Xloggc:$DIRNAME/../log/gc.log  -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
+#JAVA_OPTS=$JAVA_OPTS -Xloggc:${nuxeo.log.dir}/gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
 
-# Use BEA JROCKIT
-#JAVA_HOME=/usr/local/jrockit-R27.4.0-jdk1.5.0_12
-#JAVA_OPTS=-server -Xms$HEAP_SIZE -Xmx$HEAP_SIZE -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-# Enable Jrockit Mission control
-#JAVA_OPTS=$JAVA_OPTS -Xmanagement
+# Enable JMX
+#JAVA_OPTS=$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1089 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
 
+# Disable soft references
+#JAVA_OPTS=$JAVA_OPTS -XX:SoftRefLRUPolicyMSPerMB=0
+nuxeo.wizard.done=false