Class ImportProductInDiscount
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.openbravo.base.HttpBaseServlet
-
- org.openbravo.base.secureApp.HttpSecureAppServlet
-
- org.openbravo.client.application.businesslogic.ProcessUploadedFile
-
- org.openbravo.client.application.businesslogic.ImportProductInDiscount
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,ConnectionProvider
public class ImportProductInDiscount extends ProcessUploadedFile
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbravo.client.application.businesslogic.ProcessUploadedFile
ProcessUploadedFile.UploadResult
-
-
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 ImportProductInDiscount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearBeforeImport(String ownerId, org.codehaus.jettison.json.JSONObject paramValues)
This method is called when the parameter import mode is set to import and replace.protected ProcessUploadedFile.UploadResult
doProcessFile(org.codehaus.jettison.json.JSONObject paramValues, File file)
Is called to process the content of the uploaded file.protected List<String>
getProductIds(String clientId, String orgId, String productKey)
-
Methods inherited from class org.openbravo.client.application.businesslogic.ProcessUploadedFile
doPost, post, processFile, readAndReturnResult, uploadFile
-
Methods inherited from class org.openbravo.base.secureApp.HttpSecureAppServlet
advise, advisePopUp, advisePopUp, advisePopUpRefresh, bdError, bdErrorAjax, bdErrorConnection, bdErrorGeneralPopUp, bdErrorHidden, getServletInfo, hasGeneralAccess, init, invalidateSession, 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
-
clearBeforeImport
protected void clearBeforeImport(String ownerId, org.codehaus.jettison.json.JSONObject paramValues)
Description copied from class:ProcessUploadedFile
This method is called when the parameter import mode is set to import and replace. In that case the current content should be removed. The ownerId is the id of the parent record.- Specified by:
clearBeforeImport
in classProcessUploadedFile
-
doProcessFile
protected ProcessUploadedFile.UploadResult doProcessFile(org.codehaus.jettison.json.JSONObject paramValues, File file) throws Exception
Description copied from class:ProcessUploadedFile
Is called to process the content of the uploaded file. The results should be returned in the uploadResult object.- Specified by:
doProcessFile
in classProcessUploadedFile
- Throws:
Exception
-
-