|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileConnectionsLogic
An interface for dealing with connections in Profile2
| Method Summary | |
|---|---|
boolean |
confirmFriendRequest(String fromUser,
String toUser)
Confirm friend request from fromUser to toUser |
BasicConnection |
getBasicConnection(String userUuid)
Get a BasicConnection |
BasicConnection |
getBasicConnection(org.sakaiproject.user.api.User user)
Get a BasicConnection |
List<BasicConnection> |
getBasicConnections(List<org.sakaiproject.user.api.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. |
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 |
| Method Detail |
|---|
List<BasicConnection> getBasicConnectionsForUser(String userUuid)
userUuid - uuid of the user to retrieve the list of connections for
List<Person> getConnectionsForUser(String userUuid)
userUuid - uuid of the user to retrieve the list of connections for
int getConnectionsForUserCount(String userId)
userId - uuid of the user to retrieve the count for
List<Person> getConnectionRequestsForUser(String userId)
userId - uuid of the user to retrieve the list of connections for
int getConnectionRequestsForUserCount(String userId)
userId - uuid of the user to retrieve the list of connections for
List<Person> getConnectionsSubsetForSearch(List<Person> connections,
String search)
connections - list of connectionssearch - search string to match on
List<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 messages
int getConnectionStatus(String userA,
String userB)
userA - user making the queryuserB - any other user
boolean requestFriend(String userId,
String friendId)
userId - uuid of the user making the requestfriendId - uuid of the user that userId wants to be a friend of
boolean isFriendRequestPending(String fromUser,
String toUser)
fromUser - uuid of the user that made the friend requesttoUser - uuid of the user that userId made the request to
boolean 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 column
boolean isUserXFriendOfUserY(String userX,
String userY)
userX - the uuid of the user we are queryinguserY - current user uuid
BasicConnection getBasicConnection(String userUuid)
userUuid -
BasicConnection getBasicConnection(org.sakaiproject.user.api.User user)
user -
List<BasicConnection> getBasicConnections(List<org.sakaiproject.user.api.User> users)
users -
int getOnlineStatus(String userUuid)
userUuid - user to check
Map<String,Integer> getOnlineStatus(List<String> userUuids)
userUuid - List of users to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||