public class Harvest
extends java.lang.Object
| Constructor and Description |
|---|
Harvest() |
| Modifier and Type | Method and Description |
|---|---|
static HarvestedItemInfo |
getSingle(Context context,
java.lang.String handle,
boolean collections)
Get harvested item info for a single item.
|
static java.util.List<HarvestedItemInfo> |
harvest(Context context,
DSpaceObject scope,
java.lang.String startDate,
java.lang.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.
|
public static java.util.List<HarvestedItemInfo> harvest(Context context, DSpaceObject scope, java.lang.String startDate, java.lang.String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn, boolean nonAnon) throws java.sql.SQLException, java.text.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 objectsjava.sql.SQLExceptionjava.text.ParseException - If the date is not in a supported formatpublic static HarvestedItemInfo getSingle(Context context, java.lang.String handle, boolean collections) throws java.sql.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
nulljava.sql.SQLExceptionCopyright © 2013 DuraSpace. All Rights Reserved.