Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.web.mailbox
Class CaseManagementMailboxActionsBean

java.lang.Object
  extended by org.nuxeo.cm.web.invalidations.CaseManagementContextBoundInstance
      extended by org.nuxeo.cm.web.mailbox.CaseManagementMailboxActionsBean
All Implemented Interfaces:
Serializable, CaseManagementContextHolder

@Name(value="cmMailboxActions")
@Scope(value=CONVERSATION)
public class CaseManagementMailboxActionsBean
extends CaseManagementContextBoundInstance

Handles mailboxes creation/edition and views.

See Also:
Serialized Form

Constructor Summary
CaseManagementMailboxActionsBean()
           
 
Method Summary
 String addCaseItem(String type)
          Creates a mail draft mail.
 String createDraftCaseItem(String type)
          Creates a mail draft mail.
 String createMailbox()
          Creates a new document mailBox document with the parent given by parentMailboxId
 boolean getCurrentMailboxHasProfile(String mailboxProfile)
           
 String getCurrentMailboxParent()
           
 Object getMailboxSuggestions(Object input)
           
 String getParentMailboxId()
           
 List<Mailbox> getUserMailboxes()
          Returns all mailboxes for logged user.
 Boolean isGenericMailbox()
           
 String openDraft(String envelopeId)
           
 String readCaseLink(String caseLinkId, String caseDocumentId, Boolean read)
           
 void resetParentMailboxId()
           
 void setParentMailboxId(String parentMailboxId)
           
 String updateCurrentMailbox()
          Update the mailbox and reset ViewMailboxAction tabs.
 void updateManagerTabMailbox()
          Updates the current mailbox
 void validateMailboxId(FacesContext context, UIComponent component, Object value)
          Performs a validation error when trying to set a mailbox id that already exists in the system.
 void validatePersonalMailboxCreation(FacesContext context, UIComponent component, Object value)
          Performs a validation error when trying to create a personal mailbox for a user that already has one.
 
Methods inherited from class org.nuxeo.cm.web.invalidations.CaseManagementContextBoundInstance
getCachedCase, getCachedCaseItem, getCachedMailbox, getCurrentCase, getCurrentCaseItem, getCurrentMailbox, onMailboxContextChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseManagementMailboxActionsBean

public CaseManagementMailboxActionsBean()
Method Detail

getMailboxSuggestions

public Object getMailboxSuggestions(Object input)
                             throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getUserMailboxes

@Factory(value="userMailboxes",
         scope=EVENT)
public List<Mailbox> getUserMailboxes()
                               throws CaseManagementException
Returns all mailboxes for logged user.

Throws:
CaseManagementException

validateMailboxId

public void validateMailboxId(FacesContext context,
                              UIComponent component,
                              Object value)
Performs a validation error when trying to set a mailbox id that already exists in the system.


validatePersonalMailboxCreation

public void validatePersonalMailboxCreation(FacesContext context,
                                            UIComponent component,
                                            Object value)
Performs a validation error when trying to create a personal mailbox for a user that already has one.


updateCurrentMailbox

public String updateCurrentMailbox()
                            throws org.nuxeo.ecm.core.api.ClientException
Update the mailbox and reset ViewMailboxAction tabs.

Throws:
org.nuxeo.ecm.core.api.ClientException

createMailbox

public String createMailbox()
                     throws CaseManagementException
Creates a new document mailBox document with the parent given by parentMailboxId

Throws:
CaseManagementException

getParentMailboxId

public String getParentMailboxId()

setParentMailboxId

public void setParentMailboxId(String parentMailboxId)

resetParentMailboxId

public void resetParentMailboxId()

isGenericMailbox

public Boolean isGenericMailbox()
                         throws org.nuxeo.ecm.core.api.ClientException
Returns:
true if CurrentMailbox is Generic Mailbox
Throws:
org.nuxeo.ecm.core.api.ClientException

addCaseItem

public String addCaseItem(String type)
                   throws org.nuxeo.ecm.core.api.ClientException
Creates a mail draft mail.

Throws:
org.nuxeo.ecm.core.api.ClientException

createDraftCaseItem

public String createDraftCaseItem(String type)
                           throws org.nuxeo.ecm.core.api.ClientException
Creates a mail draft mail.

Throws:
org.nuxeo.ecm.core.api.ClientException

updateManagerTabMailbox

public void updateManagerTabMailbox()
                             throws org.nuxeo.ecm.core.api.ClientException
Updates the current mailbox

Throws:
org.nuxeo.ecm.core.api.ClientException

getCurrentMailboxParent

public String getCurrentMailboxParent()
                               throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

openDraft

public String openDraft(String envelopeId)
                 throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

readCaseLink

public String readCaseLink(String caseLinkId,
                           String caseDocumentId,
                           Boolean read)
                    throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getCurrentMailboxHasProfile

public boolean getCurrentMailboxHasProfile(String mailboxProfile)
                                    throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.