com.sonymobile.jenkins.plugins.teamview
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by com.sonymobile.jenkins.plugins.teamview.PluginImpl
All Implemented Interfaces:
hudson.model.Saveable

public class PluginImpl
extends hudson.Plugin

The main thing.

Author:
Tomas Westling <tomas.westling@sonymobile.com>

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 void addTeam(Team team)
          Add a team to the map of teams.
static String getIconPath(String base)
          Calculates the path to the icon.
static PluginImpl getInstance()
          Returns the singleton instance.
 Map<String,Team> getTeams()
          Standard getter.
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws Exception
Overrides:
start in class hudson.Plugin
Throws:
Exception

getInstance

public static PluginImpl getInstance()
Returns the singleton instance.

Returns:
the one.

getTeams

public Map<String,Team> getTeams()
Standard getter.

Returns:
the teams.

addTeam

public void addTeam(Team team)
Add a team to the map of teams.

Parameters:
team - the Team to add.

getIconPath

public static String getIconPath(String base)
Calculates the path to the icon. Copied from ModelObjectWithContextMenu.ContextMenu.add(hudson.model.Action)

Parameters:
base - the suffix of the icon path
Returns:
the full path of the icon including resources.


Copyright © 2004-2013. All Rights Reserved.