Class EditNotificationRulesController
- 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.BaseFormXmlController
-
- jetbrains.buildServer.controllers.profile.notifications.EditNotificationRulesController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
public class EditNotificationRulesController extends BaseFormXmlController
- Author:
- Pavel.Sher Date: 26.06.2006
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DUPLICATE_RULE_ERR
protected static String
OVERWRITE_RULE_PARAM
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description EditNotificationRulesController(UserModel userModel, UserGroupManager groupManager, ProjectManagerEx projectManager, NotificationRuleFactory notificationRuleFactory, SecurityContextEx securityContext, BranchSpecs branchSpecs, NotificationsUtil notificationsUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Implement this method to process GET requests.protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.jdom.Element xmlResponse)
Implement this method to process POST requests.-
Methods inherited from class jetbrains.buildServer.controllers.BaseFormXmlController
addMessage, bindFromRequest, doHandle, forgetFormBean, forgetFormBean, getOrCreateFormBean, getOrCreateFormBean, isInitPageRequest, selfRedirectOnInit, writeErrors, writeRedirect
-
Methods inherited from class jetbrains.buildServer.controllers.BaseController
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
-
DUPLICATE_RULE_ERR
@NotNull protected static final String DUPLICATE_RULE_ERR
- See Also:
- Constant Field Values
-
OVERWRITE_RULE_PARAM
@NotNull protected static final String OVERWRITE_RULE_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EditNotificationRulesController
public EditNotificationRulesController(@NotNull UserModel userModel, @NotNull UserGroupManager groupManager, @NotNull ProjectManagerEx projectManager, @NotNull NotificationRuleFactory notificationRuleFactory, @NotNull SecurityContextEx securityContext, @NotNull BranchSpecs branchSpecs, @NotNull NotificationsUtil notificationsUtil)
-
-
Method Detail
-
doGet
protected org.springframework.web.servlet.ModelAndView doGet(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
Description copied from class:BaseFormXmlController
Implement this method to process GET requests. Usually on GET request a form bean is created and a page is shown.- Specified by:
doGet
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- model and view components
-
doPost
protected void doPost(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull org.jdom.Element xmlResponse)
Description copied from class:BaseFormXmlController
Implement this method to process POST requests. Usually POST requests are changing state of the form bean and underlying model. To output errors (if request validation failed)ActionErrors
can be used. To add messages (if request processing was successful) useBaseFormXmlController.addMessage(javax.servlet.http.HttpServletRequest, String, String, String...)
method.- Specified by:
doPost
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP responsexmlResponse
- XML response for AJAX requests
-
-