1 package org.springframework.security.oauth.examples.sparklr; 2 3 /** 4 * Photo service user information - added to enable user information to be available to Spring Social client 5 * 6 * @author Michael Lavelle 7 */ 8 public class PhotoServiceUser { 9 10 private String username; 11 private String name; 12 13 /** 14 * Create a new PhotoServiceUser 15 * 16 * @param username The unique username for the user 17 * @param name The name of the user 18 */ 19 public PhotoServiceUser(String username,String name) 20 { 21 this.username = username; 22 this.name = name; 23 } 24 25 /** 26 * The unique username for the user 27 * 28 * @return username of the user 29 */ 30 public String getUsername() { 31 return username; 32 } 33 34 /** 35 * The name of the user 36 * 37 * @return name of the user 38 */ 39 public String getName() { 40 return name; 41 } 42 43 44 45 }