public class Harvest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AuthorizeService |
authorizeService |
protected static HandleService |
handleService |
protected static ItemService |
itemService |
| Constructor and Description |
|---|
Harvest() |
| Modifier and Type | Method and Description |
|---|---|
static HarvestedItemInfo |
getSingle(Context context,
String handle,
boolean collections)
Get harvested item info for a single item.
|
static List<HarvestedItemInfo> |
harvest(Context context,
DSpaceObject scope,
String startDate,
String endDate,
int offset,
int limit,
boolean items,
boolean collections,
boolean withdrawn,
boolean nonAnon)
Obtain information about items that have been created, modified or
withdrawn within a given date range.
|
protected static final AuthorizeService authorizeService
protected static final HandleService handleService
protected static final ItemService itemService
public static List<HarvestedItemInfo> harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn, boolean nonAnon) throws SQLException, ParseException
Note that dates are passed in the standard ISO8601 format used by DSpace (and OAI-PMH).
FIXME: Assumes all in_archive items have public metadata
context - DSpace contextscope - a Collection, Community, or null indicating the scope is
all of DSpacestartDate - start of date range, or nullendDate - end of date range, or nulloffset - for a partial harvest, the point in the overall list of
matching items to start at. 0 means just start at the
beginning.limit - the number of matching items to return in a partial harvest.
Specify 0 to return the whole list (or the rest of the list if
an offset was specified.)items - if true the item field of each
HarvestedItemInfo object is filled outcollections - if true the collectionHandles
field of each HarvestedItemInfo object is
filled outwithdrawn - If true, information about withdrawn items is
includednonAnon - If items without anonymous access should be included or notHarvestedItemInfo objectsSQLExceptionParseException - If the date is not in a supported formatpublic static HarvestedItemInfo getSingle(Context context, String handle, boolean collections) throws SQLException
item field in
returned HarvestedItemInfo object is always filled out.context - DSpace contexthandle - Prefix-less Handle of itemcollections - if true the collectionHandles
field of the HarvestedItemInfo object is filled
outHarvestedItemInfo object for the single item, or
nullSQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.