org.kohsuke.jnt
Class JNMyself

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

public class JNMyself
extends JNUser

The current logged-in user in java.net.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Method Summary
 Set<JNProject> getMyProjects()
          Set of JNProject to which the current user belongs.
 Collection<JNProject> getProjects()
          The same as getMyProjects().
 
Methods inherited from class org.kohsuke.jnt.JNUser
compareTo, equals, getEmailAddress, getId, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getMyProjects

public final Set<JNProject> getMyProjects()
                                   throws ProcessingException
Set of JNProject to which the current user belongs.

Returns:
non-null (but possibly empty) set. The set is read-only.
Throws:
ProcessingException

getProjects

public Collection<JNProject> getProjects()
                                  throws ProcessingException
The same as getMyProjects().

Overrides:
getProjects in class JNUser
Throws:
ProcessingException


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