public abstract class AbstractDBUserFactory extends UserFactory
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
SESSION_KEY, USER_FACTORY_KEY, userInfoList
AUTO_LOGIN_AGE_SEC, TOKEN_PARAM
Constructor and Description |
---|
AbstractDBUserFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addUserInfo(IUserInfo userInfo) |
User |
autoLogin(javax.servlet.http.HttpServletRequest request,
String login) |
void |
clearUserInfoList() |
UserInfo |
createUserInfos() |
void |
deleteUser(String login) |
Set<String> |
getAllRoles(GlobalContext globalContext,
javax.servlet.http.HttpSession session)
get all roles of the user.
|
protected static Connection |
getConnection(GlobalContext globalContext) |
User |
getCurrentUser(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
RoleWrapper |
getRoleWrapper(ContentContext ctx,
User user) |
User |
getUser(String login) |
List<IUserInfo> |
getUserInfoForRoles(String[] inRoles) |
List<IUserInfo> |
getUserInfoList() |
IUserInfo |
getUserInfos(String id) |
void |
init(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
boolean |
isStandardStorage()
check if the user system use standard storage system of wcms
|
User |
login(javax.servlet.http.HttpServletRequest request,
String login,
String password) |
void |
mergeUserInfo(IUserInfo userInfo) |
void |
releaseUserInfoList() |
void |
reload(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
protected abstract List<IUserInfo> |
statementToUserInfoList(Statement statement) |
void |
store() |
void |
updateUserInfo(IUserInfo userInfo) |
addOrModifyUserInfo, createPasswordChangeKey, createUser, createUserFactory, createUserFactory, getFileName, getInternetAddress, getInternetAddress, getPasswordChangeWidthKey, getRoleList, getTokenCreateIfNotExist, getUserByEmail, load, login, logout, store, userListAsInternetAddressList
public static Logger logger
protected static Connection getConnection(GlobalContext globalContext) throws ClassNotFoundException, SQLException, NamingException
public void addUserInfo(IUserInfo userInfo) throws UserAllreadyExistException
addUserInfo
in interface IUserFactory
addUserInfo
in class UserFactory
UserAllreadyExistException
public User autoLogin(javax.servlet.http.HttpServletRequest request, String login)
autoLogin
in interface IUserFactory
autoLogin
in class UserFactory
public void clearUserInfoList()
clearUserInfoList
in interface IUserFactory
clearUserInfoList
in class UserFactory
public UserInfo createUserInfos()
createUserInfos
in interface IUserFactory
createUserInfos
in class UserFactory
public void deleteUser(String login)
deleteUser
in interface IUserFactory
deleteUser
in class UserFactory
public Set<String> getAllRoles(GlobalContext globalContext, javax.servlet.http.HttpSession session)
IUserFactory
getAllRoles
in interface IUserFactory
getAllRoles
in class UserFactory
public User getCurrentUser(GlobalContext globalContext, javax.servlet.http.HttpSession session)
getCurrentUser
in interface IUserFactory
getCurrentUser
in class UserFactory
public User getUser(String login)
getUser
in interface IUserFactory
getUser
in class UserFactory
public List<IUserInfo> getUserInfoForRoles(String[] inRoles)
getUserInfoForRoles
in interface IUserFactory
getUserInfoForRoles
in class UserFactory
public List<IUserInfo> getUserInfoList()
getUserInfoList
in interface IUserFactory
getUserInfoList
in class UserFactory
public IUserInfo getUserInfos(String id)
getUserInfos
in interface IUserFactory
getUserInfos
in class UserFactory
public void init(GlobalContext globalContext, javax.servlet.http.HttpSession session)
init
in interface IUserFactory
init
in class UserFactory
public boolean isStandardStorage()
IUserFactory
isStandardStorage
in interface IUserFactory
isStandardStorage
in class UserFactory
public User login(javax.servlet.http.HttpServletRequest request, String login, String password)
login
in interface IUserFactory
login
in class UserFactory
public void mergeUserInfo(IUserInfo userInfo)
mergeUserInfo
in interface IUserFactory
mergeUserInfo
in class UserFactory
public void releaseUserInfoList()
releaseUserInfoList
in interface IUserFactory
releaseUserInfoList
in class UserFactory
public void reload(GlobalContext globalContext, javax.servlet.http.HttpSession session)
reload
in interface IUserFactory
reload
in class UserFactory
protected abstract List<IUserInfo> statementToUserInfoList(Statement statement) throws SQLException
SQLException
public void store()
store
in interface IUserFactory
store
in class UserFactory
public void updateUserInfo(IUserInfo userInfo)
updateUserInfo
in interface IUserFactory
updateUserInfo
in class UserFactory
public RoleWrapper getRoleWrapper(ContentContext ctx, User user)
getRoleWrapper
in interface IUserFactory
getRoleWrapper
in class UserFactory
Copyright © 2012-2018. All Rights Reserved.