]> git.aero2k.de Git - tmp/jakarta-migration.git/log
tmp/jakarta-migration.git
16 years agoCSPACE-1084: Deprecating "/search" from CO, Intake, Acquisition and replacing with...
Richard Millet [Fri, 12 Mar 2010 22:45:13 +0000 (22:45 +0000)]
CSPACE-1084: Deprecating "/search" from CO, Intake, Acquisition and replacing with "?kw" query parameter.  For example, instead of "/intakes/search?keywords=rich" use "/intakes?kw=rich"

16 years agoCSPACE-1159: Our Maven artifacts now implicitly inherit their <version> value from...
Richard Millet [Fri, 12 Mar 2010 20:50:29 +0000 (20:50 +0000)]
CSPACE-1159: Our Maven artifacts now implicitly inherit their <version> value from their parent pom file.  Our top level pom on the trunk is currently set to "0.6-SNAPSHOT."  Also, all CS artifacts that depend on other CS artifacts now depend on the current pom version (the pom variable ${project.version}) of those artifacts.

16 years agoCSPACE-1079. Work towards supporting search for documents by a field value. Some...
Patrick Schmitz [Wed, 10 Mar 2010 01:07:43 +0000 (01:07 +0000)]
CSPACE-1079. Work towards supporting search for documents by a field value. Some refactoring of the ServiceBinding and TenantBinding support, and some new utility methods.

16 years agoCSPACE-1079. Work towards supporting search for documents by a field value. Some...
Patrick Schmitz [Wed, 10 Mar 2010 01:01:13 +0000 (01:01 +0000)]
CSPACE-1079. Work towards supporting search for documents by a field value. Some refactoring of the ServiceBinding and TenantBinding support, and some new utility methods.

16 years agoCSPACE-590. Added support to get item list for a named OrgAuthority, based upon Perso...
Patrick Schmitz [Wed, 10 Mar 2010 00:33:25 +0000 (00:33 +0000)]
CSPACE-590. Added support to get item list for a named OrgAuthority, based upon PersonAuthority work. Built using some common methods in the repository/RepositoryClient.

16 years agoNOJIRA: Cleaning up Maven repository settings.
Richard Millet [Tue, 9 Mar 2010 05:56:11 +0000 (05:56 +0000)]
NOJIRA: Cleaning up Maven repository settings.

16 years agoCSPACE-1082: Created a Maven profile named "samples" to build the "sample" and "impor...
Richard Millet [Mon, 8 Mar 2010 22:46:55 +0000 (22:46 +0000)]
CSPACE-1082: Created a Maven profile named "samples" to build the "sample" and "import" modules.  Use Maven's "-P" option to build these modules.  For example, mvn install -Psamples

16 years agoCSPACE-1048 added non-debug log4j config
Sanjay Dalal [Thu, 4 Mar 2010 20:11:48 +0000 (20:11 +0000)]
CSPACE-1048 added non-debug log4j config

A    common/src/main/config/log/jboss-log4j-release.xml
M    common/build.xml

16 years agoNOJIRA: Adding missing dependency declaration on collectionobject.jaxb classes.
Richard Millet [Thu, 4 Mar 2010 00:27:40 +0000 (00:27 +0000)]
NOJIRA: Adding missing dependency declaration on collectionobject.jaxb classes.

16 years agoCSPACE-1034
Sanjay Dalal [Wed, 3 Mar 2010 22:56:41 +0000 (22:56 +0000)]
CSPACE-1034
!!! requires ant clean undeploy deploy at the trunk level !!!
removed log4j.properties from cspace-services.war
added log4j repositoryselector to avoid jboss jamming cspace war's log st. on top of its log st.
added jboss-log4j.xml to build (common/src/main/config/log), copied to jboss at deploy time, only org.collectionspace is in DEBUG cateogry, cspace/log/collectionspace.log contains cs log
moved bindnigs to common/src/main/config/services
removed log4j.jar from nuxeo-client/lib and from cspace-services.war
removed spring's log4jconfiglistener from web.xml that was shutting down logmanager

ant clean undeploy deploy at trunk level
test mvn test at trunk level

D    trunk/services/JaxRsServiceProvider/src/main/resources/log4j.properties
M    trunk/services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
M    trunk/services/JaxRsServiceProvider/pom.xml
A    trunk/services/common/src/main/java/org/collectionspace/services/common/log
A    trunk/services/common/src/main/java/org/collectionspace/services/common/log/CollectionSpaceLog4jRepositorySelector.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceServiceContextListener.java
A    trunk/services/common/src/main/config/log
A    trunk/services/common/src/main/config/log/jboss-log4j.xml
D    trunk/services/common/src/main/config/service-config.xml
D    trunk/services/common/src/main/config/tenant-bindings.xml
A    trunk/services/common/src/main/config/services
A  + trunk/services/common/src/main/config/services/service-config.xml
A  + trunk/services/common/src/main/config/services/tenant-bindings.xml
M    trunk/services/common/build.xml
D    trunk/3rdparty/nuxeo/nuxeo-client/lib/log4j.jar

16 years agoNOJIRA - remove unneeded import.
Patrick Schmitz [Wed, 3 Mar 2010 22:38:33 +0000 (22:38 +0000)]
NOJIRA - remove unneeded import.

16 years agoCSPACE-1101: Removed "package" dependency from the "install" target in our build...
Richard Millet [Wed, 3 Mar 2010 21:22:49 +0000 (21:22 +0000)]
CSPACE-1101: Removed "package" dependency from the "install" target in our build.xml Ant files.  Should cut a full "ant deploy" time almost in half.

16 years agoNOJIRA: Change the update policy on the Nuxeo snapshot repositories to "never" check...
Richard Millet [Wed, 3 Mar 2010 18:49:06 +0000 (18:49 +0000)]
NOJIRA: Change the update policy on the Nuxeo snapshot repositories to "never" check for updates.  This is assuming that we do not want updated artifacts from Nuxeo.

16 years agoNOJIRA disabled spring, nuxeo, resteasy debug logging
Sanjay Dalal [Wed, 3 Mar 2010 01:19:28 +0000 (01:19 +0000)]
NOJIRA disabled spring, nuxeo, resteasy debug logging
test: collectionobject

M    log4j.properties

16 years agoCSPACE-1088: Reverting SVN 1506 change (conditional runtime check for property before...
Richard Millet [Tue, 2 Mar 2010 22:34:50 +0000 (22:34 +0000)]
CSPACE-1088: Reverting SVN 1506 change (conditional runtime check for property before running performanceTests).  Instead, use Maven profile "perftests".  For example, mvn test -Pperftests.

16 years agoCSPACE-1088: Added a Maven profile to the PerformanceTests module. By default 'mvn...
Richard Millet [Tue, 2 Mar 2010 22:20:07 +0000 (22:20 +0000)]
CSPACE-1088: Added a Maven profile to the PerformanceTests module. By default 'mvn test' will now skip the tests inside the PerformanceTests module. Use "-Pperftests" to run the tests.

16 years agoNOJIRA conditionally enable perf tests (again). test execution prints the verbose...
Sanjay Dalal [Tue, 2 Mar 2010 21:27:53 +0000 (21:27 +0000)]
NOJIRA conditionally enable perf tests (again). test execution prints the verbose command to run the perf tests.
test: perf test without -Dcspace.perf and with -Dcspace.perf

M    PerformanceTests/src/test/java/org/collectionspace/services/PerformanceTests/test/PerformanceTest.java

16 years agoCSPACE-1082: Created a Maven profile named "samples" to build the "sample" and "impor...
Richard Millet [Tue, 2 Mar 2010 18:44:25 +0000 (18:44 +0000)]
CSPACE-1082: Created a Maven profile named "samples" to build the "sample" and "import" modules.  Use Maven's "-P" option to build these modules.  For example, mvn install -Psamples

16 years agoCSPACE-852. Added support in tenant-bindings.xml for authority reference fields in...
Patrick Schmitz [Tue, 2 Mar 2010 08:42:28 +0000 (08:42 +0000)]
CSPACE-852. Added support in tenant-bindings.xml for authority reference fields in collectionobject and acquisition schemas. Added {csid}/authorityrefs subresource support to CollectionObject and Acquisition.
Refactored the code that was in IntakeDocumentModelHandler (getAuthorityRefs) into RemoteDocumentModelHandlerImpl.
Added tests for both services.

16 years agoCSPACE-590, CSPACE-852. Added tests for getting a list of persons from a named (not...
Patrick Schmitz [Tue, 2 Mar 2010 01:55:53 +0000 (01:55 +0000)]
CSPACE-590, CSPACE-852. Added tests for getting a list of persons from a named (not CSID-based) authority.

16 years agoCSPACE-1026 recognizes whitespaces in repeated fields, was already recognizing elsewhere
Sanjay Dalal [Tue, 2 Mar 2010 01:34:41 +0000 (01:34 +0000)]
CSPACE-1026 recognizes whitespaces in repeated fields, was already recognizing elsewhere
added tests that read raw xml from a file without jaxb unmarshaller. added utility methods in AbstractServiceTestImpl for the same.
test: collectionobject tests

M    services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
A    services/collectionobject/client/src/test/resources/test-data/repfield_whitesp3.xml
A    services/collectionobject/client/src/test/resources/test-data/repfield_whitesp4.xml
A    services/collectionobject/client/src/test/resources/test-data/repfield_whitesp1.xml
A    services/collectionobject/client/src/test/resources/test-data/repfield_whitesp2.xml
M    services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
M    services/pom.xml
M    services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTestImpl.java
M    services/client/pom.xml

16 years agoCSPACE-590, CSPACE-852. Added support to get item list for a named PersonAuthority...
Patrick Schmitz [Tue, 2 Mar 2010 01:27:51 +0000 (01:27 +0000)]
CSPACE-590, CSPACE-852. Added support to get item list for a named PersonAuthority, prototyping basic facility. Built using some common methods in the repository/RepositoryClient. Almost there.

16 years agoCSPACE-1078: Updated Artifactory repos settings and apparently fixed the problem...
Richard Millet [Tue, 2 Mar 2010 00:52:25 +0000 (00:52 +0000)]
CSPACE-1078: Updated Artifactory repos settings and apparently fixed the problem with Maven making unneeded update checks for the Nuxeo snapshot artifacts.  Also added specific versions to some of our dependency declarations.

16 years agoCSPACE-590, CSPACE-852. Added support to get PersonAuthority by name, prototyping...
Patrick Schmitz [Tue, 2 Mar 2010 00:02:05 +0000 (00:02 +0000)]
CSPACE-590, CSPACE-852. Added support to get PersonAuthority by name, prototyping basic facility. Required changes to the StorageClient class-tree. Added tests for same. Still have to work out how to get sub-resources (trickier).

16 years agoCSPACE-1073 a snapshot of login-config.xml is in authentication/service/src/main...
Sanjay Dalal [Mon, 1 Mar 2010 21:19:35 +0000 (21:19 +0000)]
CSPACE-1073 a snapshot of login-config.xml is in authentication/service/src/main/resource/config. With ant deploy, this copied over to $JBOSS_HOME/server/cspace/conf/login-config.xml (after backuping it up to $JBOSS_HOME/server/cspace/conf/login-config.xml.org). Undeploy restores $JBOSS_HOME/server/cspace/conf/login-config.xml with $JBOSS_HOME/server/cspace/conf/login-config.xml.org

A    authentication/service/src/main/resources/config/login-config.xml
M    authentication/service/build.xml

16 years agoCSPACE-852. Added support in tenant-bindings.xml and in associated scanner to specify...
Patrick Schmitz [Mon, 1 Mar 2010 20:49:51 +0000 (20:49 +0000)]
CSPACE-852. Added support in tenant-bindings.xml and in associated scanner to specify authority reference fields in a schema. Added support for "authorityrefs" sub-resource, that returns a list of references, and some convenient info for them. Added some RefName utilities to pull apart refnames and produce useful pieces for clients and server to deal with.
Currently only working with Intake (must be ported to CollectionObject and Acquisition).
This may benefit from some refactoring once I get the other ports done.
To test this work, refactored the base test (AbstractServiceTestImpl.java) so that it is easier to produce tests that do not focus on CRUD (these an inherit from a new BaseServiceTest class (yes, it could use a better name).

16 years agoCSPACE-1053: Added Contact as a sub-resource of OrgAuthority and Organization.
Aron Roberts [Sat, 27 Feb 2010 01:32:13 +0000 (01:32 +0000)]
CSPACE-1053: Added Contact as a sub-resource of OrgAuthority and Organization.

16 years agoCSPACE-826: Minor after-completion tweaks to work that added Contacts as a sub-resour...
Aron Roberts [Sat, 27 Feb 2010 01:29:38 +0000 (01:29 +0000)]
CSPACE-826: Minor after-completion tweaks to work that added Contacts as a sub-resource of PersonAuthority / Person resources. Added BadRequestException-handling blocks to several places in resource class. Minor changes in client test to align better with client test of closely-related Organization service.

16 years agoNOJIRA: Attempting to address unnecessary Maven lookups for Nuxeo snapshot artifacts.
Richard Millet [Fri, 26 Feb 2010 23:46:25 +0000 (23:46 +0000)]
NOJIRA: Attempting to address unnecessary Maven lookups for Nuxeo snapshot artifacts.

16 years agoCSPACE-413: Initial CRUD+L performance suite.
Richard Millet [Fri, 26 Feb 2010 22:08:16 +0000 (22:08 +0000)]
CSPACE-413: Initial CRUD+L performance suite.

16 years agoCSPACE-1069: Need to parenthesize 'where' clause of DocumentHandler for correct NXQL...
Richard Millet [Fri, 26 Feb 2010 21:52:32 +0000 (21:52 +0000)]
CSPACE-1069: Need to parenthesize 'where' clause of DocumentHandler for correct NXQL -> SQL translation

16 years agoCSPACE-413: Initial CRUD+L performance suite.
Richard Millet [Fri, 26 Feb 2010 21:46:25 +0000 (21:46 +0000)]
CSPACE-413: Initial CRUD+L performance suite.

16 years agoCSPACE-823: Fixed typo 'servics' in three services-related namespace URIs in XSD...
Aron Roberts [Thu, 25 Feb 2010 23:41:46 +0000 (23:41 +0000)]
CSPACE-823: Fixed typo 'servics' in three services-related namespace URIs in XSD schemas.

16 years agoNOJIRA perf tests are disabled by default. use the following CL to run perf tests
Sanjay Dalal [Thu, 25 Feb 2010 23:04:34 +0000 (23:04 +0000)]
NOJIRA perf tests are disabled by default. use the following CL to run perf tests
mvn -Dcspace.perf=true -DforkMode=none test

ran perf test with and without the perf option

M    PerformanceTests/src/test/java/org/collectionspace/services/PerformanceTests/test/PerformanceTest.java
M    PerformanceTests/src/test/java/org/collectionspace/services/PerformanceTests/test/CollectionSpacePerformanceTest.java

16 years agoCSPACE-1066,CSPACE-1067: Intake schema in services layer changed to conform to Intake...
Aron Roberts [Thu, 25 Feb 2010 22:22:30 +0000 (22:22 +0000)]
CSPACE-1066,CSPACE-1067: Intake schema in services layer changed to conform to Intake schema on the project wiki. Eleven (11) Object Collecting Information Group fields have been removed. Also renamed three fields in the Intake schema for consistency with Service schema capitalization conventions: lowercase initial letter and interCaps. Due to changes in Nuxeo document type, will require running 'ant deploy' and a two-server restart.

16 years agoCSPACE-1009: Corrected typo in Acquisition field: was formerly (incorrect) 'fieldColl...
Aron Roberts [Thu, 25 Feb 2010 22:16:39 +0000 (22:16 +0000)]
CSPACE-1009: Corrected typo in Acquisition field: was formerly (incorrect) 'fieldCollectionData' and is now (correct) 'fieldCollectionDate'.

16 years agoCSPACE-1063: Renamed 'Item Status' vocabulary to 'Term Status' in vocabulary importer.
Aron Roberts [Thu, 25 Feb 2010 18:21:55 +0000 (18:21 +0000)]
CSPACE-1063: Renamed 'Item Status' vocabulary to 'Term Status' in vocabulary importer.

16 years agoCSPACE-1063: Created 'Item Status' vocabulary with values indicating status of items...
Aron Roberts [Thu, 25 Feb 2010 04:23:09 +0000 (04:23 +0000)]
CSPACE-1063: Created 'Item Status' vocabulary with values indicating status of items, or terms, in Vocabularies, PersonAuthorities, and OrgAuthorities.

16 years agoCSPACE-1009: Conformed Acqusitions schema in services layer to 'Limited for 0.5'...
Aron Roberts [Thu, 25 Feb 2010 03:08:11 +0000 (03:08 +0000)]
CSPACE-1009: Conformed Acqusitions schema in services layer to 'Limited for 0.5' schema on the wiki. Changes Nuxeo document type and requires an 'ant deploy'.

16 years agoCSPACE-1055,CSPACE-1056: Conformed Organization schema in services layer to 'Limited...
Aron Roberts [Wed, 24 Feb 2010 21:31:24 +0000 (21:31 +0000)]
CSPACE-1055,CSPACE-1056: Conformed Organization schema in services layer to 'Limited for 0.5' schema on the wiki. Added group, subBody, status fields; renamed description field to history, per Megan. Changes Nuxeo document type and requires an 'ant deploy'.

16 years agoCSPACE-897:CSPACE-895:CSPACE-896:CSPACE-914: Adding validation support Acquisition...
Richard Millet [Wed, 24 Feb 2010 17:51:08 +0000 (17:51 +0000)]
CSPACE-897:CSPACE-895:CSPACE-896:CSPACE-914: Adding validation support Acquisition, Intake, Relation, and CollectionObject services.

16 years agoNOJIRA: Updating Eclipse project settings.
Richard Millet [Wed, 24 Feb 2010 17:46:37 +0000 (17:46 +0000)]
NOJIRA: Updating Eclipse project settings.

16 years agoCSPACE-1054: Added status field to VocabularyItems services schema.
Aron Roberts [Wed, 24 Feb 2010 05:21:27 +0000 (05:21 +0000)]
CSPACE-1054: Added status field to VocabularyItems services schema.

16 years agoCSPACE-1040: Added status, honorific fields to Person schema.
Aron Roberts [Wed, 24 Feb 2010 02:29:02 +0000 (02:29 +0000)]
CSPACE-1040: Added status, honorific fields to Person schema.

16 years agoNOJIRA - fixed deploy/undeploy tasks of account and authentication services
Sanjay Dalal [Tue, 23 Feb 2010 22:43:13 +0000 (22:43 +0000)]
NOJIRA - fixed deploy/undeploy tasks of account and authentication services

D    trunk/services/authentication/pstore/src/main/resources/db/mysql/test_authn.sql
A  + trunk/services/authentication/pstore/src/main/resources/db/mysql/test_authentication.sql
M    trunk/services/authentication/pstore/build.xml
M    trunk/services/account/pstore/build.xml

16 years agoNOJIRA - added account service into deploy/undeploy
Sanjay Dalal [Tue, 23 Feb 2010 21:50:39 +0000 (21:50 +0000)]
NOJIRA - added account service into deploy/undeploy

M    build.xml

16 years agoCSPACE-826: Declaring public access to updateContact, deleteContact methods in Person...
Aron Roberts [Tue, 23 Feb 2010 21:32:32 +0000 (21:32 +0000)]
CSPACE-826: Declaring public access to updateContact, deleteContact methods in PersonAuthorityResource resolved long-standing "Could not find resource for relative ... of full path" error when accessing those operations.  Props to Patrick's sharp eyes!

16 years agoCSPACE-1032 anonymous access is disabled. Developers need to change $JBOSS_HOME/serve...
Sanjay Dalal [Tue, 23 Feb 2010 21:22:07 +0000 (21:22 +0000)]
CSPACE-1032 anonymous access is disabled. Developers need to change $JBOSS_HOME/server/cspace/conf/login-config.xml to add the CSpace JAAS LoginModule from /services/authentication/service/src/main/resources/config/jboss-login-config.xml. See wiki/email for more details. Service client properties are changed to use auth mode by default so that mvn test could still be used.
test: mvn test at service layer

M    services/JaxRsServiceProvider/src/main/resources/log4j.properties
M    services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java
M    services/client/src/test/java/org/collectionspace/services/client/test/ServiceLayerTest.java
M    services/client/src/main/resources/collectionspace-client.properties

16 years agoCSPACE-1043: Contact schema changed to conform to latest 'Limited for Release 0.4...
Aron Roberts [Tue, 23 Feb 2010 05:34:53 +0000 (05:34 +0000)]
CSPACE-1043: Contact schema changed to conform to latest 'Limited for Release 0.4 and 0.5' Contact Information Schema on the project wiki, plus a Notes field requested for PAHMA.

16 years agoCSPACE-888 added _index sql scripts to add indices to account and user related tables...
Sanjay Dalal [Sat, 20 Feb 2010 01:37:03 +0000 (01:37 +0000)]
CSPACE-888 added _index sql scripts to add indices to account and user related tables, changed create_db task to execute the scripts
CSPACE-1031 tenants table is separated from account. added accounts_tenants association table. tenant validation updated (if tenant id not in create request, takes from secuirty context), if in (create or update) the request, validates against valid tenants from the tenant table

Requires ant deploy (for authn service...also requires changes in login-config (see jboss-login-config.xml for updated snippet...tenant query has changed)

test: account and security tests with and without authn

M    services/authentication/service/src/main/resources/config/jboss-login-config.xml
A    services/authentication/pstore/src/main/resources/db/mysql/authentication_index.sql
M    services/authentication/pstore/build.xml
M    services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountValidatorHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M    services/account/jaxb/src/main/resources/accounts_common.xsd
M    services/account/pstore/src/test/resources/META-INF/persistence.xml
A    services/account/pstore/src/main/resources/db/mysql/account_index.sql
M    services/account/pstore/src/main/resources/db/mysql/test_account.sql
M    services/account/pstore/src/main/resources/db/mysql/account.sql
M    services/account/pstore/build.xml
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountTest.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/account/client/src/test/resources/META-INF/persistence.xml
M    services/security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java

16 years agoCSPACE-1033: Fixed 'No suitable driver' error in IDServiceJdbcImplTest
Aron Roberts [Fri, 19 Feb 2010 21:53:42 +0000 (21:53 +0000)]
CSPACE-1033: Fixed 'No suitable driver' error in IDServiceJdbcImplTest

16 years agoCSPACE-826,CSPACE-1030: Further integration of Contact as a sub-resource of PersonAut...
Aron Roberts [Fri, 19 Feb 2010 20:00:32 +0000 (20:00 +0000)]
CSPACE-826,CSPACE-1030: Further integration of Contact as a sub-resource of PersonAuthority/Person.  Retrieving contacts for a person has been added.  Initial UpdateContact and deleteContact code is also present but is currently commented out due to as-yet unresolved errors.   PersonAuthorityResource no longer directly invokes ContactResource, and ContactResource has been reverted to r1327 accordingly.

16 years agoCSPACE-1030: Ensure that Contact common part label is set correctly, when populating...
Aron Roberts [Fri, 19 Feb 2010 18:45:18 +0000 (18:45 +0000)]
CSPACE-1030: Ensure that Contact common part label is set correctly, when populating sample record for 'create' test in ContactServiceTest.

16 years agoCSPACE-859 added timestamps to accounts_common, users,roles and users_roles tables
Sanjay Dalal [Fri, 19 Feb 2010 01:15:29 +0000 (01:15 +0000)]
CSPACE-859 added timestamps to accounts_common, users,roles and users_roles tables
CSPACE-1011 added personRefName to account schema
Tenant validation is done only for create that also temporarily till authn is mandatory
test: account test with security

M    services/authentication/jaxb/src/main/resources/authentication_identity_provider.xsd
M    services/authentication/jaxb/pom.xml
M    services/authentication/pstore/src/main/resources/db/mysql/test_authn.sql
M    services/authentication/pstore/src/main/resources/db/mysql/authentication.sql
M    services/pom.xml
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountValidatorHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M    services/account/jaxb/src/main/resources/accounts_common.xsd
M    services/account/jaxb/pom.xml
M    services/account/pstore/src/main/resources/db/mysql/test_account.sql
M    services/account/pstore/src/main/resources/db/mysql/account.sql
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountTest.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java

16 years agoNOJIRA added capability to read input for JAXB object from a file(in classpath)/stream.
Sanjay Dalal [Thu, 18 Feb 2010 20:38:08 +0000 (20:38 +0000)]
NOJIRA added capability to read input for JAXB object from a file(in classpath)/stream.
Added testCambridge.xml test data to use from createFromFile test
test: collectionobject tests against local server and against jupiter.collectionspace.org

M    client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTestImpl.java
M    client/src/main/java/org/collectionspace/services/client/AbstractServiceClientImpl.java
M    collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
A    collectionobject/client/src/test/resources/test-data
A    collectionobject/client/src/test/resources/test-data/testCambridge.xml

16 years agoCSPACE-826: Reorganized client test class with groups, and to further accommodate...
Aron Roberts [Thu, 18 Feb 2010 05:28:46 +0000 (05:28 +0000)]
CSPACE-826: Reorganized client test class with groups, and to further accommodate adding contacts as sub-resources of person and personAuthority.  Added stubs for additional operations throughout relevant client and server classes.  deleteContact method is currently commented out with as-yet-unresolved "could not find resource for relative ... of full path" issue.

16 years agoCSPACE-1010 made length of userid in account consistent with that in users and users_...
Sanjay Dalal [Wed, 17 Feb 2010 23:01:13 +0000 (23:01 +0000)]
CSPACE-1010 made length of userid in account consistent with that in users and users_roles
test: account tests with security

M    services/account/jaxb/src/main/resources/accounts_common.xsd
M    services/account/pstore/src/main/resources/db/mysql/account.sql

16 years agoCSPACE-1010 added constraints to account, users and users_roles tables. added validat...
Sanjay Dalal [Wed, 17 Feb 2010 22:48:30 +0000 (22:48 +0000)]
CSPACE-1010 added constraints to account, users and users_roles tables. added validation tests to account service client. in case of constraint violation (performed by db), 500 is returned instead of 400.
account,authn poms use consistent mysql jdbc driver version
test: account, security

M    services/authentication/jaxb/src/main/resources/authentication_identity_provider.xsd
M    services/authentication/pstore/src/main/resources/db/mysql/authentication.sql
M    services/authentication/pstore/pom.xml
M    services/account/jaxb/src/main/resources/accounts_common.xsd
M    services/account/pstore/src/main/resources/db/mysql/account.sql
M    services/account/pstore/pom.xml
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java

16 years agoCSPACE-787 changes suggested during the review CSPACE-886
Sanjay Dalal [Wed, 17 Feb 2010 21:24:46 +0000 (21:24 +0000)]
CSPACE-787 changes suggested during the review CSPACE-886
CSPACE-1010 added email validation (partial checkin)
test collectionobject account security

M    collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectValidatorHandler.java
M    account/service/src/main/java/org/collectionspace/services/account/storage/AccountValidatorHandler.java

16 years agoCSPACE-489: Clean up extra VocabularyItems created during client tests of the Vocabul...
Aron Roberts [Wed, 17 Feb 2010 02:05:58 +0000 (02:05 +0000)]
CSPACE-489: Clean up extra VocabularyItems created during client tests of the Vocabulary service.  Clean up of sub-resource items has been working in client tests of the Person and Organization services, but a single line of code required when doing so was inadvertently omitted in the Vocabulary service.

16 years agoCSPACE-709 added war manifest with properties Vendor, Package and Release
Sanjay Dalal [Tue, 16 Feb 2010 22:23:02 +0000 (22:23 +0000)]
CSPACE-709 added war manifest with properties Vendor, Package and Release

M    JaxRsServiceProvider/pom.xml

16 years agoCSPACE-1016 service tests can now be run with auth
Sanjay Dalal [Tue, 16 Feb 2010 21:24:44 +0000 (21:24 +0000)]
CSPACE-1016 service tests can now be run with auth
test: all service tests (except id) with and without auth. id service tests fail locally due to a classpath issue (not able to find jdbc driver)

If the auth mode is disabled, you would see the following emitted from AbstractServiceClientImpl during construction

INFO main org.collectionspace.services.client.AbstractServiceClientImpl:191 setupHttpClient() : no auth mode!

Required system properties to run the tests with authentication enabled are

1. cspace.auth to true, indicates to use HTTP authentication. We will use BASIC authentication in these tests.
2. cspace.user indicates user name to use
3. cspace.password indicates password to use (clear text ... this is only a test)
4. cspace.server.secure true, indicates that services layer is enabled for security. Some tests still use this property. This was added because web.xml changes were required to enable security on the server side. With Spring security, it is no more needed on the server side. However, some client side tests (account, security, collecitonobject, relation) would still look for it.

command line would be

mvn -Dcspace.server.secure=true -DforkMode=never -Dcspace.auth=true -Dcspace.user=test -Dcspace.password=test test

Note that forkMode=never is required to pass properties to the JVM. Without that property, maven may start a new process to run the test and would not pass the required properties.

_M   trunk/services/PerformanceTests
M    trunk/services/dimension/client/src/main/java/org/collectionspace/services/client/DimensionClient.java
M    trunk/services/acquisition/client/src/main/java/org/collectionspace/services/client/AcquisitionClient.java
M    trunk/services/contact/client/src/main/java/org/collectionspace/services/client/ContactClient.java
_M   trunk/services/account/pstore
M    trunk/services/organization/client/src/main/java/org/collectionspace/services/client/OrgAuthorityClient.java
M    trunk/services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClient.java
M    trunk/services/intake/client/src/main/java/org/collectionspace/services/client/IntakeClient.java
M    trunk/services/client/src/test/java/org/collectionspace/services/client/test/ServiceLayerTest.java
M    trunk/services/client/src/main/java/org/collectionspace/services/client/AbstractServiceClientImpl.java

16 years agoNOJIRA removed unused dependencies and war build.
Sanjay Dalal [Tue, 16 Feb 2010 21:20:59 +0000 (21:20 +0000)]
NOJIRA removed unused dependencies and war build.
review: aron

_M   id
M    id/service/pom.xml
M    id/pom.xml

16 years agoCSPACE-735 Added support for getFiltered to fetch totalItem count when pagination...
Patrick Schmitz [Tue, 16 Feb 2010 06:01:55 +0000 (06:01 +0000)]
CSPACE-735 Added support for getFiltered to fetch totalItem count when pagination is in use.
Added support in vocabulary, personAuthority, and orgAuthority to make lists (of authorities as well as items) return pagination information in payload. This is not part of the individual item payloads, and so does not impact the nuxeo schemas.

16 years agoCSPACE-909 Add validation support. Added tests for same. Fixed bug in updateNonExiste...
Patrick Schmitz [Tue, 16 Feb 2010 01:10:21 +0000 (01:10 +0000)]
CSPACE-909 Add validation support. Added tests for same. Fixed bug in updateNonExistentItem that was only exposed through the validation codepath.

16 years agoCSPACE-879, CSPACE-908 Added support for displayNameComputed flag, added validation...
Patrick Schmitz [Mon, 15 Feb 2010 19:58:19 +0000 (19:58 +0000)]
CSPACE-879, CSPACE-908 Added support for displayNameComputed flag, added validation support to verify displayNameComputed and displayName logic. Added tests to verify this functionality.
Missed

16 years agoCSPACE-879, CSPACE-908 Added support for displayNameComputed flag, added validation...
Patrick Schmitz [Mon, 15 Feb 2010 19:31:01 +0000 (19:31 +0000)]
CSPACE-879, CSPACE-908 Added support for displayNameComputed flag, added validation support to verify displayNameComputed and displayName logic. Added tests to verify this functionality.

16 years agoCSPACE-826. Contacts can now be created and read as a subordinate resource of PersonA...
Aron Roberts [Sat, 13 Feb 2010 01:36:25 +0000 (01:36 +0000)]
CSPACE-826. Contacts can now be created and read as a subordinate resource of PersonAuthority and Person.  See comments in this JIRA issue for approach taken and remaining tasks.

16 years agoCSPACE-597 added setProxy method to VocabClient to pick up httpclient with props...
Sanjay Dalal [Sat, 13 Feb 2010 01:36:15 +0000 (01:36 +0000)]
CSPACE-597 added setProxy method to VocabClient to pick up httpclient with props set for authentication. Properties required to pass to run in auth mode are -Dcspace.auth=true -Dcspace.user=test -Dcspace.password=test (see services/trunk/services/client/src/main/resources/collectionspace-client.properties)
Added log4j.properties. Removed programmatic configuration of log4j.
test: import, vocab client

M    vocabulary/import/src/main/java/org/collectionspace/services/vocabulary/importer/VocabularyBaseImport.java
A    vocabulary/import/src/main/resources/log4j.properties
M    vocabulary/import/pom.xml
M    vocabulary/client/src/main/java/org/collectionspace/services/client/VocabularyClient.java

16 years agoCSPACE-905 Added ValidatorHandler, and tests to check displayNameComputed and display...
Patrick Schmitz [Sat, 13 Feb 2010 00:27:57 +0000 (00:27 +0000)]
CSPACE-905 Added ValidatorHandler, and tests to check displayNameComputed and displayName relationship on update.

16 years agoNOJIRA Updated sample code to match refactered utils code.
Patrick Schmitz [Fri, 12 Feb 2010 22:34:11 +0000 (22:34 +0000)]
NOJIRA Updated sample code to match refactered utils code.

16 years agoCSPACE-718 Added support for marking displayName computed or not, so can override...
Patrick Schmitz [Fri, 12 Feb 2010 22:20:47 +0000 (22:20 +0000)]
CSPACE-718 Added support for marking displayName computed or not, so can override to set a displayName, and revert to the computed form.

16 years agoCSPACE-916 class name consistency
Sanjay Dalal [Fri, 12 Feb 2010 18:35:11 +0000 (18:35 +0000)]
CSPACE-916 class name consistency
test: service level tests

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/CollectionObjectDocumentModelHandler.java
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/dimension/service/src/main/java/org/collectionspace/services/dimension/DimensionResource.java
M    services/dimension/service/src/main/java/org/collectionspace/services/dimension/nuxeo/DimensionDocumentModelHandler.java
M    services/dimension/client/src/test/java/org/collectionspace/services/client/test/DimensionServiceTest.java
M    services/dimension/client/src/main/java/org/collectionspace/services/client/DimensionClient.java
M    services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClientFactory.java
D    services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResource.java
M    services/common/src/main/java/org/collectionspace/services/common/context/RemoteServiceContextImpl.java
D    services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
A  + services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContextImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
A  + services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
D    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClient.java
A  + services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResourceImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/query/nuxeo/QueryManagerNuxeoImpl.java
A  + services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java
D    services/common/src/main/java/org/collectionspace/services/common/config/AbstractConfigReader.java
D    services/common/src/main/java/org/collectionspace/services/common/config/ServicesConfigReader.java
D    services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java
A  + services/common/src/main/java/org/collectionspace/services/common/config/AbstractConfigReaderImpl.java
A  + services/common/src/main/java/org/collectionspace/services/common/config/ServicesConfigReaderImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/vocabulary/VocabManagerImpl.java
D    services/common/src/main/java/org/collectionspace/services/common/document/AbstractDocumentHandler.java
D    services/common/src/main/java/org/collectionspace/services/common/document/AbstractMultipartDocumentHandler.java
A  + services/common/src/main/java/org/collectionspace/services/common/document/AbstractDocumentHandlerImpl.java
A  + services/common/src/main/java/org/collectionspace/services/common/document/AbstractMultipartDocumentHandlerImpl.java
D    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
A  + services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClientImpl.java
D    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandler.java
A  + services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandlerImpl.java
M    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M    services/common/src/main/config/service-config.xml
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/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/contact/service/src/main/java/org/collectionspace/services/contact/ContactResource.java
M    services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java
M    services/contact/client/src/test/java/org/collectionspace/services/client/test/ContactServiceTest.java
M    services/contact/client/src/main/java/org/collectionspace/services/client/ContactClient.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/account/client/src/main/java/org/collectionspace/services/client/AccountClient.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/OrgAuthorityResource.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrganizationDocumentModelHandler.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrgAuthorityDocumentModelHandler.java
M    services/organization/client/src/test/java/org/collectionspace/services/client/test/OrgAuthorityServiceTest.java
M    services/organization/client/src/main/java/org/collectionspace/services/client/OrgAuthorityClient.java
M    services/person/service/src/main/java/org/collectionspace/services/person/PersonAuthorityResource.java
M    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonDocumentModelHandler.java
M    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonAuthorityDocumentModelHandler.java
M    services/person/client/src/test/java/org/collectionspace/services/client/test/PersonAuthorityServiceTest.java
M    services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClient.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyItemDocumentModelHandler.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyDocumentModelHandler.java
M    services/vocabulary/client/src/test/java/org/collectionspace/services/client/test/VocabularyServiceTest.java
M    services/vocabulary/client/src/main/java/org/collectionspace/services/client/VocabularyClient.java
M    services/security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java
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/IntakeDocumentModelHandler.java
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/relation/service/src/main/java/org/collectionspace/services/relation/NewRelationResource.java
M    services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java
M    services/relation/client/src/test/java/org/collectionspace/services/client/test/RelationServiceTest.java
M    services/relation/client/src/main/java/org/collectionspace/services/client/RelationClient.java
D    services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTest.java
A  + services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTestImpl.java
M    services/client/src/main/java/org/collectionspace/services/client/TestServiceClient.java
A  + services/client/src/main/java/org/collectionspace/services/client/AbstractServiceClientImpl.java
D    services/client/src/main/java/org/collectionspace/services/client/BaseServiceClient.java

16 years agoCSPACE-834: Service consumer can retreive a list Intake records (if any) associated...
Richard Millet [Thu, 11 Feb 2010 03:57:18 +0000 (03:57 +0000)]
CSPACE-834: Service consumer can retreive a list Intake records (if any) associated to a CollectionObject from the CollectionObject service.

16 years agoCSPACE-870 downgraded spring security from 3.0.2.CI-SNAPSHOT to 3.0.1.RELEASE for...
Sanjay Dalal [Tue, 9 Feb 2010 23:02:01 +0000 (23:02 +0000)]
CSPACE-870 downgraded spring security from 3.0.2.CI-SNAPSHOT to 3.0.1.RELEASE for good. Snapshot was recently removed from maven repository failing the build.
test: security test and all service tests (with anonymous)

ant deploy required

M    services/authentication/service/pom.xml
M    services/JaxRsServiceProvider/pom.xml
D    services/common/lib/spring/spring-security-web-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/spring-security-core-3.0.1.RELEASE.jar
AM   services/common/lib/spring/spring-security-acl-3.0.1.RELEASE.jar
D    services/common/lib/spring/spring-security-core-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/spring-security-config-3.0.1.RELEASE.jar
D    services/common/lib/spring/spring-security-acl-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/spring-security-web-3.0.1.RELEASE.jar
D    services/common/lib/spring/spring-security-config-3.0.2.CI-SNAPSHOT.jar
M    services/pom.xml

16 years agoCSPACE-870 Integrated Spring Security 3.0.2.CI-SNAPSHOT and Spring 3.0.0.RELEASE...
Sanjay Dalal [Tue, 9 Feb 2010 22:32:22 +0000 (22:32 +0000)]
CSPACE-870 Integrated Spring Security 3.0.2.CI-SNAPSHOT and Spring 3.0.0.RELEASE. The JAAS-based CS identity provider (CSIP) is configured successfully as a JAAS authn provider in Spring Security. Added Spring security specific AuthorityGranter and UserDetailsService (test) into authn service.
Refactored DatabaseRealm and CSpaceJBossDBLoginModule (needs package change in login-config.xml of JBoss).
ant deploy is required to copy the Spring specific jars to cspace/lib (of cspace domain). See services/common/lib/README.txt
Spring security is enabled by default. Anonymous access is also enabled by default (allows all tests to run without HTTP basic auth). Security tests could be run with client side security enabled (no need to bounce the server)

A    services/authentication/service/src/main/java/org/collectionspace/authentication/realm
A    services/authentication/service/src/main/java/org/collectionspace/authentication/realm/CSpaceRealm.java
A  + services/authentication/service/src/main/java/org/collectionspace/authentication/realm/CSpaceDbRealm.java
A    services/authentication/service/src/main/java/org/collectionspace/authentication/spring
A    services/authentication/service/src/main/java/org/collectionspace/authentication/spring/CSpaceUserDetailsService.java
A    services/authentication/service/src/main/java/org/collectionspace/authentication/spring/CSpaceAuthorityGranter.java
D    services/authentication/service/src/main/java/org/collectionspace/authentication/CSpaceJBossDBLoginModule.java
D    services/authentication/service/src/main/java/org/collectionspace/authentication/DatabaseRealm.java
A    services/authentication/service/src/main/java/org/collectionspace/authentication/jaas
A  + services/authentication/service/src/main/java/org/collectionspace/authentication/jaas/CSpaceJBossDBLoginModule.java
M    services/authentication/service/src/main/resources/config/jboss-login-config.xml
M    services/authentication/service/pom.xml
M    services/authentication/service/build.xml
M    services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
A    services/JaxRsServiceProvider/src/main/webapp/WEB-INF/login.conf
A    services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml
M    services/JaxRsServiceProvider/pom.xml
M    services/JaxRsServiceProvider/build.xml
A    services/common/lib/spring
AM   services/common/lib/spring/org.springframework.asm-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/org.springframework.jdbc-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/spring-security-web-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/org.springframework.context-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/spring-security-acl-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/org.springframework.beans-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/org.springframework.core-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/spring-security-config-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/org.springframework.web-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/spring-security-core-3.0.2.CI-SNAPSHOT.jar
AM   services/common/lib/spring/org.springframework.expression-3.0.0.BUILD-20100208195804.jar
AM   services/common/lib/spring/org.springframework.aop-3.0.0.BUILD-20100208195804.jar
M    services/common/lib/README.txt
M    services/common/build.xml

16 years agoCSPACE-1013: Changed versions of client JARs in dependencies section of POM to use...
Aron Roberts [Tue, 9 Feb 2010 21:22:21 +0000 (21:22 +0000)]
CSPACE-1013: Changed versions of client JARs in dependencies section of POM to use value of cspace.services.client.version property, rather than 1.0; module now builds successfully.

16 years agoCSPACE-413: Adding module for performance tests. Contains an initial simple test...
Richard Millet [Mon, 8 Feb 2010 18:34:37 +0000 (18:34 +0000)]
CSPACE-413: Adding module for performance tests.  Contains an initial simple test that creates 1000 records and then deletes them.

16 years agoCSPACE-949: Fixed bug in Nuxeo layouts-contrib.xml file. Also, added placeholders...
Richard Millet [Mon, 8 Feb 2010 18:13:21 +0000 (18:13 +0000)]
CSPACE-949: Fixed bug in Nuxeo layouts-contrib.xml file.  Also, added placeholders for boolean flag for indicating whether or not there is a computed display name that should be used instead of the default displayName.

16 years agoCSPACE-873: Acquisition Source is now a repeatable field in Acquisition records....
Aron Roberts [Sat, 6 Feb 2010 01:27:38 +0000 (01:27 +0000)]
CSPACE-873: Acquisition Source is now a repeatable field in Acquisition records. Also renamed nearly all other fields in the Acquisitions schema for consistency with Service schema capitalization conventions: lowercase initial letter and interCaps. IMPORTANT: Due to changes in Nuxeo document type, will require running 'ant deploy' and a two-server restart.

16 years agoCSPACE-413: Adding module for performance tests. Contains an initial simple test...
Richard Millet [Fri, 5 Feb 2010 22:57:05 +0000 (22:57 +0000)]
CSPACE-413: Adding module for performance tests.  Contains an initial simple test that creates 1000 records and then deletes them.

16 years agoCSPACE-737: Added fields to Contact serice, conforming to current 0.5 wireframe and...
Aron Roberts [Thu, 4 Feb 2010 06:34:47 +0000 (06:34 +0000)]
CSPACE-737: Added fields to Contact serice, conforming to current 0.5 wireframe and representing a subset of complete contact schema.  Use numbered elements ending in 1..3 to simulate repeatable fields, per team decision for 0.5; will revisit in subsequent releases.

16 years agoCSPACE-892 trimming whitespaces from repository client name. need more tests!
Sanjay Dalal [Wed, 3 Feb 2010 23:41:06 +0000 (23:41 +0000)]
CSPACE-892 trimming whitespaces from repository client name. need more tests!
test: mvn test at the service layer

M    services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java

16 years agoCSPACE-773,CSPACE-872,CSPACE-874,CSPACE-875: Multiple revisions to names and repeatab...
Aron Roberts [Wed, 3 Feb 2010 02:00:37 +0000 (02:00 +0000)]
CSPACE-773,CSPACE-872,CSPACE-874,CSPACE-875: Multiple revisions to names and repeatability attributes of fields in the CollectionObject Common schema.  IMPORTANT: Due to changes in Nuxeo document type, will require running 'ant deploy' and a two-server restart.  Renamed responsibleDept to responsibleDepartment and distFeatures to distinguishingFeatures to conform to naming conventions for all other fields in schema.  Made responsibleDepartment repeatable. Removed repeatability of otherNumber, for now.  Added missing fields objectNameLevel and contentScript.  Fixed typo (Earlierist) in dateEarliestSingleQualifier.

16 years agoCSPACE-375: Trivial tweaks to user-visible messages relating to workspace detection...
Aron Roberts [Tue, 2 Feb 2010 21:35:57 +0000 (21:35 +0000)]
CSPACE-375: Trivial tweaks to user-visible messages relating to workspace detection and creation, including clarification of automatic workspace creation attempts by emitting two WARN-level messages, and uniform capitalization.

16 years agoCSPACE-685: ServiceLayerTest now uses a BaseServiceClient-derived client, to facilita...
Aron Roberts [Sat, 30 Jan 2010 01:29:50 +0000 (01:29 +0000)]
CSPACE-685: ServiceLayerTest now uses a BaseServiceClient-derived client, to facilitate testing with authentication enabled.

16 years agoCSPACE-396, CSPACE-787, CSPACE-400
Sanjay Dalal [Fri, 29 Jan 2010 22:55:28 +0000 (22:55 +0000)]
CSPACE-396, CSPACE-787, CSPACE-400
Added validation handler. One or more handlers could configured in service binding. If a handler is configured for the service, the service layer callsback on the handler before create and update operations. Example validatorHandlers could be found in Account and CollectionObject services. Sends 400 (bad request) if  validation fails.
Deleted DocumentHandlerFactory.java and moved that code to AbstractServiceContext.java. Service context (that is aware of ther service binding) also acts as a factory for various handlers (validator, document) configured in the binding.
tests: account validation (userid, tenant info), collectionobject (othernumber), all service tests

M    services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/CollectionObjectResource.java
A    services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectValidatorHandler.java
M    services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
M    services/dimension/service/src/main/java/org/collectionspace/services/dimension/DimensionResource.java
M    services/common/src/main/java/org/collectionspace/services/common/ServiceException.java
M    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
M    services/common/src/main/java/org/collectionspace/services/common/context/MultipartServiceContext.java
M    services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
M    services/common/src/main/java/org/collectionspace/services/common/context/MultipartServiceContextImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/document/AbstractDocumentHandler.java
A    services/common/src/main/java/org/collectionspace/services/common/document/ValidatorHandler.java
D    services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandlerFactory.java
A    services/common/src/main/java/org/collectionspace/services/common/document/InvalidDocumentException.java
M    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M    services/common/src/main/config/tenant-bindings.xml
M    services/common/src/main/resources/service.xsd
M    services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionResource.java
M    services/contact/service/src/main/java/org/collectionspace/services/contact/ContactResource.java
A    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountValidatorHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountJpaFilter.java
M    services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/OrgAuthorityResource.java
_M   services/organization/import
M    services/person/service/src/main/java/org/collectionspace/services/person/PersonAuthorityResource.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java
M    services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeResource.java
M    services/relation/service/src/main/java/org/collectionspace/services/relation/NewRelationResource.java

16 years agoCSPACE-787 As part of the work towards introducing the validation handlers, document...
Sanjay Dalal [Wed, 27 Jan 2010 20:05:08 +0000 (20:05 +0000)]
CSPACE-787 As part of the work towards introducing the validation handlers, document handler configuration should be externalized in service binding as well. This checkin removes all service specific document handler factories (phew, one less class to implement!). Service binding now includes the name of the documenthandler class to use. A single non-abstract DocumentHandlerFacotry is used to create document handler based on the class name provided from the service binding. The document handler classes need to be in classpath of cspace-services.war.

!!THIS CHANGE REQUIRES TO HOTDEPLOY THE SERVICE LAYER AFTER COPYING THE TENANT BINDINGS TO THE CSPACE DOMAIN.!!

test: mvn test at service level

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/CollectionObjectHandlerFactory.java
M    services/dimension/service/src/main/java/org/collectionspace/services/dimension/DimensionResource.java
D    services/dimension/service/src/main/java/org/collectionspace/services/dimension/nuxeo/DimensionHandlerFactory.java
M    services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionResource.java
D    services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionHandlerFactory.java
M    services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
M    services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
M    services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandlerFactory.java
M    services/common/src/main/config/tenant-bindings.xml
M    services/common/src/main/resources/service.xsd
M    services/contact/service/src/main/java/org/collectionspace/services/contact/ContactResource.java
D    services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactHandlerFactory.java
D    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountHandlerFactory.java
M    services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/OrgAuthorityResource.java
D    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrgAuthorityHandlerFactory.java
D    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrganizationHandlerFactory.java
M    services/person/service/src/main/java/org/collectionspace/services/person/PersonAuthorityResource.java
D    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonAuthorityHandlerFactory.java
D    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonHandlerFactory.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java
D    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyItemHandlerFactory.java
D    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyHandlerFactory.java
M    services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeResource.java
D    services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeHandlerFactory.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/nuxeo/RelationHandlerFactory.java

16 years agoCSPACE-532: Added 'cspace.services.client.version' property or (to 'sample' packages...
Aron Roberts [Tue, 26 Jan 2010 22:28:00 +0000 (22:28 +0000)]
CSPACE-532: Added 'cspace.services.client.version' property or (to 'sample' packages) hard-coded 0.5-SNAPSHOT client version to additional POMs, for the org.collectionspace.services.client dependencies, and for several service-specific client package dependencies missed in earlier work on this task.  Removed the dependency on '...services.account' introduced - likely in error - to the POM for security.client in r1279.

16 years agoCSPACE-532: Revised the versions of two client module dependencies in IntegrationTest...
Aron Roberts [Tue, 26 Jan 2010 21:11:07 +0000 (21:11 +0000)]
CSPACE-532: Revised the versions of two client module dependencies in IntegrationTests POM, to use the variable pointing to the current snapshots or final versions of client code for the collectionobject and intake services.

16 years agoNOJIRA: Added '...services.acquisition', flagged by NetBeans as a necessary dependenc...
Aron Roberts [Tue, 26 Jan 2010 21:05:26 +0000 (21:05 +0000)]
NOJIRA: Added '...services.acquisition', flagged by NetBeans as a necessary dependency (due to use of JAXB-generated classes in that package by AcquisitionServiceTest), to POM in 'acquisitions.client' module.

16 years agoCSPACE-685, CSPACE-532: Added '...services.account', flagged by NetBeans as a necessa...
Aron Roberts [Tue, 26 Jan 2010 20:47:49 +0000 (20:47 +0000)]
CSPACE-685, CSPACE-532: Added '...services.account', flagged by NetBeans as a necessary dependency, to POM in 'security' module (e.g. for building and running AuthenticationServiceTest).  Revised version of ...services.account.client dependency in POM to use the variable added in CSPACE-532, pointing to current snapshot or final version of client code.

16 years agocspace-789 partial search on account. query parameters are sn for screenname, uid...
Sanjay Dalal [Tue, 26 Jan 2010 17:27:05 +0000 (17:27 +0000)]
cspace-789 partial search on account. query parameters are sn for screenname, uid for userid, email for email. query parameters could be ANDed. AccountJpaFilter has where clause
test: added search tests on account

M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClient.java
M    services/common/src/main/java/org/collectionspace/services/common/document/DocumentFilter.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
A    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountJpaFilter.java
A    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageConstants.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/account/client/src/main/java/org/collectionspace/services/client/AccountClient.java
M    services/account/client/src/main/java/org/collectionspace/services/client/AccountProxy.java
_M   services/organization/client

16 years agoCSPACE-815 added fine-grained callbacks on prepare and complete
Sanjay Dalal [Sat, 23 Jan 2010 00:29:56 +0000 (00:29 +0000)]
CSPACE-815 added fine-grained callbacks on prepare and complete
mvn test at services

M    services/dimension/service/src/main/java/org/collectionspace/services/dimension/nuxeo/DimensionDocumentModelHandler.java
M    services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
A    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaDocumentFilter.java
M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClient.java
M    services/common/src/main/java/org/collectionspace/services/common/document/AbstractDocumentHandler.java
M    services/common/src/main/java/org/collectionspace/services/common/document/DocumentFilter.java
M    services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandler.java
A    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoDocumentFilter.java
M    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M    services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M    services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    services/account/client/src/main/java/org/collectionspace/services/client/AccountClient.java
M    services/account/client/src/main/java/org/collectionspace/services/client/AccountProxy.java
_M   services/organization/service
M    services/organization/service/src/main/java/org/collectionspace/services/organization/OrgAuthorityResource.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrganizationDocumentModelHandler.java
M    services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrgAuthorityDocumentModelHandler.java
_M   services/organization/jaxb
_M   services/person/service
M    services/person/service/src/main/java/org/collectionspace/services/person/PersonAuthorityResource.java
M    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonDocumentModelHandler.java
M    services/person/service/src/main/java/org/collectionspace/services/person/nuxeo/PersonAuthorityDocumentModelHandler.java
_M   services/person/jaxb
_M   services/person/client
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyItemDocumentModelHandler.java
M    services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyDocumentModelHandler.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/nuxeo/RelationDocumentModelHandler.java

16 years agoCSPACE-532: Client modules in all services now create JARs for installation and repos...
Aron Roberts [Fri, 22 Jan 2010 22:32:41 +0000 (22:32 +0000)]
CSPACE-532: Client modules in all services now create JARs for installation and repository deployment whose filenames include the value of the 'cspace.services.client.version' property, in services/trunk/pom.xml, currently set to '0.5-SNAPSHOT'.  Created 0.4 and 0.5-SNAPSHOT client JARs for each service's client module and deployed these to the project Maven repository.  Set the dependency of the standalone SDK package to the 0.4 version of the collectionobject client JAR.

16 years agoCSPACE-685: Rewrote submitRequest() methods in AbstractServiceTest to use TestService...
Aron Roberts [Thu, 21 Jan 2010 21:06:21 +0000 (21:06 +0000)]
CSPACE-685: Rewrote submitRequest() methods in AbstractServiceTest to use TestServiceClient, derived from BaseServiceClient, to help facilitate testing both authenticated and unauthenticated connections.

16 years agoCSPACE-774: Adding a clause to the getFiltered() method to exclude Nuxeo document...
Richard Millet [Tue, 19 Jan 2010 21:45:29 +0000 (21:45 +0000)]
CSPACE-774: Adding a clause to the getFiltered() method to exclude Nuxeo document proxies from all queries.

16 years agoCSPACE-774 - Filter proxies from query to get items. Should help with perf, although...
Patrick Schmitz [Tue, 19 Jan 2010 17:04:54 +0000 (17:04 +0000)]
CSPACE-774 - Filter proxies from query to get items. Should help with perf, although probably still need to bump slice size.

16 years agoNOJIRA: Adding missing 'resources' to comply with Maven standards.
Richard Millet [Fri, 15 Jan 2010 23:49:25 +0000 (23:49 +0000)]
NOJIRA: Adding missing 'resources' to comply with Maven standards.

16 years agoCSPACE-753: Added item term search functionality to Person and Organization services.
Richard Millet [Fri, 15 Jan 2010 09:22:47 +0000 (09:22 +0000)]
CSPACE-753: Added item term search functionality to Person and Organization services.