Skip to content

Instantly share code, notes, and snippets.

@mnutt
Created June 18, 2009 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnutt/131965 to your computer and use it in GitHub Desktop.
Save mnutt/131965 to your computer and use it in GitHub Desktop.
public HashMap<String, Object> list(HashMap<String, String> options) {
List<HashMap<String, String>> items = new ArrayList<HashMap<String, String>>();
for(LocalFileItem file: managedList.getModel()) {
HashMap<String, String> item = new HashMap<String, String>();
item.put("file_name", file.getFileName());
item.put("sha1", file.getUrn().toString());
items.add(item);
}
response.put("items", items);
return response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment