Package org.dspace.curate
Class TaskQueueEntry
java.lang.Object
org.dspace.curate.TaskQueueEntry
TaskQueueEntry defines the record or entry in the named task queues.
Regular immutable value object class.
- Author:
- richardrodgers
-
Constructor Summary
ConstructorsConstructorDescriptionTaskQueueEntry(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
Modifier and TypeMethodDescriptionReturns the epersonId (email) of the agent who enqueued this task entry.Returns the object identifier.longReturns the timestamp of when this entry was enqueued.Return the list of tasks associated with this entry.toString()Returns a string representation of the entry
-
Constructor Details
-
TaskQueueEntry
TaskQueueEntry constructor with enumerated field values.- Parameters:
epersonId- task ownersubmitTime- time the task was submitted (Instant.now().toEpochMilli())taskNames- list of task namesobjId- usually a handle or workflow id
-
TaskQueueEntry
Constructor with a pipe-separated list of field values.- Parameters:
entry- list of field values separated by '|'s
-
-
Method Details
-
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
Return the list of tasks associated with this entry.- Returns:
- tasks the list of task names (Plugin names)
-
getObjectId
Returns the object identifier.- Returns:
- objId usually a handle or workflow id
-
toString
Returns a string representation of the entry
-