use of it.vige.rubia.auth.SecureActionForum in project rubia-forums by flashboss.
the class ViewMyForumsBase method getTopicsLastPosts.
/**
* @return a map of the last posts and respective topics
*/
@SecureActionForum
@Interceptors(AuthorizationListener.class)
public Map<Object, Object> getTopicsLastPosts() {
if (topicsLastPosts == null) {
try {
Collection<Topic> watched = getWatchedTopics();
if (watched != null) {
Set<Topic> temporaryContainer = new HashSet<Topic>(watched.size());
Iterator<Topic> it = watched.iterator();
while (it.hasNext()) {
Topic topic = it.next();
temporaryContainer.add(topic);
}
topicsLastPosts = getMyForumsModule().findLastPostsOfTopics(temporaryContainer);
}
} catch (Exception e) {
handleException(e);
}
}
return topicsLastPosts;
}
Aggregations