de.uplanet.lucy.server.auxiliaries
Class ChatProxy

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.ChatProxy

@VelocityCallable(value="instance")
public final class ChatProxy
extends java.lang.Object

Version:
$Revision: 74400 $

Constructor Summary
ChatProxy()
           
 
Method Summary
 ChatMessages getMessages(java.lang.String p_strRecipientId)
           
 boolean hasChatPermission()
          Test if the current user has the permission to chat.
 boolean hasChatPermission(java.lang.String p_strUserId)
           
 boolean sendMessage(java.lang.String p_strSenderId, java.util.List<java.lang.String> p_recipients, java.lang.String p_strBody, java.lang.String p_strStyle)
          Send a chat message to a specific user.
 boolean sendMessage(java.lang.String p_strSenderId, java.lang.String p_strRecipientId, java.lang.String p_strBody, java.lang.String p_strStyle)
          Send a chat message to a specific user.
 java.lang.String sendPersistentMessage(java.lang.String p_strSenderId, java.util.List<java.lang.String> p_recipients, java.lang.String p_strSubject, java.lang.String p_strBody, java.util.Date p_dtExpiration)
          Send a persistent (NewsAgent) message to a specific user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatProxy

public ChatProxy()
Method Detail

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, or false otherwise.

hasChatPermission

public boolean hasChatPermission(java.lang.String p_strUserId)
Parameters:
p_strUserId - The unique unique identifier.
Returns:
true if the given user has the permission to chat, or false otherwise.

sendMessage

public boolean sendMessage(java.lang.String p_strSenderId,
                           java.lang.String p_strRecipientId,
                           java.lang.String p_strBody,
                           java.lang.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(java.lang.String p_strSenderId,
                           java.util.List<java.lang.String> p_recipients,
                           java.lang.String p_strBody,
                           java.lang.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 java.lang.String sendPersistentMessage(java.lang.String p_strSenderId,
                                              java.util.List<java.lang.String> p_recipients,
                                              java.lang.String p_strSubject,
                                              java.lang.String p_strBody,
                                              java.util.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

public ChatMessages getMessages(java.lang.String p_strRecipientId)
Parameters:
p_strRecipientId - The unique identifier of the user whose messages should be retrieved.
Returns:
A collection of chat messages for this recipient.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.