public class ItemCounter extends Object
| Constructor and Description |
|---|
ItemCounter(Context context)
Construct a new item counter which will use the give DSpace Context
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public ItemCounter(Context context) throws ItemCountException
context - ItemCountExceptionpublic static void main(String[] args) throws ItemCountException, SQLException
args - ItemCountExceptionSQLExceptionpublic void buildItemCounts()
throws ItemCountException
ItemCountExceptionpublic int getCount(DSpaceObject dso) throws ItemCountException
dso - ItemCountExceptionSQLExceptionpublic void remove(DSpaceObject dso) throws ItemCountException
dso - ItemCountExceptionCopyright © 2014 DuraSpace. All Rights Reserved.