org.eclipse.ecf.core.user
Class User
java.lang.Object
  
org.eclipse.ecf.core.user.User
- All Implemented Interfaces: 
 - java.io.Serializable, org.eclipse.core.runtime.IAdaptable, IIdentifiable, IUser
 
public class User
- extends java.lang.Object
- implements IUser
  
- See Also:
 - Serialized Form
 
| 
Field Summary | 
protected  ID | 
id
 
            | 
protected  java.lang.String | 
name
 
            | 
protected  java.lang.String | 
nickname
 
            | 
protected  java.util.Map | 
properties
 
            | 
 
| 
Constructor Summary | 
User(ID userID)
 
            | 
User(ID userID,
     java.lang.String name)
 
            | 
User(ID userID,
     java.lang.String name,
     java.util.Map properties)
 
            | 
User(ID userID,
     java.lang.String name,
     java.lang.String nickname,
     java.util.Map properties)
 
            | 
 
| 
Method Summary | 
 java.lang.Object | 
getAdapter(java.lang.Class adapter)
 
            | 
 ID | 
getID()
 
          Return the ID for this 'identifiable' object. | 
 java.lang.String | 
getName()
 
          Get basic name for user. | 
 java.lang.String | 
getNickname()
 
          Get nick name for user. | 
 java.util.Map | 
getProperties()
 
          Get map of properties associated with this user. | 
 void | 
setName(java.lang.String name)
 
            | 
 void | 
setNickname(java.lang.String nickname)
 
            | 
 java.lang.String | 
toString()
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
id
protected ID id
name
protected java.lang.String name
nickname
protected java.lang.String nickname
properties
protected java.util.Map properties
User
public User(ID userID)
User
public User(ID userID,
            java.lang.String name)
User
public User(ID userID,
            java.lang.String name,
            java.util.Map properties)
User
public User(ID userID,
            java.lang.String name,
            java.lang.String nickname,
            java.util.Map properties)
getProperties
public java.util.Map getProperties()
- Description copied from interface: 
IUser 
- Get map of properties associated with this user. May be 
null.
- Specified by:
 getProperties in interface IUser
 
- Returns:
 - Map
 
 
 
getID
public ID getID()
- Description copied from interface: 
IIdentifiable 
- Return the ID for this 'identifiable' object. The returned ID should be
 unique within its namespace.  May return 
null.
- Specified by:
 getID in interface IIdentifiable
 
- Returns:
 - the ID for this identifiable object.  May return 
null. 
 
 
getName
public java.lang.String getName()
- Description copied from interface: 
IUser 
- Get basic name for user. Will not return 
null
- Specified by:
 getName in interface IUser
 
- Returns:
 - String
 
 
 
getNickname
public java.lang.String getNickname()
- Description copied from interface: 
IUser 
- Get nick name for user.
- Specified by:
 getNickname in interface IUser
 
- Returns:
 - String the user's nickname. May be 
null if user
         has no nickname. 
 
 
setName
public void setName(java.lang.String name)
 
 
setNickname
public void setNickname(java.lang.String nickname)
 
 
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
 getAdapter in interface org.eclipse.core.runtime.IAdaptable
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object