org.springframework.security.oauth.examples.tonr.impl
Class SparklrServiceImpl

java.lang.Object
  extended by org.springframework.security.oauth.examples.tonr.impl.SparklrServiceImpl
All Implemented Interfaces:
SparklrService

public class SparklrServiceImpl
extends Object
implements SparklrService

Author:
Ryan Heaton

Constructor Summary
SparklrServiceImpl()
           
 
Method Summary
 List<String> getSparklrPhotoIds()
          Get the list of Sparklr photo ids for the current user.
 String getSparklrPhotoListURL()
           
 String getSparklrPhotoURLPattern()
           
 OAuthRestTemplate getSparklrRestTemplate()
           
 InputStream loadSparklrPhoto(String id)
          Loads the Sparklr photo for the current user.
 void setSparklrPhotoListURL(String sparklrPhotoListURL)
           
 void setSparklrPhotoURLPattern(String sparklrPhotoURLPattern)
           
 void setSparklrRestTemplate(OAuthRestTemplate sparklrRestTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparklrServiceImpl

public SparklrServiceImpl()
Method Detail

getSparklrPhotoIds

public List<String> getSparklrPhotoIds()
                                throws SparklrException
Description copied from interface: SparklrService
Get the list of Sparklr photo ids for the current user.

Specified by:
getSparklrPhotoIds in interface SparklrService
Returns:
The list of photo ids for the current user.
Throws:
SparklrException

loadSparklrPhoto

public InputStream loadSparklrPhoto(String id)
                             throws SparklrException
Description copied from interface: SparklrService
Loads the Sparklr photo for the current user.

Specified by:
loadSparklrPhoto in interface SparklrService
Parameters:
id - the id or the photo.
Returns:
The sparklr photo.
Throws:
SparklrException

getSparklrPhotoURLPattern

public String getSparklrPhotoURLPattern()

setSparklrPhotoURLPattern

public void setSparklrPhotoURLPattern(String sparklrPhotoURLPattern)

getSparklrPhotoListURL

public String getSparklrPhotoListURL()

setSparklrPhotoListURL

public void setSparklrPhotoListURL(String sparklrPhotoListURL)

getSparklrRestTemplate

public OAuthRestTemplate getSparklrRestTemplate()

setSparklrRestTemplate

public void setSparklrRestTemplate(OAuthRestTemplate sparklrRestTemplate)


Copyright © 2012. All Rights Reserved.