Created
April 15, 2009 17:20
-
-
Save kitplummer/95911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<NotificationFilter> processFiltersJson(String filters) { | |
List<NotificationFilter> fl = new ArrayList(); | |
fl = Collections.EMPTY_LIST; | |
JSONArray ja = new JSONArray().fromObject(filters); | |
for (Iterator i = ja.iterator(); i.hasNext();) { | |
JSONObject jf = (JSONObject)i.next(); | |
NotificationFilter nf = new NotificationFilter(); | |
nf.setEmail(jf.getString("email")); | |
nf.setFilterTypeCode(jf.getString("filterTypeCode")); | |
nf.setFilterText(jf.getString("filterText")); | |
fl.add(nf); | |
} | |
return fl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment