com.silverpeas.socialnetwork.invitation.web
Class InvitationEntity

java.lang.Object
  extended by com.silverpeas.socialnetwork.invitation.Invitation
      extended by com.silverpeas.socialnetwork.invitation.web.InvitationEntity
All Implemented Interfaces:
Exposable, Serializable

public class InvitationEntity
extends Invitation
implements Exposable

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
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

InvitationEntity

protected InvitationEntity()
Method Detail

fromInvitation

public static InvitationEntity fromInvitation(Invitation invitation)

getURI

public URI getURI()
Description copied from interface: Exposable
Gets the URI at which this resource is published and can be accessed.

Specified by:
getURI in interface Exposable
Returns:
the web resource URI.

getReceiverUri

public URI getReceiverUri()

getSenderUri

public URI getSenderUri()

setSenderId

public void setSenderId(int senderId)
Description copied from class: Invitation
set the sender of invitation

Overrides:
setSenderId in class Invitation

setReceiverId

public void setReceiverId(int receiverId)
Description copied from class: Invitation
set the Receiver of invitation

Overrides:
setReceiverId in class Invitation

setMessage

public void setMessage(String message)
Description copied from class: Invitation
set the Message of invitation

Overrides:
setMessage in class Invitation

setInvitationDate

public void setInvitationDate(Date invitationDate)
Description copied from class: Invitation
set the Date of invitation

Overrides:
setInvitationDate in class Invitation

setId

public void setId(int id)
Description copied from class: Invitation
set the Id of invitation

Overrides:
setId in class Invitation

getSenderId

@NotNull
public int getSenderId()
Description copied from class: Invitation
get the sender of invitation

Overrides:
getSenderId in class Invitation
Returns:
int

getReceiverId

@NotNull
public int getReceiverId()
Description copied from class: Invitation
get the receiver of invitation

Overrides:
getReceiverId in class Invitation
Returns:
int

getMessage

public String getMessage()
Description copied from class: Invitation
get Message of invitation

Overrides:
getMessage in class Invitation
Returns:
String

getInvitationDate

@NotNull
public Date getInvitationDate()
Description copied from class: Invitation
get Date of invitation

Overrides:
getInvitationDate in class Invitation
Returns:
Date

getId

public int getId()
Description copied from class: Invitation
get Id of invitation

Overrides:
getId in class Invitation
Returns:
id the invitation identifier

withAsUri

public InvitationEntity withAsUri(URI invitationUri)


Copyright © 2016 Silverpeas. All Rights Reserved.