Class ProfileController
- 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<EditPersonalProfileForm>
-
- jetbrains.buildServer.controllers.profile.ProfileController
-
- 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 ProfileController extends AbstractUpdateUserController<EditPersonalProfileForm>
- Author:
- Pavel.Sher Date: 29.03.2006
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jetbrains.buildServer.controllers.profile.AbstractUpdateUserController
AbstractUpdateUserController.BaseGeneralSettingsUpdateAction<T extends ProfileForm>, AbstractUpdateUserController.UserUpdateAction<T extends ProfileForm>
-
-
Field Summary
Fields Modifier and Type Field Description static StringITEM_PARAM_NAMEstatic StringOLD_TAB_PARAM_NAMEstatic StringPROFILE_PAGE_PATHstatic StringSENSITIVE_CHANGES_FORM_KEY-
Fields inherited from class jetbrains.buildServer.controllers.profile.AbstractUpdateUserController
DUPLICATE_ACCOUNT_ERR, GENERAL_SETTINGS_TAB, mySessionModel, myUserModel, USER_NOT_FOUND_ERR, USER_ROLES_TAB
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description ProfileController(WebControllerManager webControllerManager, BuildServerEx server, PluginProperties pluginRegistry, UserAuthSettingsPluginsRegistry userAuthSettingsPluginsRegistry, NotificationRulesManager rulesManager, ProjectManager projectManager, VcsManager vcsManager, PagePlaces pagePlaces, AuthorizationInterceptor authInterceptor, NotificatorRegistry notificatorRegistry, ServerSettings serverSettings, SecurityContext securityContext, EmailVerificationController emailVerificationController, SessionModel sessionModel, EditAccessTokenController editAccessTokenController, TwoFactorWebLoginModel twoFactorWebLoginModel, PasswordComplexityChecker passwordComplexityChecker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndViewdoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Implement this method to process GET requests.protected EditPersonalProfileFormgetForm(javax.servlet.http.HttpServletRequest request)static CustomTabgetSelected(String item, List<CustomTab> group)protected SUsergetUserForUpdate(javax.servlet.http.HttpServletRequest request, EditPersonalProfileForm form)voidsetAccessTokensCounter(ProfileForm form, org.springframework.web.servlet.ModelAndView view)voidsetNotificationCounter(ProfileForm form, org.springframework.web.servlet.ModelAndView view)static StringupdateUrl(javax.servlet.http.HttpServletRequest request, String item)-
Methods inherited from class jetbrains.buildServer.controllers.profile.AbstractUpdateUserController
doPost, getCurrentTab, getUserModel, registerUserUpdateAction
-
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
-
ITEM_PARAM_NAME
@NotNull public static final String ITEM_PARAM_NAME
- See Also:
- Constant Field Values
-
OLD_TAB_PARAM_NAME
@NotNull public static final String OLD_TAB_PARAM_NAME
- See Also:
- Constant Field Values
-
SENSITIVE_CHANGES_FORM_KEY
@NotNull public static final String SENSITIVE_CHANGES_FORM_KEY
- See Also:
- Constant Field Values
-
PROFILE_PAGE_PATH
public static final String PROFILE_PAGE_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProfileController
public ProfileController(WebControllerManager webControllerManager, BuildServerEx server, PluginProperties pluginRegistry, @NotNull UserAuthSettingsPluginsRegistry userAuthSettingsPluginsRegistry, NotificationRulesManager rulesManager, ProjectManager projectManager, VcsManager vcsManager, PagePlaces pagePlaces, AuthorizationInterceptor authInterceptor, NotificatorRegistry notificatorRegistry, ServerSettings serverSettings, @NotNull SecurityContext securityContext, @NotNull EmailVerificationController emailVerificationController, @NotNull SessionModel sessionModel, @NotNull EditAccessTokenController editAccessTokenController, @NotNull TwoFactorWebLoginModel twoFactorWebLoginModel, @NotNull PasswordComplexityChecker passwordComplexityChecker)
-
-
Method Detail
-
getForm
protected EditPersonalProfileForm getForm(javax.servlet.http.HttpServletRequest request)
- Specified by:
getFormin classAbstractUpdateUserController<EditPersonalProfileForm>
-
getUserForUpdate
protected SUser getUserForUpdate(javax.servlet.http.HttpServletRequest request, EditPersonalProfileForm form)
- Specified by:
getUserForUpdatein classAbstractUpdateUserController<EditPersonalProfileForm>
-
doGet
protected org.springframework.web.servlet.ModelAndView doGet(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)Description copied from class:BaseFormXmlControllerImplement this method to process GET requests. Usually on GET request a form bean is created and a page is shown.- Specified by:
doGetin classBaseFormXmlController- Parameters:
request- HTTP requestresponse- HTTP response- Returns:
- model and view components
-
updateUrl
@NotNull public static String updateUrl(@NotNull javax.servlet.http.HttpServletRequest request, String item)
-
setNotificationCounter
public void setNotificationCounter(ProfileForm form, org.springframework.web.servlet.ModelAndView view)
-
setAccessTokensCounter
public void setAccessTokensCounter(ProfileForm form, org.springframework.web.servlet.ModelAndView view)
-
-