Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.web.caseitem
Class CaseItemDocumentActionsBean

java.lang.Object
  extended by org.nuxeo.cm.web.invalidations.CaseManagementContextBoundInstance
      extended by org.nuxeo.cm.web.caseitem.CaseItemDocumentActionsBean
All Implemented Interfaces:
Serializable, CaseManagementDocumentActions, CaseManagementContextHolder

@Name(value="cmDocumentActions")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class CaseItemDocumentActionsBean
extends CaseManagementContextBoundInstance
implements CaseManagementDocumentActions

Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
CaseItemDocumentActionsBean()
           
 
Method Summary
 String backToMailbox()
           
 String createCaseItemInCase()
          Creates a new document from current changeable document.
 String createDocument(String typeName)
          Returns the create view of given document type.
 String createEmptyCase()
           
 boolean getCanEditCurrentCaseItem()
          Check if the current user can edit the document (right + lock)
 boolean getCanEditCurrentDocument()
          Check if the current user can edit the document (right + lock)
 String getCaseItemLayoutMode()
          Return the Layout Mode for the current user.
 boolean isCaseItem()
          Check if the current document is a CaseItem
 boolean isCurrentCaseItemPreviewAvailable()
           
 boolean isEditingCaseItem()
           
 void quitEditingMail()
           
 String save()
           
 void startEditingCaseItem()
           
 void updateCurrentCaseItem()
          Saves changes hold by the changeableDocument document model.
 
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

CaseItemDocumentActionsBean

public CaseItemDocumentActionsBean()
Method Detail

createDocument

public String createDocument(String typeName)
                      throws org.nuxeo.ecm.core.api.ClientException
Returns the create view of given document type.

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

createCaseItemInCase

public String createCaseItemInCase()
                            throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: CaseManagementDocumentActions
Creates a new document from current changeable document.

Document will be created in a hierarchy yyyy/mm/dd below current document (mail root)

Specified by:
createCaseItemInCase in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

createEmptyCase

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

getCanEditCurrentDocument

public boolean getCanEditCurrentDocument()
                                  throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: CaseManagementDocumentActions
Check if the current user can edit the document (right + lock)

Specified by:
getCanEditCurrentDocument in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

getCanEditCurrentCaseItem

public boolean getCanEditCurrentCaseItem()
                                  throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: CaseManagementDocumentActions
Check if the current user can edit the document (right + lock)

Specified by:
getCanEditCurrentCaseItem in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

updateCurrentCaseItem

public void updateCurrentCaseItem()
                           throws org.nuxeo.ecm.core.api.ClientException
Saves changes hold by the changeableDocument document model.

Specified by:
updateCurrentCaseItem in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

isCurrentCaseItemPreviewAvailable

public boolean isCurrentCaseItemPreviewAvailable()
                                          throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

isEditingCaseItem

public boolean isEditingCaseItem()
                          throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

startEditingCaseItem

public void startEditingCaseItem()
                          throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

quitEditingMail

public void quitEditingMail()
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getCaseItemLayoutMode

public String getCaseItemLayoutMode()
                             throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: CaseManagementDocumentActions
Return the Layout Mode for the current user. If the user can write the document and the document is not locked, return Edit. Otherwise View.

Specified by:
getCaseItemLayoutMode in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

backToMailbox

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

save

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

isCaseItem

public boolean isCaseItem()
                   throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: CaseManagementDocumentActions
Check if the current document is a CaseItem

Specified by:
isCaseItem in interface CaseManagementDocumentActions
Throws:
org.nuxeo.ecm.core.api.ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.