public interface RelationshipManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptRelationshipRequest(String viewer,
String owner)
Creates a relationship between viewer and owner
|
String[] |
getPendingRelationshipRequests(String owner) |
String[] |
getRelationshipList(String loggedUser) |
String |
getRelationshipStatus(String viewer,
String owner) |
boolean |
ignoreRelationship(String viewer,
String owner)
Ignores the relationship request from viewer to owner
Implementation should remove the userId of viewer from the pending-relationship-requests list of the owner
|
boolean |
removeRelationship(String owner,
String viewer)
Removes the relationship between owner and viewer
Implementation should remove the association between owner and viewer
|
boolean |
requestRelationship(String viewer,
String owner)
Creates a relationship request from viewer to owner
The userId of viewer should be added to the pending relationship requests of the owner
|
boolean requestRelationship(String viewer, String owner) throws SocialDataException
viewer - The userId of the person who is viewing the owner's profileowner - The userId of the person whose profile is being viewedSocialDataExceptionString getRelationshipStatus(String viewer, String owner) throws SocialDataException
viewer - The userId of the person who is viewing the owner's profileowner - The userId of the person whose profile is being viewedSocialDataExceptionString[] getPendingRelationshipRequests(String owner) throws SocialDataException
owner - The userId of the person whose pending relationship list to be retrievedSocialDataExceptionboolean acceptRelationshipRequest(String viewer, String owner) throws SocialDataException
viewer - owner - SocialDataExceptionString[] getRelationshipList(String loggedUser) throws SocialDataException
loggedUser - The userId of the user whose relationship list to be retrievedSocialDataExceptionboolean ignoreRelationship(String viewer, String owner) throws SocialDataException
viewer - The userId of the person who has requested for a relationship with ownerowner - The userId of the person to whom the viewer has sent a relationship requestSocialDataExceptionboolean removeRelationship(String owner, String viewer) throws SocialDataException
owner - The userId of the person to whom the viewer has sent a relationship requestviewer - The userId of the person who has requested for a relationship with ownerSocialDataExceptionCopyright © 2015 WSO2. All Rights Reserved.