org.kohsuke.github
Class GHOrganization

java.lang.Object
  extended by org.kohsuke.github.GHPerson
      extended by org.kohsuke.github.GHOrganization

public class GHOrganization
extends GHPerson

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class GHOrganization.Permission
           
 
Field Summary
 
Fields inherited from class org.kohsuke.github.GHPerson
avatar_url, blog, company, created_at, email, followers, followers_count, following, following_count, gravatar_id, html_url, id, location, login, name, public_gist_count, public_gists, public_repo_count, public_repos
 
Constructor Summary
GHOrganization()
           
 
Method Summary
 void conceal(GHUser u)
          Conceals the membership.
 GHRepository createRepository(String name, String description, String homepage, GHTeam team, boolean isPublic)
           
 GHRepository createRepository(String name, String description, String homepage, String team, boolean isPublic)
          Creates a new repository.
 GHTeam createTeam(String name, GHOrganization.Permission p, Collection<GHRepository> repositories)
          Creates a new team and assigns the repositories.
 GHTeam createTeam(String name, GHOrganization.Permission p, GHRepository... repositories)
           
 List<GHUser> getMembers()
          All the members of this organization.
 List<GHPullRequest> getPullRequests()
          Gets all the open pull requests in this organizataion.
 List<GHRepository> getRepositoriesWithOpenPullRequests()
          List up repositories that has some open pull requests.
 GHRepository getRepository(String name)
           
 Map<String,GHTeam> getTeams()
          Teams by their names.
 void publicize(GHUser u)
          Publicizes the membership.
 
Methods inherited from class org.kohsuke.github.GHPerson
getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getId, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHOrganization

public GHOrganization()
Method Detail

createRepository

public GHRepository createRepository(String name,
                                     String description,
                                     String homepage,
                                     String team,
                                     boolean isPublic)
                              throws IOException
Creates a new repository.

Returns:
Newly created repository.
Throws:
IOException

createRepository

public GHRepository createRepository(String name,
                                     String description,
                                     String homepage,
                                     GHTeam team,
                                     boolean isPublic)
                              throws IOException
Throws:
IOException

getTeams

public Map<String,GHTeam> getTeams()
                            throws IOException
Teams by their names.

Throws:
IOException

getRepository

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

publicize

public void publicize(GHUser u)
               throws IOException
Publicizes the membership.

Throws:
IOException

getMembers

public List<GHUser> getMembers()
                        throws IOException
All the members of this organization.

Throws:
IOException

conceal

public void conceal(GHUser u)
             throws IOException
Conceals the membership.

Throws:
IOException

createTeam

public GHTeam createTeam(String name,
                         GHOrganization.Permission p,
                         Collection<GHRepository> repositories)
                  throws IOException
Creates a new team and assigns the repositories.

Throws:
IOException

createTeam

public GHTeam createTeam(String name,
                         GHOrganization.Permission p,
                         GHRepository... repositories)
                  throws IOException
Throws:
IOException

getRepositoriesWithOpenPullRequests

public List<GHRepository> getRepositoriesWithOpenPullRequests()
                                                       throws IOException
List up repositories that has some open pull requests.

Throws:
IOException

getPullRequests

public List<GHPullRequest> getPullRequests()
                                    throws IOException
Gets all the open pull requests in this organizataion.

Throws:
IOException


Copyright © 2012. All Rights Reserved.