|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.socialnetwork.invitation.InvitationService
@Named public class InvitationService
| Constructor Summary | |
|---|---|
InvitationService()
Default Constructor |
|
| Method Summary | |
|---|---|
int |
accepteInvitation(int idInvitation)
accept invitation between sender and receiver and create the relationship |
List<Invitation> |
getAllMyInvitationsReceive(int myId)
return All my invitations received |
List<Invitation> |
getAllMyInvitationsSent(int userId)
return all my invitations sent |
Invitation |
getInvitation(int id)
rturn invitation by her id |
Invitation |
getInvitation(int senderId,
int receiverId)
rturn invitation between 2 users |
RelationShip |
getRelationShip(int relationShipId)
|
void |
ignoreInvitation(int id)
ignore this invitation |
int |
invite(Invitation invitation)
send invitation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvitationService()
| Method Detail |
|---|
public int invite(Invitation invitation)
invitation - an Invitation object
public void ignoreInvitation(int id)
id - : the invitation identifier to ignore (delete)public int accepteInvitation(int idInvitation)
idInvitation -
public List<Invitation> getAllMyInvitationsSent(int userId)
userId - the user identifier
public List<Invitation> getAllMyInvitationsReceive(int myId)
myId -
public Invitation getInvitation(int id)
senderId - receiverId -
public Invitation getInvitation(int senderId,
int receiverId)
senderId - receiverId -
public RelationShip getRelationShip(int relationShipId)
relationShipId - the relationship identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||