org.nuxeo.cm.web.context
Class CaseManagementContextHolderBean
java.lang.Object
org.nuxeo.cm.web.context.CaseManagementContextHolderBean
- All Implemented Interfaces:
- Serializable, CaseManagementContextHolder
@Name(value="cmContextHolder")
@Scope(value=CONVERSATION)
public class CaseManagementContextHolderBean
- extends Object
- implements CaseManagementContextHolder
Minimal context holder.
Has to stay light-weight to be easily injected in other components.
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
SEAM_COMPONENT_NAME
public static final String SEAM_COMPONENT_NAME
- See Also:
- Constant Field Values
CaseManagementContextHolderBean
public CaseManagementContextHolderBean()
getCurrentMailbox
@Factory(value="currentMailbox",
scope=EVENT)
public Mailbox getCurrentMailbox()
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
getCurrentMailbox
in interface CaseManagementContextHolder
- Throws:
org.nuxeo.ecm.core.api.ClientException
getCurrentCase
@Factory(value="currentCase",
scope=EVENT)
public Case getCurrentCase()
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
getCurrentCase
in interface CaseManagementContextHolder
- Throws:
org.nuxeo.ecm.core.api.ClientException
getCurrentCaseItem
@Factory(value="currentCaseItem",
scope=EVENT)
public org.nuxeo.ecm.core.api.DocumentModel getCurrentCaseItem()
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
getCurrentCaseItem
in interface CaseManagementContextHolder
- Throws:
org.nuxeo.ecm.core.api.ClientException
setCurrentMailbox
public void setCurrentMailbox(Mailbox currentMailbox)
setCurrentCase
public void setCurrentCase(Case currentEnvelope)
setCurrentCaseItem
public void setCurrentCaseItem(org.nuxeo.ecm.core.api.DocumentModel currentEmail)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.