Sfoglia il codice sorgente

Fix protocollo

master
Salvatore La Manna 3 anni fa
parent
commit
88b4ab1525
  1. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java
  2. 72
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java

@ -4,6 +4,8 @@ import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo; import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
@ -46,11 +48,12 @@ public class HttpServiceUtil {
request.setEntity(new StringEntity(json)); request.setEntity(new StringEntity(json));
CloseableHttpClient client = HttpClientBuilder.create().build(); CloseableHttpClient client = HttpClientBuilder.create().build();
HttpResponse response = client.execute(request); HttpResponse response = client.execute(request);
int statusCode = response.getStatusLine().getStatusCode(); int statusCode = response.getStatusLine().getStatusCode();
String responseBody = EntityUtils.toString(response.getEntity(), StringPool.UTF8); String responseBody = EntityUtils.toString(response.getEntity(), StringPool.UTF8);
try {
client.close(); client.close();
} catch (IOException e) {
}
if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) {
risposta = JSONFactoryUtil.createJSONObject(responseBody); risposta = JSONFactoryUtil.createJSONObject(responseBody);
_log.info(url + " || " + json + " || " + risposta); _log.info(url + " || " + json + " || " + risposta);

72
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java

@ -208,35 +208,35 @@ public class ControlloPraticaLocalServiceClpInvoker {
_methodParameterTypes215 = new String[] { "long", "java.util.Map" }; _methodParameterTypes215 = new String[] { "long", "java.util.Map" };
_methodName219 = "addPraticheAlControllo"; _methodName223 = "addPraticheAlControllo";
_methodParameterTypes219 = new String[] { "long", "long" }; _methodParameterTypes223 = new String[] { "long", "long" };
_methodName220 = "addPraticheAlControlloVarianti"; _methodName224 = "addPraticheAlControlloVarianti";
_methodParameterTypes220 = new String[] { _methodParameterTypes224 = new String[] {
"long", "long", "com.liferay.portal.service.ServiceContext" "long", "long", "com.liferay.portal.service.ServiceContext"
}; };
_methodName221 = "getReturnValueScriptIniziale"; _methodName225 = "getReturnValueScriptIniziale";
_methodParameterTypes221 = new String[] { "long" }; _methodParameterTypes225 = new String[] { "long" };
_methodName222 = "getTipoEsito"; _methodName226 = "getTipoEsito";
_methodParameterTypes222 = new String[] { "long" }; _methodParameterTypes226 = new String[] { "long" };
_methodName223 = "findByIntPratica"; _methodName227 = "findByIntPratica";
_methodParameterTypes223 = new String[] { "long" }; _methodParameterTypes227 = new String[] { "long" };
_methodName224 = "calculateDateAvvioProcedimento"; _methodName228 = "calculateDateAvvioProcedimento";
_methodParameterTypes224 = new String[] { "long" }; _methodParameterTypes228 = new String[] { "long" };
_methodName225 = "gestioneWFVarianti"; _methodName229 = "gestioneWFVarianti";
_methodParameterTypes225 = new String[] { _methodParameterTypes229 = new String[] {
"it.tref.liferay.portos.bo.model.ControlloPratica" "it.tref.liferay.portos.bo.model.ControlloPratica"
}; };
} }
@ -474,41 +474,41 @@ public class ControlloPraticaLocalServiceClpInvoker {
(java.util.Map<java.lang.String, java.io.Serializable>)arguments[1]); (java.util.Map<java.lang.String, java.io.Serializable>)arguments[1]);
} }
if (_methodName219.equals(name) && if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.addPraticheAlControllo(((Long)arguments[0]).longValue(), return ControlloPraticaLocalServiceUtil.addPraticheAlControllo(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue()); ((Long)arguments[1]).longValue());
} }
if (_methodName220.equals(name) && if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(((Long)arguments[0]).longValue(), return ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[2]); (com.liferay.portal.service.ServiceContext)arguments[2]);
} }
if (_methodName221.equals(name) && if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.getReturnValueScriptIniziale(((Long)arguments[0]).longValue()); return ControlloPraticaLocalServiceUtil.getReturnValueScriptIniziale(((Long)arguments[0]).longValue());
} }
if (_methodName222.equals(name) && if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.getTipoEsito(((Long)arguments[0]).longValue()); return ControlloPraticaLocalServiceUtil.getTipoEsito(((Long)arguments[0]).longValue());
} }
if (_methodName223.equals(name) && if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); return ControlloPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue());
} }
if (_methodName224.equals(name) && if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue()); return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue());
} }
if (_methodName225.equals(name) && if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
ControlloPraticaLocalServiceUtil.gestioneWFVarianti((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); ControlloPraticaLocalServiceUtil.gestioneWFVarianti((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]);
return null; return null;
@ -591,18 +591,18 @@ public class ControlloPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes214; private String[] _methodParameterTypes214;
private String _methodName215; private String _methodName215;
private String[] _methodParameterTypes215; private String[] _methodParameterTypes215;
private String _methodName219;
private String[] _methodParameterTypes219;
private String _methodName220;
private String[] _methodParameterTypes220;
private String _methodName221;
private String[] _methodParameterTypes221;
private String _methodName222;
private String[] _methodParameterTypes222;
private String _methodName223; private String _methodName223;
private String[] _methodParameterTypes223; private String[] _methodParameterTypes223;
private String _methodName224; private String _methodName224;
private String[] _methodParameterTypes224; private String[] _methodParameterTypes224;
private String _methodName225; private String _methodName225;
private String[] _methodParameterTypes225; private String[] _methodParameterTypes225;
private String _methodName226;
private String[] _methodParameterTypes226;
private String _methodName227;
private String[] _methodParameterTypes227;
private String _methodName228;
private String[] _methodParameterTypes228;
private String _methodName229;
private String[] _methodParameterTypes229;
} }

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=3045 build.number=3046
build.date=1618493741615 build.date=1618844951246
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva