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  String avatar_url
           
protected  String blog
           
protected  String company
           
protected  String created_at
           
protected  String email
           
protected  int followers
           
protected  int followers_count
           
protected  int following
           
protected  int following_count
           
protected  String gravatar_id
           
protected  String html_url
           
protected  int id
           
protected  String location
           
protected  String login
           
protected  String name
           
protected  int public_gist_count
           
protected  int public_gists
           
protected  int public_repo_count
           
protected  int public_repos
           
 
Constructor Summary
GHPerson()
           
 
Method Summary
 String getBlog()
          Gets the blog URL of this user.
 String getCompany()
          Gets the company name of this user, like "Sun Microsystems, Inc."
 String getCreatedAt()
           
 String getEmail()
          Gets the e-mail address of the user.
 int getFollowersCount()
           
 int getFollowingCount()
           
 String getGravatarId()
          Gravatar ID of this user, like 0cb9832a01c22c083390f3c5dcb64105
 int getId()
          What appears to be a GitHub internal unique number that identifies this user.
 String getLocation()
          Gets the location of this user, like "Santa Clara, California"
 String getLogin()
          Gets the login ID of this user, like 'kohsuke'
 String getName()
          Gets the human-readable name of the user, like "Kohsuke Kawaguchi"
 int getPublicGistCount()
           
 int getPublicRepoCount()
           
 Map<String,GHRepository> getRepositories()
          Gets the repositories this user owns.
 GHRepository getRepository(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

login

protected String login

location

protected String location

blog

protected String blog

email

protected String email

name

protected String name

created_at

protected String created_at

company

protected String company

id

protected int id

gravatar_id

protected String gravatar_id

public_gist_count

protected int public_gist_count

public_repo_count

protected int public_repo_count

followers_count

protected int followers_count

following_count

protected int following_count

avatar_url

protected String avatar_url

html_url

protected String html_url

followers

protected int followers

following

protected int following

public_repos

protected int public_repos

public_gists

protected int public_gists
Constructor Detail

GHPerson

public GHPerson()
Method Detail

getRepositories

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

Throws:
IOException

getRepository

public GHRepository getRepository(String name)
                           throws IOException
Returns:
null if the repository was not found
Throws:
IOException

getGravatarId

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


getLogin

public String getLogin()
Gets the login ID of this user, like 'kohsuke'


getName

public String getName()
Gets the human-readable name of the user, like "Kohsuke Kawaguchi"


getCompany

public String getCompany()
Gets the company name of this user, like "Sun Microsystems, Inc."


getLocation

public String getLocation()
Gets the location of this user, like "Santa Clara, California"


getCreatedAt

public String getCreatedAt()

getBlog

public String getBlog()
Gets the blog URL of this user.


getEmail

public String getEmail()
Gets the e-mail address of the user.


getPublicGistCount

public int getPublicGistCount()

getPublicRepoCount

public int getPublicRepoCount()

getFollowingCount

public int getFollowingCount()

getId

public int getId()
What appears to be a GitHub internal unique number that identifies this user.


getFollowersCount

public int getFollowersCount()


Copyright © 2012. All Rights Reserved.