Class AbstractUpdateUserController<T extends ProfileForm>
- 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.AbstractUpdateUserController<T>
-
- 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:
AdminEditUserController
,ProfileController
public abstract class AbstractUpdateUserController<T extends ProfileForm> extends BaseFormXmlController
- Author:
- Pavel.Sher Date: 15.11.2006
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractUpdateUserController.BaseGeneralSettingsUpdateAction<T extends ProfileForm>
static interface
AbstractUpdateUserController.UserUpdateAction<T extends ProfileForm>
-
Field Summary
Fields Modifier and Type Field Description static String
DUPLICATE_ACCOUNT_ERR
static String
GENERAL_SETTINGS_TAB
protected SecurityContext
mySecurityContext
protected SessionModel
mySessionModel
protected UserModelEx
myUserModel
static String
USER_NOT_FOUND_ERR
static String
USER_ROLES_TAB
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUpdateUserController(BuildServerEx server, SessionModel sessionModel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.jdom.Element xmlResponse)
Implement this method to process POST requests.protected String
getCurrentTab(javax.servlet.http.HttpServletRequest request)
protected abstract T
getForm(javax.servlet.http.HttpServletRequest request)
protected abstract SUser
getUserForUpdate(javax.servlet.http.HttpServletRequest request, T form)
protected UserModelEx
getUserModel()
protected void
registerUserUpdateAction(String tab, AbstractUpdateUserController.UserUpdateAction<T> action)
-
Methods inherited from class jetbrains.buildServer.controllers.BaseFormXmlController
addMessage, bindFromRequest, doGet, 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
-
USER_NOT_FOUND_ERR
public static final String USER_NOT_FOUND_ERR
- See Also:
- Constant Field Values
-
DUPLICATE_ACCOUNT_ERR
public static final String DUPLICATE_ACCOUNT_ERR
- See Also:
- Constant Field Values
-
myUserModel
@NotNull protected final UserModelEx myUserModel
-
mySessionModel
@NotNull protected final SessionModel mySessionModel
-
mySecurityContext
@NotNull protected final SecurityContext mySecurityContext
-
GENERAL_SETTINGS_TAB
public static final String GENERAL_SETTINGS_TAB
- See Also:
- Constant Field Values
-
USER_ROLES_TAB
public static final String USER_ROLES_TAB
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractUpdateUserController
protected AbstractUpdateUserController(BuildServerEx server, @NotNull SessionModel sessionModel)
-
-
Method Detail
-
registerUserUpdateAction
protected void registerUserUpdateAction(String tab, AbstractUpdateUserController.UserUpdateAction<T> action)
-
getCurrentTab
@NotNull protected String getCurrentTab(@NotNull javax.servlet.http.HttpServletRequest request)
-
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
-
getUserModel
@NotNull protected UserModelEx getUserModel()
-
getForm
@Nullable protected abstract T getForm(javax.servlet.http.HttpServletRequest request)
-
-