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>allPlaygroundsprivate javax.persistence.EntityManagerentityManagerjava.util.List<Playground>foundPlaygroundsprivate PictureRepositorypictureRepositoryPlaygroundplaygroundprivate PlaygroundRepositoryplaygroundRepositoryjava.lang.StringsearchPlaygroundNamejava.lang.StringsearchStreetNameprivate UserRepositoryuserRepository -
Constructor Summary
Constructors Constructor Description PlaygroundController() -
Method Summary
Modifier and Type Method Description java.lang.StringDetails(long searchPlaygroundID)java.lang.StringIndex()java.lang.StringLoginPlayground(long playgroundID)java.lang.StringLogoutPlayground()java.lang.StringSearch()java.lang.StringSearchPlayground()voidSetupPlaygroundDetails(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()
-