Class ChatProxy
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ChatProxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMessages
(String p_strRecipientId) boolean
Test if the current user has the permission to chat.boolean
hasChatPermission
(String p_strUserId) boolean
sendMessage
(String p_strSenderId, String p_strRecipientId, String p_strBody, String p_strStyle) Send a chat message to a specific user.boolean
Send a chat message to a specific user.sendPersistentMessage
(String p_strSenderId, List<String> p_recipients, String p_strSubject, String p_strBody, Date p_dtExpiration) Send a persistent (NewsAgent
) message to a specific user.
-
Constructor Details
-
ChatProxy
public ChatProxy()
-
-
Method Details
-
hasChatPermission
public boolean hasChatPermission()Test if the current user has the permission to chat.- Returns:
true
if the current user has the permission to chat, orfalse
otherwise.
-
hasChatPermission
- Parameters:
p_strUserId
- The unique unique identifier.- Returns:
true
if the given user has the permission to chat, orfalse
otherwise.
-
sendMessage
public boolean sendMessage(String p_strSenderId, String p_strRecipientId, String p_strBody, String p_strStyle) Send a chat message to a specific user.- Parameters:
p_strSenderId
- The sender's unique identifier.p_strRecipientId
- The recipient's unique identifier.p_strBody
- The message body.p_strStyle
- Additional rendering information for the message.- Returns:
true
if the message was enqueued for delivery,false
otherwise.
-
sendMessage
public boolean sendMessage(String p_strSenderId, List<String> p_recipients, String p_strBody, String p_strStyle) Send a chat message to a specific user.- Parameters:
p_strSenderId
- The sender's unique identifier.p_recipients
- A list that contains the recipient's unique identifiers.p_strBody
- The message body.p_strStyle
- Additional rendering information for the message.- Returns:
true
if the message was enqueued for delivery,false
otherwise.
-
sendPersistentMessage
public String sendPersistentMessage(String p_strSenderId, List<String> p_recipients, String p_strSubject, String p_strBody, Date p_dtExpiration) Send a persistent (NewsAgent
) message to a specific user.- Parameters:
p_strSenderId
- The sender's unique identifier.p_recipients
- A list that contains the recipient's unique identifiers.p_strSubject
- The subject of the message.p_strBody
- The message body.p_dtExpiration
- The message's expiration date.- Returns:
- The unique identifier of the sent message.
-
getMessages
- Parameters:
p_strRecipientId
- The unique identifier of the user whose messages should be retrieved.- Returns:
- A collection of chat messages for this recipient.
-