Package projectplayground.controller
Class PlaygroundController
java.lang.Object
projectplayground.controller.PlaygroundController
public class PlaygroundController
extends java.lang.Object
The PlaygroundController with its class PlaygroundController is used to manage and list the playgrounds.
It's important to handle the searching, show details, find the playground by name or street and show pictures from the playground.
It is used to Login and Logoff at a playground by the user.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Playground>
allPlaygrounds
private javax.persistence.EntityManager
entityManager
java.util.List<Playground>
foundPlaygrounds
private PictureRepository
pictureRepository
Playground
playground
private PlaygroundRepository
playgroundRepository
java.lang.String
searchPlaygroundName
java.lang.String
searchStreetName
private UserRepository
userRepository
-
Constructor Summary
Constructors Constructor Description PlaygroundController()
-
Method Summary
Modifier and Type Method Description java.lang.String
Details(long searchPlaygroundID)
java.lang.String
Index()
java.lang.String
LoginPlayground(long playgroundID)
java.lang.String
LogoutPlayground()
java.lang.String
Search()
java.lang.String
SearchPlayground()
void
SetupPlaygroundDetails(Playground playground)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
entityManager
private javax.persistence.EntityManager entityManager -
playgroundRepository
-
pictureRepository
-
userRepository
-
playground
-
allPlaygrounds
-
searchPlaygroundName
public java.lang.String searchPlaygroundName -
searchStreetName
public java.lang.String searchStreetName -
foundPlaygrounds
-
-
Constructor Details
-
PlaygroundController
public PlaygroundController()
-
-
Method Details
-
Index
public java.lang.String Index() -
Search
public java.lang.String Search() -
SetupPlaygroundDetails
-
Details
public java.lang.String Details(long searchPlaygroundID) -
SearchPlayground
public java.lang.String SearchPlayground() -
LoginPlayground
public java.lang.String LoginPlayground(long playgroundID) -
LogoutPlayground
public java.lang.String LogoutPlayground()
-