Package org.opennms.web.controller.alarm
Class AlarmBoxController
- 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
-
- org.opennms.web.controller.alarm.AlarmBoxController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware,org.springframework.web.servlet.mvc.Controller
public class AlarmBoxController extends org.springframework.web.servlet.mvc.AbstractController implements org.springframework.beans.factory.InitializingBeanA controller that handles querying the alarm table to create the front-page alarm summary box.- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description static intROWS
-
Constructor Summary
Constructors Constructor Description AlarmBoxController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()afterPropertiesSetprotected org.springframework.web.servlet.ModelAndViewhandleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidsetAlarmRepository(AlarmRepository webAlarmRepository)setWebAlarmRepositoryvoidsetSuccessView(String successView)setSuccessView-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
-
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getCacheControl, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Field Detail
-
ROWS
public static final int ROWS
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleRequestInternal
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception- Specified by:
handleRequestInternalin classorg.springframework.web.servlet.mvc.AbstractController- Throws:
Exception
-
setSuccessView
public void setSuccessView(String successView)
setSuccessView
- Parameters:
successView- aStringobject.
-
setAlarmRepository
public void setAlarmRepository(AlarmRepository webAlarmRepository)
setWebAlarmRepository
- Parameters:
webAlarmRepository- aAlarmRepositoryobject.
-
afterPropertiesSet
public void afterPropertiesSet()
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
-