Class 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 Detail

      • TaskQueueEntry

        public TaskQueueEntry​(String epersonId,
                              long submitTime,
                              List<String> taskNames,
                              String objId)
        TaskQueueEntry constructor with enumerated field values.
        Parameters:
        epersonId - task owner
        submitTime - time the task was submitted (System.currentTimeMillis())
        taskNames - list of task names
        objId - 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
      • toString

        public String toString()
        Returns a string representation of the entry
        Overrides:
        toString in class Object
        Returns:
        string pipe-separated field values