+ commands.put("LikePost", new LikePostCommand(core));
+ commands.put("LikeReply", new LikeReplyCommand(core));
+ commands.put("CreatePost", new CreatePostCommand(core));
+ commands.put("CreateReply", new CreateReplyCommand(core));
+ commands.put("DeletePost", new DeletePostCommand(core));
+ commands.put("DeleteReply", new DeleteReplyCommand(core));
+ }
+
+ //
+ // ACCESSORS
+ //
+
+ /**
+ * Sets whether the FCP interface should handle requests. If {@code active}
+ * is {@code false}, all requests are answered with an error.
+ *
+ * @param active
+ * {@code true} to activate the FCP interface, {@code false} to
+ * deactivate the FCP interface
+ */
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ /**
+ * Sets whether write access is only allowed from full access hosts.
+ *
+ * @param allowWriteFromFullAccessOnly
+ * {@code true} to allow write access only from full access
+ * hosts, {@code false} to always allow write access
+ */
+ public void setAllowWriteFromFullAccessOnly(boolean allowWriteFromFullAccessOnly) {
+ this.allowWriteFromFullAccessOnly = allowWriteFromFullAccessOnly;