1 package org.springframework.security.oauth.examples.tonr; 2 3 import java.io.InputStream; 4 import java.util.List; 5 6 /** 7 * @author Ryan Heaton 8 */ 9 public interface SparklrService { 10 11 /** 12 * Get the list of Sparklr photo ids for the current user. 13 * 14 * @return The list of photo ids for the current user. 15 */ 16 List<String> getSparklrPhotoIds() throws SparklrException; 17 18 /** 19 * Loads the Sparklr photo for the current user. 20 * 21 * @param id the id or the photo. 22 * @return The sparklr photo. 23 */ 24 InputStream loadSparklrPhoto(String id) throws SparklrException; 25 26 /** 27 * @return a message 28 */ 29 String getTrustedMessage(); 30 31 }