|
||||||||||
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()
JIRAMediatorImpl
Priority
getDefaultSystemPriority
in interface JIRAMediator
getDefaultSystemPriority
in class JIRAMediatorImpl
public IssueType getIssueType(String issueTypeId)
JIRAMediatorImpl
IssueType
based on its ID
getIssueType
in interface JIRAMediator
getIssueType
in class JIRAMediatorImpl
issueTypeId
- IssueType
ID
IssueType
public List<Priority> getPossiblePriorties()
JIRAMediatorImpl
Priority
values
getPossiblePriorties
in interface JIRAMediator
getPossiblePriorties
in class JIRAMediatorImpl
public Priority getPriority(int id)
JIRAMediatorImpl
Priority
based on its id value
getPriority
in interface JIRAMediator
getPriority
in class JIRAMediatorImpl
id
- Integer value for the Priority
Priority
public Project getProject(String projectKey)
JIRAMediatorImpl
Project
based on the key. If no Project
is found, null
will be returned.
getProject
in interface JIRAMediator
getProject
in class JIRAMediatorImpl
projectKey
- Project
key
Project
public User getUserByEmail(String address) throws EntityNotFoundException
JIRAMediatorImpl
User
based on their email address
getUserByEmail
in interface JIRAMediator
getUserByEmail
in class JIRAMediatorImpl
address
- Email address
User
EntityNotFoundException
- If no User
matches the email addresspublic User getUserByUsername(String username) throws EntityNotFoundException
JIRAMediatorImpl
User
based on their username
getUserByUsername
in interface JIRAMediator
getUserByUsername
in class JIRAMediatorImpl
username
- JIRA username
User
EntityNotFoundException
- If no User
matches the usernamepublic boolean isValidUser(String emailAddress)
JIRAMediatorImpl
emailAddress
is a valid JIRA user
isValidUser
in interface JIRAMediator
isValidUser
in class JIRAMediatorImpl
emailAddress
- Email address
emailAddress
is a valid JIRA user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |