sashenka
Class User

java.lang.Object
  |
  +--sashenka.User
All Implemented Interfaces:
Destination, java.io.Serializable, Source
Direct Known Subclasses:
IRCUser

public class User
extends java.lang.Object
implements Source, Destination, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected User()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String name, java.lang.Object failover)
           
 void ignore()
           
 boolean isIgnored()
          Return whether or not this source should be ignored.
 boolean isMute()
           
 boolean isVerified()
          Return whether or not the source is a verified source.
 void mute()
           
 void removeAttribute(java.lang.String name)
           
 boolean sendOK()
          Returns whether or not it is okay to send messages and traffic to this destination.
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setIgnored(boolean ignore)
           
 void setMute(boolean mute)
           
 void setVerified(boolean verified)
           
 void unignore()
           
 void unmute()
           
 void unverify()
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

protected User()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     java.lang.Object failover)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)

removeAttribute

public void removeAttribute(java.lang.String name)

sendOK

public boolean sendOK()
Description copied from interface: Destination
Returns whether or not it is okay to send messages and traffic to this destination.

Specified by:
sendOK in interface Destination

isMute

public boolean isMute()

setMute

public void setMute(boolean mute)

mute

public void mute()

unmute

public void unmute()

isVerified

public boolean isVerified()
Description copied from interface: Source
Return whether or not the source is a verified source. I.e. has the user authenticated themselves via some mechanism.

Specified by:
isVerified in interface Source

setVerified

public void setVerified(boolean verified)

verify

public void verify()

unverify

public void unverify()

isIgnored

public boolean isIgnored()
Description copied from interface: Source
Return whether or not this source should be ignored. Ignored sources are discarded as if the request was never received.

Specified by:
isIgnored in interface Source

setIgnored

public void setIgnored(boolean ignore)

ignore

public void ignore()

unignore

public void unignore()