|
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.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 Case
public List<CaseItem> getCaseItems(org.nuxeo.ecm.core.api.CoreSession session)
Case
getCaseItems
in interface Case
public 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 Case
public void save(org.nuxeo.ecm.core.api.CoreSession session)
Case
save
in interface Case
public List<org.nuxeo.ecm.core.api.DocumentModel> getDocuments()
Case
getDocuments
in interface Case
public 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 Case
org.nuxeo.ecm.core.api.ClientException
public boolean isEmpty() throws org.nuxeo.ecm.core.api.ClientException
Case
isEmpty
in interface Case
org.nuxeo.ecm.core.api.ClientException
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 boolean canFollowTransition(String transition)
canFollowTransition
in interface Case
public 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 |