@RolesAllowed(value="RegisteredUser") public class FriendshipEJB extends Object
| Constructor and Description |
|---|
FriendshipEJB() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
cancel(es.uvigo.esei.dgss.teama.letta.entities.User user)
Cancel friendship between user logged and other user
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
cancelOf(es.uvigo.esei.dgss.teama.letta.entities.User user)
Cancel friendship between user and user logged
|
boolean |
checkFriendshipState(es.uvigo.esei.dgss.teama.letta.entities.User user,
es.uvigo.esei.dgss.teama.letta.entities.FriendshipState state)
Checks state of friendship between logged user an other user.
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
getFriendship(es.uvigo.esei.dgss.teama.letta.entities.User user)
Get friendship between logged user and other user
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
getFriendshipReceived(es.uvigo.esei.dgss.teama.letta.entities.User user)
Get friendship between logged user and other user
|
List<es.uvigo.esei.dgss.teama.letta.entities.User> |
getMyFriends()
Gets friends of logged user.
|
List<es.uvigo.esei.dgss.teama.letta.entities.User> |
getMyFriendsOf()
Get from who I'm friend.
|
List<es.uvigo.esei.dgss.teama.letta.entities.User> |
getPendings()
Get friend requests pending.
|
List<es.uvigo.esei.dgss.teama.letta.entities.User> |
getPendingsSent()
Get friend requests sent pending
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
reject(es.uvigo.esei.dgss.teama.letta.entities.User user)
Reject friendship between user logged and other user
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
request(es.uvigo.esei.dgss.teama.letta.entities.User user)
Request friendship between user logged and other user
|
es.uvigo.esei.dgss.teama.letta.entities.Friendship |
toAccept(es.uvigo.esei.dgss.teama.letta.entities.User user)
to accept friendship between user logged and other user
|
@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship request(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user for create friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship cancel(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user for cancel friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship cancelOf(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user for cancel friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship toAccept(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user for create friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship reject(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user for reject friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship getFriendship(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user to search friendship@PermitAll public es.uvigo.esei.dgss.teama.letta.entities.Friendship getFriendshipReceived(es.uvigo.esei.dgss.teama.letta.entities.User user)
user - user to search friendship@PermitAll public List<es.uvigo.esei.dgss.teama.letta.entities.User> getMyFriends()
@PermitAll public List<es.uvigo.esei.dgss.teama.letta.entities.User> getMyFriendsOf()
@PermitAll public List<es.uvigo.esei.dgss.teama.letta.entities.User> getPendings()
@PermitAll public List<es.uvigo.esei.dgss.teama.letta.entities.User> getPendingsSent()
@PermitAll public boolean checkFriendshipState(es.uvigo.esei.dgss.teama.letta.entities.User user, es.uvigo.esei.dgss.teama.letta.entities.FriendshipState state) throws LettaIllegalArgumentException
user - event to attend.state - state to check friendshipLettaIllegalArgumentException - if the given user is nullCopyright © 2017. All rights reserved.