Class HealthStatusItemPageExtension
- java.lang.Object
-
- jetbrains.buildServer.web.openapi.SimplePageExtension
-
- jetbrains.buildServer.web.openapi.healthStatus.HealthStatusItemPageExtension
-
- All Implemented Interfaces:
PageExtension
public class HealthStatusItemPageExtension extends SimplePageExtension
Use this extension to present health status inspection results in the web. author: Evgeniy.Koshkin- Since:
- 8.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROBLEM_ATTR
static java.lang.String
PROBLEM_FINDER_TYPE_ATTR
-
Fields inherited from class jetbrains.buildServer.web.openapi.SimplePageExtension
myCssPaths, myJsPaths, myPagePlaces
-
-
Constructor Summary
Constructors Modifier Constructor Description HealthStatusItemPageExtension(java.lang.String extensionType, PagePlaces pagePlaces)
protected
HealthStatusItemPageExtension(java.lang.String extensionType, PagePlaces pagePlaces, java.lang.String includeUrl, boolean visibleOutsideAdminArea)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtensionType()
HealthStatusItem
getStatusItem(javax.servlet.http.HttpServletRequest request)
boolean
isAvailable(javax.servlet.http.HttpServletRequest request)
Returns true if this extension is available (should be included on the page) for the specified request.protected boolean
isInAdminArea(javax.servlet.http.HttpServletRequest request)
boolean
isVisibleOutsideAdminArea()
void
setVisibleOutsideAdminArea(boolean visibleOutsideAdminArea)
-
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
-
Methods inherited from interface jetbrains.buildServer.web.openapi.PageExtension
getDisplayName
-
-
-
-
Field Detail
-
PROBLEM_ATTR
public static final java.lang.String PROBLEM_ATTR
- See Also:
- Constant Field Values
-
PROBLEM_FINDER_TYPE_ATTR
public static final java.lang.String PROBLEM_FINDER_TYPE_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HealthStatusItemPageExtension
public HealthStatusItemPageExtension(@NotNull java.lang.String extensionType, @NotNull PagePlaces pagePlaces)
-
HealthStatusItemPageExtension
protected HealthStatusItemPageExtension(@NotNull java.lang.String extensionType, @NotNull PagePlaces pagePlaces, @NotNull java.lang.String includeUrl, boolean visibleOutsideAdminArea)
-
-
Method Detail
-
isAvailable
public boolean isAvailable(@NotNull javax.servlet.http.HttpServletRequest request)
Description copied from interface:PageExtension
Returns true if this extension is available (should be included on the page) for the specified request. If extension needs to be shown for some pages only, it can obtain original page URL via request attribute called "pageUrl":String pageUrl = (String)request.getAttribute("pageUrl");
- Specified by:
isAvailable
in interfacePageExtension
- Overrides:
isAvailable
in classSimplePageExtension
- Parameters:
request
- HTTP request- Returns:
- true if extension should be included in the page place
-
getExtensionType
@NotNull public java.lang.String getExtensionType()
-
getStatusItem
@NotNull public HealthStatusItem getStatusItem(@NotNull javax.servlet.http.HttpServletRequest request)
-
isInAdminArea
protected final boolean isInAdminArea(@NotNull javax.servlet.http.HttpServletRequest request)
-
isVisibleOutsideAdminArea
public boolean isVisibleOutsideAdminArea()
-
setVisibleOutsideAdminArea
public void setVisibleOutsideAdminArea(boolean visibleOutsideAdminArea)
-
-