public interface IUserFactory
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_LOGIN_AGE_SEC |
static String |
TOKEN_PARAM |
Modifier and Type | Method and Description |
---|---|
void |
addOrModifyUserInfo(IUserInfo userInfo)
if user info found, update data
|
void |
addUserInfo(IUserInfo userInfo) |
User |
autoLogin(javax.servlet.http.HttpServletRequest request,
String login) |
void |
clearUserInfoList() |
IUserInfo |
createUserInfos() |
void |
deleteUser(String login) |
Set<String> |
getAllRoles(GlobalContext globalContext,
javax.servlet.http.HttpSession session)
get all roles of the user.
|
User |
getCurrentUser(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
RoleWrapper |
getRoleWrapper(ContentContext ctx,
User user) |
String |
getTokenCreateIfNotExist(User user) |
User |
getUser(String login) |
User |
getUserByEmail(String email) |
List<IUserInfo> |
getUserInfoForRoles(String[] inRoles) |
List<IUserInfo> |
getUserInfoList() |
IUserInfo |
getUserInfos(String id) |
void |
init(GlobalContext globalContext,
javax.servlet.http.HttpSession newSession) |
boolean |
isStandardStorage()
check if the user system use standard storage system of wcms
|
User |
login(javax.servlet.http.HttpServletRequest request,
String token) |
User |
login(javax.servlet.http.HttpServletRequest request,
String login,
String password) |
void |
logout(javax.servlet.http.HttpSession session) |
void |
mergeUserInfo(IUserInfo userInfo) |
void |
releaseUserInfoList() |
void |
reload(GlobalContext globalContext,
javax.servlet.http.HttpSession session) |
void |
store() |
void |
updateUserInfo(IUserInfo userInfo) |
static final String TOKEN_PARAM
static final int AUTO_LOGIN_AGE_SEC
void logout(javax.servlet.http.HttpSession session)
User getCurrentUser(GlobalContext globalContext, javax.servlet.http.HttpSession session)
void releaseUserInfoList()
void clearUserInfoList()
void addUserInfo(IUserInfo userInfo) throws UserAllreadyExistException
UserAllreadyExistException
void addOrModifyUserInfo(IUserInfo userInfo) throws UserAllreadyExistException
userInfo
- UserAllreadyExistException
void mergeUserInfo(IUserInfo userInfo) throws IOException
IOException
void updateUserInfo(IUserInfo userInfo) throws IOException
IOException
void deleteUser(String login)
void store() throws IOException
IOException
IUserInfo createUserInfos()
String getTokenCreateIfNotExist(User user) throws IOException
IOException
Set<String> getAllRoles(GlobalContext globalContext, javax.servlet.http.HttpSession session)
globalContext
- session
- void init(GlobalContext globalContext, javax.servlet.http.HttpSession newSession)
void reload(GlobalContext globalContext, javax.servlet.http.HttpSession session)
boolean isStandardStorage()
RoleWrapper getRoleWrapper(ContentContext ctx, User user)
Copyright © 2012-2018. All Rights Reserved.