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
-
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, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Method Detail
-
getUser
public IUser getUser()
-
getBrowserType
public EBrowserType getBrowserType()
-
getParameterPID
public Long getParameterPID()
-
setParameterPID
public void setParameterPID(Long id)
-
getLastVisitedClient
public Mandant getLastVisitedClient()
-
setLastVisitedClient
public void setLastVisitedClient(Mandant lastVisitedClient)
-
isLoggedIn
public boolean isLoggedIn()
-
isSuperAdmin
public boolean isSuperAdmin()
-
isHasUserInboxAccess
public boolean isHasUserInboxAccess()
-
getUri
public String getUri(IView view)
- Parameters:
view
- the view to link to- Returns:
- an uri with maybe client id
-
checkMultiLogin
public void checkMultiLogin()
-
checkProductUpdatePrompt
public void checkProductUpdatePrompt()
-
disposeOtherSessions
public void disposeOtherSessions()
-
getClientHash
public String getClientHash()
-
getExpireDate
public String getExpireDate()
-
logout
public void logout()
-
isSetupUser
@Deprecated public boolean isSetupUser()
Deprecated.
-
isLdapUser
@Deprecated public boolean isLdapUser()
Deprecated.
-
getSuperAdminName
@Deprecated public String getSuperAdminName()
Deprecated.TODO(fse) use UserDataBean.getSuperAdminName instead?
-
getContextBean
@Deprecated public AContextBean getContextBean()
Deprecated.- Returns:
- The context bean for the current context, that is, either the MSContextBean or the FSContextBean.
-
getCurrentClient
@Deprecated public Mandant getCurrentClient()
Deprecated.The client is now view dependent not session dependent. Users are now able to switch between clients 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
-
setCurrentClient
@Deprecated public void setCurrentClient(Mandant currentClient)
Deprecated.UseViewContextBean.getClient()
instead.- Specified by:
setCurrentClient
in interfaceISessionBean
-
getCurrentUser
@Deprecated public Benutzer getCurrentUser()
Deprecated.- Specified by:
getCurrentUser
in interfaceISessionBean
-
setCurrentUser
@Deprecated public void setCurrentUser(Benutzer currentUser)
Deprecated.- Specified by:
setCurrentUser
in interfaceISessionBean
-
getCurrentUserGroups
@Deprecated public List<BenutzerGruppe> getCurrentUserGroups()
Deprecated.the user groups of a user within a client should be gotten viaIUser.getClientUserGroups(String, Mandant)
.- Specified by:
getCurrentUserGroups
in interfaceISessionBean
-
setCurrentUserGroups
@Deprecated public void setCurrentUserGroups(List<BenutzerGruppe> currentUserGroups)
Deprecated.- Specified by:
setCurrentUserGroups
in interfaceISessionBean
-
getLogin
@Deprecated public LoginModel getLogin()
Deprecated.
-
setLogin
@Deprecated public void setLogin(LoginModel login)
Deprecated.
-
getAjaxLoginUrl
@Deprecated public String getAjaxLoginUrl()
Deprecated.- Returns:
- The URL for the login dialog. URL parameters are added for preselecting the username, client, and language.
-
updateCurrentUser
@Deprecated public void updateCurrentUser()
Deprecated.
-
-