Class InvitationEntity
- java.lang.Object
-
- org.silverpeas.core.socialnetwork.invitation.Invitation
-
- org.silverpeas.core.webapi.socialnetwork.invitation.InvitationEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class InvitationEntity extends Invitation implements WebEntity
The entity emboddied into an HTTP request or response and that represents the state of an invitation from a given user to another one.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InvitationEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvitationEntity
fromInvitation(Invitation invitation)
int
getId()
get Id of invitationDate
getInvitationDate()
get Date of invitationString
getMessage()
get Message of invitationint
getReceiverId()
get the receiver of invitationURI
getReceiverUri()
int
getSenderId()
get the sender of invitationURI
getSenderUri()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.void
setId(int id)
void
setInvitationDate(Date invitationDate)
void
setMessage(String message)
void
setReceiverId(int receiverId)
void
setSenderId(int senderId)
InvitationEntity
withAsUri(URI invitationUri)
-
Methods inherited from class org.silverpeas.core.socialnetwork.invitation.Invitation
equals, hashCode
-
-
-
-
Method Detail
-
fromInvitation
public static InvitationEntity fromInvitation(Invitation invitation)
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
getReceiverUri
public URI getReceiverUri()
-
getSenderUri
public URI getSenderUri()
-
setSenderId
public void setSenderId(int senderId)
- Overrides:
setSenderId
in classInvitation
-
setReceiverId
public void setReceiverId(int receiverId)
- Overrides:
setReceiverId
in classInvitation
-
setMessage
public void setMessage(String message)
- Overrides:
setMessage
in classInvitation
-
setInvitationDate
public void setInvitationDate(Date invitationDate)
- Overrides:
setInvitationDate
in classInvitation
-
setId
public void setId(int id)
- Overrides:
setId
in classInvitation
-
getSenderId
public int getSenderId()
Description copied from class:Invitation
get the sender of invitation- Overrides:
getSenderId
in classInvitation
- Returns:
- int
-
getReceiverId
public int getReceiverId()
Description copied from class:Invitation
get the receiver of invitation- Overrides:
getReceiverId
in classInvitation
- Returns:
- int
-
getMessage
public String getMessage()
Description copied from class:Invitation
get Message of invitation- Overrides:
getMessage
in classInvitation
- Returns:
- String
-
getInvitationDate
public Date getInvitationDate()
Description copied from class:Invitation
get Date of invitation- Overrides:
getInvitationDate
in classInvitation
- Returns:
- Date
-
getId
public int getId()
Description copied from class:Invitation
get Id of invitation- Overrides:
getId
in classInvitation
- Returns:
- id the invitation identifier
-
withAsUri
public InvitationEntity withAsUri(URI invitationUri)
-
-