@Controller public class TwitterController extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected OAuthTwitterConfig |
oAuthTwitterConfig |
protected org.scribe.oauth.OAuthService |
service |
| Constructor and Description |
|---|
TwitterController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
isOAuthEnabled() |
org.springframework.web.portlet.ModelAndView |
renderAboutView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
org.springframework.web.portlet.ModelAndView |
renderEditView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
org.springframework.web.portlet.ModelAndView |
renderHelpView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
protected org.springframework.web.portlet.ModelAndView |
renderView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
void |
setTwitterPin(String twitterAccessToken,
String twitterAccessTokenSecret,
String twitterPin,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
void |
setTwitterTweetsNumber(String twitterTweetsNumber,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
void |
setTwitterUsername(String twitterUsername,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
@Autowired protected OAuthTwitterConfig oAuthTwitterConfig
protected org.scribe.oauth.OAuthService service
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic boolean isOAuthEnabled()
@RequestMapping(value="VIEW")
protected org.springframework.web.portlet.ModelAndView renderView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws Exception
Exception@RequestMapping(value="EDIT")
public org.springframework.web.portlet.ModelAndView renderEditView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws Exception
Exception@RequestMapping(value="EDIT",
params="action=setTwitterUsername")
public void setTwitterUsername(@RequestParam(value="twitterUsername",required=true)
String twitterUsername,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
Exception@RequestMapping(value="EDIT",
params="action=setTwitterPin")
public void setTwitterPin(@RequestParam(value="twitterAccessToken",required=true)
String twitterAccessToken,
@RequestParam(value="twitterAccessTokenSecret",required=true)
String twitterAccessTokenSecret,
@RequestParam(value="twitterPin",required=true)
String twitterPin,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
Exception@RequestMapping(value="EDIT",
params="action=setTwitterTweetsNumber")
public void setTwitterTweetsNumber(@RequestParam(value="twitterTweetsNumber",required=true)
String twitterTweetsNumber,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
Exception@RequestMapping(value="ABOUT")
public org.springframework.web.portlet.ModelAndView renderAboutView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws Exception
ExceptionCopyright © 2014 Jasig. All Rights Reserved.