示例#1
0
  /**
   * build the list of photo id to send back to client
   *
   * @param photos the photos retrieved from database
   * @return list contains ids of the photos
   * @throws IOException
   */
  private List<String> buildImageStringList(List<Photo> photos) throws IOException {

    List<String> URIs = new ArrayList<String>();
    for (Photo photo : photos) {

      URIs.add(String.valueOf(photo.getId()));
    }
    return URIs;
  }