CSPACE-888 added _index sql scripts to add indices to account and user related tables, changed create_db task to execute the scripts
CSPACE-1031 tenants table is separated from account. added accounts_tenants association table. tenant validation updated (if tenant id not in create request, takes from secuirty context), if in (create or update) the request, validates against valid tenants from the tenant table
Requires ant deploy (for authn service...also requires changes in login-config (see jboss-login-config.xml for updated snippet...tenant query has changed)
test: account and security tests with and without authn
M services/authentication/service/src/main/resources/config/jboss-login-config.xml
A services/authentication/pstore/src/main/resources/db/mysql/authentication_index.sql
M services/authentication/pstore/build.xml
M services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
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/storage/AccountValidatorHandler.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M services/account/jaxb/src/main/resources/accounts_common.xsd
M services/account/pstore/src/test/resources/META-INF/persistence.xml
A services/account/pstore/src/main/resources/db/mysql/account_index.sql
M services/account/pstore/src/main/resources/db/mysql/test_account.sql
M services/account/pstore/src/main/resources/db/mysql/account.sql
M services/account/pstore/build.xml
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountTest.java
M services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
M services/account/client/src/test/resources/META-INF/persistence.xml
M services/security/client/src/test/java/org/collectionspace/services/authentication/client/test/AuthenticationServiceTest.java