Package de.xima.fc.gui.bean.settings
Class SystemMessagesBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.bean.FCContextBean
systemUC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy()Copies the currently selected message.voidcopy(SystemMessage message) Copies the given message.getLanguagesForMessage(SystemMessage message) getMessageTitle(SystemMessage message, ELanguage previewLang) getModel()getSystemMessageI18n(SystemMessage msg, ELanguage language) booleanhasSystemMessageI18n(SystemMessage msg, ELanguage language) voidinit()voidSave the currently selected message that is being edited; and closes the editing window by unselecting the message.voidsetLocaleBean(LocaleBean localeBean) voidsetModel(IEntityListModel<SystemMessage> model) voidsetPreviewLanguage(ELanguage previewLanguage) voidMethods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubViewMethods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDBMethods 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, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, redirectToDashboard, setSessionAttribute, ucMethods 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, msgMethods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Constructor Details
-
SystemMessagesBean
public SystemMessagesBean()
-
-
Method Details
-
init
@PostConstruct public void init() -
getModel
-
setModel
-
updateModel
public void updateModel() -
getAvailableIcons
- Returns:
- All available icons that can be selected for a system message, in the form Pair[IconName, IconColor].
-
getAvailableColors
-
getAvailableI18nSources
-
getLocaleBean
- Overrides:
getLocaleBeanin classAJSFContext
-
setLocaleBean
- Overrides:
setLocaleBeanin classAJSFContext
-
getPreviewLanguage
- Returns:
- The language to be used for displaying a preview of the messages.
-
setPreviewLanguage
-
getAvailableLanguages
- Parameters:
msg- Message to check.- Returns:
- All languages for which a #
SystemMessageI18nis set for the given message. May includenullfor the default. The default may be overridden by language-specific settings.
-
hasSystemMessageI18n
-
getSystemMessageI18n
-
saveSelected
public void saveSelected()Save the currently selected message that is being edited; and closes the editing window by unselecting the message. -
copy
Copies the given message. -
copy
public void copy()Copies the currently selected message. -
getPlainSearchData
- Parameters:
msg- Target message- Returns:
- The data to be used for filtering for the given message. This is to be escaped for HTML.
-
getLanguagesForMessage
- Parameters:
message- Message to check- Returns:
- HTML string with all languages for which the given message is shown at all (default text or custom translation).
-
getMessageTitle
-
getHtmlSearchData
- Parameters:
msg- Target message- Returns:
- The data to be used for filtering the given message. This is an HTML string (the
#
SystemMessage.getMessage().
-