return knownPosts;
}
+ public synchronized Set<String> loadKnownPostReplies() {
+ Set<String> knownPostReplies = new HashSet<String>();
+ int replyCounter = 0;
+ while (true) {
+ String knownReplyId = configuration
+ .getStringValue("KnownReplies/" + replyCounter++ + "/ID")
+ .getValue(null);
+ if (knownReplyId == null) {
+ break;
+ }
+ knownPostReplies.add(knownReplyId);
+ }
+ return knownPostReplies;
+ }
+
+ public synchronized Set<String> loadBookmarkedPosts() {
+ Set<String> bookmarkedPosts = new HashSet<String>();
+ int postCounter = 0;
+ while (true) {
+ String bookmarkedPostId = configuration
+ .getStringValue("Bookmarks/Post/" + postCounter++ + "/ID")
+ .getValue(null);
+ if (bookmarkedPostId == null) {
+ break;
+ }
+ bookmarkedPosts.add(bookmarkedPostId);
+ }
+ return bookmarkedPosts;
+ }
+
}