org.dspace.curate
Class TaskQueueEntry

java.lang.Object
  extended by org.dspace.curate.TaskQueueEntry

public final class TaskQueueEntry
extends Object

TaskQueueEntry defines the record or entry in the named task queues. Regular immutable value object class.

Author:
richardrodgers

Constructor Summary
TaskQueueEntry(String entry)
          Constructor with a pipe-separated list of field values.
TaskQueueEntry(String epersonId, long submitTime, List<String> taskNames, String objId)
          TaskQueueEntry constructor with enumerated field values.
 
Method Summary
 String getEpersonId()
          Returns the epersonId (email) of the agent who enqueued this task entry.
 String getObjectId()
          Returns the object identifier.
 long getSubmitTime()
          Returns the timestamp of when this entry was enqueued.
 List<String> getTaskNames()
          Return the list of tasks associated with this entry.
 String toString()
          Returns a string representation of the entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskQueueEntry

public TaskQueueEntry(String epersonId,
                      long submitTime,
                      List<String> taskNames,
                      String objId)
TaskQueueEntry constructor with enumerated field values.

Parameters:
epersonId -
submitTime -
taskNames -
objId -

TaskQueueEntry

public TaskQueueEntry(String entry)
Constructor with a pipe-separated list of field values.

Parameters:
entry - list of field values separated by '|'s
Method Detail

getEpersonId

public String getEpersonId()
Returns the epersonId (email) of the agent who enqueued this task entry.

Returns:
epersonId name of EPerson (email) or 'unknown' if none recorded.

getSubmitTime

public long getSubmitTime()
Returns the timestamp of when this entry was enqueued.

Returns:
time Submission timestamp

getTaskNames

public List<String> getTaskNames()
Return the list of tasks associated with this entry.

Returns:
tasks the list of task names (Plugin names)

getObjectId

public String getObjectId()
Returns the object identifier.

Returns:
objId usually a handle or workflow id

toString

public String toString()
Returns a string representation of the entry

Overrides:
toString in class Object
Returns:
string pipe-separated field values


Copyright © 2011 DuraSpace. All Rights Reserved.