public class BSAccountManImpl extends java.lang.Object implements BSAccountMan
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
BSAccountManImpl() |
Modifier and Type | Method and Description |
---|---|
BSAccount |
getAccount(java.lang.String username,
java.lang.String password)
Get a user account, given his username and password.
|
long |
getAppJumper(BSAccount account)
Given a logged in account, return a key that can be used by another app to retrieve this logged in account.
|
java.lang.String |
getAppName() |
BSAccountUser |
getNewUser()
Create a new anonymous BSAccountUSer
|
BSAccountUserWebSession |
getNewUserWebSession(BSAccountUser user) |
BSAccountUser |
getUser(BSAccount account) |
BSAccountUserWebSession |
getUserWebSession(javax.servlet.http.HttpServletRequest request) |
boolean |
isHelloForwards() |
boolean |
isUserWebSession(javax.servlet.http.HttpServletRequest request) |
void |
setAppName(java.lang.String appName) |
void |
setHelloForwards(boolean helloForwards) |
void |
setInit(java.lang.String unused)
Call setInit() after instantiating and configuring the object
|
void |
setUserFactory(UserFactory userFactory) |
public void setUserFactory(UserFactory userFactory)
public BSAccountUser getNewUser()
BSAccountMan
getNewUser
in interface BSAccountMan
public BSAccountUser getUser(BSAccount account)
getUser
in interface BSAccountMan
public BSAccountUserWebSession getNewUserWebSession(BSAccountUser user)
public BSAccountUserWebSession getUserWebSession(javax.servlet.http.HttpServletRequest request)
getUserWebSession
in interface BSAccountMan
public long getAppJumper(BSAccount account)
BSAccountMan
getAppJumper
in interface BSAccountMan
account
- The BSAccount that wants to jump appspublic boolean isUserWebSession(javax.servlet.http.HttpServletRequest request)
isUserWebSession
in interface BSAccountMan
public java.lang.String getAppName()
getAppName
in interface BSAccountMan
public void setAppName(java.lang.String appName)
setAppName
in interface BSAccountMan
public boolean isHelloForwards()
public void setHelloForwards(boolean helloForwards)
public void setInit(java.lang.String unused)
public BSAccount getAccount(java.lang.String username, java.lang.String password)
BSAccountMan
getAccount
in interface BSAccountMan
username
- His registered BuckoSoft usernamepassword
- The cleartext password that the user typed in. NB: BSAccount passwords are encrypted in the database.