public class GHOrganization extends GHPerson
| Modifier and Type | Class and Description |
|---|---|
static class |
GHOrganization.Permission |
avatar_url, blog, company, email, followers, following, gravatar_id, html_url, location, login, name, public_gists, public_reposcreated_at, id, updated_at, url| Constructor and Description |
|---|
GHOrganization() |
| Modifier and Type | Method and Description |
|---|---|
void |
conceal(GHUser u)
Conceals the membership.
|
GHRepository |
createRepository(java.lang.String name,
java.lang.String description,
java.lang.String homepage,
GHTeam team,
boolean isPublic) |
GHRepository |
createRepository(java.lang.String name,
java.lang.String description,
java.lang.String homepage,
java.lang.String team,
boolean isPublic)
Creates a new repository.
|
GHTeam |
createTeam(java.lang.String name,
GHOrganization.Permission p,
java.util.Collection<GHRepository> repositories)
Creates a new team and assigns the repositories.
|
GHTeam |
createTeam(java.lang.String name,
GHOrganization.Permission p,
GHRepository... repositories) |
java.util.List<GHUser> |
getMembers()
Deprecated.
use
listMembers() |
java.util.List<GHPullRequest> |
getPullRequests()
Gets all the open pull requests in this organizataion.
|
java.util.List<GHRepository> |
getRepositoriesWithOpenPullRequests()
List up repositories that has some open pull requests.
|
GHTeam |
getTeamByName(java.lang.String name)
Finds a team that has the given name in its
GHTeam.getName() |
java.util.Map<java.lang.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(java.lang.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, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository, getUpdatedAt, iterateRepositories, listRepositories, populatepublic GHRepository createRepository(java.lang.String name, java.lang.String description, java.lang.String homepage, java.lang.String team, boolean isPublic) throws java.io.IOException
java.io.IOExceptionpublic GHRepository createRepository(java.lang.String name, java.lang.String description, java.lang.String homepage, GHTeam team, boolean isPublic) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,GHTeam> getTeams() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHTeam> listTeams() throws java.io.IOException
java.io.IOExceptionpublic GHTeam getTeamByName(java.lang.String name) throws java.io.IOException
GHTeam.getName()java.io.IOExceptionpublic boolean hasMember(GHUser user)
public void remove(GHUser user) throws java.io.IOException
java.io.IOExceptionpublic boolean hasPublicMember(GHUser user)
public void publicize(GHUser u) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<GHUser> getMembers() throws java.io.IOException
listMembers()java.io.IOExceptionpublic PagedIterable<GHUser> listMembers() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHUser> listPublicMembers() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHUser> listMembersWithFilter(java.lang.String filter) throws java.io.IOException
java.io.IOExceptionpublic void conceal(GHUser u) throws java.io.IOException
java.io.IOExceptionpublic GHTeam createTeam(java.lang.String name, GHOrganization.Permission p, java.util.Collection<GHRepository> repositories) throws java.io.IOException
java.io.IOExceptionpublic GHTeam createTeam(java.lang.String name, GHOrganization.Permission p, GHRepository... repositories) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<GHRepository> getRepositoriesWithOpenPullRequests() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<GHPullRequest> getPullRequests() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHEventInfo> listEvents() throws java.io.IOException
listEvents in class GHPersonjava.io.IOExceptionpublic 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 © 2015. All Rights Reserved.