org.springframework.security.oauth.examples.sparklr.impl
Class PhotoServiceImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhotoServiceImpl
public PhotoServiceImpl()
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.