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
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
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.
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
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
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.
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
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.
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
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.
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.
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
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
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
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
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.
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.
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.
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.
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.
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.
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
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
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.
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.
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.
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.
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
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
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.
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.
Richard Millet [Wed, 13 Jan 2010 00:01:08 +0000 (00:01 +0000)]
NOJIRA: Adding 'svn propset svn:keywords "Revision"' to service resource files so the "LastChangeRevision" for the version string will automatically be updated on check-ins.
Aron Roberts [Mon, 11 Jan 2010 21:45:59 +0000 (21:45 +0000)]
CSPACE-723: Fixed a trivial naming discrepancy by renaming the "measuredUnit" field in various places in the Dimensions service to "measurementUnit", to conform to the Dimensions schema. (Since this affects the schema for a Nuxeo document type, to reflect this change you may need to shut down the nuxeo and cspace servers and, after a rebuild, perform an 'ant deploy'.)
Aron Roberts [Mon, 11 Jan 2010 21:04:36 +0000 (21:04 +0000)]
CSPACE-722: Configured MySQL database creation script to configure the 'nuxeo' and 'cspace' databases to default to using the Unicode UTF-8 character set.
Patrick Schmitz [Mon, 11 Jan 2010 08:29:14 +0000 (08:29 +0000)]
CSPACE-578 Added support for PersonAuthority service, with basic tests, and a demo import mechanism that creates a simple authority with a few people in it. Not sure why this did not go through with early commit - Tortoise is being weird...
Patrick Schmitz [Mon, 11 Jan 2010 08:27:24 +0000 (08:27 +0000)]
CSPACE-578 Added support for PersonAuthority service, with basic tests, and a demo import mechanism that creates a simple authority with a few people in it. Not sure why this did not go through with early commit - Tortoise is being weird...
Patrick Schmitz [Mon, 11 Jan 2010 08:16:12 +0000 (08:16 +0000)]
CSPACE-578 Added support for PersonAuthority service, with basic tests, and a demo import mechanism that creates a simple authority with a few people in it. Not sure why this did not go through with early commit - Tortoise is being weird...
Patrick Schmitz [Sat, 9 Jan 2010 01:01:43 +0000 (01:01 +0000)]
CSPACE-578 Added support for PersonAuthority service, with basic tests, and a demo import mechanism that creates a simple authority with a few people in it.
Patrick Schmitz [Wed, 6 Jan 2010 23:51:58 +0000 (23:51 +0000)]
CSPACE-149. Updated to add displayName in, computed from shortName (on get). Fixed typos in refName generation in the Base Import. Tweaked some labels etc. in the nuxeo layout to make it easier to debug orgs.
Patrick Schmitz [Wed, 6 Jan 2010 07:31:41 +0000 (07:31 +0000)]
NOJIRA - fixed support for additional schema fields in the nuxeo layout, in the tests, and in the import support. Reflected reversion of pattern service (Vocabulary) to pass the inAuthority value in the organization_common schema. Updated the tests to detect when the inAuthority is not being set correctly on create.
Patrick Schmitz [Wed, 6 Jan 2010 07:28:20 +0000 (07:28 +0000)]
CSPACE-572. Reverted changes to remove inVocabulary from payload, as it broke createItem. Also rewrote tests to ensure that inVocabulary is actually being set correctly, so any future regressions will be detected right away.
Sanjay Dalal [Wed, 23 Dec 2009 20:09:28 +0000 (20:09 +0000)]
CSPACE-697 fixed documentutils to recognize multivalue field more deterministically
added tests for single and multivalue instances for a multivalue fields
test: collectionobject client
M collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
M common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
Sanjay Dalal [Mon, 21 Dec 2009 20:09:11 +0000 (20:09 +0000)]
CSPACE-514 added javadoc plugin to pom.xml (trunk and main levels only). complete javadoc is created (later on config for public only). also added doc target for build.xml (trunk and main levels). the ant target also jars up javadocs. the dist targets in both trunk and main now dist javadoc jar as well
mvn javadoc:aggregate (to generate javadoc only)
ant doc (calls javadoc:aggregate and jars up the javadoc)
ant dist (now copies javadoc jar to dist)
M trunk/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java
M trunk/services/pom.xml
M trunk/services/build.xml
M trunk/pom.xml
M trunk/build.xml
Sanjay Dalal [Mon, 21 Dec 2009 19:01:44 +0000 (19:01 +0000)]
NOJIRA changed cardinality of the service object manifest in service binding. only one service object definitino is supported per service.
test: service tests
require: deploy
Sanjay Dalal [Fri, 18 Dec 2009 21:45:16 +0000 (21:45 +0000)]
NOJIRA - name change for DBLoginModule, removed need for pricipalclass in getTenant method
test: security test
D services/authentication/service/src/main/java/org/collectionspace/authentication/CSpaceDBLoginModule.java
A + services/authentication/service/src/main/java/org/collectionspace/authentication/CSpaceJBossDBLoginModule.java
M services/authentication/service/src/main/java/org/collectionspace/authentication/DatabaseRealm.java
M services/authentication/service/src/main/resources/config/jboss-login-config.xml
Sanjay Dalal [Thu, 17 Dec 2009 21:29:06 +0000 (21:29 +0000)]
NOJIRA moved db script generation and create_db tasks out of account.client and authentication.client to account.pstore and authentication.pstore
Added gen_ddl task at trunk level and service.main levels
M trunk/services/authentication/pom.xml
AM trunk/services/authentication/pstore
A trunk/services/authentication/pstore/src
A trunk/services/authentication/pstore/src/test
A trunk/services/authentication/pstore/src/test/resources
A trunk/services/authentication/pstore/src/test/resources/META-INF
A trunk/services/authentication/pstore/src/test/resources/META-INF/persistence.xml
A trunk/services/authentication/pstore/src/test/resources/log4j.properties
A trunk/services/authentication/pstore/src/test/resources/hibernate.cfg.xml
A trunk/services/authentication/pstore/src/main
A trunk/services/authentication/pstore/src/main/resources
A + trunk/services/authentication/pstore/src/main/resources/db
A trunk/services/authentication/pstore/pom.xml
A trunk/services/authentication/pstore/build.xml
D trunk/services/authentication/client/src/main/resources/db
M trunk/services/authentication/client/pom.xml
M trunk/services/authentication/client/build.xml
M trunk/services/authentication/build.xml
M trunk/services/account/pom.xml
A trunk/services/account/pstore
A trunk/services/account/pstore/src
A trunk/services/account/pstore/src/test
A trunk/services/account/pstore/src/test/resources
A trunk/services/account/pstore/src/test/resources/META-INF
A trunk/services/account/pstore/src/test/resources/META-INF/persistence.xml
A trunk/services/account/pstore/src/test/resources/log4j.properties
A trunk/services/account/pstore/src/test/resources/hibernate.cfg.xml
A trunk/services/account/pstore/src/main
A trunk/services/account/pstore/src/main/resources
A trunk/services/account/pstore/src/main/resources/db
A trunk/services/account/pstore/src/main/resources/db/mysql
A + trunk/services/account/pstore/src/main/resources/db/mysql/test_account.sql
A + trunk/services/account/pstore/src/main/resources/db/mysql/account.sql
A trunk/services/account/pstore/pom.xml
A trunk/services/account/pstore/build.xml
M trunk/services/account/build.xml
D trunk/services/account/client/src/main/resources/db/mysql/test_account.sql
D trunk/services/account/client/src/main/resources/db/mysql/account.sql
M trunk/services/account/client/pom.xml
M trunk/services/account/client/build.xml
M trunk/services/build.xml
M trunk/build.xml