org.kohsuke.github
Class GHPerson

java.lang.Object
  extended by org.kohsuke.github.GHPerson
Direct Known Subclasses:
GHOrganization, GHUser

public abstract class GHPerson
extends Object

Common part of GHUser and GHOrganization.

Author:
Kohsuke Kawaguchi

Field Summary
protected  int following_count
           
protected  String gravatar_id
           
protected  int id
           
protected  String login
           
protected  int public_gist_count
           
protected  int public_repo_count
           
 
Constructor Summary
GHPerson()
           
 
Method Summary
protected  GHRepository fetchRepository(String name)
           
 String getGravatarId()
          Gravatar ID of this user, like 0cb9832a01c22c083390f3c5dcb64105
 String getLogin()
           
 Map<String,GHRepository> getRepositories()
          Gets the repositories this user owns.
 GHRepository getRepository(String name)
           
protected  GHRepository refreshRepository(String name)
          Fetches the repository of the given name from GitHub, and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gravatar_id

protected String gravatar_id

login

protected String login

public_gist_count

protected int public_gist_count

public_repo_count

protected int public_repo_count

following_count

protected int following_count

id

protected int id
Constructor Detail

GHPerson

public GHPerson()
Method Detail

getRepositories

public Map<String,GHRepository> getRepositories()
                                         throws IOException
Gets the repositories this user owns.

Throws:
IOException

refreshRepository

protected GHRepository refreshRepository(String name)
                                  throws IOException
Fetches the repository of the given name from GitHub, and return it.

Throws:
IOException

fetchRepository

protected GHRepository fetchRepository(String name)
                                throws IOException
Throws:
IOException

getRepository

public GHRepository getRepository(String name)
                           throws IOException
Throws:
IOException

getGravatarId

public String getGravatarId()
Gravatar ID of this user, like 0cb9832a01c22c083390f3c5dcb64105


getLogin

public String getLogin()


Copyright © 2011. All Rights Reserved.