*/
public class GetTranslationPage extends JsonPage {
- /** The Sone web interface. */
- private WebInterface webInterface;
-
/**
* Creates a new translation page.
*
* The Sone web interface
*/
public GetTranslationPage(WebInterface webInterface) {
- super("ajax/getTranslation.ajax");
- this.webInterface = webInterface;
+ super("ajax/getTranslation.ajax", webInterface);
}
+ //
+ // JSONPAGE METHODS
+ //
+
/**
* {@inheritDoc}
*/
return new JsonObject().put("value", translation);
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean needsFormPassword() {
+ return false;
+ }
+
}