org.cert.cc.jira
Class SearchHelper

java.lang.Object
  extended by org.cert.cc.jira.SearchHelper

public class SearchHelper
extends Object

Helper class to assist in doing some basic Issue lookups.

Author:
brubbo

Constructor Summary
SearchHelper(SearchProvider searchProvider, JiraAuthenticationContext authenticationContext, ChangeHistoryManager changeHistoryManager, UserManager userManager, PropertiesManager propertiesManager)
          Base constructor for SearchHelper.
 
Method Summary
 List<Issue> searchClosed(Calendar calendarStart, Calendar calendarEnd, IssueType issueType, Long projectId, String groupName)
          Searches the project specified by the projectId for Issues that are of the specified IssueType and closed with in the Date range specified by the calendarStart and calendarEnd parameters.
 List<Issue> searchCreated(Calendar calendarStart, Calendar calendarEnd, IssueType issueType, Long projectId, String groupName)
          Searches the project specified by the projectId for Issues that are of the specified IssueType and created with in the Date range specified by the calendarStart and calendarEnd parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchHelper

public SearchHelper(SearchProvider searchProvider,
                    JiraAuthenticationContext authenticationContext,
                    ChangeHistoryManager changeHistoryManager,
                    UserManager userManager,
                    PropertiesManager propertiesManager)
Base constructor for SearchHelper.

Parameters:
searchProvider - - SearchProvider
authenticationContext - - JiraAuthenticationContext
changeHistoryManager - - ChangeHistoryManager
Method Detail

searchCreated

public List<Issue> searchCreated(Calendar calendarStart,
                                 Calendar calendarEnd,
                                 IssueType issueType,
                                 Long projectId,
                                 String groupName)
Searches the project specified by the projectId for Issues that are of the specified IssueType and created with in the Date range specified by the calendarStart and calendarEnd parameters.

Parameters:
calendarStart - - Starting date for the range.
calendarEnd - - Ending date for the range.
issueType - - The IssueType you are interested in.
projectId - - The id for the project in Jira you are interested in.
Returns:
- List<Issue> null on error.

searchClosed

public List<Issue> searchClosed(Calendar calendarStart,
                                Calendar calendarEnd,
                                IssueType issueType,
                                Long projectId,
                                String groupName)
Searches the project specified by the projectId for Issues that are of the specified IssueType and closed with in the Date range specified by the calendarStart and calendarEnd parameters.

Parameters:
calendarStart - - Starting date for the range.
calendarEnd - - Ending date for the range.
issueType - - The IssueType you are interested in.
projectId - - The id for the project in Jira you are interested in.
Returns:
- List<Issue> null on error.


Copyright © 2012 Carnegie Mellon University