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).
| 构造器和说明 |
|---|
CmsBroadcast(CmsUser sender,
java.lang.String message)
Creates a new broadcast, with the current system time set as send time.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public CmsBroadcast(CmsUser sender, java.lang.String message)
sender - the sender of the broadcastmessage - the message to sendpublic java.lang.String getMessage()
public long getSendTime()
public CmsUser getUser()
It could be null to signalize a system message.