WIP: Added a controller, to manage permissions CAUGHT IN THE ACT
authorKai Moritz <kai@juplo.de>
Thu, 28 Jan 2016 21:53:42 +0000 (22:53 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 3 Jul 2018 15:18:12 +0000 (17:18 +0200)
src/main/java/de/juplo/yourshouter/PermissionsController.java

index 1251bda..4439717 100644 (file)
@@ -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("</script>");
         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);
   }
 }