|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.support.BaseFactory org.springframework.extensions.surf.support.AbstractUserFactory
public abstract class AbstractUserFactory
Abstract base class for UserFactory implementations. This is provided as a convenience to developers who wish to build their own custom UserFactory variations.
Field Summary |
---|
Fields inherited from interface org.springframework.extensions.surf.UserFactory |
---|
SESSION_ATTRIBUTE_EXTERNAL_AUTH, SESSION_ATTRIBUTE_KEY_USER_ID, SESSION_ATTRIBUTE_KEY_USER_OBJECT, USER_GUEST |
Constructor Summary | |
---|---|
AbstractUserFactory()
|
Method Summary | |
---|---|
abstract boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
String username,
String password)
Authentication the user given the supplied username/password |
User |
faultUser(RequestContext context,
javax.servlet.http.HttpServletRequest request)
Loads a user from the remote user store and store it into the session. |
User |
faultUser(RequestContext context,
javax.servlet.http.HttpServletRequest request,
boolean force)
Loads a user from the remote user store and stores it into the session. |
User |
faultUser(RequestContext context,
javax.servlet.http.HttpServletRequest request,
String endpoint)
Loads a user from the remote user store and store it into the session. |
User |
faultUser(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. |
protected User |
getGuestUser(RequestContext context)
Retrieve the special "Guest" user instance. |
abstract User |
loadUser(RequestContext context,
String userId)
Load the user from a store |
abstract User |
loadUser(RequestContext context,
String userId,
String endpointId)
Load the user from a store |
Methods inherited from class org.springframework.extensions.surf.support.BaseFactory |
---|
getApplicationContext, getResourceService, getServiceRegistry, getWebFrameworkConfiguration, getWebFrameworkManager, setApplicationContext, setServiceRegistry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUserFactory()
Method Detail |
---|
protected User getGuestUser(RequestContext context) throws UserFactoryException
context
-
UserFactoryException
public User faultUser(RequestContext context, javax.servlet.http.HttpServletRequest request) throws UserFactoryException
faultUser
in interface UserFactory
context
- request
-
UserFactoryException
public User faultUser(RequestContext context, javax.servlet.http.HttpServletRequest request, String endpoint) throws UserFactoryException
faultUser
in interface UserFactory
context
- request
-
UserFactoryException
public User faultUser(RequestContext context, javax.servlet.http.HttpServletRequest request, boolean force) throws UserFactoryException
faultUser
in interface UserFactory
context
- request
- force
-
UserFactoryException
public User faultUser(RequestContext context, javax.servlet.http.HttpServletRequest request, String endpoint, boolean force) throws UserFactoryException
faultUser
in interface UserFactory
context
- request
- force
-
UserFactoryException
public abstract User loadUser(RequestContext context, String userId) throws UserFactoryException
loadUser
in interface UserFactory
context
- userId
-
UserFactoryException
public abstract User loadUser(RequestContext context, String userId, String endpointId) throws UserFactoryException
loadUser
in interface UserFactory
context
- userId
- endpointId
-
UserFactoryException
public abstract boolean authenticate(javax.servlet.http.HttpServletRequest request, String username, String password)
authenticate
in interface UserFactory
request
- username
- password
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |