use of net.jforum.entities.Smilie in project jforum2 by rafaelsteil.
the class SmiliesRepository method getSmilies.
public static List getSmilies() {
List list = (List) cache.get(FQN, ENTRIES);
if (!contexted) {
String forumLink = SystemGlobals.getValue(ConfigKeys.FORUM_LINK);
for (Iterator iter = list.iterator(); iter.hasNext(); ) {
Smilie s = (Smilie) iter.next();
s.setUrl(s.getUrl().replaceAll("#CONTEXT#", forumLink).replaceAll("\\\\", ""));
}
cache.add(FQN, ENTRIES, list);
contexted = true;
}
return list;
}
use of net.jforum.entities.Smilie in project jforum2 by rafaelsteil.
the class GenericSmilieDAO method getSmilie.
private Smilie getSmilie(ResultSet rs) throws SQLException {
Smilie s = new Smilie();
s.setId(rs.getInt("smilie_id"));
s.setCode(rs.getString("code"));
s.setUrl(rs.getString("url"));
s.setDiskName(rs.getString("disk_name"));
return s;
}
Aggregations