public class InternalDBUserFactory extends UserFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DB_NAME |
static Logger |
logger |
SESSION_KEY, USER_FACTORY_KEY, userInfoListAUTO_LOGIN_AGE_SEC, TOKEN_PARAM| Constructor and Description |
|---|
InternalDBUserFactory() |
| 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) |
protected Connection |
getConnection() |
RoleWrapper |
getRoleWrapper(ContentContext ctx,
User user) |
static InternalDBUserFactory |
getTestInstance() |
User |
getUser(String login) |
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) |
protected void |
releaseConnection(Connection conn) |
void |
releaseUserInfoList() |
void |
reload(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
void |
store() |
void |
updateUserInfo(IUserInfo userInfo) |
addOrModifyUserInfo, createPasswordChangeKey, createUser, createUserFactory, createUserFactory, getAllRoles, getCurrentUser, getFileName, getInternetAddress, getInternetAddress, getPasswordChangeWidthKey, getRoleList, getTokenCreateIfNotExist, getUserByEmail, getUserInfoForRoles, load, login, logout, store, userListAsInternetAddressListpublic static final String DB_NAME
public static Logger logger
protected Connection getConnection()
protected void releaseConnection(Connection conn)
public static final InternalDBUserFactory getTestInstance()
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 User getUser(String login)
getUser in interface IUserFactorygetUser 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 UserFactorypublic 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.