Class FriendController

java.lang.Object
projectplayground.controller.FriendController

public class FriendController
extends java.lang.Object
The FriendController with its class FriendController is important to manage the user accounts, friend lists and content. It checks the friend list and manages errors. You can add and remove friends.
  • Field Details

    • entityManager

      private javax.persistence.EntityManager entityManager
    • userRepository

      @Autowired public UserRepository userRepository
    • userAccount

      public User userAccount
    • userFriendList

      public java.util.List<User> userFriendList
    • searchFirstName

      public java.lang.String searchFirstName
    • searchLastName

      public java.lang.String searchLastName
    • foundUsers

      public java.util.List<User> foundUsers
    • userDoubleAddedError

      public java.lang.String userDoubleAddedError
  • Constructor Details

    • FriendController

      public FriendController()
  • Method Details

    • Index

      public java.lang.String Index()
    • SearchFriend

      public java.lang.String SearchFriend()
    • AddFriend

      public java.lang.String AddFriend​(long ID)
    • RemoveFriend

      public java.lang.String RemoveFriend​(long ID)