Aron Roberts [Thu, 10 Dec 2009 03:43:11 +0000 (03:43 +0000)]
NOJIRA: readList-type test methods in client tests have a potential dependency on the createList method, if and when these tests check contents of lists returned and not just status codes of responses.
Aron Roberts [Thu, 10 Dec 2009 03:07:11 +0000 (03:07 +0000)]
CSPACE-489: Clean up extra entity resources created during tests. Now cleans up all extra resources created even if tests fail. Added clean up to vocabulary service. (Previous commit r1058 inadvertently committed only one changed file; this is a follow-up to commit the additional four files.)
Aron Roberts [Thu, 10 Dec 2009 02:52:53 +0000 (02:52 +0000)]
CSPACE-489: Clean up extra entity resources created during tests. Now cleans up all extra resources created even if tests fail. Added clean up to vocabulary service.
Patrick Schmitz [Wed, 9 Dec 2009 20:25:15 +0000 (20:25 +0000)]
CSPACE-600, CSPACE-572 Fixed. Removed inVocabulary reference from all REST payloads - this should not be visible to consumers.
Work on CSPACE-590, CSPACE-547. Added support for refname to payloads.
Sanjay Dalal [Tue, 8 Dec 2009 00:44:46 +0000 (00:44 +0000)]
CSPACE-580 account is now able to update password only (for CSIP). update requires admin privileges.
test: account test
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
Sanjay Dalal [Mon, 7 Dec 2009 21:52:01 +0000 (21:52 +0000)]
CSPACE-584, CSPACE-651
CSPACE-584 added status attribute to account. XML type 'status' is also added. added test to change status (update/put is required).
CSPACE-651 tenant id is never returned to service consumer. response of get/update is sanitized to remove tenant id.
test: account test
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M account/jaxb/src/main/resources/accounts_common.xsd
M account/client/src/test/java/org/collectionspace/services/client/test/AccountTest.java
M account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
M account/client/src/main/resources/db/mysql/account.sql
Aron Roberts [Fri, 4 Dec 2009 21:55:44 +0000 (21:55 +0000)]
CSPACE-559: ID Service no longer returns a Location header upon creation of a new ID. Current Services Team consensus is that IDs are not to be treated as resources.
Sanjay Dalal [Fri, 4 Dec 2009 18:45:49 +0000 (18:45 +0000)]
CSPACE-643 added ant run plugin to set hibernate.cfg.xml properties before running any (local) tests that use the config.
test: account, authentiation, all services
M account/client/pom.xml
M authentication/client/pom.xml
Sanjay Dalal [Thu, 3 Dec 2009 23:03:45 +0000 (23:03 +0000)]
NOJIRA temp fix for intermittent problem seen by aron where even in non-auth mode subject and pricipals are not null. need more investigation if subject is lying around on thread by mistake (nuxeo or cspace)
M trunk/services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
Aron Roberts [Thu, 3 Dec 2009 21:36:13 +0000 (21:36 +0000)]
CSPACE-644: First cut at sample code for CollectionObject, including creating and reading records with multipart schema extensions and multi-valued fields. Does not yet reflect project organization changes in CSPACE-646.
Sanjay Dalal [Wed, 2 Dec 2009 21:12:10 +0000 (21:12 +0000)]
CSPACE-643 build now requires the following properties set in the environment.
DB_USER, DB_PASSWORD (for create_db, gen_ddl tasks) and JBOSS_HOME (for deploy)
Each build.xml reads environment before loading build.properties. build.properties uses environment variables to set db.user, db.user.password and jboss.dir properties.
Database and user specific properties are also externalized from hibernate.cfg.xml used by gen_ddl task. Before invoking gen_ddl subsitution occurs as a pre-requisite.
tests: mvn test at services level, ant create_db at trunk level, gen_ddl at account and authentication client levels
M trunk/services/authentication/service/build.xml
M trunk/services/authentication/client/src/test/resources/hibernate.cfg.xml
M trunk/services/authentication/client/build.xml
M trunk/services/authentication/build.xml
M trunk/services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/build.xml
M trunk/services/collectionobject/3rdparty/build.xml
M trunk/services/collectionobject/build.xml
M trunk/services/JaxRsServiceProvider/build.xml
M trunk/services/common/build.xml
M trunk/services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/build.xml
M trunk/services/acquisition/3rdparty/build.xml
M trunk/services/acquisition/build.xml
M trunk/services/account/build.xml
M trunk/services/account/client/src/test/resources/hibernate.cfg.xml
M trunk/services/account/client/build.xml
M trunk/services/id/service/build.xml
M trunk/services/id/build.xml
M trunk/services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/build.xml
M trunk/services/vocabulary/3rdparty/build.xml
M trunk/services/vocabulary/build.xml
M trunk/services/intake/3rdparty/nuxeo-platform-cs-intake/build.xml
M trunk/services/intake/3rdparty/build.xml
M trunk/services/intake/build.xml
M trunk/services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml
M trunk/services/relation/3rdparty/build.xml
M trunk/services/relation/build.xml
M trunk/build.properties
M trunk/build.xml
M trunk/3rdparty/nuxeo/nuxeo-platform-collectionspace/build.properties
M trunk/3rdparty/nuxeo/nuxeo-platform-collectionspace/build.xml
M trunk/3rdparty/nuxeo/build.xml
M trunk/3rdparty/build.xml
Sanjay Dalal [Tue, 1 Dec 2009 21:45:08 +0000 (21:45 +0000)]
CSPACE-642 a user on login is associated with a tenant
Account service now associates a user with tenant on account creation time if default identity provider is used. This association is retrieved (CSpacePrincipal) at the time of login. Tenant binding is retrieved using the tenant id established after login.
Moved db schema for default id provider to authentication/client.
Introduced ServiceException to capture error code and error reason. UnauthorizedException with 401 (derived from ServiceException) is thrown if tenant could not be found on login. Rest of the common exceptions are derived from ServiceException. Service resources changed to handle UnauthorizedException.
test: authentication client with security enabled on server (web.xml), all service tests without security
Aron Roberts [Mon, 30 Nov 2009 22:47:25 +0000 (22:47 +0000)]
CSPACE-620: Added debugging statements to extractPart method in AbstractServiceTest to assist in understanding multipart schema extension output and in tracking down potential problems as they arise.
Aron Roberts [Mon, 30 Nov 2009 22:06:32 +0000 (22:06 +0000)]
CSPACE-620,CSPACE-379: Extended CollectionObjectServiceTest to test our provided example of a domain-specific schema extension. Renamed element in JAXB schema and label name in client tests from collection-object-naturalhistory to collectionobjects_naturalhistory to fix marshalling errors.
Sanjay Dalal [Fri, 27 Nov 2009 00:26:52 +0000 (00:26 +0000)]
CSPACE-307 CSPACE-579 CSPACE-581
integrated account management with default id provider management. create account would create a user in the default id provider and delete would delete if present. if password is provided on account create, a user would be created in the default id provider. added tenant id and userid in account. consolidated persistence.xml (jaxrsprovider/src/main/resources) so that DML could be performed atomically on all cs entities involved under the same transaction. added gen_ddl task to account(client)
test: account service tests and all service tests
Sanjay Dalal [Thu, 26 Nov 2009 00:37:25 +0000 (00:37 +0000)]
NOJIRA renamed AnchorName to ScreenName
test: mvn test on account service
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/client/src/test/java/org/collectionspace/services/client/test/AccountTest.java
M services/account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
M services/account/client/src/main/resources/db/mysql/account.sql
M services/account/client/pom.xml
Sanjay Dalal [Tue, 24 Nov 2009 22:38:32 +0000 (22:38 +0000)]
NOJIRA create_db made recursive. create_db now exists for id, account and
authentication services in addition to trunk. Update local build.properties to
incorporate new JDBC related properties from this checkin. Deploy now also copies
db scripts to destination domain.
tests: ant create_db at trunk
mvn test at service
M trunk/services/authentication/service/build.xml
M trunk/services/authentication/build.xml
M trunk/services/id/service/build.xml
M trunk/services/id/build.xml
M trunk/services/account/build.xml
A trunk/services/account/client/build.xml
M trunk/services/build.xml
M trunk/nbproject/private/private.xml
A + trunk/src/main/resources/db
D trunk/src/main/resources/scripts/db
M trunk/build.properties
M trunk/build.xml
Sanjay Dalal [Tue, 24 Nov 2009 21:02:00 +0000 (21:02 +0000)]
CSPACE-308, CSPACE-309, CSPACE-585, CSPACE-582, CSPACE-615 Account Service is
functional. Service consumer could create, get, update and delete an
account. index operation also works.
Running mvn -Pddl in account/client generates account.sql using
hibernate tool with the help of Jpa annotations.
JpaStorage is functional as well. Added a property named entity-name
to service context to indicate Jpa entity for data base operations.
NOTE!!!! Before running tests, a one time execution of 'ant jpa' is
required from services/common. Also requires deploy at trunk level as
cspace datasource configuration has changed.
tests: mvn test passes (requires deploy (trunk) and jpa (common))
_M services/authentication/jaxb
M services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/jboss-web.xml
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
M services/JaxRsServiceProvider/pom.xml
A services/common/lib
A services/common/lib/jpa-upgrade
AM services/common/lib/jpa-upgrade/ejb3-persistence-1.0.2.GA.jar
AM services/common/lib/jpa-upgrade/hibernate-entitymanager-3.4.0.GA.jar
AM services/common/lib/jpa-upgrade/hibernate-annotations-3.4.0.GA.jar
A services/common/lib/README.txt
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/storage/jpa/JpaStorageClient.java
M services/common/build.xml
M services/pom.xml
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
A + services/account/service/src/main/resources/META-INF
M services/account/service/src/main/resources/META-INF/persistence.xml
D services/account/jaxb/src/test/java/org/collectionspace/services/account/test/AccountTest.java
D services/account/jaxb/src/test/resources/META-INF
D services/account/jaxb/src/test/resources/hibernate.cfg.xml
D services/account/jaxb/src/main/resources/META-INF
M services/account/jaxb/src/main/resources/accounts_common.xsd
D services/account/jaxb/src/main/resources/db/mysql/account.sql
M services/account/jaxb/pom.xml
D services/account/3rdparty
M services/account/pom.xml
M services/account/build.xml
A + services/account/client/src/test/java/org/collectionspace/services/client/test/AccountTest.java
M services/account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
A + services/account/client/src/test/resources/META-INF
A + services/account/client/src/test/resources/hibernate.cfg.xml
A services/account/client/src/main/resources/db
A services/account/client/src/main/resources/db/mysql
A services/account/client/src/main/resources/db/mysql/account.sql
M services/account/client/pom.xml
M src/main/resources/config/cspace-ds.xml
Sanjay Dalal [Sat, 21 Nov 2009 00:32:42 +0000 (00:32 +0000)]
NOJIRA account service in testing phase. added jaxb-jpa for default security identify provider (to be used by account). checking in for safefy purposes. disabled acccount from service pom.xml.
A services/authentication/jaxb
A services/authentication/jaxb/src
A services/authentication/jaxb/src/test
A services/authentication/jaxb/src/test/java
A services/authentication/jaxb/src/test/java/org
A services/authentication/jaxb/src/test/java/org/collectionspace
A services/authentication/jaxb/src/test/java/org/collectionspace/services
A services/authentication/jaxb/src/test/java/org/collectionspace/services/authentication
A services/authentication/jaxb/src/test/java/org/collectionspace/services/authentication/test
A services/authentication/jaxb/src/test/java/org/collectionspace/services/authentication/test/DefaultIdentityProviderTest.java
A services/authentication/jaxb/src/test/resources
A services/authentication/jaxb/src/test/resources/META-INF
A services/authentication/jaxb/src/test/resources/META-INF/persistence.xml
A services/authentication/jaxb/src/test/resources/log4j.properties
A services/authentication/jaxb/src/test/resources/hibernate.cfg.xml
A services/authentication/jaxb/src/main
A services/authentication/jaxb/src/main/java
A services/authentication/jaxb/src/main/java/org
A services/authentication/jaxb/src/main/java/org/collectionspace
A services/authentication/jaxb/src/main/java/org/collectionspace/services
A services/authentication/jaxb/src/main/resources
A services/authentication/jaxb/src/main/resources/authentication_identity_provider.xsd
A services/authentication/jaxb/src/main/resources/META-INF
A services/authentication/jaxb/src/main/resources/META-INF/persistence.xml
A services/authentication/jaxb/pom.xml
M services/authentication/pom.xml
M services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/jboss-web.xml
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml
M services/JaxRsServiceProvider/pom.xml
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClient.java
M services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java
M services/common/src/main/java/org/collectionspace/services/common/document/AbstractMultipartDocumentHandler.java
M services/common/src/main/config/tenant-bindings.xml
M services/pom.xml
A 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/AccountHandlerFactory.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/service/pom.xml
M services/account/jaxb/src/main/resources/META-INF/persistence.xml
M services/account/jaxb/src/main/resources/accounts_common.xsd
M services/account/jaxb/src/main/resources/db/mysql/account.sql
M services/account/jaxb/pom.xml
_M services/account/client
A services/account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
A services/account/client/src/test/java/org/collectionspace/services/client/AccountClient.java
A services/account/client/src/test/java/org/collectionspace/services/client/AccountProxy.java
Aron Roberts [Fri, 20 Nov 2009 01:19:42 +0000 (01:19 +0000)]
CSPACE-234,CSPACE-364: Ongoing work on revising interfaces for ID Parts, still in progress. Added tests; fixed bug that prevented generation of zero as a starting value in NumericIDPart; added algorithm for more even distribution of pseudorandom numbers.
Sanjay Dalal [Thu, 19 Nov 2009 03:20:22 +0000 (03:20 +0000)]
NOJIRA added jpastorage. refactored context and dochandler to isolate multipart processing
introduced servicecontext factory to free up abstractresource from assumption that
it is used only to process multipart remote requests. affected services are fixed.
mvn test passes. account is not yet plugged into service build. account build fails.
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/CollectionObjectResource.java
M services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceResource.java
M services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResource.java
A services/common/src/main/java/org/collectionspace/services/common/context/MultipartServiceContextFactory.java
M services/common/src/main/java/org/collectionspace/services/common/context/RemoteServiceContext.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
A 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
A services/common/src/main/java/org/collectionspace/services/common/context/MultipartServiceContextImpl.java
A services/common/src/main/java/org/collectionspace/services/common/context/ServiceContextFactory.java
A services/common/src/main/java/org/collectionspace/services/common/storage/jpa
A 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
A services/common/src/main/java/org/collectionspace/services/common/document/AbstractMultipartDocumentHandler.java
M services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandler.java
A services/common/src/main/java/org/collectionspace/services/common/document/MultipartDocumentHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M services/common/pom.xml
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/AcquisitionResource.java
_M services/account/service
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/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
Aron Roberts [Thu, 19 Nov 2009 03:04:11 +0000 (03:04 +0000)]
CSPACE-234,CSPACE-364: Ongoing work on revising interfaces for ID Parts, still in progress. Additional work on output formatters to facilitate customization of ID number patterns without having to create new ID parts.
Aron Roberts [Wed, 18 Nov 2009 04:47:45 +0000 (04:47 +0000)]
CSPACE-234: Initial work on revising interfaces for ID Parts, still in progress. New parts and tests are currently in a sub-package of services/id/service. (Previous commit added only parent directory.)
Aron Roberts [Wed, 18 Nov 2009 04:43:52 +0000 (04:43 +0000)]
CSPACE-234: Initial work on revising interfaces for ID Parts, still in progress. New parts and tests are currently in a sub-package of services/id/service.
Sanjay Dalal [Tue, 17 Nov 2009 18:44:02 +0000 (18:44 +0000)]
NOJIRA added annotation for id in xsd, use mvn -Pddl process-test-classes to generate
ddl, account.sql is copied after generation to src/main/resources/db/mysql using
maven-ant-run plugin. changed AccountTest to use JPQ update and delete statements instead
of find, update/delete, persist sequence
test: account.jaxb mvn test
M jaxb/src/test/java/org/collectionspace/services/account/test/AccountTest.java
M jaxb/src/main/resources/accounts_common.xsd
A jaxb/src/main/resources/db/mysql/account.sql
M jaxb/pom.xml
Sanjay Dalal [Mon, 16 Nov 2009 23:33:04 +0000 (23:33 +0000)]
NOJIRA refactoring of DocumentWrapper. It is now a generic type. Does not require creating derived types.
M services/collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectDocumentModelHandler.java
M services/common/src/main/java/org/collectionspace/services/common/document/DocumentWrapper.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/DocumentWrapperImpl.java
M services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandler.java
D services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelWrapper.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandler.java
D services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelListWrapper.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
M services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
M services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyDocumentModelHandler.java
_M services/vocabulary/import
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
Sanjay Dalal [Sat, 14 Nov 2009 00:04:19 +0000 (00:04 +0000)]
NOJIRA work in progress for account management. uses jaxb/jpa. still to write resource
and handler. builds but is not linked to service build yet.
A account
A account/service
A account/service/src
A account/service/src/test
A account/service/src/test/java
A account/service/src/test/java/org
A account/service/src/test/java/org/collectionspace
A account/service/src/test/java/org/collectionspace/services
A account/service/src/test/java/org/collectionspace/services/test
A account/service/src/test/resources
A account/service/src/test/resources/log4j.xml
A account/service/src/main
A account/service/src/main/java
A account/service/src/main/java/org
A account/service/src/main/java/org/collectionspace
A account/service/src/main/java/org/collectionspace/services
A account/service/src/main/java/org/collectionspace/services/account
A account/service/src/main/java/org/collectionspace/services/account/storage
A account/service/src/main/java/org/collectionspace/services/account/storage/AccountHandlerFactory.java
A account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
A account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
A account/service/src/main/resources
A account/service/pom.xml
AM account/jaxb
A account/jaxb/src
A account/jaxb/src/test
A account/jaxb/src/test/java
A account/jaxb/src/test/java/org
A account/jaxb/src/test/java/org/collectionspace
A account/jaxb/src/test/java/org/collectionspace/services
A account/jaxb/src/test/java/org/collectionspace/services/account
A account/jaxb/src/test/java/org/collectionspace/services/account/test
A account/jaxb/src/test/java/org/collectionspace/services/account/test/AccountTest.java
A account/jaxb/src/test/resources
A account/jaxb/src/test/resources/META-INF
A account/jaxb/src/test/resources/META-INF/persistence.xml
A account/jaxb/src/test/resources/log4j.properties
A account/jaxb/src/test/resources/hibernate.cfg.xml
A account/jaxb/src/main
A account/jaxb/src/main/java
A account/jaxb/src/main/java/org
A account/jaxb/src/main/java/org/collectionspace
A account/jaxb/src/main/java/org/collectionspace/services
A account/jaxb/src/main/resources
A account/jaxb/src/main/resources/META-INF
A account/jaxb/src/main/resources/META-INF/persistence.xml
A account/jaxb/src/main/resources/accounts_common.xsd
A account/jaxb/src/main/resources/db
A account/jaxb/src/main/resources/db/mysql
A account/jaxb/src/main/resources/org
A account/jaxb/src/main/resources/org/collectionspace
A account/jaxb/src/main/resources/org/collectionspace/services
A account/jaxb/src/main/resources/org/collectionspace/services/account
A account/jaxb/pom.xml
A account/3rdparty
A account/3rdparty/pom.xml
A account/3rdparty/build.xml
A account/pom.xml
A account/build.xml
A account/client
A account/client/src
A account/client/src/test
A account/client/src/test/java
A account/client/src/test/java/org
A account/client/src/test/java/org/collectionspace
A account/client/src/test/java/org/collectionspace/services
A account/client/src/test/java/org/collectionspace/services/client
A account/client/src/test/java/org/collectionspace/services/client/test
A account/client/src/test/resources
A account/client/src/test/resources/log4j.properties
A account/client/src/main
A account/client/src/main/java
A account/client/src/main/java/org
A account/client/src/main/java/org/collectionspace
A account/client/src/main/java/org/collectionspace/services
A account/client/src/main/java/org/collectionspace/services/client
A account/client/src/main/resources
A account/client/pom.xml
Sanjay Dalal [Fri, 13 Nov 2009 22:35:15 +0000 (22:35 +0000)]
NOJIRA refactoring of common with regards to movement of document handling code. new pacakge document is created. also crud is pushed down to storage client from repository client.
test: at service level: mvn test successful (after ant clean deploy)
M services/nbactions.xml
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/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectHandlerFactory.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentUtils.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentWrapper.java
D services/common/src/main/java/org/collectionspace/services/common/repository/AbstractDocumentHandler.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentHandlerFactory.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentFilter.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentNotFoundException.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentHandler.java
D services/common/src/main/java/org/collectionspace/services/common/repository/DocumentException.java
D services/common/src/main/java/org/collectionspace/services/common/repository/BadRequestException.java
M services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
M services/common/src/main/java/org/collectionspace/services/common/CollectionSpaceResource.java
M services/common/src/main/java/org/collectionspace/services/common/AbstractCollectionSpaceResource.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/AbstractServiceContext.java
A services/common/src/main/java/org/collectionspace/services/common/storage
A services/common/src/main/java/org/collectionspace/services/common/storage/StorageClient.java
M services/common/src/main/java/org/collectionspace/services/common/relation/IRelationsManager.java
M services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationsUtils.java
A services/common/src/main/java/org/collectionspace/services/common/document
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentWrapper.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/AbstractDocumentHandler.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandlerFactory.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentFilter.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentNotFoundException.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentHandler.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/DocumentException.java
AM + services/common/src/main/java/org/collectionspace/services/common/document/BadRequestException.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/util/NuxeoUtils.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelWrapper.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RemoteDocumentModelHandler.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelListWrapper.java
M services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java
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/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionHandlerFactory.java
M services/pom.xml
M services/id/service/src/test/java/org/collectionspace/services/id/test/StringIDGeneratorPartTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/IDServiceJdbcImplTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/AlphabeticIDGeneratorPartTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/SettableIDGeneratorTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/YearIDGeneratorPartTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/IDGeneratorSerializerTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/NumericIDGeneratorPartTest.java
M services/id/service/src/test/java/org/collectionspace/services/id/test/BaseIDGeneratorTest.java
M services/id/service/src/main/java/org/collectionspace/services/id/IDResource.java
M services/id/service/src/main/java/org/collectionspace/services/id/UUIDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/AlphabeticIDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/YearIDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/IDService.java
M services/id/service/src/main/java/org/collectionspace/services/id/NumericIDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/StringIDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/IDServiceJdbcImpl.java
M services/id/service/src/main/java/org/collectionspace/services/id/SettableIDGenerator.java
M services/id/service/src/main/java/org/collectionspace/services/id/IDGeneratorPart.java
M services/id/service/src/main/java/org/collectionspace/services/id/IDGeneratorSerializer.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/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyItemHandlerFactory.java
M 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
M services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeHandlerFactory.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/NewRelationResource.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationHandlerFactory.java
M services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java
Patrick Schmitz [Fri, 13 Nov 2009 20:12:44 +0000 (20:12 +0000)]
CSPACE-598 FIXED - need to make getFiltered() queries be tenant aware. This should be updated when we change the enant marking in the DB (likely needed for performance).
Patrick Schmitz [Thu, 12 Nov 2009 21:19:09 +0000 (21:19 +0000)]
CSPACE-481 Fixed a bug in paginated query, and created a convenience factory method to create DocumentFilter instances with pagination parameters from the Map passed in with the URI context to REST handlers.
Richard Millet [Thu, 12 Nov 2009 18:26:46 +0000 (18:26 +0000)]
CSPACE-593 Move Vocabulary Importer class out of "client" module and into a new module named "import" immediately under "/services/vocabulary" directory
Sanjay Dalal [Wed, 11 Nov 2009 20:11:36 +0000 (20:11 +0000)]
NOJIRA: added hotdeploy task in ant. this task calls cargo:undeploy and cargo:deploy
in order. New maven plugin sets properties from build.properties before calling
cargo tasks. Added new properties into build.properties.
M services/JaxRsServiceProvider/nbactions.xml
M services/JaxRsServiceProvider/pom.xml
M services/JaxRsServiceProvider/build.xml
M services/build.xml
M build.properties
M pom.xml
M build.xml
Patrick Schmitz [Tue, 10 Nov 2009 20:25:58 +0000 (20:25 +0000)]
CSPACE-481, CSPACE-590
Added basic support to filter objects in a get, with a default filtering for pagination. Only implemented for Vocabulary at this point. Used this to intelligently filter the vocabularyItems associated to a given vocabulary, and to support finding a vocabulary by name.
Sanjay Dalal [Tue, 10 Nov 2009 19:08:38 +0000 (19:08 +0000)]
NOJIRA removed now unused repository client using Nuxeo's RESTful services
test: all tests pass at top level
D common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepresentationHandler.java
D common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepresentationWrapper.java
D common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepositoryRESTClient.java
Richard Millet [Mon, 9 Nov 2009 23:44:36 +0000 (23:44 +0000)]
NOJIRA: Updating the top-level POM by reordering repository references. Tested this on my machine by throwing away complete .m2 local repo first and then doing a complete "mvn clean install -DskipTests" from the trunk.
Aron Roberts [Fri, 6 Nov 2009 20:20:28 +0000 (20:20 +0000)]
CSPACE-543: Completed removal of 'verbose' methods from client test framework and individual client tests. Log statements will now correctly show line numbers from the relevant client test classes, not from the abstract base class.
Sanjay Dalal [Fri, 6 Nov 2009 00:59:20 +0000 (00:59 +0000)]
CSPACE-515, CSPACE-266 Added support for multivalue elements in schema. Supports 1 level depth. e.g. otherNumbers in collectionobjects_common
<otherNumbers>
<otherNumber>urn:org.collectionspace.id:24082390</otherNumber>
<otherNumber>urn:org.walkerart.id:123</otherNumber>
</otherNumbers>
woudl be stored by nuxeo with each item (otherNumber) having value such as "otherNumber|urn:org.collectionspace.id:24082390". marshalling and unmarshalling code takes care of qualifying or unqualifying the value with the name of the property.
test: collectionobjects, all service tests. will require re-initializing nuxeo db
M collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd
M collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd
M collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
M common/src/main/java/org/collectionspace/services/common/repository/DocumentUtils.java
Aron Roberts [Thu, 5 Nov 2009 23:58:28 +0000 (23:58 +0000)]
CSPACE-559: Successful requests to create new IDs now return a URL for the created ID in the Location header. (We will later need to support GET requests using those URLs; this can be a way of verifying whether particular IDs are available or have been assigned.)
Aron Roberts [Thu, 5 Nov 2009 04:38:40 +0000 (04:38 +0000)]
CSPACE-534: Replaced inappropriate references to IllegalArgumentExceptions with BadRequestExceptions in one additional test class, missed in the original check-in.
Aron Roberts [Thu, 5 Nov 2009 03:55:01 +0000 (03:55 +0000)]
CSPACE-534: Replaced inappropriate references to IllegalArgumentExceptions with BadRequestExceptions throughout much of the ID service. Also minor, unrelated optimizations in YearIDGeneratorPart.
Aron Roberts [Thu, 5 Nov 2009 03:49:42 +0000 (03:49 +0000)]
CSPACE-553: Updated version designation in id/service POM for XStream to non-snapshot release. Includes unrelated minor changes to initial block comments to remove authorship desiggnations.
Sanjay Dalal [Mon, 2 Nov 2009 20:30:07 +0000 (20:30 +0000)]
CSPACE-382 PathRef is used instead of the IdRef to access documents using get, update or delete. Path is constructed on the fly with the help of the service context.
M collectionobject/service/src/main/java/org/collectionspace/services/collectionobject/nuxeo/CollectionObjectDocumentModelHandler.java
M common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationsUtils.java
M common/src/main/java/org/collectionspace/services/nuxeo/util/NuxeoUtils.java
M common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyItemDocumentModelHandler.java
M vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/nuxeo/VocabularyDocumentModelHandler.java
M intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeDocumentModelHandler.java
M acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
Sanjay Dalal [Fri, 30 Oct 2009 06:43:27 +0000 (06:43 +0000)]
CSPACE-524 empty string is treated as it is. more checks are needed to see how non-string values are treated.
M collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
M common/src/main/java/org/collectionspace/services/common/repository/DocumentUtils.java
Sanjay Dalal [Thu, 29 Oct 2009 06:01:22 +0000 (06:01 +0000)]
CSPACE-375 workspaces are "created" if not found. RepositoryClient.getWorkspaceId is not yet tested or used.
test: created workspaces after reinitializing service layer (drop databases, tables, etc.) tested with existing workspaces too. used mvn test at service level.
M common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
M common/src/main/java/org/collectionspace/services/common/ServiceMain.java
M common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java
M common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClient.java
M common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoConnector.java
M common/src/main/java/org/collectionspace/services/nuxeo/client/rest/RepositoryRESTClient.java
Patrick Schmitz [Mon, 26 Oct 2009 21:34:53 +0000 (21:34 +0000)]
CSPACE-452, CSPACE-453, CSPACE-454, CSPACE-455 Must install basic vocabularies. Current version just hard-codes the calls. Next version will read from config files of some sort.
Sanjay Dalal [Fri, 23 Oct 2009 23:16:58 +0000 (23:16 +0000)]
CSPACE-557 deploy target now depends upon install instead of package. This is possible because of fix for CSPACE-558 which now uses codehaus' cargo plugin for deployment
M build.xml
M services/authentication/service/build.xml
M services/authentication/build.xml
M services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/build.xml
M services/collectionobject/3rdparty/build.xml
M services/collectionobject/build.xml
M services/JaxRsServiceProvider/build.xml
M services/acquisition/3rdparty/nuxeo-platform-cs-acquisition/build.xml
M services/acquisition/3rdparty/build.xml
M services/acquisition/build.xml
M services/common/build.xml
M services/id/build.xml
M services/build.xml
M services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/build.xml
M services/vocabulary/3rdparty/build.xml
M services/vocabulary/build.xml
M services/intake/3rdparty/nuxeo-platform-cs-intake/build.xml
M services/intake/3rdparty/build.xml
M services/intake/build.xml
M services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml
M services/relation/3rdparty/build.xml
M services/relation/build.xml
Sanjay Dalal [Fri, 23 Oct 2009 22:36:32 +0000 (22:36 +0000)]
CSPACE-558 the build now uses the cargo plugin to deploy war on remote jboss server. At JaxRsServiceProvider level, use mvn cargo:undeploy cargo:deploy to undeploy and deploy the services war. mvn install should not require JBoss server running if -DskipTests=true is used - verified locally.
Aron Roberts [Fri, 23 Oct 2009 21:45:47 +0000 (21:45 +0000)]
CSPACE-471,CSPACE-520: Updated VocabularyServiceTest to reflect changes to client test framework in throwing Exceptions, TestNG annotations to return current test name. Added import of VocabularyProxy to VocabularyClient, apparently necessary even though in same package (?). Vocabulary Service tests now partly succeed, and fail at createItemInVocab (receives unexpected 404 status code in response).
Aron Roberts [Thu, 22 Oct 2009 20:29:33 +0000 (20:29 +0000)]
CSPACE-471: Added TestNG annotations to client test framework and most client tests to return current test method name. Not yet implemented for Authentication or Vocabulary client tests. services/client module POM changed to broaden testng dependency scope to default (compile) from test, to facilitate imports in AbstractClientTest class."
Aron Roberts [Wed, 21 Oct 2009 03:58:21 +0000 (03:58 +0000)]
CSPACE-419,CSPACE-543:Added Exceptions to client test framework, client tests. Removed most calls to verbose method from client tests, in favor of direct log statements. (Excluded committing similar changes to the VocabularyServiceTest for now, as one or more of its imported classes can't be found.)
Patrick Schmitz [Tue, 20 Oct 2009 05:32:04 +0000 (05:32 +0000)]
CSPACE-451 Finished up the functionality to support VocabularyItem sub-resource of Vocabularies. Reworked some of the ServiceContext and related classes to support alternate services when a sub-resource is involved.
Renamed the vocabularyitem schemas and related classes to consistently use all-lower letters to prevent problems with the repository layer.
Aron Roberts [Sat, 17 Oct 2009 00:38:44 +0000 (00:38 +0000)]
CSPACE-520,CSPACE-534: Removed IllegalArgumentExceptions from several core ID Service classes and tests. Minor streamlining of pretty printing code in IDResource, and removal of block to catch an unreachable condition.