public class MessageSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageSettings.OpenMessages
Automatically open messages.
|
Modifier and Type | Method and Description |
---|---|
UC4ObjectName |
getGroup()
Returns the name of the user group if own messages are selected (EverythingInClient is set to false).
|
int |
getMaxNumber()
Returns the maximum number of messages in the Message Window.
|
MessageSettings.OpenMessages |
getOpenAutomatically()
Returns whether the Message Window should open automatically for incoming information or error messages.
|
boolean |
isAdministratorMessages() |
boolean |
isErrorAndWarningOnly()
Return the option "Display errors and Warnings only".
|
boolean |
isEverythingInClient()
Returns the scope of subscribed messages.
|
boolean |
isSecurityMessages() |
boolean |
isShowUnreadAfterLogon()
Returns if unread messages should be shown after logon.
|
void |
setAdministratorMessages(boolean administratorMessages)
Defines if administrator messages should be shown in the message window.
|
void |
setErrorAndWarningOnly(boolean errorAndWarningOnly)
Sets the option "Display errors and Warnings only".
|
void |
setEverythingInClient(boolean everythingInClient)
Defines which messages should be shown in the message window.
|
void |
setGroup(UC4ObjectName group)
Sets the name of the user group if own messages are selected (EverythingInClient is set to false).
|
void |
setMaxNumber(int maxNumber)
Sets the maximum number of messages in the Message Window.
|
void |
setOpenAutomatically(MessageSettings.OpenMessages openAutomatically)
Specifies whether the Message Window should open automatically for incoming information or error messages.
|
void |
setSecurityMessages(boolean securityMessages)
Defines if security messages should be shown in the message window.
|
void |
setShowUnreadAfterLogon(boolean showUnreadAfterLogon)
Defines if unread messages should be shown after logon.
|
public boolean isErrorAndWarningOnly()
public void setErrorAndWarningOnly(boolean errorAndWarningOnly)
errorAndWarningOnly
- if true only errors and warnings are shown in the message windowpublic boolean isEverythingInClient()
everythingInClient
is set to false only own messages (and optionally messages of a defined user group)
are displayed.public void setEverythingInClient(boolean everythingInClient)
everythingInClient
is set to false only own messages (and optionally messages of a defined user group)
are displayed.everythingInClient
- true if everything in the current client should be shown in the message window, false for own + group messages onlypublic UC4ObjectName getGroup()
UC4ObjectName
instance is returned.public void setGroup(UC4ObjectName group)
group
- Name of the user grouppublic boolean isAdministratorMessages()
public void setAdministratorMessages(boolean administratorMessages)
administratorMessages
- true if administrator messages should be shown in the message window, false otherwisepublic boolean isSecurityMessages()
public void setSecurityMessages(boolean securityMessages)
securityMessages
- true if security messages should be shown in the message window, false otherwisepublic MessageSettings.OpenMessages getOpenAutomatically()
public void setOpenAutomatically(MessageSettings.OpenMessages openAutomatically)
openAutomatically
- Open message window conditionpublic int getMaxNumber()
public void setMaxNumber(int maxNumber)
maxNumber
- Integer between 0 and 999public boolean isShowUnreadAfterLogon()
public void setShowUnreadAfterLogon(boolean showUnreadAfterLogon)
showUnreadAfterLogon
- true if unread messages should be shown, false otherwise