|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.jira.AbstractJiraDownloader
public abstract class AbstractJiraDownloader
Abstract API, more or less, to retrieving issue information from JIRA. Intended to have subclasses for the old (RSS) and new (REST) ways of doing things.
Field Summary | |
---|---|
protected String |
component
The component to show. |
protected String |
filter
The filter to apply to query to JIRA. |
protected String |
fixVersionIds
Ids of fix versions to show, as comma separated string. |
protected String |
jiraDatePattern
The pattern used to parse dates from the JIRA xml file. |
protected String |
jiraPassword
The password to log into JIRA. |
protected String |
jiraUser
The username to log into JIRA. |
protected Log |
log
Log for debug output. |
protected int |
nbEntriesMax
The maximum number of entries to show. |
protected boolean |
onlyCurrentVersion
Filter the JIRA query based on the current version |
protected File |
output
Output file for xml document. |
protected String |
priorityIds
Ids of priority to show, as comma separated string. |
protected MavenProject |
project
The maven project. |
protected String |
proxyHost
|
protected String |
proxyPass
|
protected int |
proxyPort
|
protected String |
proxyUser
|
protected String |
resolutionIds
Ids of resolution to show, as comma separated string. |
protected Settings |
settings
The maven settings. |
protected String |
sortColumnNames
Column names to sort by, as comma separated string. |
protected String |
statusIds
Ids of status to show, as comma separated string. |
protected String |
typeIds
Ids of types to show, as comma separated string. |
protected boolean |
useJql
Use JQL, JIRA query language, instead of URL parameter based queries. |
protected static String |
UTF_8
|
protected String |
webPassword
The password to log into webserver. |
protected String |
webUser
The username to log into webserver. |
protected String |
versionPrefix
The versionPrefix to apply to the POM version |
Constructor Summary | |
---|---|
AbstractJiraDownloader()
|
Method Summary | |
---|---|
abstract void |
doExecute()
Execute the query on the JIRA server. |
protected String |
getFixFor()
Override this method if you need to get issues for a specific Fix For. |
abstract List<Issue> |
getIssueList()
|
protected Log |
getLog()
|
File |
getOutput()
|
protected void |
getProxyInfo(String jiraUrl)
|
String |
getVersionPrefix()
|
protected boolean |
isJiraAuthenticationConfigured()
Check to see if we think that JIRA authentication is needed. |
boolean |
isOnlyCurrentVersion()
|
boolean |
isUseJql()
|
void |
setComponent(String theseComponents)
Sets the component(s) to apply to query JIRA. |
void |
setFilter(String thisFilter)
Sets the filter to apply to query to JIRA. |
void |
setFixVersionIds(String theseFixVersionIds)
Sets the fix version id(s) to apply to query JIRA. |
void |
setJiraDatePattern(String jiraDatePattern)
|
void |
setJiraPassword(String thisJiraPassword)
Sets the password to log into a secured JIRA. |
void |
setJiraUser(String thisJiraUser)
Sets the username to log into a secured JIRA. |
void |
setLog(Log log)
|
void |
setMavenProject(Object thisProject)
Sets the project. |
void |
setNbEntries(int nbEntries)
Sets the maximum number of Issues to show. |
void |
setOnlyCurrentVersion(boolean onlyCurrentVersion)
|
void |
setOutput(File thisOutput)
Set the output file for the log. |
void |
setPriorityIds(String thisPriorityIds)
Sets the priorityIds. |
void |
setResolutionIds(String thisResolutionIds)
Sets the resolutionIds. |
void |
setSettings(Settings settings)
|
void |
setSortColumnNames(String thisSortColumnNames)
Sets the sort column names. |
void |
setStatusIds(String thisStatusIds)
Sets the statusIds. |
void |
setTypeIds(String theseTypeIds)
Sets the typeIds. |
void |
setUseJql(boolean useJql)
|
void |
setWebPassword(String thisWebPassword)
Sets the password for authentication against the webserver. |
void |
setWebUser(String thisWebUser)
Sets the username for authentication against the webserver. |
void |
setVersionPrefix(String versionPrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String UTF_8
protected Log log
protected File output
protected int nbEntriesMax
protected String filter
protected String fixVersionIds
protected String statusIds
protected String resolutionIds
protected String priorityIds
protected String component
protected String typeIds
protected String sortColumnNames
protected String jiraUser
protected String jiraPassword
protected String webUser
protected String webPassword
protected MavenProject project
protected Settings settings
protected boolean useJql
protected boolean onlyCurrentVersion
protected String versionPrefix
protected String jiraDatePattern
protected String proxyHost
protected int proxyPort
protected String proxyUser
protected String proxyPass
Constructor Detail |
---|
public AbstractJiraDownloader()
Method Detail |
---|
public abstract void doExecute() throws Exception
Exception
- on errorprotected boolean isJiraAuthenticationConfigured()
true
if jiraUser and jiraPassword are set, otherwise false
protected void getProxyInfo(String jiraUrl)
protected String getFixFor()
null
if you don't have that needpublic abstract List<Issue> getIssueList() throws MojoExecutionException
MojoExecutionException
public void setJiraDatePattern(String jiraDatePattern)
public void setOutput(File thisOutput)
thisOutput
- the output filepublic File getOutput()
public void setMavenProject(Object thisProject)
thisProject
- The project to setpublic void setNbEntries(int nbEntries)
nbEntries
- The maximum number of Issuespublic void setStatusIds(String thisStatusIds)
thisStatusIds
- The id(s) of the status to show, as comma separated stringpublic void setPriorityIds(String thisPriorityIds)
thisPriorityIds
- The id(s) of the priority to show, as comma separated stringpublic void setResolutionIds(String thisResolutionIds)
thisResolutionIds
- The id(s) of the resolution to show, as comma separated stringpublic void setSortColumnNames(String thisSortColumnNames)
thisSortColumnNames
- The column names to sort bypublic void setWebPassword(String thisWebPassword)
thisWebPassword
- The password of the webserverpublic void setWebUser(String thisWebUser)
thisWebUser
- The username of the webserverpublic void setJiraPassword(String thisJiraPassword)
thisJiraPassword
- The password for JIRApublic void setJiraUser(String thisJiraUser)
thisJiraUser
- The username for JIRApublic void setFilter(String thisFilter)
thisFilter
- The filter to query JIRApublic void setComponent(String theseComponents)
theseComponents
- The id(s) of components to show, as comma separated stringpublic void setFixVersionIds(String theseFixVersionIds)
theseFixVersionIds
- The id(s) of fix versions to show, as comma separated stringpublic void setTypeIds(String theseTypeIds)
theseTypeIds
- The id(s) of the types to show, as comma separated stringpublic void setLog(Log log)
protected Log getLog()
public void setSettings(Settings settings)
public boolean isUseJql()
public void setUseJql(boolean useJql)
public boolean isOnlyCurrentVersion()
public void setOnlyCurrentVersion(boolean onlyCurrentVersion)
public String getVersionPrefix()
public void setVersionPrefix(String versionPrefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |