public interface UserFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_ATTRIBUTE_EXTERNAL_AUTH
flag to set in the user Session when an external authentication mechanism is used
this informs the framework that user cannot Change Password or Logout in the usual way
|
static String |
SESSION_ATTRIBUTE_KEY_USER_ID
User name id key in the session
|
static String |
SESSION_ATTRIBUTE_KEY_USER_OBJECT
User object key in the session
|
static String |
USER_GUEST
Guest user name key
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
String username,
String password)
Authenticates the given user credentials against the user provider
|
org.springframework.extensions.webscripts.connector.User |
initialiseUser(RequestContext context,
javax.servlet.http.HttpServletRequest request)
Loads a user from the remote user store and store it into the session.
|
org.springframework.extensions.webscripts.connector.User |
initialiseUser(RequestContext context,
javax.servlet.http.HttpServletRequest request,
boolean force)
Loads a user from the remote user store and stores it into the session.
|
org.springframework.extensions.webscripts.connector.User |
initialiseUser(RequestContext context,
javax.servlet.http.HttpServletRequest request,
String endpoint)
Loads a user from the remote user store and store it into the session.
|
org.springframework.extensions.webscripts.connector.User |
initialiseUser(RequestContext context,
javax.servlet.http.HttpServletRequest request,
String endpoint,
boolean force)
Loads a user from the remote user store and stores it into the session.
|
org.springframework.extensions.webscripts.connector.User |
loadUser(RequestContext context,
String userId)
Loads a user object from the default endpoint.
|
org.springframework.extensions.webscripts.connector.User |
loadUser(RequestContext context,
String userId,
String endpointId)
Loads a user object from the given endpoint.
|
static final String USER_GUEST
static final String SESSION_ATTRIBUTE_KEY_USER_OBJECT
static final String SESSION_ATTRIBUTE_KEY_USER_ID
static final String SESSION_ATTRIBUTE_EXTERNAL_AUTH
boolean authenticate(javax.servlet.http.HttpServletRequest request,
String username,
String password)
request - HttpServletRequestusername - Stringpassword - Stringorg.springframework.extensions.webscripts.connector.User initialiseUser(RequestContext context, javax.servlet.http.HttpServletRequest request) throws UserFactoryException
context - RequestContextrequest - HttpServletRequestUserFactoryExceptionorg.springframework.extensions.webscripts.connector.User initialiseUser(RequestContext context, javax.servlet.http.HttpServletRequest request, String endpoint) throws UserFactoryException
context - RequestContextrequest - HttpServletRequestendpoint - StringUserFactoryExceptionorg.springframework.extensions.webscripts.connector.User initialiseUser(RequestContext context, javax.servlet.http.HttpServletRequest request, boolean force) throws UserFactoryException
context - RequestContextrequest - HttpServletRequestforce - booleanUserFactoryExceptionorg.springframework.extensions.webscripts.connector.User initialiseUser(RequestContext context, javax.servlet.http.HttpServletRequest request, String endpoint, boolean force) throws UserFactoryException
context - RequestContextrequest - HttpServletRequestendpoint - Stringforce - booleanUserFactoryExceptionorg.springframework.extensions.webscripts.connector.User loadUser(RequestContext context, String userId) throws UserFactoryException
context - RequestContextuserId - StringUserFactoryExceptionorg.springframework.extensions.webscripts.connector.User loadUser(RequestContext context, String userId, String endpointId) throws UserFactoryException
context - RequestContextuserId - StringendpointId - StringUserFactoryExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.