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()
Deprecated.
use
listMembers() |
List<GHPullRequest> |
getPullRequests()
Gets all the open pull requests in this organizataion.
|
List<GHRepository> |
getRepositoriesWithOpenPullRequests()
List up repositories that has some open pull requests.
|
GHTeam |
getTeamByName(String name)
Finds a team that has the given name in its
GHTeam.getName() |
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.
|
PagedIterable<GHEventInfo> |
listEvents()
Lists events performed by a user (this includes private events if the caller is authenticated.
|
PagedIterable<GHUser> |
listMembers()
All the members of this organization.
|
PagedIterable<GHUser> |
listMembersWithFilter(String filter) |
PagedIterable<GHUser> |
listPublicMembers()
All the public members of this organization.
|
PagedIterable<GHRepository> |
listRepositories(int pageSize)
Lists up all the repositories using the specified page size.
|
PagedIterable<GHTeam> |
listTeams()
List up all the teams.
|
void |
publicize(GHUser u)
Publicizes the membership.
|
void |
remove(GHUser user)
Remove a member of the organisation - which will remove them from
all teams, and remove their access to the organization’s repositories.
|
getAvatarUrl, getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getHtmlUrl, getId, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository, iterateRepositories, listRepositories, 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 PagedIterable<GHTeam> listTeams() throws IOException
IOExceptionpublic GHTeam getTeamByName(String name) throws IOException
GHTeam.getName()IOExceptionpublic boolean hasMember(GHUser user)
public void remove(GHUser user) throws IOException
IOExceptionpublic boolean hasPublicMember(GHUser user)
public void publicize(GHUser u) throws IOException
IOExceptionpublic List<GHUser> getMembers() throws IOException
listMembers()IOExceptionpublic PagedIterable<GHUser> listMembers() throws IOException
IOExceptionpublic PagedIterable<GHUser> listPublicMembers() throws IOException
IOExceptionpublic PagedIterable<GHUser> listMembersWithFilter(String filter) 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
IOExceptionpublic PagedIterable<GHEventInfo> listEvents() throws IOException
listEvents in class GHPersonIOExceptionpublic PagedIterable<GHRepository> listRepositories(int pageSize)
listRepositories in class GHPersonpageSize - size for each page of items returned by GitHub. Maximum page size is 100.
Unlike GHPerson.getRepositories(), this does not wait until all the repositories are returned.Copyright © 2014. All rights reserved.