public abstract class AbstractDBUserFactory extends UserFactory
| Modifier and Type | Field and Description |
|---|---|
static Logger |
logger |
SESSION_KEY, USER_FACTORY_KEY, userInfoListAUTO_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, userListAsInternetAddressListpublic static Logger logger
protected static Connection getConnection(GlobalContext globalContext) throws ClassNotFoundException, SQLException, NamingException
public void addUserInfo(IUserInfo userInfo) throws UserAllreadyExistException
addUserInfo in interface IUserFactoryaddUserInfo in class UserFactoryUserAllreadyExistExceptionpublic User autoLogin(javax.servlet.http.HttpServletRequest request, String login)
autoLogin in interface IUserFactoryautoLogin in class UserFactorypublic void clearUserInfoList()
clearUserInfoList in interface IUserFactoryclearUserInfoList in class UserFactorypublic UserInfo createUserInfos()
createUserInfos in interface IUserFactorycreateUserInfos in class UserFactorypublic void deleteUser(String login)
deleteUser in interface IUserFactorydeleteUser in class UserFactorypublic Set<String> getAllRoles(GlobalContext globalContext, javax.servlet.http.HttpSession session)
IUserFactorygetAllRoles in interface IUserFactorygetAllRoles in class UserFactorypublic User getCurrentUser(GlobalContext globalContext, javax.servlet.http.HttpSession session)
getCurrentUser in interface IUserFactorygetCurrentUser in class UserFactorypublic User getUser(String login)
getUser in interface IUserFactorygetUser in class UserFactorypublic List<IUserInfo> getUserInfoForRoles(String[] inRoles)
getUserInfoForRoles in interface IUserFactorygetUserInfoForRoles in class UserFactorypublic List<IUserInfo> getUserInfoList()
getUserInfoList in interface IUserFactorygetUserInfoList in class UserFactorypublic IUserInfo getUserInfos(String id)
getUserInfos in interface IUserFactorygetUserInfos in class UserFactorypublic void init(GlobalContext globalContext, javax.servlet.http.HttpSession session)
init in interface IUserFactoryinit in class UserFactorypublic boolean isStandardStorage()
IUserFactoryisStandardStorage in interface IUserFactoryisStandardStorage in class UserFactorypublic User login(javax.servlet.http.HttpServletRequest request, String login, String password)
login in interface IUserFactorylogin in class UserFactorypublic void mergeUserInfo(IUserInfo userInfo)
mergeUserInfo in interface IUserFactorymergeUserInfo in class UserFactorypublic void releaseUserInfoList()
releaseUserInfoList in interface IUserFactoryreleaseUserInfoList in class UserFactorypublic void reload(GlobalContext globalContext, javax.servlet.http.HttpSession session)
reload in interface IUserFactoryreload in class UserFactoryprotected abstract List<IUserInfo> statementToUserInfoList(Statement statement) throws SQLException
SQLExceptionpublic void store()
store in interface IUserFactorystore in class UserFactorypublic void updateUserInfo(IUserInfo userInfo)
updateUserInfo in interface IUserFactoryupdateUserInfo in class UserFactorypublic RoleWrapper getRoleWrapper(ContentContext ctx, User user)
getRoleWrapper in interface IUserFactorygetRoleWrapper in class UserFactoryCopyright © 2012-2018. All Rights Reserved.