@Name(value="cmDocumentActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class CaseItemDocumentActionsBean extends CaseManagementContextBoundInstance implements CaseManagementDocumentActions
Constructor and Description |
---|
CaseItemDocumentActionsBean() |
Modifier and Type | Method and Description |
---|---|
String |
backToMailbox() |
String |
createCaseItemInCase()
Creates a new document from current changeable document.
|
String |
createCaseItemInDefaultCase()
Creates a new caseItem into a case by default 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.
|
getCachedCase, getCachedCaseItem, getCachedMailbox, getCurrentCase, getCurrentCaseItem, getCurrentClassificationRoot, getCurrentMailbox, getCurrentRouteRoot, onMailboxContextChange
public String createDocument(String typeName) throws ClientException
ClientException
public String createCaseItemInDefaultCase() throws ClientException
CaseManagementDocumentActions
Document will be created in a hierarchy yyyy/mm/dd below current document (mail root)
createCaseItemInDefaultCase
in interface CaseManagementDocumentActions
ClientException
public String createCaseItemInCase() throws ClientException
CaseManagementDocumentActions
Document will be created in a hierarchy yyyy/mm/dd below current document (mail root)
createCaseItemInCase
in interface CaseManagementDocumentActions
ClientException
public String createEmptyCase() throws ClientException
ClientException
public boolean getCanEditCurrentDocument() throws ClientException
CaseManagementDocumentActions
getCanEditCurrentDocument
in interface CaseManagementDocumentActions
ClientException
public boolean getCanEditCurrentCaseItem() throws ClientException
CaseManagementDocumentActions
getCanEditCurrentCaseItem
in interface CaseManagementDocumentActions
ClientException
public void updateCurrentCaseItem() throws ClientException
updateCurrentCaseItem
in interface CaseManagementDocumentActions
ClientException
public boolean isCurrentCaseItemPreviewAvailable() throws ClientException
ClientException
public boolean isEditingCaseItem() throws ClientException
ClientException
public void startEditingCaseItem() throws ClientException
ClientException
public void quitEditingMail() throws ClientException
ClientException
public String getCaseItemLayoutMode() throws ClientException
CaseManagementDocumentActions
getCaseItemLayoutMode
in interface CaseManagementDocumentActions
ClientException
public String backToMailbox() throws ClientException
ClientException
public String save() throws ClientException
ClientException
public boolean isCaseItem() throws ClientException
CaseManagementDocumentActions
isCaseItem
in interface CaseManagementDocumentActions
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.