public class CaseLinkImpl extends Object implements CaseLink
CaseLink.CaseLinkState, CaseLink.CaseLinkTransistion
Constructor and Description |
---|
CaseLinkImpl(DocumentModel doc,
HasParticipants recipientAdapted) |
Modifier and Type | Method and Description |
---|---|
void |
addInitialExternalParticipants(Map<String,List<String>> recipients)
Adds to the list of initial external recipients.
|
void |
addInitialInternalParticipants(Map<String,List<String>> recipients)
Adds to the list of initial internal recipients.
|
void |
addParticipants(Map<String,List<String>> recipients)
Adds to the list of recipients.
|
Map<String,List<String>> |
getAllParticipants()
Gets the list of all recipients keyed by type.
|
Case |
getCase(CoreSession session)
The mail envelope sent.
|
String |
getCaseId()
Gets the Id of the associated Case;
|
String |
getComment()
Gets the comment.
|
Date |
getDate()
Gets the date.
|
DocumentModel |
getDocument()
Gets the document model.
|
String |
getId()
Gets the id of the post.
|
Map<String,List<String>> |
getInitialExternalParticipants()
Gets the list of initial external recipients keyed by type.
|
Map<String,List<String>> |
getInitialInternalParticipants()
Gets the list of initial internal recipients keyed by type.
|
String |
getSender()
Gets the sender.
|
String |
getSenderMailboxId()
Gets the sender mailbox id.
|
Date |
getSentDate()
Gets the send date of the post.
|
String |
getSubject()
Gets the subject.
|
String |
getType()
Gets the type of the message.
|
boolean |
isActionnable() |
boolean |
isDraft()
Is it a draft?
|
boolean |
isRead()
Returns true if this message has been read.
|
void |
save(CoreSession session)
Persists the post.
|
void |
setActionnable(boolean actionnable) |
public CaseLinkImpl(DocumentModel doc, HasParticipants recipientAdapted)
public String getComment()
CaseLink
getComment
in interface CaseLink
public Case getCase(CoreSession session)
CaseLink
public String getCaseId()
CaseLink
public String getSubject()
CaseLink
getSubject
in interface CaseLink
public String getSenderMailboxId()
CaseLink
getSenderMailboxId
in interface CaseLink
public Date getSentDate()
CaseLink
getSentDate
in interface CaseLink
public String getType()
CaseLink
public boolean isRead()
CaseLink
public void save(CoreSession session)
CaseLink
public DocumentModel getDocument()
CaseLink
getDocument
in interface CaseLink
public boolean isDraft()
CaseLink
public void addInitialExternalParticipants(Map<String,List<String>> recipients)
HasParticipants
addInitialExternalParticipants
in interface HasParticipants
recipients
- A map keyed with the message type and valued with a
list of Mailbox
public void addInitialInternalParticipants(Map<String,List<String>> recipients)
HasParticipants
addInitialInternalParticipants
in interface HasParticipants
recipients
- A map keyed with the message type and valued with a
list of Mailbox
public void addParticipants(Map<String,List<String>> recipients)
HasParticipants
addParticipants
in interface HasParticipants
recipients
- A map keyed with the message type and valued with a
list of Mailbox
public Map<String,List<String>> getAllParticipants()
HasParticipants
getAllParticipants
in interface HasParticipants
public Map<String,List<String>> getInitialExternalParticipants()
HasParticipants
getInitialExternalParticipants
in interface HasParticipants
public Map<String,List<String>> getInitialInternalParticipants()
HasParticipants
getInitialInternalParticipants
in interface HasParticipants
public void setActionnable(boolean actionnable)
setActionnable
in interface CaseLink
public boolean isActionnable()
isActionnable
in interface CaseLink
Copyright © 2013 Nuxeo SA. All Rights Reserved.