fixes issue 39348: Removed Activation_Message callout and REG_INFO_MESSAGE msg
authorCristian Berner <cristian.berner@openbravo.com>
Thu, 08 Aug 2019 10:40:46 +0200
changeset 36427 302bd81b609d
parent 36426 a4ac557d0271
child 36428 3bc6b379f2cf
fixes issue 39348: Removed Activation_Message callout and REG_INFO_MESSAGE msg

Activation_Message callout has been removed along with any reference to it.
REG_INFO_MESSAGE message has been removed, found being used only in Activation_Message.
Removed calls to Activation_Message callout for columns AD_System_Info_ID and TextProxy in table AD_System_Info.
src-db/database/sourcedata/AD_CALLOUT.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_MESSAGE.xml
src-db/database/sourcedata/AD_MODEL_OBJECT.xml
src/org/openbravo/erpCommon/ad_callouts/Activation_Message.java
--- a/src-db/database/sourcedata/AD_CALLOUT.xml	Thu Aug 08 11:42:05 2019 +0200
+++ b/src-db/database/sourcedata/AD_CALLOUT.xml	Thu Aug 08 10:40:46 2019 +0200
@@ -603,16 +603,6 @@
 <!--1000100000-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--1000100000--></AD_CALLOUT>
 
-<!--1000300000--><AD_CALLOUT>
-<!--1000300000-->  <AD_CALLOUT_ID><![CDATA[1000300000]]></AD_CALLOUT_ID>
-<!--1000300000-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--1000300000-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--1000300000-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--1000300000-->  <NAME><![CDATA[Activation_Message]]></NAME>
-<!--1000300000-->  <DESCRIPTION><![CDATA[Inform the user about the legal issues on Heartbeat activation]]></DESCRIPTION>
-<!--1000300000-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--1000300000--></AD_CALLOUT>
-
 <!--1000400000--><AD_CALLOUT>
 <!--1000400000-->  <AD_CALLOUT_ID><![CDATA[1000400000]]></AD_CALLOUT_ID>
 <!--1000400000-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Thu Aug 08 11:42:05 2019 +0200
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Thu Aug 08 10:40:46 2019 +0200
@@ -240149,7 +240149,6 @@
 <!--1005400215-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
 <!--1005400215-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--1005400215-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
-<!--1005400215-->  <AD_CALLOUT_ID><![CDATA[1000300000]]></AD_CALLOUT_ID>
 <!--1005400215-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--1005400215-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--1005400215-->  <POSITION><![CDATA[1]]></POSITION>
@@ -240709,7 +240708,6 @@
 <!--1005400229-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
 <!--1005400229-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--1005400229-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
-<!--1005400229-->  <AD_CALLOUT_ID><![CDATA[1000300000]]></AD_CALLOUT_ID>
 <!--1005400229-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--1005400229-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--1005400229-->  <POSITION><![CDATA[15]]></POSITION>
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Aug 08 11:42:05 2019 +0200
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Aug 08 10:40:46 2019 +0200
@@ -12535,18 +12535,6 @@
 <!--1000300013-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--1000300013--></AD_MESSAGE>
 
-<!--1000300014--><AD_MESSAGE>
-<!--1000300014-->  <AD_MESSAGE_ID><![CDATA[1000300014]]></AD_MESSAGE_ID>
-<!--1000300014-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--1000300014-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--1000300014-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--1000300014-->  <VALUE><![CDATA[REG_INFO_MESSAGE]]></VALUE>
-<!--1000300014-->  <MSGTEXT><![CDATA[See Help window (“?”) for information on data processing]]></MSGTEXT>
-<!--1000300014-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
-<!--1000300014-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--1000300014-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
-<!--1000300014--></AD_MESSAGE>
-
 <!--1000300015--><AD_MESSAGE>
 <!--1000300015-->  <AD_MESSAGE_ID><![CDATA[1000300015]]></AD_MESSAGE_ID>
 <!--1000300015-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Thu Aug 08 11:42:05 2019 +0200
+++ b/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Thu Aug 08 10:40:46 2019 +0200
@@ -2342,18 +2342,6 @@
 <!--1000100037-->  <NAME><![CDATA[ComboReloadsProcessHelper]]></NAME>
 <!--1000100037--></AD_MODEL_OBJECT>
 
-<!--1000300001--><AD_MODEL_OBJECT>
-<!--1000300001-->  <AD_MODEL_OBJECT_ID><![CDATA[1000300001]]></AD_MODEL_OBJECT_ID>
-<!--1000300001-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--1000300001-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--1000300001-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--1000300001-->  <ACTION><![CDATA[C]]></ACTION>
-<!--1000300001-->  <CLASSNAME><![CDATA[org.openbravo.erpCommon.ad_callouts.Activation_Message]]></CLASSNAME>
-<!--1000300001-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
-<!--1000300001-->  <AD_CALLOUT_ID><![CDATA[1000300000]]></AD_CALLOUT_ID>
-<!--1000300001-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
-<!--1000300001--></AD_MODEL_OBJECT>
-
 <!--1000400000--><AD_MODEL_OBJECT>
 <!--1000400000-->  <AD_MODEL_OBJECT_ID><![CDATA[1000400000]]></AD_MODEL_OBJECT_ID>
 <!--1000400000-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/erpCommon/ad_callouts/Activation_Message.java	Thu Aug 08 11:42:05 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, 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-2017 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
- */
-package org.openbravo.erpCommon.ad_callouts;
-
-import javax.servlet.ServletException;
-
-import org.apache.commons.lang.StringUtils;
-import org.openbravo.base.filter.ValueListFilter;
-import org.openbravo.erpCommon.utility.Utility;
-
-public class Activation_Message extends SimpleCallout {
-  @Override
-  protected void execute(CalloutInfo info) throws ServletException {
-    // Parameters
-    String strHBActive = info.getStringParameter("inpisheartbeatactive",
-        new ValueListFilter("Y", "N"));
-    String strRegActive = info.getStringParameter("inpisregistrationactive",
-        new ValueListFilter("Y", "N"));
-
-    // Message
-    String msg = StringUtils.equalsIgnoreCase(strHBActive, "Y")
-        || StringUtils.equalsIgnoreCase(strRegActive, "Y")
-            ? Utility.messageBD(this, "REG_INFO_MESSAGE", info.vars.getLanguage())
-            : "";
-    if (StringUtils.isNotEmpty(msg)) {
-      info.showMessage(msg);
-    }
-  }
-}