Patrick Schmitz [Mon, 11 Jul 2011 22:12:50 +0000 (22:12 +0000)]
CSPACE-2391, 2503, 4201, 4202, 4204, 4206 Updated Reporting invocation to follow model of batch process with an invocation context. Allows passing CSID, list of CSIDs, or group CSID into a report using paramater map. Ported simple acquisition report to Postgres to test. Still working on test support that verifies PDF output. Added groundwork looking ahead for passing in additional parameters to reports. Updated dependencies for build to use libs that support version 4 of iReport. Tweaked Batch support to use common definitions for invocation-related definitions. Added basic grant information for reader user, although admin must currently complete grant by hand.
Aron Roberts [Fri, 1 Jul 2011 21:33:00 +0000 (21:33 +0000)]
CSPACE-4179: Updated services build.properties and parent version designations in services POMs to 1.9-SNAPSHOT, from 1.8-SNAPSHOT. (Directories also marked as updated by this commit have only svn properties changes.)
Aron Roberts [Wed, 22 Jun 2011 00:33:00 +0000 (00:33 +0000)]
CSPACE-1110: Services layer now returns plain text error messages, rather than JBoss-generated HTML error messages, in responses from two additional types of Exceptions. This improves the consistency in the format, if not yet always the content, of services error responses.
Aron Roberts [Fri, 17 Jun 2011 01:57:35 +0000 (01:57 +0000)]
CSPACE-4052: Reverting change made in r5038; Patrick would prefer the ID service tables to be in the 'nuxeo' db, leaving the 'cspace' db for authZ-related tables.
Aron Roberts [Fri, 17 Jun 2011 01:12:47 +0000 (01:12 +0000)]
CSPACE-4052: ID service Ant buildfile now uses 'cspace' database user and password for running its DDL script, create_id_generators_table.sql, rather than 'nuxeo' database user and password.
Patrick Schmitz [Thu, 16 Jun 2011 20:33:49 +0000 (20:33 +0000)]
CSPACE-2903, CSPACE-2421. Added support for postgresql, cleaned up configuration and various sql statements and resources that were mysql-specific. Refactored lots of configuration to take DB info from build properties. Note that in this version, mysql is still the configured DB.
Aron Roberts [Thu, 16 Jun 2011 19:07:09 +0000 (19:07 +0000)]
CSPACE-4081: XmlReplay config files now have newly-generated password hash for admin@core.collectionspace.org user; XmlReplay-based tests in IntegrationTests module have been re-enabled.
Aron Roberts [Thu, 16 Jun 2011 14:54:48 +0000 (14:54 +0000)]
CSPACE-4081: Temporarily commented out invocation of XmlReplay tests in IntegrationTests module in services, until we can identify why 401 authentication errors are occurring. Have experimented with changing username / password hashes, so far without success.
Aron Roberts [Thu, 16 Jun 2011 12:39:38 +0000 (12:39 +0000)]
CSPACE-4081: Update username in XmlReplay-based Integration Tests to reflect name change of tenant 1 to core.collectionspace.org, from collectionspace.org
Aron Roberts [Thu, 16 Jun 2011 02:33:20 +0000 (02:33 +0000)]
CSPACE-4081: Switched tenant 1 to core.collectionspace.org, from collectionspace.org; switched tenant 2 to lifesci.colletionspace.org, from hearstmuseum.berkeley.edu, to match changes in the App and UI layers. lifesci tenant retains an extra collectionobjects_naturalhistory extension schema part for Cataloging / CollectionObject records, from its previous incarnation as the hearstmuseum tenant.
Aron Roberts [Wed, 15 Jun 2011 02:26:27 +0000 (02:26 +0000)]
CSPACE-3995: Local override of AuthorityItemDocumentModelHandler.getAuthorityServicePath() in TaxonDocumentModelHandler does not appear to be necessary, and has been removed. With and without that override, item lists are returned identically, save for non-material ordering of namespace prefixes in the root element.
Aron Roberts [Mon, 13 Jun 2011 20:16:37 +0000 (20:16 +0000)]
CSPACE-4077: Creation of database indexes and modification of field datatypes during 'cspace' server startup / post-init now works once again, by specifying that we're connecting via JDBC to the nuxeo repository when performing these actions.
Aron Roberts [Fri, 10 Jun 2011 19:05:18 +0000 (19:05 +0000)]
CSPACE-4063,CSPACE-3858: Corrected one uriPath in prototype tenant bindings, used for building permissions for accessing services resources: Scientific Taxonomy Service path was changed to '/taxonomyauthorities/*/items/*/workflow/' from '/taxonomyauthorities/*/taxon/*/workflow/'.
Patrick Schmitz [Thu, 9 Jun 2011 20:25:32 +0000 (20:25 +0000)]
CSPACE-3546, CSPACE-2903, CSPACE-2421, CSPACE-2170, CSPACE-2000, CSPACE-1894. Completed changes to make database and datasource configuration use environment vars and build properties, concentrating this info and removing passwords from the checked in code. Also separated the initial creation of the database from the additional work, which is done by scripts created from the gen_ddl target, which in turn depends upon the core DB being in place.
Aron Roberts [Tue, 7 Jun 2011 20:29:23 +0000 (20:29 +0000)]
CSPACE-3175: Committing Laramie's many changes, with one minor fix, to allow resource classes in the Vocabulary service and in the various Authority services to inherit from ResourceBase, via AuthorityResource and AuthorityResourceWithContacts.
Patrick Schmitz [Tue, 7 Jun 2011 16:27:51 +0000 (16:27 +0000)]
CSPACE-3546, CSPACE-2903, CSPACE-2421, CSPACE-2170, CSPACE-2000, CSPACE-1894. Reworking lots of repository and hibernate configuration and build process to be less DB specific, and to support injection of passwords from environment variables.
NOTE: this also enforces ownership of each of the three databases/datasources by three respective users (jboss, nuxeo, and cspace), with associated passwords. You MUST set the environment variables: DB_PASSWORD_JBOSS, DB_PASSWORD_NUXEO, DB_PASSWORD_CSPACE in addition to DB_PASSWORD. The current default values are (still) embedded in
src/main/resources/db/mysql/init_db.sql, but this will get changed to use the environment variables as well.
Also added the jboss-ds.xml datasource configuration to our source tree to simplify managing the default jboss datasource.
Aron Roberts [Mon, 6 Jun 2011 20:11:29 +0000 (20:11 +0000)]
CSPACE-3175: AcquisitionResource now extends ResourceBase; the resource class itself is now essentially empty. Passes all services and app layer tests, and creates, updates, searches, and authref listings in the right sidebar in the UI work as expected.
Aron Roberts [Wed, 1 Jun 2011 23:12:52 +0000 (23:12 +0000)]
CSPACE-4052: Minimally updated the ID service to remove hard-coded dependencies on MySQL and specific database connection properties, to help facilitate services layer migration to PostgreSQL. Updated client and proxy classes, and client tests, to cover basic CRD+L of ID generators, plus generation of new IDs.
Laramie Crocker [Wed, 1 Jun 2011 00:49:33 +0000 (00:49 +0000)]
CSPACE-573 Added tests to test the new order field, to ensure that this order field is returned in list results, and that duplicate values for the order field is accepted.
Aron Roberts [Tue, 31 May 2011 18:30:19 +0000 (18:30 +0000)]
CSPACE-3865: Reverted temporary change, removing the collectionobjects_naturalhistory part from CollectionObject records in the default collectionspace.org domain; that part was temporarily added to that domain's tenant configuration for a May 2011 demo.
Patrick Schmitz [Sat, 28 May 2011 02:11:08 +0000 (02:11 +0000)]
CSPACE-3900 More support for invoking Batch processes. Refactored the invocation slightly to support better error reporting, and to allow a given Batch job to handle various invocation modes. Extended the demo batch job to handle single and list invocation, and to actually create the LoanOut and the relations to the passed CSID(s). Added a series of tests to verify proper functioning and error handling for bad invocation, empty lists, etc. Fixed an odd exception in the ClientUtils, in which a URI cannot be cast to a String.
Laramie Crocker [Fri, 27 May 2011 22:19:48 +0000 (22:19 +0000)]
CSPACE-573 Added *order* field to schema for Vocabularies and list result. Developed and installed dditional tests validating work on hierarchies, issues: CSPACE-4037 CSPACE-4040 CSPACE-4042 CSPACE-4037 CSPACE-4045
Patrick Schmitz [Thu, 26 May 2011 07:05:27 +0000 (07:05 +0000)]
CSPACE-3900 More support for invoking Batch processes. Added ResourceMap to injectable context, so BatchResource can set this into the Invocable interface. Added Invocable and related interfaces and classes for invoking and getting responses from Batch jobs (and other invocables, like reports). Still have to write real logic into the demo batch job.
Laramie Crocker [Wed, 25 May 2011 21:54:14 +0000 (21:54 +0000)]
CSPACE-4045 merging changes from branch 1.7 to trunk, preserving previous trunk commits for getAuthorityServicePath() and getUri() in AuthorityItemDocumentModelHandler. This fix ensures that create or update to hierarchic authorities cleans up old parent relationships for related child items. Effectively, an item in a hierarchy can not have two parents.
Laramie Crocker [Tue, 24 May 2011 08:26:42 +0000 (08:26 +0000)]
CSPACE-4043 see notes in Jira; Added change to services/collectionobject/jaxb/src/main/resources/collectionobjects_naturalhistory.xsd to attempt to get it to compile after checkin from Aron. Just wrapped all existing elements in element/complexType/sequence. Jaxb compiles, and removed three lines in CollectionObjectServiceTest that referred to the old fields. All service tests pass. Checking in so work from Monday can get built on nightly
Aron Roberts [Tue, 24 May 2011 06:09:45 +0000 (06:09 +0000)]
CSPACE-3865: Add custom Taxonomy-related fields to JAXB CollectionObject schema; make namespaces consistent between schemas and with core-types-contrib and tenant-bindings files.
Laramie Crocker [Tue, 24 May 2011 05:40:42 +0000 (05:40 +0000)]
CSPACE-4040 ensure consumer may not write uri fields in relations subject/uri and \
object/uri. URIs sent to hierarchic authorities will be ignored. \
CSPACE-4042 ensures same authority must be used for items related in hierarchy. \
CSPACE-4037 Service now generates correct REST URIs for all items. \
LIST will now return relation-list-item/subject/uri and relation-list-item/object/uri elements correctly. \
NOTE: removed relation-list-item/service and relation-list-item/documentTypeFromModel from payloads. PLEASE SEE CSPACE-4037 for attached sample payloads from test suite and additional notes.
Laramie Crocker [Fri, 20 May 2011 11:07:25 +0000 (11:07 +0000)]
CSPACE-4027 removed the pesky dev-master.xml so inadvertant checkins can not happen, and modified XmlReplayDevTest to quit nicely if not dev-master.mxl not found. Also moved common prettyPrint code into common.XmlTools. Added XmlReplayReport and supporting files to spit out friendly html version of test results.
Aron Roberts [Thu, 19 May 2011 20:43:17 +0000 (20:43 +0000)]
CSPACE-3865: Convert taxonIsNamedHybrid field to xs:string from xs:boolean for now, until we've established how to represent and save a boolean value end-to-end, including in the UI.
Laramie Crocker [Thu, 19 May 2011 06:23:51 +0000 (06:23 +0000)]
CSPACE-3994 replicating checkin from branch v1.7 to trunk, checking in objectNameProperty and objectNumberProperty for Locations, since these were missing.
Richard Millet [Wed, 18 May 2011 05:01:58 +0000 (05:01 +0000)]
CSPACE-3451: Added a "delta" binding to the Hearst museum binding for a "natural_history" part on the CollectionSpace record. This *was* part of the prototype binding, but I removed it from there and put it into the Hearst delta bindings as an example of how to customize a tenancy.
Laramie Crocker [Tue, 17 May 2011 00:05:49 +0000 (00:05 +0000)]
CSPACE-3899 Added batch service. CSPACE-3932 Fixed hack in authority DocumentModelHandlers to all use the new getAuthorityServicePath() method for reporting the correct names, e.g. personauthorities not persons
Laramie Crocker [Sat, 14 May 2011 06:29:40 +0000 (06:29 +0000)]
CSPACE-3175 Refactored *Resource classes to use functionality in two main base classes: ResourceBase, and SecurityResourceBase. Also, changed how some responses are now response code 400, BAD_REQUEST, where previously they were incorrectly sent as server error, 500. See extensive notes here: http://issues.collectionspace.org/browse/CSPACE-3175
Richard Millet [Fri, 13 May 2011 23:56:40 +0000 (23:56 +0000)]
CSPACE-3451: Prototypical tenant model is now supported. The tenant specific binding files are now deltas only. Also, updating Maven repo version for artifacts to v1.8 snapshot.
Aron Roberts [Fri, 13 May 2011 00:36:23 +0000 (00:36 +0000)]
CSPACE-3756: Removed vestigial 'flat' structured date from CollectionObject service's JAXB schema. Removed repeatable scalar ObjectProductionDates field from CollectionObject service's JAXB and Nuxeo schemas. Verified that these fields do not appear in default.xml.
Aron Roberts [Thu, 12 May 2011 23:39:47 +0000 (23:39 +0000)]
CSPACE-3865: Added dependency to enable Authority JAXB constants, in turn permitting the Taxonomy service to emit all needed fields for each of its summary records in item list results.
Aron Roberts [Thu, 12 May 2011 18:53:24 +0000 (18:53 +0000)]
CSPACE-2395: Added missing dateEarliestSingleEra and dateLatestEra fields to Nuxeo CollectionObject schema; these fields were present in JAXB schema but not in Nuxeo schema. Their absence in the latter led to 500 errors when saving records that had either of those fields populated.
Laramie Crocker [Thu, 12 May 2011 05:08:26 +0000 (05:08 +0000)]
CSPACE-3932 (on branch 3899 because of 1.7 code freeze). Made all current AuthorityItemDocumentModelHandler subclasses implement getAuthorityServicePath() to map from names like persons to names like personauthorities in URIs.
Richard Millet [Tue, 10 May 2011 16:54:16 +0000 (16:54 +0000)]
CSPACE-3451: Updated ../tenants/collectionspace/tenant-bindings-proto.xml (the prototype bindings) formatting to conform to the output of the XMLMerge tool.
Laramie Crocker [Tue, 10 May 2011 12:37:37 +0000 (12:37 +0000)]
CSPACE-3932 Fixed AuthorityItemDocumentModelHandler.java to correctly insert the cspace-services uri where the uri is not the same as the servicename, e.g. persons vs. personauthorities. Applies to personauthorities, orgauthorities, locationauthorities
Richard Millet [Mon, 9 May 2011 22:55:51 +0000 (22:55 +0000)]
NOJIRA: Removed dead import statements -this change has been sitting in my commit queue for weeks now. I tired of ignoring it and decided to finally commit it.
Richard Millet [Mon, 9 May 2011 22:52:04 +0000 (22:52 +0000)]
CSPACE-3798: Re-enabled AuthZ on the Blob service now that the App layer deals with /blob URLs. Also, changed some of the log statements in base document handler to be "trace" instead of "debug."
Patrick Schmitz [Mon, 9 May 2011 20:10:54 +0000 (20:10 +0000)]
NOJIRA - Partial port of Laramie's 3178 branch. Still has some bugs, and key enabling statements are commented out, as they cause app tests to fail. Work done (mistakenly) to address 3930, which was really about something else. Slightly refactored from the branch, bust utility code just ported over. RefName construction utils seem not be working correctly yet (strings are not proper syntax).
Also extended Location and Media tests to exercise some other features.