public class SlingshotLoginController
extends org.springframework.extensions.surf.mvc.LoginController
LoginController to store the authenticated user's group membership information
as an HttpSession attribute so that it can be retrieved by the SlingshotUserFactory when creating
SlingshotUser instances.| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_ATTRIBUTE_KEY_USER_GROUPS |
| Constructor and Description |
|---|
SlingshotLoginController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides the inherited method to retrieve the groups that the authenticated user is a member
of and stores them as a comma delimited
String in the HttpSession. |
handleRequestInternal, setUserFactoryhandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static String SESSION_ATTRIBUTE_KEY_USER_GROUPS
protected void onSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
String in the HttpSession. This String
is then retrieved when loading a user in the SlingshotUserFactory and stored as a user
property.onSuccess in class org.springframework.extensions.surf.mvc.LoginControllerrequest - The HttpServletRequestresponse - The HttpServletResponseExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.