Package com.uc4.communication
Class MessageSettings
- java.lang.Object
-
- com.uc4.communication.MessageSettings
-
public class MessageSettings extends java.lang.ObjectThis class represents the message window settings. These settings can be found in the User Interface - Options - Settings - Message Window
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageSettings.OpenMessagesAutomatically open messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UC4ObjectNamegetGroup()Returns the name of the user group if own messages are selected (EverythingInClient is set to false).intgetMaxNumber()Returns the maximum number of messages in the Message Window.MessageSettings.OpenMessagesgetOpenAutomatically()Returns whether the Message Window should open automatically for incoming information or error messages.booleanisAdministratorMessages()booleanisErrorAndWarningOnly()Return the option "Display errors and Warnings only".booleanisEverythingInClient()Returns the scope of subscribed messages.booleanisSecurityMessages()booleanisShowUnreadAfterLogon()Returns if unread messages should be shown after logon.voidsetAdministratorMessages(boolean administratorMessages)Defines if administrator messages should be shown in the message window.voidsetErrorAndWarningOnly(boolean errorAndWarningOnly)Sets the option "Display errors and Warnings only".voidsetEverythingInClient(boolean everythingInClient)Defines which messages should be shown in the message window.voidsetGroup(UC4ObjectName group)Sets the name of the user group if own messages are selected (EverythingInClient is set to false).voidsetMaxNumber(int maxNumber)Sets the maximum number of messages in the Message Window.voidsetOpenAutomatically(MessageSettings.OpenMessages openAutomatically)Specifies whether the Message Window should open automatically for incoming information or error messages.voidsetSecurityMessages(boolean securityMessages)Defines if security messages should be shown in the message window.voidsetShowUnreadAfterLogon(boolean showUnreadAfterLogon)Defines if unread messages should be shown after logon.
-
-
-
Method Detail
-
isErrorAndWarningOnly
public boolean isErrorAndWarningOnly()
Return the option "Display errors and Warnings only".- Returns:
- true if only errors and warnings are shown in the message window, false if information messages are also displayed
-
setErrorAndWarningOnly
public void setErrorAndWarningOnly(boolean errorAndWarningOnly)
Sets the option "Display errors and Warnings only".- Parameters:
errorAndWarningOnly- if true only errors and warnings are shown in the message window
-
isEverythingInClient
public boolean isEverythingInClient()
Returns the scope of subscribed messages. if the parametereverythingInClientis set to false only own messages (and optionally messages of a defined user group) are displayed.- Returns:
- true if everything in the current client is shown in the message window, false for own + group messages only
-
setEverythingInClient
public void setEverythingInClient(boolean everythingInClient)
Defines which messages should be shown in the message window. if the parametereverythingInClientis set to false only own messages (and optionally messages of a defined user group) are displayed.- Parameters:
everythingInClient- true if everything in the current client should be shown in the message window, false for own + group messages only
-
getGroup
public UC4ObjectName getGroup()
Returns the name of the user group if own messages are selected (EverythingInClient is set to false). If no user group is set an emptyUC4ObjectNameinstance is returned.- Returns:
- Name of the user group never null
-
setGroup
public void setGroup(UC4ObjectName group)
Sets the name of the user group if own messages are selected (EverythingInClient is set to false).- Parameters:
group- Name of the user group
-
isAdministratorMessages
public boolean isAdministratorMessages()
- Returns:
- true if administrator messages are shown in the message window, false otherwise
-
setAdministratorMessages
public void setAdministratorMessages(boolean administratorMessages)
Defines if administrator messages should be shown in the message window.- Parameters:
administratorMessages- true if administrator messages should be shown in the message window, false otherwise
-
isSecurityMessages
public boolean isSecurityMessages()
- Returns:
- true if security messages are shown in the message window, false otherwise
-
setSecurityMessages
public void setSecurityMessages(boolean securityMessages)
Defines if security messages should be shown in the message window.- Parameters:
securityMessages- true if security messages should be shown in the message window, false otherwise
-
getOpenAutomatically
public MessageSettings.OpenMessages getOpenAutomatically()
Returns whether the Message Window should open automatically for incoming information or error messages.- Returns:
- Open message window condition
-
setOpenAutomatically
public void setOpenAutomatically(MessageSettings.OpenMessages openAutomatically)
Specifies whether the Message Window should open automatically for incoming information or error messages.- Parameters:
openAutomatically- Open message window condition
-
getMaxNumber
public int getMaxNumber()
Returns the maximum number of messages in the Message Window.- Returns:
- Integer between 0 and 999
-
setMaxNumber
public void setMaxNumber(int maxNumber)
Sets the maximum number of messages in the Message Window.- Parameters:
maxNumber- Integer between 0 and 999
-
isShowUnreadAfterLogon
public boolean isShowUnreadAfterLogon()
Returns if unread messages should be shown after logon.- Returns:
- true if unread messages should be shown, false otherwise
-
setShowUnreadAfterLogon
public void setShowUnreadAfterLogon(boolean showUnreadAfterLogon)
Defines if unread messages should be shown after logon.- Parameters:
showUnreadAfterLogon- true if unread messages should be shown, false otherwise
-
-