]> git.aero2k.de Git - tmp/jakarta-migration.git/log
tmp/jakarta-migration.git
15 years agoCSPACE-2211: Fix an additional error in the LoanoutAuthRefsTest that was omitting...
Aron Roberts [Thu, 24 Jun 2010 16:06:17 +0000 (16:06 +0000)]
CSPACE-2211: Fix an additional error in the LoanoutAuthRefsTest that was omitting a write/read-verify test of the borrower field.

15 years agoCSPACE-2211: Fix several errors in the LoanoutAuthRefsTest that were effectively...
Aron Roberts [Thu, 24 Jun 2010 16:02:09 +0000 (16:02 +0000)]
CSPACE-2211: Fix several errors in the LoanoutAuthRefsTest that were effectively omitting tests of the borrower and borrowersContact fields.

15 years agoCSPACE-2205: 'ant undeploy' now cleans up all version-suffixed collectionspace_core...
Aron Roberts [Thu, 24 Jun 2010 15:24:09 +0000 (15:24 +0000)]
CSPACE-2205: 'ant undeploy' now cleans up all version-suffixed collectionspace_core JARs from nuxeo.ear/plugins.

15 years agoNOJIRA: Updating version designation in Services trunk to 0.9-SNAPSHOT, from 0.8...
Aron Roberts [Thu, 24 Jun 2010 05:20:54 +0000 (05:20 +0000)]
NOJIRA: Updating version designation in Services trunk to 0.9-SNAPSHOT, from 0.8-SNAPSHOT, following the creation of the release 0.8 release branch.

15 years agoCSPACE-2126 Added shortIdentifier to the list results item schema, for vocab+authorit...
Patrick Schmitz [Wed, 23 Jun 2010 07:45:32 +0000 (07:45 +0000)]
CSPACE-2126 Added shortIdentifier to the list results item schema, for vocab+authority services.

15 years agoCSPACE-590, CSPACE-2126, modifying authorities to support shortIdentifier. This is...
Patrick Schmitz [Wed, 23 Jun 2010 06:26:51 +0000 (06:26 +0000)]
CSPACE-590, CSPACE-2126, modifying authorities to support shortIdentifier. This is now used to create refNames, and used to get by name. Updated associated utilities for creating authorities and items. Updated all the various tests that create authorities and instances.

15 years agoCSPACE-2183: The sub-body field is now an authority reference field in Organization...
Aron Roberts [Tue, 22 Jun 2010 04:05:55 +0000 (04:05 +0000)]
CSPACE-2183: The sub-body field is now an authority reference field in Organization item records.

15 years agoCSPACE-2191: Declare instance of ContactsCommonList before using it as a generic...
Aron Roberts [Tue, 22 Jun 2010 00:07:59 +0000 (00:07 +0000)]
CSPACE-2191: Declare instance of ContactsCommonList before using it as a generic to resolve 'incompatible types' error.

15 years agoCSPACE-2180: Test case for a pseudorandom number generator in the ID service that...
Aron Roberts [Fri, 18 Jun 2010 23:36:53 +0000 (23:36 +0000)]
CSPACE-2180: Test case for a pseudorandom number generator in the ID service that returns probabilistic results now only generates warnings, not assertion exceptions, when the expected result is not obtained.

15 years agoCSPACE-2138: Added 'web' field, removed 'notes' field, in Contact schema, in the...
Aron Roberts [Fri, 18 Jun 2010 00:03:15 +0000 (00:03 +0000)]
CSPACE-2138: Added 'web' field, removed 'notes' field, in Contact schema, in the services, per latest changes to Limited for 0.8 Name Authority schemas on the wiki.

15 years agoCSPACE-2138: Changed 'status' field to 'termStatus' in Person schema, in the services...
Aron Roberts [Thu, 17 Jun 2010 23:32:14 +0000 (23:32 +0000)]
CSPACE-2138: Changed 'status' field to 'termStatus' in Person schema, in the services, per latest changes to Limited for 0.8 Name Authority schemas on the wiki.

15 years agoCSPACE-2138: Changed 'status' field to 'termStatus' in Organization services schema...
Aron Roberts [Thu, 17 Jun 2010 23:06:28 +0000 (23:06 +0000)]
CSPACE-2138: Changed 'status' field to 'termStatus' in Organization services schema, per latest changes to Limited for 0.8 Name Authority schemas on the wiki. Services schema and wiki schema are now aligned on use of foundingDate and foundingPlace, as well as on subBody, per updates to the wiki schema.

15 years agoCSPACE-2138: Removed 'honorifics' field from the Person schema in the services layer...
Aron Roberts [Thu, 17 Jun 2010 04:08:37 +0000 (04:08 +0000)]
CSPACE-2138: Removed 'honorifics' field from the Person schema in the services layer.  This field is equivalent to and redundant - at least according to the wiki schema and its multiple-source crosswalks - with the 'nameAdditions' field.

15 years agoCSPACE-2135: Placeholder structured date fields removed from Intake schema in the...
Aron Roberts [Wed, 16 Jun 2010 21:47:45 +0000 (21:47 +0000)]
CSPACE-2135: Placeholder structured date fields removed from Intake schema in the services layer.

15 years agoCSPACE-2152: Adding comment to line of code with unnecessary "AND ecm:isProxy = 0...
Richard Millet [Wed, 16 Jun 2010 04:45:17 +0000 (04:45 +0000)]
CSPACE-2152: Adding comment to line of code with unnecessary "AND ecm:isProxy = 0" clause in getContactList() method.

15 years agoCSPACE-2136: Updated Loans In (aka Loan In) schema at the services layer to the Limit...
Aron Roberts [Wed, 16 Jun 2010 04:39:47 +0000 (04:39 +0000)]
CSPACE-2136: Updated Loans In (aka Loan In) schema at the services layer to the Limited for 0.8 schema. Made the lenders field non-repeatable, which may have a salutary impact on as many as four currently open JIRAs.

