public class ItemFilterSet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
| Constructor and Description |
|---|
ItemFilterSet(String filterList,
boolean reportItems)
Construct a set of Item Filters identified by a list string.
|
| Modifier and Type | Method and Description |
|---|---|
ItemFilter |
getAllFiltersFilter()
Get the special filter that represents the intersection of all items in the Item Filter Set.
|
List<ItemFilter> |
getItemFilters()
Get all of the Item Filters initialized into the Item Filter Sest
|
int |
processSaveItems(Context context,
javax.servlet.ServletContext servletContext,
Iterator<Item> childItems,
boolean save,
String expand)
Evaluate a set of Items against the Item Filters in the Item Filter Set
Current DSpace Context
|
int |
processSaveItems(Context context,
javax.servlet.ServletContext servletContext,
Iterator<Item> childItems,
List<Item> items,
boolean save,
String expand)
Evaluate a set of Items against the Item Filters in the Item Filter Set
Current DSpace Context
|
void |
testItem(Context context,
Item item,
Item restItem)
Evaluate an item against the use cases in the Item Filter Set.
|
protected AuthorizeService authorizeService
public ItemFilterSet(String filterList, boolean reportItems)
filterList - Comma separated list of filter names to includereportItems - If true, return item details. If false, return only counts of items.to retrieve all filterspublic ItemFilter getAllFiltersFilter()
public void testItem(Context context, Item item, Item restItem)
context - Active DSpace Contextitem - DSpace Object to evaluaterestItem - REST representation of the DSpace Object being evaluatedpublic List<ItemFilter> getItemFilters()
public int processSaveItems(Context context, javax.servlet.ServletContext servletContext, Iterator<Item> childItems, boolean save, String expand) throws javax.ws.rs.WebApplicationException, SQLException
childItems - Collection of Items to Evaluatesave - If true, save the details of each item that is evaluatedexpand - List of item details to include in the resultsjavax.ws.rs.WebApplicationExceptionSQLExceptionpublic int processSaveItems(Context context, javax.servlet.ServletContext servletContext, Iterator<Item> childItems, List<Item> items, boolean save, String expand) throws javax.ws.rs.WebApplicationException, SQLException
childItems - Collection of Items to Evaluateitems - List of items to contain saved resultssave - If true, save the details of each item that is evaluatedexpand - List of item details to include in the resultsjavax.ws.rs.WebApplicationExceptionSQLExceptionCopyright © 2016 DuraSpace. All rights reserved.