Package de.xima.fc.gui.bean
Class InternalMessageBean
- 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.bean.InternalMessageBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class InternalMessageBean extends AMessaging implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternalMessageBean()
-
Method Summary
-
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
-
getCurrentTopbarIcon
public String getCurrentTopbarIcon()
-
getHighestPrio
public EInternalMessagePriority getHighestPrio()
-
setHighestPrio
public void setHighestPrio(EInternalMessagePriority highestPrio)
-
getInternalMessages
public List<AInternalMessage> getInternalMessages()
-
setInternalMessages
public void setInternalMessages(List<AInternalMessage> internalMessages)
-
isNeedsToPerformPluginUpdateCheck
public boolean isNeedsToPerformPluginUpdateCheck()
- Returns:
true
if we need to contact PROMA and check for available plugin updates.
-
setMessageRead
public void setMessageRead(AInternalMessage message)
-
clearAllMessages
public void clearAllMessages()
This method deletes all current shown internal messages from the database
-
createAllPluginInternalMessages
public int createAllPluginInternalMessages(IEntityContext ec)
This method creates all internal messages for system and client plugin updates.- Parameters:
ec
- Entity context to use for accessing the database.- Returns:
- The number of created messages.
-
deleteInternalMessage
public void deleteInternalMessage(AInternalMessage message)
This method deletes a choosen internal message- Parameters:
message
- the message which should be deleted
-
showTopbarButton
public boolean showTopbarButton()
-
getFormattedTime
public String getFormattedTime(AInternalMessage message)
-
performPluginUpdateCheck
public void performPluginUpdateCheck()
Contacts PROMA and checks for available plugins updates.
-
finishPluginUpdateCheck
public void finishPluginUpdateCheck()
Called after the plugin update check has finished.
-
getMessageDetails
public String getMessageDetails(AInternalMessage message)
-
getMessageOrigin
public String getMessageOrigin(AInternalMessage message)
-
getMessageSummary
public String getMessageSummary(AInternalMessage message)
-
getMessageViewUri
public String getMessageViewUri(AInternalMessage message)
-
isPluginMessage
public boolean isPluginMessage(AInternalMessage message)
-
setHighestPriority
public void setHighestPriority()
-
-