Class NonExclusiveTaskContext

java.lang.Object
com.atlassian.jira.task.NonExclusiveTaskContext
All Implemented Interfaces:
TaskContext, Serializable
Direct Known Subclasses:
CloneIssueTaskContext

public class NonExclusiveTaskContext extends Object implements TaskContext
General context that can be used for a task that has NO requirement to be unique, i.e. many of these can run at the same time.
See Also:
  • Constructor Details

    • NonExclusiveTaskContext

      public NonExclusiveTaskContext(String progressURL, String taskContextName)
      Parameters:
      progressURL - progress URL to be returned as-is by buildProgressURL(java.lang.Long)
      taskContextName - this name should be unique between task submitters, to identify their task
  • Method Details

    • buildProgressURL

      public String buildProgressURL(Long taskId)
      Description copied from interface: TaskContext
      This factory method is called to build a progress URL so the TaskDescriptor can allow some one to navigate to the task's "web page". The URL should start with "/" and be ready for the servlet context path to be prepended.
      Specified by:
      buildProgressURL in interface TaskContext
      Parameters:
      taskId - - the id of the task. Since this is not known until task submission, this call back is informed of it once created.
      Returns:
      returns a context specific progress URL that a user can go to to view the progress of a task.
    • getTaskContextName

      public String getTaskContextName()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object