Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.web.cases
Class CaseManagementCaseActionsBean

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

@Name(value="cmCaseActions")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class CaseManagementCaseActionsBean
extends CaseManagementContextBoundInstance

Author:
Nicolas Ulrich
See Also:
Serialized Form

Constructor Summary
CaseManagementCaseActionsBean()
           
 
Method Summary
 Boolean canCaseSelectionFollowTransition(String transition)
           
 String followTranstionCaseSelection(String transition)
           
 Boolean getCanEditCurrentCase()
           
 boolean getCanPurge()
           
 org.nuxeo.ecm.platform.routing.api.DocumentRoutingService getDocumentRoutingService()
           
 boolean isEmptyCase()
          Returns true if we have an empty case
 boolean isEmptyDraft()
           
 boolean isInitialCase()
           
 String markAsSent()
           
 String purgeCaseSelection()
           
 void removeCaseItem(org.nuxeo.ecm.core.api.DocumentModel doc)
          Removes a mail from the current envelope.
 
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

CaseManagementCaseActionsBean

public CaseManagementCaseActionsBean()
Method Detail

isInitialCase

public boolean isInitialCase()
                      throws org.nuxeo.ecm.core.api.ClientException
Returns:
true if this envelope is still in draft
Throws:
org.nuxeo.ecm.core.api.ClientException

removeCaseItem

public void removeCaseItem(org.nuxeo.ecm.core.api.DocumentModel doc)
                    throws org.nuxeo.ecm.core.api.ClientException
Removes a mail from the current envelope.

Parameters:
doc - the mail to remove
Throws:
org.nuxeo.ecm.core.api.ClientException

getDocumentRoutingService

public org.nuxeo.ecm.platform.routing.api.DocumentRoutingService getDocumentRoutingService()

isEmptyCase

public boolean isEmptyCase()
                    throws org.nuxeo.ecm.core.api.ClientException
Returns true if we have an empty case

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

markAsSent

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

purgeCaseSelection

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

isEmptyDraft

public boolean isEmptyDraft()

getCanPurge

public boolean getCanPurge()

getCanEditCurrentCase

public Boolean getCanEditCurrentCase()
                              throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

canCaseSelectionFollowTransition

public Boolean canCaseSelectionFollowTransition(String transition)

followTranstionCaseSelection

public String followTranstionCaseSelection(String transition)
                                    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.