dk.netarkivet.harvester.datamodel
Class SparsePartialHarvest

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

public class SparsePartialHarvest
extends java.lang.Object
implements Named

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

See Also:
PartialHarvest

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)
          Create new instance of SparsePartialHarvest.
 
Method Summary
 java.lang.String getComments()
          Get comments for domain.
 long getEdition()
          Get edition.
 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 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)
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).
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