|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelationshipManager
This interface handles Social relationships & relationship requests
Implement this interface to according to the persistence storage of social data
Method Summary | |
---|---|
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 |
Method Detail |
---|
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 viewed
SocialDataException
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 viewed
SocialDataException
String[] getPendingRelationshipRequests(String owner) throws SocialDataException
owner
- The userId of the person whose pending relationship list to be retrieved
SocialDataException
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 retrieved
SocialDataException
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 request
SocialDataException
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 owner
SocialDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |