/*
 */
package org.datadryad.journalstatistics.statistics;

import java.util.ArrayList;
import java.util.List;
import org.datadryad.journalstatistics.extractor.DataPackageCount;
import org.dspace.core.Context;

/**
 *
 * @author Dan Leehr <dan.leehr@nescent.org>
 */
public class DefaultStatisticsPackage implements StatisticsPackage {
    private List<Statistic> statistics = new ArrayList<Statistic>();
    public DefaultStatisticsPackage(Context context) {
        statistics.add(new Statistic<Integer>("Data packages by journal", new DataPackageCount(context)));
    }
    @Override
    public void run(String journalName) {
        for(Statistic s : statistics) {
            s.extractAndStore(journalName);
            System.out.println(s);
        }
    }
}

@@ -115,438 +115,1177 @@
 ort 
-org.datadryad.journalstatistics.extractor.DataPackageCount;%0Aimport org.dspace.core.Context;%0A%0A/**%0A *%0A * @author Dan Leehr %3Cdan.leehr@nescent.org%3E%0A */%0Apublic class DefaultStatisticsPackage implements StatisticsPackage %7B%0A    private List%3CStatistic%3E statistics = new ArrayList%3CStatistic%3E();%0A    public DefaultStatisticsPackage(Context context) %7B%0A        statistics.add(new Statistic%3CInteger%3E(%22Data packages by journal%22, new DataPackag
+java.util.Map;%0Aimport org.datadryad.journalstatistics.extractor.DataFileCount;%0Aimport org.datadryad.journalstatistics.extractor.DataFileTotalSize;%0Aimport org.datadryad.journalstatistics.extractor.DataPackageCount;%0Aimport org.datadryad.journalstatistics.extractor.DataPackageUnpublishedCount;%0Aimport org.datadryad.journalstatistics.extractor.EmbargoedDataFileCount;%0Aimport org.dspace.core.Context;%0A%0A/**%0A *%0A * @author Dan Leehr %3Cdan.leehr@nescent.org%3E%0A */%0Apublic class DefaultStatisticsPackage implements StatisticsPackage %7B%0A    private List%3CStatistic%3E statistics = new ArrayList%3CStatistic%3E();%0A    public DefaultStatisticsPackage(Context context) %7B%0A        statistics.add(new Statistic%3CInteger%3E(%22Data packages count%22, new DataPackageCount(context)));%0A        statistics.add(new Statistic%3CInteger%3E(%22Data files count%22, new DataFileCount(context)));%0A        statistics.add(new Statistic%3CLong%3E(%22Data files total size%22, new DataFileTotalSize(context)));%0A        statistics.add(new Statistic%3CMap%3CString, Integer%3E%3E(%22Unpublished data packages%22, new DataPackageUnpublishedCount(context)));%0A        statistics.add(new Statistic%3CInteger%3E(%22Embargoed data files%22, new EmbargoedDataFil
 eCou

Add extractors to default statistics package