jetbrains.buildServer.web.openapi.buildType
Class EditBuildRunnerSettingsExtension

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

public class EditBuildRunnerSettingsExtension
extends SimplePageExtension

Base class for extensions registered for PlaceId.EDIT_BUILD_RUNNER_SETTINGS_FRAGMENT


Field Summary
 
Fields inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
myCssPaths, myJsPaths, myPagePlaces
 
Constructor Summary
EditBuildRunnerSettingsExtension(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

EditBuildRunnerSettingsExtension

public EditBuildRunnerSettingsExtension(@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:
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)