public class GHTeam
extends java.lang.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(GHRepository r,
GHOrganization.Permission permission) |
void |
add(GHUser u)
Adds a member to the team.
|
void |
delete()
Deletes this team.
|
int |
getId() |
java.util.Set<GHUser> |
getMembers() |
java.lang.String |
getName() |
GHOrganization |
getOrganization() |
java.lang.String |
getPermission() |
java.util.Map<java.lang.String,GHRepository> |
getRepositories() |
java.lang.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 java.lang.String getName()
public java.lang.String getPermission()
public java.lang.String getSlug()
public int getId()
public PagedIterable<GHUser> listMembers() throws java.io.IOException
java.io.IOExceptionpublic java.util.Set<GHUser> getMembers() throws java.io.IOException
java.io.IOExceptionpublic boolean hasMember(GHUser user)
public java.util.Map<java.lang.String,GHRepository> getRepositories() throws java.io.IOException
java.io.IOExceptionpublic PagedIterable<GHRepository> listRepositories()
public void add(GHUser u) throws java.io.IOException
java.io.IOExceptionpublic void remove(GHUser u) throws java.io.IOException
java.io.IOExceptionpublic void add(GHRepository r) throws java.io.IOException
java.io.IOExceptionpublic void add(GHRepository r, GHOrganization.Permission permission) throws java.io.IOException
java.io.IOExceptionpublic void remove(GHRepository r) throws java.io.IOException
java.io.IOExceptionpublic void delete()
throws java.io.IOException
java.io.IOExceptionpublic GHOrganization getOrganization()
Copyright © 2016. All Rights Reserved.