public class

TimesheetServiceClient

extends AbstractServiceClient
implements TimesheetService
java.lang.Object
   ↳ org.mule.LiquidPlanner.client.services.impl.AbstractServiceClient
     ↳ org.mule.LiquidPlanner.client.services.impl.TimesheetServiceClient

Summary

Constants
String API_TIMESHEET_ENTRIES_ACCEPT
String API_TIMESHEET_ENTRIES_REJECT
String API_TIMESHEET_ENTRIES_SUMBIT
String API_TIMESHEET_ENTRIES_UNACCEPT
String API_TIMESHEET_ENTRIES_UNSUBMIT
[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
TimesheetServiceClient(String user, String password)
Public Methods
Timesheet getTimesheet(String workSpaceId, String timesheetId)
Returns a particular time sheet for the provided workspace.
List<Timesheet> getTimesheets(String workSpaceId, List<Filter> filters)
Returns a list of all the time sheets related to given project.
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.TimesheetService

Constants

private static final String API_TIMESHEET_ENTRIES_ACCEPT

Constant Value: "/accept"

private static final String API_TIMESHEET_ENTRIES_REJECT

Constant Value: "/reject"

private static final String API_TIMESHEET_ENTRIES_SUMBIT

Constant Value: "/submit"

private static final String API_TIMESHEET_ENTRIES_UNACCEPT

Constant Value: "/unaccept"

private static final String API_TIMESHEET_ENTRIES_UNSUBMIT

Constant Value: "/unsubmit"

Public Constructors

public TimesheetServiceClient (String user, String password)

Parameters
user
password

Public Methods

public Timesheet getTimesheet (String workSpaceId, String timesheetId)

Returns a particular time sheet for the provided workspace.

Parameters
workSpaceId
timesheetId

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

Returns a list of all the time sheets related to given project.

Parameters
workSpaceId
filters

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.