public interface CaseDistributionService extends Serializable
Distributes an email to users/groups/mailboxes and manages mailboxes.
Modifier and Type | Method and Description |
---|---|
CaseItem |
addCaseItemToCase(CoreSession session,
Case kase,
DocumentModel emailDoc)
Add a CaseItem to a Case
|
Case |
createCase(CoreSession session,
DocumentModel emailDoc) |
Case |
createCase(CoreSession session,
DocumentModel emailDoc,
List<Mailbox> mailboxes) |
Case |
createCaseFromExistingCaseItem(CaseItem adapter,
CoreSession documentManager)
|
CaseLink |
createDraftCaseLink(CoreSession session,
Mailbox mailbox,
Case envelope)
Create a draft post for an envelope in given mailbox.
|
Case |
createEmptyCase(CoreSession session,
DocumentModel caseDoc,
List<Mailbox> mailboxes) |
Case |
createEmptyCase(CoreSession session,
DocumentModel caseDoc,
Mailbox mailbox) |
Case |
createEmptyCase(CoreSession session,
String title,
String id,
List<Mailbox> mailboxes) |
Case |
createEmptyCase(CoreSession session,
String title,
String id,
Mailbox mailbox) |
Case |
createEmptyCase(CoreSession session,
String title,
String id,
String type,
Date date,
List<Mailbox> mailboxes) |
Case |
createEmptyCase(CoreSession session,
String title,
String id,
String type,
List<Mailbox> mailboxes) |
List<CaseLink> |
getCaseLinks(CoreSession session,
Mailbox mailbox,
Case kase)
Returns all the case links for this kase in this mailbox.
|
CaseLink |
getDraftCaseLink(CoreSession session,
Mailbox mailbox,
String envelopeId)
Returns the draft post of an envelope in given mailbox.
|
List<CaseLink> |
getDraftCaseLinks(CoreSession coreSession,
Mailbox mailbox,
long offset,
long limit)
Returns the draft posts for given mailbox
|
DocumentModel |
getParentDocumentForCase(CoreSession session)
This method calls
CaseManagementPersister to find the parent document of
a case to be created. |
DocumentModel |
getParentDocumentForCase(CoreSession session,
Date date)
This method calls
CaseManagementPersister to find the parent document of
a case to be created. |
String |
getParentDocumentPathForCase(CoreSession session)
This method calls
CaseManagementPersister to find the parent document path of
a case to be created. |
String |
getParentDocumentPathForCase(CoreSession session,
Date date)
This method calls
CaseManagementPersister to find the parent document path of
a case to be created. |
String |
getParentDocumentPathForCaseItem(CoreSession session,
Case kase)
This method calls
CaseManagementPersister to find the parent document path of
a CaseItem to be created. |
List<CaseLink> |
getReceivedCaseLinks(CoreSession coreSession,
Mailbox mailbox,
long offset,
long limit)
Returns the received posts for given mailbox
|
List<CaseLink> |
getSentCaseLinks(CoreSession coreSession,
Mailbox mailbox,
long offset,
long limit)
Returns the sent posts for given mailbox
|
void |
notify(CoreSession session,
String name,
DocumentModel document,
Map<String,Serializable> eventProperties)
Throw a core event.
|
void |
removeCaseLink(CaseLink link,
CoreSession sessiion)
Remove a case link from the mailbox.
|
CaseLink |
sendCase(CoreSession session,
CaseLink postRequest,
boolean initial)
Send an envelope to a mailbox.
|
CaseLink |
sendCase(CoreSession session,
CaseLink postRequest,
boolean initial,
boolean actionable)
Send an case to a mailbox.
|
CaseLink |
sendCase(CoreSession session,
String sender,
Case kase,
DistributionInfo initialDistribution)
Distributes a case to a mailbox.
|
CaseLink sendCase(CoreSession session, CaseLink postRequest, boolean initial)
CaseLink sendCase(CoreSession session, String sender, Case kase, DistributionInfo initialDistribution)
void removeCaseLink(CaseLink link, CoreSession sessiion)
link
- List<CaseLink> getSentCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
List<CaseLink> getReceivedCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
List<CaseLink> getCaseLinks(CoreSession session, Mailbox mailbox, Case kase)
session
- mailbox
- if null
returns the links of all mailboxes.kase
- List<CaseLink> getDraftCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
CaseLink getDraftCaseLink(CoreSession session, Mailbox mailbox, String envelopeId)
CaseItem addCaseItemToCase(CoreSession session, Case kase, DocumentModel emailDoc)
session
- The core sessionkase
- The case in which the CaseItem will be addedparentPath
- The path in which the CaseItem will be createdemailDoc
- The document model for the CaseItemCase createCase(CoreSession session, DocumentModel emailDoc)
session
- changeableDocument
- parentPath
- the path where the document and its envelope are
createdCase createEmptyCase(CoreSession session, DocumentModel caseDoc, Mailbox mailbox)
session
- changeableDocument
- the
- mailbox in which this case is createdparentPath
- the path where the document and its envelope are
createdCase createEmptyCase(CoreSession session, DocumentModel caseDoc, List<Mailbox> mailboxes)
Case createEmptyCase(CoreSession session, String title, String id, List<Mailbox> mailboxes)
Case createEmptyCase(CoreSession session, String title, String id, Mailbox mailbox)
Case createEmptyCase(CoreSession session, String title, String id, String type, List<Mailbox> mailboxes)
Case createEmptyCase(CoreSession session, String title, String id, String type, Date date, List<Mailbox> mailboxes)
Case createCase(CoreSession session, DocumentModel emailDoc, List<Mailbox> mailboxes)
mailboxes
- The list of mailboxes in which the document will be
seen.session
- changeableDocument
- parentPath
- the path where the document and its envelope are
createdCaseLink createDraftCaseLink(CoreSession session, Mailbox mailbox, Case envelope)
void notify(CoreSession session, String name, DocumentModel document, Map<String,Serializable> eventProperties)
session
- The session use in the event context and to get the
principal.name
- the name of the eventdocument
- The document use for DocumentEventContexteventProperties
- The properties used in the event context.CaseLink sendCase(CoreSession session, CaseLink postRequest, boolean initial, boolean actionable)
DocumentModel getParentDocumentForCase(CoreSession session)
CaseManagementPersister
to find the parent document of
a case to be created.session
- DocumentModel getParentDocumentForCase(CoreSession session, Date date)
CaseManagementPersister
to find the parent document of
a case to be created.session
- date
- String getParentDocumentPathForCase(CoreSession session)
CaseManagementPersister
to find the parent document path of
a case to be created.session
- String getParentDocumentPathForCase(CoreSession session, Date date)
CaseManagementPersister
to find the parent document path of
a case to be created.session
- date
- Case createCaseFromExistingCaseItem(CaseItem adapter, CoreSession documentManager)
{@link
- CaseItem}documentManager
- String getParentDocumentPathForCaseItem(CoreSession session, Case kase)
CaseManagementPersister
to find the parent document path of
a CaseItem
to be created.coreSession
- the
- parent Case
Copyright © 2013 Nuxeo SA. All Rights Reserved.