Aron Roberts [Tue, 4 Oct 2011 16:56:51 +0000 (16:56 +0000)]
CSPACE-3178,CSPACE-2215: Payloads to create authority or voculabulary resources now no longer require short identifiers. Short identifiers will be generated from display names, consistent with handling of vocabulary or authority item payloads. Created utility method to isolate logic around identifier generation, to facilitate future work on CSPACE-2215.
Aron Roberts [Sat, 1 Oct 2011 00:49:43 +0000 (00:49 +0000)]
CSPACE-3178: Vocabulary service and various authority services now accept null or blank short identifiers in create payloads, when creating items (terms) in a vocabulary or authority, because (per other recent work on this issue) short identifiers are now generated if not supplied. When creating vocabularies (as opposed to terms within a vocabulary), short identifiers are still required, per Patrick. Short identifiers provided in update payloads are now ignored.
Aron Roberts [Fri, 30 Sep 2011 20:51:24 +0000 (20:51 +0000)]
CSPACE-3911: Workaround to make it possible to ingest legal XML documents containing XML entities (e.g. '&', '<', '"') into the Imports service, by 'double-encoding' ampersands at the start of those entities. This is intended to preserve those entities past an initial parse, that takes place during a pre-processor stage of the import process.
Aron Roberts [Wed, 28 Sep 2011 01:53:10 +0000 (01:53 +0000)]
CSPACE-3178,CSPACE-2215: First iteration of automatic creation of refNames from short identifiers, and of short identifiers from display names, in authority and vocabulary services. Currently, client-supplied refNames are still accepted, rather than being dropped; this will change soon.
Aron Roberts [Tue, 20 Sep 2011 23:31:39 +0000 (23:31 +0000)]
CSPACE-3270,CSPACE-4172,CSPACE-3332,CSPACE-1018: Updated Contact schema to reflect current wiki schema. Updated Contact service to use AbstractCommonList and DocHandlerBase. Includes stub code to generate a displayname from constituent fields.
Aron Roberts [Wed, 14 Sep 2011 23:27:08 +0000 (23:27 +0000)]
CSPACE-4233: Converted services fields in CollectionObject / Cataloging, Acquisition, Dimension and Media records to integer or decimal datatypes, as appropriate. Also converted apparently internal field in Blob record to decimal datatype, to match its counterpart in Media.
Aron Roberts [Thu, 8 Sep 2011 20:27:02 +0000 (20:27 +0000)]
CSPACE-4365: Switched to xs:decimal from xs:float in XSD datatype declarations for objectPurchasePriceValue field in Acquisitions records, in the services. While a more appropriate XML Schema datatype, this did not result in any changes in the database (even after dropping and re-creating the database): this field was still defined as datatype 'double precision' in PostgreSQL.
Aron Roberts [Thu, 8 Sep 2011 19:50:10 +0000 (19:50 +0000)]
CSPACE-4376: Updated version number in services POMs and build.properties to 1.12-SNAPSHOT, from 1.11-SNAPSHOT. Starting after removing local Maven repository, services build/deployment succeeds and all tests pass.
Aron Roberts [Thu, 8 Sep 2011 01:25:50 +0000 (01:25 +0000)]
CSPACE-4345: Cleaned up vestigial 'import' modules in four vocabulary and authority services: vocabulary, person, organization and location. The presence of these long-unused modules, following conversion of each of those services to emit list results in AbstractCommonList format, was resulting in compilation errors while attempting to generate the distribution tarballs via 'ant dist-jboss-domains', as these old import modules were referenced by the dependent 'dist' task.
Aron Roberts [Fri, 2 Sep 2011 22:18:27 +0000 (22:18 +0000)]
CSPACE-4335: XMLReplay test of advanced search within a single field in an extension schema is now working, after updating HTTP BasicAuth credentials for the lifesci admin user. The relevant test groups in the advanced search control file have been added to the XMLReplay master file in IntegrationTests, so we'll have regression testing of advanced search in both the common and naturalhistory schemas for CollectionObject.
Aron Roberts [Fri, 2 Sep 2011 20:55:04 +0000 (20:55 +0000)]
CSPACE-4335: Added XMLReplay run file for CollectionObjects advanced search, omitted from previous check-in. Renamed several test data files for clarity. Added GET test to test group that checks advanced search against a field in an extension schema.
Aron Roberts [Fri, 2 Sep 2011 20:16:57 +0000 (20:16 +0000)]
CSPACE-4335: Added XMLReplay-based tests to the services IntegrationTests module to test advanced search in CollectionObject / Cataloging records. Testing of advanced search in a field in an extension schema has not yet been successful, and that test is not currently active.
Aron Roberts [Fri, 2 Sep 2011 00:23:29 +0000 (00:23 +0000)]
CSPACE-4330: Changed datatypes for numberOfObjects in CollectionObject records to xs:integer (which converts field to bigint type in PostgreSQL) and for objectPurchasePriceValue in Acquisition records to xs:float (double precision in PostgreSQL). Services tests pass, but it would be desirable to add tests for these fields. We may also want to consider xs:decimal type for currency types.
Patrick Schmitz [Tue, 23 Aug 2011 00:23:50 +0000 (00:23 +0000)]
CSPACE-2844 - Added flags and logic to preclude changes to the prebuilt Accounts and Roles. Added tests for same. Fixed some subtle bugs in the semi-related document handlers for Permission, Role, and Account.
Patrick Schmitz [Wed, 17 Aug 2011 23:56:22 +0000 (23:56 +0000)]
NOJIRA - Added safety check in filterReadOnlyPropertiesForPart to ensure it only checks for values in the common part. Quite an edge case, but would be a very confusing bug if someone created an extension part that had fields with the same names and tried to update them.
Patrick Schmitz [Wed, 17 Aug 2011 23:53:49 +0000 (23:53 +0000)]
NOJIRA - Slight refactoring of password validation, and improved error message for invalid passwords. This does NOT represent a functional change, but rather just cleanup. Also added comments to the payloads for account testing to explain the base64binary encoding of password values in payloads. Again, no functional changes.
Patrick Schmitz [Wed, 17 Aug 2011 21:05:05 +0000 (21:05 +0000)]
CSPACE-4328 Added support for createdBy and updatedBy to the collectionspace_core schema. These fields are now set and maintained by all of the nuxeo repository services (i.e., they are not maintained for AuthN and AuthZ services: user, account, role, perms, etc.). The values are the userId of the currently authenticated user. This changes requires a complete (create_db) rebuild of a repository.
Richard Millet [Tue, 9 Aug 2011 22:48:35 +0000 (22:48 +0000)]
CSPACE-4262: Added code to read env variables for Nuxeo username and password that will override those values in the config file at jboss-4.2.3.GA\server\cspace\cspace\config\services\service-config.xml
Patrick Schmitz [Wed, 27 Jul 2011 20:25:28 +0000 (20:25 +0000)]
CSPACE-3332, CSPACE-3784, CSPACE-4257 Updated Vocabulary and Authority classes to use shared subclasses for AbstractCommonList support. Most of the work was in the Authority base classes for resources and docmodelhandlers. Also cleaned up a few things with taxonomy service. Checking to follow will update the app config for same.
Patrick Schmitz [Fri, 22 Jul 2011 22:34:43 +0000 (22:34 +0000)]
CSPACE-3332, CSPACE-3784 Updated Blob, Media, and Group to use shared subclasses for AbstractCommonList support. These were already using AbstractCommonList, but benefited from new base classes to remove some code.
Patrick Schmitz [Fri, 22 Jul 2011 19:44:36 +0000 (19:44 +0000)]
CSPACE-3332, CSPACE-3784 Updated Movement to use DocHandlerBase. Refactored some utility methods into a new AbstractCommonListUtils class. Fixed a bug in RemoteDocumentModelHandlerImpl.getXPathStringValue that did not handle dates correctly.
Aron Roberts [Thu, 21 Jul 2011 21:24:03 +0000 (21:24 +0000)]
CSPACE-4172,CSPACE-3332: Revised ObjectExit service to return CommonList format for list results. Needed to remove explicit designations of now-obsolete references to older objectexit-specific list formats in tenant-bindings prototype before the correct root and list item elements were returned, and hence tests expecting CommonList would pass.
Aron Roberts [Thu, 21 Jul 2011 20:25:04 +0000 (20:25 +0000)]
CSPACE-4172,CSPACE-3332: Minor cleanup re move to CommonList format in acquisition, intake, loanin: removed JAXB declarations of AbstractCommonList; added constant for proxy service path.
Aron Roberts [Thu, 21 Jul 2011 04:01:06 +0000 (04:01 +0000)]
CSPACE-4172,CSPACE-3332: Conservatively adding back declaration of the abstractCommonList complexType to Loanout and Intake JAXB XSD files, to match the pattern being followed in Acquisition service, until it's certain these declarations aren't required. (Client tests succeeded without those declarations in each of those two services.)
Aron Roberts [Thu, 21 Jul 2011 03:40:58 +0000 (03:40 +0000)]
CSPACE-4172,CSPACE-3332: Revised Intake service to return CommonList format for list results. Also needed to remove a now-obsolete, perhaps experimental method from CollectionObjectResource that appears to have been intended to return related Intake records.
Aron Roberts [Wed, 20 Jul 2011 21:57:43 +0000 (21:57 +0000)]
CSPACE-4186: Adding empty 'postgresql' and 'mysql' folders, required by the 'ant dist' target. This was done in the v1.8 services release branch in r5148, but was never (yet) merged to trunk.
Patrick Schmitz [Wed, 20 Jul 2011 21:40:15 +0000 (21:40 +0000)]
CSPACE-4247 - Fixed missing parameterization of credentials in nuxeo.conf. Removed build script elsewhere that did equivalent work, but only if ant 1.8 or later was installed.
Patrick Schmitz [Wed, 20 Jul 2011 21:07:42 +0000 (21:07 +0000)]
CSPACE-3332, CSPACE-3784 Updated reports to use DocHandlerBase. Cleaned up that class to begin removing the hacks left in an earlier revision. Added some support utilities to the test framework to ease the debugging of list results, and fetching CSID values from list result items. Added new base definitions for the proxy interfaces and client classes of services that AbstractCommonList in list results. Changed the Acquisition handler to use the proper model for DocHandlerBase.
Aron Roberts [Wed, 20 Jul 2011 02:13:09 +0000 (02:13 +0000)]
CSPACE-4172,CSPACE-3332: Added list results fields for several additional services to tenant bindings prototype, in advance of and in support of coding work in those services to return CommonList format for list results.
Aron Roberts [Wed, 20 Jul 2011 01:17:23 +0000 (01:17 +0000)]
CSPACE-4172,CSPACE-3332: Added list results fields for several services to tenant bindings prototype, in advance of and in support of coding work in those services to return CommonList format for list results.
Patrick Schmitz [Tue, 19 Jul 2011 17:31:06 +0000 (17:31 +0000)]
CSPACE-4244. Added description and source fields to schema for Vocabulary, PersonAuthority, OrgAuthority, LocationAuthority, and TaxonomicAuthority. Added description, source and sourcePage fields to schemas for each of the items for these respective authorities. Added simple tests for the various payloads.
Patrick Schmitz [Tue, 19 Jul 2011 00:58:21 +0000 (00:58 +0000)]
CSPACE-4234, CSPACE-4106 Added support to filter Reports by doctype and invocation mode, and since I was in there, I also fixed the bug with hyphens in search (phrase search is still not right, but at least it reverts to keyword search).
Patrick Schmitz [Fri, 15 Jul 2011 20:47:29 +0000 (20:47 +0000)]
CSPACE-2391, 2503, 4201, 4202, 4204, 4206 More work on reporting to handle parameters, manage repository connections more cleanly, add support for sample reports that are installed as part of the build. Added one example of a report that can run with no context, or with a single CSID context. Added a post init handler for reports to more cleanly manage the DB permissions for the reader user.
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.