Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.web.context
Class CaseManagementContextHolderBean

java.lang.Object
  extended by 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

Field Summary
static String SEAM_COMPONENT_NAME
           
 
Constructor Summary
CaseManagementContextHolderBean()
           
 
Method Summary
 Case getCurrentCase()
           
 org.nuxeo.ecm.core.api.DocumentModel getCurrentCaseItem()
           
 Mailbox getCurrentMailbox()
           
 void setCurrentCase(Case currentEnvelope)
           
 void setCurrentCaseItem(org.nuxeo.ecm.core.api.DocumentModel currentEmail)
           
 void setCurrentMailbox(Mailbox currentMailbox)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEAM_COMPONENT_NAME

public static final String SEAM_COMPONENT_NAME
See Also:
Constant Field Values
Constructor Detail

CaseManagementContextHolderBean

public CaseManagementContextHolderBean()
Method Detail

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)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.