Class AbstractIssueManagementSystem
java.lang.Object
org.apache.maven.plugins.changes.issues.AbstractIssueManagementSystem
- All Implemented Interfaces:
IssueManagementSystem
- Direct Known Subclasses:
GitHubIssueManagementSystem
,JIRAIssueManagementSystem
,TracIssueManagmentSystem
Historically, this plugin started out working against an IMS-neutral XML file, and then added extensive support for
JIRA with some small snippets of code for other issue management systems. This class is intended to start a cleaner
modularity for support of multiple systems.
Initially, all it provides is a structure for mapping from per-IMS issue types to the three categories defined in
Note that the map in here is not immutable. It contains the default configuration for an IMS. Users are expected to add entries to the map via configuration to reflect their customizations.
Initially, all it provides is a structure for mapping from per-IMS issue types to the three categories defined in
IssueAdapter
. Note that the map in here is not immutable. It contains the default configuration for an IMS. Users are expected to add entries to the map via configuration to reflect their customizations.
- Version:
- $Id$
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyConfiguration
(Map<String, String> issueTypes) Configure this issue management system.Get a mapping of issue types used in this issue management system to the ones used in a changes.xml file.abstract String
getName()
Get the name of the issue management system.
-
Field Details
-
issueTypeMap
-
-
Constructor Details
-
AbstractIssueManagementSystem
protected AbstractIssueManagementSystem()
-
-
Method Details
-
getIssueTypeMap
Description copied from interface:IssueManagementSystem
Get a mapping of issue types used in this issue management system to the ones used in a changes.xml file.- Specified by:
getIssueTypeMap
in interfaceIssueManagementSystem
- Returns:
- The map from keys used in poms and other config files to issue types.
-
getName
Description copied from interface:IssueManagementSystem
Get the name of the issue management system.- Specified by:
getName
in interfaceIssueManagementSystem
- Returns:
- The name of the IMS.
-
applyConfiguration
public void applyConfiguration(Map<String, String> issueTypes) throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from interface:IssueManagementSystem
Configure this issue management system.- Specified by:
applyConfiguration
in interfaceIssueManagementSystem
- Parameters:
issueTypes
- The mapping of issue types used in this issue management system to the ones used in a changes.xml file- Throws:
org.apache.maven.plugin.MojoExecutionException
- If the configuration fails
-