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.
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.
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
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
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
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'.
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
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
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.)
Richard Millet [Tue, 11 May 2010 05:54:09 +0000 (05:54 +0000)]
CSPACE-1792, CSPACE-1781: Fixing pagination problem in Person, Org, and Vocab services. Also, add releaseConnection() method to JAX-RS most of ClientResponse calls -still some cleanup needed.
Sanjay Dalal [Mon, 10 May 2010 23:24:39 +0000 (23:24 +0000)]
CSPACE-1482 scaffolding for authorization tests, creates and deletes accounts, roles, permissions, account-role and permission-role relationships. yet to put tests that test permissions created
refactoring of collectionobject, accountrole and permissionrole tests, extracted out factories
added releaseConnection on the test in this checkin
test: security/client
M services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
A services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectFactory.java
M services/collectionobject/client/pom.xml
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
A services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleFactory.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountRoleServiceTest.java
A services/account/client/src/main/java/org/collectionspace/services/client/AccountRoleFactory.java
D services/security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java
A services/security/client/src/test/java/org/collectionspace/services/security
A services/security/client/src/test/java/org/collectionspace/services/security/client
A services/security/client/src/test/java/org/collectionspace/services/security/client/test
A + services/security/client/src/test/java/org/collectionspace/services/security/client/test/AuthenticationServiceTest.java
M services/security/client/src/test/resources/log4j.properties
M services/security/client/pom.xml
Sanjay Dalal [Fri, 7 May 2010 23:39:59 +0000 (23:39 +0000)]
CSPACE-1482 wired permission delete operation with the spring acl service. still to wire role removal with acl update
test: all service 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/storage/RoleDocumentHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
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
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M services/account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
Sanjay Dalal [Thu, 6 May 2010 21:39:47 +0000 (21:39 +0000)]
CSPACE-1575 can't login with inactive accounts. returns 403 with an error message.
test: added test in security/client
M authentication/service/src/main/java/org/collectionspace/authentication/spring/SpringAuthNContext.java
M account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java
M common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
M common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java
M JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
1. Adding additional pagination tests to all Nuxeo based services.
2. Replacing .getAll() calls with .getFiltered
3. Removing dead/deprecated code in many http clients
4. Fixing file refs to test and config files to *not* assume current dir is in classpath.
Sanjay Dalal [Thu, 6 May 2010 00:03:53 +0000 (00:03 +0000)]
CSPACE-1482 wired create of permissionrole to spring acl
disabled authz seed test temporarily
test: authz-mgt all service tests
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/PermissionRoleDocumentHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleUtil.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java
M services/authorization-mgt/service/pom.xml
M services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
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
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResourceImpl.java
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/spi/CSpacePermissionManager.java
M services/authorization/service/src/main/resources/applicationContext-authorization.xml
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
Aron Roberts [Sat, 1 May 2010 00:38:18 +0000 (00:38 +0000)]
CSPACE-1456,CSPACE-533: Services Layer version updated to 0.7-SNAPSHOT (from 0.6-SNAPSHOT) in all POMs. Ant 'undeploy' targets now remove all relevant services JARs, regardless of version, via a wildcard/glob. Nuxeo doctype JARs are now deployed to the 'plugins' directory, rather than the 'system' directory, of nuxeo.ear. 'undeploy' tasks check for and remove Nuxeo doctype JARs both from the 'plugins' directory and from the old, legacy 'system' directory.
CSPACE-1482 a security resource is now tied to a tenant by tenant id. aces are now tenant-qualified.
test: authz local test, service tests
M authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
M authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
M authorization/service/src/test/resources/test-data/test-permissions.xml
M authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringAuthorizationProvider.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResource.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResourceImpl.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M authorization/service/pom.xml
M authentication/service/src/main/java/org/collectionspace/authentication/AuthN.java
M authentication/service/src/main/java/org/collectionspace/authentication/spring/SpringAuthNContext.java
M authentication/service/src/main/java/org/collectionspace/authentication/spi/AuthNContext.java
M common/src/main/java/org/collectionspace/services/common/security/SecurityContextImpl.java
NOJIRA - added handler callbacks (prepare, handle, complete) for delete. Needed to plugin stuff affected because of CUD on entities.
test: services tests
NOJIRA introduced high level security context for service runtime. provides access to userid, tenantid and tenantname. uses authn context underneath.
test: all service tests
M context/ServiceContext.java
M context/AbstractServiceContextImpl.java
A security/SecurityContext.java
A security/SecurityContextImpl.java
NOJIRA refactoring based on walkthrough discussion, renamed securitycontextutils->authncontext, added utility method to retrieve tenant name
test: all service tests
M authentication/service/src/main/java/org/collectionspace/authentication/AuthN.java
D authentication/service/src/main/java/org/collectionspace/authentication/realm/CSpaceDbRealm.java
A authentication/service/src/main/java/org/collectionspace/authentication/realm/db
A + authentication/service/src/main/java/org/collectionspace/authentication/realm/db/CSpaceDbRealm.java
D authentication/service/src/main/java/org/collectionspace/authentication/spring/SpringSecurityContextUtils.java
A + authentication/service/src/main/java/org/collectionspace/authentication/spring/SpringAuthNContext.java
A authentication/service/src/main/java/org/collectionspace/authentication/spi
A + authentication/service/src/main/java/org/collectionspace/authentication/spi/AuthNContext.java
D authentication/service/src/main/java/org/collectionspace/authentication/SecurityContextUtils.java
M authentication/service/src/main/java/org/collectionspace/authentication/jaas/CSpaceJBossDBLoginModule.java
CSPACE-1520 unique constraint violation on userid now sends back 400 with a message instead of 500
extracted out cs idp persistence management into UserStorageClient
test: account service
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
A services/account/service/src/main/java/org/collectionspace/services/account/storage/csidp
A services/account/service/src/main/java/org/collectionspace/services/account/storage/csidp/UserStorageClient.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
CSPACE-1649 partial update for permission fixed to take into account the action list
minor messages fixes
test: authorization-mgt (added updateactions test), service tests
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleValidatorHandler.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/PermissionValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
Aron Roberts [Wed, 28 Apr 2010 20:26:54 +0000 (20:26 +0000)]
CSPACE-1580,CSPACE-1627: Updates to ID Generator records are now temporarily row-locked via 'SELECT ... FOR UPDATE', to facilitate concurrent requests for new IDs, until such time as we move the current values of ID Parts out of ID Generator records altogether. Fixed a driver initialization bug that resulted in a 'No suitable driver found' error on the first call to the ID Service after starting the 'cspace' server.
CSPACE-1489 inserted basic auth entry point into exceptiontranslation filter to prompt the user to login. earlier it used to send 403 back to the user
test: accessed accounts after loging in through browser, ran all service tests
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml
CSPACE-1458 partial update for jpa based services (account, role, permission)
refactoring of JpaStorageClient
test: tests for jpa services now do partial updates, all service 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/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/RoleDocumentHandler.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/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
A services/common/src/main/java/org/collectionspace/services/common/context/ServiceContextProperties.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/RemoteServiceContextFactory.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/JpaRelationshipStorageClient.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/AbstractCollectionSpaceResourceImpl.java
M services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
A services/common/src/main/java/org/collectionspace/services/common/document/JaxbUtils.java
M services/account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountRoleDocumentHandler.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
Aron Roberts [Mon, 26 Apr 2010 18:56:16 +0000 (18:56 +0000)]
CSPACE-1208,CSPACE-1209: Client tests of services once again fully clean up temporary records created during testing. Following Patrick's lead in PersonAuthRefDocsTest, all cleanUp() methods in client tests now recognize a 'noTestCleanup' system property, which will disable clean up of temporary records for that test run (e.g. 'mvn test -DnoTestCleanup=true -DforkMode=never').
CSPACE-1521 screen name is no more unique. only userid is unique across all realms including csip realm
test: account
M account/jaxb/src/main/resources/accounts_common.xsd
M account/pstore/src/main/resources/db/mysql/account.sql
M account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
Aron Roberts [Fri, 23 Apr 2010 22:10:59 +0000 (22:10 +0000)]
CSPACE-1292: Properly added Loan Out (aka Loans Out) service to undeploy and dist targets in main services Ant buildfile, rectifying two copy and paste errors resulting from the hasty checkin in r1849.
Aron Roberts [Fri, 23 Apr 2010 22:04:42 +0000 (22:04 +0000)]
CSPACE-901,CSPACE-1577: Apply changes made to other client test classes in CSPACE-901 to the recently added PersonAuthRefDocsTest, in the Intake module: declaring and initializing HttpClient-based classes within individual test methods, rather than at the class level.
CSPACE-1596
CSPACE-1595
beefed up error reporting. common messages declared in common/ServiceMessages.java (should eventually go into a message bundle for i18n).
invalid password now returns 400 instead of 500
test: account, permission, role, accrole, permrole
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/RoleValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/RoleResource.java
A services/common/src/main/java/org/collectionspace/services/common/ServiceMessages.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/AccountValidatorHandler.java
M services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
CSPACE-1510
CSPACE-1538
added validation for relationship services. validation is performed in handler for create. object id of the relationship is checked during get and delete in the jpa storage client.
on delete of account or permission, related roles are also deleted (not in the same tx though)
test: account, accountrole, permission, permissionrole, all services
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionResource.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.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/JpaRelationshipStorageClient.java
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
M services/account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.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/AccountResource.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountRoleServiceTest.java
Aron Roberts [Thu, 22 Apr 2010 20:20:08 +0000 (20:20 +0000)]
CSPACE-1207,CSPACE-1221: Added generators for Loan Out (aka Loans Out) IDs and Location and Movement IDs to the set of ID generators loaded by the ID Service SQL load script.
NOJIRA - refactored JpaStorageClient, extracted out utilities into JpaStorageUtils so that some of those (getEntity) could be used for validation
DocumentFilter#getQueryParams returns empty list of query para values but not null
test: all tests, account and authorization-mgt
M account/service/src/main/java/org/collectionspace/services/account/AccountRoleSubResource.java
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountValidatorHandler.java
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountJpaFilter.java
M authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleJpaFilter.java
M authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionJpaFilter.java
M common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaRelationshipStorageClient.java
A common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageUtils.java
M common/src/main/java/org/collectionspace/services/common/document/DocumentFilter.java
NOJIRA PermissionRoleSubResource now uses JpaRelationshipStorageClient (also used by AccountRoleSubResource)
test: authorization-mgt
D authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleStorageClient.java
M authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
Patrick Schmitz [Wed, 21 Apr 2010 06:15:30 +0000 (06:15 +0000)]
CSPACE-1079 Search for documents that refer to a given Person item. Added support for describing which services are objects and which are procedures. Added support to describe which fields hold refnames. Added support to describe which fields should be used to provide summary values in the results. Only supported for PersonAuthority. Still need to add this for OrgAuthority as well.
CSPACE-1303, CSPACE-1359 disassociate role(s) from account
CSPACE-1313, CSPACE-1358 associate role(s) to account
CSPACE-1347 account-role relationship schema
test: account-role service tests, all service tests exception loanout
created xxxFactory for Account, Role and Permission service tests so that these could be used from tests elsewhere
Aron Roberts [Mon, 19 Apr 2010 19:03:37 +0000 (19:03 +0000)]
CSPACE-1533: Remove 'cspace' from the end of the value of the 'url' attribute of the 'sql' task, in the 'create_db' target. On some occasions, such as a first-time install, the cspace database may not exist prior to running init_db.sql, and the presence of that database name in the URL might result in an 'Unknown database' error.
Aron Roberts [Sat, 17 Apr 2010 00:10:02 +0000 (00:10 +0000)]
CSPACE-1292: Initial release of the Loan Out (aka Loans Out) service. Introduces a new Nuxeo document type, and thus requires 'ant deploy' and restarting the two JBoss servers.
M authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleDocumentHandler.java
M authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleStorageClient.java
NOJIRA - added debug in base authz service and some exceptions
test: authz service test
M authorization/service/src/main/java/org/collectionspace/services/authorization/spring/SpringPermissionManager.java
A authorization/service/src/main/java/org/collectionspace/services/authorization/PermissionNotFoundException.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResource.java
A authorization/service/src/main/java/org/collectionspace/services/authorization/PermissionException.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceResourceImpl.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/spi/CSpacePermissionManager.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/spi/CSpacePermissionEvaluator.java
M authorization/service/src/main/java/org/collectionspace/services/authorization/CSpaceAction.java
CSPACE-1518 added metadata to permission role relationship
common authz xml types are in authorization_common.xsd and imported into relationship xsds
test: authorization-mgt, authorization
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/PermissionRoleSubResource.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
M services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
M services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
M services/authorization/service/src/test/resources/test-data/test-permissions-roles.xml
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
A + services/authorization/jaxb/src/main/resources/accounts_roles.xsd
D services/authorization/jaxb/src/main/resources/users_roles.xsd
A services/authorization/jaxb/src/main/resources/authorization_common.xsd
M services/authorization/jaxb/src/main/resources/permissions_roles.xsd
M services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
Richard Millet [Fri, 16 Apr 2010 16:54:13 +0000 (16:54 +0000)]
CSPACE-1349, 1422, 1428, 1469, 1470, 1473: Adding pagination support for default page size, making a convention that query params are part of the service context, giving docHandlers a default filter, removing some of the ubiquitous Generics warnings, refactored resource service code to minimize duplicated code and boiler plating.
Passes *ALL* current tests and merged with the latest set of sources.
Richard Millet [Fri, 16 Apr 2010 10:10:58 +0000 (10:10 +0000)]
CSPACE-1349, 1422, 1428, 1469, 1470, 1473: Adding pagination support for default page size, making a convention that query params are part of the service context, giving docHandlers a default filter, removing some of the ubiquitous Generics warnings, refactored resource service code to minimize duplicated code and boiler plating.
Passes *ALL* current tests and merged with the latest set of sources.
Aron Roberts [Thu, 15 Apr 2010 23:07:09 +0000 (23:07 +0000)]
CSPACE-1494,CSPACE-873: Lists of Acquisitions records, for now, return a list of acquisition sources, along with the acquisition reference number, CSID, and URL. Utility method, etc. now used in AcquisitionDocumentModelHandler to split 'qualified' repeatable field names from values, copied from private code in DocumentUtils, might be made public in a common package elsewhere.
Aron Roberts [Thu, 15 Apr 2010 20:09:07 +0000 (20:09 +0000)]
CSPACE-1494,CSPACE-873: Temporarily stub-out return of acquisitionSource in acquisitions list items, pending a more durable solution to returning one (or more) instances of repeatable field values in minimal profile of list items. Ultimately may return the value of the 'primary' instance of a repeatable field, per Patrick.
Aron Roberts [Thu, 15 Apr 2010 03:47:45 +0000 (03:47 +0000)]
CSPACE-901: Initialize HTTPClient-based clients only within test methods annotated with TestNG's @Test, not at the class level. This issue has led at least once to test failures, not just warnings, and needed to be addressed at this time.
CSPACE-1489
this change is required but may not fix the problem. the web security filter passess through authenticated requests (with or without rememberme). service tests passed. curl asked for password and retrieved accounts successfully too. firefox was still giving 403.
_M services/sdk
M services/JaxRsServiceProvider/src/main/webapp/WEB-INF/applicationContext-security.xml
CSPACE-1301 associate role(s) to permi
CSPACE-1302 dis-associate role(s) from perm
CSPACE-1347 role-perm schema
added permission-role relationship. service is available as a subresource of permissions service (/permissions/{csid}/permroles). supports post, get and delete only. this version of delete deletes all associations for a permission.
test: authz-mgt, all services
requires: ant create_db at the service level
M services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionResource.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleDocumentHandler.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleUtil.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionRoleStorageClient.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/PermissionRoleSubResource.java
_M services/authorization-mgt/client
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
A services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionRoleServiceTest.java
A services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleClient.java
A services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionRoleProxy.java
M services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
M 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/AuthorizationGenTest.java
A + services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGen.java
M services/authorization/service/src/test/resources/test-data/test-permissions-roles.xml
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M services/authorization/jaxb/src/main/resources/users_roles.xsd
M services/authorization/jaxb/src/main/resources/permissions.xsd
M services/authorization/jaxb/src/main/resources/permissions_roles.xsd
M services/authorization/pstore/src/test/resources/META-INF/persistence.xml
_M services/jaxb
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M services/common/src/main/config/services/tenant-bindings.xml
M services/common/pom.xml
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M services/client/src/main/java/org/collectionspace/services/client/test/BaseServiceTest.java
CSPACE-1304 create permission
CSPACE-1305 delete permission
CPSACE-1306 get permission
CSPACE-1307 update permission
CSPACE-1309 search permission with resource name only
CSPACE-1311 list permissions
added new service authorization/permissions first checkin. permissions are yet to be plugged in with spring acls.
minor copyright javadoc changes in role and account classes
jpastorageclient now supports delete (with parent deleting children) and deletewhere (a shallow delete with where clause)
test: mvn test at the service level, added PermissionServiceTest in authorization-mgt/client
M services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
_M services/authorization-mgt/service
A 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/RoleJpaFilter.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleStorageConstants.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleValidatorHandler.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionDocumentHandler.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionJpaFilter.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionStorageConstants.java
A services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/RoleResource.java
M services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
A services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/PermissionServiceTest.java
A services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionClient.java
A services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/PermissionProxy.java
M services/authorization/jaxb/src/main/resources/roles.xsd
A services/authorization/jaxb/src/main/resources/permissions_list.xsd
M services/authorization/jaxb/src/main/resources/permissions.xsd
M services/authorization/jaxb/src/main/resources/roles_list.xsd
M services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M services/common/src/main/config/services/tenant-bindings.xml
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountJpaFilter.java
D services/account/client/src/test/java/org/collectionspace/services/client
CSPACE-1402 removed double b64 encoding in test and double b64 decoding from the service
test: account tests
M account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
Aron Roberts [Mon, 5 Apr 2010 23:39:40 +0000 (23:39 +0000)]
CSPACE-1286: Adding additional directories in the loanin module, which were inadvertently omitted in previous commits. These directories are mostly or entirely empty, save for SVN-related and/or IDE-related files (which are not being committed in this check-in), but nonetheless match the standard Maven project directory hierarchy in other modules.
Aron Roberts [Mon, 5 Apr 2010 23:32:17 +0000 (23:32 +0000)]
CSPACE-1395,CSPACE-1094: Moved Sanjay's validation-related test code in CollectionObjectServiceTest from malformedXml-related test methods to new, validation-related test methods. Reverted malformedXml-related test methods to stubs.
CSPACE-1397 roles is tied to a tenant. tenant id is added to role at create time.
test: authz-mgt
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleValidatorHandler.java
M services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
M services/authorization/jaxb/src/main/resources/roles.xsd
M services/authorization/pstore/src/main/resources/db/mysql/authorization_index.sql
M services/authorization/pstore/src/main/resources/db/mysql/test_authorization.sql
M services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
M services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
CSPACE-1293 create a role
CSPACE-1294 delete a role
CSPACE-1295 get a role
CSPACE-1296 update a role
CSPACE-1310 list roles
CSPACE-1308 search for a role (using role name only)
Refactored roles.xsd into roles.xsd and roles_list.xsd to accommodate XmlRootElement per xsd
Added authorization-mgt service for roles and permissions management. This checkin adds only the RoleResource and corresponding tests.
test: authorization-mgt test, mvn test at the service level
require: ant create_db for the authorization service
M trunk/services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
M trunk/services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
M trunk/services/JaxRsServiceProvider/pom.xml
A trunk/services/authorization-mgt
A trunk/services/authorization-mgt/service
A trunk/services/authorization-mgt/service/src
A trunk/services/authorization-mgt/service/src/test
A trunk/services/authorization-mgt/service/src/test/java
A trunk/services/authorization-mgt/service/src/test/resources
A trunk/services/authorization-mgt/service/src/main
A trunk/services/authorization-mgt/service/src/main/java
A trunk/services/authorization-mgt/service/src/main/java/org
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleJpaFilter.java
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleStorageConstants.java
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleValidatorHandler.java
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/RoleDocumentHandler.java
A trunk/services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/RoleResource.java
A trunk/services/authorization-mgt/service/src/main/javadoc
A trunk/services/authorization-mgt/service/src/main/javadoc/org
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace/services
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace/services/authorization
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace/services/authorization/storage
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace/services/authorization/storage/package.html
A trunk/services/authorization-mgt/service/src/main/javadoc/org/collectionspace/services/authorization/package.html
A trunk/services/authorization-mgt/service/src/main/javadoc/overview.html
A trunk/services/authorization-mgt/service/src/main/resources
A trunk/services/authorization-mgt/service/pom.xml
A trunk/services/authorization-mgt/service/build.xml
A trunk/services/authorization-mgt/pom.xml
A trunk/services/authorization-mgt/build.xml
A trunk/services/authorization-mgt/client
A trunk/services/authorization-mgt/client/src
A trunk/services/authorization-mgt/client/src/test
A trunk/services/authorization-mgt/client/src/test/java
A trunk/services/authorization-mgt/client/src/test/java/org
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test
A trunk/services/authorization-mgt/client/src/test/java/org/collectionspace/services/authorization/client/test/RoleServiceTest.java
A trunk/services/authorization-mgt/client/src/test/resources
A trunk/services/authorization-mgt/client/src/test/resources/log4j.properties
A trunk/services/authorization-mgt/client/src/main
A trunk/services/authorization-mgt/client/src/main/java
A trunk/services/authorization-mgt/client/src/main/java/org
A trunk/services/authorization-mgt/client/src/main/java/org/collectionspace
A trunk/services/authorization-mgt/client/src/main/java/org/collectionspace/services
A trunk/services/authorization-mgt/client/src/main/java/org/collectionspace/services/client
A trunk/services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/RoleClient.java
A trunk/services/authorization-mgt/client/src/main/java/org/collectionspace/services/client/RoleProxy.java
A trunk/services/authorization-mgt/client/src/main/javadoc
A trunk/services/authorization-mgt/client/src/main/javadoc/org
A trunk/services/authorization-mgt/client/src/main/javadoc/org/collectionspace
A trunk/services/authorization-mgt/client/src/main/javadoc/org/collectionspace/services
A trunk/services/authorization-mgt/client/src/main/javadoc/org/collectionspace/services/client
A trunk/services/authorization-mgt/client/src/main/javadoc/org/collectionspace/services/client/package.html
A trunk/services/authorization-mgt/client/src/main/javadoc/overview.html
A trunk/services/authorization-mgt/client/src/main/resources
A trunk/services/authorization-mgt/client/pom.xml
A trunk/services/authorization-mgt/client/build.xml
M trunk/services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationSeedTest.java
M trunk/services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGenTest.java
M trunk/services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M trunk/services/authorization/service/pom.xml
M trunk/services/authorization/jaxb/src/main/resources/roles.xsd
A trunk/services/authorization/jaxb/src/main/resources/roles_list.xsd
M trunk/services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
M trunk/services/authentication/service/pom.xml
M trunk/services/common/src/main/java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
M trunk/services/common/src/main/config/services/tenant-bindings.xml
D trunk/services/common/src/main/svn-commit.tmp~
D trunk/services/account/client/src/test/java/org/collectionspace/services/client/test
NOJIRA - consolidated plugins into pluginsmanagement of trunk/pom.xml and trunk/services/pom.xml. Shrinked pom.xml of jaxb modules of all the services. No need to give plugin details for commonly used plugins by a cs service.
This change was triggerd by a CNFE for com.sun.xml.bind class during the build. JAXB related dependencies were conflicting between plugins and other places.
test: mvn test at the service layer
CSPACE-863 fixed change introduced by http://fisheye.collectionspace.org/changelog/collectionspace?cs=1738. Create new filter only if not available in the context.
test: account service test passes
M java/org/collectionspace/services/common/storage/jpa/JpaStorageClientImpl.java
Patrick Schmitz [Fri, 2 Apr 2010 05:34:52 +0000 (05:34 +0000)]
CSPACE-863 Added support in the configuration for default values in the service config, that cascades to set default values in the tenants, and into each service. Added pageSize default to verify this, and adjusted the creation of documentFilter instances to pick up this default. The various resource classes must still be changed to use getFiltered in place of getAll.
Sanjay Dalal [Wed, 31 Mar 2010 23:27:43 +0000 (23:27 +0000)]
CSPACE-1050 uses ignore error option (like the account service) to continue creating tables in case fresh database is created
test: ant create_db on a fresh database from authz service
Sanjay Dalal [Wed, 31 Mar 2010 22:48:16 +0000 (22:48 +0000)]
CSPACE-1345 added csid to role schema as rolename is not unique in cspace
CSPACE-1347 replaced rolename with roleId in association relationships with permission and users, changed query in login-config.xml to reflect this change
test: mvn test at the services level
!!!requires ant clean undeploy deploy at least at services/authentication level as login-config.xml has changed
!!!requires ant create_db at authorization service level
M services/authentication/service/src/main/resources/config/jboss-login-config.xml
M services/authentication/service/src/main/resources/config/login-config.xml
_M services/loanin/service
_M services/loanin/jaxb
_M services/loanin/3rdparty/nuxeo-platform-cs-loanin
_M services/loanin/client
_M services/account
M services/authorization/service/src/test/java/org/collectionspace/services/authorization/test/AuthorizationGenTest.java
M services/authorization/service/src/test/resources/test-data/test-permissions-roles.xml
M services/authorization/service/src/main/java/org/collectionspace/services/authorization/AuthZ.java
M services/authorization/jaxb/src/main/resources/roles.xsd
M services/authorization/jaxb/src/main/resources/users_roles.xsd
M services/authorization/jaxb/src/main/resources/permissions_roles.xsd
M services/authorization/pstore/src/main/resources/db/mysql/authorization_index.sql
M services/authorization/pstore/src/main/resources/db/mysql/test_authorization.sql
M services/authorization/pstore/src/main/resources/db/mysql/authorization.sql
Sanjay Dalal [Wed, 31 Mar 2010 22:43:35 +0000 (22:43 +0000)]
CSPACE-1050 disabled construction of uriresource as HTTP HEAD and OPTIONS are not yet mapped to CSpaceActions that could be permitted
mvn tests at services level including client tests
M common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java
Sanjay Dalal [Tue, 30 Mar 2010 22:54:34 +0000 (22:54 +0000)]
CSPACE-1192 added package.htmls and overview.html for the common services
test: mvn javadoc:aggregate
A common/src/main/javadoc
A common/src/main/javadoc/org
A common/src/main/javadoc/org/collectionspace
A common/src/main/javadoc/org/collectionspace/services
A common/src/main/javadoc/org/collectionspace/services/common
A common/src/main/javadoc/org/collectionspace/services/common/repository
A common/src/main/javadoc/org/collectionspace/services/common/repository/package.html
A common/src/main/javadoc/org/collectionspace/services/common/context
A common/src/main/javadoc/org/collectionspace/services/common/context/package.html
A common/src/main/javadoc/org/collectionspace/services/common/storage
A common/src/main/javadoc/org/collectionspace/services/common/storage/jpa
A common/src/main/javadoc/org/collectionspace/services/common/storage/jpa/package.html
A common/src/main/javadoc/org/collectionspace/services/common/storage/package.html
A common/src/main/javadoc/org/collectionspace/services/common/query
A common/src/main/javadoc/org/collectionspace/services/common/query/nuxeo
A common/src/main/javadoc/org/collectionspace/services/common/query/nuxeo/package.html
A common/src/main/javadoc/org/collectionspace/services/common/query/package.html
A common/src/main/javadoc/org/collectionspace/services/common/config
A common/src/main/javadoc/org/collectionspace/services/common/config/package.html
A common/src/main/javadoc/org/collectionspace/services/common/security
A common/src/main/javadoc/org/collectionspace/services/common/security/package.html
A common/src/main/javadoc/org/collectionspace/services/common/vocabulary
A common/src/main/javadoc/org/collectionspace/services/common/vocabulary/package.html
A common/src/main/javadoc/org/collectionspace/services/common/relation
A common/src/main/javadoc/org/collectionspace/services/common/relation/nuxeo
A common/src/main/javadoc/org/collectionspace/services/common/relation/nuxeo/package.html
A common/src/main/javadoc/org/collectionspace/services/common/relation/package.html
A common/src/main/javadoc/org/collectionspace/services/common/document
A common/src/main/javadoc/org/collectionspace/services/common/document/package.html
A common/src/main/javadoc/org/collectionspace/services/common/package.html
A common/src/main/javadoc/org/collectionspace/services/nuxeo
A common/src/main/javadoc/org/collectionspace/services/nuxeo/util
A common/src/main/javadoc/org/collectionspace/services/nuxeo/util/package.html
A common/src/main/javadoc/org/collectionspace/services/nuxeo/client
A common/src/main/javadoc/org/collectionspace/services/nuxeo/client/java
A common/src/main/javadoc/org/collectionspace/services/nuxeo/client/java/package.html
A common/src/main/javadoc/org/collectionspace/services/nuxeo/client/package.html
A common/src/main/javadoc/org/collectionspace/services/nuxeo/package.html
A common/src/main/javadoc/overview.html
Sanjay Dalal [Tue, 30 Mar 2010 21:20:35 +0000 (21:20 +0000)]
CSPACE-1195 added package.htmls and overview.htmls for javadoc for the authorization service
test: mvn javadoc:aggregate
A authorization/service/src/test/javadoc
A authorization/service/src/test/javadoc/org
A authorization/service/src/test/javadoc/org/collectionspace
A authorization/service/src/test/javadoc/org/collectionspace/services
A authorization/service/src/test/javadoc/org/collectionspace/services/authorization
A authorization/service/src/test/javadoc/org/collectionspace/services/authorization/test
A authorization/service/src/test/javadoc/org/collectionspace/services/authorization/test/package.html
A authorization/service/src/main/javadoc
A authorization/service/src/main/javadoc/org
A authorization/service/src/main/javadoc/org/collectionspace
A authorization/service/src/main/javadoc/org/collectionspace/services
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization/spring
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization/spring/package.html
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization/spi
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization/spi/package.html
A authorization/service/src/main/javadoc/org/collectionspace/services/authorization/package.html
A authorization/service/src/main/javadoc/overview.html
Sanjay Dalal [Tue, 30 Mar 2010 21:19:09 +0000 (21:19 +0000)]
CSPACE-1193 added package.htmls and overview.htmls for javadoc for authentication service
test: mvn javadoc:aggregate
A authentication/service/src/main/javadoc
A authentication/service/src/main/javadoc/org
A authentication/service/src/main/javadoc/org/collectionspace
A authentication/service/src/main/javadoc/org/collectionspace/services
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/realm
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/realm/package.html
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/spring
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/spring/package.html
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/package.html
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/jaas
A authentication/service/src/main/javadoc/org/collectionspace/services/authentication/jaas/package.html
A authentication/service/src/main/javadoc/overview.html