|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JIRAMediator
JIRAMediator is the go between for most JIRA operations.
© 2009 Carnegie Mellon University
| Method Summary | |
|---|---|
IssueType |
calculateIssueType(Message message)
Calculates and returns the JIRA IssueType |
Priority |
calculatePriority(Message message)
Calculates and returns the JIRA issue Priority |
User |
determineAssignee(Message message,
Project project,
User reporter)
Calculates and returns the issue assignee. |
Priority |
getDefaultSystemPriority()
Returns the default system Priority |
String |
getDescription(Message message)
Returns the description |
IssueType |
getIssueType(String issueTypeId)
Returns the IssueType based on its ID |
String |
getParameterValue(Message message,
String key,
String xHeaderName)
Returns a parameter value or an X-Header value. |
String |
getParameterValue(String key)
Returns a parameter value based on the key |
List<Priority> |
getPossiblePriorties()
Returns all of the possible Priority values |
Priority |
getPriority(int id)
Returns the Priority based on its id value |
Comparator<Priority> |
getPriorityComparator()
Returns a Comparator for Prioritys |
Project |
getProject(String key)
Returns the Project based on the key. |
GenericValue |
getProjectByName(String projectName)
Returns the Project based on the key. |
User |
getUser(String identifier)
Returns the JIRA User based on:
If the identifier has an @, check to see the email address corresponds to a user.
If the identifier does not have a @, check for username only. |
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 |
| Method Detail |
|---|
Project getProject(String key)
Project based on the key. If no Project is found, null
will be returned.
key - Project key
Project
GenericValue getProjectByName(String projectName)
throws DataAccessException
projectName - Project name
DataAccessException - If unable to find the projectIssueType getIssueType(String issueTypeId)
IssueType based on its ID
issueTypeId - IssueType ID
IssueType
User getUser(String identifier)
throws EntityNotFoundException
User based on:
identifier has an @, check to see the email address corresponds to a user.identifier does not have a @, check for username only. identifier has an @ and the email address is invalid, check the username part only of the email address.
identifier - Identifier (username or email address)
User
EntityNotFoundException - If no matching User is found
User getUserByUsername(String username)
throws EntityNotFoundException
User based on their username
username - JIRA username
User
EntityNotFoundException - If no User matches the username
User getUserByEmail(String address)
throws EntityNotFoundException
User based on their email address
address - Email address
User
EntityNotFoundException - If no User matches the email addressboolean isValidUser(String emailAddress)
emailAddress is a valid JIRA user
emailAddress - Email address
emailAddress is a valid JIRA user
User determineAssignee(Message message,
Project project,
User reporter)
throws MessagingException
message - Email Messageproject - JIRA Projectreporter - Who is reporting this issue
MessagingException - If unable to interrogate the Message
Priority calculatePriority(Message message)
throws MessagingException
Priority
message - Email Message
Priority
MessagingException - If unable to interrogate the Message
IssueType calculateIssueType(Message message)
throws MessagingException
IssueType
message - Email Message
IssueType
MessagingException - If unable to interrogate the MessagePriority getPriority(int id)
Priority based on its id value
id - Integer value for the Priority
PriorityPriority getDefaultSystemPriority()
Priority
List<Priority> getPossiblePriorties()
Priority values
String getDescription(Message message)
throws MessagingException
message - Email Message
MessagingException - If unable to interrogate the MessageString getParameterValue(String key)
key
String getParameterValue(Message message,
String key,
String xHeaderName)
throws MessagingException
message - Email Messagekey - Parameter keyxHeaderName - X-Header name
MessagingException - If unable to interrogate the MessageComparator<Priority> getPriorityComparator()
Comparator for Prioritys
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||