|
||||||||||
| 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.UserService
public class UserService
User service class.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
client |
| Constructor Summary | |
|---|---|
UserService()
Create user service |
|
UserService(GitHubClient client)
Create user service |
|
| Method Summary | |
|---|---|
void |
addEmail(String... emails)
Add one or more e-mail addresses to the currently authenticated user's account |
protected PagedRequest<User> |
createFollowersRequest(int start,
int size,
String user)
Create follower request |
protected PagedRequest<User> |
createFollowingRequest(int start,
int size,
String user)
Create following request |
Key |
createKey(Key key)
Create key for currently authenticated user |
void |
deleteKey(int id)
Delete key with given id |
Key |
editKey(Key key)
Edit key for currently authenticated user |
User |
editUser(User user)
Edit given user |
void |
follow(String user)
Follow the given user |
List<String> |
getEmails()
Get all e-mail addresses for the currently authenticated user |
List<User> |
getFollowers()
Get all followers of the currently authenticated user |
List<User> |
getFollowers(String user)
Get all followers of the given user |
List<User> |
getFollowing()
Get all users being followed by the currently authenticated user |
List<User> |
getFollowing(String user)
Get all users being followed by the given user |
Key |
getKey(int id)
Get key with given id |
List<Key> |
getKeys()
Get all public keys for currently authenticated user |
User |
getUser()
Get currently authenticated user |
User |
getUser(String login)
Get user with given login name |
boolean |
isFollowing(String user)
Check if the currently authenticated user is following the given user |
PageIterator<User> |
pageFollowers()
Page followers of the currently authenticated user |
PageIterator<User> |
pageFollowers(int size)
Page followers of the currently authenticated user |
PageIterator<User> |
pageFollowers(int start,
int size)
Page followers of the currently authenticated user |
PageIterator<User> |
pageFollowers(String user)
Page followers of the given user |
PageIterator<User> |
pageFollowers(String user,
int size)
Page followers of the given user |
PageIterator<User> |
pageFollowers(String user,
int start,
int size)
Page followers of the given user |
PageIterator<User> |
pageFollowing()
Page users being followed by the currently authenticated user |
PageIterator<User> |
pageFollowing(int size)
Page users being followed by the currently authenticated user |
PageIterator<User> |
pageFollowing(int start,
int size)
Page users being followed by the currently authenticated user |
PageIterator<User> |
pageFollowing(String user)
Page users being followed by the given user |
PageIterator<User> |
pageFollowing(String user,
int size)
Page users being followed by the given user |
PageIterator<User> |
pageFollowing(String user,
int start,
int size)
Page users being followed by the given user |
void |
removeEmail(String... emails)
Remove one or more e-mail addresses from the currently authenticated user's account |
void |
unfollow(String user)
Unfollow the given user |
| 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 UserService()
public UserService(GitHubClient client)
client - | Method Detail |
|---|
public User getUser(String login)
throws IOException
login -
IOException
public User getUser()
throws IOException
IOException
public User editUser(User user)
throws IOException
user -
IOException
protected PagedRequest<User> createFollowersRequest(int start,
int size,
String user)
start - size - user -
protected PagedRequest<User> createFollowingRequest(int start,
int size,
String user)
start - size - user -
public List<User> getFollowers()
throws IOException
IOExceptionpublic PageIterator<User> pageFollowers()
public PageIterator<User> pageFollowers(int size)
size -
public PageIterator<User> pageFollowers(int start,
int size)
start - size -
public List<User> getFollowers(String user)
throws IOException
user -
IOExceptionpublic PageIterator<User> pageFollowers(String user)
user -
public PageIterator<User> pageFollowers(String user,
int size)
size - user -
public PageIterator<User> pageFollowers(String user,
int start,
int size)
start - size - user -
public List<User> getFollowing()
throws IOException
IOExceptionpublic PageIterator<User> pageFollowing()
public PageIterator<User> pageFollowing(int size)
size -
public PageIterator<User> pageFollowing(int start,
int size)
start - size -
public List<User> getFollowing(String user)
throws IOException
user -
IOExceptionpublic PageIterator<User> pageFollowing(String user)
user -
public PageIterator<User> pageFollowing(String user,
int size)
user - size -
public PageIterator<User> pageFollowing(String user,
int start,
int size)
user - start - size -
public boolean isFollowing(String user)
throws IOException
user -
IOException
public void follow(String user)
throws IOException
user -
IOException
public void unfollow(String user)
throws IOException
user -
IOException
public List<String> getEmails()
throws IOException
IOException
public void addEmail(String... emails)
throws IOException
emails -
IOException
public void removeEmail(String... emails)
throws IOException
emails -
IOException
public List<Key> getKeys()
throws IOException
IOException
public Key getKey(int id)
throws IOException
id -
IOException
public Key createKey(Key key)
throws IOException
key -
IOException
public Key editKey(Key key)
throws IOException
key -
IOException
public void deleteKey(int id)
throws IOException
id -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||