jenkinsci.plugin.browseraxis
Class Browser.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<Browser>
      extended by jenkinsci.plugin.browseraxis.Browser.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
Browser

@Extension
public static class Browser.DescriptorImpl
extends hudson.model.Descriptor<Browser>


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
Browser.DescriptorImpl()
           
 
Method Summary
 void checkNodes()
          Check compatibility with names of nodes with nodes contained in Hudson
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 void deleteUnusedNodes()
          Delete nodes which does not exist.
 hudson.util.FormValidation doCheckName(java.lang.String value)
           
 hudson.util.FormValidation doCheckPath(java.lang.String value)
           
 Browser findBrowserByName(java.lang.String name)
          Find browser by its name
 java.util.List<BrowserVersion> getAllBrowserVersions()
          Find all versions of all browsers
 Browser getBrowserOfVersion(BrowserVersion version)
          Find browser of given version
 java.util.Set<Browser> getBrowsers()
          Return all kinds of browser which is defined
 BrowserVersion getBrowserVersionByName(java.lang.String name)
          Return all kinds of browser which is defined
static java.util.SortedSet<java.lang.String> getConnectedUnixOs()
          Find all kinds of Unix systems which is installed on currently connected slaves
 java.lang.String getDisplayName()
           
 java.util.Set<hudson.model.labels.LabelAtom> getLabelsOfNode(hudson.model.Node node)
          Get browser labels for given node.
 java.util.Map<Browser,java.util.Set<BrowserVersion>> getMapBrowsers()
          Return map of kinds of browsers and their versions
 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getSlaveLables()
           
static java.util.Set<java.lang.String> getUnixOs()
          Return all kinds of Unix systems, which has ever been on Hudson slaves
 void setBrowser(net.sf.json.JSONObject json, java.util.Map<Browser,java.util.Set<BrowserVersion>> newBrowsers)
          Set browsers from request parameters
 void setVersion(net.sf.json.JSONObject json, java.util.Set<BrowserVersion> versions)
          Set versions of browser from request parameters
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Browser.DescriptorImpl

public Browser.DescriptorImpl()
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<Browser>
Throws:
hudson.model.Descriptor.FormException

getSlaveLables

public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getSlaveLables()

checkNodes

public void checkNodes()
Check compatibility with names of nodes with nodes contained in Hudson


deleteUnusedNodes

public void deleteUnusedNodes()
Delete nodes which does not exist.


getUnixOs

public static java.util.Set<java.lang.String> getUnixOs()
Return all kinds of Unix systems, which has ever been on Hudson slaves

Returns:
set of names of Unix systems

setVersion

public void setVersion(net.sf.json.JSONObject json,
                       java.util.Set<BrowserVersion> versions)
Set versions of browser from request parameters


setBrowser

public void setBrowser(net.sf.json.JSONObject json,
                       java.util.Map<Browser,java.util.Set<BrowserVersion>> newBrowsers)
Set browsers from request parameters


doCheckName

public hudson.util.FormValidation doCheckName(@QueryParameter
                                              java.lang.String value)
                                       throws java.io.IOException,
                                              javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doCheckPath

public hudson.util.FormValidation doCheckPath(@QueryParameter
                                              java.lang.String value)
                                       throws java.io.IOException,
                                              javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getBrowsers

public java.util.Set<Browser> getBrowsers()
Return all kinds of browser which is defined

Returns:
set of browsers

getMapBrowsers

public java.util.Map<Browser,java.util.Set<BrowserVersion>> getMapBrowsers()
Return map of kinds of browsers and their versions

Returns:
map of browsers and their versions

getBrowserVersionByName

public BrowserVersion getBrowserVersionByName(java.lang.String name)
Return all kinds of browser which is defined

Returns:
set of browsers

getLabelsOfNode

public java.util.Set<hudson.model.labels.LabelAtom> getLabelsOfNode(hudson.model.Node node)
Get browser labels for given node. If the slave is not contained this node add it with empty set of browser labels

Returns:
set of browser labels

findBrowserByName

public Browser findBrowserByName(java.lang.String name)
Find browser by its name

Returns:
Browser with give name

getAllBrowserVersions

public java.util.List<BrowserVersion> getAllBrowserVersions()
Find all versions of all browsers

Returns:
List of all versions

getBrowserOfVersion

public Browser getBrowserOfVersion(BrowserVersion version)
Find browser of given version

Returns:
Browser of version

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<Browser>

getConnectedUnixOs

public static java.util.SortedSet<java.lang.String> getConnectedUnixOs()
Find all kinds of Unix systems which is installed on currently connected slaves

Returns:
Set of Unix systems


Copyright © 2004-2012. All Rights Reserved.