public class Invitation
extends nl.surfnet.coin.shared.domain.DomainObject
| Constructor and Description |
|---|
Invitation()
Constructor Hibernate needs when fetching results from the db.
|
Invitation(String email,
String teamId)
Constructor with the most common fields
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInvitationMessage(InvitationMessage invitationMessage)
Adds one
InvitationMessage to this Invitation |
String |
getEmail() |
long |
getExpireTime() |
Role |
getIntendedRole() |
String |
getInvitationHash() |
List<InvitationMessage> |
getInvitationMessages() |
List<InvitationMessage> |
getInvitationMessagesReversed() |
InvitationMessage |
getLatestInvitationMessage() |
String |
getTeamId() |
long |
getTimestamp() |
boolean |
isAccepted() |
boolean |
isDeclined() |
void |
setAccepted(boolean accepted) |
void |
setDeclined(boolean declined) |
void |
setEmail(String email) |
void |
setIntendedRole(Role intendedRole)
Setting a role other than
Role.Member can give the invitee more privileges automatically |
void |
setTeamId(String teamId) |
void |
setTimestamp(long timestamp) |
public Invitation()
public void setTeamId(String teamId)
teamId - the teamId to setpublic String getTeamId()
public void setEmail(String email)
email - the email to setpublic String getEmail()
public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - to indicate when the invitation was last updatedpublic String getInvitationHash()
public boolean isDeclined()
public void setDeclined(boolean declined)
declined - indicator if the invitation is deniedpublic boolean isAccepted()
public void setAccepted(boolean accepted)
accepted - indicator if the invitation is deniedpublic List<InvitationMessage> getInvitationMessages()
InvitationMessage'spublic void addInvitationMessage(InvitationMessage invitationMessage)
InvitationMessage to this InvitationinvitationMessage - InvitationMessage to addpublic InvitationMessage getLatestInvitationMessage()
InvitationMessage or null if none is setpublic List<InvitationMessage> getInvitationMessagesReversed()
public long getExpireTime()
public Role getIntendedRole()
Role the invitee should get within the team. Defaults to Role.Memberpublic void setIntendedRole(Role intendedRole)
Role.Member can give the invitee more privileges automaticallyintendedRole - the Role the invitee should get within the team. Can be nullCopyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.