Package hudson.plugins.collabnet.util
Class ComboBoxUpdater
- java.lang.Object
-
- hudson.plugins.collabnet.util.ComboBoxUpdater
-
public abstract class ComboBoxUpdater extends Object
These classes are used to update the list of items for a combo box.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComboBoxModel
getPackages(CollabNetApp cna, String project)
Obtains the list of packages in the given project.static ComboBoxModel
getProjectList(CollabNetApp cna)
static ComboBoxModel
getReleaseList(CTFPackage pkg)
static ComboBoxModel
getReleaseList(CTFProject p)
static ComboBoxModel
getReleases(CollabNetApp cna, String project, String rpackage)
static ComboBoxModel
getRepos(CollabNetApp cna, String project)
static ComboBoxModel
getTrackerList(CTFProject p)
static ComboBoxModel
getUserList(CTFProject p)
static ComboBoxModel
getUsers(CollabNetApp cna, String project)
static ComboBoxModel
toModel(Collection<? extends ObjectWithTitle> list)
-
-
-
Field Detail
-
log
protected static Logger log
-
-
Method Detail
-
getProjectList
public static ComboBoxModel getProjectList(CollabNetApp cna)
- Returns:
- a list of projects which has been sanitized.
-
getPackages
public static ComboBoxModel getPackages(CollabNetApp cna, String project) throws IOException
Obtains the list of packages in the given project.- Throws:
IOException
-
getReleases
public static ComboBoxModel getReleases(CollabNetApp cna, String project, String rpackage) throws IOException
- Throws:
IOException
-
getReleaseList
public static ComboBoxModel getReleaseList(CTFPackage pkg) throws IOException
- Returns:
- a list of releases in the package which has been sanitized.
- Throws:
IOException
-
getReleaseList
public static ComboBoxModel getReleaseList(CTFProject p) throws IOException
- Returns:
- a list of all releases in the project which has been sanitized.
- Throws:
IOException
-
getRepos
public static ComboBoxModel getRepos(CollabNetApp cna, String project) throws IOException
- Throws:
IOException
-
toModel
public static ComboBoxModel toModel(Collection<? extends ObjectWithTitle> list)
-
getTrackerList
public static ComboBoxModel getTrackerList(CTFProject p) throws IOException
- Returns:
- a list of trackers which has been sanitized.
- Throws:
IOException
-
getUsers
public static ComboBoxModel getUsers(CollabNetApp cna, String project) throws IOException
- Throws:
IOException
-
getUserList
public static ComboBoxModel getUserList(CTFProject p)
- Returns:
- a list of usernames which has been sanitized.
-
-