de.smartics.maven.issues.bugzilla
Class VersionedSectioner

Package class diagram package VersionedSectioner
java.lang.Object
  extended by de.smartics.maven.issues.bugzilla.VersionedSectioner
All Implemented Interfaces:
Sectioner< Versions>

public class VersionedSectioner
     
     
extends Object
implements Sectioner< Versions>

Selects the issues to their categories.

Author:
Robert Reiner

Constructor Summary
VersionedSectioner(RendererConfig config, List<org.eclipse.mylyn.tasks.core.data.TaskData> issues)
          Convenience constructor using inverse sort order for versions.
VersionedSectioner(RendererConfig config, List<org.eclipse.mylyn.tasks.core.data.TaskData> issues, Comparator<org.apache.maven.artifact.versioning.ArtifactVersion> versionComparator)
          Default constructor.
 
Method Summary
 Versions run()
          Distributes the issues to the configured sections within their versions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionedSectioner

public VersionedSectioner(RendererConfig config,
                          List<org.eclipse.mylyn.tasks.core.data.TaskData> issues)
Convenience constructor using inverse sort order for versions.

Parameters:
config - the configuration to control the processing of the sections.
issues - the issues to be appointed to the different sections.

VersionedSectioner

public VersionedSectioner(RendererConfig config,
                          List<org.eclipse.mylyn.tasks.core.data.TaskData> issues,
                          Comparator<org.apache.maven.artifact.versioning.ArtifactVersion> versionComparator)
Default constructor.

Parameters:
config - the configuration to control the processing of the sections.
issues - the issues to be appointed to the different sections.
versionComparator - the comparator to use to sort version numbers. A value of null implies that natural sort order is to be used.
Method Detail

run

public Versions run()
Distributes the issues to the configured sections within their versions. Issues not defining the property referenced by RendererConfig.getSectionType() are skipped as well as issues that provide a value for that property that is not part of RendererConfig.getSections(). If the issue has no version attribute (target milestone), the issue is also skipped.

Specified by:
run in interface Sectioner<Versions>
Implementation Notes:
Skipped issues are logged at debug level.
Returns:
the map of versions.


Copyright © 2008-2010 Kronseder & Reiner GmbH - smartics. All Rights Reserved.