public class

TaskServiceClient

extends AbstractServiceClient
implements TaskService
java.lang.Object
   ↳ org.mule.LiquidPlanner.client.services.impl.AbstractServiceClient
     ↳ org.mule.LiquidPlanner.client.services.impl.TaskServiceClient

Summary

Constants
String API_MOVE_AFTER_PATH
String API_MOVE_BEFORE_PATH
String API_PACKAGE_AFTER_PATH
String API_PACKAGE_BEFORE_PATH
String API_SNAPSHOT_PATH
String API_TIMER_PATH
String API_TRACK_TIME_PATH
[Expand]
Inherited Constants
From class org.mule.LiquidPlanner.client.services.impl.AbstractServiceClient
[Expand]
Inherited Fields
From class org.mule.LiquidPlanner.client.services.impl.AbstractServiceClient
Public Constructors
TaskServiceClient(String user, String password)
Public Methods
Task createTask(String workSpaceId, Task task)
Create a Task
Task deleteTask(String workSpaceId, String taskId)
Task getTask(String workSpaceId, String taskId)
Retrieves a particular task related to a workspace
Timesheet getTaskTimesheet(String workSpaceId, String taskId, String timesheetId)
Retrieves a particular time sheets
List<Timesheet> getTaskTimesheets(String workSpaceId, String taskId, List<Filter> filters)
Retrieves time sheets related to a particular task
List<Task> getTasks(String workSpaceId, List<Filter> filters)
Retrieves tasks related to a workspace
Task updateTask(String workSpaceId, Task task)
Protected Methods
String extendGetBaseUrl(String baseUrl)
This method is called by getBaseURL for the user to extend the base URL of its ServiceClient implementation.
ClientConfig getJerseyClientConfiguration()
This method is called by getBuilder before the creation of the Client.
List<ClientFilter> getJerseyClientFilters()
This method is called by getBuilder before the creation of the Client.
[Expand]
Inherited Methods
From class org.mule.LiquidPlanner.client.services.impl.AbstractServiceClient
From class java.lang.Object
From interface org.mule.LiquidPlanner.client.services.TaskService

Constants

private static final String API_MOVE_AFTER_PATH

Constant Value: "/move_after"

private static final String API_MOVE_BEFORE_PATH

Constant Value: "/move_before"

private static final String API_PACKAGE_AFTER_PATH

Constant Value: "/package_after"

private static final String API_PACKAGE_BEFORE_PATH

Constant Value: "/package_before"

private static final String API_SNAPSHOT_PATH

Constant Value: "/snapshots"

private static final String API_TIMER_PATH

Constant Value: "/timer"

private static final String API_TRACK_TIME_PATH

Constant Value: "/track_time"

Public Constructors

public TaskServiceClient (String user, String password)

Parameters
user
password

Public Methods

public Task createTask (String workSpaceId, Task task)

Create a Task

Parameters
workSpaceId
task

public Task deleteTask (String workSpaceId, String taskId)

Parameters
workSpaceId
taskId

public Task getTask (String workSpaceId, String taskId)

Retrieves a particular task related to a workspace

Parameters
workSpaceId
taskId

public Timesheet getTaskTimesheet (String workSpaceId, String taskId, String timesheetId)

Retrieves a particular time sheets

Parameters
workSpaceId
taskId
timesheetId

public List<Timesheet> getTaskTimesheets (String workSpaceId, String taskId, List<Filter> filters)

Retrieves time sheets related to a particular task

Parameters
workSpaceId
taskId
filters

public List<Task> getTasks (String workSpaceId, List<Filter> filters)

Retrieves tasks related to a workspace

Parameters
workSpaceId
filters

public Task updateTask (String workSpaceId, Task task)

Parameters
workSpaceId
task

Protected Methods

protected String extendGetBaseUrl (String baseUrl)

This method is called by getBaseURL for the user to extend the base URL of its ServiceClient implementation.

Parameters
baseUrl The URL created by getBaseURL
Returns
  • the enhanced base URL

protected ClientConfig getJerseyClientConfiguration ()

This method is called by getBuilder before the creation of the Client. The ClientConfig is used to create the Client.

Returns
  • null if there are ClientConfig to be added.

protected List<ClientFilter> getJerseyClientFilters ()

This method is called by getBuilder before the creation of the Client. The ClientFilter is used to create the Client. If there are no ClientFilter to be added just return null.

Returns
  • null if there are no ClientFilter to be added.