|
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.CaseImpl
public class CaseImpl
| Constructor Summary | |
|---|---|
CaseImpl(org.nuxeo.ecm.core.api.DocumentModel envelope,
HasParticipants recipientsAdapter)
|
|
| Method Summary | |
|---|---|
boolean |
addCaseItem(CaseItem item,
org.nuxeo.ecm.core.api.CoreSession session)
Adds given item to the envelope. |
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. |
boolean |
canFollowTransition(String transition)
|
void |
followTransition(String transition)
Follow the given transition. |
Map<String,List<String>> |
getAllParticipants()
Gets the list of all recipients keyed by type. |
List<CaseItem> |
getCaseItems(org.nuxeo.ecm.core.api.CoreSession session)
Returns unmodifiable list of items. |
org.nuxeo.ecm.core.api.DocumentModel |
getDocument()
Gets the document model describing the envelope. |
List<org.nuxeo.ecm.core.api.DocumentModel> |
getDocuments()
Gets the items as document with the session of the envelope. |
List<org.nuxeo.ecm.core.api.DocumentModel> |
getDocuments(org.nuxeo.ecm.core.api.CoreSession session)
Gets the items as document |
CaseItem |
getFirstItem(org.nuxeo.ecm.core.api.CoreSession session)
Gets the first document within this envelope |
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. |
boolean |
isDraft()
Is this a draft envelope? |
boolean |
isEmpty()
Is this an empty envelope? |
boolean |
moveDownEmailsInCase(List<CaseItem> selected,
org.nuxeo.ecm.core.api.CoreSession session)
Moves down given selected items in the envelope. |
boolean |
moveUpEmailsInCase(List<CaseItem> selected,
org.nuxeo.ecm.core.api.CoreSession session)
Moves up given selected items in the envelope. |
boolean |
removeCaseItem(CaseItem item,
org.nuxeo.ecm.core.api.CoreSession session)
Removes given item from the envelope. |
void |
save(org.nuxeo.ecm.core.api.CoreSession session)
Persists the envelope. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CaseImpl(org.nuxeo.ecm.core.api.DocumentModel envelope,
HasParticipants recipientsAdapter)
| Method Detail |
|---|
public org.nuxeo.ecm.core.api.DocumentModel getDocument()
Case
getDocument in interface Casepublic List<CaseItem> getCaseItems(org.nuxeo.ecm.core.api.CoreSession session)
Case
getCaseItems in interface Casepublic CaseItem getFirstItem(org.nuxeo.ecm.core.api.CoreSession session)
Case
getFirstItem in interface Case
public boolean addCaseItem(CaseItem item,
org.nuxeo.ecm.core.api.CoreSession session)
Case
addCaseItem in interface Case
public boolean removeCaseItem(CaseItem item,
org.nuxeo.ecm.core.api.CoreSession session)
Case
removeCaseItem in interface Case
public boolean moveUpEmailsInCase(List<CaseItem> selected,
org.nuxeo.ecm.core.api.CoreSession session)
Case
moveUpEmailsInCase in interface Case
public boolean moveDownEmailsInCase(List<CaseItem> selected,
org.nuxeo.ecm.core.api.CoreSession session)
Case
moveDownEmailsInCase in interface Casepublic void save(org.nuxeo.ecm.core.api.CoreSession session)
Case
save in interface Casepublic List<org.nuxeo.ecm.core.api.DocumentModel> getDocuments()
Case
getDocuments in interface Casepublic List<org.nuxeo.ecm.core.api.DocumentModel> getDocuments(org.nuxeo.ecm.core.api.CoreSession session)
Case
getDocuments in interface Case
public boolean isDraft()
throws org.nuxeo.ecm.core.api.ClientException
Case
isDraft in interface Caseorg.nuxeo.ecm.core.api.ClientException
public boolean isEmpty()
throws org.nuxeo.ecm.core.api.ClientException
Case
isEmpty in interface Caseorg.nuxeo.ecm.core.api.ClientExceptionpublic 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 boolean canFollowTransition(String transition)
canFollowTransition in interface Casepublic void followTransition(String transition)
Case
followTransition in interface Case
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||