public class GHOrganization extends GHPerson
| Modifier and Type | Class and Description |
|---|---|
static class |
GHOrganization.Permission |
avatar_url, blog, company, created_at, email, followers, following, gravatar_id, html_url, id, location, login, name, public_gists, public_repos, url| Constructor and Description |
|---|
GHOrganization() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Map<String,GHTeam> |
getTeams()
Teams by their names.
|
boolean |
hasMember(GHUser user)
Checks if this organization has the specified user as a member.
|
boolean |
hasPublicMember(GHUser user)
Checks if this organization has the specified user as a public member.
|
void |
publicize(GHUser u)
Publicizes the membership.
|
getAvatarUrl, getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getId, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository, iterateRepositories, populatepublic GHRepository createRepository(String name, String description, String homepage, String team, boolean isPublic) throws IOException
IOExceptionpublic GHRepository createRepository(String name, String description, String homepage, GHTeam team, boolean isPublic) throws IOException
IOExceptionpublic Map<String,GHTeam> getTeams() throws IOException
IOExceptionpublic boolean hasMember(GHUser user)
public boolean hasPublicMember(GHUser user)
public void publicize(GHUser u) throws IOException
IOExceptionpublic List<GHUser> getMembers() throws IOException
IOExceptionpublic void conceal(GHUser u) throws IOException
IOExceptionpublic GHTeam createTeam(String name, GHOrganization.Permission p, Collection<GHRepository> repositories) throws IOException
IOExceptionpublic GHTeam createTeam(String name, GHOrganization.Permission p, GHRepository... repositories) throws IOException
IOExceptionpublic List<GHRepository> getRepositoriesWithOpenPullRequests() throws IOException
IOExceptionpublic List<GHPullRequest> getPullRequests() throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.