|
||||||||||
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.OrganizationService
public class OrganizationService
Organization service class
Field Summary |
---|
Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_TEXT, client |
Constructor Summary | |
---|---|
OrganizationService()
Create organization service |
|
OrganizationService(GitHubClient client)
Create organization service |
Method Summary | |
---|---|
protected PagedRequest<User> |
createOrgRequest(String user,
int start,
int size)
Create org request |
User |
editOrganization(User organization)
Edit given organization |
List<User> |
getMembers(String organization)
Get members of organization |
User |
getOrganization(String name)
Get organization with the given name |
List<User> |
getOrganizations()
Get organizations that the currently authenticated user is a member of |
List<User> |
getOrganizations(String user)
Get organizations that the given user is a member of |
List<User> |
getPublicMembers(String organization)
Get public members of organization |
void |
hideMembership(String organization,
String user)
Conceal membership of given user in given organization |
boolean |
isMember(String organization,
String user)
Check if the given user is a member of the given organization |
boolean |
isPublicMember(String organization,
String user)
Check if the given user is a public member of the given organization |
void |
removeMember(String organization,
String user)
Remove the given member from the given organization |
void |
showMembership(String organization,
String user)
Publicize membership of given user in given organization |
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 OrganizationService()
public OrganizationService(GitHubClient client)
client
- Method Detail |
---|
protected PagedRequest<User> createOrgRequest(String user, int start, int size)
user
- start
- size
-
public List<User> getOrganizations() throws IOException
IOException
public List<User> getOrganizations(String user) throws IOException
user
-
IOException
public User getOrganization(String name) throws IOException
name
-
IOException
public User editOrganization(User organization) throws IOException
organization
-
IOException
public List<User> getMembers(String organization) throws IOException
organization
-
IOException
public List<User> getPublicMembers(String organization) throws IOException
organization
-
IOException
public boolean isMember(String organization, String user) throws IOException
organization
- user
-
IOException
public boolean isPublicMember(String organization, String user) throws IOException
organization
- user
-
IOException
public void showMembership(String organization, String user) throws IOException
organization
- user
-
IOException
public void hideMembership(String organization, String user) throws IOException
organization
- user
-
IOException
public void removeMember(String organization, String user) throws IOException
organization
- user
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |