public class CmsBroadcast extends java.lang.Object
To addess a broadcast to another user, it must be placed in the
broadcast queue of that user using for example
CmsSessionManager.sendBroadcast(CmsUser, String, CmsUser).
| Modifier and Type | Field and Description |
|---|---|
static long |
DISPLAY_AGAIN_TIME |
| Constructor and Description |
|---|
CmsBroadcast(CmsUser sender,
java.lang.String message)
Creates a new broadcast, with the current system time set as send time.
|
CmsBroadcast(CmsUser sender,
java.lang.String message,
boolean repeat)
Creates a new broadcast, with the current system time set as send time.
|
CmsBroadcast(CmsUser sender,
java.lang.String message,
long sendTime,
long lastDisplay,
boolean repeat)
Creates a new broadcast, with the current system time set as send time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastDisplay() |
java.lang.String |
getMessage()
Returns the broadcast message content.
|
long |
getSendTime()
Returns the time this broadcast was send.
|
CmsUser |
getUser()
Returns the user that was the sender of this broadcast.
|
boolean |
isRepeat() |
public static long DISPLAY_AGAIN_TIME
public CmsBroadcast(CmsUser sender, java.lang.String message)
sender - the sender of the broadcastmessage - the message to sendpublic CmsBroadcast(CmsUser sender, java.lang.String message, boolean repeat)
sender - the sender of the broadcastmessage - the message to sendpublic CmsBroadcast(CmsUser sender, java.lang.String message, long sendTime, long lastDisplay, boolean repeat)
sender - the sender of the broadcastmessage - the message to sendsendTime - time when broadcast initaly was sendlastDisplay - last display timepublic long getLastDisplay()
public java.lang.String getMessage()
public long getSendTime()
public CmsUser getUser()
It could be null to signalize a system message.
public boolean isRepeat()