Package org.javlo.user
Class AdminUserFactory
- java.lang.Object
-
- org.javlo.user.UserFactory
-
- org.javlo.user.AdminUserFactory
-
- All Implemented Interfaces:
Serializable
,IUserFactory
- Direct Known Subclasses:
HardUserFactory
,LdapDirectUserFactory
public class AdminUserFactory extends UserFactory
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
adminUserInfoFile
static Logger
logger
-
Fields inherited from class org.javlo.user.UserFactory
USER_FACTORY_KEY, userInfoList
-
Fields inherited from interface org.javlo.user.IUserFactory
AUTO_LOGIN_AGE_SEC, TOKEN_PARAM
-
-
Constructor Summary
Constructors Constructor Description AdminUserFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description User
autoLogin(javax.servlet.http.HttpServletRequest request, String login)
static AdminUserFactory
createAdminUserFactory(GlobalContext globalContext, javax.servlet.http.HttpSession session)
Deprecated.use createUserFactorystatic AdminUserFactory
createUserFactory(GlobalContext globalContext, javax.servlet.http.HttpSession session)
UserInfo
createUserInfos()
Set<String>
getAllRoles(GlobalContext globalContext, javax.servlet.http.HttpSession session)
get all roles of the user.User
getCurrentUser(javax.servlet.http.HttpSession session)
User
getCurrentUser(GlobalContext globalContext, javax.servlet.http.HttpSession session)
protected String
getFileName()
protected Set<String>
getRoleList(ContentContext ctx)
User
getUser(String login)
User
login(javax.servlet.http.HttpServletRequest request, String token)
User
login(javax.servlet.http.HttpServletRequest request, String login, String password)
-
Methods inherited from class org.javlo.user.UserFactory
addOrModifyUserInfo, addUserInfo, adminFakeLogin, checkUserAviability, clearUserInfoList, createPasswordChangeKey, createUser, createUserFactory, deleteUser, getInternetAddress, getInternetAddress, getPasswordChangeWidthKey, getRoleWrapper, getSessionKey, getTokenCreateIfNotExist, getUserByEmail, getUserInfoForRoles, getUserInfoList, getUserInfos, init, isStandardStorage, load, logout, mergeUserInfo, releaseUserInfoList, reload, store, store, updateUserInfo, uploadNewAvatar, userListAsInternetAddressList
-
-
-
-
Method Detail
-
createUserFactory
public static AdminUserFactory createUserFactory(GlobalContext globalContext, javax.servlet.http.HttpSession session)
-
createAdminUserFactory
@Deprecated public static AdminUserFactory createAdminUserFactory(GlobalContext globalContext, javax.servlet.http.HttpSession session)
Deprecated.use createUserFactory- Parameters:
globalContext
-session
-- Returns:
-
getFileName
protected String getFileName()
- Overrides:
getFileName
in classUserFactory
-
getCurrentUser
public User getCurrentUser(GlobalContext globalContext, javax.servlet.http.HttpSession session)
- Specified by:
getCurrentUser
in interfaceIUserFactory
- Overrides:
getCurrentUser
in classUserFactory
-
getUser
public User getUser(String login)
- Specified by:
getUser
in interfaceIUserFactory
- Overrides:
getUser
in classUserFactory
-
login
public User login(javax.servlet.http.HttpServletRequest request, String login, String password)
- Specified by:
login
in interfaceIUserFactory
- Overrides:
login
in classUserFactory
-
autoLogin
public User autoLogin(javax.servlet.http.HttpServletRequest request, String login)
- Specified by:
autoLogin
in interfaceIUserFactory
- Overrides:
autoLogin
in classUserFactory
-
getCurrentUser
public User getCurrentUser(javax.servlet.http.HttpSession session)
-
getAllRoles
public Set<String> getAllRoles(GlobalContext globalContext, javax.servlet.http.HttpSession session)
Description copied from interface:IUserFactory
get all roles of the user.- Specified by:
getAllRoles
in interfaceIUserFactory
- Overrides:
getAllRoles
in classUserFactory
- Returns:
-
createUserInfos
public UserInfo createUserInfos()
- Specified by:
createUserInfos
in interfaceIUserFactory
- Overrides:
createUserInfos
in classUserFactory
-
login
public User login(javax.servlet.http.HttpServletRequest request, String token)
- Specified by:
login
in interfaceIUserFactory
- Overrides:
login
in classUserFactory
-
getRoleList
protected Set<String> getRoleList(ContentContext ctx)
- Overrides:
getRoleList
in classUserFactory
-
-