|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.cm.cases.CaseItemImpl
public class CaseItemImpl
| Constructor Summary | |
|---|---|
CaseItemImpl(org.nuxeo.ecm.core.api.DocumentModel document,
HasParticipants recipientAdapter)
|
|
| Method Summary | |
|---|---|
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(org.nuxeo.ecm.core.api.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. |
org.nuxeo.ecm.core.api.DocumentModelList |
getCases(org.nuxeo.ecm.core.api.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. |
org.nuxeo.ecm.core.api.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(org.nuxeo.ecm.core.api.CoreSession coreSession)
|
void |
save(org.nuxeo.ecm.core.api.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()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CaseItemImpl(org.nuxeo.ecm.core.api.DocumentModel document,
HasParticipants recipientAdapter)
| Method Detail |
|---|
public org.nuxeo.ecm.core.api.DocumentModel getDocument()
CaseItem
getDocument in interface CaseItempublic String getConfidentiality()
CaseItem
getConfidentiality in interface CaseItempublic String getTitle()
CaseItem
getTitle in interface CaseItempublic void setTitle(String title)
setTitle in interface 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()
CaseItem
getDocumentDate in interface CaseItempublic Case getCase()
CaseItem
getCase in interface CaseItempublic Calendar getImportDate()
CaseItem
getImportDate in interface CaseItempublic String getOrigin()
CaseItem
getOrigin in interface CaseItempublic Calendar getReceiveDate()
CaseItem
getReceiveDate in interface CaseItempublic Calendar getSendingDate()
CaseItem
getSendingDate in interface CaseItempublic String getType()
CaseItem
getType in interface 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 setCase(Case envelope)
setCase in interface CaseItempublic void setImportDate(Calendar date)
setImportDate in interface CaseItempublic void setOrigin(String origin)
setOrigin in interface CaseItempublic void setReceiveDate(Calendar date)
setReceiveDate in interface CaseItempublic void setSendingDate(Calendar date)
setSendingDate in interface CaseItempublic void setType(String type)
setType in interface CaseItempublic boolean equals(Object other)
equals in class Objectpublic void save(org.nuxeo.ecm.core.api.CoreSession session)
CaseItem
save in interface CaseItem
public Case createMailCase(org.nuxeo.ecm.core.api.CoreSession session,
String parentPath,
String initialLifeCycleState)
CaseItem
createMailCase in interface CaseItemsession - an open session.parentPath - the path to the folder in which the envelope will be
created.
public String toString()
toString in class Objectpublic void addInitialExternalParticipants(Map<String,List<String>> recipients)
HasParticipants
addInitialExternalParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic void addInitialInternalParticipants(Map<String,List<String>> recipients)
HasParticipants
addInitialInternalParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic void addParticipants(Map<String,List<String>> recipients)
HasParticipants
addParticipants in interface HasParticipantsrecipients - A map keyed with the message type and valued with a
list of Mailboxpublic Map<String,List<String>> getAllParticipants()
HasParticipants
getAllParticipants in interface HasParticipantspublic Map<String,List<String>> getInitialExternalParticipants()
HasParticipants
getInitialExternalParticipants in interface HasParticipantspublic Map<String,List<String>> getInitialInternalParticipants()
HasParticipants
getInitialInternalParticipants in interface HasParticipantspublic org.nuxeo.ecm.core.api.DocumentModelList getCases(org.nuxeo.ecm.core.api.CoreSession session)
getCases in interface CaseItempublic boolean hasSeveralCases(org.nuxeo.ecm.core.api.CoreSession coreSession)
hasSeveralCases in interface CaseItem
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||