org.dspace.statistics.content
Class StatisticsDataWorkflow

java.lang.Object
  extended by org.dspace.statistics.content.StatisticsData
      extended by org.dspace.statistics.content.StatisticsDataWorkflow

public class StatisticsDataWorkflow
extends StatisticsData

A workflow data implementation that will query the statistics backend for workflow information

Author:
Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)

Constructor Summary
StatisticsDataWorkflow(DSpaceObject dso, int averageMonths)
           
 
Method Summary
 Dataset createDataset(Context context)
          Run the accumulated query and return its results.
protected  Date getOldestWorkflowItemDate()
           
protected  String getQuery()
          Returns the query to be used in solr in case of a dso a scopeDso query will be returned otherwise the default *:* query will be used
protected  Map<String,Long> getTotalFacetCounts(DatasetTypeGenerator typeGenerator)
          Retrieve the total counts for the facets (total count is same query but none of the filter queries
 
Methods inherited from class org.dspace.statistics.content.StatisticsData
addDatasetGenerator, addFilters, getDataset, getDatasetGenerators, getFilters, setDataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsDataWorkflow

public StatisticsDataWorkflow(DSpaceObject dso,
                              int averageMonths)
Method Detail

createDataset

public Dataset createDataset(Context context)
                      throws SQLException,
                             org.apache.solr.client.solrj.SolrServerException,
                             IOException,
                             ParseException
Description copied from class: StatisticsData
Run the accumulated query and return its results.

Specified by:
createDataset in class StatisticsData
Throws:
SQLException
org.apache.solr.client.solrj.SolrServerException
IOException
ParseException

getQuery

protected String getQuery()
Returns the query to be used in solr in case of a dso a scopeDso query will be returned otherwise the default *:* query will be used

Returns:
the query as a string

getTotalFacetCounts

protected Map<String,Long> getTotalFacetCounts(DatasetTypeGenerator typeGenerator)
                                        throws org.apache.solr.client.solrj.SolrServerException
Retrieve the total counts for the facets (total count is same query but none of the filter queries

Parameters:
typeGenerator - the type generator
Returns:
as a key the
Throws:
org.apache.solr.client.solrj.SolrServerException

getOldestWorkflowItemDate

protected Date getOldestWorkflowItemDate()
                                  throws org.apache.solr.client.solrj.SolrServerException
Throws:
org.apache.solr.client.solrj.SolrServerException


Copyright © 2012 DuraSpace. All Rights Reserved.