|
||||||||||
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 Exposable
public URI getReceiverUri()
public URI getSenderUri()
public void setSenderId(int senderId)
Invitation
setSenderId
in class Invitation
public void setReceiverId(int receiverId)
Invitation
setReceiverId
in class Invitation
public void setMessage(String message)
Invitation
setMessage
in class Invitation
public void setInvitationDate(Date invitationDate)
Invitation
setInvitationDate
in class Invitation
public 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 Invitation
public String getMessage()
Invitation
getMessage
in class Invitation
@NotNull public Date getInvitationDate()
Invitation
getInvitationDate
in class Invitation
public int getId()
Invitation
getId
in class Invitation
public InvitationEntity withAsUri(URI invitationUri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |