Commit 4d6a6361 authored by Cristian Berner's avatar Cristian Berner 💎
Browse files

Fixes ISSUE-45775: Allow extending printing process by increasing post method visibility

post method visibility has been set to protected, previously private to
allow overriding it by methods that need to.
One use-case is to handle vars and modification to vars in this method
differently. Those vars are then passed to doPost method.
parent 31b40ecd
......@@ -8,7 +8,7 @@
* either express or implied. See the License for the specific language
* governing rights and limitations under the License. The Original Code is
* Openbravo ERP. The Initial Developer of the Original Code is Openbravo SLU All
* portions are Copyright (C) 2008-2019 Openbravo SLU All Rights Reserved.
* portions are Copyright (C) 2008-2021 Openbravo SLU All Rights Reserved.
* Contributor(s): ______________________________________.
*/
package org.openbravo.erpCommon.utility.reporting.printing;
......@@ -173,9 +173,9 @@ public class PrintController extends HttpSecureAppServlet {
}
@SuppressWarnings("unchecked")
void post(HttpServletRequest request, HttpServletResponse response, VariablesSecureApp vars,
DocumentType documentType, String sessionValuePrefix, String strDocumentId)
throws IOException, ServletException {
protected void post(HttpServletRequest request, HttpServletResponse response,
VariablesSecureApp vars, DocumentType documentType, String sessionValuePrefix,
String strDocumentId) throws IOException, ServletException {
String localStrDocumentId = strDocumentId;
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment