public abstract class TaskManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TaskManager.VcsOperation |
Constructor and Description |
---|
TaskManager() |
Modifier and Type | Method and Description |
---|---|
abstract LocalTask |
activateTask(Task task,
boolean clearContext) |
abstract LocalTask |
addTask(Task issue) |
abstract void |
addTaskListener(TaskListener listener)
Deprecated.
|
abstract void |
addTaskListener(TaskListener listener,
Disposable parentDisposable) |
abstract LocalTask |
createLocalTask(java.lang.String summary) |
abstract LocalTask |
findTask(java.lang.String id) |
abstract LocalTask |
getActiveTask() |
abstract AbstractVcs |
getActiveVcs() |
abstract TaskRepository[] |
getAllRepositories() |
abstract LocalTask |
getAssociatedTask(LocalChangeList list) |
abstract java.util.List<Task> |
getCachedIssues()
Returns already cached issues.
|
abstract java.util.List<Task> |
getCachedIssues(boolean withClosed) |
abstract java.util.List<Task> |
getIssues(java.lang.String query)
Queries all configured task repositories.
|
abstract java.util.List<Task> |
getIssues(java.lang.String query,
boolean forceRequest) |
abstract java.util.List<Task> |
getIssues(java.lang.String query,
int offset,
int limit,
boolean withClosed,
ProgressIndicator indicator,
boolean forceRequest)
Most arguments have the same meaning as the ones in
TaskRepository.getIssues(String, int, int, boolean, ProgressIndicator) . |
abstract java.util.List<LocalTask> |
getLocalTasks() |
abstract java.util.List<LocalTask> |
getLocalTasks(boolean withClosed) |
static TaskManager |
getManager(Project project) |
abstract boolean |
isLocallyClosed(LocalTask localTask) |
abstract boolean |
isVcsEnabled() |
abstract void |
removeTask(LocalTask task) |
abstract void |
removeTaskListener(TaskListener listener)
Deprecated.
|
abstract boolean |
testConnection(TaskRepository repository) |
abstract void |
trackContext(LocalChangeList changeList) |
abstract void |
updateIssues(java.lang.Runnable onComplete)
Update issue cache asynchronously
|
public static TaskManager getManager(Project project)
public abstract java.util.List<Task> getIssues(java.lang.String query)
query
- text searchgetCachedIssues()
public abstract java.util.List<Task> getIssues(java.lang.String query, boolean forceRequest)
public abstract java.util.List<Task> getIssues(java.lang.String query, int offset, int limit, boolean withClosed, ProgressIndicator indicator, boolean forceRequest)
TaskRepository.getIssues(String, int, int, boolean, ProgressIndicator)
.query
- optional pattern to filter tasks. One use case is the text entered in "Open Task" dialog.offset
- first issue, that should be returned by server. It's safe to use 0, if your server doesn't support pagination.
Or you could calculate it as pageSize * (page - 1)
if it does.limit
- maximum number of issues returned in one response. You can interpret it as page size.withClosed
- whether to include closed issues. Downloaded issues will be filtered by Task.isClosed()
anyway, but
filtering on server side can give more useful results in single request.indicator
- progress indicator to interrupt long-running requests.forceRequest
- whether to download issues anew or use already cached ones.public abstract java.util.List<Task> getCachedIssues()
public abstract java.util.List<Task> getCachedIssues(boolean withClosed)
public abstract java.util.List<LocalTask> getLocalTasks()
public abstract java.util.List<LocalTask> getLocalTasks(boolean withClosed)
public abstract LocalTask createLocalTask(java.lang.String summary)
public abstract LocalTask getActiveTask()
public abstract LocalTask findTask(java.lang.String id)
public abstract void updateIssues(java.lang.Runnable onComplete)
onComplete
- callback to be invoked after updatingpublic abstract boolean isVcsEnabled()
public abstract AbstractVcs getActiveVcs()
public abstract boolean isLocallyClosed(LocalTask localTask)
public abstract LocalTask getAssociatedTask(LocalChangeList list)
public abstract void trackContext(LocalChangeList changeList)
public abstract void removeTask(LocalTask task)
@Deprecated public abstract void addTaskListener(TaskListener listener)
addTaskListener(TaskListener, Disposable)
public abstract void addTaskListener(TaskListener listener, Disposable parentDisposable)
@Deprecated public abstract void removeTaskListener(TaskListener listener)
addTaskListener(TaskListener, Disposable)
public abstract TaskRepository[] getAllRepositories()
public abstract boolean testConnection(TaskRepository repository)