Class User

java.lang.Object
  |
  +--User
All Implemented Interfaces:
java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable

The User class captures information about the current user of the peer. Plugins should not edit the details of the User instance, and methods are only provided to get access to the information that is stored within it.

In order to allow the User object to be easily extendable in the future, most of the user's details are stored within a Hashtable. Information within the Hashtable can then be accessed using the respective Hashtable.get() method.

Currently the following public attributes are stored (these are the keys for the Hashtable as well):

Example of accessing the data:

User u = clientInstance.GetUser();
String Nickname = (String) (u.GetAttributes()).get("Nickname");

 


Method Summary
 java.util.Hashtable GetAttributes()
           
 java.lang.String[][] GetExpertise()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

GetAttributes

public java.util.Hashtable GetAttributes()

This method returns a Hashtable that contains the attributes relating to the current user. Hashtable's Get() method can be used to access the data that is stored within it, as discussed above.


GetExpertise

public java.lang.String[][] GetExpertise()

This method returns a two dimensional String array containing details of the current user's expertise.

[x][0] returns the the name of the expertise
[x][1] returns the users rating in this area