Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.web.caseitem
Interface CaseManagementDocumentActions

All Superinterfaces:
Serializable
All Known Implementing Classes:
CaseItemDocumentActionsBean

public interface CaseManagementDocumentActions
extends Serializable

Author:
Anahide Tchertchian

Method Summary
 String createCaseItemInCase()
          Creates a new document from current changeable document.
 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
 void updateCurrentCaseItem()
          Saves changes hold by the changeableDocument document model.
 

Method Detail

createCaseItemInCase

String createCaseItemInCase()
                            throws org.nuxeo.ecm.core.api.ClientException
Creates a new document from current changeable document.

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

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

getCaseItemLayoutMode

String getCaseItemLayoutMode()
                             throws org.nuxeo.ecm.core.api.ClientException
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.

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

getCanEditCurrentCaseItem

boolean getCanEditCurrentCaseItem()
                                  throws org.nuxeo.ecm.core.api.ClientException
Check if the current user can edit the document (right + lock)

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

getCanEditCurrentDocument

boolean getCanEditCurrentDocument()
                                  throws org.nuxeo.ecm.core.api.ClientException
Check if the current user can edit the document (right + lock)

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

updateCurrentCaseItem

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

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

isCaseItem

boolean isCaseItem()
                   throws org.nuxeo.ecm.core.api.ClientException
Check if the current document is a CaseItem

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.