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 Details

    • entityManager

      private javax.persistence.EntityManager entityManager
    • playgroundRepository

      @Autowired private PlaygroundRepository playgroundRepository
    • pictureRepository

      @Autowired private PictureRepository pictureRepository
    • userRepository

      @Autowired private UserRepository userRepository
    • playground

      public Playground playground
    • allPlaygrounds

      public java.util.List<Playground> allPlaygrounds
    • searchPlaygroundName

      public java.lang.String searchPlaygroundName
    • searchStreetName

      public java.lang.String searchStreetName
    • foundPlaygrounds

      public java.util.List<Playground> foundPlaygrounds
  • Constructor Details

    • PlaygroundController

      public PlaygroundController()
  • Method Details

    • Index

      public java.lang.String Index()
    • Search

      public java.lang.String Search()
    • SetupPlaygroundDetails

      public void SetupPlaygroundDetails​(Playground playground)
    • 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()