public class CollaboratorService extends GitHubService
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_PREVIEW_DRAX, ACCEPT_PREVIEW_IRONMAN, ACCEPT_PREVIEW_LOKI, ACCEPT_RAW, ACCEPT_TEXT, client| Constructor and Description |
|---|
CollaboratorService()
Create collaborator service
|
CollaboratorService(GitHubClient client)
Create collaborator service
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCollaborator(IRepositoryIdProvider repository,
java.lang.String user)
Add given user as a collaborator on the given repository
|
protected java.lang.String |
createUpdateUri(IRepositoryIdProvider repository,
java.lang.String user)
Create URI for updating collaborators
|
java.util.List<User> |
getCollaborators(IRepositoryIdProvider repository)
Get collaborators for given repository
|
boolean |
isCollaborator(IRepositoryIdProvider repository,
java.lang.String user)
Is given user a collaborator on the given repository?
|
void |
removeCollaborator(IRepositoryIdProvider repository,
java.lang.String user)
Remove given user as a collaborator on the given repository
|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepositorypublic CollaboratorService()
public CollaboratorService(GitHubClient client)
client - public java.util.List<User> getCollaborators(IRepositoryIdProvider repository) throws java.io.IOException
repository - java.io.IOExceptionprotected java.lang.String createUpdateUri(IRepositoryIdProvider repository, java.lang.String user)
repository - user - public boolean isCollaborator(IRepositoryIdProvider repository, java.lang.String user) throws java.io.IOException
repository - user - java.io.IOExceptionpublic void addCollaborator(IRepositoryIdProvider repository, java.lang.String user) throws java.io.IOException
repository - user - java.io.IOExceptionpublic void removeCollaborator(IRepositoryIdProvider repository, java.lang.String user) throws java.io.IOException
repository - user - java.io.IOException