Package de.xima.fc.gui.common.bean
Class SessionBean
-
- All Implemented Interfaces:
ISessionBean
,Serializable
@Named @SessionScoped public class SessionBean extends AJSFContext implements ISessionBean
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description SessionBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMultiLogin()
void
checkProductUpdatePrompt()
void
disposeOtherSessions()
String
getAjaxLoginUrl()
EBrowserType
getBrowserType()
AContextBean
getContextBean()
Mandant
getCurrentClient()
Returns the current client, as set in the session.Benutzer
getCurrentUser()
List<BenutzerGruppe>
getCurrentUserGroups()
String
getExpireDate()
LoginModel
getLogin()
Long
getParameterPID()
String
getSuperAdminName()
boolean
isHasUserInboxAccess()
boolean
isLdapUser()
boolean
isLoggedIn()
boolean
isSetupUser()
boolean
isSuperAdmin()
void
setCurrentClient(Mandant currentClient)
void
setCurrentUser(Benutzer currentUser)
void
setCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)
void
setLogin(LoginModel login)
void
setParameterPID(Long id)
void
updateCurrentUser()
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
getBrowserType
public EBrowserType getBrowserType()
-
getParameterPID
public Long getParameterPID()
-
setParameterPID
public void setParameterPID(Long id)
-
getLogin
public LoginModel getLogin()
-
setLogin
public void setLogin(LoginModel login)
-
getCurrentClient
public Mandant getCurrentClient()
Returns the current client, as set in the session. Please note that in future versions, users will be able to switch between client and thus have multiple views with different client. Use the methodCurrentViewBean.getCurrentClient()
instead to get the client for the current view.- Specified by:
getCurrentClient
in interfaceISessionBean
- Returns:
- The current client, as set in the session.
-
setCurrentClient
public void setCurrentClient(Mandant currentClient)
- Specified by:
setCurrentClient
in interfaceISessionBean
-
getCurrentUser
public Benutzer getCurrentUser()
- Specified by:
getCurrentUser
in interfaceISessionBean
-
setCurrentUser
public void setCurrentUser(Benutzer currentUser)
- Specified by:
setCurrentUser
in interfaceISessionBean
-
getCurrentUserGroups
public List<BenutzerGruppe> getCurrentUserGroups()
- Specified by:
getCurrentUserGroups
in interfaceISessionBean
-
setCurrentUserGroups
public void setCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)
- Specified by:
setCurrentUserGroups
in interfaceISessionBean
-
getSuperAdminName
public String getSuperAdminName()
-
isLoggedIn
public boolean isLoggedIn()
-
isSuperAdmin
public boolean isSuperAdmin()
-
isSetupUser
public boolean isSetupUser()
-
isLdapUser
public boolean isLdapUser()
-
isHasUserInboxAccess
public boolean isHasUserInboxAccess()
-
getContextBean
public AContextBean getContextBean()
- Returns:
- The context bean for the current context, that is, either the MSContextBean or the FSContextBean.
-
checkMultiLogin
public void checkMultiLogin()
-
checkProductUpdatePrompt
public void checkProductUpdatePrompt()
-
disposeOtherSessions
public void disposeOtherSessions()
-
updateCurrentUser
public void updateCurrentUser()
-
getAjaxLoginUrl
public String getAjaxLoginUrl()
- Returns:
- The URL for the login dialog. URL parameters are added for preselecting the username, client, and language.
-
getExpireDate
public String getExpireDate()
-
-