Aron Roberts [Wed, 22 Apr 2009 22:31:59 +0000 (22:31 +0000)]
CSPACE-88: Revamped VersionResource to PingResource, which better reflects the nature of this service - a ping or echo service. (Returning a global version number for the application isn't currently meaningful, as Patrick pointed out.) Service now also responds on requests for both 'ping' and 'echo' path elements.
Aron Roberts [Wed, 22 Apr 2009 03:05:28 +0000 (03:05 +0000)]
Added a trivial 'version' service, per Richard's suggestion, so that clients can 'ping' the service and retrieve a version identifier. This could be expanded upon in the future to provide more info about the installed service, runtime, et al.
CSPACE-66 Extended the JAX-RS prototype to exchange multi-part content (each part corresponding elements from different schemas hello.xsd or world.xsd) between the service provider and consumer
CSPACE-66 Extended the JAX-RS prototype to exchange multi-part content (each part corresponding elements from different schemas hello.xsd or world.xsd) between the service provider and consumer
Richard Millet [Fri, 10 Apr 2009 22:07:01 +0000 (22:07 +0000)]
CSPACE-69: Add new string constants for PersonNuxeo and CollectionObject workspaces. Also gave these constants the values for our Nuxeo instance on demo.collectionspace.org.
Richard Millet [Fri, 10 Apr 2009 18:25:38 +0000 (18:25 +0000)]
CSPACE-63: Abstract base class "CollectionObjectClient" now has method for getting the CollectionSpace URL prefix from a system property. If the property is not set then a default of 'http://localhost:8080/helloworld/cspace-nuxeo' is used.
Richard Millet [Thu, 9 Apr 2009 23:48:42 +0000 (23:48 +0000)]
CSPACE-64: Fixed problem caused by using the incorrect response XML element name when parsing the response from Nuxeo's "browse" rest API. Changed from "csid" to "id"
Richard Millet [Thu, 9 Apr 2009 02:37:59 +0000 (02:37 +0000)]
Adding this interface for common/global values and settings to all CollectionSpace service resources. Currently contains the hardcoded Nuxeo workspace UUID.
Sanjay Dalal [Mon, 30 Mar 2009 23:02:55 +0000 (23:02 +0000)]
CSPACE-30, getPerson uses export operation of Nuxeo RESTAPIs.
M HelloWorld/HelloWorldClient/src/test/java/org/collectionspace/hello/client/test/PersonNuxeoServiceTest.java
M HelloWorld/HelloWorldNuxeoService/src/main/java/org/collectionspace/hello/services/PersonNuxeoResource.java
Sanjay Dalal [Thu, 26 Mar 2009 19:07:12 +0000 (19:07 +0000)]
CSPACE-30 hello.xsd schema changed (made it flat) to accommodate requirements of
nuxeo repository and rest apis. HelloWorldDocService renamed to HelloWorldNuxeo
Service. Added support for create, update and delete in addition to list.
Sanjay Dalal [Thu, 26 Mar 2009 19:06:38 +0000 (19:06 +0000)]
CSPACE-30 hello.xsd schema changed (made it flat) to accommodate requirements of
nuxeo repository and rest apis. HelloWorldDocService renamed to HelloWorldNuxeo
Service. Added support for create, update and delete in addition to list.
Sanjay Dalal [Thu, 26 Mar 2009 18:58:01 +0000 (18:58 +0000)]
CSPACE-30 hello.xsd schema changed (made it flat) to accommodate requirements of nuxeo repository and rest apis. HelloWorldDocService renamed to HelloWorldNuxeoService. Added support for create, update and delete in addition to list.
M services/trunk/3rdparty/nuxeo/nuxeo-platform-cs/src/main/resources/schemas/hello.xsd
M services/trunk/3rdparty/nuxeo/nuxeo-platform-cs/src/main/resources/OSGI-INF/ecm-types-contrib.xml
M services/trunk/3rdparty/nuxeo/nuxeo-platform-cs/src/main/resources/OSGI-INF/layouts-contrib.xml
M services/trunk/HelloWorld/HelloWorldJaxb/src/main/resources/hello.xsd
D services/trunk/HelloWorld/HelloWorldDocService
M services/trunk/HelloWorld/HelloWorldClient/nbactions.xml
AM + services/trunk/HelloWorld/HelloWorldNuxeoService
D services/trunk/HelloWorld/HelloWorldNuxeoService/pom.all.xml
D services/trunk/HelloWorld/HelloWorldNuxeoService/src/main/java/org/collectionspace/hello/services/PersonDocResource.java
D services/trunk/HelloWorld/HelloWorldNuxeoService/src/main/java/org/collectionspace/hello/services/HelloworldDocApplication.java
AM + services/trunk/HelloWorld/HelloWorldNuxeoService/src/main/java/org/collectionspace/hello/services/PersonNuxeoResource.java
AM + services/trunk/HelloWorld/HelloWorldNuxeoService/src/main/java/org/collectionspace/hello/services/HelloworldNuxeoApplication.java
M services/trunk/HelloWorld/HelloWorldNuxeoService/src/main/webapp/WEB-INF/web.xml
M services/trunk/HelloWorld/HelloWorldNuxeoService/pom.xml
A + services/trunk/HelloWorld/HelloWorldNuxeoService/README.txt
Aron Roberts [Thu, 26 Mar 2009 17:28:15 +0000 (17:28 +0000)]
CSPACE-18: CollectionObject service is now running in JBoss, and raw XML tests to create and update are succeeding. (curl-based tests to delete and retrieve individual objects and lists are also succeeding.) Additional notes may be posted as a comment to this issue.
Note that this cannot be verified to be working as of 2009-03-26 10:27 due to a JBoss WAR file issue.
Aron Roberts [Mon, 23 Mar 2009 19:26:45 +0000 (19:26 +0000)]
Ant build script to copy WAR file to JBoss deployment directory now uses the JBOSS_HOME environment variable, if a local properties file doesn't set the deployment directory property.
Removed an extraneous schema file after renaming collections/list-type schemas.
Aron Roberts [Mon, 23 Mar 2009 18:28:59 +0000 (18:28 +0000)]
CSPACE-12,CSPACE-13: Renamed collectionObjects to collectionObjectsList, per Richard's suggestion. This naming convention is suggested, going forward, for schemas that refer to collections or lists of 0-n items.
Aron Roberts [Fri, 20 Mar 2009 20:42:51 +0000 (20:42 +0000)]
Copying Sanjay's HelloWorld project (with in-memory Collections storage, not using Nuxeo/MySQL) to Aron's sandbox, in preparation for adding a CollectionObject service. This copy builds and runs successfully under JBoss on Mac OS X.
Aron Roberts [Mon, 16 Mar 2009 21:06:29 +0000 (21:06 +0000)]
Modified sample XML instance document for CollectionObject to match changes in schema.
Updated comments, including reflecting new filenames.
Converted all horizontal tabs to 2 spaces.
Aron Roberts [Mon, 16 Mar 2009 20:12:40 +0000 (20:12 +0000)]
Removed extraneous files, leaving just one set of current files - RELAX NG schema, generated W3C XML Schema, and sample XML instance document - for collectionObject, collectionObjects (a list of zero or more collectionObject(s)), and serviceErrorResponse.
Added a utility script for validating W3C XML Schema documents via XMLStarlet.
Made all defaultCollectionObject elements required, although their values may be blank (empty).
Aron Roberts [Sat, 14 Mar 2009 00:24:15 +0000 (00:24 +0000)]
CSPACE-20: Added our Release 0.1 namespace to the RELAX NG schema document and example file for our service error responses.
Generated a W3C XML Schema (XSD) schema document for service error responses.
Aron Roberts [Fri, 13 Mar 2009 23:36:18 +0000 (23:36 +0000)]
Add schema (RELAX NG, tool-generated XSD) for a list of collection objects.
Add an example XML document representing a list of collection objects.
Add a wrapper XSD schema, Hello.xsd, corresponding to Sanjay's document of the same name in the prototype. This document includes declarations for both individual collection objects and lists of collection objects.
Changed sample documents to use realistic-looking hex strings for CSpace ID values, rather than sequences of (pseudo) random alphanumeric characters.
Aron Roberts [Fri, 13 Mar 2009 20:48:25 +0000 (20:48 +0000)]
CSPACE-12: Added a 'no namespace prefix' instance of the rudimentary Rel. 0.1 collection object schema, in W3C XML Schema (XSD), where there is no namespace prefix associated with the default collection object schema. This schema also has a hand-added 'version' attribute.
Aron Roberts [Fri, 13 Mar 2009 20:34:48 +0000 (20:34 +0000)]
CSPACE-12: Added a namespace-qualified version of the rudimentary Rel. 0.1 collectionObject schema, in both RELAX NG and (via tool generation) W3C XML Schema (XSD).
Added missing XSD datatype library declaration to full RELAX NG collection object schema ( the schema that is sans namespaces).
Minor correction on intro comments in rng-to-xsd script.
Aron Roberts [Fri, 13 Mar 2009 19:59:11 +0000 (19:59 +0000)]
CSPACE-12: Added a 'full' collectionObject schema in RELAX NG that includes, rather than incorporating by reference, the serviceMetadata and defaultCollectionObject schemas. This, in turn, was used as input to the 'Trang' utility to generate a W3C XML Schema (XSD) version of the collection object schema. Also included two trivial utility scripts to wrap RELAX NG validation and RELAX NG-to-XSD generation.
NB: the XSD version of the collection object schema included with this commit does not include a CSpace- or Hello World-specific namespace.
Aron Roberts [Mon, 9 Mar 2009 22:12:28 +0000 (22:12 +0000)]
CSPACE-12, CSPACE-13, CSPACE-20: Revised the service's response schema and corresponding example document, and renamed both documents to 'serviceErrorResponse', to reflect that CSpace services will only return these responses upon error, not upon success.
Minor revision to datatype for objectNumber in defaultCollectionObject.
Sanjay Dalal [Thu, 5 Mar 2009 23:31:21 +0000 (23:31 +0000)]
CSPACE-14, created new resource - Identifier. service providers use jaxb as well. fixed maven dependencies. xml schema has namespace. same xsd contains schema for both Person and Identifier resources. un/marshalling works with namespace - XmlRootElement is generated.
Aron Roberts [Thu, 5 Mar 2009 22:37:32 +0000 (22:37 +0000)]
The defaultCollectionObject schema was revised to include all of the fields, in the Object ID Information section of the Object Data Wireframe, that have been identified for use in the Release 0.1 demo.
The sample site- or instance-specific schema has been changed to reflect MMI data, rather than PAHMA data, and includes both actual fields (with names exposed in its online collection catalog).
Schemas now include 'interleave' tags to allow elements to be included in any order.
Example file now includes sample data from a MMI collection object record.
Aron Roberts [Thu, 5 Mar 2009 20:46:32 +0000 (20:46 +0000)]
Reflects significant changes in the CollectionObject schema per work by Richard and Aron on 2009-03-04. Decorations for UI and database hinting have been removed, and the generic 'entity' core is no longer used.