}
public synchronized void addUnpublishedBlogEntry(String blogEntryId) {
if (!unpublishedBlogEntries.contains(blogEntryId)) {
unpublishedBlogEntries.add(blogEntryId);
Collections.sort(unpublishedBlogEntries, new ReverseBlogEntryIdComparator());
}
publishedBlogEntries.remove(blogEntryId);
if (!blogEntries.contains(blogEntryId)) {
// and add to the aggregated view
blogEntries.add(blogEntryId);
Collections.sort(blogEntries, new ReverseBlogEntryIdComparator());
}
}