Package de.xima.fc.gui.common.bean
Class AContextBean
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.common.utils.msg.AJSFContext
-
- de.xima.fc.gui.common.bean.AContextBean
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FSContextBean
,MSContextBean
public abstract class AContextBean extends AJSFContext implements Serializable
- 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 Modifier and Type Field Description protected String[]
availableBackgroundColors
protected File[]
availableBackgrounds
static String
BEAN_NAME
protected MandantLdapData
currentLdapData
protected MandantMailData
currentMailData
protected SessionBean
sessionBean
protected ViewBean
viewBean
-
Constructor Summary
Constructors Constructor Description AContextBean()
-
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, 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
-
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
- See Also:
- Constant Field Values
-
availableBackgrounds
protected File[] availableBackgrounds
-
availableBackgroundColors
protected String[] availableBackgroundColors
-
currentMailData
protected MandantMailData currentMailData
-
currentLdapData
protected MandantLdapData currentLdapData
-
viewBean
@Inject protected ViewBean viewBean
-
sessionBean
@Inject protected SessionBean sessionBean
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
getViewBean
public ViewBean getViewBean()
-
setViewBean
public void setViewBean(ViewBean viewBean)
-
getApplicationEventBusBean
public ApplicationEventBusBean getApplicationEventBusBean()
-
setApplicationEventBusBean
public void setApplicationEventBusBean(ApplicationEventBusBean applicationEventBusBean)
-
getFcVersion
public String getFcVersion()
-
getSessionEventBusBean
public SessionEventBusBean getSessionEventBusBean()
-
setSessionEventBusBean
public void setSessionEventBusBean(SessionEventBusBean sessionEventBusBean)
-
getCurrentMailData
public MandantMailData getCurrentMailData()
-
setCurrentMailData
public void setCurrentMailData(MandantMailData currentMailData)
-
getCurrentLdapData
public MandantLdapData getCurrentLdapData()
-
setCurrentLdapData
public void setCurrentLdapData(MandantLdapData currentLdapData)
-
initViewBean
public void initViewBean()
-
listAvailableBackgrounds
public void listAvailableBackgrounds()
-
getAvailableBackgrounds
public File[] getAvailableBackgrounds()
-
setAvailableBackgrounds
public void setAvailableBackgrounds(File[] availableBackgrounds)
-
getAvailableBackgroundColors
public String[] getAvailableBackgroundColors()
-
setAvailableBackgroundColors
public void setAvailableBackgroundColors(String[] availableBackgroundColors)
-
initViewProperties
public void initViewProperties()
-
initContextDependentProperties
public abstract void initContextDependentProperties()
-
initMailLdapData
public abstract void initMailLdapData(Mandant client)
Initializes the mail and LDAP data for the given client.- Parameters:
client
- The current client.
-
isMailServerConfigured
public abstract boolean isMailServerConfigured()
- Returns:
- Whether at least one mail server (client mail server or system mail server) was configured.
-
isMasterServer
public abstract boolean isMasterServer()
-
isShowTopbarClientChooser
public abstract boolean isShowTopbarClientChooser()
- 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.
-
-