Package com.logicaldoc.via
Class VIARequestProcessor
java.lang.Object
com.logicaldoc.via.VIARequestProcessor
An agent that interprets and answers to natural language questions
- Since:
- 7.8
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.logicaldoc.core.communication.EMail
Interprets the question and prepares the answer.void
setAccountDAO
(EmailAccountDAO accountDAO) void
setConfig
(com.logicaldoc.util.config.ContextProperties config) void
setDocumentDAO
(com.logicaldoc.core.document.dao.DocumentDAO documentDAO) void
setFolderDAO
(com.logicaldoc.core.folder.FolderDAO folderDAO) void
setMessageTemplateDAO
(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDAO) void
setStorer
(com.logicaldoc.core.store.Storer storer) void
setTenantDAO
(com.logicaldoc.core.security.dao.TenantDAO tenantDAO)
-
Constructor Details
-
VIARequestProcessor
public VIARequestProcessor()
-
-
Method Details
-
request
public com.logicaldoc.core.communication.EMail request(String question, com.logicaldoc.core.security.User user) Interprets the question and prepares the answer.- Parameters:
question
- The question in natural languageuser
- The user that has send the question- Returns:
- The email with the answer
-
setTenantDAO
public void setTenantDAO(com.logicaldoc.core.security.dao.TenantDAO tenantDAO) -
setStorer
public void setStorer(com.logicaldoc.core.store.Storer storer) -
setFolderDAO
public void setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO) -
setDocumentDAO
public void setDocumentDAO(com.logicaldoc.core.document.dao.DocumentDAO documentDAO) -
setConfig
public void setConfig(com.logicaldoc.util.config.ContextProperties config) -
setMessageTemplateDAO
public void setMessageTemplateDAO(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDAO) -
setAccountDAO
-