public class ItemCounter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationService |
configurationService |
protected ItemService |
itemService |
| Constructor and Description |
|---|
ItemCounter(Context context)
Construct a new item counter which will use the given DSpace Context
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount(DSpaceObject dso)
Get the count of the items in the given container.
|
protected ItemService itemService
protected ConfigurationService configurationService
public ItemCounter(Context context) throws ItemCountException
context - current contextItemCountException - if count errorpublic int getCount(DSpaceObject dso) throws ItemCountException
dso - DSpaceObjectItemCountException - when error occursCopyright © 2017 DuraSpace. All rights reserved.