Class BaseHealthStatusItemsController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- jetbrains.buildServer.controllers.BaseController
-
- jetbrains.buildServer.controllers.healthStatus.BaseHealthStatusItemsController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
- Direct Known Subclasses:
BuildTypeHealthStatusItemsController
,BuildTypeTemplateHealthStatusItemsController
,ProjectHealthStatusItemsController
,VcsRootHealthStatusItemsController
public abstract class BaseHealthStatusItemsController extends BaseController
- Since:
- 8.1
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected HealthStatusProvider
myHealthStatusProvider
protected HealthStatusReportLocator
myHealthStatusReportLocator
protected ItemVisibilityTracker
myItemVisibilityTracker
protected PagePlaces
myPagePlaces
protected ProjectManager
myProjectManager
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description BaseHealthStatusItemsController(HealthStatusProvider healthStatusProvider, HealthStatusReportLocator healthStatusReportLocator, ItemVisibilityTracker itemVisibilityTracker, ProjectManager projectManager, PagePlaces pagePlaces)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<HealthStatusItem>
calculateItems(HealthStatusScope scope, javax.servlet.http.HttpServletRequest request)
protected SBuildType
findBuildType(javax.servlet.http.HttpServletRequest request)
protected SProject
findProject(javax.servlet.http.HttpServletRequest request)
protected BuildTypeTemplate
findTemplate(javax.servlet.http.HttpServletRequest request)
static ItemSeverity
maxSeverity(List<HealthStatusItem> results)
protected List<HealthStatusItem>
sortAndLimit(List<HealthStatusItem> results, int maxNum)
protected void
writeJsonOutput(List<HealthStatusItem> results, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class jetbrains.buildServer.controllers.BaseController
doHandle, getOrCreateMessages, handleRequest, handleRequestInternal, isGet, isPost, redirectTo, setExceptionResolvers, simpleView
-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
isSynchronizeOnSession, setSynchronizeOnSession
-
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Field Detail
-
myHealthStatusProvider
@NotNull protected final HealthStatusProvider myHealthStatusProvider
-
myProjectManager
@NotNull protected final ProjectManager myProjectManager
-
myPagePlaces
@NotNull protected final PagePlaces myPagePlaces
-
myHealthStatusReportLocator
@NotNull protected final HealthStatusReportLocator myHealthStatusReportLocator
-
myItemVisibilityTracker
@NotNull protected final ItemVisibilityTracker myItemVisibilityTracker
-
-
Constructor Detail
-
BaseHealthStatusItemsController
public BaseHealthStatusItemsController(@NotNull HealthStatusProvider healthStatusProvider, @NotNull HealthStatusReportLocator healthStatusReportLocator, @NotNull ItemVisibilityTracker itemVisibilityTracker, @NotNull ProjectManager projectManager, @NotNull PagePlaces pagePlaces)
-
-
Method Detail
-
findBuildType
@Nullable protected SBuildType findBuildType(@NotNull javax.servlet.http.HttpServletRequest request)
-
findTemplate
@Nullable protected BuildTypeTemplate findTemplate(@NotNull javax.servlet.http.HttpServletRequest request)
-
findProject
@Nullable protected SProject findProject(@NotNull javax.servlet.http.HttpServletRequest request)
-
calculateItems
@NotNull protected List<HealthStatusItem> calculateItems(@NotNull HealthStatusScope scope, @NotNull javax.servlet.http.HttpServletRequest request)
-
sortAndLimit
@NotNull protected List<HealthStatusItem> sortAndLimit(@NotNull List<HealthStatusItem> results, int maxNum)
-
maxSeverity
@Nullable public static ItemSeverity maxSeverity(@NotNull List<HealthStatusItem> results)
-
writeJsonOutput
protected void writeJsonOutput(@NotNull List<HealthStatusItem> results, @NotNull javax.servlet.http.HttpServletResponse response) throws IOException
- Throws:
IOException
-
-