@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()
The unique identifier of this entity instance.
|
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)
Sets the OAI set to harvest.
|
void |
setOaiSource(String oaiSource)
Sets the base URL of the OAI-PMH server.
|
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()
ReloadableEntitygetID in interface ReloadableEntity<Integer>public void setHarvestParams(int type,
String oaiSource,
String oaiSetId,
String mdConfigId)
type - harvest type (TYPE_NONE, TYPE_DMD, TYPE_DMDREF, TYPE_FULL)oaiSource - base URL of the OAI-PMH serveroaiSetId - OAI set identifiermdConfigId - harvest metadata config IDpublic void setHarvestType(int type)
public void setHarvestStatus(int status)
status - a HarvestInstance.STATUS_... constant (STATUS_READY, STATUS_BUSY, STATUS_QUEUED,
STATUS_OAI_ERROR, STATUS_UNKNOWN_ERROR)public void setOaiSource(String oaiSource)
oaiSource - base URL of the OAI-PMH serverpublic void setOaiSetId(String oaiSetId)
oaiSetId - OAI set to harvestpublic 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 © 2019 DuraSpace. All rights reserved.