]> git.aero2k.de Git - tmp/jakarta-migration.git/commit
CSPACE-852. Added support in tenant-bindings.xml and in associated scanner to specify...
authorPatrick Schmitz <pschmitz@berkeley.edu>
Mon, 1 Mar 2010 20:49:51 +0000 (20:49 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Mon, 1 Mar 2010 20:49:51 +0000 (20:49 +0000)
commit93434ea6b03a64f152df9842c24adf93d620e1f2
treef3bfb5fa577d99cb8bac643ebaef88f830e1fc4e
parent0e6d66037c33d3bba518485b9ef998883b99c1a5
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).
14 files changed:
services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTestImpl.java
services/client/src/main/java/org/collectionspace/services/client/test/BaseServiceTest.java [new file with mode: 0644]
services/common/src/main/config/tenant-bindings.xml
services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContextImpl.java
services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameUtils.java [new file with mode: 0644]
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClientImpl.java
services/common/src/main/resources/authorityref.xsd [new file with mode: 0644]
services/intake/client/pom.xml
services/intake/client/src/main/java/org/collectionspace/services/client/IntakeClient.java
services/intake/client/src/main/java/org/collectionspace/services/client/IntakeProxy.java
services/intake/client/src/test/java/org/collectionspace/services/client/test/IntakeAuthRefsTest.java [new file with mode: 0644]
services/intake/service/src/main/java/org/collectionspace/services/intake/IntakeResource.java
services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeDocumentModelHandler.java