org.kohsuke.jnt
Class JNUser

java.lang.Object
  extended by org.kohsuke.jnt.JNUser
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
JNMyself

public class JNUser
extends Object
implements Comparable

An user of java.net.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getEmailAddress()
          Returns the e-mail address of the user.
 int getId()
          Gets the user id, which is what the system uses to uniquely identify each user.
 String getName()
          Obtains the user name.
 Collection<JNProject> getProjects()
          Gets the projects to which the user belongs.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public final String getName()
Obtains the user name.

Returns:
non-null valid string.

getEmailAddress

public final String getEmailAddress()
Returns the e-mail address of the user.


getId

public int getId()
          throws ProcessingException
Gets the user id, which is what the system uses to uniquely identify each user.

Accessing this property requires a domain admin privilege.

Throws:
ProcessingException

getProjects

public Collection<JNProject> getProjects()
                                  throws ProcessingException
Gets the projects to which the user belongs.

Accessing this property requires a domain admin privilege.

Throws:
ProcessingException

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2008 Kohsuke Kawaguchi. All Rights Reserved.