|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cert.cc.jira.email.handler.JIRAMediatorImpl
org.cert.cc.jira.email.handler.mock.MockJIRAMediatorImpl
public class MockJIRAMediatorImpl
© 2009 Carnegie Mellon University
| Field Summary |
|---|
| Fields inherited from class org.cert.cc.jira.email.handler.JIRAMediatorImpl |
|---|
PARAMETER_ADD_CC_WATCHERS, PARAMETER_DEFAULT_ASSIGNEE, PARAMETER_DEFAULT_PRIORITY, PARAMETER_ISSUE_TYPE, PARAMETER_PROJECT, PARAMETER_REPORTER_IS_ASSIGNEE, PARAMETER_REPORTER_OVERRIDE, PARAMETER_REPORTER_USER, PARAMETER_SCAN_RECIPIENTS_FOR_ASSIGNEE, PARAMETER_SUPPRESS_CREATED |
| Constructor Summary | |
|---|---|
MockJIRAMediatorImpl(Map<String,String> parameters)
|
|
| Method Summary | |
|---|---|
Priority |
getDefaultSystemPriority()
Returns the default system Priority |
IssueType |
getIssueType(String issueTypeId)
Returns the IssueType based on its ID |
List<Priority> |
getPossiblePriorties()
Returns all of the possible Priority values |
Priority |
getPriority(int id)
Returns the Priority based on its id value |
Project |
getProject(String projectKey)
Returns the Project based on the key. |
User |
getUserByEmail(String address)
Returns the JIRA User based on their email address |
User |
getUserByUsername(String username)
Returns the JIRA User based on their username |
boolean |
isValidUser(String emailAddress)
Returns if the emailAddress is a valid JIRA user |
| Methods inherited from class org.cert.cc.jira.email.handler.JIRAMediatorImpl |
|---|
calculateIssueType, calculatePriority, determineAssignee, getDescription, getParameterValue, getParameterValue, getPriorityComparator, getProjectByName, getUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockJIRAMediatorImpl(Map<String,String> parameters)
| Method Detail |
|---|
public Priority getDefaultSystemPriority()
JIRAMediatorImplPriority
getDefaultSystemPriority in interface JIRAMediatorgetDefaultSystemPriority in class JIRAMediatorImplpublic IssueType getIssueType(String issueTypeId)
JIRAMediatorImplIssueType based on its ID
getIssueType in interface JIRAMediatorgetIssueType in class JIRAMediatorImplissueTypeId - IssueType ID
IssueTypepublic List<Priority> getPossiblePriorties()
JIRAMediatorImplPriority values
getPossiblePriorties in interface JIRAMediatorgetPossiblePriorties in class JIRAMediatorImplpublic Priority getPriority(int id)
JIRAMediatorImplPriority based on its id value
getPriority in interface JIRAMediatorgetPriority in class JIRAMediatorImplid - Integer value for the Priority
Prioritypublic Project getProject(String projectKey)
JIRAMediatorImplProject based on the key. If no Project is found, null
will be returned.
getProject in interface JIRAMediatorgetProject in class JIRAMediatorImplprojectKey - Project key
Project
public User getUserByEmail(String address)
throws EntityNotFoundException
JIRAMediatorImplUser based on their email address
getUserByEmail in interface JIRAMediatorgetUserByEmail in class JIRAMediatorImpladdress - Email address
User
EntityNotFoundException - If no User matches the email address
public User getUserByUsername(String username)
throws EntityNotFoundException
JIRAMediatorImplUser based on their username
getUserByUsername in interface JIRAMediatorgetUserByUsername in class JIRAMediatorImplusername - JIRA username
User
EntityNotFoundException - If no User matches the usernamepublic boolean isValidUser(String emailAddress)
JIRAMediatorImplemailAddress is a valid JIRA user
isValidUser in interface JIRAMediatorisValidUser in class JIRAMediatorImplemailAddress - Email address
emailAddress is a valid JIRA user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||