public class GHTeam extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHTeam.Role
Member's role in a team
|
| 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(GHRepository r,
GHOrganization.Permission permission) |
void |
add(GHUser u)
Adds a member to the team.
|
void |
add(GHUser user,
GHTeam.Role role)
Adds a member to the team
The user will be invited to the organization if required.
|
void |
delete()
Deletes this team.
|
int |
getId() |
Set<GHUser> |
getMembers() |
String |
getName() |
GHOrganization |
getOrganization() |
String |
getPermission() |
Map<String,GHRepository> |
getRepositories() |
String |
getSlug() |
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 String getSlug()
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 add(GHUser user, GHTeam.Role role) throws IOException
user - github userrole - role for the new memberIOExceptionpublic void remove(GHUser u) throws IOException
IOExceptionpublic void add(GHRepository r) throws IOException
IOExceptionpublic void add(GHRepository r, GHOrganization.Permission permission) throws IOException
IOExceptionpublic void remove(GHRepository r) throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic GHOrganization getOrganization()
Copyright © 2018. All rights reserved.