org.nuiton.jredmine.plugin.report
Class IssuesReportByCategory

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.jredmine.plugin.AbstractRedmineMojo
              extended by org.nuiton.jredmine.plugin.report.AbstractRedmineReport
                  extended by org.nuiton.jredmine.plugin.report.AbstractIssuesReport
                      extended by org.nuiton.jredmine.plugin.report.IssuesReportByCategory
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport, org.nuiton.io.rest.RestClientConfiguration, IssueCollectorConfiguration, org.nuiton.plugin.Plugin

public class IssuesReportByCategory
extends AbstractIssuesReport

Generates a report for issues from Redmine's server group by category.

Since:
1.0.0
Author:
tchemit
Is defined by the goal name:
issues-report-by-category

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected  String columnNamesByCategory
          Sets the column names that you want to show in the report.
protected  Map<String,String> filtersByCategory
          Sets some filters on issues to include.
protected  int maxEntriesByCategory
          Maximum number of entries to be fetched from redmine.
protected  boolean onlyCurrentVersionByCategory
          If you only want to show issues for the current version in the report.
protected  boolean skipIssueReportByCategory
          A flag to skip the report.
 
Fields inherited from class org.nuiton.jredmine.plugin.report.AbstractIssuesReport
group, issues, issuesCache
 
Fields inherited from class org.nuiton.jredmine.plugin.report.AbstractRedmineReport
anonymous, factory, i18n, issueLinkTemplate, localRepository, outputDirectory, resolver, siteRenderer, versionLinkTemplate
 
Fields inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo
dateFormat, encoding, initOk, password, project, projectId, REDMINE_SYSTEM, releaseProject, releaseUser, releaseVersion, runOnceDone, safe, service, serviceInit, session, url, username, users, verbose, versionId
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
IssuesReportByCategory()
           
 
Method Summary
protected  String getColumnNames()
           
protected  Map<String,String> getFilters()
           
 int getMaxEntries()
           
 boolean isOnlyCurrentVersion()
           
protected  boolean skipReport()
           
 
Methods inherited from class org.nuiton.jredmine.plugin.report.AbstractIssuesReport
checkRunOnceDone, executeReport, getCategoryIds, getDescription, getGroup, getIssueLinkTemplate, getName, getOutputName, getPriorityIds, getProjectId, getStatusIds, getTrackerIds, getVersionId, getVersionLinkTemplate, getVersionNames, init, isGoalSkip, isRunOnce, setVersionId
 
Methods inherited from class org.nuiton.jredmine.plugin.report.AbstractRedmineReport
canGenerateReport, doAction, generate, getBundle, getCategoryName, getReportOutputDirectory, getSink, getSkinArtifactFile, isAnonymous, isExternalReport, setAnonymous, setReportOutputDirectory
 
Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo
afterExecute, checkSkip, closeService, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, initReleaseProject, initReleaseUser, initReleaseVersion, isRunOnceDone, isSafe, isVerbose, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.jredmine.plugin.IssueCollectorConfiguration
isVerbose
 
Methods inherited from interface org.apache.maven.plugin.Mojo
getLog, setLog
 

Field Detail

maxEntriesByCategory

protected int maxEntriesByCategory
Maximum number of entries to be fetched from redmine.

Note: use value 0 to have no limits

Since:
1.0.0
Is defined by:
expression:
${redmine.maxEntries}
default-value:
100

onlyCurrentVersionByCategory

protected boolean onlyCurrentVersionByCategory
If you only want to show issues for the current version in the report. The current version being used is ${project.version} minus any "-SNAPSHOT" suffix.

Since:
1.0.0
Is defined by:
expression:
${redmine.onlyCurrentVersion}
default-value:
false

filtersByCategory

protected Map<String,String> filtersByCategory
Sets some filters on issues to include. the possible keys are :

Values are Redmine's internal ids (except for the version entry which use Redmine's version names).

Multiple values can be separated by commas.

Note : If a value is set to empty - that means to not filter on that property.

To see the internal ids, use the command :

 mvn redmine:display-data -Dtypes=<entry key>
 

Since:
1.0.0
Is defined by:

columnNamesByCategory

protected String columnNamesByCategory
Sets the column names that you want to show in the report. The columns will appear in the report in the same order as you specify them here. Multiple values can be separated by commas.

Valid columns are: Key, Summary, Status, Assignee, Reporter, Tracker, Priority, Version, Category, Created and Updated.

Since:
2.0
Is defined by:
expression:
${redmine.columnNames}
default-value:
Tracker,Category,Key,Summary,Status,Assignee,Version

skipIssueReportByCategory

protected boolean skipIssueReportByCategory
A flag to skip the report.

This can be usefull since there is no way to skip a report from an inherited reportSet configuration.

Since:
1.0.0
Is defined by:
expression:
${redmine.skipIssueReportByCategory}
default-value:
false
Constructor Detail

IssuesReportByCategory

public IssuesReportByCategory()
Method Detail

skipReport

protected boolean skipReport()
Specified by:
skipReport in class AbstractRedmineReport
Returns:
true if report should be skip

isOnlyCurrentVersion

public boolean isOnlyCurrentVersion()

getMaxEntries

public int getMaxEntries()

getColumnNames

protected String getColumnNames()
Specified by:
getColumnNames in class AbstractIssuesReport

getFilters

protected Map<String,String> getFilters()
Specified by:
getFilters in class AbstractIssuesReport


Copyright © 2009-2011 CodeLutin. All Rights Reserved.