org.springframework.security.oauth.examples.sparklr.impl
Class PhotoServiceImpl

java.lang.Object
  extended by org.springframework.security.oauth.examples.sparklr.impl.PhotoServiceImpl
All Implemented Interfaces:
PhotoService

public class PhotoServiceImpl
extends Object
implements PhotoService

Basic implementation for the photo service.

Author:
Ryan Heaton

Constructor Summary
PhotoServiceImpl()
           
 
Method Summary
 List<PhotoInfo> getPhotos()
           
 Collection<PhotoInfo> getPhotosForCurrentUser()
          Load the photos for the current user.
 InputStream loadPhoto(String id)
          Load a photo by id.
 void setPhotos(List<PhotoInfo> photos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhotoServiceImpl

public PhotoServiceImpl()
Method Detail

getPhotosForCurrentUser

public Collection<PhotoInfo> getPhotosForCurrentUser()
Description copied from interface: PhotoService
Load the photos for the current user.

Specified by:
getPhotosForCurrentUser in interface PhotoService
Returns:
The photos for the current user.

loadPhoto

public InputStream loadPhoto(String id)
Description copied from interface: PhotoService
Load a photo by id.

Specified by:
loadPhoto in interface PhotoService
Parameters:
id - The id of the photo.
Returns:
The photo that was read.

getPhotos

public List<PhotoInfo> getPhotos()

setPhotos

public void setPhotos(List<PhotoInfo> photos)


Copyright © 2012. All Rights Reserved.