From: Kai Moritz Date: Thu, 28 Jan 2016 21:53:42 +0000 (+0100) Subject: WIP: Added a controller, to manage permissions CAUGHT IN THE ACT X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=de9e60175568c4489c45339d18b7bb3955605747;p=examples%2Ffacebook-app WIP: Added a controller, to manage permissions CAUGHT IN THE ACT --- diff --git a/src/main/java/de/juplo/yourshouter/PermissionsController.java b/src/main/java/de/juplo/yourshouter/PermissionsController.java index 1251bda..4439717 100644 --- a/src/main/java/de/juplo/yourshouter/PermissionsController.java +++ b/src/main/java/de/juplo/yourshouter/PermissionsController.java @@ -3,6 +3,7 @@ package de.juplo.yourshouter; import java.io.PrintWriter; import java.util.List; import java.util.Map; +import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -45,6 +46,13 @@ public class PermissionsController extends ConnectController } + @PostConstruct + public void init() + { + connectSu + } + + @Override public String connectionStatus(NativeWebRequest request, Model model) { @@ -82,7 +90,13 @@ public class PermissionsController extends ConnectController writer.write(""); response.flushBuffer(); } - }; + + @Override + public String toString() + { + return redirect.getUrl(); + } + }; } @Override @@ -91,6 +105,6 @@ public class PermissionsController extends ConnectController NativeWebRequest request ) { - return new RedirectView("/permissions.html", true); + return new RedirectView("https://apps.facebook.com/juplo-spielwiese/", true); } }