15 years agoCSPACE-2151: Delete permissions on specified SID is deleting incorrect permissions.
Richard Millet [Wed, 16 Jun 2010 04:34:33 +0000 (04:34 +0000)]
CSPACE-2151: Delete permissions on specified SID is deleting incorrect permissions.

15 years agoCSPACE-2135,CSPACE-1220: Updated Intake schema at the services layer to the Limited...
Aron Roberts [Tue, 15 Jun 2010 22:34:33 +0000 (22:34 +0000)]
CSPACE-2135,CSPACE-1220: Updated Intake schema at the services layer to the Limited for 0.8 schema. Removed three fields and changed the names of two fields.

15 years agoCSPACE-2133,CSPACE-1796,CSPACE-1219: Updated Acqusition schema at the services layer...
Aron Roberts [Tue, 15 Jun 2010 19:48:14 +0000 (19:48 +0000)]
CSPACE-2133,CSPACE-1796,CSPACE-1219: Updated Acqusition schema at the services layer to Limited for 0.8 schema. Added one field, removed three fields, and changed the names of seven fields.

15 years agoCSPACE-590 Added support to get list of items for a vocab using the vocab shortId.
Patrick Schmitz [Tue, 15 Jun 2010 06:28:51 +0000 (06:28 +0000)]
CSPACE-590 Added support to get list of items for a vocab using the vocab shortId.

15 years agoCSPACE-2134: Updated Cataloging schema for release 0.8, adding one field and changing...
Aron Roberts [Tue, 15 Jun 2010 01:19:50 +0000 (01:19 +0000)]
CSPACE-2134: Updated Cataloging schema for release 0.8, adding one field and changing the names of 12 others - two required by wiki schema changes, and ten for consistency with other layers / clarity.

15 years agoCSPACE-1929
Sanjay Dalal [Mon, 14 Jun 2010 23:50:35 +0000 (23:50 +0000)]
CSPACE-1929
The delete on accountrole sub resource of the account service now requires a POST with parameter _method=delete (/accounts/{accountcsid}/accountroles?_method=delete) and entity body (like POST for create). The delete only deletes the relationships found in the entity body.
test: all service tests

NOTE: all the tests pass with the first run. in the second run dimension service tests fail. this might be because some problem (debugging) introduced by eith the security/client/AuthorizationServiceTest or security/client/MultiTenancyTest which use "dimensions" service for security testing

15 years agoCSPACE-2141
Sanjay Dalal [Mon, 14 Jun 2010 21:00:25 +0000 (21:00 +0000)]
CSPACE-2141
when deleting a role its association(s) with permissions are deleted
test: authorization-mgt

M    authorization/PermissionResource.java
M    authorization/RoleResource.java
M    authorization/PermissionRoleSubResource.java

15 years agoCSPACE-2128: Move utility methods to end in keyword / full text search class in Colle...
Aron Roberts [Mon, 14 Jun 2010 20:51:06 +0000 (20:51 +0000)]
CSPACE-2128: Move utility methods to end in keyword / full text search class in CollectionObject.

15 years agoCSPACE-2128: Added initial (albeit minimal) prototype client test of keyword / full...
Aron Roberts [Mon, 14 Jun 2010 20:44:06 +0000 (20:44 +0000)]
CSPACE-2128: Added initial (albeit minimal) prototype client test of keyword / full text search to the CollectionObject service.

15 years agoCSPACE-2140
Sanjay Dalal [Mon, 14 Jun 2010 18:34:18 +0000 (18:34 +0000)]
CSPACE-2140
files are generated into target instead of source
test: authorization-mgt

D    authorization-mgt/import/src/main/resources/import-data
M    authorization-mgt/import/pom.xml

15 years agoCSPACE-1300
Sanjay Dalal [Mon, 14 Jun 2010 18:21:21 +0000 (18:21 +0000)]
CSPACE-1300
CSPACE-1930
The delete on permrole sub resource of authorization/permissions and authorization/roles services now requires a POST with parameter _method=delete (/authorization/roles/{rolecsid}/permroles?_method=delete) and entity body (like POST for create). The delete only deletes the relationships found in the entity body.
test: all service tests, permissionrole, rolepermission, authorization and multi tenancy tests

M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionResource.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleDocumentHandler.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/RoleResource.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
M    services/authorization-mgt/import/src/main/resources/import-data/import-permissions.xml
M    services/authorization-mgt/import/src/main/resources/import-data/import-permissions-roles.xml
M    services/authorization-mgt/import/src/main/resources/import-data/import-roles.xml
M    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
M    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RolePermissionServiceTest.java
M    services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleClient.java
M    services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/RolePermissionClient.java
M    services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleProxy.java
M    services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/RolePermissionProxy.java
M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaRelationshipStorageClient.java
M    services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java
M    services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java
M    services/security/client/src/test/java/org/collectionspace/services/security/client/test/MultiTenancyTest.java

15 years agoCSPACE-1152 and CSPACE-2126. Changed Vocabulary schema to include a shortIdentifier...
Patrick Schmitz [Mon, 14 Jun 2010 05:30:06 +0000 (05:30 +0000)]
CSPACE-1152 and CSPACE-2126. Changed Vocabulary schema to include a shortIdentifier. This is now used as the basis of the refName. Added support to vocabulary for readByName. Added validatorHandler to require that shortIdentifier only contain word chars.

15 years agoCSPACE-1152 and CSPACE-2126. Changed Vocabulary schema to include a shortIdentifier...
Patrick Schmitz [Mon, 14 Jun 2010 05:29:19 +0000 (05:29 +0000)]
CSPACE-1152 and CSPACE-2126. Changed Vocabulary schema to include a shortIdentifier. This is now used as the basis of the refName. Added support to vocabulary for readByName. Added validatorHandler to require that shortIdentifier only contain word chars.

15 years agoCSPACE-1879: Brief Description is now a repeatable (single String scalar) field in...
Aron Roberts [Fri, 11 Jun 2010 22:05:51 +0000 (22:05 +0000)]
CSPACE-1879: Brief Description is now a repeatable (single String scalar) field in CollectionObject records.

