public final class TimeEntryManager
extends java.lang.Object
Sample usage:
RedmineManager redmineManager = RedmineManagerFactory.createWithUserAuth(redmineURI, login, password); redmineManager.getTimeEntryManager();
Modifier and Type | Method and Description |
---|---|
TimeEntry |
createTimeEntry(TimeEntry obj)
Deprecated.
|
void |
deleteTimeEntry(java.lang.Integer id)
Deprecated.
|
java.util.List<TimeEntry> |
getTimeEntries() |
ResultsWrapper<TimeEntry> |
getTimeEntries(java.util.Map<java.lang.String,java.lang.String> parameters)
Direct method to search for objects using any Redmine REST API parameters you want.
|
java.util.List<TimeEntry> |
getTimeEntriesForIssue(java.lang.Integer issueId) |
TimeEntry |
getTimeEntry(java.lang.Integer id) |
java.util.List<TimeEntryActivity> |
getTimeEntryActivities() |
void |
update(TimeEntry obj)
Deprecated.
|
public java.util.List<TimeEntry> getTimeEntries() throws RedmineException
RedmineException
public TimeEntry getTimeEntry(java.lang.Integer id) throws RedmineException
id
- the database Id of the TimeEntry recordRedmineException
public java.util.List<TimeEntry> getTimeEntriesForIssue(java.lang.Integer issueId) throws RedmineException
RedmineException
public ResultsWrapper<TimeEntry> getTimeEntries(java.util.Map<java.lang.String,java.lang.String> parameters) throws RedmineException
Unlike other getXXXObjects() methods in this library, this one does NOT handle paging for you so you have to provide "offset" and "limit" parameters if you want to control paging.
Sample usage:
final Mapsee other possible parameters on Redmine REST doc page: http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries#Listing-time-entriesparams = new HashMap (); params.put("project_id", projectId); params.put("activity_id", activityId); final List elements = issueManager.getTimeEntries(params);
parameters
- the http parameters key/value pairs to append to the rest api requestRedmineAuthenticationException
- invalid or no API access key is used with the server, which
requires authorization. Check the constructor arguments.RedmineException
@Deprecated public TimeEntry createTimeEntry(TimeEntry obj) throws RedmineException
RedmineException
@Deprecated public void deleteTimeEntry(java.lang.Integer id) throws RedmineException
RedmineException
public java.util.List<TimeEntryActivity> getTimeEntryActivities() throws RedmineException
RedmineException
@Deprecated public void update(TimeEntry obj) throws RedmineException
RedmineException