public class CaseImpl extends Object implements Case
| Constructor and Description |
|---|
CaseImpl(DocumentModel envelope,
HasParticipants recipientsAdapter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCaseItem(CaseItem item,
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(CoreSession session)
Returns unmodifiable list of items.
|
DocumentModel |
getDocument()
Gets the document model describing the envelope.
|
List<DocumentModel> |
getDocuments()
Gets the items as document with the session of the envelope.
|
List<DocumentModel> |
getDocuments(CoreSession session)
Gets the items as document
|
CaseItem |
getFirstItem(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,
CoreSession session)
Moves down given selected items in the envelope.
|
boolean |
moveUpEmailsInCase(List<CaseItem> selected,
CoreSession session)
Moves up given selected items in the envelope.
|
boolean |
removeCaseItem(CaseItem item,
CoreSession session)
Removes given item from the envelope.
|
void |
save(CoreSession session)
Persists the envelope.
|
public CaseImpl(DocumentModel envelope, HasParticipants recipientsAdapter)
public DocumentModel getDocument()
CasegetDocument in interface Casepublic List<CaseItem> getCaseItems(CoreSession session)
CasegetCaseItems in interface Casepublic CaseItem getFirstItem(CoreSession session)
CasegetFirstItem in interface Casepublic boolean addCaseItem(CaseItem item, CoreSession session)
CaseaddCaseItem in interface Casepublic boolean removeCaseItem(CaseItem item, CoreSession session)
CaseremoveCaseItem in interface Casepublic boolean moveUpEmailsInCase(List<CaseItem> selected, CoreSession session)
CasemoveUpEmailsInCase in interface Casepublic boolean moveDownEmailsInCase(List<CaseItem> selected, CoreSession session)
CasemoveDownEmailsInCase in interface Casepublic void save(CoreSession session)
Casepublic List<DocumentModel> getDocuments()
CasegetDocuments in interface Casepublic List<DocumentModel> getDocuments(CoreSession session)
CasegetDocuments in interface Casepublic boolean isDraft()
throws ClientException
CaseisDraft in interface CaseClientExceptionpublic boolean isEmpty()
throws ClientException
CaseisEmpty in interface CaseClientExceptionpublic 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 boolean canFollowTransition(String transition)
canFollowTransition in interface Casepublic void followTransition(String transition)
CasefollowTransition in interface CaseCopyright © 2011 Nuxeo SA. All Rights Reserved.