hudson.plugins.im.bot
Class DefaultJobProvider

java.lang.Object
  extended by hudson.plugins.im.bot.DefaultJobProvider
All Implemented Interfaces:
JobProvider

public class DefaultJobProvider
extends java.lang.Object
implements JobProvider

Default JobProvider which directly accesses Hudson.getInstance().

Author:
kutzi

Constructor Summary
DefaultJobProvider()
           
 
Method Summary
 java.util.List<hudson.model.AbstractProject> getAllJobs()
          Returns all Hudson jobs.
 hudson.model.AbstractProject<?,?> getJobByName(java.lang.String name)
          Returns the Hudson job with the given name or null if no job with that name exists.
 hudson.model.View getView(java.lang.String viewName)
           
 boolean isTopLevelJob(hudson.model.AbstractProject<?,?> job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJobProvider

public DefaultJobProvider()
Method Detail

getJobByName

public hudson.model.AbstractProject<?,?> getJobByName(java.lang.String name)
Description copied from interface: JobProvider
Returns the Hudson job with the given name or null if no job with that name exists.

Specified by:
getJobByName in interface JobProvider

getAllJobs

public java.util.List<hudson.model.AbstractProject> getAllJobs()
Description copied from interface: JobProvider
Returns all Hudson jobs.

Specified by:
getAllJobs in interface JobProvider
Returns:
a list with all Hudson jobs. Never null.

isTopLevelJob

public boolean isTopLevelJob(hudson.model.AbstractProject<?,?> job)
Specified by:
isTopLevelJob in interface JobProvider

getView

public hudson.model.View getView(java.lang.String viewName)
Specified by:
getView in interface JobProvider


Copyright © 2010. All Rights Reserved.