public class CaseDistributionServiceImpl extends Object implements CaseDistributionService
Modifier and Type | Class and Description |
---|---|
class |
CaseDistributionServiceImpl.SendPostUnrestricted |
Constructor and Description |
---|
CaseDistributionServiceImpl() |
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 item,
CoreSession session)
|
CaseLink |
createDraftCaseLink(CoreSession session,
Mailbox mailbox,
Case envelope)
Create a draft post for an envelope in given mailbox.
|
Case |
createEmptyCase(CoreSession session,
DocumentModel caseDoc,
Date date,
List<Mailbox> mailboxes) |
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 coreSession,
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
|
CaseManagementDocumentTypeService |
getTypeService() |
void |
notify(CoreSession session,
String name,
DocumentModel document,
Map<String,Serializable> eventProperties)
Throw a core event.
|
void |
removeCaseLink(CaseLink link,
CoreSession session)
Remove a case link from the mailbox.
|
CaseLink |
sendCase(CoreSession session,
CaseLink postRequest,
boolean isInitial)
Send an envelope to a mailbox.
|
CaseLink |
sendCase(CoreSession session,
CaseLink postRequest,
boolean isInitial,
boolean actionable)
Send an case to a mailbox.
|
CaseLink |
sendCase(CoreSession session,
String origin,
Case kase,
DistributionInfo initialDistribution)
Distributes a case to a mailbox.
|
void |
setPathSegmentService(PathSegmentService pathSegmentService) |
void |
setPersister(CaseManagementPersister persister) |
public void setPersister(CaseManagementPersister persister)
public void setPathSegmentService(PathSegmentService pathSegmentService)
public CaseLink sendCase(CoreSession session, CaseLink postRequest, boolean isInitial)
CaseDistributionService
sendCase
in interface CaseDistributionService
public CaseLink sendCase(CoreSession session, CaseLink postRequest, boolean isInitial, boolean actionable)
CaseDistributionService
sendCase
in interface CaseDistributionService
public CaseLink sendCase(CoreSession session, String origin, Case kase, DistributionInfo initialDistribution)
CaseDistributionService
sendCase
in interface CaseDistributionService
public List<CaseLink> getReceivedCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
CaseDistributionService
getReceivedCaseLinks
in interface CaseDistributionService
public List<CaseLink> getCaseLinks(CoreSession session, Mailbox mailbox, Case kase)
CaseDistributionService
getCaseLinks
in interface CaseDistributionService
mailbox
- if null
returns the links of all mailboxes.public List<CaseLink> getSentCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
CaseDistributionService
getSentCaseLinks
in interface CaseDistributionService
public List<CaseLink> getDraftCaseLinks(CoreSession coreSession, Mailbox mailbox, long offset, long limit)
CaseDistributionService
getDraftCaseLinks
in interface CaseDistributionService
public CaseItem addCaseItemToCase(CoreSession session, Case kase, DocumentModel emailDoc)
CaseDistributionService
addCaseItemToCase
in interface CaseDistributionService
session
- The core sessionkase
- The case in which the CaseItem will be addedemailDoc
- The document model for the CaseItempublic Case createCase(CoreSession session, DocumentModel emailDoc, List<Mailbox> mailboxes)
createCase
in interface CaseDistributionService
mailboxes
- The list of mailboxes in which the document will be
seen.public Case createCase(CoreSession session, DocumentModel emailDoc)
createCase
in interface CaseDistributionService
public Case createEmptyCase(CoreSession session, String title, String id, Mailbox mailbox)
createEmptyCase
in interface CaseDistributionService
public Case createEmptyCase(CoreSession session, String title, String id, List<Mailbox> mailboxes)
createEmptyCase
in interface CaseDistributionService
public Case createEmptyCase(CoreSession session, String title, String id, String type, List<Mailbox> mailboxes)
createEmptyCase
in interface CaseDistributionService
public Case createEmptyCase(CoreSession session, String title, String id, String type, Date date, List<Mailbox> mailboxes)
createEmptyCase
in interface CaseDistributionService
public CaseManagementDocumentTypeService getTypeService()
public Case createEmptyCase(CoreSession session, DocumentModel caseDoc, Mailbox mailbox)
createEmptyCase
in interface CaseDistributionService
public Case createEmptyCase(CoreSession session, DocumentModel caseDoc, Date date, List<Mailbox> mailboxes)
public Case createEmptyCase(CoreSession session, DocumentModel caseDoc, List<Mailbox> mailboxes)
createEmptyCase
in interface CaseDistributionService
public CaseLink createDraftCaseLink(CoreSession session, Mailbox mailbox, Case envelope)
CaseDistributionService
createDraftCaseLink
in interface CaseDistributionService
public CaseLink getDraftCaseLink(CoreSession coreSession, Mailbox mailbox, String envelopeId)
CaseDistributionService
getDraftCaseLink
in interface CaseDistributionService
public void removeCaseLink(CaseLink link, CoreSession session)
CaseDistributionService
removeCaseLink
in interface CaseDistributionService
public void notify(CoreSession session, String name, DocumentModel document, Map<String,Serializable> eventProperties)
CaseDistributionService
notify
in interface CaseDistributionService
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.public DocumentModel getParentDocumentForCase(CoreSession session)
CaseDistributionService
CaseManagementPersister
to find the parent document of
a case to be created.getParentDocumentForCase
in interface CaseDistributionService
public DocumentModel getParentDocumentForCase(CoreSession session, Date date)
CaseDistributionService
CaseManagementPersister
to find the parent document of
a case to be created.getParentDocumentForCase
in interface CaseDistributionService
public String getParentDocumentPathForCaseItem(CoreSession session, Case kase)
CaseDistributionService
CaseManagementPersister
to find the parent document path of
a CaseItem
to be created.getParentDocumentPathForCaseItem
in interface CaseDistributionService
public String getParentDocumentPathForCase(CoreSession session)
CaseDistributionService
CaseManagementPersister
to find the parent document path of
a case to be created.getParentDocumentPathForCase
in interface CaseDistributionService
public String getParentDocumentPathForCase(CoreSession session, Date date)
CaseDistributionService
CaseManagementPersister
to find the parent document path of
a case to be created.getParentDocumentPathForCase
in interface CaseDistributionService
public Case createCaseFromExistingCaseItem(CaseItem item, CoreSession session)
CaseDistributionService
createCaseFromExistingCaseItem
in interface CaseDistributionService
Copyright © 2011 Nuxeo SA. All Rights Reserved.