org.glassfish.cafe.api
Class MessageRecipient

java.lang.Object
  extended by org.glassfish.cafe.api.MessageRecipient

public class MessageRecipient
extends Object

Represents MessageRecipient specified in the resource-list of a message.

Author:
Mohit

Nested Class Summary
static class MessageRecipient.CopyControl
          Represents various CopyControl options for a MessageRecipient.
 
Constructor Summary
MessageRecipient()
           
MessageRecipient(String identity, MessageRecipient.CopyControl copyControl)
           
 
Method Summary
 boolean equals(Object o)
           
 MessageRecipient.CopyControl getCopyControl()
          Return the copycontrol settings of the recipient
 int getCount()
          Return the count of Anonymous recipients.
 String getIdentity()
          Return the uri string of the recipient
 int hashCode()
           
 boolean isAnonymous()
          Return the anonymity status of the recipient
 void setAnonymize(boolean anonymize)
          Set the anonymity settings
 void setCopyControl(MessageRecipient.CopyControl copyControl)
          Set the copycontrol of the recipient
 void setCount(int count)
          Set the recipient count.
 void setIdentity(String id)
          Set the uri string for the recipient
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRecipient

public MessageRecipient()

MessageRecipient

public MessageRecipient(String identity,
                        MessageRecipient.CopyControl copyControl)
Method Detail

setIdentity

public void setIdentity(String id)
Set the uri string for the recipient

Parameters:
id -

setCopyControl

public void setCopyControl(MessageRecipient.CopyControl copyControl)
Set the copycontrol of the recipient

Parameters:
copyControl -

setAnonymize

public void setAnonymize(boolean anonymize)
Set the anonymity settings

Parameters:
anonymize -

getIdentity

public String getIdentity()
Return the uri string of the recipient

Returns:

getCopyControl

public MessageRecipient.CopyControl getCopyControl()
Return the copycontrol settings of the recipient

Returns:

isAnonymous

public boolean isAnonymous()
Return the anonymity status of the recipient

Returns:

setCount

public void setCount(int count)
Set the recipient count. Indicates the number of anonymous users with a particular copy control.

Parameters:
count -

getCount

public int getCount()
Return the count of Anonymous recipients.

Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010. All Rights Reserved.