From: David ‘Bombe’ Roden Date: Fri, 14 Jan 2011 20:50:49 +0000 (+0100) Subject: Do not require logins for some AJAX pages. X-Git-Tag: 0.4^2~9^2~12 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1de0591743a887caba034fd116bbdf9942b7e575;p=Sone.git Do not require logins for some AJAX pages. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/DismissNotificationAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/DismissNotificationAjaxPage.java index 283e924..08e3ee5 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/DismissNotificationAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/DismissNotificationAjaxPage.java @@ -55,4 +55,12 @@ public class DismissNotificationAjaxPage extends JsonPage { return createSuccessJsonObject(); } + /** + * {@inheritDoc} + */ + @Override + protected boolean requiresLogin() { + return false; + } + } diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java index a358fb1..659c8d2 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java @@ -120,6 +120,14 @@ public class GetStatusAjaxPage extends JsonPage { return false; } + /** + * {@inheritDoc} + */ + @Override + protected boolean requiresLogin() { + return false; + } + // // PRIVATE METHODS // diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetTranslationPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetTranslationPage.java index 36327ca..725b13a 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetTranslationPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetTranslationPage.java @@ -59,4 +59,12 @@ public class GetTranslationPage extends JsonPage { return false; } + /** + * {@inheritDoc} + */ + @Override + protected boolean requiresLogin() { + return false; + } + } diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.java index 6c4ece0..bca9a35 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/LockSoneAjaxPage.java @@ -53,4 +53,12 @@ public class LockSoneAjaxPage extends JsonPage { return createSuccessJsonObject(); } + /** + * {@inheritDoc} + */ + @Override + protected boolean requiresLogin() { + return false; + } + } diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.java index 02682b2..e1c408c 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/UnlockSoneAjaxPage.java @@ -53,4 +53,12 @@ public class UnlockSoneAjaxPage extends JsonPage { return createSuccessJsonObject(); } + /** + * {@inheritDoc} + */ + @Override + protected boolean requiresLogin() { + return false; + } + }