15 years agoCSPACE-1895 Work towards adding repeating sections. For now, just put in notes in...
Patrick Schmitz [Fri, 11 Jun 2010 20:02:41 +0000 (20:02 +0000)]
CSPACE-1895 Work towards adding repeating sections. For now, just put in notes in the key places where we need to make changes to support this, as we explore alternatives.

15 years agoCSPACE-595 added a test for multi-tenancy. it uses two pre-configured users in ROLE_T...
Sanjay Dalal [Fri, 11 Jun 2010 19:09:27 +0000 (19:09 +0000)]
CSPACE-595 added a test for multi-tenancy. it uses two pre-configured users in ROLE_TEANAT_ADMINISTRATOR to create an account, a role and a permission for a service for each tenant. It then creates (potentially concurrently) dimension object as the newly created user for a tenant, tries to update the other tenant's object and fails successfully, tries to delete the other tenant's object and fails successfully.
test: MultiTenancyTest, all service tests

M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleJpaFilter.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionDocumentHandler.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleUtil.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionJpaFilter.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
M    services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.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
A    services/security/client/src/test/java/org/collectionspace/services/security/client/test/MultiTenancyTest.java

15 years agoCSPACE-2123: Added missing resource URL paths for the Relation service to the tenant...
Aron Roberts [Fri, 11 Jun 2010 00:39:53 +0000 (00:39 +0000)]
CSPACE-2123: Added missing resource URL paths for the Relation service to the tenant bindings file.  After this change, permissions are now successfully created for these paths.

15 years agoCSPACE-2121: Reverting inadvertent change to username in exec:java in pom.xml, used...
Aron Roberts [Wed, 9 Jun 2010 21:10:16 +0000 (21:10 +0000)]
CSPACE-2121: Reverting inadvertent change to username in exec:java in pom.xml, used during testing of this issue and not relevant to the fix.  This username value and its corresponding password value in exec:java do not appear to be used currently.

15 years agoCSPACE-2121: Added 'install' as a dependency of setup_hibernate.cfg in Ant buildfile...
Aron Roberts [Wed, 9 Jun 2010 21:04:40 +0000 (21:04 +0000)]
CSPACE-2121: Added 'install' as a dependency of setup_hibernate.cfg in Ant buildfile in authorization-mgt/import. If the local target directory, created by 'install', was missing, a copy task failed in the 'import' target.

15 years agoCSPACE-1782 where clauses in JPA services now use current tenant id
Sanjay Dalal [Wed, 9 Jun 2010 17:32:38 +0000 (17:32 +0000)]
CSPACE-1782 where clauses in JPA services now use current tenant id
test: all service tests

M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleJpaFilter.java
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionJpaFilter.java
M    services/authorization-mgt/import/src/main/resources/import-data/import-permissions.xml
M    services/authorization-mgt/import/src/main/resources/import-data/import-permissions-roles.xml
M    services/authorization-mgt/import/src/main/resources/import-data/import-roles.xml
M    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
M    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/JpaStorageClientImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
M    services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.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/AccountJpaFilter.java
M    services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java

15 years agoCSPACE-1936: Added initial, highly minimal set of client tests of the ID Service.
Aron Roberts [Wed, 9 Jun 2010 05:54:32 +0000 (05:54 +0000)]
CSPACE-1936: Added initial, highly minimal set of client tests of the ID Service.

15 years agoCSPACE-595 first pass at the side-by-side tenant test, although not used concurrently yet
Sanjay Dalal [Tue, 8 Jun 2010 00:23:27 +0000 (00:23 +0000)]
CSPACE-595 first pass at the side-by-side tenant test, although not used concurrently yet
CSPACE-1035 nuxeo domain (for each tenant) is created at the startup time if it does not already exist
- added pahma-domain (hearstmuseum.berkeley.edu) to the tenant bindings in addition to the default-domain (movingimages.us) that is currently used. both bindings are similar in this first pass, i.e. both tenants use the same set of services with same service object bindings as well.
- each tenant binding now specifies repository domain(s) used
- each repository domain embodies information about the repository client needed
- tenantrepository uses repository javaclient instead of using nuxeo connector directly
- each service binding now specifies the repository domain used
- account factory on the client side now takes tenant id from new property cspace.tenant that is added to collection-space-client.properties
- removed deadwood from test-xxx.sql scripts
- role and permissions doc handlers now utilize tenant id if provided by the consumer at the time of creation, if not, they continue to use logged in user's tenant id
-

!!ATTENTION!!
-ant create_db from the trunk (to verify nuxeo domain is created)
-ant import from the trunk (no need to checkin import-*.xml files)
-ant undeploy deploy from the trunk

M    trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionDocumentHandler.java
M    trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
M    trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationSeed.java
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions.xml
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions-roles.xml
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-roles.xml
M    trunk/services/authorization-mgt/import/src/main/resources/log4j.properties
M    trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
M    trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
M    trunk/services/authorization/pstore/src/main/resources/db/mysql/test_authorization.sql
M    trunk/services/authentication/pstore/src/main/resources/db/mysql/test_authentication.sql
M    trunk/services/common/src/main/java/org/collectionspace/services/common/repository/RepositoryClient.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContextImpl.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/document/JaxbUtils.java
M    trunk/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/RepositoryJavaClientImpl.java
M    trunk/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/TenantRepository.java
M    trunk/services/common/src/main/config/services/service-config.xml
M    trunk/services/common/src/main/config/services/tenant-bindings.xml
M    trunk/services/common/src/main/resources/tenant.xsd
M    trunk/services/common/src/main/resources/service.xsd
M    trunk/services/account/pstore/src/main/resources/db/mysql/test_account.sql
M    trunk/services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountRoleServiceTest.java
M    trunk/services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M    trunk/services/account/client/src/main/java/org/collectionspace/services/client/AccountFactory.java
M    trunk/services/account/client/src/main/java/org/collectionspace/services/client/AccountClient.java
M    trunk/services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthenticationServiceTest.java
M    trunk/services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java
M    trunk/services/client/src/main/java/org/collectionspace/services/client/AbstractServiceClientImpl.java
M    trunk/services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClient.java
M    trunk/services/client/src/main/resources/collectionspace-client.properties
D    trunk/src/main/resources/db/mysql/service-dump.sql

