if (soneId == null) {
return null;
}
- for (Sone sone : webInterface.getCore().getSones()) {
- if (sone.getId().equals(soneId)) {
- return sone;
- }
- }
- return null;
+ return webInterface.getCore().getLocalSone(soneId, false);
}
//
//
/**
+ * Creates a success reply.
+ *
+ * @return A reply signaling success
+ */
+ protected JsonObject createSuccessJsonObject() {
+ return new JsonObject().put("success", true);
+ }
+
+ /**
* Creates an error reply.
*
* @param error