|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.socialnetwork.invitation.Invitation
com.silverpeas.socialnetwork.invitation.web.InvitationEntity
public class InvitationEntity
The entity emboddied into an HTTP request or response and that represents the state of an invitation from a given user to another one.
| Constructor Summary | |
|---|---|
protected |
InvitationEntity()
|
| Method Summary | |
|---|---|
static InvitationEntity |
fromInvitation(Invitation invitation)
|
int |
getId()
get Id of invitation |
Date |
getInvitationDate()
get Date of invitation |
String |
getMessage()
get Message of invitation |
int |
getReceiverId()
get the receiver of invitation |
URI |
getReceiverUri()
|
int |
getSenderId()
get the sender of invitation |
URI |
getSenderUri()
|
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
void |
setId(int id)
set the Id of invitation |
void |
setInvitationDate(Date invitationDate)
set the Date of invitation |
void |
setMessage(String message)
set the Message of invitation |
void |
setReceiverId(int receiverId)
set the Receiver of invitation |
void |
setSenderId(int senderId)
set the sender of invitation |
InvitationEntity |
withAsUri(URI invitationUri)
|
| Methods inherited from class com.silverpeas.socialnetwork.invitation.Invitation |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InvitationEntity()
| Method Detail |
|---|
public static InvitationEntity fromInvitation(Invitation invitation)
public URI getURI()
Exposable
getURI in interface Exposablepublic URI getReceiverUri()
public URI getSenderUri()
public void setSenderId(int senderId)
Invitation
setSenderId in class Invitationpublic void setReceiverId(int receiverId)
Invitation
setReceiverId in class Invitationpublic void setMessage(String message)
Invitation
setMessage in class Invitationpublic void setInvitationDate(Date invitationDate)
Invitation
setInvitationDate in class Invitationpublic void setId(int id)
Invitation
setId in class Invitation@NotNull public int getSenderId()
Invitation
getSenderId in class Invitation@NotNull public int getReceiverId()
Invitation
getReceiverId in class Invitationpublic String getMessage()
Invitation
getMessage in class Invitation@NotNull public Date getInvitationDate()
Invitation
getInvitationDate in class Invitationpublic int getId()
Invitation
getId in class Invitationpublic InvitationEntity withAsUri(URI invitationUri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||