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 TypeMethodDescriptionvoid
copy()
Copies the currently selected message.void
copy
(SystemMessage message) Copies the given message.getLanguagesForMessage
(SystemMessage message) getMessageTitle
(SystemMessage message, ELanguage previewLang) getModel()
getSystemMessageI18n
(SystemMessage msg, ELanguage language) boolean
hasSystemMessageI18n
(SystemMessage msg, ELanguage language) void
init()
void
Save the currently selected message that is being edited; and closes the editing window by unselecting the message.void
setLocaleBean
(LocaleBean localeBean) void
setModel
(IEntityListModel<SystemMessage> model) void
setPreviewLanguage
(ELanguage previewLanguage) void
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
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, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, redirectToDashboard, 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
-
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:
getLocaleBean
in classAJSFContext
-
setLocaleBean
- Overrides:
setLocaleBean
in 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 #
SystemMessageI18n
is set for the given message. May includenull
for 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()
.
-