Class TimeEntryManager


  • public final class TimeEntryManager
    extends java.lang.Object
    Class to operate on Time Entry instances.

    Sample usage:

     RedmineManager redmineManager = RedmineManagerFactory.createWithUserAuth(redmineURI, login, password);
     redmineManager.getTimeEntryManager();
     
    • Method Detail

      • getTimeEntries

        public ResultsWrapper<TimeEntry> getTimeEntries​(java.util.Map<java.lang.String,​java.lang.String> parameters)
                                                 throws RedmineException
        Direct method to search for objects using any Redmine REST API parameters you want.

        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-entries
        Parameters:
        parameters - the http parameters key/value pairs to append to the rest api request
        Returns:
        resultsWrapper with raw response from Redmine REST API
        Throws:
        RedmineAuthenticationException - invalid or no API access key is used with the server, which requires authorization. Check the constructor arguments.
        RedmineException