biz.hammurapi.web.analysis
Class AnalysisActions

java.lang.Object
  extended bybiz.hammurapi.web.ActionsBase
      extended bybiz.hammurapi.web.analysis.AnalysisActions

public class AnalysisActions
extends ActionsBase

Performs file operations

Author:
Pavel Vlasov

Nested Class Summary
 
Nested classes inherited from class biz.hammurapi.web.ActionsBase
ActionsBase.ErrorMessage
 
Field Summary
 
Fields inherited from class biz.hammurapi.web.ActionsBase
compositeDomSerializer, converter, REFERRER_HEADER
 
Constructor Summary
AnalysisActions()
           
 
Method Summary
 java.lang.Object beforeCreateAnalysisDocument(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Retrieves data needed for population of the analysis document create form.
 void createAnalysisDocument(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 void createGlossary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 java.lang.Object createMenu(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Creates menu from analysis term and collected information.
 java.lang.Object createTerm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 java.lang.Object createTerms(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads bulk of terms
 java.lang.String generate(javax.servlet.http.HttpServletRequest request)
          Generates content from analysis term
 java.lang.Object getAnalysisDocument(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns file record with content as text
protected static biz.hammurapi.web.file.sql.FileEngine getEngine(javax.servlet.http.HttpServletRequest request)
           
 java.lang.Object getGlossary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns file record with content as text
 java.lang.Object getTermTooltip(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionServlet servlet, java.lang.String path)
           
 void updateAnalysisDocument(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 void updateGlossary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 java.lang.Object updateGlossaryLinks(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 java.lang.Object updateTerm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Uploads file content to database (update).
 java.lang.Object viewAnalysisDocument(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns file record with content as expanded text and with terms attached.
 java.lang.Object viewAnalysisDocumentRo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DispatchingServlet servlet, java.lang.String path)
          Returns file record with content as expanded text and with terms attached.
 java.lang.Object viewGlossary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns file record with content as expanded text and with terms attached.
 java.lang.Object viewGlossaryRo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DispatchingServlet servlet, java.lang.String path)
          Returns file record with content as expanded text and with terms attached.
 
Methods inherited from class biz.hammurapi.web.ActionsBase
getGlobal, getMatched, getMenu, getReferrer, getRemoted, getUid, hasPermission, includeThisInPath, invoke, isBlank, java, request2xml, setReferrer, sql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalysisActions

public AnalysisActions()
Method Detail

getEngine

protected static biz.hammurapi.web.file.sql.FileEngine getEngine(javax.servlet.http.HttpServletRequest request)

updateGlossary

public void updateGlossary(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws java.lang.Exception
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
org.apache.commons.fileupload.FileUploadException
HammurapiWebException
java.security.NoSuchAlgorithmException
java.lang.Exception

createGlossary

public void createGlossary(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws java.io.IOException,
                           java.sql.SQLException,
                           biz.hammurapi.config.ConfigurationException,
                           HammurapiWebException
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
HammurapiWebException

getGlossary

public java.lang.Object getGlossary(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws java.sql.SQLException
Returns file record with content as text

Throws:
java.sql.SQLException

viewGlossary

public java.lang.Object viewGlossary(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
                              throws java.sql.SQLException
Returns file record with content as expanded text and with terms attached.

Throws:
java.sql.SQLException

viewGlossaryRo

public java.lang.Object viewGlossaryRo(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       DispatchingServlet servlet,
                                       java.lang.String path)
                                throws java.sql.SQLException,
                                       javax.xml.parsers.ParserConfigurationException,
                                       javax.xml.parsers.FactoryConfigurationError,
                                       javax.servlet.ServletException
Returns file record with content as expanded text and with terms attached. This method is for read-only view rendering

Throws:
javax.servlet.ServletException
javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.ParserConfigurationException
java.sql.SQLException

updateTerm

public java.lang.Object updateTerm(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.lang.Exception
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
org.apache.commons.fileupload.FileUploadException
HammurapiWebException
java.security.NoSuchAlgorithmException
java.lang.Exception

createTerm

public java.lang.Object createTerm(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.sql.SQLException,
                                   biz.hammurapi.config.ConfigurationException
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.sql.SQLException
biz.hammurapi.config.ConfigurationException

createTerms

public java.lang.Object createTerms(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws java.sql.SQLException,
                                    biz.hammurapi.config.ConfigurationException
Uploads bulk of terms

Parameters:
request -
response -
Throws:
java.sql.SQLException
biz.hammurapi.config.ConfigurationException

getTermTooltip

public java.lang.Object getTermTooltip(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       ActionServlet servlet,
                                       java.lang.String path)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

generate

public java.lang.String generate(javax.servlet.http.HttpServletRequest request)
                          throws java.sql.SQLException,
                                 HammurapiWebException
Generates content from analysis term

Throws:
java.sql.SQLException
HammurapiWebException

createMenu

public java.lang.Object createMenu(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.sql.SQLException,
                                   HammurapiWebException
Creates menu from analysis term and collected information. Redirects to interaction controller on success.

Parameters:
request -
response -
Returns:
Throws:
java.sql.SQLException
HammurapiWebException

updateGlossaryLinks

public java.lang.Object updateGlossaryLinks(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

beforeCreateAnalysisDocument

public java.lang.Object beforeCreateAnalysisDocument(javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws java.sql.SQLException
Retrieves data needed for population of the analysis document create form.

Parameters:
request -
response -
Returns:
Throws:
java.sql.SQLException

getAnalysisDocument

public java.lang.Object getAnalysisDocument(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws java.sql.SQLException
Returns file record with content as text

Throws:
java.sql.SQLException

createAnalysisDocument

public void createAnalysisDocument(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.io.IOException,
                                   java.sql.SQLException,
                                   biz.hammurapi.config.ConfigurationException,
                                   HammurapiWebException
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
HammurapiWebException

updateAnalysisDocument

public void updateAnalysisDocument(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.lang.Exception
Uploads file content to database (update).

Parameters:
request -
response -
Throws:
java.lang.Exception

viewAnalysisDocument

public java.lang.Object viewAnalysisDocument(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws java.sql.SQLException
Returns file record with content as expanded text and with terms attached.

Throws:
java.sql.SQLException

viewAnalysisDocumentRo

public java.lang.Object viewAnalysisDocumentRo(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               DispatchingServlet servlet,
                                               java.lang.String path)
                                        throws java.sql.SQLException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               javax.xml.parsers.FactoryConfigurationError,
                                               javax.servlet.ServletException
Returns file record with content as expanded text and with terms attached. This method is for read-only view rendering

Throws:
javax.servlet.ServletException
javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.ParserConfigurationException
java.sql.SQLException


Copyright © 2006 Hammurapi Group. All Rights Reserved.