15 years agoNOJIRA: Updating dependencies in two Sample module POMs, Organization and Vocabulary...
Aron Roberts [Mon, 7 Jun 2010 18:41:30 +0000 (18:41 +0000)]
NOJIRA: Updating dependencies in two Sample module POMs, Organization and Vocabulary, from 0.5-SNAPSHOT/1.0 to 0.8-SNAPSHOT.

15 years agoCSPACE-2107: Added associatedObjectType field to CollectionObject schema, merging...
Aron Roberts [Sat, 5 Jun 2010 18:09:00 +0000 (18:09 +0000)]
CSPACE-2107: Added associatedObjectType field to CollectionObject schema, merging change made in 0.7 release branch into trunk.

15 years agoCSPACE-2003, CSPACE-1969 ImportAuthZ now inserts default roles, permissions and permi...
Sanjay Dalal [Fri, 4 Jun 2010 21:32:32 +0000 (21:32 +0000)]
CSPACE-2003, CSPACE-1969 ImportAuthZ now inserts default roles, permissions and permission-roles into the database in addtion to inserting ACLs in Spring. These could be retrieved using the respective authz services.
CSPACE-2004, CSPACE-1926 ImportAuthZ now creates a ROLE_TENANT_ADMINISTRATOR for each tenant that has all privileges to all services used by that tenant. It also creates a ROLE_TENANT_READER. This role has only READ, SEARCH privileges for all services used by the tenant
test: ant import, mvn test (service level)

15 years agoCSPACE-2077: Moved assertion that checks for number of authority references returned...
Aron Roberts [Fri, 4 Jun 2010 18:46:30 +0000 (18:46 +0000)]
CSPACE-2077: Moved assertion that checks for number of authority references returned out of a conditional block; added debug message for authrefs returned, in all AuthRefsTests of services.

15 years agoCSPACE-2028: Added missing 'collection' field to CollectionObject schema in the Servi...
Aron Roberts [Fri, 4 Jun 2010 00:12:45 +0000 (00:12 +0000)]
CSPACE-2028: Added missing 'collection' field to CollectionObject schema in the Services layer, merging changes made to the 0.7 release branch to services trunk.

15 years agoNOJIRA: Updating services/trunk poms to use <version> element value of 0.8-SNAPSHOT.
Richard Millet [Thu, 3 Jun 2010 20:48:42 +0000 (20:48 +0000)]
NOJIRA: Updating services/trunk poms to use <version> element value of 0.8-SNAPSHOT.

