Nuxeo Enterprise Platform 5.4

org.nuxeo.correspondence.web.mail
Class CorrespondenceSearchDocumentBean

java.lang.Object
  extended by org.nuxeo.cm.web.invalidations.CaseManagementContextBoundInstance
      extended by org.nuxeo.correspondence.web.mail.CorrespondenceSearchDocumentBean
All Implemented Interfaces:
Serializable, CaseManagementContextHolder, CorrespondenceSearchDocument, org.nuxeo.ecm.platform.ui.web.api.ResultsProviderFarm

@Name(value="correspSearchDocument")
@Scope(value=CONVERSATION)
public class CorrespondenceSearchDocumentBean
extends CaseManagementContextBoundInstance
implements CorrespondenceSearchDocument, org.nuxeo.ecm.platform.ui.web.api.ResultsProviderFarm

Author:
Nicolas Ulrich
See Also:
Serialized Form

Constructor Summary
CorrespondenceSearchDocumentBean()
           
 
Method Summary
 String addSelectedEmails()
          Adds selected email to current envelope documents
 String cancelEmailAttachmentsSearch()
           
 org.nuxeo.ecm.core.api.PagedDocumentsProvider getResultsProvider(String name)
           
 org.nuxeo.ecm.core.api.PagedDocumentsProvider getResultsProvider(String name, org.nuxeo.ecm.core.api.SortInfo sortInfo)
           
 org.nuxeo.ecm.platform.ui.web.model.SelectDataModel getSearchEmailResults()
           
 String getSearchKeywords()
           
 boolean isHasSearchResults()
           
 void searchMailDocument()
           
 void setSearchKeywords(String searchKeywords)
           
 
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

CorrespondenceSearchDocumentBean

public CorrespondenceSearchDocumentBean()
Method Detail

getSearchKeywords

public String getSearchKeywords()
Specified by:
getSearchKeywords in interface CorrespondenceSearchDocument

setSearchKeywords

public void setSearchKeywords(String searchKeywords)
Specified by:
setSearchKeywords in interface CorrespondenceSearchDocument

isHasSearchResults

public boolean isHasSearchResults()

searchMailDocument

public void searchMailDocument()
Specified by:
searchMailDocument in interface CorrespondenceSearchDocument

cancelEmailAttachmentsSearch

public String cancelEmailAttachmentsSearch()
                                    throws org.nuxeo.ecm.core.api.ClientException
Specified by:
cancelEmailAttachmentsSearch in interface CorrespondenceSearchDocument
Throws:
org.nuxeo.ecm.core.api.ClientException

getSearchEmailResults

public org.nuxeo.ecm.platform.ui.web.model.SelectDataModel getSearchEmailResults()
                                                                          throws org.nuxeo.ecm.core.api.ClientException
Specified by:
getSearchEmailResults in interface CorrespondenceSearchDocument
Throws:
org.nuxeo.ecm.core.api.ClientException

addSelectedEmails

public String addSelectedEmails()
                         throws org.nuxeo.ecm.core.api.ClientException
Adds selected email to current envelope documents

As long as envelope is not saved, relations are not updated, but current envelope keeps track of its email documents.

Specified by:
addSelectedEmails in interface CorrespondenceSearchDocument
Throws:
org.nuxeo.ecm.core.api.ClientException

getResultsProvider

public org.nuxeo.ecm.core.api.PagedDocumentsProvider getResultsProvider(String name)
                                                                 throws org.nuxeo.ecm.core.api.ClientException,
                                                                        org.nuxeo.ecm.platform.ui.web.pagination.ResultsProviderFarmUserException
Specified by:
getResultsProvider in interface org.nuxeo.ecm.platform.ui.web.api.ResultsProviderFarm
Throws:
org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.platform.ui.web.pagination.ResultsProviderFarmUserException

getResultsProvider

public org.nuxeo.ecm.core.api.PagedDocumentsProvider getResultsProvider(String name,
                                                                        org.nuxeo.ecm.core.api.SortInfo sortInfo)
                                                                 throws org.nuxeo.ecm.core.api.ClientException,
                                                                        org.nuxeo.ecm.platform.ui.web.pagination.ResultsProviderFarmUserException
Specified by:
getResultsProvider in interface org.nuxeo.ecm.platform.ui.web.api.ResultsProviderFarm
Throws:
org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.platform.ui.web.pagination.ResultsProviderFarmUserException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.