java.lang.Object | |
↳ | com.atlassian.jira.web.bean.TaskDescriptorBean<V> |
A UI styler bean to help format up a TaskDescriptor
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TaskDescriptorBean.Factory |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Requests that this task be cancelled.
| |||||||||||
Return the description of the task passed when it was created.
| |||||||||||
This returns number of milliseconds the task has been running for.
| |||||||||||
Return the date when the task was finished.
| |||||||||||
Returns a number between 0 and 100 and caters for lack of progress and finished tasks.
| |||||||||||
Returns the URL that displays progress on this task.
| |||||||||||
This returns the result of the long running task.
| |||||||||||
Return the date when the task was started.
| |||||||||||
Return the date when the task was submitted.
| |||||||||||
Return he context of task.
| |||||||||||
Reuturn the identifier for this task.
| |||||||||||
We dont re-expose this.
| |||||||||||
Return the user that started to task.
| |||||||||||
Returns whether this supports requests to cancel it.
| |||||||||||
Returns whether cancellation of task has been requested.
| |||||||||||
Tells if caller if the task has finished running or not.
| |||||||||||
True if the task has been started.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.task.TaskDescriptor
|
Requests that this task be cancelled.
Return the description of the task passed when it was created.
This returns number of milliseconds the task has been running for. Will return zero if the task has not started. When the task has started but not finished, it will return the the difference between the current time and the time was started (i.e. it will change). When the task has finished, it will return the difference between the start time and the end time (i.e. it will not change).
Return the date when the task was finished.
null
will be returned if the task has not finished
executing.
Returns a number between 0 and 100 and caters for lack of progress and finished tasks.
Returns the URL that displays progress on this task. It is built using the TaskContext
.
null
cannot be returned.
This returns the result of the long running task. WARNING: This will BLOCK if the task has not finished and will not return until it has finished executing.
Return the date when the task was started.
null
will be returned if the task has not started executing.
Return the date when the task was submitted.
TaskManager
. A null
value will never be returned as the task will always have a submission time.
Return he context of task. Code that starts long running tasks can implement their own variants of this.
null
as a task must always
have a context.
Reuturn the identifier for this task. This is only unique in the current execution of the JVM.
We dont re-expose this. Use getLastProgressEvent().
Return the user that started to task.
Returns whether this supports requests to cancel it.
true
if cancellation is supported,
and false
otherwiseReturns whether cancellation of task has been requested. Long-running operations should poll to see if task has been requested.
true
if cancellation has been requested,
and false
otherwiseTells if caller if the task has finished running or not.
True if the task has been started.