com.sonymobile.jenkins.plugins.teamview
Class Teams

java.lang.Object
  extended by com.sonymobile.jenkins.plugins.teamview.Teams
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction, jenkins.model.ModelObjectWithContextMenu

@Extension
public class Teams
extends Object
implements hudson.model.RootAction, jenkins.model.ModelObjectWithContextMenu

View for the teams.

Author:
Tomas Westling <tomas.westling>

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
static String TEAMS_URL_NAME
          the URL name for the Teams page.
 
Constructor Summary
Teams()
           
 
Method Summary
 hudson.util.FormValidation doCheckName(String value)
          Form validation for name.
 void doConfigSubmit(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Run when the user saves a team.
 jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
 String getDisplayName()
           
 Team getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
          Used when redirected to a team.
 String getIconFileName()
           
 String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEAMS_URL_NAME

public static final String TEAMS_URL_NAME
the URL name for the Teams page.

See Also:
Constant Field Values
Constructor Detail

Teams

public Teams()
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getDynamic

public Team getDynamic(String token,
                       org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse resp)
Used when redirected to a team.

Parameters:
token - the name of the team.
req - the stapler request.
resp - the stapler response.
Returns:
the correct Team.

doConfigSubmit

public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest request,
                           org.kohsuke.stapler.StaplerResponse response)
                    throws Exception
Run when the user saves a team.

Parameters:
request - the StaplerRequest.
response - the StaplerResponse.
Throws:
Exception - if anything goes wrong with the form.

doCheckName

public hudson.util.FormValidation doCheckName(@QueryParameter
                                              String value)
Form validation for name. Checks for not empty and that it is unique..

Parameters:
value - the form value.
Returns:
FormValidation.ok() if everything is well.

doContextMenu

public jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request,
                                                                          org.kohsuke.stapler.StaplerResponse response)
                                                                   throws Exception
Specified by:
doContextMenu in interface jenkins.model.ModelObjectWithContextMenu
Throws:
Exception


Copyright © 2004-2013. All Rights Reserved.