public class CaseItemImpl extends Object implements CaseItem
| Constructor and Description |
|---|
CaseItemImpl(DocumentModel document,
HasParticipants recipientAdapter) |
| 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.
|
Case |
createMailCase(CoreSession session,
String parentPath,
String initialLifeCycleState)
Creates a mail envelope with this item inside.
|
boolean |
equals(Object other)
Overrides equality to check documents equality
|
Map<String,List<String>> |
getAllParticipants()
Gets the list of all recipients keyed by type.
|
Case |
getCase()
Gets the envelope this document is in.
|
DocumentModelList |
getCases(CoreSession session) |
String |
getConfidentiality()
Gets the confidentiality of the document.
|
String |
getDefaultCaseId()
Gets the envelope in which this item should be shown if not associated
with an envelope.
|
DocumentModel |
getDocument()
Returns the mail document.
|
Calendar |
getDocumentDate()
Gets the date on the item.
|
Calendar |
getImportDate()
Sets the item the item was imported into Nuxeo.
|
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 |
getOrigin()
Gets the origin of the document (email, scan ...).
|
Calendar |
getReceiveDate()
Gets the date item was received.
|
Calendar |
getSendingDate()
Gets the date the item was sent.
|
String |
getTitle()
Gets the title of this item.
|
String |
getType()
Get the type of document.
|
boolean |
hasSeveralCases(CoreSession coreSession) |
void |
save(CoreSession session)
Persists the item.
|
void |
setCase(Case envelope) |
void |
setConfidentiality(String cdf) |
void |
setDefaultCase(String mailEnvelopeId) |
void |
setDocumentDate(Calendar date) |
void |
setImportDate(Calendar date) |
void |
setOrigin(String origin) |
void |
setReceiveDate(Calendar date) |
void |
setSendingDate(Calendar date) |
void |
setTitle(String title) |
void |
setType(String type) |
String |
toString() |
public CaseItemImpl(DocumentModel document, HasParticipants recipientAdapter)
public DocumentModel getDocument()
CaseItemgetDocument in interface CaseItempublic String getConfidentiality()
CaseItemgetConfidentiality in interface CaseItempublic String getTitle()
CaseItempublic String getDefaultCaseId()
CaseItemIf you find this item from a search, we still have to show it in an envelope. This method tell us in which envelope to put it.
getDefaultCaseId in interface CaseItempublic Calendar getDocumentDate()
CaseItemgetDocumentDate in interface CaseItempublic Case getCase()
CaseItempublic Calendar getImportDate()
CaseItemgetImportDate in interface CaseItempublic String getOrigin()
CaseItempublic Calendar getReceiveDate()
CaseItemgetReceiveDate in interface CaseItempublic Calendar getSendingDate()
CaseItemgetSendingDate in interface CaseItempublic String getType()
CaseItempublic void setConfidentiality(String cdf)
setConfidentiality in interface CaseItempublic void setDefaultCase(String mailEnvelopeId)
setDefaultCase in interface CaseItempublic void setDocumentDate(Calendar date)
setDocumentDate in interface CaseItempublic void setImportDate(Calendar date)
setImportDate in interface CaseItempublic void setReceiveDate(Calendar date)
setReceiveDate in interface CaseItempublic void setSendingDate(Calendar date)
setSendingDate in interface CaseItempublic boolean equals(Object other)
public void save(CoreSession session)
CaseItempublic Case createMailCase(CoreSession session, String parentPath, String initialLifeCycleState)
CaseItemcreateMailCase in interface CaseItemsession - an open session.parentPath - the path to the folder in which the envelope will be
created.public void addInitialExternalParticipants(Map<String,List<String>> recipients)
HasParticipantsaddInitialExternalParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic void addInitialInternalParticipants(Map<String,List<String>> recipients)
HasParticipantsaddInitialInternalParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic void addParticipants(Map<String,List<String>> recipients)
HasParticipantsaddParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic Map<String,List<String>> getAllParticipants()
HasParticipantsgetAllParticipants in interface HasParticipantspublic Map<String,List<String>> getInitialExternalParticipants()
HasParticipantsgetInitialExternalParticipants in interface HasParticipantspublic Map<String,List<String>> getInitialInternalParticipants()
HasParticipantsgetInitialInternalParticipants in interface HasParticipantspublic DocumentModelList getCases(CoreSession session)
public boolean hasSeveralCases(CoreSession coreSession)
hasSeveralCases in interface CaseItemCopyright © 2011 Nuxeo SA. All Rights Reserved.