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 Set
|
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
|
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 include.
Use ItemFilter.ALL to retrieve all filters.reportItems - If true, return item details. If false, return only counts of items.public 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
context - Current DSpace ContextservletContext - Context of the servlet container.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.WebApplicationException - Runtime exception for applications.SQLException - An exception that provides information on a database access error or other
errors.public int processSaveItems(Context context, javax.servlet.ServletContext servletContext, Iterator<Item> childItems, List<Item> items, boolean save, String expand) throws javax.ws.rs.WebApplicationException, SQLException
context - Current DSpace ContextservletContext - Context of the servlet container.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.WebApplicationException - Runtime exception for applications.SQLException - An exception that provides information on a database access error or other
errors.Copyright © 2019 DuraSpace. All rights reserved.