org.apache.maven.plugin.issues
Class IssuesReportHelper

java.lang.Object
  extended by org.apache.maven.plugin.issues.IssuesReportHelper

public class IssuesReportHelper
extends Object

A helper class for generation of reports based on issues.

Since:
2.4
Version:
$Id: IssuesReportHelper.java 1579078 2014-03-18 22:44:41Z dennisl $
Author:
Dennis Lundberg

Field Summary
static int COLUMN_ASSIGNEE
           
static int COLUMN_COMPONENT
           
static int COLUMN_CREATED
           
static int COLUMN_FIX_VERSION
           
static int COLUMN_ID
           
static int COLUMN_KEY
           
static int COLUMN_PRIORITY
           
static int COLUMN_REPORTER
           
static int COLUMN_RESOLUTION
           
static int COLUMN_STATUS
           
static int COLUMN_SUMMARY
           
static int COLUMN_TYPE
           
static int COLUMN_UPDATED
           
static int COLUMN_VERSION
           
 
Constructor Summary
IssuesReportHelper()
           
 
Method Summary
static List<Integer> getColumnIds(String columnNames, Map<String,Integer> allColumns)
          Get a list of id:s for the columns that are to be included in the report.
static List<Integer> getColumnIds(String columnNames, Map<String,Integer> allColumns, Map<String,Integer> deprecatedColumns, Log log)
          Get a list of id:s for the columns that are to be included in the report.
static String printValues(List<String> values)
          Print a list of values separated by commas.
static int[] toIntArray(List<Integer> list)
          Convert a List of Integers to an int array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ASSIGNEE

public static final int COLUMN_ASSIGNEE
See Also:
Constant Field Values

COLUMN_COMPONENT

public static final int COLUMN_COMPONENT
See Also:
Constant Field Values

COLUMN_CREATED

public static final int COLUMN_CREATED
See Also:
Constant Field Values

COLUMN_FIX_VERSION

public static final int COLUMN_FIX_VERSION
See Also:
Constant Field Values

COLUMN_ID

public static final int COLUMN_ID
See Also:
Constant Field Values

COLUMN_KEY

public static final int COLUMN_KEY
See Also:
Constant Field Values

COLUMN_PRIORITY

public static final int COLUMN_PRIORITY
See Also:
Constant Field Values

COLUMN_REPORTER

public static final int COLUMN_REPORTER
See Also:
Constant Field Values

COLUMN_RESOLUTION

public static final int COLUMN_RESOLUTION
See Also:
Constant Field Values

COLUMN_STATUS

public static final int COLUMN_STATUS
See Also:
Constant Field Values

COLUMN_SUMMARY

public static final int COLUMN_SUMMARY
See Also:
Constant Field Values

COLUMN_TYPE

public static final int COLUMN_TYPE
See Also:
Constant Field Values

COLUMN_UPDATED

public static final int COLUMN_UPDATED
See Also:
Constant Field Values

COLUMN_VERSION

public static final int COLUMN_VERSION
See Also:
Constant Field Values
Constructor Detail

IssuesReportHelper

public IssuesReportHelper()
Method Detail

getColumnIds

public static List<Integer> getColumnIds(String columnNames,
                                         Map<String,Integer> allColumns)
Get a list of id:s for the columns that are to be included in the report.

Parameters:
columnNames - The names of the columns
allColumns - A mapping from column name to column id
Returns:
A List of column id:s

getColumnIds

public static List<Integer> getColumnIds(String columnNames,
                                         Map<String,Integer> allColumns,
                                         Map<String,Integer> deprecatedColumns,
                                         Log log)
Get a list of id:s for the columns that are to be included in the report. This method also handles deprecated column names, which will still work. If deprecated column names are used they generate a warning, indicating the replacement column name.

Parameters:
columnNames - The names of the columns
allColumns - A mapping from column name to column id
deprecatedColumns - A mapping from deprecated column name to column id
log - A log
Returns:
A List of column id:s

printValues

public static String printValues(List<String> values)
Print a list of values separated by commas.

Parameters:
values - The values to print
Returns:
A nicely formatted string of values.

toIntArray

public static int[] toIntArray(List<Integer> list)
Convert a List of Integers to an int array.

Parameters:
list - The List to convert
Returns:
An in array


Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.