|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.CollaboratorService
public class CollaboratorService
Service for interacting with the collaborators on a GitHub repository
Field Summary |
---|
Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_TEXT, client |
Constructor Summary | |
---|---|
CollaboratorService()
Create collaborator service |
|
CollaboratorService(GitHubClient client)
Create collaborator service |
Method Summary | |
---|---|
void |
addCollaborator(IRepositoryIdProvider repository,
String user)
Add given user as a collaborator on the given repository |
protected String |
createUpdateUri(IRepositoryIdProvider repository,
String user)
Create URI for updating collaborators |
List<User> |
getCollaborators(IRepositoryIdProvider repository)
Get collaborators for given repository |
boolean |
isCollaborator(IRepositoryIdProvider repository,
String user)
Is given user a collaborator on the given repository? |
void |
removeCollaborator(IRepositoryIdProvider repository,
String user)
Remove given user as a collaborator on the given repository |
Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollaboratorService()
public CollaboratorService(GitHubClient client)
client
- Method Detail |
---|
public List<User> getCollaborators(IRepositoryIdProvider repository) throws IOException
repository
-
IOException
protected String createUpdateUri(IRepositoryIdProvider repository, String user)
repository
- user
-
public boolean isCollaborator(IRepositoryIdProvider repository, String user) throws IOException
repository
- user
-
IOException
public void addCollaborator(IRepositoryIdProvider repository, String user) throws IOException
repository
- user
-
IOException
public void removeCollaborator(IRepositoryIdProvider repository, String user) throws IOException
repository
- user
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |