@Entity public class HarvestedCollection extends Object implements ReloadableEntity<Integer>
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_BUSY |
static int |
STATUS_OAI_ERROR |
static int |
STATUS_QUEUED |
static int |
STATUS_READY |
static int |
STATUS_UNKNOWN_ERROR |
static int |
TYPE_DMD |
static int |
TYPE_DMDREF |
static int |
TYPE_FULL |
static int |
TYPE_NONE |
| Modifier | Constructor and Description |
|---|---|
protected |
HarvestedCollection()
Protected constructor, create object using:
HarvestedCollectionService.create(Context, Collection) |
| Modifier and Type | Method and Description |
|---|---|
Collection |
getCollection() |
Date |
getHarvestDate() |
String |
getHarvestMessage() |
String |
getHarvestMetadataConfig() |
Date |
getHarvestStartTime() |
int |
getHarvestStatus() |
int |
getHarvestType() |
Integer |
getID() |
String |
getOaiSetId() |
String |
getOaiSource() |
void |
setHarvestMessage(String message) |
void |
setHarvestMetadataConfig(String mdConfigId) |
void |
setHarvestParams(int type,
String oaiSource,
String oaiSetId,
String mdConfigId)
A function to set all harvesting-related parameters at once
|
void |
setHarvestStartTime(Date date) |
void |
setHarvestStatus(int status)
Sets the current status of the collection.
|
void |
setHarvestType(int type) |
void |
setLastHarvested(Date lastHarvested) |
void |
setOaiSetId(String oaiSetId) |
void |
setOaiSource(String oaiSource) |
public static final int TYPE_NONE
public static final int TYPE_DMD
public static final int TYPE_DMDREF
public static final int TYPE_FULL
public static final int STATUS_READY
public static final int STATUS_BUSY
public static final int STATUS_QUEUED
public static final int STATUS_OAI_ERROR
public static final int STATUS_UNKNOWN_ERROR
protected HarvestedCollection()
HarvestedCollectionService.create(Context, Collection)public Integer getID()
getID in interface ReloadableEntity<Integer>public void setHarvestParams(int type,
String oaiSource,
String oaiSetId,
String mdConfigId)
public void setHarvestType(int type)
public void setHarvestStatus(int status)
status - a HarvestInstance.STATUS_... constantpublic void setOaiSource(String oaiSource)
public void setOaiSetId(String oaiSetId)
public void setHarvestMetadataConfig(String mdConfigId)
public void setLastHarvested(Date lastHarvested)
public void setHarvestMessage(String message)
public void setHarvestStartTime(Date date)
public Collection getCollection()
public int getHarvestType()
public int getHarvestStatus()
public String getOaiSource()
public String getOaiSetId()
public String getHarvestMetadataConfig()
public String getHarvestMessage()
public Date getHarvestDate()
public Date getHarvestStartTime()
Copyright © 2016 DuraSpace. All rights reserved.