15 years agoCSPACE-1937 if a role/permission/account does not have any relationship (to permissio...
Sanjay Dalal [Thu, 3 Jun 2010 19:44:26 +0000 (19:44 +0000)]
CSPACE-1937 if a role/permission/account does not have any relationship (to permission, role, role, resp.), return empty result instead of 404
test: added tests for this case in accountrole, permissionrole and rolepermission

M    authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
M    authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RolePermissionServiceTest.java
M    account/client/src/test/java/org/collectionspace/services/account/client/test/AccountRoleServiceTest.java
M    account/service/src/main/java/org/collectionspace/services/account/storage/AccountRoleDocumentHandler.java
M    authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleDocumentHandler.java
M    common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaRelationshipStorageClient.java

15 years agoNOJIRA re-enabling access control in service layer in the trunk (only)
Sanjay Dalal [Thu, 3 Jun 2010 19:40:05 +0000 (19:40 +0000)]
NOJIRA re-enabling access control in service layer in the trunk (only)

M    security/SecurityInterceptor.java

15 years agoCSPACE-1875: In Loan Out records in the Services Layer, merged into trunk from the...
Aron Roberts [Wed, 2 Jun 2010 23:03:51 +0000 (23:03 +0000)]
CSPACE-1875: In Loan Out records in the Services Layer, merged into trunk from the 0.7 Release Branch, three scalar fields were added: loanedObjectStatus, loanedObjectStatusNote, and loanedObjectStatusDate. This is an interim step until sub-loans are implemented in a later release.

15 years agoCSPACE-2006 added tenant id to unique constraint
Sanjay Dalal [Wed, 2 Jun 2010 20:41:51 +0000 (20:41 +0000)]
CSPACE-2006 added tenant id to unique constraint

M    authorization/jaxb/src/main/resources/roles.xsd
M    authorization/pstore/src/main/resources/db/mysql/authorization.sql

15 years agoNOJIRA added timestamp to role name to test if app layer test was failing because...
Sanjay Dalal [Wed, 2 Jun 2010 20:33:18 +0000 (20:33 +0000)]
NOJIRA added timestamp to role name to test if app layer test was failing because of that

M    client/src/test/java/org/collectionspace/services/authorization/client/test/RolePermissionServiceTest.java

15 years agoNOJIRA - removed deadwood detected during walkthrough
Sanjay Dalal [Wed, 2 Jun 2010 20:30:02 +0000 (20:30 +0000)]
NOJIRA - removed deadwood detected during walkthrough

M    security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java

15 years agoCSPACE-1227,CSPACE-1916: Added previously-missing recordStatus field to CollectionObj...
Aron Roberts [Wed, 2 Jun 2010 02:11:56 +0000 (02:11 +0000)]
CSPACE-1227,CSPACE-1916: Added previously-missing recordStatus field to CollectionObject schema in the Services layer.

15 years agoCSPACE-1227,CSPACE-1916: Filled out CollectionObject schema, in the Services Layer...
Aron Roberts [Tue, 1 Jun 2010 19:38:01 +0000 (19:38 +0000)]
CSPACE-1227,CSPACE-1916: Filled out CollectionObject schema, in the Services Layer, with the remaining fields required by Cataloging Schema Limited for 0.7 on the wiki. Note that briefDescription is still a single, non-repatable scalar in this check-in, and that the three fields - relatedObjectNumber, relatedObjectAssociation, and relatedObjectNote - are not included, per Megan in IRC on 2010-06-01.  Changes a Nuxeo document type, and thus requires stopping the 2 JBoss servers and performing an 'ant deploy'.

15 years agoCSPACE-1946: TEMPORARILY commenting out the block, in SecurityInterceptor, that check...
Aron Roberts [Mon, 31 May 2010 17:48:36 +0000 (17:48 +0000)]
CSPACE-1946: TEMPORARILY commenting out the block, in SecurityInterceptor, that checks whether a services client is authorized to access resources at a particular URL.  This effectively DISABLES authorization checks on access requests to the services layer. This is a temporary workaround, suggested in one of Sanjay's comments on this issue, to facilitate testing on nightly.collectionspace.org on 2010-05-31, and should be reversed as soon as practical.

15 years agoCSPACE-1911: 'Banners' output between Services client tests now properly show calling...
Aron Roberts [Fri, 28 May 2010 23:52:22 +0000 (23:52 +0000)]
CSPACE-1911: 'Banners' output between Services client tests now properly show calling class and line number in their log statements. Banner generation is now separated from test setup (e.g. specifying expected status code, valid status codes), in the client test framework, and each can be used independently.  Formerly banners were output as an undocumented side effect of test setup; while that was convenient, it was not good practice.

15 years agoCSPACE-1960: Adding support for XML Schema validation of service payloads.
Richard Millet [Fri, 28 May 2010 23:14:05 +0000 (23:14 +0000)]
CSPACE-1960: Adding support for XML Schema validation of service payloads.

15 years agoCSPACE-1937 blocker, dup of 1299
Sanjay Dalal [Thu, 27 May 2010 22:28:53 +0000 (22:28 +0000)]
CSPACE-1937 blocker, dup of 1299
CSPACE-1299 added permrole as a subresource of role. it is now possible to associate one or more permissions from a role service using roles/id/permroles
test: authorization-mgt, all service tests

15 years agoCSPACE-1828 service name fixes role name with ROLE_{uppercase role name} if ROLE_...
Sanjay Dalal [Thu, 27 May 2010 19:20:39 +0000 (19:20 +0000)]
CSPACE-1828 service name fixes role name with ROLE_{uppercase role name} if ROLE_ is not present in the role name
CSPACE-1944 role name in role once set cannot be changed
CSPACE-1945 resource name in permission once set cannot be changed
test: authorization-mgt/client

15 years agoCSPACE-1407: In tenant bindings for Movement service, added (uncommented) 'currentLoc...
Aron Roberts [Thu, 27 May 2010 18:52:30 +0000 (18:52 +0000)]
CSPACE-1407: In tenant bindings for Movement service, added (uncommented) 'currentLocation' and 'normalLocation' as authority reference fields for this service, now that the StorageLocation / Location service is available.

15 years agoNOJIRA: Updating Eclipse settings.
Richard Millet [Thu, 27 May 2010 06:05:18 +0000 (06:05 +0000)]
NOJIRA: Updating Eclipse settings.

15 years agoCSPACE-864: Added a native Nuxeo "repeatable" information group to the CollectionObje...
Richard Millet [Thu, 27 May 2010 06:04:04 +0000 (06:04 +0000)]
CSPACE-864: Added a native Nuxeo "repeatable" information group to the CollectionObject schema for the "otherNumber" information group "otherNumber" = {otherNumberValue, otherNumberType}.

15 years agoCSPACE-1935 moved import driver out of test framework into a standalone utility
Sanjay Dalal [Wed, 26 May 2010 23:18:24 +0000 (23:18 +0000)]
CSPACE-1935 moved import driver out of test framework into a standalone utility
use ant import at any level to invoke the driver. requires build.

!!NOTE!!
this change overrides req. of mvn test (at authorization-mgt/import) as described in r2225 to import default permissions

cd trunk
mvn test -DskipTests
ant import
ant undeploy deploy
mvn test

D    trunk/services/authorization-mgt/import/src/test/java/org/collectionspace/services/authorization/importer/AuthorizationSeedTest.java
D    trunk/services/authorization-mgt/import/src/test/java/org/collectionspace/services/authorization/importer/AbstractAuthorizationTestImpl.java
D    trunk/services/authorization-mgt/import/src/test/resources/applicationContext-authorization-test.xml
D    trunk/services/authorization-mgt/import/src/test/resources/log4j.properties
A    trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/driver
A  + trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/driver/AuthorizationSeedDriver.java
A    trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/ImportAuthz.java
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions.xml
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions-roles.xml
A  + trunk/services/authorization-mgt/import/src/main/resources/applicationContext-authorization-test.xml
A  + trunk/services/authorization-mgt/import/src/main/resources/log4j.properties
M    trunk/services/authorization-mgt/import/pom.xml
M    trunk/services/authorization-mgt/import/build.xml
M    trunk/services/authorization-mgt/build.xml
M    trunk/services/pom.xml
M    trunk/services/build.xml
M    trunk/build.xml

15 years agoCSPACE-1364, CSPACE-1365
Sanjay Dalal [Wed, 26 May 2010 17:05:34 +0000 (17:05 +0000)]
CSPACE-1364, CSPACE-1365
Enabled access control for all the services at the record/procedure type level. Permissions are seeded (authorization-mgt/import) for ROLE_ADMINISTRATOR using the tenant bindings. Seeding still happens through a test driver in the import module...would be moved to a Java main class later.
Test do/should not delete the seeded permissions...fixed those tests that were doing the same. These tests now either do not delete permissions
or create permissions for non-functional services.
Wired delete for account role and permission role sub resources.
All alternate URIs with which a service could be accessed shoudl be in service bindings element named uriPath
test: all tests multiple times

!!NOTE!!
cd trunk/services
ant create_db
mvn clean install -DskipTests
ant undeploy deploy
mvn test

If you are not running all the tests, at least seed default permissions using the following
cd trunk/services/authorization-mgt/import
mvn test

M    trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionResource.java
M    trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
M    trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
M    trunk/services/authorization-mgt/import/src/test/java/org/collectionspace/services/authorization/importer/AuthorizationSeedTest.java
M    trunk/services/authorization-mgt/import/src/test/resources/applicationContext-authorization-test.xml
M    trunk/services/authorization-mgt/import/src/test/resources/log4j.properties
M    trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationSeed.java
M    trunk/services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationGen.java
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions.xml
M    trunk/services/authorization-mgt/import/src/main/resources/import-data/import-permissions-roles.xml
M    trunk/services/authorization-mgt/import/pom.xml
M    trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
M    trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
M    trunk/services/pom.xml
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringPermissionManager.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringAuthorizationProvider.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringPermissionEvaluator.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResourceImpl.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M    trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/spi/CSpacePermissionManager.java
M    trunk/services/authorization/service/src/main/resources/applicationContext-authorization.xml
_M   trunk/services/location/jaxb
M    trunk/services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaRelationshipStorageClient.java
M    trunk/services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java
M    trunk/services/common/src/main/config/services/tenant-bindings.xml
M    trunk/services/common/src/main/resources/service.xsd
M    trunk/services/account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.java
M    trunk/services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
_M   trunk/services/note/service
_M   trunk/services/note/jaxb
_M   trunk/services/note/client
M    trunk/services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthenticationServiceTest.java
M    trunk/services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java

15 years agoCSPACE-1911: In client test framework, 'banner' signifying the start of a test can...
Aron Roberts [Wed, 26 May 2010 04:09:38 +0000 (04:09 +0000)]
CSPACE-1911: In client test framework, 'banner' signifying the start of a test can now be output using a passed-in Logger.  This reflects the caller's class name and line number in the log statement, and can also print the class name in the banner.  Examples of such calls are implemented, for now, only in PersonAuthoritySearchTest, but can be trivially bulk-implemented in all other test classes.

15 years agoCSPACE-1895: Moved 'note' module slightly down, below account (and generally below...
Aron Roberts [Wed, 26 May 2010 03:12:40 +0000 (03:12 +0000)]
CSPACE-1895: Moved 'note' module slightly down, below account (and generally below authZ- and authN-related modules) in main services POM, per discussion with Sanjay.  JIRA issue pertains to Location, but includes Patrick's work on a new, generalizable Note (aka Comment) service, which is the relevant module to this minor change.

15 years agoCSPACE-1895 Working on the repeating sections of Location, and general support for...
Patrick Schmitz [Tue, 25 May 2010 06:56:21 +0000 (06:56 +0000)]
CSPACE-1895 Working on the repeating sections of Location, and general support for this. Fixed a bug with update.

15 years agoCSPACE-1895 Working on the repeating sections of Location, and general support for...
Patrick Schmitz [Tue, 25 May 2010 03:27:49 +0000 (03:27 +0000)]
CSPACE-1895 Working on the repeating sections of Location, and general support for this.

15 years agoCSPACE-1895 Working on the repeating sections of Location, and general support for...
Patrick Schmitz [Tue, 25 May 2010 01:05:22 +0000 (01:05 +0000)]
CSPACE-1895 Working on the repeating sections of Location, and general support for this.

15 years agoCSPACE-809,CSPACE-562,CSPACE-1685: Created standalone class for Search tests, pulling...
Aron Roberts [Tue, 25 May 2010 00:52:36 +0000 (00:52 +0000)]
CSPACE-809,CSPACE-562,CSPACE-1685: Created standalone class for Search tests, pulling partial term matching tests out of PersonServiceTest, to aid in rapidly creating tests for partial term matching (and later, keyword searches), and as an early step in the direction of moving some search test functionality into base classes in the client test framework.

15 years agoCSPACE-1911: Minoir formatting changes to test banner in BaseServiceTest, intended...
Aron Roberts [Tue, 25 May 2010 00:48:02 +0000 (00:48 +0000)]
CSPACE-1911: Minoir formatting changes to test banner in BaseServiceTest, intended to make it easier to spot transitions between tests and to output log statements showing relevant test class and line number.  Trivial change in class comment in AbstractServiceTestImpl.

15 years agoCSPACE-1880: Partial matches in authorities causing sql errors
Richard Millet [Fri, 21 May 2010 23:11:22 +0000 (23:11 +0000)]
CSPACE-1880: Partial matches in authorities causing sql errors

15 years agoNOJIRA: Updating Eclipse settings.
Richard Millet [Fri, 21 May 2010 21:43:22 +0000 (21:43 +0000)]
NOJIRA: Updating Eclipse settings.

15 years agoCSPACE-384: Additional trivial cleanup of base classes in client test framework.
Aron Roberts [Fri, 21 May 2010 21:39:45 +0000 (21:39 +0000)]
CSPACE-384: Additional trivial cleanup of base classes in client test framework.

15 years agoCSPACE-384: Minor cleanup of base classes in client test framework, in preparation...
Aron Roberts [Fri, 21 May 2010 21:26:55 +0000 (21:26 +0000)]
CSPACE-384: Minor cleanup of base classes in client test framework, in preparation for work on issues such as CSPACE-1685, as well as re-familiarization for current work on CSPACE-809.

15 years agoCSPACE-1357, CSPACE-131, CSPACE-133 - Adding basic LocationAuthority support.
Patrick Schmitz [Fri, 21 May 2010 21:25:01 +0000 (21:25 +0000)]
CSPACE-1357, CSPACE-131, CSPACE-133 - Adding basic LocationAuthority support.

15 years agoCSPACE-1244: On updates, treating tags (xml elements) with empty content as blank...
Richard Millet [Fri, 21 May 2010 20:48:41 +0000 (20:48 +0000)]
CSPACE-1244: On updates, treating tags (xml elements) with empty content as blank value that -so blank elements essentially deletes field values from the database records.

15 years agoCSPACE-809,CSPACE-1886: Fixed trivial but embarrassing typo in Lech Walesa's name...
Aron Roberts [Fri, 21 May 2010 04:11:21 +0000 (04:11 +0000)]
CSPACE-809,CSPACE-1886: Fixed trivial but embarrassing typo in Lech Walesa's name, used for partial term matching tests in PersonServiceTest.  Also allows noting that a UTF-8 test of partial matches, as per CSPACE-1886, is present but currently fails and is commented out for now.

15 years agoCSPACE-809,CSPACE-1880: Introduced first partial term matching client tests, in the...
Aron Roberts [Fri, 21 May 2010 04:00:48 +0000 (04:00 +0000)]
CSPACE-809,CSPACE-1880: Introduced first partial term matching client tests, in the Person service. Identified and made a tentative fix for CSPACE-1880 issue, required to make the partial term matching tests succeed, and pending Richard's more knowledgeable and detailed examination of this issue.

15 years agoCSPACE-1153: Setting Person's displayNameComputed flag to false generates Exception...
Richard Millet [Thu, 20 May 2010 05:29:46 +0000 (05:29 +0000)]
CSPACE-1153: Setting Person's displayNameComputed flag to false generates Exception on create.  Also fixed an edge-case bug in pagination.

15 years agoNOJIRA moved ServiceLayerTests to new module common-test that is built after authoriz...
Sanjay Dalal [Wed, 19 May 2010 20:57:19 +0000 (20:57 +0000)]
NOJIRA moved ServiceLayerTests to new module common-test that is built after authorization-mgt module so permissions could be inserted in db before running the service layer tests
test: all service tests

15 years agoCSPACE-1482 refactored authgen and authseed such that these could be invoked from...
Sanjay Dalal [Wed, 19 May 2010 19:26:06 +0000 (19:26 +0000)]
CSPACE-1482 refactored authgen and authseed such that these could be invoked from service runtime as well (at startup time).
test authz import

15 years agoCSPACE-1482 import module with the help of tenant bindings now generates and imports...
Sanjay Dalal [Wed, 19 May 2010 18:17:34 +0000 (18:17 +0000)]
CSPACE-1482 import module with the help of tenant bindings now generates and imports default permissions for all the services for all the tenants for ROLE_ADMINISTRATOR

15 years agoCSPACE-1081: Relation list should probably include relationship type
Richard Millet [Wed, 19 May 2010 07:37:18 +0000 (07:37 +0000)]
CSPACE-1081: Relation list should probably include relationship type
CSPACE-1846: Relation Service needs to paginate list results.
CSPACE-602: Update Relations service/manager to use Nuxeo queries instead of "get all" and filter with Java code

15 years agoNOJIRA: Removing unneeded Eclipse settings.
Richard Millet [Tue, 18 May 2010 16:15:54 +0000 (16:15 +0000)]
NOJIRA: Removing unneeded Eclipse settings.

15 years agoCSPACE-1286: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd...
Aron Roberts [Tue, 18 May 2010 01:27:47 +0000 (01:27 +0000)]
CSPACE-1286: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd files in the Loan In (aka Loans In) service module.

15 years agoCSPACE-1292: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd...
Aron Roberts [Tue, 18 May 2010 01:25:37 +0000 (01:25 +0000)]
CSPACE-1292: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd files in the Loan Out (aka Loans Out) service module.

15 years agoCSPACE-144: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd...
Aron Roberts [Tue, 18 May 2010 01:22:27 +0000 (01:22 +0000)]
CSPACE-144: Setting SVN 'Date' and 'Revision' keyword properties on .java and .xsd files in the Movement service module.

15 years agoCSPACE-144: Added Nuxeo document type XML Schema file, inadvertently omitted in r2104.
Aron Roberts [Tue, 18 May 2010 01:19:07 +0000 (01:19 +0000)]
CSPACE-144: Added Nuxeo document type XML Schema file, inadvertently omitted in r2104.

15 years agoCSPACE-144: Trivial addition of movement methods list in sample records used in clien...
Aron Roberts [Tue, 18 May 2010 01:13:19 +0000 (01:13 +0000)]
CSPACE-144: Trivial addition of movement methods list in sample records used in client test of the Movement service.

15 years agoCSPACE-144: Basic infrastructure for the Movement (aka Location & Movement) service...
Aron Roberts [Mon, 17 May 2010 23:27:40 +0000 (23:27 +0000)]
CSPACE-144: Basic infrastructure for the Movement (aka Location & Movement) service is in place in the Services Layer.  Introduces a new Nuxeo document type, and requires an 'ant deploy' and restarting the two JBoss servers.  Data modeling may possibly need some future attention.

15 years agoCSPACE-1850: Adding support in doc and repository client framework for tenant ID...
Richard Millet [Mon, 17 May 2010 23:25:13 +0000 (23:25 +0000)]
CSPACE-1850: Adding support in doc and repository client framework for tenant ID. All creates, updates, gets and getFiltered on Nuxeo-based documents now use Tenant ID from the service context.

15 years agoCSPACE-1850: Adding support in doc and repository client framework for tenant id.
Richard Millet [Mon, 17 May 2010 21:21:24 +0000 (21:21 +0000)]
CSPACE-1850: Adding support in doc and repository client framework for tenant id.

15 years agoCSPACE-1832: All CSpace specific Nuxeo document types now contain new "core" document...
Richard Millet [Sat, 15 May 2010 00:24:06 +0000 (00:24 +0000)]
CSPACE-1832: All CSpace specific Nuxeo document types now contain new "core" document type with tenant_id.

15 years agoNOJIRA - refactoried tenantbindingconfigreader so it could be used just to read the...
Sanjay Dalal [Fri, 14 May 2010 20:25:48 +0000 (20:25 +0000)]
NOJIRA - refactoried tenantbindingconfigreader so it could be used just to read the bindings, not for workspace retrieval. moved nuxeo workspace specific stuff to new class ...nuxeo.client.java.TenantRepository
test: service tests

M    services/authorization-mgt/import/pom.xml
M    services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContextImpl.java
M    services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java
M    services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReaderImpl.java
A    services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/TenantRepository.java

15 years agoCSPACE-1364, CSPACE-1365 moved gen/seed of authorization to import module in order...
Sanjay Dalal [Fri, 14 May 2010 18:45:44 +0000 (18:45 +0000)]
CSPACE-1364, CSPACE-1365 moved gen/seed of authorization to import module in order to expand the functionality to generate permisssions for all the services as well as all the permission-role relationships for bootstrapping purposes.
test: authorization-mgt all service tests

15 years agoNOJIRA
Sanjay Dalal [Fri, 14 May 2010 17:27:22 +0000 (17:27 +0000)]
NOJIRA
incorporate some code review changes. started refactoring seed test in order to convert it to generator and import for all services

M    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
M    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
M    services/authorization-mgt/client/src/test/resources/test-data/test-permissions-roles.xml
M    services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringPermissionManager.java
M    services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringAuthorizationProvider.java
M    services/authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringPermissionEvaluator.java

15 years agoCSPACE-1591: Added three simple, temporary test classes for creating large numbers...
Aron Roberts [Thu, 13 May 2010 23:19:39 +0000 (23:19 +0000)]
CSPACE-1591: Added three simple, temporary test classes for creating large numbers of CollectionObject records, each with minor variations in client instantiation and HTTP connection closing, that may help surface any subtleties in behavior around this issue.  Run with 'mvn test -Dtest={test name or wildcard to run multiple tests; e.g. I1591*} -Pperftests'.

15 years agoCSPACE-1364 allow user bigbird (ROLE_MMI_CM) POST, GET and PUT operations on the...
Sanjay Dalal [Thu, 13 May 2010 21:49:02 +0000 (21:49 +0000)]
CSPACE-1364 allow user bigbird (ROLE_MMI_CM) POST, GET and PUT operations on the dimension service, allow user elmo (ROLE_MMI_INTERN) GET operation, allow user test (ROLE_ADMINISTRATOR) POST, PUT, GET and DELETE operations
CSPACE-1365 deny elmo PUT and deny bigbird DELETE operations on the dimension service
Pre-requisite : authorization-mgt/client tests seed some permissions used
by this test
test: security/client

M    services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java

15 years agoCSPACE-1824: Changing DocumentFilter.setPagination() method to use "get" instead...
Richard Millet [Thu, 13 May 2010 17:43:18 +0000 (17:43 +0000)]
CSPACE-1824: Changing DocumentFilter.setPagination() method to use "get" instead of "remove" on incoming query params

15 years agoCSPACE-1364 allow user test in ROLE_ADMINISTRATOR to access (CRUDL) dimension service
Sanjay Dalal [Wed, 12 May 2010 18:05:35 +0000 (18:05 +0000)]
CSPACE-1364 allow user test in ROLE_ADMINISTRATOR to access (CRUDL) dimension service
CSPACE-1365 deny user bigbird2010 in ROLE_MMI_CM access (C) to the dimension service
moved authorization generation and seeding to authorization-mgt/client from authorization service
enabled access control for the dimension service only in the security interceptor
added setAuth convenience method into client test framework to change authn properites, httpclient and proxy
test: all service tests, specifically security/client and authorization-mgt/client tests

!!REQUIRES the following sequence of actions at the services level
- mvn clean install -DskipTests
- ant undeploy deploy
- mvn test (note that authorization-mgt/client tests have to run before running dimension/client and security/client tests)

A    services/authorization-mgt/service/src/test/javadoc
A    services/authorization-mgt/service/src/test/javadoc/org
A    services/authorization-mgt/service/src/test/javadoc/org/collectionspace
A    services/authorization-mgt/service/src/test/javadoc/org/collectionspace/services
A    services/authorization-mgt/service/src/test/javadoc/org/collectionspace/services/authorization
A    services/authorization-mgt/service/src/test/javadoc/org/collectionspace/services/authorization/test
A  + services/authorization-mgt/service/src/test/javadoc/org/collectionspace/services/authorization/test/package.html
M    services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
A    services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test
A  + services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
A  + services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test/AbstractAuthorizationTestImpl.java
A  + services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
A  + services/authorization-mgt/client/src/test/resources/applicationContext-authorization-test.xml
A    services/authorization-mgt/client/src/test/resources/test-data
A  + services/authorization-mgt/client/src/test/resources/test-data/test-permissions.xml
A  + services/authorization-mgt/client/src/test/resources/test-data/test-permissions-roles.xml
M    services/authorization-mgt/client/pom.xml
M    services/dimension/client/src/test/java/org/collectionspace/services/client/test/DimensionServiceTest.java
A    services/dimension/client/src/main/java/org/collectionspace/services/client/DimensionFactory.java
M    services/dimension/client/pom.xml
D    services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
D    services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AbstractAuthorizationTestImpl.java
D    services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
D    services/authorization/service/src/test/javadoc/org/collectionspace/services/authorization/test/package.html
D    services/authorization/service/src/test/resources/applicationContext-authorization-test.xml
D    services/authorization/service/src/test/resources/test-data/test-permissions.xml
D    services/authorization/service/src/test/resources/test-data/test-permissions-roles.xml
M    services/authorization/service/pom.xml
M    services/authorization/pstore/src/main/resources/db/mysql/test_authorization.sql
M    services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java
M    services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthenticationServiceTest.java
A    services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthorizationServiceTest.java
M    services/security/client/pom.xml
M    services/client/src/main/java/org/collectionspace/services/client/test/BaseServiceTest.java
M    services/client/src/main/java/org/collectionspace/services/client/TestServiceClient.java
M    services/client/src/main/java/org/collectionspace/services/client/AbstractServiceClientImpl.java
M    services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClient.java

15 years agoCSPACE-1815: Trivial addition of 'affects' as a valid enumerated value for relationsh...
Aron Roberts [Wed, 12 May 2010 03:46:51 +0000 (03:46 +0000)]
CSPACE-1815: Trivial addition of 'affects' as a valid enumerated value for relationshipType in the Relation JAXB schema, to mirror the use of that type in the Application Layer. (Ultimately, relationshipTypes are likely to come from a vocabulary.)