Class SessionUserManager
java.lang.Object
de.xima.fc.security.user.SessionUserManager
- All Implemented Interfaces:
Serializable
Manager for working with user that is authenticated within a backend session.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getUser()booleanChecks if the user has a profile.booleanbooleanisMe(IEntityClientAuthorization authorization) booleanisMe(IUserIdentity identity) booleanisMe(UserProfile profile) booleanbooleanvoidlogout()Logs out the current user and redirects to either the external projects view or the welcome view, depending on the current view.voidRedirects to the logout endpoint which invalidates the session and redirects to the given URL.voidlogout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voidrefresh()voidrefresh(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voidvoid
-
Constructor Details
-
SessionUserManager
public SessionUserManager()
-
-
Method Details
-
getUser
-
isSystemAdmin
public boolean isSystemAdmin() -
isSuperUser
public boolean isSuperUser() -
isInvitedUser
public boolean isInvitedUser() -
getPreferences
-
hasProfile
public boolean hasProfile()Checks if the user has a profile.- Returns:
trueif the user has a profile,falseotherwise.
-
isMe
-
isMe
-
isMe
-
updatePreferences
-
clear
public void clear() -
refresh
public void refresh() -
refresh
public void refresh(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) -
softLogout
public void softLogout() -
logout
public void logout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) -
logout
public void logout()Logs out the current user and redirects to either the external projects view or the welcome view, depending on the current view. -
logout
Redirects to the logout endpoint which invalidates the session and redirects to the given URL.- Parameters:
redirectUrl- The URL to redirect to after logout.
-