Patrick Schmitz [Tue, 15 Nov 2011 00:22:26 +0000 (00:22 +0000)]
CSPACE-1927 Update to displayName for an authority item will update all the references to that item. Loops through found referring objects in sets of 100, updates the fields that match, and saves en bulk (does not invoke normal validation, etc.). Fixed some minor bugs in Person Validation handlers that would produce gratuitous errors.
Aron Roberts [Mon, 14 Nov 2011 23:38:04 +0000 (23:38 +0000)]
CSPACE-4057,CSPACE-3268,CSPACE-3269: Set datatype of multiple date fields, across various object, procedural and authority records, to a date type (xs:date) in services XSD schema. Revised tests accordingly. Added loanInAuthorizationDate and repeatable loanStatus group to Loan In Schema. Added borrowersAuthorizer and borrowersAuthorizationDate fields to Loan Out Schema, also renamed loanedObjectStatus repeatable group and its fields to name/prefix loanStatus.
Aron Roberts [Thu, 10 Nov 2011 19:36:06 +0000 (19:36 +0000)]
CSPACE-3686: Comparisons of 'before and after' values of BigDecimal fields, which result from xs:decimal datatypes in services XSDs, should be done via BigDecimal's compareTo() method, which is scale-agnostic. Change made in CollectionObjectServiceTest to reflect this; we can use this type of comparison elsewhere in services client tests, as well.
Aron Roberts [Thu, 10 Nov 2011 03:28:03 +0000 (03:28 +0000)]
CSPACE-3686: In Cataloging / CollectionObject, Media and Blob services, Dimensions are now a subordinate, repeatable sub-group within groups of Measured Parts.
Aron Roberts [Wed, 9 Nov 2011 03:30:30 +0000 (03:30 +0000)]
CSPACE-4568: Removed 'largetext' references to two fields that have been converted from string to numeric datatypes, collectionobjects_common:age and collectionobjects_common:ownershipExchangePriceValue, from Nuxeo database template config files for MySQL and PostgreSQL.
Aron Roberts [Sat, 5 Nov 2011 00:33:43 +0000 (00:33 +0000)]
CSPACE-3627: Committing Rick's patches to make a Title Translation sub-group within the Title group in the common schema for Cataloging / CollectionObject records.
Aron Roberts [Fri, 4 Nov 2011 01:50:01 +0000 (01:50 +0000)]
CSPACE-4533,CSPACE-3231: Changed the way that empty strings are handled in services request payloads. Now, for non-date values, these result in null values being passed to Nuxeo, rather than empty string values.
Aron Roberts [Wed, 2 Nov 2011 00:56:08 +0000 (00:56 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated the list of fields, in all remaining sections of Cataloging / CollectionObject records, that hold authority references and terms from controlled lists.
Aron Roberts [Wed, 2 Nov 2011 00:39:38 +0000 (00:39 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated the list of fields, in the Object Production Information and Object History and Association Information sections of Cataloging / CollectionObject records, that hold authority references and terms from controlled lists.
Aron Roberts [Tue, 1 Nov 2011 22:49:52 +0000 (22:49 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated the list of fields, in the Object Description Information section of Cataloging / CollectionObject records, that hold authority references and terms from controlled lists.
Aron Roberts [Fri, 28 Oct 2011 01:13:24 +0000 (01:13 +0000)]
CSPACE-4478,CSPACE-4479,CSPACE-4538: Uniformly added measuredBy, measuredPart, and measurementMethod fields to dimensions repeatable groups in the services, in CollectionObject / Cataloging records and Dimensions records, matching both the dimensions repeatable group already present in Media records and the wiki Dimensions schema. This schema change simply adds fields to an existing repeatable group, matching the wiki wireframe and the current UI layout, and doesn't attempt to address any requirements for sub-repeatability as per CSPACE-3686.
Patrick Schmitz [Wed, 26 Oct 2011 00:09:00 +0000 (00:09 +0000)]
CSPACE-4406 - added support for refObjs for vocabulary service items, so that termList items can check for usage. Uses new termRef configuration, so that authorityRefs paylaods do not include termList items in the results.
Patrick Schmitz [Mon, 24 Oct 2011 20:14:10 +0000 (20:14 +0000)]
CSPACE-3159 - changed getDomainId() to only dump stack trace when trace enabled. On initial startup, we were always dumping the stack when we created domains. The method still returns null, and the callers handle it appropriately.
Aron Roberts [Mon, 17 Oct 2011 22:24:27 +0000 (22:24 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated authRefs and termRefs for Object Identification Information group within Cataloging records, in prototype tenant bindings.
Aron Roberts [Thu, 13 Oct 2011 20:11:53 +0000 (20:11 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated authRefs and termRefs for Person records, in prototype tenant bindings. Added missing namespace declarations to commented-out termRefs.
Patrick Schmitz [Thu, 13 Oct 2011 18:38:11 +0000 (18:38 +0000)]
CSPACE-4481 Missing call in RelationDocumentModelHandler.handleUpdate() to do the work that .handleCreate was doing to populate the doctype, uri, etc. Fixing this surfaced more test case bugs (i.e., assuming that relation fields were string buckets without semantics).
Patrick Schmitz [Thu, 13 Oct 2011 00:35:15 +0000 (00:35 +0000)]
CSPACE-3178 Modified authorityItem create and update to accept refNames in place of csids for children and parent identifiers in relations. Extensive cleanup related to relations, and to refName handling. Fixed bugs in handling of relations payloads. Many tests cleaned up to properly handle refNames. Lots of cleanup related to build dependencies among authority packages. Restructured authority project to properly separate jaxb and services classes (to resolve dependency cycles).
Aron Roberts [Wed, 12 Oct 2011 21:26:04 +0000 (21:26 +0000)]
CSPACE-4457,CSPACE-4472: Reviewed and updated authRefs and termRefs for Loan Out records, in prototype tenant bindings. Also, a correction to the previous commit comment on these issues: r5708 committed similar changes for Media records, not for Movement records.
Aron Roberts [Wed, 12 Oct 2011 01:40:13 +0000 (01:40 +0000)]
CSPACE-3178: Quick hack to disable use of garbage refNames in taxonomy authority (taxon) client tests, since refNames are now generated by the services.
Patrick Schmitz [Mon, 10 Oct 2011 23:47:50 +0000 (23:47 +0000)]
CSPACE-4470 Refactor the resourceMap to use the service name rather than the fully qualified classname. Cleaner, and makes the map usable in converting refName to CSID.
Aron Roberts [Mon, 10 Oct 2011 23:37:00 +0000 (23:37 +0000)]
CSPACE-4468: Validation for creation of new Relation records now accepts either CSIDs or refNames as identifiers for the subject and object of the relation.
Aron Roberts [Mon, 10 Oct 2011 21:42:42 +0000 (21:42 +0000)]
CSPACE-4464: Ignore <uri> values in update payloads for Contacts records. The services now generate the value of that field, which usually will include contextual information for the owning authority and authority item.
Aron Roberts [Mon, 10 Oct 2011 21:26:23 +0000 (21:26 +0000)]
CSPACE-4468,CSPACE-4470: Added subjectRefName and objectRefName fields to Relation record schema in support of making refNames alternate identifiers for Relation records, alongside CSIDs. Added subjectDocumentType and objectDocumentType fields to Relation record schema to continue transitioning to new style field names, from ambiguous old style names like 'documentType1' and 'documentType2'.
Aron Roberts [Fri, 7 Oct 2011 23:07:00 +0000 (23:07 +0000)]
CSPACE-4464: The 'uri' values in lists of Contact records now reflect the context in which the list was requested; e.g. /personauthorities/{csid}/items/{csid}/contacts/{csid}, /orgauthorities/{csid}/items/{csid}/contacts/{csid}, or simply /contacts/{csid}.
Richard Millet [Wed, 5 Oct 2011 22:17:03 +0000 (22:17 +0000)]
CSPACE-3442: Added /roles/{csid}/accountroles/ resource to the "authorization" service. Use this method to get a list of accounts that are associated to a specified role.
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