com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritProjectList

java.lang.Object
  extended by 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
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 GerritProject
trigger - the GerritTrigger

getGerritProjects

public static Map<String,ArrayList<GerritTrigger>> getGerritProjects()
Returns project list.

Returns:
gerrit projects that are stored into map.


Copyright © 2004-2013. All Rights Reserved.