com.silverpeas.socialnetwork.invitation
Class Invitation

java.lang.Object
  extended by com.silverpeas.socialnetwork.invitation.Invitation
Direct Known Subclasses:
InvitationEntity

public class Invitation
extends Object


Constructor Summary
Invitation()
          Default Constructor
Invitation(int senderId, int receiverId, String message, Date invitationDate)
          Constructor using fields
 
Method Summary
 boolean equals(Object obj)
           
 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
 int getSenderId()
          get the sender of invitation
 int hashCode()
           
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invitation

public Invitation(int senderId,
                  int receiverId,
                  String message,
                  Date invitationDate)
Constructor using fields

Parameters:
senderId -
receiverId -
message -
invitationDate -

Invitation

public Invitation()
Default Constructor

Method Detail

getId

public int getId()
get Id of invitation

Returns:
id the invitation identifier

getInvitationDate

public Date getInvitationDate()
get Date of invitation

Returns:
Date

getMessage

public String getMessage()
get Message of invitation

Returns:
String

getReceiverId

public int getReceiverId()
get the receiver of invitation

Returns:
int

getSenderId

public int getSenderId()
get the sender of invitation

Returns:
int

setId

public void setId(int id)
set the Id of invitation

Parameters:
id -

setInvitationDate

public void setInvitationDate(Date invitationDate)
set the Date of invitation

Parameters:
invitationDate -

setMessage

public void setMessage(String message)
set the Message of invitation

Parameters:
message -

setReceiverId

public void setReceiverId(int receiverId)
set the Receiver of invitation

Parameters:
receiverId -

setSenderId

public void setSenderId(int senderId)
set the sender of invitation

Parameters:
senderId -

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.