@Name(value="cmContextHolder") @Scope(value=CONVERSATION) public class CaseManagementContextHolderBean extends Object implements CaseManagementContextHolder
Has to stay light-weight to be easily injected in other components.
Modifier and Type | Field and Description |
---|---|
static String |
SEAM_COMPONENT_NAME |
Constructor and Description |
---|
CaseManagementContextHolderBean() |
Modifier and Type | Method and Description |
---|---|
Case |
getCurrentCase() |
DocumentModel |
getCurrentCaseItem() |
DocumentModel |
getCurrentClassificationRoot() |
Mailbox |
getCurrentMailbox() |
DocumentModel |
getCurrentRouteRoot() |
void |
resetCurrentContext() |
void |
setCurrentCase(Case currentEnvelope) |
void |
setCurrentCaseItem(DocumentModel currentEmail) |
void |
setCurrentClassificationRoot(DocumentModel currentClassificationRoot) |
void |
setCurrentMailbox(Mailbox currentMailbox) |
void |
setCurrentRouteRoot(DocumentModel currentRouteRoot) |
public static final String SEAM_COMPONENT_NAME
@Factory(value="currentMailbox", scope=EVENT) public Mailbox getCurrentMailbox() throws ClientException
getCurrentMailbox
in interface CaseManagementContextHolder
ClientException
@Factory(value="currentCase", scope=EVENT) public Case getCurrentCase() throws ClientException
getCurrentCase
in interface CaseManagementContextHolder
ClientException
@Factory(value="currentCaseItem", scope=EVENT) public DocumentModel getCurrentCaseItem() throws ClientException
getCurrentCaseItem
in interface CaseManagementContextHolder
ClientException
@Factory(value="currentClassificationRoot", scope=EVENT) public DocumentModel getCurrentClassificationRoot() throws ClientException
getCurrentClassificationRoot
in interface CaseManagementContextHolder
ClientException
@Factory(value="currentRouteRoot", scope=EVENT) public DocumentModel getCurrentRouteRoot() throws ClientException
getCurrentRouteRoot
in interface CaseManagementContextHolder
ClientException
public void setCurrentMailbox(Mailbox currentMailbox)
public void setCurrentCase(Case currentEnvelope)
public void setCurrentCaseItem(DocumentModel currentEmail)
public void setCurrentClassificationRoot(DocumentModel currentClassificationRoot)
public void setCurrentRouteRoot(DocumentModel currentRouteRoot)
public void resetCurrentContext()
Copyright © 2013 Nuxeo SA. All Rights Reserved.