@Name(value="classificationActions") @Scope(value=CONVERSATION) public class ClassificationActionsBean extends Object implements ClassificationActions
BOOKMARKED_INTO, CLASSIFICATION_DOCUMENTS_CONTENT_VIEW, CLASSIFICATION_ROOTS_PROVIDER_NAME, CURRENT_DOCUMENT_CLASSIFICATIONS_PROVIDER, CURRENT_DOCUMENT_CLASSIFICATIONS_SELECTION, CURRENT_SELECTION_FOR_CLASSIFICATION, CURRENT_SELECTION_FOR_CLASSIFICATION_PAGE, CURRENT_SELECTION_FOR_CLASSIFICATION_PROVIDER, CURRENT_SELECTION_FOR_UNCLASSIFICATION, EVENT_CLASSIFICATION_TREE_CHANGED, TREE_PLUGIN_NAME
Constructor and Description |
---|
ClassificationActionsBean() |
public boolean getCanClassifyCurrentDocument() throws ClientException
ClientException
public boolean getCanClassifyFromCurrentSelection() throws ClientException
getCanClassifyFromCurrentSelection
in interface ClassificationActions
ClientException
public Collection<DocumentModel> getTargetDocuments() throws ClientException
ClassificationActions
May take into account only current email, or all emails in current envelope.
getTargetDocuments
in interface ClassificationActions
ClientException
public String classify(ClassificationTreeNode node) throws ClientException
ClassificationActions
classify
in interface ClassificationActions
ClientException
public Collection<DocumentModel> getMassTargetDocuments() throws ClientException
ClassificationActions
getMassTargetDocuments
in interface ClassificationActions
ClientException
public void simpleClassify(ClassificationTreeNode node) throws ClientException
ClientException
public String massClassify(ClassificationTreeNode node) throws ClientException
ClassificationActions
massClassify
in interface ClassificationActions
ClientException
public boolean classify(Collection<DocumentModel> targetDocs, DocumentModel classificationFolder) throws ClientException
classify
in interface ClassificationActions
ClientException
public String cancelClassification() throws ClientException
cancelClassification
in interface ClassificationActions
ClientException
public String getCurrentClassificationRootId() throws ClientException
getCurrentClassificationRootId
in interface ClassificationActions
ClientException
public void setCurrentClassificationRootId(String newRootId) throws ClientException
setCurrentClassificationRootId
in interface ClassificationActions
ClientException
public String navigateToCurrentClassificationRoot() throws ClientException
navigateToCurrentClassificationRoot
in interface ClassificationActions
ClientException
public DocumentModel getCurrentClassificationRoot() throws ClientException
getCurrentClassificationRoot
in interface ClassificationActions
ClientException
@Factory(value="currentEditableClassificationRootId", scope=EVENT) public String getCurrentEditableClassificationRootId() throws ClientException
getCurrentEditableClassificationRootId
in interface ClassificationActions
ClientException
public void setCurrentEditableClassificationRootId(String newRootId) throws ClientException
setCurrentEditableClassificationRootId
in interface ClassificationActions
ClientException
public DocumentModel getCurrentEditableClassificationRoot() throws ClientException
getCurrentEditableClassificationRoot
in interface ClassificationActions
ClientException
@Factory(value="currentClassificationTree", scope=EVENT) public DocumentTreeNode getCurrentClassificationTree() throws ClientException
getCurrentClassificationTree
in interface ClassificationActions
ClientException
@Factory(value="currentEditableClassificationTree", scope=EVENT) public DocumentTreeNode getCurrentEditableClassificationTree() throws ClientException
getCurrentEditableClassificationTree
in interface ClassificationActions
ClientException
@Factory(value="classificationRoots", scope=EVENT) public DocumentModelList getClassificationRoots() throws ClientException
getClassificationRoots
in interface ClassificationActions
ClientException
@Factory(value="editableClassificationRoots", scope=EVENT) public DocumentModelList getEditableClassificationRoots() throws ClientException
getEditableClassificationRoots
in interface ClassificationActions
ClientException
public void editableClassificationRootSelected(ValueChangeEvent event) throws ClientException
editableClassificationRootSelected
in interface ClassificationActions
ClientException
@Observer(value={"goHome","domainSelectionChanged","documentChanged","navigateToDocument","documentSecurityChanged","documentChildrenChanged"}, create=false) public void resetClassificationData()
resetClassificationData
in interface ClassificationActions
@Observer(value={"goHome","domainSelectionChanged","documentSelectionChanged"}, create=false) public void resetCurrentDocumentClassifications()
resetCurrentDocumentClassifications
in interface ClassificationActions
@Factory(value="currentDocumentClassifications", scope=EVENT) public DocumentModelList getCurrentDocumentClassifications() throws ClientException
getCurrentDocumentClassifications
in interface ClassificationActions
ClientException
public String showCurrentSelectionClassificationForm(String currentViewId) throws ClientException
showCurrentSelectionClassificationForm
in interface ClassificationActions
currentViewId
- the current view id, so that redirection can be
done correctly on cancel.ClientException
public String cancelCurrentSelectionClassificationForm() throws ClientException
cancelCurrentSelectionClassificationForm
in interface ClassificationActions
ClientException
public boolean getCanUnclassifyFromCurrentSelection()
public boolean getCanUnclassifyFromCurrentDocument()
public void unclassify() throws ClientException
unclassify
in interface ClassificationActions
ClientException
public void unclassifyCurrentDocument() throws ClientException
ClientException
public boolean unclassify(Collection<String> targetDocIds, DocumentModel classificationFolder) throws ClientException
unclassify
in interface ClassificationActions
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.