|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.browse.ItemCounter
public class ItemCounter
This class provides a standard interface to all item counting operations for communities and collections. It can be run from the command line to prepare the cached data if desired, simply by running: java org.dspace.browse.ItemCounter It can also be invoked via its standard API. In the event that the data cache is not being used, this class will return direct real time counts of content.
| Constructor Summary | |
|---|---|
ItemCounter(Context context)
Construct a new item counter which will use the give DSpace Context |
|
| Method Summary | |
|---|---|
void |
buildItemCounts()
This method does the grunt work of drilling through and iterating over all of the communities and collections in the system and obtaining and caching the item counts for each one. |
int |
getCount(DSpaceObject dso)
Get the count of the items in the given container. |
static void |
main(String[] args)
method invoked by CLI which will result in the number of items in each community and collection being cached. |
void |
remove(DSpaceObject dso)
Remove any cached data for the given container |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemCounter(Context context)
throws ItemCountException
context -
ItemCountException| Method Detail |
|---|
public static void main(String[] args)
throws ItemCountException,
SQLException
args -
ItemCountException
SQLException
public void buildItemCounts()
throws ItemCountException
ItemCountException
public int getCount(DSpaceObject dso)
throws ItemCountException
dso -
ItemCountException
SQLException
public void remove(DSpaceObject dso)
throws ItemCountException
dso -
ItemCountException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||