org.starhope.appius.user
Class UserList

java.lang.Object
  extended by org.starhope.appius.user.UserList

public class UserList
extends Object

Generic class that handles both buddy lists and ignore lists, depending upon its mood. Unlike most of my stuff, you can actually use the constructor safely, here.

Author:
brpocock@star-hope.org

Constructor Summary
UserList()
           
 
Method Summary
static String getBuddyApprovalCookie(AbstractUser requester, AbstractUser requestee)
          Generate an opaque cookie which can only be produced by the requester, and must be returned by the requestee in order to prove that a request has been made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserList

public UserList()
Method Detail

getBuddyApprovalCookie

public static String getBuddyApprovalCookie(AbstractUser requester,
                                            AbstractUser requestee)
Generate an opaque cookie which can only be produced by the requester, and must be returned by the requestee in order to prove that a request has been made. Note that a buddy list request will (by design) be invalid after either user changes their user name.

Parameters:
requester - user placing the buddy request
requestee - user being requested as a buddy
Returns:
the cookie