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()
Retrieves the current members.
|
String |
getName() |
String |
getPermission() |
Map<String,GHRepository> |
getRepositories() |
boolean |
hasMember(GHUser user)
Checks if this team has the specified user as a member.
|
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 Set<GHUser> getMembers() throws IOException
IOExceptionpublic boolean hasMember(GHUser user)
public Map<String,GHRepository> getRepositories() throws IOException
IOExceptionpublic 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
IOExceptionCopyright © 2014. All rights reserved.