public class GHTeam extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GHOrganization |
org |
| Constructor and Description |
|---|
GHTeam() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GHRepository r) |
void |
add(GHUser u)
Adds a member to the team.
|
int |
getId() |
Set<GHUser> |
getMembers() |
String |
getName() |
GHOrganization |
getOrganization() |
String |
getPermission() |
Map<String,GHRepository> |
getRepositories() |
boolean |
hasMember(GHUser user)
Checks if this team has the specified user as a member.
|
PagedIterable<GHUser> |
listMembers()
Retrieves the current members.
|
PagedIterable<GHRepository> |
listRepositories() |
void |
remove(GHRepository r) |
void |
remove(GHUser u)
Removes a member to the team.
|
protected GHOrganization org
public String getName()
public String getPermission()
public int getId()
public PagedIterable<GHUser> listMembers() throws IOException
IOExceptionpublic Set<GHUser> getMembers() throws IOException
IOExceptionpublic boolean hasMember(GHUser user)
public Map<String,GHRepository> getRepositories() throws IOException
IOExceptionpublic PagedIterable<GHRepository> listRepositories()
public void add(GHUser u) throws IOException
IOExceptionpublic void remove(GHUser u) throws IOException
IOExceptionpublic void add(GHRepository r) throws IOException
IOExceptionpublic void remove(GHRepository r) throws IOException
IOExceptionpublic GHOrganization getOrganization()
Copyright © 2016. All Rights Reserved.