jetbrains.buildServer.web.openapi.buildType
Class ViewBuildRunnerSettingsExtension

java.lang.Object
  extended by jetbrains.buildServer.web.openapi.SimplePageExtension
      extended by jetbrains.buildServer.web.openapi.buildType.ViewBuildRunnerSettingsExtension
All Implemented Interfaces:
PageExtension

public class ViewBuildRunnerSettingsExtension
extends SimplePageExtension

Base class for extensions registered for PlaceId.VIEW_BUILD_RUNNER_SETTINGS_FRAGMENT


Field Summary
 
Fields inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
myCssPaths, myJsPaths, myPagePlaces
 
Constructor Summary
ViewBuildRunnerSettingsExtension(ProjectManager projectManager, PagePlaces pagePlaces, java.util.Collection<java.lang.String> supportedRunTypes)
          Accepts collection of run types for which this extension should be made available.
 
Method Summary
protected  java.lang.String getSelectedRunType(javax.servlet.http.HttpServletRequest request)
           
 boolean isAvailable(javax.servlet.http.HttpServletRequest request)
          Returns true if currently selected runner is in the collection of specified supported run types.
 
Methods inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
addCssFile, addJsFile, fillModel, getCssPaths, getIncludeUrl, getJsPaths, getPlaceId, getPluginName, isGet, isPost, register, setIncludeUrl, setPlaceId, setPluginName, setPosition, toString, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewBuildRunnerSettingsExtension

public ViewBuildRunnerSettingsExtension(@NotNull
                                        ProjectManager projectManager,
                                        @NotNull
                                        PagePlaces pagePlaces,
                                        @NotNull
                                        java.util.Collection<java.lang.String> supportedRunTypes)
Accepts collection of run types for which this extension should be made available.

Parameters:
projectManager - ProjectManager instance, required to locate build configuration by its id
pagePlaces - PagePlaces instance
supportedRunTypes - collection of supported run types
Method Detail

isAvailable

public boolean isAvailable(@NotNull
                           javax.servlet.http.HttpServletRequest request)
Returns true if currently selected runner is in the collection of specified supported run types.

Specified by:
isAvailable in interface PageExtension
Overrides:
isAvailable in class SimplePageExtension
Parameters:
request - HTTP request
Returns:
see above

getSelectedRunType

@Nullable
protected java.lang.String getSelectedRunType(@NotNull
                                                       javax.servlet.http.HttpServletRequest request)