*/
public void markReplyKnown(Reply reply);
+ /**
+ * Notifies a listener that the given post was removed.
+ *
+ * @param post
+ * The removed post
+ */
+ public void postRemoved(Post post);
+
+ /**
+ * Notifies a listener that the given reply was removed.
+ *
+ * @param reply
+ * The removed reply
+ */
+ public void replyRemoved(Reply reply);
+
}
}
}
+ /**
+ * Notifies all listener that the given post was removed.
+ *
+ * @see CoreListener#postRemoved(Post)
+ * @param post
+ * The removed post
+ */
+ void firePostRemoved(Post post) {
+ for (CoreListener coreListener : getListeners()) {
+ coreListener.postRemoved(post);
+ }
+ }
+
+ /**
+ * Notifies all listener that the given reply was removed.
+ *
+ * @see CoreListener#replyRemoved(Reply)
+ * @param reply
+ * The removed reply
+ */
+ void fireReplyRemoved(Reply reply) {
+ for (CoreListener coreListener : getListeners()) {
+ coreListener.replyRemoved(reply);
+ }
+ }
+
}
}
/**
+ * {@inheritDoc}
+ */
+ @Override
+ public void postRemoved(Post post) {
+ /* TODO */
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void replyRemoved(Reply reply) {
+ /* TODO */
+ }
+
+ /**
* Template provider implementation that uses
* {@link WebInterface#createReader(String)} to load templates for
* inclusion.