Aron Roberts [Wed, 21 Oct 2009 03:58:21 +0000 (03:58 +0000)]
CSPACE-419,CSPACE-543:Added Exceptions to client test framework, client tests. Removed most calls to verbose method from client tests, in favor of direct log statements. (Excluded committing similar changes to the VocabularyServiceTest for now, as one or more of its imported classes can't be found.)
Patrick Schmitz [Tue, 20 Oct 2009 05:32:04 +0000 (05:32 +0000)]
CSPACE-451 Finished up the functionality to support VocabularyItem sub-resource of Vocabularies. Reworked some of the ServiceContext and related classes to support alternate services when a sub-resource is involved.
Renamed the vocabularyitem schemas and related classes to consistently use all-lower letters to prevent problems with the repository layer.
Aron Roberts [Sat, 17 Oct 2009 00:38:44 +0000 (00:38 +0000)]
CSPACE-520,CSPACE-534: Removed IllegalArgumentExceptions from several core ID Service classes and tests. Minor streamlining of pretty printing code in IDResource, and removal of block to catch an unreachable condition.
Aron Roberts [Thu, 15 Oct 2009 20:14:21 +0000 (20:14 +0000)]
CSPACE-520, CSPACE-472: Edited descriptions of default ID Generator instances, to allow that field to serve as optional help text. Added priority field (not currently wired). Lists of instances are now returned in sorted order.
Aron Roberts [Wed, 14 Oct 2009 21:48:05 +0000 (21:48 +0000)]
CSPACE-526: Set keyword substitution properties to Revision and Date on all XSD files. Added keyword anchors to, and updated initial comments block in, all entity-related XSD files. Added keyword anchors to several non-entity XSD files, without otherwise changing those files.
Aron Roberts [Mon, 12 Oct 2009 22:17:09 +0000 (22:17 +0000)]
CSPACE-520: ID Service now supports GET requests for lists of ID Generators, in full or summary formats. Note: This commit changes the format of the id_generators table in the cspace database. ID Service tests will now fail until you run the create_id_generators.sql script to update that table; you can also optionally run the load_id_generators.sql script to load a set of initial data.
Richard Millet [Mon, 12 Oct 2009 20:16:09 +0000 (20:16 +0000)]
CSPACE-519: When setting payload headers, users of our Java Client API (including our unit tests) should not need to define and describe the service path component and "_common" conventions. These are now made available to Java Client API users via the client classes.
Aron Roberts [Fri, 9 Oct 2009 20:56:52 +0000 (20:56 +0000)]
NOJIRA: Also commented out invovocation of undeploy and dist targets for vocabulary service; deploy target was commented out in r834. Once vocabulary/build.xml and vocabulary/service/build.xml exist, and include these three targets, these lines should be uncommented.
Richard Millet [Fri, 9 Oct 2009 07:08:05 +0000 (07:08 +0000)]
CSPACE-504: Exchanged "_" for "-" in all Nuxeo-related entity services. Updated tests, service bindings, Nuxeo web layouts, etc. Ran and passed ALL tests.
Aron Roberts [Thu, 8 Oct 2009 19:59:41 +0000 (19:59 +0000)]
CSPACE-497: First primitive, stubbed pass at filtering a summary list of ID generator instances by ID generator role (e.g. accession numbers, intake numbers, loans-in numbers).
Richard Millet [Thu, 8 Oct 2009 04:49:58 +0000 (04:49 +0000)]
NOJIRA: Broken build. The Vocabulary service is missing pom.xml and build.xml files in some of its submodules. Once those files get committed, do a search for
"//FIXME: COLLECTIONSPACE1-SERVICESTRUNK1-22" in ALL source related files and uncomment the corresponding code.
Aron Roberts [Thu, 8 Oct 2009 03:13:09 +0000 (03:13 +0000)]
CSPACE-497: Added query parameters to REST call to return lists of ID generator instances, to specify whether a summary list or a full list is to be returned. This work is preparatory to filtering the list by ID role (aka type or contex).
Richard Millet [Wed, 7 Oct 2009 21:25:28 +0000 (21:25 +0000)]
NOJIRA: Removing (apparently redundant or unnecessary) dependency to to dom4j artifact. This depency was causing problems with Eclipse compilation classpaths.
Aron Roberts [Wed, 7 Oct 2009 02:08:10 +0000 (02:08 +0000)]
CSPACE-429: Additional minor code clean-up in the ID Service in preparation for work on CSPACE-497, adding type awareness. Continued selectively replacing inappropriate Java Exceptions with CSpace-defined Exception types.
Aron Roberts [Wed, 7 Oct 2009 00:11:44 +0000 (00:11 +0000)]
CSPACE-503: Changes made to the ID Service in the short-lived Hello Venus branch are merged back to the main trunk. Includes changes made in four commits: r762, r763, r765 and r768,
Sanjay Dalal [Tue, 6 Oct 2009 22:14:58 +0000 (22:14 +0000)]
CSPACE-492 removed forced connection on the nuxeo client while obtaining every session. reuses client and reauthenticates on every use.
tests: mvn test passes at the top level, still to test on linux platform.
Patrick Schmitz [Tue, 6 Oct 2009 21:18:06 +0000 (21:18 +0000)]
NOJIRA Changed the package of the test files to match their folder (put them in a test subpackage). Fixed scope of constant declaration in UUIDGeneratorPart to be public.
These changes should not affect functionality, but they correct build problems in eclipse (that maven ignores).
Sanjay Dalal [Fri, 2 Oct 2009 17:42:12 +0000 (17:42 +0000)]
CSPACE-60 introduced DocumentHandlerFactory interface that is implemented by all services
tests: mvn test passes at trunk/services level
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectHandlerFactory.java
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionHandlerFactory.java
A services/common/src/main/java/org/collectionspace/services/common/repository/DocumentHandlerFactory.java
D services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceHandlerFactory.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeHandlerFactory.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationHandlerFactory.java
CSPACE-418 relation entity schema is flatten
CSPACE-81,394 schema extension supported between consumer and service using multipart messaging, between service and repository using nuxeo repository. relationship service is refactored to use repository client and document handler. tenant binding updated for the relationship service. service context and document handler are further refactored to accommodate the use case of "local" service-service interaction and "remote" interaction. All remotely accessible services now use RemoteServiceContext and RemoteDocumentHandler. Removed unused RepresentationHandlers from all the services where applicable.
TEST: services/trunk mvn test passes
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/CollectionObjectResource.java
D services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectRepresenationHandler.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectDocumentModelHandler.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectHandlerFactory.java
M services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M services/JaxRsServiceProvider/pom.xml
M services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClientFactory.java
M services/common/src/main/java/org/collectionspace/services/common/repository/DocumentHandler.java
M services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceResource.java
M services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResource.java
A services/common/src/main/java/org/collectionspace/services/common/context/RemoteServiceContext.java
A + services/common/src/main/java/org/collectionspace/services/common/context/RemoteServiceContextImpl.java
M services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
D services/common/src/main/java/org/collectionspace/services/common/context/ServiceContextImpl.java
A services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
R services/common/src/main/java/org/collectionspace/services/common/relation/RelationJAXBSchema.java
R services/common/src/main/java/org/collectionspace/services/common/relation/IRelationsManager.java
D services/common/src/main/java/org/collectionspace/services/common/relation/RelationsManager.java
A services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationsUtils.java
A services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationConstants.java
D services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationsManagerNuxeoImpl.java
D services/common/src/main/java/org/collectionspace/services/nuxeo/CollectionSpaceServiceNuxeoImpl.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/util/NuxeoUtils.java
A services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M services/common/src/main/config/tenant-bindings.xml
A + services/common/src/main/resources/relations-common.xsd
D services/common/src/main/resources/relation.xsd
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionResource.java
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
M services/pom.xml
M services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeResource.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeHandlerFactory.java
D services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeRepresenationHandler.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeDocumentModelHandler.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/NewRelationResource.java
D services/relation/service/src/main/java/org/collectionspace/services/relation/RelationResource.java
D services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationServiceNuxeoImpl.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationHandlerFactory.java
D services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationNuxeoConstants.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java
D services/relation/service/src/main/java/org/collectionspace/services/relation/RelationService.java
A + services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relations-common.xsd
D services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd
M services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml
M services/relation/client/src/test/java/org/collectionspace/services/client/test/RelationServiceTest.java
A services/relation/client/src/test/resources/log4j.properties
D services/relation/client/src/test/resources/log4j.xml
M services/relation/client/src/main/java/org/collectionspace/services/client/RelationProxy.java
M services/relation/client/src/main/java/org/collectionspace/services/client/RelationClient.java
M services/relation/client/pom.xml
CSPACE-81,43,371,394,395
CSPACE-81,394 schema extension supported between consumer and service using multipart messaging, between service and repository using nuxeo repository. metadata-driven using service binding. collectionobject schema extended for testing for natural history domain
CSPACE-43 use of JAXB is minimized to consumer side and restricted to just common part on the service side
CSPACE-371 nuxeo binding is externalized into tenant binding.
CSPACE-395 multi tenancy first cut. example binding for movingimages.us.
M services/authentication/client/src/test/java/org/collectionspace/services/authentication/client/AuthenticationServiceTest.java
M services/sdk/sample/src/main/java/org/collectionspace/services/sdk/sample/Sample.java
D services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/CollectionObjectService.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/CollectionObjectResource.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectRepresenationHandler.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectDocumentModelHandler.java
D services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectServiceNuxeoImpl.java
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectHandlerFactory.java
M services/collectionobject/service/pom.xml
D services/collectionobject/jaxb/src/main/resources/collectionobject.xsd
A + services/collectionobject/jaxb/src/main/resources/collectionobjects-common.xsd
A services/collectionobject/jaxb/src/main/resources/collectionobjects-naturalhistory.xsd
M services/collectionobject/jaxb/pom.xml
D services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobject.xsd
A + services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects-common.xsd
A services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects-naturalhistory.xsd
M services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/OSGI-INF/core-types-contrib.xml
A services/collectionobject/3rdparty/pom.xml~
A services/collectionobject/client/received.xml~
A services/collectionobject/client/received.xml
A services/collectionobject/client/sent.xml~
M services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
M services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectClient.java
M services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectProxy.java
A services/collectionobject/client/sent.xml
M services/collectionobject/client/pom.xml
A services/collectionobject/client/test.xml
M services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
M services/JaxRsServiceProvider/pom.xml
A services/common/profiles.xml
A services/common/src/main/java/org/collectionspace/services/common/repository/DocumentUtils.java
A services/common/src/main/java/org/collectionspace/services/common/repository/AbstractDocumentHandler.java
M services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClientFactory.java
M services/common/src/main/java/org/collectionspace/services/common/repository/DocumentHandler.java
M services/common/src/main/java/org/collectionspace/services/common/repository/DocumentException.java
M services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
M services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceResource.java
A + services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceServiceContextListener.java
A + services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResource.java
A services/common/src/main/java/org/collectionspace/services/common/context
A services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
A services/common/src/main/java/org/collectionspace/services/common/context/ServiceContextImpl.java
M services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
A services/common/src/main/java/org/collectionspace/services/common/config
A services/common/src/main/java/org/collectionspace/services/common/config/ConfigReader.java
A services/common/src/main/java/org/collectionspace/services/common/config/AbstractConfigReader.java
A services/common/src/main/java/org/collectionspace/services/common/config/ServicesConfigReader.java
A services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java
D services/common/src/main/java/org/collectionspace/services/common/ServiceContextListener.java
M services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceHandlerFactory.java
A services/common/src/main/java/org/collectionspace/services/svn-commit.tmp~
M services/common/src/main/java/org/collectionspace/services/nuxeo/util/NuxeoUtils.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoConnector.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepresentationHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepositoryRESTClient.java
M services/common/src/main/config/service-config.xml
A services/common/src/main/config/tenant-bindings.xml
A services/common/src/main/svn-commit.tmp~
M services/common/src/main/resources/service-config.xsd
A services/common/src/main/resources/types.xsd
A services/common/src/main/resources/tenant.xsd
A services/common/src/main/resources/service.xsd
M services/common/pom.xml
M services/common/build.xml
_M services/acquisition/service
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionResource.java
D services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionService.java
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionHandlerFactory.java
_M services/acquisition/jaxb
D services/acquisition/jaxb/src/main/resources/acquisition.xsd
A + services/acquisition/jaxb/src/main/resources/acquisitions-common.xsd
_M services/acquisition/3rdparty/nuxeo-platform-cs-acquisition
D services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/src/main/resources/schemas/acquisition.xsd
A + services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/src/main/resources/schemas/acquisitions-common.xsd
M services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/src/main/resources/OSGI-INF/core-types-contrib.xml
_M services/acquisition/client
M services/acquisition/client/src/test/java/org/collectionspace/services/client/test/AcquisitionServiceTest.java
M services/acquisition/client/src/main/java/org/collectionspace/services/client/AcquisitionClient.java
M services/acquisition/client/src/main/java/org/collectionspace/services/client/AcquisitionProxy.java
M services/pom.xml
M services/id/service/pom.xml
M services/id/jaxb/pom.xml
_M services/query/service
_M services/IntegrationTests
A services/intake/service/profiles.xml
M services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeResource.java
D services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeService.java
D services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeServiceNuxeoImpl.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeHandlerFactory.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeRepresenationHandler.java
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeDocumentModelHandler.java
A + services/intake/jaxb/src/main/resources/intakes-common.xsd
D services/intake/jaxb/src/main/resources/intake.xsd
M services/intake/jaxb/pom.xml
A + services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/schemas/intakes-common.xsd
D services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/schemas/intake.xsd
M services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/OSGI-INF/core-types-contrib.xml
M services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeServiceTest.java
M services/intake/client/src/main/java/org/collectionspace/services/client/IntakeClient.java
M services/intake/client/src/main/java/org/collectionspace/services/client/IntakeProxy.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/NewRelationResource.java
M services/client/src/main/java/org/collectionspace/services/client/test/ServiceTest.java
M services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTest.java
Richard Millet [Mon, 21 Sep 2009 16:02:30 +0000 (16:02 +0000)]
CSPACE-457: Adding <distributionManagement> element to our root POM to publish the artifacts to our project Maven repository at source.collectionspace.org
Aron Roberts [Thu, 17 Sep 2009 03:19:21 +0000 (03:19 +0000)]
CSPACE-448: ID Service returns 404, not 400, when an ID Generator is not found. Currently uses DocumentNotFoundException in common module; this may need to be re-thought.
Aron Roberts [Wed, 16 Sep 2009 22:58:36 +0000 (22:58 +0000)]
CSPACE-424: Added (currently commented-out) negative tests of create and update with empty payload to Acquisition service tests, removed obsolete createNull test.
Aron Roberts [Wed, 9 Sep 2009 23:58:04 +0000 (23:58 +0000)]
CSPACE-424,CSPACE-401: Added (currently commented-out) negative tests of create and update with empty payload to client test framework, three service tests.
Aron Roberts [Wed, 2 Sep 2009 21:49:43 +0000 (21:49 +0000)]
CSPACE-360,CSPACE-389,CSPACE-385: Revise Relation client tests to use the updated client test framework. Minor changes in related classes triggered by this work.
Aron Roberts [Tue, 1 Sep 2009 20:59:32 +0000 (20:59 +0000)]
CSPACE-360,CSPACE-385,CSPACE-387: Renamed methods in CollectionObject client classes for consistency with test classes, and statements affected by these changes in other modules.
Richard Millet [Fri, 28 Aug 2009 17:12:02 +0000 (17:12 +0000)]
CSPACE-398: I created an abstract base class for service resources. It helps consolidate setup and use of the client and the document handler. The resource class defined in "NewRelationResource.java" shows an example of how to use this base class.
Aron Roberts [Fri, 28 Aug 2009 02:48:59 +0000 (02:48 +0000)]
CSPACE-360,CSPACE-384: For client test framework: Restored two inadvertently deleted files. Moved all three files in framework to main tree in client module, from test tree, due to unresolved issues in sharing test code across modules.
Aron Roberts [Thu, 27 Aug 2009 19:49:30 +0000 (19:49 +0000)]
CSPACE-360,CSPACE-384: Introduced dependency on surefire plugin 2.4+ in client module to allow packaging of client test framework files into test-jar, even when tests are skipped. See http://bit.ly/IOnaZ
Aron Roberts [Thu, 27 Aug 2009 19:14:06 +0000 (19:14 +0000)]
CSPACE-360,CSPACE-384: POM file additions to generate a jar file containing client test framework files in the 'client' module, and then use (depend on) those files in 'collectionobject/client'.