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 viewedSocialDataException
String 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 viewedSocialDataException
String[] getPendingRelationshipRequests(String owner) throws SocialDataException
owner
- The userId of the person whose pending relationship list to be retrievedSocialDataException
boolean acceptRelationshipRequest(String viewer, String owner) throws SocialDataException
viewer
- owner
- SocialDataException
String[] getRelationshipList(String loggedUser) throws SocialDataException
loggedUser
- The userId of the user whose relationship list to be retrievedSocialDataException
boolean 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 requestSocialDataException
boolean 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 ownerSocialDataException
Copyright © 2021 WSO2. All rights reserved.