|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 CaseItem
public String getConfidentiality()
CaseItem
getConfidentiality
in interface CaseItem
public String getTitle()
CaseItem
getTitle
in interface CaseItem
public void setTitle(String title)
setTitle
in interface CaseItem
public String getDefaultCaseId()
CaseItem
If 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 CaseItem
public Calendar getDocumentDate()
CaseItem
getDocumentDate
in interface CaseItem
public Case getCase()
CaseItem
getCase
in interface CaseItem
public Calendar getImportDate()
CaseItem
getImportDate
in interface CaseItem
public String getOrigin()
CaseItem
getOrigin
in interface CaseItem
public Calendar getReceiveDate()
CaseItem
getReceiveDate
in interface CaseItem
public Calendar getSendingDate()
CaseItem
getSendingDate
in interface CaseItem
public String getType()
CaseItem
getType
in interface CaseItem
public void setConfidentiality(String cdf)
setConfidentiality
in interface CaseItem
public void setDefaultCase(String mailEnvelopeId)
setDefaultCase
in interface CaseItem
public void setDocumentDate(Calendar date)
setDocumentDate
in interface CaseItem
public void setCase(Case envelope)
setCase
in interface CaseItem
public void setImportDate(Calendar date)
setImportDate
in interface CaseItem
public void setOrigin(String origin)
setOrigin
in interface CaseItem
public void setReceiveDate(Calendar date)
setReceiveDate
in interface CaseItem
public void setSendingDate(Calendar date)
setSendingDate
in interface CaseItem
public void setType(String type)
setType
in interface CaseItem
public boolean equals(Object other)
equals
in class Object
public 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 CaseItem
session
- an open session.parentPath
- the path to the folder in which the envelope will be
created.
public String toString()
toString
in class Object
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 org.nuxeo.ecm.core.api.DocumentModelList getCases(org.nuxeo.ecm.core.api.CoreSession session)
getCases
in interface CaseItem
public 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 |