Class 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 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.