Package projectplayground.controller
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 Summary
Fields Modifier and Type Field Description private javax.persistence.EntityManager
entityManager
java.util.List<User>
foundUsers
java.lang.String
searchFirstName
java.lang.String
searchLastName
User
userAccount
java.lang.String
userDoubleAddedError
java.util.List<User>
userFriendList
UserRepository
userRepository
-
Constructor Summary
Constructors Constructor Description FriendController()
-
Method Summary
Modifier and Type Method Description java.lang.String
AddFriend(long ID)
java.lang.String
Index()
java.lang.String
RemoveFriend(long ID)
java.lang.String
SearchFriend()
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 -
userRepository
-
userAccount
-
userFriendList
-
searchFirstName
public java.lang.String searchFirstName -
searchLastName
public java.lang.String searchLastName -
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)
-