public interface ProfileConnectionsLogic
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmFriendRequest(String fromUser,
String toUser)
Confirm friend request from fromUser to toUser
|
BasicConnection |
getBasicConnection(String userUuid)
Get a BasicConnection
|
BasicConnection |
getBasicConnection(User user)
Get a BasicConnection
|
List<BasicConnection> |
getBasicConnections(List<User> users)
Get a List of BasicConnections for the given Users.
|
List<BasicConnection> |
getBasicConnectionsForUser(String userUuid)
Gets a list of BasicOnlinePersons that are connected to this user
|
List<Person> |
getConnectionRequestsForUser(String userId)
Gets a list of Persons's that have unconfirmed connection requests to this person
|
int |
getConnectionRequestsForUserCount(String userId)
Gets a count of the number of unconfirmed incoming connection requests
|
List<Person> |
getConnectionsForUser(String userUuid)
Gets a list of Persons that are connected to this user. incl prefs and privacy
|
int |
getConnectionsForUserCount(String userId)
Gets a count of the number of connections a user has.
|
List<Person> |
getConnectionsSubsetForSearch(List<Person> connections,
String search)
Gets a subset of the connection list, based on the search string matching the beginning of the displayName
|
List<Person> |
getConnectionsSubsetForSearch(List<Person> connections,
String search,
boolean forMessaging)
Gets a subset of the connection list, based on the search string matching the beginning of the displayName,
and based on whether that user is allowed to be messaged.
|
int |
getConnectionStatus(String userA,
String userB)
Get the connection status between two users.
|
Map<String,Integer> |
getOnlineStatus(List<String> userUuids)
Get the online status for a list of users
|
int |
getOnlineStatus(String userUuid)
Get the online status for a user
|
boolean |
ignoreFriendRequest(String fromUser,
String toUser)
Ignore a friend request from fromUser to toUser
|
boolean |
isFriendRequestPending(String fromUser,
String toUser)
Check if there is a pending request from fromUser to toUser
|
boolean |
isUserXFriendOfUserY(String userX,
String userY)
Is userY a friend of the userX?
|
boolean |
removeFriend(String userId,
String friendId)
Remove a friend connection
|
boolean |
requestFriend(String userId,
String friendId)
Make a request for friendId to be a friend of userId
|
List<BasicConnection> getBasicConnectionsForUser(String userUuid)
userUuid - uuid of the user to retrieve the list of connections forList<Person> getConnectionsForUser(String userUuid)
userUuid - uuid of the user to retrieve the list of connections forint getConnectionsForUserCount(String userId)
userId - uuid of the user to retrieve the count forList<Person> getConnectionRequestsForUser(String userId)
userId - uuid of the user to retrieve the list of connections forint getConnectionRequestsForUserCount(String userId)
userId - uuid of the user to retrieve the list of connections forList<Person> getConnectionsSubsetForSearch(List<Person> connections, String search)
connections - list of connectionssearch - search string to match onList<Person> getConnectionsSubsetForSearch(List<Person> connections, String search, boolean forMessaging)
connections - list of connectionssearch - search string to match onforMessaging - if this request is for messaging, we also check if the user has indicated they can receive messagesint getConnectionStatus(String userA, String userB)
userA - user making the queryuserB - any other userboolean requestFriend(String userId, String friendId)
userId - uuid of the user making the requestfriendId - uuid of the user that userId wants to be a friend ofboolean isFriendRequestPending(String fromUser, String toUser)
fromUser - uuid of the user that made the friend requesttoUser - uuid of the user that userId made the request toboolean confirmFriendRequest(String fromUser, String toUser)
fromUser - uuid of the user that made the original friend requesttoUser - uuid of the user that received the friend request
Note that fromUser will ALWAYS be the one making the friend request,
and toUser will ALWAYS be the one who receives the request.boolean ignoreFriendRequest(String fromUser, String toUser)
fromUser - uuid of the user that made the original friend requesttoUser - uuid of the user that received the friend request and wants to ignore it
Note that fromUser will ALWAYS be the one that made the friend request,
and toUser will ALWAYS be the one who receives the request.boolean removeFriend(String userId, String friendId)
userId - uuid of one useruserId - uuid of the other user
Note that they could be in either columnboolean isUserXFriendOfUserY(String userX, String userY)
userX - the uuid of the user we are queryinguserY - current user uuidBasicConnection getBasicConnection(String userUuid)
userUuid - BasicConnection getBasicConnection(User user)
user - List<BasicConnection> getBasicConnections(List<User> users)
users - int getOnlineStatus(String userUuid)
userUuid - user to checkCopyright © 2008–2014 The Sakai Foundation. All rights reserved.