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) |
void |
deleteTimeEntry(java.lang.Integer id) |
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) |
public java.util.List<TimeEntry> getTimeEntries() throws RedmineException
RedmineExceptionpublic TimeEntry getTimeEntry(java.lang.Integer id) throws RedmineException
id - the database Id of the TimeEntry recordRedmineExceptionpublic java.util.List<TimeEntry> getTimeEntriesForIssue(java.lang.Integer issueId) throws RedmineException
RedmineExceptionpublic 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 Map params = new HashMap();
params.put("project_id", projectId);
params.put("activity_id", activityId);
final List elements = issueManager.getTimeEntries(params);
see other possible parameters on Redmine REST doc page:
http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries#Listing-time-entriesparameters - 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.RedmineExceptionpublic TimeEntry createTimeEntry(TimeEntry obj) throws RedmineException
RedmineExceptionpublic void deleteTimeEntry(java.lang.Integer id)
throws RedmineException
RedmineExceptionpublic java.util.List<TimeEntryActivity> getTimeEntryActivities() throws RedmineException
RedmineExceptionpublic void update(TimeEntry obj) throws RedmineException
RedmineException