|
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.GistTemplate
public class GistTemplate
Gist template implementation.
| Constructor Summary | |
|---|---|
GistTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
buildUri(java.lang.String path)
|
GitHubGist |
getGist(java.lang.String id)
Returns the gist with the given ID. |
GitHubComment |
getGistComment(java.lang.Long id)
Public operation to return a gist comment. |
java.util.List<GitHubComment> |
getGistComments(java.lang.String id)
Public operation to return the comments on a given gist. |
java.util.List<GitHubGist> |
getGists()
If authenticated, this method returns the current user's gists. |
java.util.List<GitHubGist> |
getPublicGists()
Public operation to return all public gists. |
java.util.List<GitHubGist> |
getStarredGists()
Returns the authenticated user's starred gists. |
java.util.List<GitHubGist> |
getUserGists(java.lang.String user)
Public operation to return the given user's public gists. |
protected void |
requireAuthorization()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GistTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorizedForUser)
restTemplate - isAuthorizedForUser - | Method Detail |
|---|
public java.util.List<GitHubGist> getUserGists(java.lang.String user)
GistOperations
getUserGists in interface GistOperationsuser - GitHub user
public java.util.List<GitHubGist> getGists()
GistOperationsIf authenticated, this method returns the current user's gists. Otherwise it returns all public gists.
getGists in interface GistOperationspublic java.util.List<GitHubGist> getPublicGists()
GistOperations
getPublicGists in interface GistOperationspublic java.util.List<GitHubGist> getStarredGists()
GistOperations
getStarredGists in interface GistOperationspublic GitHubGist getGist(java.lang.String id)
GistOperations
getGist in interface GistOperationsid - gist ID
public java.util.List<GitHubComment> getGistComments(java.lang.String id)
GistOperations
getGistComments in interface GistOperationsid - gist ID
public GitHubComment getGistComment(java.lang.Long id)
GistOperations
getGistComment in interface GistOperationsid - comment ID
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 | ||||||||