Initial framework for annual journal statistics

Have interfaces and beginning implementation of counting data packages
per journal
Add journal-stats to launcher.xml
Implementation of DataPackageCount
Implementation of a statistics package

Includes count of packages by journal
Main class to run journal statistics
Auto-generated test class from netbeans. Doesn't do anything yet
Wrote a test case for count, will fail
Classes for Dryad core model API
Refactored to use Dryad core Model API
Update test to create a data package before count
Configure dspace.cfg file when running api-stats tests
Add database_dryad_groups_collections.sql

Moving from dryad-bootstrap.sql in https://github.com/datadryad/vagrant-dryad
Turn off authorization system, allow item creation
Add metadataregistry sql for test database
Commit changes after setting publication name
Call Update after setting publicationName
Link objects to collection and archive on creation
Notes about archive status for counting
Update test to check for count+1

Test now passes

Expects database to exist. Locally I’ve been using test database installed with this:

    #!/bin/sh

    DRYAD_CODE_DIR="/Users/dan/Code/dryad-repo"

    # Wipes the test database on my local machine

    # Drop the dryad_test database
    dropdb -U dan dryad_test
    # create test user if needed
    psql -U dan -c "create user dryad_test_user with createdb;"
    createdb -U dryad_test_user dryad_test

    # Load database schema
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_schema.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_create_doi_table.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_change_payment_system.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_terms_and_condition.sql

    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/collection-workflow-changes.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/atmire-versioning-changes.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_dryad_groups_collections.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_dryad_metadata_registry.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/update-sequences.sql

And running maven with:

    mvn package -Dmaven.test.skip=false -Ddefault.dspace.dir=/opt/dryad-test

With /opt/dryad-test created by travis config

https://github.com/dleehr/dryad-repo/blob/travis/test/bin/travis-install-dryad-dir.sh
Add DataFileCount and Test