Package de.xima.fc.security.user
Class SessionUserManager
- java.lang.Object
-
- de.xima.fc.security.user.SessionUserManager
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class SessionUserManager extends Object implements Serializable
Manager for working with user that is authenticated within a backend session.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionUserManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
UserProfilePreferences
getPreferences()
IUser
getUser()
boolean
isInvitedUser()
boolean
isMe(IUserIdentity identity)
boolean
isMe(UserProfile profile)
boolean
isSuperUser()
boolean
isSystemAdmin()
void
logout()
void
logout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
refresh()
void
refresh(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
updatePreferences(Consumer<UserProfilePreferences> update)
-
-
-
Method Detail
-
getUser
public IUser getUser()
-
isSystemAdmin
public boolean isSystemAdmin()
-
isSuperUser
public boolean isSuperUser()
-
isInvitedUser
public boolean isInvitedUser()
-
getPreferences
public UserProfilePreferences getPreferences()
-
isMe
public boolean isMe(UserProfile profile)
-
isMe
public boolean isMe(IUserIdentity identity)
-
updatePreferences
public void updatePreferences(Consumer<UserProfilePreferences> update)
-
clear
public void clear()
-
refresh
public void refresh()
-
refresh
public void refresh(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
logout
public void logout()
-
logout
public void logout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
-