Class UserRepositoryImpl
java.lang.Object
projectplayground.repositories.user.UserRepositoryImpl
- All Implemented Interfaces:
UserRepositoryCustom
@Repository public class UserRepositoryImpl extends java.lang.Object implements UserRepositoryCustom
-
Field Summary
Fields Modifier and Type Field Description private javax.persistence.EntityManager
entityManager
-
Constructor Summary
Constructors Constructor Description UserRepositoryImpl()
-
Method Summary
Modifier and Type Method Description void
addFriend(User currentUser, User newFriend)
java.util.List<java.lang.Long>
findAllFriends(User currentUser)
User
findUserByUsername(java.lang.String userName)
java.util.List<User>
findUsersByName(java.lang.String firstName, java.lang.String lastName)
void
loginUserToPlayground(User user, Playground playground)
void
logoutUserFromPlayground(User user)
void
removeFriend(User currentUser, User toBeDeletedFriend)
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
-
-
Constructor Details
-
UserRepositoryImpl
public UserRepositoryImpl()
-
-
Method Details
-
findUserByUsername
- Specified by:
findUserByUsername
in interfaceUserRepositoryCustom
-
findUsersByName
- Specified by:
findUsersByName
in interfaceUserRepositoryCustom
-
addFriend
- Specified by:
addFriend
in interfaceUserRepositoryCustom
-
removeFriend
- Specified by:
removeFriend
in interfaceUserRepositoryCustom
-
loginUserToPlayground
- Specified by:
loginUserToPlayground
in interfaceUserRepositoryCustom
-
logoutUserFromPlayground
- Specified by:
logoutUserFromPlayground
in interfaceUserRepositoryCustom
-
findAllFriends
- Specified by:
findAllFriends
in interfaceUserRepositoryCustom
-