|
spring-social-github | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.github.api.impl.UserTemplate
public class UserTemplate
User template implementation.
| Constructor Summary | |
|---|---|
UserTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
buildUri(java.lang.String path)
|
java.util.List<GitHubUser> |
getFollowers(java.lang.String user)
Public operation to return a given user's followers. |
java.util.List<GitHubUser> |
getFollowing(java.lang.String user)
Public operation to return the users that a given user is following. |
java.lang.String |
getProfileId()
Retrieves the user's GitHub profile ID. |
java.lang.String |
getProfileUrl()
Retrieve the URL to the user's GitHub profile. |
GitHubUserProfile |
getUserProfile()
Retrieves the user's GitHub profile details. |
protected void |
requireAuthorization()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
restTemplate - isAuthorizedForUser - | Method Detail |
|---|
public java.lang.String getProfileId()
UserOperations
getProfileId in interface UserOperationspublic GitHubUserProfile getUserProfile()
UserOperations
getUserProfile in interface UserOperationspublic java.lang.String getProfileUrl()
UserOperations
getProfileUrl in interface UserOperationspublic java.util.List<GitHubUser> getFollowers(java.lang.String user)
UserOperations
getFollowers in interface UserOperationsuser - GitHub user
public java.util.List<GitHubUser> getFollowing(java.lang.String user)
UserOperations
getFollowing in interface UserOperationsuser - GitHub user
protected void requireAuthorization()
protected java.lang.String buildUri(java.lang.String path)
|
spring-social-github | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||