示例#1
0
 public static Profile getCurrentProfile() {
   String profileId = session.get("profile.id");
   Profile profile = Profile.findById(new Long(profileId));
   return profile;
 }
示例#2
0
 public static void getPicture(long id) {
   Profile profile = Profile.findById(id);
   response.setContentTypeIfNotSet(profile.picture.type());
   renderBinary(profile.picture.get());
 }