org.jenkinsci.plugins.jobmail.configuration
Class JobMailGlobalConfiguration

java.lang.Object
  extended by hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
      extended by jenkins.model.GlobalConfiguration
          extended by org.jenkinsci.plugins.jobmail.configuration.JobMailGlobalConfiguration
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<jenkins.model.GlobalConfiguration>, hudson.model.Saveable

@Extension
public class JobMailGlobalConfiguration
extends jenkins.model.GlobalConfiguration

Configuration class for the jobmail plugin. Here are stored all templates and the signature. Everything is global, there is no local configuration for this plugin.

Author:
yboev

Nested Class Summary
static class JobMailGlobalConfiguration.Template
          Class for handling regular expressions.
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
JobMailGlobalConfiguration()
          Constructor.
JobMailGlobalConfiguration(String signature, List<JobMailGlobalConfiguration.Template> templates)
          Constructor.
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
static JobMailGlobalConfiguration get()
          Finds and returns the configuration class.
 String getSignature()
          Returns the signature.
 List<JobMailGlobalConfiguration.Template> getTemplates()
          Returns all templates.
 
Methods inherited from class jenkins.model.GlobalConfiguration
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPage
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobMailGlobalConfiguration

public JobMailGlobalConfiguration()
Constructor. Loads the configuration upon invoke.


JobMailGlobalConfiguration

@DataBoundConstructor
public JobMailGlobalConfiguration(String signature,
                                                       List<JobMailGlobalConfiguration.Template> templates)
Constructor. DataBound because this constructor is used to populate values entered from the user.

Parameters:
signature - the signature value from the config page.
templates - the lsit of templates from the config page.
Method Detail

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
Throws:
hudson.model.Descriptor.FormException

getSignature

public String getSignature()
Returns the signature.

Returns:
signature as String.

getTemplates

public List<JobMailGlobalConfiguration.Template> getTemplates()
Returns all templates.

Returns:
list of templates

get

public static JobMailGlobalConfiguration get()
Finds and returns the configuration class.

Returns:
the JobMailGlobalConfiguration.


Copyright © 2004-2013. All Rights Reserved.