Package org.dspace.curate
Class TaskQueueEntry
- java.lang.Object
-
- 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEpersonId()Returns the epersonId (email) of the agent who enqueued this task entry.StringgetObjectId()Returns the object identifier.longgetSubmitTime()Returns the timestamp of when this entry was enqueued.List<String>getTaskNames()Return the list of tasks associated with this entry.StringtoString()Returns a string representation of the entry
-
-
-
Constructor Detail
-
TaskQueueEntry
public TaskQueueEntry(String epersonId, long submitTime, List<String> taskNames, String objId)
TaskQueueEntry constructor with enumerated field values.- Parameters:
epersonId- task ownersubmitTime- time the task was submitted (System.currentTimeMillis())taskNames- list of task namesobjId- usually a handle or workflow id
-
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
-
-