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
following_count, gravatar_id, id, login, public_gist_count, public_repo_count
 
Constructor Summary
GHOrganization()
           
 
Method Summary
 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<GHPullRequest> getPullRequests()
          Gets all the open pull requests in this organizataion.
 List<GHRepository> getRepositoriesWithOpenPullRequests()
          List up repositories that has some open pull requests.
 Map<String,GHTeam> getTeams()
          Teams by their names.
 
Methods inherited from class org.kohsuke.github.GHPerson
fetchRepository, getGravatarId, getLogin, getRepositories, getRepository, refreshRepository
 
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

getTeams

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

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 © 2011. All Rights Reserved.