Package org.dspace.browse
Class ItemCountDAOSolr
- java.lang.Object
-
- org.dspace.browse.ItemCountDAOSolr
-
- All Implemented Interfaces:
ItemCountDAO
public class ItemCountDAOSolr extends Object implements ItemCountDAO
Discovery (Solr) driver implementing ItemCountDAO interface to look up item count information in communities and collections. Caching operations are intentionally not implemented because Solr already is our cache.- Author:
- Ivan Masár, Andrea Bollini
-
-
Constructor Summary
Constructors Constructor Description ItemCountDAOSolr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount(DSpaceObject dso)Get the count of the items in the given container.voidsetContext(Context context)Set the dspace context to use
-
-
-
Method Detail
-
setContext
public void setContext(Context context) throws ItemCountException
Set the dspace context to use- Specified by:
setContextin interfaceItemCountDAO- Parameters:
context- DSpace Context- Throws:
ItemCountException- if count error
-
getCount
public int getCount(DSpaceObject dso) throws ItemCountException
Get the count of the items in the given container.- Specified by:
getCountin interfaceItemCountDAO- Parameters:
dso- Dspace Context- Returns:
- count
- Throws:
ItemCountException- if count error
-
-