|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.search.Harvest
public class Harvest
Utility class for extracting information about items, possibly just within a certain community or collection, that have been created, modified or withdrawn within a particular range of dates.
| Constructor Summary | |
|---|---|
Harvest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Harvest()
| Method Detail |
|---|
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 not
HarvestedItemInfo objects
SQLException
ParseException - If the date is not in a supported format
public 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
out
HarvestedItemInfo object for the single item, or
null
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||