org.dspace.statistics.content
Class StatisticsBSAdapter
java.lang.Object
org.dspace.statistics.content.StatisticsBSAdapter
public class StatisticsBSAdapter
- extends Object
User: @author kevinvandevelde at atmire.com (kevin at atmire.com)
Date: 20-mei-2009
Time: 16:44:29
Class that will hold the data needed to show
statistical data in the browse, search pages
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ITEM_VISITS
public static final int ITEM_VISITS
- See Also:
- Constant Field Values
BITSTREAM_VISITS
public static final int BITSTREAM_VISITS
- See Also:
- Constant Field Values
TOTAL_VISITS
public static final int TOTAL_VISITS
- See Also:
- Constant Field Values
StatisticsBSAdapter
public StatisticsBSAdapter()
getNumberOfVisits
public long getNumberOfVisits(int visitType,
Item item)
throws org.apache.solr.client.solrj.SolrServerException
- Returns the number of visits for the item,
depending on the visitype it can either be item, bitstream, total, ...
- Parameters:
visitType - the type of visits we want, from the item, bitstream, totalitem - the item from which we need our visits
- Returns:
- the number of visits
- Throws:
org.apache.solr.client.solrj.SolrServerException - ....
isDisplayTotalViews
public boolean isDisplayTotalViews()
setDisplayTotalViews
public void setDisplayTotalViews(boolean displayTotalViews)
isDisplayItemViews
public boolean isDisplayItemViews()
setDisplayItemViews
public void setDisplayItemViews(boolean displayItemViews)
isDisplayBitstreamViews
public boolean isDisplayBitstreamViews()
setDisplayBitstreamViews
public void setDisplayBitstreamViews(boolean displayBitstreamViews)
getFilters
public List<StatisticsFilter> getFilters()
addFilter
public void addFilter(StatisticsFilter filter)
setFilters
public void setFilters(List<StatisticsFilter> filters)
Copyright © 2009 The DSpace Foundation. All Rights Reserved.