Package de.xima.fc.gui.bean
Class MSContextBean
-
- All Implemented Interfaces:
Serializable
@Named("contextBean") @SessionScoped public class MSContextBean extends AContextBean
- Author:
- XIMA MEDIA GmbH
- 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.bean.AContextBean
availableBackgroundColors, availableBackgrounds, BEAN_NAME, currentLdapData, currentMailData, viewBean
-
-
Constructor Summary
Constructors Constructor Description MSContextBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initContextDependentProperties()
void
initMailLdapData(Mandant client)
Initializes the mail and LDAP data for the given client.boolean
isMailServerConfigured()
boolean
isMasterServer()
boolean
isShowTopbarClientChooser()
-
Methods inherited from class de.xima.fc.gui.common.bean.AContextBean
destroy, getApplicationEventBusBean, getAvailableBackgroundColors, getAvailableBackgrounds, getCurrentLdapData, getCurrentMailData, getFcVersion, getSessionEventBusBean, getViewBean, init, initViewBean, initViewProperties, listAvailableBackgrounds, setApplicationEventBusBean, setAvailableBackgroundColors, setAvailableBackgrounds, setCurrentLdapData, setCurrentMailData, setSessionEventBusBean, setViewBean
-
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
-
initMailLdapData
public void initMailLdapData(Mandant client)
Description copied from class:AContextBean
Initializes the mail and LDAP data for the given client.- Specified by:
initMailLdapData
in classAContextBean
- Parameters:
client
- The current client.
-
isMasterServer
public boolean isMasterServer()
- Specified by:
isMasterServer
in classAContextBean
-
isMailServerConfigured
public boolean isMailServerConfigured()
- Specified by:
isMailServerConfigured
in classAContextBean
- Returns:
- Whether at least one mail server (client mail server or system mail server) was configured.
-
initContextDependentProperties
public void initContextDependentProperties()
- Specified by:
initContextDependentProperties
in classAContextBean
-
isShowTopbarClientChooser
public boolean isShowTopbarClientChooser()
- Specified by:
isShowTopbarClientChooser
in classAContextBean
- Returns:
- Whether the client chooser in the topbar should be shown. The logic is different between the frontend and the master server: The master server needs to check whether database updates are running and more, which needs some classes available only on the master server. The only view available on the frontend server is the inbox, and here the client chooser is not shown.
-
-