Class GerritProjectList
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritProjectList
-
public final class GerritProjectList extends Object
A sigleton class that keeps list of Jenkin's Gerrit projects. TODO: Support to other project formats (At the moment only plain text is supported).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addProject(GerritProject project, GerritTrigger trigger)
Adds project to project list.static Map<String,ArrayList<GerritTrigger>>
getGerritProjects()
Returns project list.static GerritProjectList
getInstance()
Static 'instance' method.static void
removeTriggerFromProjectList(GerritTrigger trigger)
Removes trigger from the projectList.
-
-
-
Method Detail
-
getInstance
public static GerritProjectList getInstance()
Static 'instance' method.- Returns:
- instance of the class.
-
removeTriggerFromProjectList
public static void removeTriggerFromProjectList(GerritTrigger trigger)
Removes trigger from the projectList.- Parameters:
trigger
- the GerritTrigger
-
addProject
public static void addProject(GerritProject project, GerritTrigger trigger)
Adds project to project list.- Parameters:
project
- the GerritProjecttrigger
- the GerritTrigger
-
getGerritProjects
public static Map<String,ArrayList<GerritTrigger>> getGerritProjects()
Returns project list.- Returns:
- gerrit projects that are stored into map.
-
-