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 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SessionBean() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckMultiLogin()voiddisposeOtherSessions()StringgetAjaxLoginUrl()EBrowserTypegetBrowserType()AContextBeangetContextBean()MandantgetCurrentClient()Returns the current client, as set in the session.BenutzergetCurrentUser()List<BenutzerGruppe>getCurrentUserGroups()LoginModelgetLogin()LonggetParameterPID()StringgetSuperAdminName()booleanisHasUserInboxAccess()booleanisLdapUser()booleanisLoggedIn()booleanisSetupUser()booleanisSuperAdmin()voidsetCurrentClient(Mandant currentClient)voidsetCurrentUser(Benutzer currentUser)voidsetCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)voidsetLogin(LoginModel login)voidsetParameterPID(Long id)voidupdateCurrentUser()- 
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:
 getCurrentClientin interfaceISessionBean- Returns:
 - The current client, as set in the session.
 
 
- 
setCurrentClient
public void setCurrentClient(Mandant currentClient)
- Specified by:
 setCurrentClientin interfaceISessionBean
 
- 
getCurrentUser
public Benutzer getCurrentUser()
- Specified by:
 getCurrentUserin interfaceISessionBean
 
- 
setCurrentUser
public void setCurrentUser(Benutzer currentUser)
- Specified by:
 setCurrentUserin interfaceISessionBean
 
- 
getCurrentUserGroups
public List<BenutzerGruppe> getCurrentUserGroups()
- Specified by:
 getCurrentUserGroupsin interfaceISessionBean
 
- 
setCurrentUserGroups
public void setCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)
- Specified by:
 setCurrentUserGroupsin 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()
 
- 
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.
 
 
 - 
 
 -