Class PrintController
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.openbravo.base.HttpBaseServlet
-
- org.openbravo.base.secureApp.HttpSecureAppServlet
-
- org.openbravo.erpCommon.utility.reporting.printing.PrintController
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,ConnectionProvider
- Direct Known Subclasses:
PrintInvoices
,PrintOrders
,PrintPayments
,PrintQuotations
,PrintShipments
public class PrintController extends HttpSecureAppServlet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openbravo.base.secureApp.HttpSecureAppServlet
boolHist, classInfo
-
Fields inherited from class org.openbravo.base.HttpBaseServlet
globalParameters, log4j, myPool, strDefaultServlet, strDireccion, strReplaceWith, strReplaceWithFull, xmlEngine
-
-
Constructor Summary
Constructors Constructor Description PrintController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, Map<String,Report> reports, ReportManager reportManager)
Report
buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, ReportManager reportManager, DocumentType documentType, Report.OutputTypeEnum outputType)
Report
buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, ReportManager reportManager, DocumentType documentType, Report.OutputTypeEnum outputType, String templateId)
void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
String
getServletInfo()
void
init(javax.servlet.ServletConfig config)
Loads basic configuration settings that this class and all that extend it require to function properly.protected void
post(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, DocumentType documentType, String sessionValuePrefix, String strDocumentId)
void
printReports(javax.servlet.http.HttpServletResponse response, Collection<net.sf.jasperreports.engine.JasperPrint> jrPrintReports, Collection<Report> reports)
void
printReports(javax.servlet.http.HttpServletResponse response, Collection<net.sf.jasperreports.engine.JasperPrint> jrPrintReports, Collection<Report> reports, boolean directPrint)
-
Methods inherited from class org.openbravo.base.secureApp.HttpSecureAppServlet
advise, advisePopUp, advisePopUp, advisePopUpRefresh, bdError, bdErrorAjax, bdErrorConnection, bdErrorGeneralPopUp, bdErrorHidden, hasGeneralAccess, invalidateSession, isBackOfficeAccessRequired, licenseError, logout, pageError, pageErrorCallOut, pageErrorPopUp, printPageClosePopUp, printPageClosePopUp, printPageClosePopUp, printPageClosePopUpAndRefreshParent, printPagePopUpDownload, printPagePopUpDownloadAndRefresh, readNumberFormat, readProperties, renderJR, renderJR, renderJR, renderJR, service, setClassInfo, setHistoryCommand, whitePage, whitePage
-
Methods inherited from class org.openbravo.base.HttpBaseServlet
doGet, doGetCall, doPostCall, getBaseDesignPath, getCallableStatement, getCallableStatement, getCallableStatement, getConnection, getPoolStatus, getPreparedStatement, getPreparedStatement, getPreparedStatement, getRDBMS, getStatement, getStatement, getStatement, getStatus, getTransactionConnection, initialize, releaseCallableStatement, releaseCommitConnection, releasePreparedStatement, releaseRollbackConnection, releaseStatement, releaseTransactionalPreparedStatement, releaseTransactionalStatement, serviceInitialized
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openbravo.database.ConnectionProvider
destroy
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config)
Description copied from class:HttpBaseServlet
Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classHttpSecureAppServlet
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
post
protected void post(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, DocumentType documentType, String sessionValuePrefix, String strDocumentId) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
printReports
public void printReports(javax.servlet.http.HttpServletResponse response, Collection<net.sf.jasperreports.engine.JasperPrint> jrPrintReports, Collection<Report> reports)
-
printReports
public void printReports(javax.servlet.http.HttpServletResponse response, Collection<net.sf.jasperreports.engine.JasperPrint> jrPrintReports, Collection<Report> reports, boolean directPrint)
-
buildReport
public Report buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, ReportManager reportManager, DocumentType documentType, Report.OutputTypeEnum outputType)
-
buildReport
public Report buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, ReportManager reportManager, DocumentType documentType, Report.OutputTypeEnum outputType, String templateId)
-
buildReport
public void buildReport(javax.servlet.http.HttpServletResponse response, VariablesSecureApp vars, String strDocumentId, Map<String,Report> reports, ReportManager reportManager) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
- Overrides:
getServletInfo
in classHttpSecureAppServlet
-
-