org.nuiton.jredmine.plugin.report
Class IssuesReportByReporter

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.IssuesReportByReporter
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 IssuesReportByReporter
extends AbstractIssuesReport

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

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

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 columnNamesByReporter
          Sets the column names that you want to show in the report.
protected  Map<String,String> filtersByReporter
          Sets some filters on issues to include.
protected  int maxEntriesByReporter
          Maximum number of entries to be fetched from redmine.
protected  boolean onlyCurrentVersionByReporter
          If you only want to show issues for the current version in the report.
protected  boolean skipIssueReportByReporter
          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
 
Constructor Summary
IssuesReportByReporter()
           
 
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, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, backupFile, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, 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.nuiton.plugin.Plugin
getProject, isVerbose, setProject, setVerbose
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
 
Methods inherited from interface org.nuiton.io.rest.RestClientConfiguration
getEncoding, getRestPassword, getRestUrl, getRestUsername, isVerbose, setEncoding, setRestPassword, setRestUrl, setRestUsername, setVerbose
 

Field Detail

maxEntriesByReporter

protected int maxEntriesByReporter
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

onlyCurrentVersionByReporter

protected boolean onlyCurrentVersionByReporter
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

filtersByReporter

protected Map<String,String> filtersByReporter
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-ids -Dtype=<entry key>
 

Since:
1.0.0
Is defined by:

columnNamesByReporter

protected String columnNamesByReporter
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

skipIssueReportByReporter

protected boolean skipIssueReportByReporter
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.skipIssueReportByReporter}
default-value:
false
Constructor Detail

IssuesReportByReporter

public IssuesReportByReporter()
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-2010 CodeLutin. All Rights Reserved.