public class TaskRequestBuilder extends AbstractRequestBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
ASSIGNEE_STATUS_INBOX |
static String |
ASSIGNEE_STATUS_LATER |
static String |
ASSIGNEE_STATUS_TODAY |
static String |
ASSIGNEE_STATUS_UPCOMING |
protected List<Long> |
followers |
protected List<Long> |
projects |
protected String[] |
validAssigneeStatuses |
params| Constructor and Description |
|---|
TaskRequestBuilder() |
TaskRequestBuilder(long workspace,
String name) |
| Modifier and Type | Method and Description |
|---|---|
TaskRequestBuilder |
addFollower(long follower) |
TaskRequestBuilder |
addProject(long projectId) |
TaskRequestBuilder |
assignee(long assignee) |
TaskRequestBuilder |
assigneeStatus(String status) |
com.sun.jersey.core.util.MultivaluedMapImpl |
build() |
TaskRequestBuilder |
completed(boolean completed) |
TaskRequestBuilder |
dueOn(int year,
int month,
int day) |
TaskRequestBuilder |
dueOn(String date)
Set the due date for this task
|
TaskRequestBuilder |
followers(long[] followers) |
TaskRequestBuilder |
name(String name) |
TaskRequestBuilder |
notes(String notes) |
TaskRequestBuilder |
parent(long parentId)
Set the parent task for this task
|
TaskRequestBuilder |
setProjects(long[] projects) |
TaskRequestBuilder |
workspace(long workspace) |
setParampublic static final String ASSIGNEE_STATUS_INBOX
public static final String ASSIGNEE_STATUS_LATER
public static final String ASSIGNEE_STATUS_TODAY
public static final String ASSIGNEE_STATUS_UPCOMING
protected String[] validAssigneeStatuses
public TaskRequestBuilder()
public TaskRequestBuilder(long workspace,
String name)
public TaskRequestBuilder assignee(long assignee)
public TaskRequestBuilder name(String name)
public TaskRequestBuilder workspace(long workspace)
public TaskRequestBuilder notes(String notes)
public TaskRequestBuilder addFollower(long follower)
public TaskRequestBuilder followers(long[] followers)
public TaskRequestBuilder parent(long parentId)
parentId - the id of the parent taskpublic TaskRequestBuilder addProject(long projectId)
public TaskRequestBuilder setProjects(long[] projects)
public TaskRequestBuilder assigneeStatus(String status)
public TaskRequestBuilder completed(boolean completed)
public TaskRequestBuilder dueOn(String date)
date - YYYY-MM-DDpublic TaskRequestBuilder dueOn(int year, int month, int day)
public com.sun.jersey.core.util.MultivaluedMapImpl build()
build in class AbstractRequestBuilderCopyright © 2015. All rights reserved.