Package projectplayground.controller
Class IndexController
java.lang.Object
projectplayground.controller.IndexController
public class IndexController
extends java.lang.Object
The IndexController with its class IndexController is used to show the greeting to the user and conntects the userRepository to the Controller.
It is possible to show on which playground the user is logged in at the moment.
-
Field Summary
Fields Modifier and Type Field Description private UserRepository
userRepository
-
Constructor Summary
Constructors Constructor Description IndexController()
-
Method Summary
Modifier and Type Method Description java.lang.String
Index()
java.lang.String
showCurrentPlayground()
java.lang.String
showGreeting()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
userRepository
-
-
Constructor Details
-
IndexController
public IndexController()
-
-
Method Details
-
showGreeting
public java.lang.String showGreeting() -
showCurrentPlayground
public java.lang.String showCurrentPlayground() -
Index
public java.lang.String Index()
-