dk.netarkivet.harvester.datamodel
Class SparsePartialHarvest

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendableEntity
      extended by dk.netarkivet.harvester.datamodel.SparsePartialHarvest
All Implemented Interfaces:
Named

public class SparsePartialHarvest
extends ExtendableEntity
implements Named

Sparse version of PartialHarvest to be used for GUI purposes only. Immutable.

See Also:
PartialHarvest

Field Summary
 
Fields inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendableEntity
extendedFieldValues, log
 
Constructor Summary
SparsePartialHarvest(java.lang.Long oid, java.lang.String name, java.lang.String comments, int numEvents, java.util.Date submissionDate, boolean active, long edition, java.lang.String schedule, java.util.Date nextDate, java.lang.String audience, java.lang.Long channelId)
          Create new instance of SparsePartialHarvest.
 
Method Summary
 java.lang.String getAudience()
           
protected  java.lang.Long getChannelId()
           
 java.lang.String getComments()
          Get comments for domain.
 long getEdition()
          Get edition.
protected  int getExtendedFieldType()
          abstract method for receiving the ExtendedFieldType for concret class which inherits ExtendableEntity
 java.lang.String getName()
          Get name.
 java.util.Date getNextDate()
          Next date this harvest will run (null for never).
 int getNumEvents()
          Number of events this harvest definition has run.
 java.lang.Long getOid()
          ID of harvest definition.
 java.lang.String getScheduleName()
          Name of schedule for harvest definition.
 java.util.Date getSubmissionDate()
          Submission date.
 boolean isActive()
          Whether this definition is active.
 
Methods inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendableEntity
addExtendedFieldValue, addExtendedFieldValues, getExtendedFieldValue, getExtendedFieldValues, setExtendedFieldValues, updateExtendedFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparsePartialHarvest

public SparsePartialHarvest(java.lang.Long oid,
                            java.lang.String name,
                            java.lang.String comments,
                            int numEvents,
                            java.util.Date submissionDate,
                            boolean active,
                            long edition,
                            java.lang.String schedule,
                            java.util.Date nextDate,
                            java.lang.String audience,
                            java.lang.Long channelId)
Create new instance of SparsePartialHarvest.

Parameters:
oid - id of this harvest.
name - the name of the harvest definition.
comments - comments.
numEvents - Number of times this harvest has run.
submissionDate - The submission date.
active - Whether this harvest definition is active.
edition - DAO edition of harvest. used to create this Fullharvest definition.
schedule - name of schedule for this harvest.
nextDate - next time this harvest will run (null for never).
audience - The intended audience
channelId - the channel id, or null for the default one
Throws:
ArgumentNotValid - if oid, name or comments, or schedule is null, or name or schedule is empty.
Method Detail

getNextDate

public java.util.Date getNextDate()
Next date this harvest will run (null for never).

Returns:
Returns the nextDate.

isActive

public boolean isActive()
Whether this definition is active.

Returns:
Returns whether active.

getComments

public java.lang.String getComments()
Get comments for domain.

Specified by:
getComments in interface Named
Returns:
Returns the comments.

getEdition

public long getEdition()
Get edition.

Returns:
Returns the edition.

getName

public java.lang.String getName()
Get name.

Specified by:
getName in interface Named
Returns:
Returns the name.

getNumEvents

public int getNumEvents()
Number of events this harvest definition has run.

Returns:
Returns the numEvents.

getScheduleName

public java.lang.String getScheduleName()
Name of schedule for harvest definition.

Returns:
Returns the scheduleName.

getSubmissionDate

public java.util.Date getSubmissionDate()
Submission date.

Returns:
Returns the submissionDate.

getOid

public java.lang.Long getOid()
ID of harvest definition.

Returns:
Returns the harvestdefinition ID

getAudience

public java.lang.String getAudience()

getChannelId

protected java.lang.Long getChannelId()

getExtendedFieldType

protected int getExtendedFieldType()
Description copied from class: ExtendableEntity
abstract method for receiving the ExtendedFieldType for concret class which inherits ExtendableEntity

Specified by:
getExtendedFieldType in class ExtendableEntity
Returns:
ExtendedFieldType