Sfoglia il codice sorgente

Merge branch 'features/quarkus-rest-bridge' of https://gitea.lavoripubblici.sicilia.it/bbcc/paesaggistica into features/quarkus-rest-bridge

# Conflicts:
#	liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
#	liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
#	liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
#	liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
#	liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
#	liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
#	liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
#	liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
#	liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
#	liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
#	liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.classpath
#	liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
features/quarkus-rest-bridge
E-A 2 anni fa
parent
commit
f63544a906
  1. 15
      liferay-plugins-sdk-6.2/build.malde.properties
  2. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  3. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  4. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  5. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  6. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  12. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  13. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  14. 121
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java
  15. 45
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java
  16. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java
  17. 81
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java
  18. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  19. 270
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  20. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  21. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  22. 65
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java
  23. 85
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java
  24. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties
  25. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql
  26. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  27. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  28. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  29. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  30. 56
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java
  31. 175
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java
  32. 242
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  33. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  34. 331
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
  35. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  36. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-collections.jar
  37. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-lang.jar
  38. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-logging.jar
  39. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-api.jar
  40. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  41. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/log4j.jar
  42. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-bridges.jar
  43. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-taglib.jar
  44. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity-tools.jar
  45. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity.jar
  46. 572
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/c.tld
  47. 10
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.classpath
  48. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  49. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  50. 2
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-portlet.xml
  51. 1
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portal.properties
  52. 102
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/action/StartUpAction.java
  53. 8
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/persistence/PraticaValidator.java
  54. 6
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeConstants.java
  55. 176
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeMessageFactoryUtil.java
  56. 627
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/scheduler/QuarkusBridgeScheduler.java
  57. 10
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath

15
liferay-plugins-sdk-6.2/build.malde.properties

@ -0,0 +1,15 @@
# Managed by Liferay IDE (remove this comment to prevent future updates)
#Managed by Liferay IDE (remove this comment to prevent future updates)
#Fri Feb 17 13:42:23 CET 2023
app.server.tomcat.lib.global.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\lib\\ext
app.server.tomcat.deploy.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps
app.server.parent.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6-patched6.2.5
app.server.tomcat.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps\\ROOT
ant.build.javac.source = 1.7
ant.build.javac.target = 1.7
ivy.version = 2.4.0
ivy.jar.url = http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar

BIN
liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar

File binario non mostrato.

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml

@ -835,6 +835,9 @@
<column name="soggetti" type="Collection" entity="Soggetto" mapping-key="intPraticaId" /> <column name="soggetti" type="Collection" entity="Soggetto" mapping-key="intPraticaId" />
<column name="docPratiche" type="Collection" entity="DocPratica" mapping-key="intPraticaId" /> <column name="docPratiche" type="Collection" entity="DocPratica" mapping-key="intPraticaId" />
<column name="inLavorazioneSue" type="boolean" /> <column name="inLavorazioneSue" type="boolean" />
<column name="sueSuapInstanceId" type="String" />
<column name="sueSuapClientId" type="String" />
<column name="sueSuapIpaCode" type="String" />
<finder name="C_UserId" return-type="Collection"> <finder name="C_UserId" return-type="Collection">
<finder-column name="companyId" /> <finder-column name="companyId" />
@ -859,6 +862,11 @@
<finder-column name="statoPratica" /> <finder-column name="statoPratica" />
</finder> </finder>
<finder name="IntPraticaId_SueSuapInstanceId" return-type="IntPratica" unique="true" db-index="true">
<finder-column name="intPraticaId" />
<finder-column name="sueSuapInstanceId" />
</finder>
<reference package-path="com.liferay.portlet.documentlibrary" entity="DLApp" /> <reference package-path="com.liferay.portlet.documentlibrary" entity="DLApp" />
</entity> </entity>

121
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java

@ -112,6 +112,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("collaudoTotale", getCollaudoTotale());
attributes.put("controlloObbligatorio", getControlloObbligatorio()); attributes.put("controlloObbligatorio", getControlloObbligatorio());
attributes.put("inLavorazioneSue", getInLavorazioneSue()); attributes.put("inLavorazioneSue", getInLavorazioneSue());
attributes.put("sueSuapInstanceId", getSueSuapInstanceId());
attributes.put("sueSuapClientId", getSueSuapClientId());
attributes.put("sueSuapIpaCode", getSueSuapIpaCode());
return attributes; return attributes;
} }
@ -326,6 +329,24 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
if (inLavorazioneSue != null) { if (inLavorazioneSue != null) {
setInLavorazioneSue(inLavorazioneSue); setInLavorazioneSue(inLavorazioneSue);
} }
String sueSuapInstanceId = (String)attributes.get("sueSuapInstanceId");
if (sueSuapInstanceId != null) {
setSueSuapInstanceId(sueSuapInstanceId);
}
String sueSuapClientId = (String)attributes.get("sueSuapClientId");
if (sueSuapClientId != null) {
setSueSuapClientId(sueSuapClientId);
}
String sueSuapIpaCode = (String)attributes.get("sueSuapIpaCode");
if (sueSuapIpaCode != null) {
setSueSuapIpaCode(sueSuapIpaCode);
}
} }
@Override @Override
@ -1185,6 +1206,78 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
} }
@Override
public String getSueSuapInstanceId() {
return _sueSuapInstanceId;
}
@Override
public void setSueSuapInstanceId(String sueSuapInstanceId) {
_sueSuapInstanceId = sueSuapInstanceId;
if (_intPraticaRemoteModel != null) {
try {
Class<?> clazz = _intPraticaRemoteModel.getClass();
Method method = clazz.getMethod("setSueSuapInstanceId",
String.class);
method.invoke(_intPraticaRemoteModel, sueSuapInstanceId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getSueSuapClientId() {
return _sueSuapClientId;
}
@Override
public void setSueSuapClientId(String sueSuapClientId) {
_sueSuapClientId = sueSuapClientId;
if (_intPraticaRemoteModel != null) {
try {
Class<?> clazz = _intPraticaRemoteModel.getClass();
Method method = clazz.getMethod("setSueSuapClientId",
String.class);
method.invoke(_intPraticaRemoteModel, sueSuapClientId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getSueSuapIpaCode() {
return _sueSuapIpaCode;
}
@Override
public void setSueSuapIpaCode(String sueSuapIpaCode) {
_sueSuapIpaCode = sueSuapIpaCode;
if (_intPraticaRemoteModel != null) {
try {
Class<?> clazz = _intPraticaRemoteModel.getClass();
Method method = clazz.getMethod("setSueSuapIpaCode",
String.class);
method.invoke(_intPraticaRemoteModel, sueSuapIpaCode);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override @Override
public boolean canEditPratica() { public boolean canEditPratica() {
try { try {
@ -2318,6 +2411,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
clone.setCollaudoTotale(getCollaudoTotale()); clone.setCollaudoTotale(getCollaudoTotale());
clone.setControlloObbligatorio(getControlloObbligatorio()); clone.setControlloObbligatorio(getControlloObbligatorio());
clone.setInLavorazioneSue(getInLavorazioneSue()); clone.setInLavorazioneSue(getInLavorazioneSue());
clone.setSueSuapInstanceId(getSueSuapInstanceId());
clone.setSueSuapClientId(getSueSuapClientId());
clone.setSueSuapIpaCode(getSueSuapIpaCode());
return clone; return clone;
} }
@ -2370,7 +2466,7 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(69); StringBundler sb = new StringBundler(75);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -2440,6 +2536,12 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
sb.append(getControlloObbligatorio()); sb.append(getControlloObbligatorio());
sb.append(", inLavorazioneSue="); sb.append(", inLavorazioneSue=");
sb.append(getInLavorazioneSue()); sb.append(getInLavorazioneSue());
sb.append(", sueSuapInstanceId=");
sb.append(getSueSuapInstanceId());
sb.append(", sueSuapClientId=");
sb.append(getSueSuapClientId());
sb.append(", sueSuapIpaCode=");
sb.append(getSueSuapIpaCode());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -2447,7 +2549,7 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(106); StringBundler sb = new StringBundler(115);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.IntPratica"); sb.append("it.tref.liferay.portos.bo.model.IntPratica");
@ -2589,6 +2691,18 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
"<column><column-name>inLavorazioneSue</column-name><column-value><![CDATA["); "<column><column-name>inLavorazioneSue</column-name><column-value><![CDATA[");
sb.append(getInLavorazioneSue()); sb.append(getInLavorazioneSue());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapInstanceId</column-name><column-value><![CDATA[");
sb.append(getSueSuapInstanceId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapClientId</column-name><column-value><![CDATA[");
sb.append(getSueSuapClientId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapIpaCode</column-name><column-value><![CDATA[");
sb.append(getSueSuapIpaCode());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -2631,6 +2745,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
private boolean _collaudoTotale; private boolean _collaudoTotale;
private boolean _controlloObbligatorio; private boolean _controlloObbligatorio;
private boolean _inLavorazioneSue; private boolean _inLavorazioneSue;
private String _sueSuapInstanceId;
private String _sueSuapClientId;
private String _sueSuapIpaCode;
private BaseModel<?> _intPraticaRemoteModel; private BaseModel<?> _intPraticaRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
} }

45
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java

@ -650,6 +650,51 @@ public interface IntPraticaModel extends BaseModel<IntPratica>,
*/ */
public void setInLavorazioneSue(boolean inLavorazioneSue); public void setInLavorazioneSue(boolean inLavorazioneSue);
/**
* Returns the sue suap instance ID of this int pratica.
*
* @return the sue suap instance ID of this int pratica
*/
@AutoEscape
public String getSueSuapInstanceId();
/**
* Sets the sue suap instance ID of this int pratica.
*
* @param sueSuapInstanceId the sue suap instance ID of this int pratica
*/
public void setSueSuapInstanceId(String sueSuapInstanceId);
/**
* Returns the sue suap client ID of this int pratica.
*
* @return the sue suap client ID of this int pratica
*/
@AutoEscape
public String getSueSuapClientId();
/**
* Sets the sue suap client ID of this int pratica.
*
* @param sueSuapClientId the sue suap client ID of this int pratica
*/
public void setSueSuapClientId(String sueSuapClientId);
/**
* Returns the sue suap ipa code of this int pratica.
*
* @return the sue suap ipa code of this int pratica
*/
@AutoEscape
public String getSueSuapIpaCode();
/**
* Sets the sue suap ipa code of this int pratica.
*
* @param sueSuapIpaCode the sue suap ipa code of this int pratica
*/
public void setSueSuapIpaCode(String sueSuapIpaCode);
@Override @Override
public boolean isNew(); public boolean isNew();

30
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java

@ -65,6 +65,9 @@ public class IntPraticaSoap implements Serializable {
soapModel.setCollaudoTotale(model.getCollaudoTotale()); soapModel.setCollaudoTotale(model.getCollaudoTotale());
soapModel.setControlloObbligatorio(model.getControlloObbligatorio()); soapModel.setControlloObbligatorio(model.getControlloObbligatorio());
soapModel.setInLavorazioneSue(model.getInLavorazioneSue()); soapModel.setInLavorazioneSue(model.getInLavorazioneSue());
soapModel.setSueSuapInstanceId(model.getSueSuapInstanceId());
soapModel.setSueSuapClientId(model.getSueSuapClientId());
soapModel.setSueSuapIpaCode(model.getSueSuapIpaCode());
return soapModel; return soapModel;
} }
@ -423,6 +426,30 @@ public class IntPraticaSoap implements Serializable {
_inLavorazioneSue = inLavorazioneSue; _inLavorazioneSue = inLavorazioneSue;
} }
public String getSueSuapInstanceId() {
return _sueSuapInstanceId;
}
public void setSueSuapInstanceId(String sueSuapInstanceId) {
_sueSuapInstanceId = sueSuapInstanceId;
}
public String getSueSuapClientId() {
return _sueSuapClientId;
}
public void setSueSuapClientId(String sueSuapClientId) {
_sueSuapClientId = sueSuapClientId;
}
public String getSueSuapIpaCode() {
return _sueSuapIpaCode;
}
public void setSueSuapIpaCode(String sueSuapIpaCode) {
_sueSuapIpaCode = sueSuapIpaCode;
}
private String _uuid; private String _uuid;
private long _intPraticaId; private long _intPraticaId;
private long _companyId; private long _companyId;
@ -457,4 +484,7 @@ public class IntPraticaSoap implements Serializable {
private boolean _collaudoTotale; private boolean _collaudoTotale;
private boolean _controlloObbligatorio; private boolean _controlloObbligatorio;
private boolean _inLavorazioneSue; private boolean _inLavorazioneSue;
private String _sueSuapInstanceId;
private String _sueSuapClientId;
private String _sueSuapIpaCode;
} }

81
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java

@ -86,6 +86,9 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("collaudoTotale", getCollaudoTotale());
attributes.put("controlloObbligatorio", getControlloObbligatorio()); attributes.put("controlloObbligatorio", getControlloObbligatorio());
attributes.put("inLavorazioneSue", getInLavorazioneSue()); attributes.put("inLavorazioneSue", getInLavorazioneSue());
attributes.put("sueSuapInstanceId", getSueSuapInstanceId());
attributes.put("sueSuapClientId", getSueSuapClientId());
attributes.put("sueSuapIpaCode", getSueSuapIpaCode());
return attributes; return attributes;
} }
@ -300,6 +303,24 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
if (inLavorazioneSue != null) { if (inLavorazioneSue != null) {
setInLavorazioneSue(inLavorazioneSue); setInLavorazioneSue(inLavorazioneSue);
} }
String sueSuapInstanceId = (String)attributes.get("sueSuapInstanceId");
if (sueSuapInstanceId != null) {
setSueSuapInstanceId(sueSuapInstanceId);
}
String sueSuapClientId = (String)attributes.get("sueSuapClientId");
if (sueSuapClientId != null) {
setSueSuapClientId(sueSuapClientId);
}
String sueSuapIpaCode = (String)attributes.get("sueSuapIpaCode");
if (sueSuapIpaCode != null) {
setSueSuapIpaCode(sueSuapIpaCode);
}
} }
/** /**
@ -1128,6 +1149,66 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
_intPratica.setInLavorazioneSue(inLavorazioneSue); _intPratica.setInLavorazioneSue(inLavorazioneSue);
} }
/**
* Returns the sue suap instance ID of this int pratica.
*
* @return the sue suap instance ID of this int pratica
*/
@Override
public java.lang.String getSueSuapInstanceId() {
return _intPratica.getSueSuapInstanceId();
}
/**
* Sets the sue suap instance ID of this int pratica.
*
* @param sueSuapInstanceId the sue suap instance ID of this int pratica
*/
@Override
public void setSueSuapInstanceId(java.lang.String sueSuapInstanceId) {
_intPratica.setSueSuapInstanceId(sueSuapInstanceId);
}
/**
* Returns the sue suap client ID of this int pratica.
*
* @return the sue suap client ID of this int pratica
*/
@Override
public java.lang.String getSueSuapClientId() {
return _intPratica.getSueSuapClientId();
}
/**
* Sets the sue suap client ID of this int pratica.
*
* @param sueSuapClientId the sue suap client ID of this int pratica
*/
@Override
public void setSueSuapClientId(java.lang.String sueSuapClientId) {
_intPratica.setSueSuapClientId(sueSuapClientId);
}
/**
* Returns the sue suap ipa code of this int pratica.
*
* @return the sue suap ipa code of this int pratica
*/
@Override
public java.lang.String getSueSuapIpaCode() {
return _intPratica.getSueSuapIpaCode();
}
/**
* Sets the sue suap ipa code of this int pratica.
*
* @param sueSuapIpaCode the sue suap ipa code of this int pratica
*/
@Override
public void setSueSuapIpaCode(java.lang.String sueSuapIpaCode) {
_intPratica.setSueSuapIpaCode(sueSuapIpaCode);
}
@Override @Override
public boolean isNew() { public boolean isNew() {
return _intPratica.isNew(); return _intPratica.isNew();

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java

@ -457,6 +457,11 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti( public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end) long companyId, long soggettoId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

270
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java

@ -271,149 +271,153 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
_methodParameterTypes51 = new String[] { "long", "long" }; _methodParameterTypes51 = new String[] { "long", "long" };
_methodName52 = "findByCompanyIdSoggettoAltriProgetti"; _methodName52 = "fetchByIntPraticaId_SueSuapInstanceId";
_methodParameterTypes52 = new String[] { "long", "long", "int", "int" }; _methodParameterTypes52 = new String[] { "long", "java.lang.String" };
_methodName53 = "countByCompanyIdSoggettoAltriProgetti"; _methodName53 = "findByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes53 = new String[] { "long", "long" }; _methodParameterTypes53 = new String[] { "long", "long", "int", "int" };
_methodName54 = "findByCanAddFineLavori"; _methodName54 = "countByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes54 = new String[] { _methodParameterTypes54 = new String[] { "long", "long" };
_methodName55 = "findByCanAddFineLavori";
_methodParameterTypes55 = new String[] {
"long", "java.lang.String", "int", "int" "long", "java.lang.String", "int", "int"
}; };
_methodName55 = "countByCanAddFineLavori"; _methodName56 = "countByCanAddFineLavori";
_methodParameterTypes55 = new String[] { "long", "java.lang.String" }; _methodParameterTypes56 = new String[] { "long", "java.lang.String" };
_methodName56 = "findByCanAddCollaudo"; _methodName57 = "findByCanAddCollaudo";
_methodParameterTypes56 = new String[] { _methodParameterTypes57 = new String[] {
"long", "java.lang.String", "int", "int" "long", "java.lang.String", "int", "int"
}; };
_methodName57 = "countByCanAddCollaudo"; _methodName58 = "countByCanAddCollaudo";
_methodParameterTypes57 = new String[] { "long", "java.lang.String" }; _methodParameterTypes58 = new String[] { "long", "java.lang.String" };
_methodName58 = "search"; _methodName59 = "search";
_methodParameterTypes58 = new String[] { "java.util.List", "int", "int" }; _methodParameterTypes59 = new String[] { "java.util.List", "int", "int" };
_methodName59 = "countSearch"; _methodName60 = "countSearch";
_methodParameterTypes59 = new String[] { "java.util.List" }; _methodParameterTypes60 = new String[] { "java.util.List" };
_methodName60 = "searchWithIntPraticaId"; _methodName61 = "searchWithIntPraticaId";
_methodParameterTypes60 = new String[] { _methodParameterTypes61 = new String[] {
"java.util.List", "long", "int", "int" "java.util.List", "long", "int", "int"
}; };
_methodName61 = "allegaFileAnnullamento"; _methodName62 = "allegaFileAnnullamento";
_methodParameterTypes61 = new String[] { _methodParameterTypes62 = new String[] {
"long", "byte[][]", "java.lang.String", "java.lang.String", "long", "byte[][]", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName62 = "generateFileAnnullamento"; _methodName63 = "generateFileAnnullamento";
_methodParameterTypes62 = new String[] { _methodParameterTypes63 = new String[] {
"long", "com.liferay.portal.service.ServiceContext" "long", "com.liferay.portal.service.ServiceContext"
}; };
_methodName63 = "deleteFileAnnullamento"; _methodName64 = "deleteFileAnnullamento";
_methodParameterTypes63 = new String[] { "long" }; _methodParameterTypes64 = new String[] { "long" };
_methodName64 = "completeAnnullamento"; _methodName65 = "completeAnnullamento";
_methodParameterTypes64 = new String[] { "long" }; _methodParameterTypes65 = new String[] { "long" };
_methodName65 = "cambiaIstruttore"; _methodName66 = "cambiaIstruttore";
_methodParameterTypes65 = new String[] { "long", "long", "long" }; _methodParameterTypes66 = new String[] { "long", "long", "long" };
_methodName66 = "countCaricoLavoroCF"; _methodName67 = "countCaricoLavoroCF";
_methodParameterTypes66 = new String[] { _methodParameterTypes67 = new String[] {
"long", "java.lang.String", "java.lang.Long[][]" "long", "java.lang.String", "java.lang.Long[][]"
}; };
_methodName67 = "countCaricoLavoroIstruttore"; _methodName68 = "countCaricoLavoroIstruttore";
_methodParameterTypes67 = new String[] { "long", "java.lang.String" }; _methodParameterTypes68 = new String[] { "long", "java.lang.String" };
_methodName68 = "generateReportPratica"; _methodName69 = "generateReportPratica";
_methodParameterTypes68 = new String[] { _methodParameterTypes69 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long" "it.tref.liferay.portos.bo.model.IntPratica", "long"
}; };
_methodName69 = "updateModifiedDate"; _methodName70 = "updateModifiedDate";
_methodParameterTypes69 = new String[] { "long", "java.util.Date" }; _methodParameterTypes70 = new String[] { "long", "java.util.Date" };
_methodName70 = "reIndexFascicolo"; _methodName71 = "reIndexFascicolo";
_methodParameterTypes70 = new String[] { _methodParameterTypes71 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long" "it.tref.liferay.portos.bo.model.IntPratica", "long"
}; };
_methodName71 = "reIndexFasciolo";
_methodParameterTypes71 = new String[] { "java.lang.String", "long" };
_methodName72 = "reIndexFasciolo"; _methodName72 = "reIndexFasciolo";
_methodParameterTypes72 = new String[] { "long", "long" }; _methodParameterTypes72 = new String[] { "java.lang.String", "long" };
_methodName73 = "findByNumeroProgetto"; _methodName73 = "reIndexFasciolo";
_methodParameterTypes73 = new String[] { "java.lang.String" }; _methodParameterTypes73 = new String[] { "long", "long" };
_methodName74 = "findByTerritorioId"; _methodName74 = "findByNumeroProgetto";
_methodParameterTypes74 = new String[] { "long" }; _methodParameterTypes74 = new String[] { "java.lang.String" };
_methodName75 = "getOrganizationByIntPraticaId"; _methodName75 = "findByTerritorioId";
_methodParameterTypes75 = new String[] { "long" }; _methodParameterTypes75 = new String[] { "long" };
_methodName76 = "hasRichiestaIntegrazioneAttiva"; _methodName76 = "getOrganizationByIntPraticaId";
_methodParameterTypes76 = new String[] { "long" }; _methodParameterTypes76 = new String[] { "long" };
_methodName77 = "invioMailNotifica"; _methodName77 = "hasRichiestaIntegrazioneAttiva";
_methodParameterTypes77 = new String[] { "long" };
_methodParameterTypes77 = new String[] { _methodName78 = "invioMailNotifica";
_methodParameterTypes78 = new String[] {
"long", "long", "java.lang.String", "java.lang.String[][]", "long", "long", "java.lang.String", "java.lang.String[][]",
"java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]",
"java.lang.String", "com.liferay.portal.kernel.json.JSONObject", "java.lang.String", "com.liferay.portal.kernel.json.JSONObject",
"java.util.List", "com.liferay.portal.service.ServiceContext" "java.util.List", "com.liferay.portal.service.ServiceContext"
}; };
_methodName78 = "searchAltriProgetti"; _methodName79 = "searchAltriProgetti";
_methodParameterTypes78 = new String[] { _methodParameterTypes79 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
_methodName79 = "searchArchivioProgetti"; _methodName80 = "searchArchivioProgetti";
_methodParameterTypes79 = new String[] { _methodParameterTypes80 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
_methodName80 = "searchMieiProgetti"; _methodName81 = "searchMieiProgetti";
_methodParameterTypes80 = new String[] { _methodParameterTypes81 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
@ -2119,6 +2123,40 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
return ((Integer)returnObj).intValue(); return ((Integer)returnObj).intValue();
} }
@Override
public it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName52,
_methodParameterTypes52,
new Object[] {
intPraticaId,
ClpSerializer.translateInput(sueSuapInstanceId)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj);
}
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti( public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end) long companyId, long soggettoId, int start, int end)
@ -2127,8 +2165,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName52, returnObj = _invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes52, _methodParameterTypes53,
new Object[] { companyId, soggettoId, start, end }); new Object[] { companyId, soggettoId, start, end });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2162,8 +2200,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName53, returnObj = _invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes53, _methodParameterTypes54,
new Object[] { companyId, soggettoId }); new Object[] { companyId, soggettoId });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2197,8 +2235,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName54, returnObj = _invokableLocalService.invokeMethod(_methodName55,
_methodParameterTypes54, _methodParameterTypes55,
new Object[] { new Object[] {
companyId, companyId,
@ -2240,8 +2278,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName55, returnObj = _invokableLocalService.invokeMethod(_methodName56,
_methodParameterTypes55, _methodParameterTypes56,
new Object[] { new Object[] {
companyId, companyId,
@ -2279,8 +2317,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName56, returnObj = _invokableLocalService.invokeMethod(_methodName57,
_methodParameterTypes56, _methodParameterTypes57,
new Object[] { new Object[] {
companyId, companyId,
@ -2322,8 +2360,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName57, returnObj = _invokableLocalService.invokeMethod(_methodName58,
_methodParameterTypes57, _methodParameterTypes58,
new Object[] { new Object[] {
companyId, companyId,
@ -2360,8 +2398,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName58, returnObj = _invokableLocalService.invokeMethod(_methodName59,
_methodParameterTypes58, _methodParameterTypes59,
new Object[] { new Object[] {
ClpSerializer.translateInput(groupIds), ClpSerializer.translateInput(groupIds),
@ -2395,8 +2433,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName59, returnObj = _invokableLocalService.invokeMethod(_methodName60,
_methodParameterTypes59, _methodParameterTypes60,
new Object[] { ClpSerializer.translateInput(groupIds) }); new Object[] { ClpSerializer.translateInput(groupIds) });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2425,8 +2463,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName60, returnObj = _invokableLocalService.invokeMethod(_methodName61,
_methodParameterTypes60, _methodParameterTypes61,
new Object[] { new Object[] {
ClpSerializer.translateInput(groupIds), ClpSerializer.translateInput(groupIds),
@ -2467,8 +2505,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName61, returnObj = _invokableLocalService.invokeMethod(_methodName62,
_methodParameterTypes61, _methodParameterTypes62,
new Object[] { new Object[] {
intPraticaId, intPraticaId,
@ -2518,8 +2556,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName62, returnObj = _invokableLocalService.invokeMethod(_methodName63,
_methodParameterTypes62, _methodParameterTypes63,
new Object[] { new Object[] {
intPraticaId, intPraticaId,
@ -2558,8 +2596,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName63, _invokableLocalService.invokeMethod(_methodName64,
_methodParameterTypes63, _methodParameterTypes64,
new Object[] { docPraticaAnnullamentoId }); new Object[] { docPraticaAnnullamentoId });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2588,8 +2626,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName64, _invokableLocalService.invokeMethod(_methodName65,
_methodParameterTypes64, new Object[] { intPraticaId }); _methodParameterTypes65, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2618,8 +2656,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName65, _invokableLocalService.invokeMethod(_methodName66,
_methodParameterTypes65, _methodParameterTypes66,
new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); new Object[] { intPraticaId, controlloPraticaId, istruttoreId });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2651,8 +2689,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName66, returnObj = _invokableLocalService.invokeMethod(_methodName67,
_methodParameterTypes66, _methodParameterTypes67,
new Object[] { new Object[] {
ispettoreId, ispettoreId,
@ -2691,8 +2729,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName67, returnObj = _invokableLocalService.invokeMethod(_methodName68,
_methodParameterTypes67, _methodParameterTypes68,
new Object[] { new Object[] {
ispettoreId, ispettoreId,
@ -2726,8 +2764,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName68, returnObj = _invokableLocalService.invokeMethod(_methodName69,
_methodParameterTypes68, _methodParameterTypes69,
new Object[] { new Object[] {
ClpSerializer.translateInput(intPratica), ClpSerializer.translateInput(intPratica),
@ -2765,8 +2803,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName69, returnObj = _invokableLocalService.invokeMethod(_methodName70,
_methodParameterTypes69, _methodParameterTypes70,
new Object[] { new Object[] {
intPraticaId, intPraticaId,
@ -2800,8 +2838,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
public void reIndexFascicolo( public void reIndexFascicolo(
it.tref.liferay.portos.bo.model.IntPratica pratica, long companyId) { it.tref.liferay.portos.bo.model.IntPratica pratica, long companyId) {
try { try {
_invokableLocalService.invokeMethod(_methodName70, _invokableLocalService.invokeMethod(_methodName71,
_methodParameterTypes70, _methodParameterTypes71,
new Object[] { ClpSerializer.translateInput(pratica), companyId }); new Object[] { ClpSerializer.translateInput(pratica), companyId });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2821,8 +2859,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId) public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName71, _invokableLocalService.invokeMethod(_methodName72,
_methodParameterTypes71, _methodParameterTypes72,
new Object[] { new Object[] {
ClpSerializer.translateInput(numeroProgetto), ClpSerializer.translateInput(numeroProgetto),
@ -2851,8 +2889,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName72, _invokableLocalService.invokeMethod(_methodName73,
_methodParameterTypes72, _methodParameterTypes73,
new Object[] { intPraticaId, companyId }); new Object[] { intPraticaId, companyId });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2883,8 +2921,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName73, returnObj = _invokableLocalService.invokeMethod(_methodName74,
_methodParameterTypes73, _methodParameterTypes74,
new Object[] { ClpSerializer.translateInput(numeroProgetto) }); new Object[] { ClpSerializer.translateInput(numeroProgetto) });
} }
catch (Throwable t) { catch (Throwable t) {
@ -2913,8 +2951,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName74, returnObj = _invokableLocalService.invokeMethod(_methodName75,
_methodParameterTypes74, new Object[] { territorioId }); _methodParameterTypes75, new Object[] { territorioId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2943,8 +2981,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName75, returnObj = _invokableLocalService.invokeMethod(_methodName76,
_methodParameterTypes75, new Object[] { intPraticaId }); _methodParameterTypes76, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2974,8 +3012,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName76, returnObj = _invokableLocalService.invokeMethod(_methodName77,
_methodParameterTypes76, new Object[] { intPraticaId }); _methodParameterTypes77, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -3003,8 +3041,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName77, _invokableLocalService.invokeMethod(_methodName78,
_methodParameterTypes77, _methodParameterTypes78,
new Object[] { new Object[] {
dettPraticaId, dettPraticaId,
@ -3055,8 +3093,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName78, returnObj = _invokableLocalService.invokeMethod(_methodName79,
_methodParameterTypes78, _methodParameterTypes79,
new Object[] { new Object[] {
ClpSerializer.translateInput(request), ClpSerializer.translateInput(request),
@ -3089,8 +3127,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName79, returnObj = _invokableLocalService.invokeMethod(_methodName80,
_methodParameterTypes79, _methodParameterTypes80,
new Object[] { new Object[] {
ClpSerializer.translateInput(request), ClpSerializer.translateInput(request),
@ -3123,8 +3161,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName80, returnObj = _invokableLocalService.invokeMethod(_methodName81,
_methodParameterTypes80, _methodParameterTypes81,
new Object[] { new Object[] {
ClpSerializer.translateInput(request), ClpSerializer.translateInput(request),
@ -3311,4 +3349,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
private String[] _methodParameterTypes79; private String[] _methodParameterTypes79;
private String _methodName80; private String _methodName80;
private String[] _methodParameterTypes80; private String[] _methodParameterTypes80;
private String _methodName81;
private String[] _methodParameterTypes81;
} }

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java

@ -546,6 +546,14 @@ public class IntPraticaLocalServiceUtil {
.countByCompanyIdSoggettoArchivio(companyId, soggettoId); .countByCompanyIdSoggettoArchivio(companyId, soggettoId);
} }
public static it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti( public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end) long companyId, long soggettoId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java

@ -597,6 +597,14 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
soggettoId); soggettoId);
} }
@Override
public it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti( public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end) long companyId, long soggettoId, int start, int end)

65
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java

@ -1184,6 +1184,71 @@ public interface IntPraticaPersistence extends BasePersistence<IntPratica> {
public int countByStatoPratica(java.lang.String statoPratica) public int countByStatoPratica(java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica
* @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.IntPratica findByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchIntPraticaException;
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; from the database.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the int pratica that was removed
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.IntPratica removeByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchIntPraticaException;
/**
* Returns the number of int praticas where intPraticaId = &#63; and sueSuapInstanceId = &#63;.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the number of matching int praticas
* @throws SystemException if a system exception occurred
*/
public int countByIntPraticaId_SueSuapInstanceId(long intPraticaId,
java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException;
/** /**
* Caches the int pratica in the entity cache if it is enabled. * Caches the int pratica in the entity cache if it is enabled.
* *

85
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java

@ -1469,6 +1469,91 @@ public class IntPraticaUtil {
return getPersistence().countByStatoPratica(statoPratica); return getPersistence().countByStatoPratica(statoPratica);
} }
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica
* @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.IntPratica findByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchIntPraticaException {
return getPersistence()
.findByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.IntPratica fetchByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId, retrieveFromCache);
}
/**
* Removes the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; from the database.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the int pratica that was removed
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.IntPratica removeByIntPraticaId_SueSuapInstanceId(
long intPraticaId, java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchIntPraticaException {
return getPersistence()
.removeByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
/**
* Returns the number of int praticas where intPraticaId = &#63; and sueSuapInstanceId = &#63;.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the number of matching int praticas
* @throws SystemException if a system exception occurred
*/
public static int countByIntPraticaId_SueSuapInstanceId(long intPraticaId,
java.lang.String sueSuapInstanceId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.countByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
}
/** /**
* Caches the int pratica in the entity cache if it is enabled. * Caches the int pratica in the entity cache if it is enabled.
* *

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties

@ -152,6 +152,7 @@ IX_BAD23F73=portos_bo_HistoryWorkflowAction.IntPraticaAndDettPratica
IX_9929E083=portos_bo_IntPratica.C_Group IX_9929E083=portos_bo_IntPratica.C_Group
IX_E75F8D41=portos_bo_IntPratica.C_UserId IX_E75F8D41=portos_bo_IntPratica.C_UserId
IX_6A47801=portos_bo_IntPratica.IntPraticaId_SueSuapInstanceId
IX_779B836B=portos_bo_IntPratica.P IX_779B836B=portos_bo_IntPratica.P
IX_ACF2D38C=portos_bo_IntPratica.StatoPratica IX_ACF2D38C=portos_bo_IntPratica.StatoPratica
IX_4736A755=portos_bo_IntPratica.TerritorioId IX_4736A755=portos_bo_IntPratica.TerritorioId

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql

@ -149,6 +149,7 @@ create index IX_BAD23F73 on portos_bo_HistoryWorkflowAction (intPraticaId, dettP
create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId); create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId);
create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId); create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId);
create unique index IX_6A47801 on portos_bo_IntPratica (intPraticaId, sueSuapInstanceId);
create index IX_ACF2D38C on portos_bo_IntPratica (statoPratica); create index IX_ACF2D38C on portos_bo_IntPratica (statoPratica);
create index IX_779B836B on portos_bo_IntPratica (status, dtPratica); create index IX_779B836B on portos_bo_IntPratica (status, dtPratica);
create index IX_4736A755 on portos_bo_IntPratica (territorioId); create index IX_4736A755 on portos_bo_IntPratica (territorioId);

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql

@ -555,7 +555,10 @@ create table portos_bo_IntPratica (
collaudoParziale BOOLEAN, collaudoParziale BOOLEAN,
collaudoTotale BOOLEAN, collaudoTotale BOOLEAN,
controlloObbligatorio BOOLEAN, controlloObbligatorio BOOLEAN,
inLavorazioneSue BOOLEAN inLavorazioneSue BOOLEAN,
sueSuapInstanceId VARCHAR(75) null,
sueSuapClientId VARCHAR(75) null,
sueSuapIpaCode VARCHAR(75) null
); );
create table portos_bo_Pagamento ( create table portos_bo_Pagamento (

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml

@ -608,6 +608,9 @@
<property name="collaudoTotale" type="com.liferay.portal.dao.orm.hibernate.BooleanType" /> <property name="collaudoTotale" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="controlloObbligatorio" type="com.liferay.portal.dao.orm.hibernate.BooleanType" /> <property name="controlloObbligatorio" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="inLavorazioneSue" type="com.liferay.portal.dao.orm.hibernate.BooleanType" /> <property name="inLavorazioneSue" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="sueSuapInstanceId" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="sueSuapClientId" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="sueSuapIpaCode" type="com.liferay.portal.dao.orm.hibernate.StringType" />
</class> </class>
<class name="it.tref.liferay.portos.bo.model.impl.PagamentoImpl" table="portos_bo_Pagamento"> <class name="it.tref.liferay.portos.bo.model.impl.PagamentoImpl" table="portos_bo_Pagamento">
<cache usage="read-write" /> <cache usage="read-write" />

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml

@ -656,6 +656,9 @@
<field name="collaudoTotale" type="boolean" /> <field name="collaudoTotale" type="boolean" />
<field name="controlloObbligatorio" type="boolean" /> <field name="controlloObbligatorio" type="boolean" />
<field name="inLavorazioneSue" type="boolean" /> <field name="inLavorazioneSue" type="boolean" />
<field name="sueSuapInstanceId" type="String" />
<field name="sueSuapClientId" type="String" />
<field name="sueSuapIpaCode" type="String" />
</model> </model>
<model name="it.tref.liferay.portos.bo.model.Pagamento"> <model name="it.tref.liferay.portos.bo.model.Pagamento">
<field name="uuid" type="String" /> <field name="uuid" type="String" />

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml

@ -781,6 +781,9 @@
<basic name="collaudoTotale" /> <basic name="collaudoTotale" />
<basic name="controlloObbligatorio" /> <basic name="controlloObbligatorio" />
<basic name="inLavorazioneSue" /> <basic name="inLavorazioneSue" />
<basic name="sueSuapInstanceId" />
<basic name="sueSuapClientId" />
<basic name="sueSuapIpaCode" />
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />
<transient name="primaryKeyObj" /> <transient name="primaryKeyObj" />

56
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java

@ -38,7 +38,7 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
Externalizable { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(69); StringBundler sb = new StringBundler(75);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(uuid); sb.append(uuid);
@ -108,6 +108,12 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
sb.append(controlloObbligatorio); sb.append(controlloObbligatorio);
sb.append(", inLavorazioneSue="); sb.append(", inLavorazioneSue=");
sb.append(inLavorazioneSue); sb.append(inLavorazioneSue);
sb.append(", sueSuapInstanceId=");
sb.append(sueSuapInstanceId);
sb.append(", sueSuapClientId=");
sb.append(sueSuapClientId);
sb.append(", sueSuapIpaCode=");
sb.append(sueSuapIpaCode);
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -244,6 +250,27 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
intPraticaImpl.setControlloObbligatorio(controlloObbligatorio); intPraticaImpl.setControlloObbligatorio(controlloObbligatorio);
intPraticaImpl.setInLavorazioneSue(inLavorazioneSue); intPraticaImpl.setInLavorazioneSue(inLavorazioneSue);
if (sueSuapInstanceId == null) {
intPraticaImpl.setSueSuapInstanceId(StringPool.BLANK);
}
else {
intPraticaImpl.setSueSuapInstanceId(sueSuapInstanceId);
}
if (sueSuapClientId == null) {
intPraticaImpl.setSueSuapClientId(StringPool.BLANK);
}
else {
intPraticaImpl.setSueSuapClientId(sueSuapClientId);
}
if (sueSuapIpaCode == null) {
intPraticaImpl.setSueSuapIpaCode(StringPool.BLANK);
}
else {
intPraticaImpl.setSueSuapIpaCode(sueSuapIpaCode);
}
intPraticaImpl.resetOriginalValues(); intPraticaImpl.resetOriginalValues();
return intPraticaImpl; return intPraticaImpl;
@ -285,6 +312,9 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
collaudoTotale = objectInput.readBoolean(); collaudoTotale = objectInput.readBoolean();
controlloObbligatorio = objectInput.readBoolean(); controlloObbligatorio = objectInput.readBoolean();
inLavorazioneSue = objectInput.readBoolean(); inLavorazioneSue = objectInput.readBoolean();
sueSuapInstanceId = objectInput.readUTF();
sueSuapClientId = objectInput.readUTF();
sueSuapIpaCode = objectInput.readUTF();
} }
@Override @Override
@ -377,6 +407,27 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
objectOutput.writeBoolean(collaudoTotale); objectOutput.writeBoolean(collaudoTotale);
objectOutput.writeBoolean(controlloObbligatorio); objectOutput.writeBoolean(controlloObbligatorio);
objectOutput.writeBoolean(inLavorazioneSue); objectOutput.writeBoolean(inLavorazioneSue);
if (sueSuapInstanceId == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(sueSuapInstanceId);
}
if (sueSuapClientId == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(sueSuapClientId);
}
if (sueSuapIpaCode == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(sueSuapIpaCode);
}
} }
public String uuid; public String uuid;
@ -413,4 +464,7 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
public boolean collaudoTotale; public boolean collaudoTotale;
public boolean controlloObbligatorio; public boolean controlloObbligatorio;
public boolean inLavorazioneSue; public boolean inLavorazioneSue;
public String sueSuapInstanceId;
public String sueSuapClientId;
public String sueSuapIpaCode;
} }

175
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java

@ -100,9 +100,12 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
{ "collaudoParziale", Types.BOOLEAN }, { "collaudoParziale", Types.BOOLEAN },
{ "collaudoTotale", Types.BOOLEAN }, { "collaudoTotale", Types.BOOLEAN },
{ "controlloObbligatorio", Types.BOOLEAN }, { "controlloObbligatorio", Types.BOOLEAN },
{ "inLavorazioneSue", Types.BOOLEAN } { "inLavorazioneSue", Types.BOOLEAN },
{ "sueSuapInstanceId", Types.VARCHAR },
{ "sueSuapClientId", Types.VARCHAR },
{ "sueSuapIpaCode", Types.VARCHAR }
}; };
public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,latitudine DOUBLE,longitudine DOUBLE,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,inLavorazioneSue BOOLEAN)"; public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,latitudine DOUBLE,longitudine DOUBLE,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,inLavorazioneSue BOOLEAN,sueSuapInstanceId VARCHAR(75) null,sueSuapClientId VARCHAR(75) null,sueSuapIpaCode VARCHAR(75) null)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_IntPratica"; public static final String TABLE_SQL_DROP = "drop table portos_bo_IntPratica";
public static final String ORDER_BY_JPQL = " ORDER BY intPratica.intPraticaId ASC"; public static final String ORDER_BY_JPQL = " ORDER BY intPratica.intPraticaId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IntPratica.intPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IntPratica.intPraticaId ASC";
@ -121,12 +124,13 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
public static long COMPANYID_COLUMN_BITMASK = 1L; public static long COMPANYID_COLUMN_BITMASK = 1L;
public static long DTPRATICA_COLUMN_BITMASK = 2L; public static long DTPRATICA_COLUMN_BITMASK = 2L;
public static long GROUPID_COLUMN_BITMASK = 4L; public static long GROUPID_COLUMN_BITMASK = 4L;
public static long STATOPRATICA_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 8L;
public static long STATUS_COLUMN_BITMASK = 16L; public static long STATOPRATICA_COLUMN_BITMASK = 16L;
public static long TERRITORIOID_COLUMN_BITMASK = 32L; public static long STATUS_COLUMN_BITMASK = 32L;
public static long USERID_COLUMN_BITMASK = 64L; public static long SUESUAPINSTANCEID_COLUMN_BITMASK = 64L;
public static long UUID_COLUMN_BITMASK = 128L; public static long TERRITORIOID_COLUMN_BITMASK = 128L;
public static long INTPRATICAID_COLUMN_BITMASK = 256L; public static long USERID_COLUMN_BITMASK = 256L;
public static long UUID_COLUMN_BITMASK = 512L;
/** /**
* Converts the soap model instance into a normal model instance. * Converts the soap model instance into a normal model instance.
@ -175,6 +179,9 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
model.setCollaudoTotale(soapModel.getCollaudoTotale()); model.setCollaudoTotale(soapModel.getCollaudoTotale());
model.setControlloObbligatorio(soapModel.getControlloObbligatorio()); model.setControlloObbligatorio(soapModel.getControlloObbligatorio());
model.setInLavorazioneSue(soapModel.getInLavorazioneSue()); model.setInLavorazioneSue(soapModel.getInLavorazioneSue());
model.setSueSuapInstanceId(soapModel.getSueSuapInstanceId());
model.setSueSuapClientId(soapModel.getSueSuapClientId());
model.setSueSuapIpaCode(soapModel.getSueSuapIpaCode());
return model; return model;
} }
@ -275,6 +282,9 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("collaudoTotale", getCollaudoTotale());
attributes.put("controlloObbligatorio", getControlloObbligatorio()); attributes.put("controlloObbligatorio", getControlloObbligatorio());
attributes.put("inLavorazioneSue", getInLavorazioneSue()); attributes.put("inLavorazioneSue", getInLavorazioneSue());
attributes.put("sueSuapInstanceId", getSueSuapInstanceId());
attributes.put("sueSuapClientId", getSueSuapClientId());
attributes.put("sueSuapIpaCode", getSueSuapIpaCode());
return attributes; return attributes;
} }
@ -489,6 +499,24 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
if (inLavorazioneSue != null) { if (inLavorazioneSue != null) {
setInLavorazioneSue(inLavorazioneSue); setInLavorazioneSue(inLavorazioneSue);
} }
String sueSuapInstanceId = (String)attributes.get("sueSuapInstanceId");
if (sueSuapInstanceId != null) {
setSueSuapInstanceId(sueSuapInstanceId);
}
String sueSuapClientId = (String)attributes.get("sueSuapClientId");
if (sueSuapClientId != null) {
setSueSuapClientId(sueSuapClientId);
}
String sueSuapIpaCode = (String)attributes.get("sueSuapIpaCode");
if (sueSuapIpaCode != null) {
setSueSuapIpaCode(sueSuapIpaCode);
}
} }
@JSON @JSON
@ -523,9 +551,21 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
@Override @Override
public void setIntPraticaId(long intPraticaId) { public void setIntPraticaId(long intPraticaId) {
_columnBitmask |= INTPRATICAID_COLUMN_BITMASK;
if (!_setOriginalIntPraticaId) {
_setOriginalIntPraticaId = true;
_originalIntPraticaId = _intPraticaId;
}
_intPraticaId = intPraticaId; _intPraticaId = intPraticaId;
} }
public long getOriginalIntPraticaId() {
return _originalIntPraticaId;
}
@JSON @JSON
@Override @Override
public long getCompanyId() { public long getCompanyId() {
@ -1056,6 +1096,64 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
_inLavorazioneSue = inLavorazioneSue; _inLavorazioneSue = inLavorazioneSue;
} }
@JSON
@Override
public String getSueSuapInstanceId() {
if (_sueSuapInstanceId == null) {
return StringPool.BLANK;
}
else {
return _sueSuapInstanceId;
}
}
@Override
public void setSueSuapInstanceId(String sueSuapInstanceId) {
_columnBitmask |= SUESUAPINSTANCEID_COLUMN_BITMASK;
if (_originalSueSuapInstanceId == null) {
_originalSueSuapInstanceId = _sueSuapInstanceId;
}
_sueSuapInstanceId = sueSuapInstanceId;
}
public String getOriginalSueSuapInstanceId() {
return GetterUtil.getString(_originalSueSuapInstanceId);
}
@JSON
@Override
public String getSueSuapClientId() {
if (_sueSuapClientId == null) {
return StringPool.BLANK;
}
else {
return _sueSuapClientId;
}
}
@Override
public void setSueSuapClientId(String sueSuapClientId) {
_sueSuapClientId = sueSuapClientId;
}
@JSON
@Override
public String getSueSuapIpaCode() {
if (_sueSuapIpaCode == null) {
return StringPool.BLANK;
}
else {
return _sueSuapIpaCode;
}
}
@Override
public void setSueSuapIpaCode(String sueSuapIpaCode) {
_sueSuapIpaCode = sueSuapIpaCode;
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(
@ -1127,6 +1225,9 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaImpl.setCollaudoTotale(getCollaudoTotale()); intPraticaImpl.setCollaudoTotale(getCollaudoTotale());
intPraticaImpl.setControlloObbligatorio(getControlloObbligatorio()); intPraticaImpl.setControlloObbligatorio(getControlloObbligatorio());
intPraticaImpl.setInLavorazioneSue(getInLavorazioneSue()); intPraticaImpl.setInLavorazioneSue(getInLavorazioneSue());
intPraticaImpl.setSueSuapInstanceId(getSueSuapInstanceId());
intPraticaImpl.setSueSuapClientId(getSueSuapClientId());
intPraticaImpl.setSueSuapIpaCode(getSueSuapIpaCode());
intPraticaImpl.resetOriginalValues(); intPraticaImpl.resetOriginalValues();
@ -1181,6 +1282,10 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaModelImpl._originalUuid = intPraticaModelImpl._uuid; intPraticaModelImpl._originalUuid = intPraticaModelImpl._uuid;
intPraticaModelImpl._originalIntPraticaId = intPraticaModelImpl._intPraticaId;
intPraticaModelImpl._setOriginalIntPraticaId = false;
intPraticaModelImpl._originalCompanyId = intPraticaModelImpl._companyId; intPraticaModelImpl._originalCompanyId = intPraticaModelImpl._companyId;
intPraticaModelImpl._setOriginalCompanyId = false; intPraticaModelImpl._setOriginalCompanyId = false;
@ -1205,6 +1310,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaModelImpl._originalDtPratica = intPraticaModelImpl._dtPratica; intPraticaModelImpl._originalDtPratica = intPraticaModelImpl._dtPratica;
intPraticaModelImpl._originalSueSuapInstanceId = intPraticaModelImpl._sueSuapInstanceId;
intPraticaModelImpl._columnBitmask = 0; intPraticaModelImpl._columnBitmask = 0;
} }
@ -1372,12 +1479,36 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaCacheModel.inLavorazioneSue = getInLavorazioneSue(); intPraticaCacheModel.inLavorazioneSue = getInLavorazioneSue();
intPraticaCacheModel.sueSuapInstanceId = getSueSuapInstanceId();
String sueSuapInstanceId = intPraticaCacheModel.sueSuapInstanceId;
if ((sueSuapInstanceId != null) && (sueSuapInstanceId.length() == 0)) {
intPraticaCacheModel.sueSuapInstanceId = null;
}
intPraticaCacheModel.sueSuapClientId = getSueSuapClientId();
String sueSuapClientId = intPraticaCacheModel.sueSuapClientId;
if ((sueSuapClientId != null) && (sueSuapClientId.length() == 0)) {
intPraticaCacheModel.sueSuapClientId = null;
}
intPraticaCacheModel.sueSuapIpaCode = getSueSuapIpaCode();
String sueSuapIpaCode = intPraticaCacheModel.sueSuapIpaCode;
if ((sueSuapIpaCode != null) && (sueSuapIpaCode.length() == 0)) {
intPraticaCacheModel.sueSuapIpaCode = null;
}
return intPraticaCacheModel; return intPraticaCacheModel;
} }
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(69); StringBundler sb = new StringBundler(75);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1447,6 +1578,12 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
sb.append(getControlloObbligatorio()); sb.append(getControlloObbligatorio());
sb.append(", inLavorazioneSue="); sb.append(", inLavorazioneSue=");
sb.append(getInLavorazioneSue()); sb.append(getInLavorazioneSue());
sb.append(", sueSuapInstanceId=");
sb.append(getSueSuapInstanceId());
sb.append(", sueSuapClientId=");
sb.append(getSueSuapClientId());
sb.append(", sueSuapIpaCode=");
sb.append(getSueSuapIpaCode());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -1454,7 +1591,7 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(106); StringBundler sb = new StringBundler(115);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.IntPratica"); sb.append("it.tref.liferay.portos.bo.model.IntPratica");
@ -1596,6 +1733,18 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
"<column><column-name>inLavorazioneSue</column-name><column-value><![CDATA["); "<column><column-name>inLavorazioneSue</column-name><column-value><![CDATA[");
sb.append(getInLavorazioneSue()); sb.append(getInLavorazioneSue());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapInstanceId</column-name><column-value><![CDATA[");
sb.append(getSueSuapInstanceId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapClientId</column-name><column-value><![CDATA[");
sb.append(getSueSuapClientId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>sueSuapIpaCode</column-name><column-value><![CDATA[");
sb.append(getSueSuapIpaCode());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -1609,6 +1758,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
private String _uuid; private String _uuid;
private String _originalUuid; private String _originalUuid;
private long _intPraticaId; private long _intPraticaId;
private long _originalIntPraticaId;
private boolean _setOriginalIntPraticaId;
private long _companyId; private long _companyId;
private long _originalCompanyId; private long _originalCompanyId;
private boolean _setOriginalCompanyId; private boolean _setOriginalCompanyId;
@ -1655,6 +1806,10 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
private boolean _collaudoTotale; private boolean _collaudoTotale;
private boolean _controlloObbligatorio; private boolean _controlloObbligatorio;
private boolean _inLavorazioneSue; private boolean _inLavorazioneSue;
private String _sueSuapInstanceId;
private String _originalSueSuapInstanceId;
private String _sueSuapClientId;
private String _sueSuapIpaCode;
private long _columnBitmask; private long _columnBitmask;
private IntPratica _escapedModel; private IntPratica _escapedModel;
} }

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

@ -280,149 +280,153 @@ public class IntPraticaLocalServiceClpInvoker {
_methodParameterTypes210 = new String[] { "long", "long" }; _methodParameterTypes210 = new String[] { "long", "long" };
_methodName212 = "findByCompanyIdSoggettoAltriProgetti"; _methodName212 = "fetchByIntPraticaId_SueSuapInstanceId";
_methodParameterTypes212 = new String[] { "long", "long", "int", "int" }; _methodParameterTypes212 = new String[] { "long", "java.lang.String" };
_methodName213 = "countByCompanyIdSoggettoAltriProgetti"; _methodName213 = "findByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes213 = new String[] { "long", "long" }; _methodParameterTypes213 = new String[] { "long", "long", "int", "int" };
_methodName215 = "findByCanAddFineLavori"; _methodName214 = "countByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes215 = new String[] { _methodParameterTypes214 = new String[] { "long", "long" };
_methodName216 = "findByCanAddFineLavori";
_methodParameterTypes216 = new String[] {
"long", "java.lang.String", "int", "int" "long", "java.lang.String", "int", "int"
}; };
_methodName216 = "countByCanAddFineLavori"; _methodName217 = "countByCanAddFineLavori";
_methodParameterTypes216 = new String[] { "long", "java.lang.String" }; _methodParameterTypes217 = new String[] { "long", "java.lang.String" };
_methodName218 = "findByCanAddCollaudo"; _methodName219 = "findByCanAddCollaudo";
_methodParameterTypes218 = new String[] { _methodParameterTypes219 = new String[] {
"long", "java.lang.String", "int", "int" "long", "java.lang.String", "int", "int"
}; };
_methodName219 = "countByCanAddCollaudo"; _methodName220 = "countByCanAddCollaudo";
_methodParameterTypes219 = new String[] { "long", "java.lang.String" }; _methodParameterTypes220 = new String[] { "long", "java.lang.String" };
_methodName220 = "search"; _methodName221 = "search";
_methodParameterTypes220 = new String[] { "java.util.List", "int", "int" }; _methodParameterTypes221 = new String[] { "java.util.List", "int", "int" };
_methodName221 = "countSearch"; _methodName222 = "countSearch";
_methodParameterTypes221 = new String[] { "java.util.List" }; _methodParameterTypes222 = new String[] { "java.util.List" };
_methodName222 = "searchWithIntPraticaId"; _methodName223 = "searchWithIntPraticaId";
_methodParameterTypes222 = new String[] { _methodParameterTypes223 = new String[] {
"java.util.List", "long", "int", "int" "java.util.List", "long", "int", "int"
}; };
_methodName223 = "allegaFileAnnullamento"; _methodName224 = "allegaFileAnnullamento";
_methodParameterTypes223 = new String[] { _methodParameterTypes224 = new String[] {
"long", "byte[][]", "java.lang.String", "java.lang.String", "long", "byte[][]", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName224 = "generateFileAnnullamento"; _methodName225 = "generateFileAnnullamento";
_methodParameterTypes224 = new String[] { _methodParameterTypes225 = new String[] {
"long", "com.liferay.portal.service.ServiceContext" "long", "com.liferay.portal.service.ServiceContext"
}; };
_methodName225 = "deleteFileAnnullamento"; _methodName226 = "deleteFileAnnullamento";
_methodParameterTypes225 = new String[] { "long" }; _methodParameterTypes226 = new String[] { "long" };
_methodName226 = "completeAnnullamento"; _methodName227 = "completeAnnullamento";
_methodParameterTypes226 = new String[] { "long" }; _methodParameterTypes227 = new String[] { "long" };
_methodName227 = "cambiaIstruttore"; _methodName228 = "cambiaIstruttore";
_methodParameterTypes227 = new String[] { "long", "long", "long" }; _methodParameterTypes228 = new String[] { "long", "long", "long" };
_methodName228 = "countCaricoLavoroCF"; _methodName229 = "countCaricoLavoroCF";
_methodParameterTypes228 = new String[] { _methodParameterTypes229 = new String[] {
"long", "java.lang.String", "java.lang.Long[][]" "long", "java.lang.String", "java.lang.Long[][]"
}; };
_methodName229 = "countCaricoLavoroIstruttore"; _methodName230 = "countCaricoLavoroIstruttore";
_methodParameterTypes229 = new String[] { "long", "java.lang.String" }; _methodParameterTypes230 = new String[] { "long", "java.lang.String" };
_methodName230 = "generateReportPratica"; _methodName231 = "generateReportPratica";
_methodParameterTypes230 = new String[] { _methodParameterTypes231 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long" "it.tref.liferay.portos.bo.model.IntPratica", "long"
}; };
_methodName231 = "updateModifiedDate"; _methodName232 = "updateModifiedDate";
_methodParameterTypes231 = new String[] { "long", "java.util.Date" }; _methodParameterTypes232 = new String[] { "long", "java.util.Date" };
_methodName232 = "reIndexFascicolo"; _methodName233 = "reIndexFascicolo";
_methodParameterTypes232 = new String[] { _methodParameterTypes233 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long" "it.tref.liferay.portos.bo.model.IntPratica", "long"
}; };
_methodName233 = "reIndexFasciolo";
_methodParameterTypes233 = new String[] { "java.lang.String", "long" };
_methodName234 = "reIndexFasciolo"; _methodName234 = "reIndexFasciolo";
_methodParameterTypes234 = new String[] { "long", "long" }; _methodParameterTypes234 = new String[] { "java.lang.String", "long" };
_methodName235 = "findByNumeroProgetto"; _methodName235 = "reIndexFasciolo";
_methodParameterTypes235 = new String[] { "java.lang.String" }; _methodParameterTypes235 = new String[] { "long", "long" };
_methodName236 = "findByTerritorioId"; _methodName236 = "findByNumeroProgetto";
_methodParameterTypes236 = new String[] { "long" }; _methodParameterTypes236 = new String[] { "java.lang.String" };
_methodName237 = "getOrganizationByIntPraticaId"; _methodName237 = "findByTerritorioId";
_methodParameterTypes237 = new String[] { "long" }; _methodParameterTypes237 = new String[] { "long" };
_methodName238 = "hasRichiestaIntegrazioneAttiva"; _methodName238 = "getOrganizationByIntPraticaId";
_methodParameterTypes238 = new String[] { "long" }; _methodParameterTypes238 = new String[] { "long" };
_methodName239 = "invioMailNotifica"; _methodName239 = "hasRichiestaIntegrazioneAttiva";
_methodParameterTypes239 = new String[] { "long" };
_methodName240 = "invioMailNotifica";
_methodParameterTypes239 = new String[] { _methodParameterTypes240 = new String[] {
"long", "long", "java.lang.String", "java.lang.String[][]", "long", "long", "java.lang.String", "java.lang.String[][]",
"java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]",
"java.lang.String", "com.liferay.portal.kernel.json.JSONObject", "java.lang.String", "com.liferay.portal.kernel.json.JSONObject",
"java.util.List", "com.liferay.portal.service.ServiceContext" "java.util.List", "com.liferay.portal.service.ServiceContext"
}; };
_methodName240 = "searchAltriProgetti"; _methodName241 = "searchAltriProgetti";
_methodParameterTypes240 = new String[] { _methodParameterTypes241 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
_methodName241 = "searchArchivioProgetti"; _methodName242 = "searchArchivioProgetti";
_methodParameterTypes241 = new String[] { _methodParameterTypes242 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
_methodName242 = "searchMieiProgetti"; _methodName243 = "searchMieiProgetti";
_methodParameterTypes242 = new String[] { _methodParameterTypes243 = new String[] {
"javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequest",
"com.liferay.portal.model.User", "int", "int" "com.liferay.portal.model.User", "int", "int"
}; };
@ -754,96 +758,102 @@ public class IntPraticaLocalServiceClpInvoker {
if (_methodName212.equals(name) && if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
return IntPraticaLocalServiceUtil.fetchByIntPraticaId_SueSuapInstanceId(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName213.equals(name) &&
Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName213.equals(name) && if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue()); ((Long)arguments[1]).longValue());
} }
if (_methodName215.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName216.equals(name) && if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]); (java.lang.String)arguments[1]);
} }
if (_methodName218.equals(name) && if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName219.equals(name) && if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]); (java.lang.String)arguments[1]);
} }
if (_methodName220.equals(name) && if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
return IntPraticaLocalServiceUtil.search((java.util.List<java.lang.Long>)arguments[0], return IntPraticaLocalServiceUtil.search((java.util.List<java.lang.Long>)arguments[0],
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName221.equals(name) && if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
return IntPraticaLocalServiceUtil.countSearch((java.util.List<java.lang.Long>)arguments[0]); return IntPraticaLocalServiceUtil.countSearch((java.util.List<java.lang.Long>)arguments[0]);
} }
if (_methodName222.equals(name) && if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List<java.lang.Long>)arguments[0], return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List<java.lang.Long>)arguments[0],
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName223.equals(name) && if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (byte[])arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]); (com.liferay.portal.service.ServiceContext)arguments[4]);
} }
if (_methodName224.equals(name) && if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]); (com.liferay.portal.service.ServiceContext)arguments[1]);
} }
if (_methodName225.equals(name) && if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue());
return null; return null;
} }
if (_methodName226.equals(name) && if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue());
return null; return null;
} }
if (_methodName227.equals(name) && if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue()); ((Long)arguments[2]).longValue());
@ -851,41 +861,33 @@ public class IntPraticaLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.Long[])arguments[2]);
}
if (_methodName229.equals(name) && if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]); (java.lang.String)arguments[1], (java.lang.Long[])arguments[2]);
} }
if (_methodName230.equals(name) && if (_methodName230.equals(name) &&
Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue()); (java.lang.String)arguments[1]);
} }
if (_methodName231.equals(name) && if (_methodName231.equals(name) &&
Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
(java.util.Date)arguments[1]); ((Long)arguments[1]).longValue());
} }
if (_methodName232.equals(name) && if (_methodName232.equals(name) &&
Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue()); (java.util.Date)arguments[1]);
return null;
} }
if (_methodName233.equals(name) && if (_methodName233.equals(name) &&
Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Long)arguments[1]).longValue()); ((Long)arguments[1]).longValue());
return null; return null;
@ -893,7 +895,7 @@ public class IntPraticaLocalServiceClpInvoker {
if (_methodName234.equals(name) && if (_methodName234.equals(name) &&
Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0],
((Long)arguments[1]).longValue()); ((Long)arguments[1]).longValue());
return null; return null;
@ -901,26 +903,34 @@ public class IntPraticaLocalServiceClpInvoker {
if (_methodName235.equals(name) && if (_methodName235.equals(name) &&
Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
return null;
} }
if (_methodName236.equals(name) && if (_methodName236.equals(name) &&
Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]);
} }
if (_methodName237.equals(name) && if (_methodName237.equals(name) &&
Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) {
return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue());
} }
if (_methodName238.equals(name) && if (_methodName238.equals(name) &&
Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) {
return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue()); return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue());
} }
if (_methodName239.equals(name) && if (_methodName239.equals(name) &&
Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) {
return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue());
}
if (_methodName240.equals(name) &&
Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) {
IntPraticaLocalServiceUtil.invioMailNotifica(((Long)arguments[0]).longValue(), IntPraticaLocalServiceUtil.invioMailNotifica(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[2],
@ -935,24 +945,24 @@ public class IntPraticaLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName240.equals(name) && if (_methodName241.equals(name) &&
Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchAltriProgetti((javax.servlet.http.HttpServletRequest)arguments[0], return IntPraticaLocalServiceUtil.searchAltriProgetti((javax.servlet.http.HttpServletRequest)arguments[0],
(com.liferay.portal.model.User)arguments[1], (com.liferay.portal.model.User)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName241.equals(name) && if (_methodName242.equals(name) &&
Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchArchivioProgetti((javax.servlet.http.HttpServletRequest)arguments[0], return IntPraticaLocalServiceUtil.searchArchivioProgetti((javax.servlet.http.HttpServletRequest)arguments[0],
(com.liferay.portal.model.User)arguments[1], (com.liferay.portal.model.User)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName242.equals(name) && if (_methodName243.equals(name) &&
Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchMieiProgetti((javax.servlet.http.HttpServletRequest)arguments[0], return IntPraticaLocalServiceUtil.searchMieiProgetti((javax.servlet.http.HttpServletRequest)arguments[0],
(com.liferay.portal.model.User)arguments[1], (com.liferay.portal.model.User)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
@ -1072,12 +1082,12 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes212; private String[] _methodParameterTypes212;
private String _methodName213; private String _methodName213;
private String[] _methodParameterTypes213; private String[] _methodParameterTypes213;
private String _methodName215; private String _methodName214;
private String[] _methodParameterTypes215; private String[] _methodParameterTypes214;
private String _methodName216; private String _methodName216;
private String[] _methodParameterTypes216; private String[] _methodParameterTypes216;
private String _methodName218; private String _methodName217;
private String[] _methodParameterTypes218; private String[] _methodParameterTypes217;
private String _methodName219; private String _methodName219;
private String[] _methodParameterTypes219; private String[] _methodParameterTypes219;
private String _methodName220; private String _methodName220;
@ -1126,4 +1136,6 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes241; private String[] _methodParameterTypes241;
private String _methodName242; private String _methodName242;
private String[] _methodParameterTypes242; private String[] _methodParameterTypes242;
private String _methodName243;
private String[] _methodParameterTypes243;
} }

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

@ -635,6 +635,11 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@Override
public IntPratica fetchByIntPraticaId_SueSuapInstanceId(long intPraticaId, String sueSuapInstanceId) throws SystemException{
return intPraticaPersistence.fetchByIntPraticaId_SueSuapInstanceId(intPraticaId, sueSuapInstanceId);
}
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end) public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end)

331
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java

@ -4494,6 +4494,284 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_1 = "intPratica.statoPratica IS NULL"; private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_1 = "intPratica.statoPratica IS NULL";
private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_2 = "intPratica.statoPratica = ?"; private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_2 = "intPratica.statoPratica = ?";
private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_3 = "(intPratica.statoPratica IS NULL OR intPratica.statoPratica = '')"; private static final String _FINDER_COLUMN_STATOPRATICA_STATOPRATICA_3 = "(intPratica.statoPratica IS NULL OR intPratica.statoPratica = '')";
public static final FinderPath FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID =
new FinderPath(IntPraticaModelImpl.ENTITY_CACHE_ENABLED,
IntPraticaModelImpl.FINDER_CACHE_ENABLED, IntPraticaImpl.class,
FINDER_CLASS_NAME_ENTITY, "fetchByIntPraticaId_SueSuapInstanceId",
new String[] { Long.class.getName(), String.class.getName() },
IntPraticaModelImpl.INTPRATICAID_COLUMN_BITMASK |
IntPraticaModelImpl.SUESUAPINSTANCEID_COLUMN_BITMASK);
public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID =
new FinderPath(IntPraticaModelImpl.ENTITY_CACHE_ENABLED,
IntPraticaModelImpl.FINDER_CACHE_ENABLED, Long.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION,
"countByIntPraticaId_SueSuapInstanceId",
new String[] { Long.class.getName(), String.class.getName() });
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica
* @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public IntPratica findByIntPraticaId_SueSuapInstanceId(long intPraticaId,
String sueSuapInstanceId)
throws NoSuchIntPraticaException, SystemException {
IntPratica intPratica = fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
if (intPratica == null) {
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("intPraticaId=");
msg.append(intPraticaId);
msg.append(", sueSuapInstanceId=");
msg.append(sueSuapInstanceId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
if (_log.isWarnEnabled()) {
_log.warn(msg.toString());
}
throw new NoSuchIntPraticaException(msg.toString());
}
return intPratica;
}
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public IntPratica fetchByIntPraticaId_SueSuapInstanceId(long intPraticaId,
String sueSuapInstanceId) throws SystemException {
return fetchByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId, true);
}
/**
* Returns the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching int pratica, or <code>null</code> if a matching int pratica could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public IntPratica fetchByIntPraticaId_SueSuapInstanceId(long intPraticaId,
String sueSuapInstanceId, boolean retrieveFromCache)
throws SystemException {
Object[] finderArgs = new Object[] { intPraticaId, sueSuapInstanceId };
Object result = null;
if (retrieveFromCache) {
result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
finderArgs, this);
}
if (result instanceof IntPratica) {
IntPratica intPratica = (IntPratica)result;
if ((intPraticaId != intPratica.getIntPraticaId()) ||
!Validator.equals(sueSuapInstanceId,
intPratica.getSueSuapInstanceId())) {
result = null;
}
}
if (result == null) {
StringBundler query = new StringBundler(4);
query.append(_SQL_SELECT_INTPRATICA_WHERE);
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_INTPRATICAID_2);
boolean bindSueSuapInstanceId = false;
if (sueSuapInstanceId == null) {
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_1);
}
else if (sueSuapInstanceId.equals(StringPool.BLANK)) {
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_3);
}
else {
bindSueSuapInstanceId = true;
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_2);
}
String sql = query.toString();
Session session = null;
try {
session = openSession();
Query q = session.createQuery(sql);
QueryPos qPos = QueryPos.getInstance(q);
qPos.add(intPraticaId);
if (bindSueSuapInstanceId) {
qPos.add(sueSuapInstanceId);
}
List<IntPratica> list = q.list();
if (list.isEmpty()) {
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
finderArgs, list);
}
else {
IntPratica intPratica = list.get(0);
result = intPratica;
cacheResult(intPratica);
if ((intPratica.getIntPraticaId() != intPraticaId) ||
(intPratica.getSueSuapInstanceId() == null) ||
!intPratica.getSueSuapInstanceId()
.equals(sueSuapInstanceId)) {
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
finderArgs, intPratica);
}
}
}
catch (Exception e) {
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
finderArgs);
throw processException(e);
}
finally {
closeSession(session);
}
}
if (result instanceof List<?>) {
return null;
}
else {
return (IntPratica)result;
}
}
/**
* Removes the int pratica where intPraticaId = &#63; and sueSuapInstanceId = &#63; from the database.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the int pratica that was removed
* @throws SystemException if a system exception occurred
*/
@Override
public IntPratica removeByIntPraticaId_SueSuapInstanceId(
long intPraticaId, String sueSuapInstanceId)
throws NoSuchIntPraticaException, SystemException {
IntPratica intPratica = findByIntPraticaId_SueSuapInstanceId(intPraticaId,
sueSuapInstanceId);
return remove(intPratica);
}
/**
* Returns the number of int praticas where intPraticaId = &#63; and sueSuapInstanceId = &#63;.
*
* @param intPraticaId the int pratica ID
* @param sueSuapInstanceId the sue suap instance ID
* @return the number of matching int praticas
* @throws SystemException if a system exception occurred
*/
@Override
public int countByIntPraticaId_SueSuapInstanceId(long intPraticaId,
String sueSuapInstanceId) throws SystemException {
FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID;
Object[] finderArgs = new Object[] { intPraticaId, sueSuapInstanceId };
Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,
this);
if (count == null) {
StringBundler query = new StringBundler(3);
query.append(_SQL_COUNT_INTPRATICA_WHERE);
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_INTPRATICAID_2);
boolean bindSueSuapInstanceId = false;
if (sueSuapInstanceId == null) {
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_1);
}
else if (sueSuapInstanceId.equals(StringPool.BLANK)) {
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_3);
}
else {
bindSueSuapInstanceId = true;
query.append(_FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_2);
}
String sql = query.toString();
Session session = null;
try {
session = openSession();
Query q = session.createQuery(sql);
QueryPos qPos = QueryPos.getInstance(q);
qPos.add(intPraticaId);
if (bindSueSuapInstanceId) {
qPos.add(sueSuapInstanceId);
}
count = (Long)q.uniqueResult();
FinderCacheUtil.putResult(finderPath, finderArgs, count);
}
catch (Exception e) {
FinderCacheUtil.removeResult(finderPath, finderArgs);
throw processException(e);
}
finally {
closeSession(session);
}
}
return count.intValue();
}
private static final String _FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_INTPRATICAID_2 =
"intPratica.intPraticaId = ? AND ";
private static final String _FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_1 =
"intPratica.sueSuapInstanceId IS NULL";
private static final String _FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_2 =
"intPratica.sueSuapInstanceId = ?";
private static final String _FINDER_COLUMN_INTPRATICAID_SUESUAPINSTANCEID_SUESUAPINSTANCEID_3 =
"(intPratica.sueSuapInstanceId IS NULL OR intPratica.sueSuapInstanceId = '')";
public IntPraticaPersistenceImpl() { public IntPraticaPersistenceImpl() {
setModelClass(IntPratica.class); setModelClass(IntPratica.class);
@ -4513,6 +4791,11 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
new Object[] { intPratica.getUuid(), intPratica.getGroupId() }, new Object[] { intPratica.getUuid(), intPratica.getGroupId() },
intPratica); intPratica);
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
new Object[] {
intPratica.getIntPraticaId(), intPratica.getSueSuapInstanceId()
}, intPratica);
intPratica.resetOriginalValues(); intPratica.resetOriginalValues();
} }
@ -4596,6 +4879,16 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
Long.valueOf(1)); Long.valueOf(1));
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args,
intPratica); intPratica);
args = new Object[] {
intPratica.getIntPraticaId(),
intPratica.getSueSuapInstanceId()
};
FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID,
args, Long.valueOf(1));
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
args, intPratica);
} }
else { else {
IntPraticaModelImpl intPraticaModelImpl = (IntPraticaModelImpl)intPratica; IntPraticaModelImpl intPraticaModelImpl = (IntPraticaModelImpl)intPratica;
@ -4611,6 +4904,19 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args,
intPratica); intPratica);
} }
if ((intPraticaModelImpl.getColumnBitmask() &
FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
intPratica.getIntPraticaId(),
intPratica.getSueSuapInstanceId()
};
FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID,
args, Long.valueOf(1));
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
args, intPratica);
}
} }
} }
@ -4634,6 +4940,28 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args);
} }
args = new Object[] {
intPratica.getIntPraticaId(), intPratica.getSueSuapInstanceId()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
args);
if ((intPraticaModelImpl.getColumnBitmask() &
FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID.getColumnBitmask()) != 0) {
args = new Object[] {
intPraticaModelImpl.getOriginalIntPraticaId(),
intPraticaModelImpl.getOriginalSueSuapInstanceId()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID_SUESUAPINSTANCEID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICAID_SUESUAPINSTANCEID,
args);
}
} }
/** /**
@ -4981,6 +5309,9 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
intPraticaImpl.setCollaudoTotale(intPratica.isCollaudoTotale()); intPraticaImpl.setCollaudoTotale(intPratica.isCollaudoTotale());
intPraticaImpl.setControlloObbligatorio(intPratica.isControlloObbligatorio()); intPraticaImpl.setControlloObbligatorio(intPratica.isControlloObbligatorio());
intPraticaImpl.setInLavorazioneSue(intPratica.isInLavorazioneSue()); intPraticaImpl.setInLavorazioneSue(intPratica.isInLavorazioneSue());
intPraticaImpl.setSueSuapInstanceId(intPratica.getSueSuapInstanceId());
intPraticaImpl.setSueSuapClientId(intPratica.getSueSuapClientId());
intPraticaImpl.setSueSuapIpaCode(intPratica.getSueSuapIpaCode());
return intPraticaImpl; return intPraticaImpl;
} }

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=3651 build.number=3657
build.date=1683893966071 build.date=1686735197893
build.auto.upgrade=true build.auto.upgrade=true
## ##

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-collections.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-lang.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity-tools.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity.jar

File binario non mostrato.

572
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/c.tld

@ -0,0 +1,572 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
<validator>
<description>
Provides core validation features for JSTL tags.
</description>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
</validator>
<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
<name>choose</name>
<tag-class>com.liferay.taglib.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<name>if</name>
<tag-class>com.liferay.taglib.core.IfTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or
not the body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to import.
</description>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
</description>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Character encoding of the content at the input
resource.
</description>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
Collection of items to iterate over.
</description>
<name>items</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step items of
the collection, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
String of tokens to iterate over.
</description>
<name>items</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
The set of delimiters (the characters that
separate the tokens in the string).
</description>
<name>delims</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>
Iteration begins at the token located at the
specified index. First token has index 0.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration ends at the token located at the
specified index (inclusive).
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step tokens
of the string, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters &lt;,&gt;,&amp;,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
<name>otherwise</name>
<tag-class>com.liferay.taglib.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the query string parameter.
</description>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Value of the parameter.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Redirects to a new URL.
</description>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to redirect to.
</description>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Name of the scoped variable to be removed.
</description>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
</description>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the property to be set in the target object.
</description>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Creates a URL with optional query parameters.
</description>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
URL to be processed.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<name>when</name>
<tag-class>com.liferay.taglib.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or not the
body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
</tag>
</taglib>

10
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.classpath

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes> <attributes>
<attribute name="owner.project.facets" value="jst.web"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
@ -15,6 +15,10 @@
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/portos-bo-portlet"/> <classpathentry combineaccessrules="false" kind="src" path="/portos-bo-portlet"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-shared"/> <classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-shared"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

BIN
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -10,7 +10,7 @@
<scheduler-event-listener-class>portos.nextmind.quarkus.bridge.scheduler.QuarkusBridgeScheduler</scheduler-event-listener-class> <scheduler-event-listener-class>portos.nextmind.quarkus.bridge.scheduler.QuarkusBridgeScheduler</scheduler-event-listener-class>
<trigger> <trigger>
<cron> <cron>
<cron-trigger-value>0 */5 * ? * *</cron-trigger-value> <cron-trigger-value>0 */1 * ? * *</cron-trigger-value>
</cron> </cron>
</trigger> </trigger>
</scheduler-entry> </scheduler-entry>

1
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portal.properties

@ -0,0 +1 @@
application.startup.events=portos.nextmind.liferay.bridge.action.StartUpAction

102
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/action/StartUpAction.java

@ -0,0 +1,102 @@
package portos.nextmind.liferay.bridge.action;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.UnicodeProperties;
import com.liferay.portal.model.Company;
import com.liferay.portal.model.ResourceConstants;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.RoleConstants;
import com.liferay.portal.security.permission.ActionKeys;
import com.liferay.portal.service.ResourcePermissionLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.util.PortalUtil;
import com.liferay.portlet.expando.model.ExpandoColumn;
import com.liferay.portlet.expando.model.ExpandoColumnConstants;
import com.liferay.portlet.expando.model.ExpandoTable;
import com.liferay.portlet.expando.model.ExpandoTableConstants;
import com.liferay.portlet.expando.service.ExpandoColumnLocalServiceUtil;
import com.liferay.portlet.expando.service.ExpandoTableLocalServiceUtil;
import portos.nextmind.quarkus.bridge.api.QuarkusBridgeConstants;
public class StartUpAction extends SimpleAction {
private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class);
@Override
public void run(String[] companyIds) throws ActionException {
for (String id : companyIds) {
try {
long companyId = GetterUtil.getLong(id);
String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields
_log.info("Adding QuarkusBridgeConstants.QUARKUS_BASE_URL Company custom field");
addExpandoColumnIfNotExists(companyId, Company.class.getName(), QuarkusBridgeConstants.QUARKUS_BASE_URL,
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
} catch (Exception e) {
_log.error("Errore nella procedura automatizzata di configurazione", e);
}
}
}
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException {
long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null;
try {
expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) {
try {
expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {
}
}
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) {
try {
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) {
}
}
try {
if (indexed) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE,
String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
}
if (hidden) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
}
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
roleUser.getRoleId(), defaultActions);
} catch (PortalException e) {
}
return expandoColumn;
}
}

8
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/persistence/PraticaValidator.java

@ -69,11 +69,11 @@ public class PraticaValidator {
}; };
public static Comune fetchComune(long companyId, String codiceIstat) throws SystemException { public static Comune fetchComune(long companyId, String codiceIstat) throws SystemException {
Comune comune = ComuneLocalServiceUtil.fetchByC_CI(companyId, codiceIstat); Comune comune = ComuneLocalServiceUtil.fetchByC_CB(companyId, codiceIstat);
if (comune == null) { if (comune == null) {
_log.warn("#[!]# Nessun Comune trovato con la coppia companyId "+companyId+ _log.warn("#[!]# Nessun Comune trovato con la coppia companyId "+companyId+
" e codiceIstat "+codiceIstat); " e codiceIstat "+codiceIstat);
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus"); _log.warn("#[!]# La richiesta sar<EFBFBD> ignorata, verificare sul middleware Quarkus");
return null; return null;
} }
return comune; return comune;
@ -83,13 +83,13 @@ public class PraticaValidator {
List<Territorio> territori = TerritorioLocalServiceUtil.findByComuneId(comuneId, 0, 1); List<Territorio> territori = TerritorioLocalServiceUtil.findByComuneId(comuneId, 0, 1);
if (territori.isEmpty()) { if (territori.isEmpty()) {
_log.warn("#[!]# Nessun Territorio trovato per il comuneId "+comuneId); _log.warn("#[!]# Nessun Territorio trovato per il comuneId "+comuneId);
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus"); _log.warn("#[!]# La richiesta sar<EFBFBD> ignorata, verificare sul middleware Quarkus");
return null; return null;
} }
return territori.get(0); return territori.get(0);
} }
public static User fetchUser(long companyId, long groupId, String codiceFiscale, String email, String nome, String cognome, long comuneId) throws SystemException, PortalException{ public static User fetchUser(long companyId, long groupId, String codiceFiscale, String email, String nome, String cognome) throws SystemException, PortalException{
User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, User user = UserLocalServiceUtil.fetchUserByScreenName(companyId,
codiceFiscale.trim().toLowerCase()); codiceFiscale.trim().toLowerCase());
if(Validator.isNotNull(user)) { if(Validator.isNotNull(user)) {

6
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeConstants.java

@ -21,6 +21,12 @@ public class QuarkusBridgeConstants {
public final static String contenuto = "content"; public final static String contenuto = "content";
public final static String datiContenuto = "data"; public final static String datiContenuto = "data";
public final static String successCode = "0";
public final static String errorCode = "1";
public final static String unexpectedCode = "2";
public static final String QUARKUS_BASE_URL = "base_url_quarkus";
public class DataTypes { public class DataTypes {
public final static String ACTORS = "ACTORS"; public final static String ACTORS = "ACTORS";
public final static String MAIN_DETAILS = "MAIN_DETAILS"; public final static String MAIN_DETAILS = "MAIN_DETAILS";

176
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeMessageFactoryUtil.java

@ -1,5 +1,7 @@
package portos.nextmind.quarkus.bridge.api; package portos.nextmind.quarkus.bridge.api;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray; import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONException; import com.liferay.portal.kernel.json.JSONException;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
@ -9,6 +11,8 @@ import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Company;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
@ -48,12 +52,24 @@ public class QuarkusBridgeMessageFactoryUtil {
READ, WRITE, DELETE READ, WRITE, DELETE
} }
public static void createCallback(String context, Long id, JSONObject content){ public static void callback(String scheduledActionId, JSONObject content, long companyId, boolean isError)
throws PortalException, SystemException{
HttpURLConnection HttpConnection = null; HttpURLConnection HttpConnection = null;
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String baseUrl = (String) company.getExpandoBridge()
.getAttribute(QuarkusBridgeConstants.QUARKUS_BASE_URL, false);
try{ try{
URL url = new URL("http://localhost:50000/portos/mw/new/" String urlString = baseUrl + "outcome/"
.concat(context).concat(StringPool.FORWARD_SLASH) .concat(scheduledActionId);
.concat(String.valueOf(id))); if(isError){
urlString = _addQueryParam(true, urlString, "statusCode", content.getString("code"));
}
URL url = new URL(urlString);
if(_log.isDebugEnabled()){
_log.debug("### ACTION: "+scheduledActionId+" # Quarkus Bridge [Sending POST to URL " + url.toString() + "]");
}
HttpConnection = (HttpURLConnection) url.openConnection(); HttpConnection = (HttpURLConnection) url.openConnection();
@ -80,10 +96,10 @@ public class QuarkusBridgeMessageFactoryUtil {
int responseCode = HttpConnection.getResponseCode(); int responseCode = HttpConnection.getResponseCode();
switch(responseCode){ switch(responseCode){
case 200: case 200:
_log.debug("### Quarkus Bridge [Read :: 200 OK]"); _log.debug("### ACTION: "+scheduledActionId+" # Quarkus Bridge [Read :: 200 OK]");
break; break;
case 500: case 500:
_log.debug("### Quarkus Bridge [Read :: 500 Quarkus Server Error]"); _log.debug("### ACTION: "+scheduledActionId+" # Quarkus Bridge [Read :: 500 Quarkus Server Error]");
break; break;
} }
}catch(RuntimeException e){ }catch(RuntimeException e){
@ -100,11 +116,16 @@ public class QuarkusBridgeMessageFactoryUtil {
} }
} }
public static JSONObject readNewData(String context){ public static JSONObject readNewData(String context, long companyId) throws PortalException, SystemException{
JSONObject responseBody = JSONFactoryUtil.createJSONObject(); JSONObject responseBody = JSONFactoryUtil.createJSONObject();
HttpURLConnection HttpConnection = null; HttpURLConnection HttpConnection = null;
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String baseUrl = (String) company.getExpandoBridge()
.getAttribute(QuarkusBridgeConstants.QUARKUS_BASE_URL, false);
try{ try{
URL url = new URL("http://localhost:50000/portos/mw/new/".concat(context)); URL url = new URL(baseUrl + "new/".concat(context));
_log.debug("### URL called: " + url.toString());
HttpConnection = (HttpURLConnection) url.openConnection(); HttpConnection = (HttpURLConnection) url.openConnection();
@ -134,6 +155,7 @@ public class QuarkusBridgeMessageFactoryUtil {
response.append(line); response.append(line);
} }
reader.close(); reader.close();
_log.debug("### NEW RESPONSE:" + response.toString());
//TODO Process the response //TODO Process the response
if(response.charAt(0) == '{'){ if(response.charAt(0) == '{'){
JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString()); JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString());
@ -163,11 +185,16 @@ public class QuarkusBridgeMessageFactoryUtil {
return responseBody; return responseBody;
} }
public static JSONObject readData(String context, String praticaId){ public static JSONObject readData(String context, long companyId) throws PortalException, SystemException{
JSONObject responseBody = JSONFactoryUtil.createJSONObject(); JSONObject responseBody = JSONFactoryUtil.createJSONObject();
HttpURLConnection HttpConnection = null; HttpURLConnection HttpConnection = null;
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String baseUrl = (String) company.getExpandoBridge()
.getAttribute(QuarkusBridgeConstants.QUARKUS_BASE_URL, false);
try{ try{
URL url = new URL("http://localhost:50000/portos/mw/read/".concat(context).concat(praticaId)); URL url = new URL(baseUrl + "read/".concat(context));
_log.debug("### URL called: " + url.toString());
HttpConnection = (HttpURLConnection) url.openConnection(); HttpConnection = (HttpURLConnection) url.openConnection();
@ -197,6 +224,7 @@ public class QuarkusBridgeMessageFactoryUtil {
response.append(line); response.append(line);
} }
reader.close(); reader.close();
_log.debug("### READ RESPONSE:" + response.toString());
//TODO Process the response //TODO Process the response
if(response.charAt(0) == '{'){ if(response.charAt(0) == '{'){
JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString()); JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString());
@ -226,12 +254,16 @@ public class QuarkusBridgeMessageFactoryUtil {
return responseBody; return responseBody;
} }
public static JSONObject writeUpdateData(String context, String praticaId){ public static JSONObject writeUpdateData(String context, long companyId) throws PortalException, SystemException{
JSONObject responseBody = JSONFactoryUtil.createJSONObject(); JSONObject responseBody = JSONFactoryUtil.createJSONObject();
HttpURLConnection HttpConnection = null; HttpURLConnection HttpConnection = null;
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String baseUrl = (String) company.getExpandoBridge()
.getAttribute(QuarkusBridgeConstants.QUARKUS_BASE_URL, false);
try{ try{
URL url = new URL("http://localhost:50000/portos/mw/update/".concat(context) URL url = new URL(baseUrl + "update/".concat(context));
.concat(StringPool.SLASH).concat(praticaId));
_log.debug("### URL called: " + url.toString());
HttpConnection = (HttpURLConnection) url.openConnection(); HttpConnection = (HttpURLConnection) url.openConnection();
@ -253,7 +285,7 @@ public class QuarkusBridgeMessageFactoryUtil {
int responseCode = HttpConnection.getResponseCode(); int responseCode = HttpConnection.getResponseCode();
switch(responseCode){ switch(responseCode){
case 200: case 200:
_log.debug("### Quarkus Bridge [Read :: 200 OK]"); _log.debug("### Quarkus Bridge [Update :: 200 OK]");
// Read the response // Read the response
BufferedReader reader = new BufferedReader(new InputStreamReader(HttpConnection.getInputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(HttpConnection.getInputStream()));
String line; String line;
@ -261,13 +293,15 @@ public class QuarkusBridgeMessageFactoryUtil {
response.append(line); response.append(line);
} }
reader.close(); reader.close();
String responseString = response.toString();
_log.debug("### UPDATE RESPONSE:" + responseString);
//TODO Process the response //TODO Process the response
if(response.charAt(0) == '{'){ if(response.charAt(0) == '{'){
JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString()); JSONObject resultSet = JSONFactoryUtil.createJSONObject(responseString);
responseBody = responseBody.put("result", resultSet); responseBody = responseBody.put("result", resultSet);
} }
if(response.charAt(0) == '['){ if(response.charAt(0) == '['){
JSONArray resultSet = JSONFactoryUtil.createJSONArray(response.toString()); JSONArray resultSet = JSONFactoryUtil.createJSONArray(responseString);
responseBody = responseBody.put("result", resultSet); responseBody = responseBody.put("result", resultSet);
} }
break; break;
@ -292,107 +326,17 @@ public class QuarkusBridgeMessageFactoryUtil {
return responseBody; return responseBody;
} }
public static void updateCallback(String context, Long id, JSONObject content){ private static String _addQueryParam(boolean isFirst, String url, String paramName, String paramValue){
HttpURLConnection HttpConnection = null; if(isFirst){
try{ url = url.concat(StringPool.QUESTION);
URL url = new URL("http://localhost:50000/portos/mw/update/" } else {
.concat(context).concat(StringPool.FORWARD_SLASH) url = url.concat(StringPool.AMPERSAND);
.concat(String.valueOf(id)));
HttpConnection = (HttpURLConnection) url.openConnection();
// Set MediaType Accepted in Accept Header
HttpConnection.addRequestProperty("Content-Type", "application/json");
// Set request method
HttpConnection.setRequestMethod("POST");
// Set connection timeout
HttpConnection.setConnectTimeout(5000);
// Enable output stream to send the payload
HttpConnection.setDoOutput(true);
// Send the payload over the output stream
String payload = content.toString();
OutputStream outputStream = HttpConnection.getOutputStream();
outputStream.write(payload.getBytes("UTF-8"));
outputStream.close();
// Get the response code
int responseCode = HttpConnection.getResponseCode();
switch(responseCode){
case 200:
_log.debug("### Quarkus Bridge [Read :: 200 OK]");
break;
case 500:
_log.debug("### Quarkus Bridge [Read :: 500 Quarkus Server Error]");
break;
}
}catch(RuntimeException e){
_log.error(e,e);
} catch (MalformedURLException e) {
_log.error(e,e);
} catch (IOException e) {
_log.error(e,e);
} finally {
// Close the connection
if(Validator.isNotNull(HttpConnection)){
HttpConnection.disconnect();
}
} }
} url = url.concat(paramName)
.concat(StringPool.EQUAL)
public static void readCallback(String context, Long id, JSONObject content){ .concat(paramValue);
HttpURLConnection HttpConnection = null;
try{
URL url = new URL("http://localhost:50000/portos/mw/read/"
.concat(context).concat(StringPool.FORWARD_SLASH)
.concat(String.valueOf(id)));
HttpConnection = (HttpURLConnection) url.openConnection();
// Set MediaType Accepted in Accept Header
HttpConnection.addRequestProperty("Content-Type", "application/json");
// Set request method
HttpConnection.setRequestMethod("POST");
// Set connection timeout
HttpConnection.setConnectTimeout(5000);
// Enable output stream to send the payload
HttpConnection.setDoOutput(true);
// Send the payload over the output stream
String payload = content.toString();
OutputStream outputStream = HttpConnection.getOutputStream();
outputStream.write(payload.getBytes("UTF-8"));
outputStream.close();
// Get the response code return url;
int responseCode = HttpConnection.getResponseCode();
switch(responseCode){
case 200:
_log.debug("### Quarkus Bridge [Read :: 200 OK]");
break;
case 500:
_log.debug("### Quarkus Bridge [Read :: 500 Quarkus Server Error]");
break;
}
}catch(RuntimeException e){
_log.error(e,e);
} catch (MalformedURLException e) {
_log.error(e,e);
} catch (IOException e) {
_log.error(e,e);
} finally {
// Close the connection
if(Validator.isNotNull(HttpConnection)){
HttpConnection.disconnect();
}
}
} }
} }

627
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/scheduler/QuarkusBridgeScheduler.java

@ -1,6 +1,7 @@
package portos.nextmind.quarkus.bridge.scheduler; package portos.nextmind.quarkus.bridge.scheduler;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
@ -18,8 +19,7 @@ import com.liferay.portal.model.Company;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.expando.model.ExpandoBridge; import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portlet.expando.model.ExpandoColumnConstants;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -30,6 +30,8 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.xml.bind.DatatypeConverter; import javax.xml.bind.DatatypeConverter;
@ -47,114 +49,123 @@ public class QuarkusBridgeScheduler implements MessageListener {
Log _log = LogFactoryUtil.getLog(QuarkusBridgeScheduler.class); Log _log = LogFactoryUtil.getLog(QuarkusBridgeScheduler.class);
private static final Lock lock = new ReentrantLock();
@Override @Override
public void receive(Message message) throws MessageListenerException { public void receive(Message message) throws MessageListenerException {
_log.info("### Quarkus Bridge Scheduler starting . . .");
ArrayList<Company> companies = null; if (lock.tryLock()) {
try { try{
companies = new ArrayList<>(CompanyLocalServiceUtil.getCompanies()); _log.info("### Quarkus Bridge Scheduler starting . . .");
} catch (SystemException e) { ArrayList<Company> companies = null;
_log.error(e,e); companies = new ArrayList<>(CompanyLocalServiceUtil.getCompanies());
} if(Validator.isNull(companies)){
if(Validator.isNull(companies)){ // _log.error("### Quarkus Bridge was unable to create batch beacuse it was unable to find any companyId.");
_log.error("### Quarkus Bridge was unable to create batch beacuse it was unable to find any companyId."); _log.error("### Quarkus Bridge was unable to start its job beacuse it was unable to find any companyId.");
return; return;
} }
for(Company company : companies){ for(Company company : companies){
JSONArray createPayload = prepareCreateBatch(company.getCompanyId()); // JSONArray createPayload = prepareCreateBatch(company.getCompanyId());
for(int i = 0; i < createPayload.length() ; i++){
signalWritten(createPayload.getJSONObject(i)); // Recupera tutte le action di CREATE e le esegue una ad una
} retrieveAndExecuteCreate(company.getCompanyId());
JSONArray updatePayload = prepareUpdateBatch(company.getCompanyId()); // for(int i = 0; i < createPayload.length() ; i++){
for(int i = 0; i < updatePayload.length() ; i++){ // signalWritten(createPayload.getJSONObject(i));
JSONArray jsonResultByIntPraticaId = updatePayload.getJSONArray(i); // }
signalUpdated(jsonResultByIntPraticaId);
} // Recupera tutte le action di UPDATE e le esegue una ad una
JSONArray readPayload = prepareReadBatch(company.getCompanyId()); retrieveAndExecuteUpdate(company.getCompanyId());
for(int i = 0; i < updatePayload.length() ; i++){ // JSONArray updatePayload = prepareUpdateBatch(company.getCompanyId());
JSONArray jsonResultByIntPraticaId = readPayload.getJSONArray(i); // for(int i = 0; i < updatePayload.length() ; i++){
signalRead(jsonResultByIntPraticaId); // JSONArray jsonResultByIntPraticaId = updatePayload.getJSONArray(i);
// signalUpdated(jsonResultByIntPraticaId);
// }
// Recupera tutte le action di READ e le esegue una ad una
retrieveAndExecuteRead(company.getCompanyId());
// JSONArray readPayload = prepareReadBatch(company.getCompanyId());
// for(int i = 0; i < updatePayload.length() ; i++){
// JSONArray jsonResultByIntPraticaId = readPayload.getJSONArray(i);
// signalRead(jsonResultByIntPraticaId);
// }
}
_log.info("### Quarkus Bridge job done.");
} catch (PortalException | SystemException e){
_log.error(e,e);
} finally {
lock.unlock();
} }
} }
_log.info("### Quarkus Bridge Scheduler batch ready.");
} }
private void signalWritten(JSONObject content){ private void signalOperationSuccess(String scheduledActionId, boolean isRead, JSONObject content, long companyId) throws PortalException, SystemException{
// ogni oggetto viene segnalato all'endpoint univoco per l'operazione INSTANCE_WRITE // ogni oggetto viene segnalato all'endpoint univoco per l'operazione INSTANCE_WRITE
String context = content.getString("context"); if(!isRead || Validator.isNull(content)){
Long scheduledActionId = content.getLong("scheduled_action_id"); content = JSONFactoryUtil.createJSONObject();
QuarkusBridgeMessageFactoryUtil.createCallback(context, scheduledActionId, content);
}
private void signalUpdated(JSONArray content){
for(int i = 0; i < content.length() ; i++){
// Get each operation result 1 by 1 and signal the result to quarkus middleware
JSONObject instance = content.getJSONObject(i);
String context = instance.getString("context");
Long scheduledActionId = instance.getLong("scheduled_action_id");
String operation = instance.getString("operation");
Boolean operationResult = instance.getBoolean("esito");
String intPraticaId = instance.getString("instanceId");
StringBuilder sb = new StringBuilder("### Sending signal for the ")
.append(operationResult ? "success" : "failure")
.append(" of the ").append(operation)
.append(" on Instance with id ").append(intPraticaId);
_log.debug(sb.toString());
QuarkusBridgeMessageFactoryUtil.updateCallback(context, scheduledActionId, instance);
} }
content.put("code", QuarkusBridgeConstants.successCode);
content.put("portalError", StringPool.BLANK);
if(_log.isDebugEnabled()){
_log.debug("#[!]# Sending SUCCESS callback for ScheduledAction: " + scheduledActionId);
}
QuarkusBridgeMessageFactoryUtil.callback(scheduledActionId, content, companyId, false);
} }
private void signalRead(JSONArray content){ private void signalOperationFailure(String scheduledActionId, String message, long companyId, String code) throws PortalException, SystemException{
//TODO: callback to quarkus middleware // ogni oggetto viene segnalato all'endpoint univoco per l'operazione INSTANCE_WRITE
for(int i = 0; i < content.length() ; i++){ JSONObject content = JSONFactoryUtil.createJSONObject();
// Get each operation result 1 by 1 and signal the result to quarkus middleware content.put("code", code);
JSONObject instance = content.getJSONObject(i); content.put("portalError", message);
String context = instance.getString("context"); if(_log.isDebugEnabled()){
Long scheduledActionId = instance.getLong("scheduled_action_id"); _log.debug("#[!]# Sending FAILURE callback for ScheduledAction: " + scheduledActionId +
String operation = instance.getString("operation"); " with error: " + message);
Boolean operationResult = instance.getBoolean("esito");
String intPraticaId = instance.getString("instanceId");
StringBuilder sb = new StringBuilder("### Sending signal for the ")
.append(operationResult ? "success" : "failure")
.append(" of the ").append(operation)
.append(" on Instance with id ").append(intPraticaId);
_log.debug(sb.toString());
QuarkusBridgeMessageFactoryUtil.readCallback(context, scheduledActionId, instance);
} }
QuarkusBridgeMessageFactoryUtil.callback(scheduledActionId, content, companyId, true);
} }
private JSONArray prepareCreateBatch(long companyId){ private void retrieveAndExecuteCreate(long companyId) throws PortalException, SystemException{
JSONArray createBatchResult = JSONFactoryUtil.createJSONArray(); // JSONArray createBatchResult = JSONFactoryUtil.createJSONArray();
//TODO: Aggiornare quando Enrico chiede da dove recuperare i dati per la creazione //TODO: Aggiornare quando Enrico chiede da dove recuperare i dati per la creazione
// (Nome, Cognome, Email, digitalHolderTaxCode, CadastralCode) // (Nome, Cognome, Email, digitalHolderTaxCode, CadastralCode)
final String clientContext = "SUAP"; final String clientContext = "SUAP";
JSONObject object = QuarkusBridgeMessageFactoryUtil.readNewData(clientContext); JSONObject object = QuarkusBridgeMessageFactoryUtil.readNewData(clientContext, companyId);
_log.debug(object.toString()); if(_log.isDebugEnabled()){
_log.debug(object.toString());
}
JSONArray pratiche = object.getJSONArray("result"); JSONArray pratiche = object.getJSONArray("result");
for(int i = 0; i < pratiche.length() ; i++){ for(int i = 0; i < pratiche.length() ; i++){
JSONObject item = JSONFactoryUtil.createJSONObject(); JSONObject content = JSONFactoryUtil.createJSONObject();
//TODO: remove debug --> content = content.put("context", clientContext);
if(true) continue;
////TODO: remove debug <--
item = item.put("context", clientContext);
JSONObject pratica = pratiche.getJSONObject(i); JSONObject pratica = pratiche.getJSONObject(i);
JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST);
JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST); JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST);
String clientId = Sportello.getString("clientId");
String instanceId = Sportello.getString("instanceId");
String ipaCode = Sportello.getString("ipaCode");
content = content.put("ipaCode", ipaCode);
JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION); JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION);
item = item.put("scheduled_action_id", Action.getLong("id")); String scheduledActionId = Action.getString("id");
String codiceIstat = Sportello.getString(QuarkusBridgeConstants.codiceIstat); String codiceIstat = Sportello.getString(QuarkusBridgeConstants.codiceIstat);
try { try {
// Cerca comune di appartenenza // Cerca comune di appartenenza
Comune comune = PraticaValidator.fetchComune(companyId, codiceIstat); Comune comune = PraticaValidator.fetchComune(companyId, codiceIstat);
if(Validator.isNull(comune)) continue; if(Validator.isNull(comune)){
signalOperationFailure(scheduledActionId,
"Nessun Comune trovato con codiceIstat " + codiceIstat, companyId, QuarkusBridgeConstants.errorCode);
_log.error("#[!]# ACTION: "+scheduledActionId+" # Can't retrieve Comune with codiceIstat: " + codiceIstat);
continue;
}
// Cerca territorio di appartenenza // Cerca territorio di appartenenza
long comuneId = comune.getComuneId(); long comuneId = comune.getComuneId();
Territorio territorio = PraticaValidator.fetchTerritorio(comuneId); Territorio territorio = PraticaValidator.fetchTerritorio(comuneId);
if(Validator.isNull(territorio)) continue; if(Validator.isNull(territorio)) {
signalOperationFailure(scheduledActionId,
"Nessun Territorio trovato per il comuneId " + comuneId +
"con codiceIstat " + codiceIstat, companyId, QuarkusBridgeConstants.errorCode);
_log.error("#[!]# ACTION: "+scheduledActionId+" # Can't retrieve Territorio with comuneID: " + comuneId +
" and codiceIstat: " + codiceIstat);
continue;
}
// Cerca utente associato alla pratica // Cerca utente associato alla pratica
long groupId = territorio.getGroupId(); long groupId = territorio.getGroupId();
String codiceFiscale = Sportello.getString(QuarkusBridgeConstants.codiceFiscale); String codiceFiscale = Sportello.getString(QuarkusBridgeConstants.codiceFiscale);
@ -162,27 +173,51 @@ public class QuarkusBridgeScheduler implements MessageListener {
String nome = Sportello.getString(QuarkusBridgeConstants.nome, StringPool.BLANK); String nome = Sportello.getString(QuarkusBridgeConstants.nome, StringPool.BLANK);
String cognome = Sportello.getString(QuarkusBridgeConstants.cognome, StringPool.BLANK); String cognome = Sportello.getString(QuarkusBridgeConstants.cognome, StringPool.BLANK);
if(Validator.isBlank(email) || Validator.isBlank(nome) || Validator.isBlank(cognome)){ if(Validator.isBlank(email) || Validator.isBlank(nome) || Validator.isBlank(cognome)){
_log.error("#[!]# Missing one or more of the required fields - First Name, Last Name, E-Mail"); signalOperationFailure(scheduledActionId,
"Missing one or more of the required fields - First Name, Last Name, E-Mail",
companyId, QuarkusBridgeConstants.errorCode);
_log.error("#[!]# ACTION: "+scheduledActionId+" # Missing one or more of the required fields - First Name, Last Name, E-Mail");
continue; continue;
} }
User user = PraticaValidator.fetchUser(companyId, groupId, User user = PraticaValidator.fetchUser(companyId, groupId,
codiceFiscale, email, nome, cognome, comuneId); codiceFiscale, email, nome, cognome);
// FIXME: remove, this is just for testing purposes
if(Validator.isNull(user)){
user = UserLocalServiceUtil.getUsers(QueryUtil.ALL_POS, QueryUtil.ALL_POS).get(0);
}
// Recupera la procedura della pratica // Recupera la procedura della pratica
String tipoProcedura = Sportello.getString(QuarkusBridgeConstants.tipoProcedura); String base64Payload = Sportello.getString(QuarkusBridgeConstants.contenuto);
byte[] decodedBytes = DatatypeConverter.parseBase64Binary(base64Payload);
JSONArray jsonArrayContent = JSONFactoryUtil.createJSONArray(new String(decodedBytes));
// JSONArray jsonArrayContent = JSONFactoryUtil.createJSONArray(Sportello.getString(QuarkusBridgeConstants.contenuto));
if(jsonArrayContent.length() != 1){
signalOperationFailure(scheduledActionId,
"Unexpected Array size, size is: " + jsonArrayContent.length(),
companyId, QuarkusBridgeConstants.unexpectedCode);
_log.error("#[!]# ACTION: "+scheduledActionId+" # Unexpected Array size, size is: " + jsonArrayContent.length());
continue;
}
JSONObject jsonObjectContent = jsonArrayContent.getJSONObject(0);
String tipoProcedura = jsonObjectContent.getString(QuarkusBridgeConstants.tipoProcedura);
content = content.put(QuarkusBridgeConstants.tipoProcedura, tipoProcedura);
content = content.put("url", StringPool.BLANK);
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(groupId); serviceContext.setScopeGroupId(groupId);
serviceContext.setCompanyId(companyId); serviceContext.setCompanyId(companyId);
serviceContext.setUserId(user.getUserId()); serviceContext.setUserId(user.getUserId());
//TODO: remove circuit breaker
if(true) continue;
// Aggiungi DettPratica ed IntPratica // Aggiungi DettPratica ed IntPratica
long territorioId = territorio.getTerritorioId(); long territorioId = territorio.getTerritorioId();
//TODO: verifica che la pratica non esista già //TODO: verifica che la pratica non esista gi<EFBFBD>
if(!PraticaValidator.PROCEDURE.contains(tipoProcedura)){ if(!PraticaValidator.PROCEDURE.contains(tipoProcedura)){
_log.error("#[!]# " + tipoProcedura + " is not a Valid TipoPratica"); signalOperationFailure(scheduledActionId,
tipoProcedura + " is not a Valid TipoPratica",
companyId, QuarkusBridgeConstants.errorCode);
_log.error("#[!]# ACTION: "+scheduledActionId+" # " + tipoProcedura + " is not a Valid TipoPratica");
continue; continue;
} }
DettPratica dettPratica = DettPraticaLocalServiceUtil DettPratica dettPratica = DettPraticaLocalServiceUtil
@ -191,112 +226,99 @@ public class QuarkusBridgeScheduler implements MessageListener {
// Add custom fields to IntPratica to fetch future updates from Kafka // Add custom fields to IntPratica to fetch future updates from Kafka
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId());
ExpandoBridge customFieldsExpando = intPratica.getExpandoBridge(); intPratica.setSueSuapInstanceId(instanceId);
customFieldsExpando.addAttribute(QuarkusBridgeConstants.instanceId, intPratica.setSueSuapClientId(clientId);
ExpandoColumnConstants.STRING); intPratica.setSueSuapIpaCode(ipaCode);
customFieldsExpando.addAttribute(QuarkusBridgeConstants.correlationId,
ExpandoColumnConstants.STRING);
customFieldsExpando.addAttribute(QuarkusBridgeConstants.clientId,
ExpandoColumnConstants.STRING);
customFieldsExpando.addAttribute("HeaderSportelloId", ExpandoColumnConstants.LONG);
customFieldsExpando.addAttribute("SportelloId", ExpandoColumnConstants.LONG);
String correlationId = Header.getString(QuarkusBridgeConstants.correlationId);
String clientId = Header.getString(QuarkusBridgeConstants.clientId);
Long headerSportelloId = Header.getLong(QuarkusBridgeConstants.recordId);
Long sportelloId = Sportello.getLong(QuarkusBridgeConstants.recordId);
customFieldsExpando.setAttribute(QuarkusBridgeConstants.correlationId, correlationId);
customFieldsExpando.setAttribute(QuarkusBridgeConstants.clientId, clientId);
customFieldsExpando.setAttribute("HeaderSportelloId", headerSportelloId);
customFieldsExpando.setAttribute("SportelloId", sportelloId);
intPratica.setExpandoBridgeAttributes(customFieldsExpando);
// Persist changes to custom fields // Persist changes to custom fields
IntPratica finalizedPratica = IntPraticaLocalServiceUtil.updateIntPratica(intPratica); IntPratica finalizedPratica = IntPraticaLocalServiceUtil.updateIntPratica(intPratica);
item = item.put("intPraticaId", finalizedPratica.getIntPraticaId()); content = content.put("instanceId", finalizedPratica.getIntPraticaId());
StringBuilder sb = new StringBuilder("### ACTION: "+scheduledActionId+" # Sending signal for the success of the create operation +"
+ "of the IntPratica: " + finalizedPratica.getIntPraticaId());
if(_log.isDebugEnabled()){
_log.debug(sb.toString());
}
signalOperationSuccess(scheduledActionId, false, null, companyId);
} catch (SystemException e) { } catch (SystemException e) {
signalOperationFailure(scheduledActionId, e.toString(), companyId, QuarkusBridgeConstants.errorCode);
_log.error(e ,e); _log.error(e ,e);
} catch (PortalException e) { } catch (PortalException e) {
signalOperationFailure(scheduledActionId, e.toString(), companyId, QuarkusBridgeConstants.errorCode);
_log.error(e, e); _log.error(e, e);
} }
item = item.put("header", Header);
item = item.put("body", Sportello);
createBatchResult.put(item);
} }
return createBatchResult;
} }
private JSONArray prepareReadBatch(long companyId){ private void retrieveAndExecuteRead(long companyId){
final String clientContext = "SUAP"; final String clientContext = "SUAP";
JSONArray readBatchResult = JSONFactoryUtil.createJSONArray();
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery();
query.add(RestrictionsFactoryUtil.eq("companyId", companyId));
//TODO: scoprire in quali stati possono essere le pratiche ed ottimizzare la query
try { try {
List<IntPratica> praticheDaAggiornare = IntPraticaLocalServiceUtil.dynamicQuery(query); JSONObject object = QuarkusBridgeMessageFactoryUtil.readData(clientContext, companyId);
//TODO: splittare le pratiche da aggiornare _log.debug(object.toString());
JSONArray pratiche = object.getJSONArray("result");
//TODO: ciclare per effettuare gli update delle singole pratiche for(int i = 0; i < pratiche.length(); i++){
for(IntPratica intPratica : praticheDaAggiornare){ JSONObject pratica = pratiche.getJSONObject(i);
long intPraticaId = intPratica.getIntPraticaId(); JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST);
String praticaId = String.valueOf(intPraticaId); JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST);
JSONObject object = QuarkusBridgeMessageFactoryUtil.readData(clientContext, praticaId); JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION);
JSONArray readPartialResult = JSONFactoryUtil.createJSONArray(); String scheduledActionId = Action.getString("id");
_log.debug(object.toString());
JSONArray aggiornamentiPratiche = object.getJSONArray("result"); String payloadContentType = Sportello.getString(QuarkusBridgeConstants.tipoContenuto);
for(int i = 0; i < aggiornamentiPratiche.length(); i++){ //TODO: gestire pi<EFBFBD> tipi di payload? (Sia JSONObject che JSONArray??)
JSONObject pratica = aggiornamentiPratiche.getJSONObject(i); String base64Payload = Sportello.getString(QuarkusBridgeConstants.contenuto);
//TODO: remove debug --> byte[] decodedBytes = DatatypeConverter.parseBase64Binary(base64Payload);
if(true) continue; String contentString = new String(decodedBytes);
////TODO: remove debug <-- if(_log.isDebugEnabled()){
JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST); _log.debug("### ACTION: "+scheduledActionId+" # Content Value: " + contentString);
JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST); }
JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION); JSONObject payload = null;
if(contentString.charAt(0) == '{'){
String payloadContentType = Sportello.getString(QuarkusBridgeConstants.tipoContenuto); payload = JSONFactoryUtil.createJSONObject(contentString);
//TODO: gestire più tipi di payload? (Sia JSONObject che JSONArray??) }
String base64Payload = Sportello.getString(QuarkusBridgeConstants.contenuto); if(contentString.charAt(0) == '['){
byte[] decodedBytes = DatatypeConverter.parseBase64Binary(base64Payload); JSONArray payloadArray = JSONFactoryUtil.createJSONArray(contentString);
JSONObject payload = JSONFactoryUtil.createJSONObject(new String(decodedBytes)); payload = payloadArray.getJSONObject(0);
}
Long quarkusIntPraticaId = payload.getLong(QuarkusBridgeConstants.instanceId);
String sueSuapId = Sportello.getString(QuarkusBridgeConstants.instanceId);
IntPratica intPratica =
IntPraticaLocalServiceUtil.fetchByIntPraticaId_SueSuapInstanceId(quarkusIntPraticaId, sueSuapId);
if(Validator.isNotNull(intPratica)){
long intPraticaId = intPratica.getIntPraticaId();
JSONObject instance = serializeInstance(intPratica, clientContext); JSONObject instance = serializeInstance(intPratica, clientContext);
instance.put("scheduled_action_id", Action.getLong("id"));
switch(payloadContentType){ switch(payloadContentType){
case "INSTANCE_READ": case "INSTANCE_READ":
instance.put("operation", "INSTANCE_READ"); signalOperationSuccess(scheduledActionId, false, instance, companyId);
instance.put("esito", true); break;
readPartialResult.put(instance); case "DATA_READ":
break; _log.debug("Reading current Data from database for Pratica with Id "+ intPraticaId);
case "DATA_READ": JSONObject currentData = readDataPratica(payload, intPraticaId);
_log.debug("Reading current Data from database for Pratica with Id "+ intPraticaId); if(currentData.length() == 0){
JSONObject currentData = readDataPratica(payload, intPraticaId); String message = "Unable to read Data from database for Pratica with Id "+ intPraticaId;
if(currentData.length() == 0){ _log.error(message);
currentData.put("esito", false); signalOperationFailure(scheduledActionId, message, companyId, QuarkusBridgeConstants.errorCode);
_log.error("Unable to read Data from database for Pratica with Id "+ intPraticaId); } else {
} else { signalOperationSuccess(scheduledActionId, false, currentData, companyId);
currentData.put("esito", true); }
} break;
instance.put("operation", "DATA_READ"); case "COMPLIANCE_READ":
instance.put("DATA_READ", currentData); //TODO: validare i dati
readPartialResult.put(instance); break;
break; default:
case "COMPLIANCE_READ": _log.debug(pratica.toString());
//TODO: validare i dati break;
break;
default:
_log.debug(pratica.toString());
break;
} }
} else {
String message = "No IntPratica found for intPraticaId: " + quarkusIntPraticaId + " and ActionId: " + scheduledActionId;
_log.error(message);
signalOperationFailure(scheduledActionId, message, companyId, QuarkusBridgeConstants.errorCode);
} }
readBatchResult.put(readPartialResult);
} }
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); _log.error(e,e);
} }
return readBatchResult;
} }
private JSONObject serializeInstance(IntPratica pratica, String context){ private JSONObject serializeInstance(IntPratica pratica, String context){
@ -309,133 +331,152 @@ public class QuarkusBridgeScheduler implements MessageListener {
String instanceId = String.valueOf(pratica.getIntPraticaId()); String instanceId = String.valueOf(pratica.getIntPraticaId());
INSTANCE.put("instanceId", instanceId); INSTANCE.put("instanceId", instanceId);
String ipaCode = ""; String ipaCode = pratica.getSueSuapIpaCode();
//TODO: retrieve ipaCode String clientId = pratica.getSueSuapClientId();
String clientId = "";
//TODO: retrieve clientId //TODO: retrieve clientId
String proceedingType = pratica.getTipoProcedura(); String proceedingType = pratica.getTipoProcedura();
INSTANCE.put("proceedingType", proceedingType); INSTANCE.put("proceedingType", proceedingType);
INSTANCE.put("content", JSONFactoryUtil.looseSerialize(pratica)); INSTANCE.put("content", JSONFactoryUtil.looseSerialize(pratica));
return INSTANCE; return INSTANCE;
} }
private JSONArray prepareUpdateBatch(long companyId){ private void retrieveAndExecuteUpdate(long companyId){
final String clientContext = "SUAP"; final String clientContext = "SUAP";
JSONArray updateResult = JSONFactoryUtil.createJSONArray();
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery();
query.add(RestrictionsFactoryUtil.eq("companyId", companyId));
//TODO: scoprire in quali stati possono essere le pratiche ed ottimizzare la query
try { try {
List<IntPratica> praticheDaAggiornare = IntPraticaLocalServiceUtil.dynamicQuery(query); JSONObject object = QuarkusBridgeMessageFactoryUtil.writeUpdateData(clientContext, companyId);
//TODO: splittare le pratiche da aggiornare if(_log.isDebugEnabled()){
for(IntPratica intPratica : praticheDaAggiornare){
long intPraticaId = intPratica.getIntPraticaId();
String praticaId = String.valueOf(intPraticaId);
JSONObject object = QuarkusBridgeMessageFactoryUtil.writeUpdateData(clientContext, praticaId);
_log.debug(object.toString()); _log.debug(object.toString());
if(object.length() == 0) continue; }
JSONArray updatePartialResult = JSONFactoryUtil.createJSONArray(); // Batch delle operazioni completate su una IntPratica JSONArray aggiornamentiPratiche = object.getJSONArray("result");
JSONArray aggiornamentiPratiche = object.getJSONArray("result");
for(int i = 0; i < aggiornamentiPratiche.length(); i++){
for(int i = 0; i < aggiornamentiPratiche.length(); i++){ JSONObject pratica = aggiornamentiPratiche.getJSONObject(i);
JSONObject pratica = aggiornamentiPratiche.getJSONObject(i); //TODO: remove debug -->
//TODO: remove debug --> // if(true) continue;
if(true) continue; ////TODO: remove debug <--
////TODO: remove debug <-- JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST);
JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST); JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST);
JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST); JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION);
JSONObject Action = pratica.getJSONObject(QuarkusBridgeConstants.SCHEDULED_ACTION); String scheduledActionId = Action.getString("id");
String payloadContentType = Sportello.getString(QuarkusBridgeConstants.tipoContenuto);
String payloadContentType = Sportello.getString(QuarkusBridgeConstants.tipoContenuto); //TODO: gestire pi<EFBFBD> tipi di payload? (Sia JSONObject che JSONArray??)
//TODO: gestire più tipi di payload? (Sia JSONObject che JSONArray??) String base64Payload = Sportello.getString(QuarkusBridgeConstants.contenuto);
String base64Payload = Sportello.getString(QuarkusBridgeConstants.contenuto); byte[] decodedBytes = DatatypeConverter.parseBase64Binary(base64Payload);
byte[] decodedBytes = DatatypeConverter.parseBase64Binary(base64Payload); String contentString = new String(decodedBytes);
JSONObject payload = JSONFactoryUtil.createJSONObject(new String(decodedBytes)); if(_log.isDebugEnabled()){
_log.debug("### ACTION: "+scheduledActionId+" # Content Value: " + contentString);
}
JSONObject payload = null;
if(contentString.charAt(0) == '{'){
payload = JSONFactoryUtil.createJSONObject(contentString);
}
if(contentString.charAt(0) == '['){
JSONArray payloadArray = JSONFactoryUtil.createJSONArray(contentString);
payload = payloadArray.getJSONObject(0);
}
Long quarkusIntPraticaId = payload.getLong(QuarkusBridgeConstants.instanceId);
String sueSuapId = Sportello.getString(QuarkusBridgeConstants.instanceId);
IntPratica intPratica =
IntPraticaLocalServiceUtil.fetchByIntPraticaId_SueSuapInstanceId(quarkusIntPraticaId, sueSuapId);
if(Validator.isNotNull(intPratica)){
long intPraticaId = intPratica.getIntPraticaId();
JSONObject instance = serializeInstance(intPratica, clientContext); JSONObject instance = serializeInstance(intPratica, clientContext);
instance.put("scheduled_action_id", Action.getLong("id")); // instance.put("scheduled_action_id", Action.getLong("id"));
switch(payloadContentType){ switch(payloadContentType){
case "INSTANCE_DELETE": // Elimina la pratica case "INSTANCE_DELETE": // Elimina la pratica
if(_log.isDebugEnabled()){
_log.debug("Checking if we can delete Instance of Pratica with Id " + intPraticaId); _log.debug("Checking if we can delete Instance of Pratica with Id " + intPraticaId);
if (PraticaValidator.canDeletePratica(intPratica.getIntPraticaId())){ }
if (PraticaValidator.canDeletePratica(intPratica.getIntPraticaId())){
if(_log.isDebugEnabled()){
_log.debug("Deleting Instance of Pratica with Id " + intPraticaId); _log.debug("Deleting Instance of Pratica with Id " + intPraticaId);
IntPraticaLocalServiceUtil.deleteIntPratica(intPratica, false);
instance.put("esito", true);
} else {
_log.debug("Cannot delete Instance of Pratica with Id "+ intPraticaId);
instance.put("esito", false);
} }
instance.put("operation", "INSTANCE_DELETE"); IntPraticaLocalServiceUtil.deleteIntPratica(intPratica, false);
updatePartialResult.put(instance); signalOperationSuccess(scheduledActionId, false, null, companyId);
break; } else {
case "DATA_WRITE": // Aggiorna i dati dei campi del DettPratica associato ad IntPratica String message = "Cannot delete Instance of Pratica with Id "+ intPraticaId;
_log.debug("Writing new data to database for Pratica with Id "+ intPraticaId); if(_log.isDebugEnabled()){
JSONObject currentData = writeData(payload, intPraticaId); _log.debug(message);
if(currentData.length() == 0){ }
instance.put("esito", false); signalOperationFailure(scheduledActionId, message, companyId, QuarkusBridgeConstants.errorCode);
_log.error("Unable to write Data data database for Pratica with Id "+ intPraticaId); }
} else { break;
instance.put("esito", true); case "DATA_WRITE": // Aggiorna i dati dei campi del DettPratica associato ad IntPratica
_log.debug("Writing new data to database for Pratica with Id "+ intPraticaId);
JSONObject currentData = writeData(payload, intPraticaId);
if(currentData.length() == 0){
String message = "Unable to write Data data database for Pratica with Id "+ intPraticaId;
_log.error(message);
signalOperationFailure(scheduledActionId, message, companyId, QuarkusBridgeConstants.errorCode);
} else {
if(_log.isDebugEnabled()){
_log.debug("Data written to database for Pratica with Id "+ intPraticaId); _log.debug("Data written to database for Pratica with Id "+ intPraticaId);
} }
instance.put("operation", "DATA_WRITE"); signalOperationSuccess(scheduledActionId, false, null, companyId);
instance.put("DATA_WRITE", currentData); }
updatePartialResult.put(instance); break;
break; case "DATA_DELETE": // Elimina i dati dei campi del DettPratica associato ad IntPratica
case "DATA_DELETE": // Elimina i dati dei campi del DettPratica associato ad IntPratica //TODO: eliminazione dati dentro entit<EFBFBD>
//TODO: eliminazione dati dentro entità break;
break; default:
default: if(_log.isDebugEnabled()){
_log.debug(pratica.toString()); _log.debug(pratica.toString());
break; }
break;
} }
} else {
String message = "No IntPratica found for intPraticaId: " + quarkusIntPraticaId + " and ActionId: " + scheduledActionId;
_log.error(message);
signalOperationFailure(scheduledActionId, message, companyId, QuarkusBridgeConstants.errorCode);
} }
} }
} catch (SystemException | PortalException e) { } catch (SystemException | PortalException e) {
_log.error(e,e); _log.error(e,e);
} }
return updateResult;
} }
protected JSONObject readDataPratica(JSONObject payload, long intPraticaId){ protected JSONObject readDataPratica(JSONObject payload, long intPraticaId){
JSONObject result = JSONFactoryUtil.createJSONObject(); JSONObject result = JSONFactoryUtil.createJSONObject();
String dataType = payload.getJSONObject("data").getString("dataType"); String dataType = payload.getJSONObject("data").getString("dataType");
switch(dataType){ switch(dataType){
case QuarkusBridgeConstants.DataTypes.MAIN_DETAILS: case QuarkusBridgeConstants.DataTypes.MAIN_DETAILS:
JSONArray TC = TipologiaCostruttivaUtil.getTipologiaCostruttiva(intPraticaId); JSONArray TC = TipologiaCostruttivaUtil.getTipologiaCostruttiva(intPraticaId);
if(TC.length() > 0) result.put("constructionType", TC.getJSONObject(0)); if(TC.length() > 0) result.put("constructionType", TC.getJSONObject(0));
JSONArray description = DescrizioneUtil.getDescrizione(intPraticaId); JSONArray description = DescrizioneUtil.getDescrizione(intPraticaId);
if(description.length() > 0) result.put("description", description.getJSONObject(0)); if(description.length() > 0) result.put("description", description.getJSONObject(0));
JSONArray destination = DestinazioneUtil.getDestinazione(intPraticaId); JSONArray destination = DestinazioneUtil.getDestinazione(intPraticaId);
if(destination.length() > 0) result.put("destination", destination.getJSONObject(0)); if(destination.length() > 0) result.put("destination", destination.getJSONObject(0));
JSONArray tipoInterventoANDNormativa = TipologieInterventoUtil.getTipologiaIntervento(intPraticaId); JSONArray tipoInterventoANDNormativa = TipologieInterventoUtil.getTipologiaIntervento(intPraticaId);
if(tipoInterventoANDNormativa.length() > 0) { if(tipoInterventoANDNormativa.length() > 0) {
result.put("projectType", tipoInterventoANDNormativa.getJSONObject(0) result.put("projectType", tipoInterventoANDNormativa.getJSONObject(0)
.getJSONObject("projectType")); .getJSONObject("projectType"));
result.put("regulatory", tipoInterventoANDNormativa.getJSONObject(0) result.put("regulatory", tipoInterventoANDNormativa.getJSONObject(0)
.getJSONObject("regulatory")); .getJSONObject("regulatory"));
} }
break; break;
case QuarkusBridgeConstants.DataTypes.ACTORS: case QuarkusBridgeConstants.DataTypes.ACTORS:
JSONArray actors = payload.getJSONArray("actors"); JSONArray actors = payload.getJSONArray("actors");
JSONArray partial = JSONFactoryUtil.createJSONArray(); JSONArray partial = JSONFactoryUtil.createJSONArray();
for(int i = 0; i < actors.length() ; i++){ for(int i = 0; i < actors.length() ; i++){
JSONObject soggetto = actors.getJSONObject(i); JSONObject soggetto = actors.getJSONObject(i);
JSONArray actor = SoggettiUtil.getSoggetto(soggetto, intPraticaId); JSONArray actor = SoggettiUtil.getSoggetto(soggetto, intPraticaId);
if(actor.length() > 0) partial.put(actor.getJSONObject(0)); if(actor.length() > 0) partial.put(actor.getJSONObject(0));
} }
result.put("actors", partial); result.put("actors", partial);
break; break;
case QuarkusBridgeConstants.DataTypes.ATTACHMENTS_WITH_FILE: case QuarkusBridgeConstants.DataTypes.ATTACHMENTS_WITH_FILE:
JSONArray attachments = AllegatiUtil.recuperaDocumentiAllegatiPratica(intPraticaId); JSONArray attachments = AllegatiUtil.recuperaDocumentiAllegatiPratica(intPraticaId);
result.put("attachments", attachments); result.put("attachments", attachments);
break; break;
case QuarkusBridgeConstants.DataTypes.WORK_DESCRIPTION: case QuarkusBridgeConstants.DataTypes.WORK_DESCRIPTION:
//TODO: aspettare che vengano definite le buildingMetrics //TODO: aspettare che vengano definite le buildingMetrics
break; break;
} }
return result; return result;
@ -444,34 +485,34 @@ public class QuarkusBridgeScheduler implements MessageListener {
protected JSONObject writeData(JSONObject payload, long intPraticaId){ protected JSONObject writeData(JSONObject payload, long intPraticaId){
String dataType = payload.getJSONObject("data").getString("dataType"); String dataType = payload.getJSONObject("data").getString("dataType");
switch(dataType){ switch(dataType){
case QuarkusBridgeConstants.DataTypes.MAIN_DETAILS: case QuarkusBridgeConstants.DataTypes.MAIN_DETAILS:
JSONObject constructionType = payload.getJSONObject("constructionType"); JSONObject constructionType = payload.getJSONObject("constructionType");
TipologiaCostruttivaUtil.aggiornaTipologiaCostruttiva(intPraticaId, constructionType); TipologiaCostruttivaUtil.aggiornaTipologiaCostruttiva(intPraticaId, constructionType);
JSONObject description = payload.getJSONObject("description"); JSONObject description = payload.getJSONObject("description");
DescrizioneUtil.aggiornaDescrizione(intPraticaId, description); DescrizioneUtil.aggiornaDescrizione(intPraticaId, description);
JSONObject destination = payload.getJSONObject("destination"); JSONObject destination = payload.getJSONObject("destination");
DestinazioneUtil.aggiornaDestinazione(intPraticaId, destination); DestinazioneUtil.aggiornaDestinazione(intPraticaId, destination);
JSONObject projectType = payload.getJSONObject("projectType"); JSONObject projectType = payload.getJSONObject("projectType");
TipologieInterventoUtil.aggiornaTipologieIntervento(intPraticaId, projectType); TipologieInterventoUtil.aggiornaTipologieIntervento(intPraticaId, projectType);
break; break;
case QuarkusBridgeConstants.DataTypes.ACTORS: case QuarkusBridgeConstants.DataTypes.ACTORS:
JSONArray actors = payload.getJSONArray("actors"); JSONArray actors = payload.getJSONArray("actors");
for(int i = 0; i < actors.length() ; i++){ for(int i = 0; i < actors.length() ; i++){
JSONObject soggetto = actors.getJSONObject(i); JSONObject soggetto = actors.getJSONObject(i);
SoggettiUtil.aggiornaSoggetto(soggetto, intPraticaId); SoggettiUtil.aggiornaSoggetto(soggetto, intPraticaId);
} }
break; break;
case QuarkusBridgeConstants.DataTypes.ATTACHMENTS_WITH_FILE: case QuarkusBridgeConstants.DataTypes.ATTACHMENTS_WITH_FILE:
JSONArray attachments = payload.getJSONArray("attachments"); JSONArray attachments = payload.getJSONArray("attachments");
for(int i = 0; i < attachments.length() ; i++){ for(int i = 0; i < attachments.length() ; i++){
JSONObject fileObject = attachments.getJSONObject(i); JSONObject fileObject = attachments.getJSONObject(i);
Object file = AllegatiUtil.aggiungiDocumentoPratica(fileObject, intPraticaId); Object file = AllegatiUtil.aggiungiDocumentoPratica(fileObject, intPraticaId);
if(Validator.isNull(file)) _log.error("Unable to add attachment "+fileObject.toString()); if(Validator.isNull(file)) _log.error("Unable to add attachment "+fileObject.toString());
else _log.debug("Attachment added to pratica with id "+intPraticaId); else _log.debug("Attachment added to pratica with id "+intPraticaId);
} }
break; break;
case QuarkusBridgeConstants.DataTypes.WORK_DESCRIPTION: case QuarkusBridgeConstants.DataTypes.WORK_DESCRIPTION:
//TODO: aspettare che vengano definite le buildingMetrics //TODO: aspettare che vengano definite le buildingMetrics
break; break;
} }
return readDataPratica(payload, intPraticaId); return readDataPratica(payload, intPraticaId);

10
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath

@ -6,11 +6,6 @@
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet"> <classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet">
@ -20,5 +15,10 @@
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/portos-bo-portlet"/> <classpathentry combineaccessrules="false" kind="src" path="/portos-bo-portlet"/>
<classpathentry combineaccessrules="false" kind="src" path="/portos-bo-shared"/> <classpathentry combineaccessrules="false" kind="src" path="/portos-bo-shared"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

Caricamento…
Annulla
Salva