Sfoglia il codice sorgente

Delega committente

master
Salvatore La Manna 3 anni fa
parent
commit
eb5f007277
  1. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar
  2. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar
  3. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar
  4. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar
  5. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java
  6. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  7. 36
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  8. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java
  9. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java
  10. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java
  11. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java
  12. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java
  13. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java
  14. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java
  15. 17
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  16. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java
  17. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  18. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java
  19. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java
  21. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  22. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java
  23. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java
  24. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java
  25. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java
  26. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java
  27. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java
  28. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  29. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  30. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java
  32. 52
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  33. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java
  34. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java
  35. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  36. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java
  37. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  38. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java
  39. 73
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  40. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java
  41. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java
  42. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java
  43. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java
  44. 40
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  45. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  46. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  47. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java
  48. 70
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java
  49. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaLocalServiceImpl.java
  50. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
  51. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java
  52. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderImpl.java
  53. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java
  54. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java
  55. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  56. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/homebo/view.jsp
  57. 72
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  58. 28
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath
  59. 37
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.project
  60. 12
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/.jsdtscope
  61. 7
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.jdt.core.prefs
  62. 3
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.jst.jsp.core.prefs
  63. 12
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component
  64. 7
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
  65. 11
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  66. 1
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container
  67. 1
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name
  68. 6
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/build.xml
  69. 3
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/META-INF/MANIFEST.MF
  70. 1
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/.gitignore
  71. BIN
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar
  72. 8
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml
  73. 5
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-hook.xml
  74. 14
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  75. 28
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml
  76. 34
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml
  77. 22
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml
  78. 40
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/NoSuchSportelloException.java
  79. 34
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/Sportello.java
  80. 505
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java
  81. 248
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java
  82. 156
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java
  83. 431
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java
  84. 288
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/ClpSerializer.java
  85. 252
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalService.java
  86. 701
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceClp.java
  87. 308
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceUtil.java
  88. 311
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceWrapper.java
  89. 66
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloService.java
  90. 91
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceClp.java
  91. 96
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceUtil.java
  92. 84
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceWrapper.java
  93. 44
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/messaging/ClpMessageListener.java
  94. 37
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloActionableDynamicQuery.java
  95. 161
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java
  96. 279
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java
  97. 0
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties
  98. 0
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql
  99. 0
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/sequences.sql
  100. 19
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql
  101. Some files were not shown because too many files have changed in this diff Show More

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java

@ -182,11 +182,7 @@ public class DelegheUtil {
dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE,
new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
if (deleghe.isEmpty()) { if (deleghe.isEmpty()) {
if (user.getUserId() == dettPratica.getUserId()) { controllo = user.getUserId() == dettPratica.getUserId();
controllo = true;
} else {
controllo = false;
}
} else { } else {
controllo = false; controllo = false;
for (Delega delega : deleghe) { for (Delega delega : deleghe) {

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java

@ -158,7 +158,9 @@ public class ManutenzioneDatabase {
PortalException { PortalException {
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
long companyId = serviceContext.getCompanyId(); long companyId = serviceContext.getCompanyId();
if (mode.contains("!Workflow=")) {
esito.addAll(SismicaUtil.riparaWorkflow(mode.replaceAll(".*?!Workflow=([^!]*)!", "$1")));
}
if (mode.contains("!UnitaOperative!")) { if (mode.contains("!UnitaOperative!")) {
esito.addAll(fixUnitaOperative()); esito.addAll(fixUnitaOperative());
} }

36
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java

@ -120,6 +120,35 @@ public class SismicaUtil {
return null; return null;
} }
public static List<String> riparaWorkflow(String numeroProgetto) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
long intPraticaId = pratica.getIntPraticaId();
long companyId = pratica.getCompanyId();
long groupId = pratica.getGroupId();
long userId = pratica.getUserId();
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
long dettPraticaId = dettPratica.getDettPraticaId();
if (Validator.isNull(pratica)) {
esitoLog(esito, "Progetto " + numeroProgetto + " non trovato");
return esito;
}
// STATUS_APPROVED STATUS_DENIED STATUS_DRAFT STATUS_INACTIVE STATUS_PENDING
List<ControlloPratica> controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId,
WorkflowConstants.STATUS_PENDING);
if (0 == controlli.size()) {
esitoLog(esito, "Aggiungo controllo pratica");
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(companyId);
serviceContext.setScopeGroupId(dettPraticaId);
serviceContext.setUserId(userId);
ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true,
serviceContext);
}
return esito;
}
public static Long daysBetween(String start, String end) { public static Long daysBetween(String start, String end) {
Long diff = null; Long diff = null;
@ -796,4 +825,11 @@ public class SismicaUtil {
} while (pratiche.size() > 0); } while (pratiche.size() > 0);
return esito; return esito;
} }
private static List<String> esitoLog(List<String> esito, String msg) {
esito.add(msg);
_log.info(msg);
return esito;
}
} }

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java

@ -16,9 +16,6 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
/**
* Servlet implementation class GeosismaRequestServlet
*/
@WebServlet("/GeosismaRequest") @WebServlet("/GeosismaRequest")
public class GeosismaRequestServlet extends HttpServlet { public class GeosismaRequestServlet extends HttpServlet {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java

@ -369,8 +369,8 @@ public class ControlloPraticaIndexer extends BaseIndexer {
throws Exception { throws Exception {
if (Validator.isNotNull(document)) { if (Validator.isNotNull(document)) {
String title = document.get(""); String title = document.get(StringPool.BLANK);
String content = document.get(""); String content = document.get(StringPool.BLANK);
String controlloPraticaId = document.get(PortosIndexField.CONTROLLO_PRATICA_ID); String controlloPraticaId = document.get(PortosIndexField.CONTROLLO_PRATICA_ID);
portletURL.setParameter("struts_action", "/web/TODO"); portletURL.setParameter("struts_action", "/web/TODO");
portletURL.setParameter("intPraticaId", controlloPraticaId); portletURL.setParameter("intPraticaId", controlloPraticaId);

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java

@ -91,10 +91,8 @@ public class IntPraticaIndexer extends BaseIndexer {
} }
} }
/* // Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole
* Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole // contenute e non per corrispondenza esatta.
* contenute e non per corrispondenza esatta.
*/
@Override @Override
protected Document doGetDocument(Object obj) throws Exception { protected Document doGetDocument(Object obj) throws Exception {
@ -419,7 +417,6 @@ public class IntPraticaIndexer extends BaseIndexer {
ActionableDynamicQuery actionableDynamicQuery = new IntPraticaActionableDynamicQuery() { ActionableDynamicQuery actionableDynamicQuery = new IntPraticaActionableDynamicQuery() {
@Override @Override
protected void performAction(Object object) throws PortalException { protected void performAction(Object object) throws PortalException {
if (object != null) { if (object != null) {
IntPratica intPratica = (IntPratica) object; IntPratica intPratica = (IntPratica) object;
if (intPratica != null) { if (intPratica != null) {

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Comune service. Represents a row in the &quot;portos_amm_Comune&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Comune service. Represents a row in the &quot;portos_amm_Comune&quot;
* database table, with each column mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -26,9 +28,8 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ComuneImpl extends ComuneBaseImpl { public class ComuneImpl extends ComuneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comune model instance should
* * use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead.
* Never reference this class directly. All methods that expect a comune model instance should use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead.
*/ */
public ComuneImpl() { public ComuneImpl() {
} }

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Comunicazione service. Represents a row in the &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Comunicazione service. Represents a row in the
* &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -26,9 +28,8 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ComunicazioneImpl extends ComunicazioneBaseImpl { public class ComunicazioneImpl extends ComunicazioneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comunicazione model instance
* * should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead.
* Never reference this class directly. All methods that expect a comunicazione model instance should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead.
*/ */
public ComunicazioneImpl() { public ComunicazioneImpl() {
} }

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Configurazione service. Represents a row in the &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Configurazione service. Represents a row in the
* &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -26,9 +28,8 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ConfigurazioneImpl extends ConfigurazioneBaseImpl { public class ConfigurazioneImpl extends ConfigurazioneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a configurazione model instance
* * should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead.
* Never reference this class directly. All methods that expect a configurazione model instance should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead.
*/ */
public ConfigurazioneImpl() { public ConfigurazioneImpl() {
} }

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the ControlloPratica service. Represents a row in the &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the ControlloPratica service. Represents a row in the
* &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -26,9 +28,8 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ControlloPraticaImpl extends ControlloPraticaBaseImpl { public class ControlloPraticaImpl extends ControlloPraticaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a controllo pratica model
* * instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
* Never reference this class directly. All methods that expect a controllo pratica model instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
*/ */
public ControlloPraticaImpl() { public ControlloPraticaImpl() {
} }

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

@ -22,14 +22,12 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Delega service. Represents a row in * The extended model implementation for the Delega service. Represents a row in the &quot;portos_bo_Delega&quot;
* the &quot;portos_bo_Delega&quot; database table, with each column mapped to a * database table, with each column mapped to a property of this class.
* property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* Whenever methods are added, rerun ServiceBuilder to copy their definitions * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
* into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -37,11 +35,8 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl { public class DelegaImpl extends DelegaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a delega model instance should
* * use the {@link it.tref.liferay.portos.bo.model.Delega} interface instead.
* Never reference this class directly. All methods that expect a delega
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Delega} interface instead.
*/ */
public DelegaImpl() { public DelegaImpl() {
} }

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

@ -31,10 +31,8 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl { public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc aggiuntiva model instance
* * should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
* Never reference this class directly. All methods that expect a doc aggiuntiva model instance should use the
* {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
*/ */
public DocAggiuntivaImpl() { public DocAggiuntivaImpl() {
} }

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

@ -95,6 +95,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
@Override @Override
public boolean isSanatoria() { public boolean isSanatoria() {
return getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P8) return getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P8)
|| getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P9); || getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P9);
} }

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

@ -34,9 +34,11 @@ public class TerritorioImpl extends TerritorioBaseImpl {
@Override @Override
public String getZonaFasciaDesc() { public String getZonaFasciaDesc() {
String ret = "Zona " + getZona(); StringBuilder sb = new StringBuilder();
if (getArticolo61()) sb.append("Zona ").append(getZona());
ret += " - abitato da consolidare"; if (getArticolo61()) {
return ret; sb.append(" - abitato da consolidare");
}
return sb.toString();
} }
} }

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java

@ -33,14 +33,12 @@ public class IntPraticaModelListener extends BaseModelListener<IntPratica> {
intIndexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); intIndexer.reindex(IntPratica.class.getName(), model.getIntPraticaId());
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", model.getIntPraticaId())); queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", model.getIntPraticaId()));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS,
QueryUtil.ALL_POS); QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) { for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(model.getCompanyId(), controlloPratica.getUuid()); controlloIndexer.delete(model.getCompanyId(), controlloPratica.getUuid());
controlloIndexer controlloIndexer.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
}
} }
} catch (SearchException | SystemException e) { } catch (SearchException | SystemException e) {
_log.error(e, e); _log.error(e, e);

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java

@ -45,6 +45,7 @@ public class AllegatiManualiPortlet extends MVCPortlet {
public void uploadAllegatoManuale(ActionRequest actionRequest, ActionResponse actionResponse) public void uploadAllegatoManuale(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException { throws PortalException, SystemException {
try { try {
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest);

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java

@ -323,9 +323,7 @@ public class FascicoloPortlet extends MVCPortlet {
PortletException { PortletException {
String id = resourceRequest.getResourceID(); String id = resourceRequest.getResourceID();
ServiceContext serviceContext;
try { try {
serviceContext = ServiceContextFactory.getInstance(resourceRequest);
if ("downloadAllDocPratica".equals(id)) { if ("downloadAllDocPratica".equals(id)) {
long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId");
long classPk = ParamUtil.getLong(resourceRequest, "classPk"); long classPk = ParamUtil.getLong(resourceRequest, "classPk");

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java

@ -87,22 +87,15 @@ public class GestioneFirmePortlet extends MVCPortlet {
PortletException { PortletException {
String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); String resourceId = GetterUtil.getString(resourceRequest.getResourceID());
if (resourceId.equals("exportCSV")) { if (resourceId.equals("exportCSV")) {
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = themeDisplay.getCompanyId(); long companyId = themeDisplay.getCompanyId();
Locale locale = themeDisplay.getLocale(); Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
String tabs1 = ParamUtil.getString(resourceRequest, "tabs1"); String tabs1 = ParamUtil.getString(resourceRequest, "tabs1");
try { try {
String csv = null; String csv = null;
String fileName = null; String fileName = null;
if ("Tab_AvvisiDaFirmare".equals(tabs1)) { if ("Tab_AvvisiDaFirmare".equals(tabs1)) {
fileName = "firmati"; fileName = "firmati";
csv = exportToCSVAvvisiDaFirmare(companyId, user, locale); csv = exportToCSVAvvisiDaFirmare(companyId, user, locale);
@ -113,19 +106,14 @@ public class GestioneFirmePortlet extends MVCPortlet {
fileName = "da_firmare"; fileName = "da_firmare";
csv = exportToCSVAvvisiFirme(companyId, user.getScreenName(), locale); csv = exportToCSVAvvisiFirme(companyId, user.getScreenName(), locale);
} }
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest);
HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse);
ServletResponseUtil.sendFile(request, response, "export_firme_" + fileName + ".csv", ServletResponseUtil.sendFile(request, response, "export_firme_" + fileName + ".csv",
csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8); csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8);
} catch (Exception e) { } catch (Exception e) {
throw new IOException(e); throw new IOException(e);
} }
} }
super.serveResource(resourceRequest, resourceResponse); super.serveResource(resourceRequest, resourceResponse);
} }

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java

@ -59,6 +59,7 @@ public class HomeBOPortlet extends MVCPortlet {
for (Long intPraticaId : praticheAttiveAutorizzazioni) { for (Long intPraticaId : praticheAttiveAutorizzazioni) {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
@SuppressWarnings("unchecked")
List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query); List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty()) { if (lista != null && !lista.isEmpty()) {
ControlloPratica controlloPratica = lista.get(0); ControlloPratica controlloPratica = lista.get(0);
@ -68,6 +69,7 @@ public class HomeBOPortlet extends MVCPortlet {
queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId())); queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId()));
queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione")); queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione"));
queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false)); queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false));
@SuppressWarnings("unchecked")
List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil
.dynamicQuery(queryKaleo); .dynamicQuery(queryKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) { if (listaKaleo != null && !listaKaleo.isEmpty()) {
@ -87,6 +89,7 @@ public class HomeBOPortlet extends MVCPortlet {
for (Long intPraticaId : praticheAttiveControlloObbligatorio) { for (Long intPraticaId : praticheAttiveControlloObbligatorio) {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
@SuppressWarnings("unchecked")
List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query); List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty()) { if (lista != null && !lista.isEmpty()) {
ControlloPratica controlloPratica = lista.get(0); ControlloPratica controlloPratica = lista.get(0);
@ -97,6 +100,7 @@ public class HomeBOPortlet extends MVCPortlet {
queryKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName())); queryKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName()));
queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione")); queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione"));
queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false)); queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false));
@SuppressWarnings("unchecked")
List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil
.dynamicQuery(queryKaleo); .dynamicQuery(queryKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) { if (listaKaleo != null && !listaKaleo.isEmpty()) {

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java

@ -23,15 +23,13 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
public class PaesaggisticaAdministrationPortlet extends MVCPortlet { public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
throws SystemException {
List<String> esito = new ArrayList<String>();
List<String> esito = new ArrayList<String>();
esito.add("<h3>Env:</h3>"); esito.add("<h3>Env:</h3>");
for (Map.Entry<String, String> entry : System.getenv().entrySet()) { for (Map.Entry<String, String> entry : System.getenv().entrySet()) {
esito.add(entry.getKey() + "=" + entry.getValue()); esito.add(entry.getKey() + "=" + entry.getValue());
} }
esito.add("<h3>Properties:</h3>"); esito.add("<h3>Properties:</h3>");
for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) { for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
esito.add(entry.getKey() + "=" + entry.getValue()); esito.add(entry.getKey() + "=" + entry.getValue());
@ -39,16 +37,14 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
throws PortalException, SystemException { SystemException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
if (Validator.isNotNull(intPraticaId)) { if (Validator.isNotNull(intPraticaId)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId()); IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId());
} }
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
if (Validator.isNotNull(numeroProgetto)) { if (Validator.isNotNull(numeroProgetto)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId()); IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId());
@ -56,6 +52,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
} }
public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) { public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null; List<String> esito = null;
esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId()); esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId());
@ -65,6 +62,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse) public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException { throws PortalException, SystemException {
String mode = ParamUtil.getString(actionRequest, "mode"); String mode = ParamUtil.getString(actionRequest, "mode");
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode); List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode);

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java

@ -26,17 +26,14 @@ public class PagamentiPendingPortlet extends MVCPortlet {
SystemException { SystemException {
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
String url = ParamUtil.getString(actionRequest, "redirect"); String url = ParamUtil.getString(actionRequest, "redirect");
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId); Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId);
if (Validator.isNotNull(pagamento)) { if (Validator.isNotNull(pagamento)) {
PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(), PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(),
pagamento.getMezzo(), url, serviceContext); pagamento.getMezzo(), url, serviceContext);
} }
} catch (Exception e) { } catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e); _log.error("Error", e);
@ -48,16 +45,13 @@ public class PagamentiPendingPortlet extends MVCPortlet {
SystemException { SystemException {
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext); PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext);
} catch (Exception e) { } catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e); _log.error("Error", e);
throw new SystemException(e); throw new SystemException(e);
} }
} }
} }

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java

@ -152,6 +152,7 @@ public class TempistichePortlet extends MVCPortlet {
query.add(RestrictionsFactoryUtil.eq("tipo", TempisticaConstants.TIPO_PRATICA)); query.add(RestrictionsFactoryUtil.eq("tipo", TempisticaConstants.TIPO_PRATICA));
Order defaultOrderDettPrtatica = OrderFactoryUtil.desc("createDate"); Order defaultOrderDettPrtatica = OrderFactoryUtil.desc("createDate");
query.addOrder(defaultOrderDettPrtatica); query.addOrder(defaultOrderDettPrtatica);
@SuppressWarnings("unchecked")
List<Tempistica> lista = TempisticaLocalServiceUtil.dynamicQuery(query); List<Tempistica> lista = TempisticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty() && lista.size() > 1) { if (lista != null && !lista.isEmpty() && lista.size() > 1) {
intPraticaId = lista.get(0).getIntPraticaId(); intPraticaId = lista.get(0).getIntPraticaId();
@ -196,6 +197,7 @@ public class TempistichePortlet extends MVCPortlet {
} }
Order defaultOrder = OrderFactoryUtil.desc("createDate"); Order defaultOrder = OrderFactoryUtil.desc("createDate");
queryAvv.addOrder(defaultOrder); queryAvv.addOrder(defaultOrder);
@SuppressWarnings("unchecked")
List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv);
if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) { if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) {
sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio()))); sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio())));

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java

@ -59,16 +59,22 @@ public class SchedulerGeneraDocumento implements MessageListener {
for (Company company : CompanyLocalServiceUtil.getCompanies()) { for (Company company : CompanyLocalServiceUtil.getCompanies()) {
String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(), String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(),
ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO);
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() + " attivo? " _log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() + " attivo? "
+ condition); + condition);
}
if (Boolean.parseBoolean(condition)) { if (Boolean.parseBoolean(condition)) {
int count = AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento(); int count = AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento();
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - numero avvisi " + count); _log.debug("SchedulerGeneraDocumento - numero avvisi " + count);
}
for (int cursor = 0; cursor <= count; cursor += SIZE) { for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor
+ SIZE); + SIZE);
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId()); _log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId());
}
try { try {
FileEntry fileEntryTemplate = null; FileEntry fileEntryTemplate = null;
try { try {

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java

@ -216,9 +216,7 @@ public class SchedulerInvioDocumento implements MessageListener {
} }
} }
/** // ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo notifica di assegnazione/riassegnazione
* ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo notifica di assegnazione/riassegnazione
*/
private void processAvvisiInvioTecnico() throws SystemException { private void processAvvisiInvioTecnico() throws SystemException {
int count = AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); int count = AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew();

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java

@ -270,7 +270,6 @@ public class SchedulerPratiche implements MessageListener {
// in caso di errore successivo alla protocollazione salto questa operazione // in caso di errore successivo alla protocollazione salto questa operazione
if (Validator.isNull(intPratica.getNumeroProgetto())) { if (Validator.isNull(intPratica.getNumeroProgetto())) {
intPratica = IntPraticaLocalServiceUtil.addNumeroProgetto(intPratica.getIntPraticaId()); intPratica = IntPraticaLocalServiceUtil.addNumeroProgetto(intPratica.getIntPraticaId());
} }
return intPratica; return intPratica;

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

@ -56,8 +56,6 @@ import com.liferay.portal.NoSuchRepositoryEntryException;
import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.QueryUtil;
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;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -93,8 +91,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
* it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil} to access the asseverazione local service. * it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil} to access the asseverazione local service.
*/ */
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class);
@Override @Override
public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni) public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni)
throws IOException, SystemException, PortalException { throws IOException, SystemException, PortalException {

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

@ -21,8 +21,6 @@ import java.util.List;
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;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.security.auth.PrincipalException; import com.liferay.portal.security.auth.PrincipalException;
@ -50,8 +48,6 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl {
* it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil} to access the asseverazione remote service. * it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil} to access the asseverazione remote service.
*/ */
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneServiceImpl.class);
@Override @Override
public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, SystemException, public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, SystemException,
PortalException { PortalException {

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

@ -208,7 +208,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
+ "\", userCodiceFiscalePrimaFirma=\"" + userCodiceFiscalePrimaFirma + "\", fileEntryIdBase=" + "\", userCodiceFiscalePrimaFirma=\"" + userCodiceFiscalePrimaFirma + "\", fileEntryIdBase="
+ fileEntryIdBase + ", fileEntryIdFirma=" + fileEntryIdFirma + ", jsonParameters=\"" + jsonParameters + fileEntryIdBase + ", fileEntryIdFirma=" + fileEntryIdFirma + ", jsonParameters=\"" + jsonParameters
+ "\", controlloPraticaId=" + controlloPraticaId + ", serviceContext=\"" + serviceContext + "\""); + "\", controlloPraticaId=" + controlloPraticaId + ", serviceContext=\"" + serviceContext + "\"");
User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId()); User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId());
Date now = new Date(); Date now = new Date();
Avviso avviso = createAvviso(counterLocalService.increment(Avviso.class.getName())); Avviso avviso = createAvviso(counterLocalService.increment(Avviso.class.getName()));
@ -286,6 +285,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return super.addAvviso(avviso); return super.addAvviso(avviso);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> search(long[] groupIds, Long classPk, String keywords, int start, int end) public List<Avviso> search(long[] groupIds, Long classPk, String keywords, int start, int end)
throws SystemException { throws SystemException {
@ -325,6 +325,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiFirmatiByCF(long companyId, String cf, int start, int end) throws SystemException { public List<Avviso> getAvvisiFirmatiByCF(long companyId, String cf, int start, int end) throws SystemException {
@ -354,6 +355,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf, int start, int end) public List<Avviso> getAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf, int start, int end)
throws SystemException { throws SystemException {
@ -418,6 +420,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf, int start, public List<Avviso> getAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf, int start,
int end) throws SystemException { int end) throws SystemException {
@ -455,6 +458,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds, int start, int end) public List<Avviso> getAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds, int start, int end)
throws SystemException { throws SystemException {
@ -500,6 +504,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiGenerazioneDocumento(int start, int end) throws SystemException { public List<Avviso> getAvvisiGenerazioneDocumento(int start, int end) throws SystemException {
@ -526,6 +531,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiFirmaDocumento(int start, int end) throws SystemException { public List<Avviso> getAvvisiFirmaDocumento(int start, int end) throws SystemException {
@ -558,6 +564,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiInvioDocumento(int start, int end) throws SystemException { public List<Avviso> getAvvisiInvioDocumento(int start, int end) throws SystemException {
@ -589,10 +596,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoInvioSignal(long avvisoId) throws SystemException { public Avviso getAvvisoInvioSignal(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(avvisoId); DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(avvisoId);
List<Avviso> avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); @SuppressWarnings("unchecked")
return avviso.isEmpty() ? null : avviso.get(0); List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiInvioSignal(int start, int end) throws SystemException { public List<Avviso> getAvvisiInvioSignal(int start, int end) throws SystemException {
@ -630,10 +639,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoTempistica(long avvisoId) throws SystemException { public Avviso getAvvisoTempistica(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(avvisoId); DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(avvisoId);
List<Avviso> avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); @SuppressWarnings("unchecked")
return avviso.isEmpty() ? null : avviso.get(0); List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiTempistica(int start, int end) throws SystemException { public List<Avviso> getAvvisiTempistica(int start, int end) throws SystemException {
@ -799,6 +810,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoInvioTecnico(long avvisoId) throws SystemException { public Avviso getAvvisoInvioTecnico(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(avvisoId); DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(avvisoId);
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0); return avvisi.isEmpty() ? null : avvisi.get(0);
} }
@ -810,6 +822,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiInvioTecnico(int start, int end) throws SystemException { public List<Avviso> getAvvisiInvioTecnico(int start, int end) throws SystemException {
@ -860,6 +873,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avvisoPersistence.findByIntPraticaIds_tipoDocumento(intPraticaIds, tipoDocumento); return avvisoPersistence.findByIntPraticaIds_tipoDocumento(intPraticaIds, tipoDocumento);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> findByClassPk_ExcludeTipoDocumento(Long classPk, String tipoDocumento) throws SystemException { public List<Avviso> findByClassPk_ExcludeTipoDocumento(Long classPk, String tipoDocumento) throws SystemException {
@ -987,10 +1001,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0); return avvisi.isEmpty() ? null : avvisi.get(0);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getListaAvvisiPerApplet(String codFisc) throws SystemException { public List<Avviso> getListaAvvisiPerApplet(String codFisc) throws SystemException {
@ -1041,6 +1057,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return updateAvviso(avviso); return updateAvviso(avviso);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiRifiutatiByControlloPraticaId(long controlloPraticaId) throws SystemException { public List<Avviso> getAvvisiRifiutatiByControlloPraticaId(long controlloPraticaId) throws SystemException {
@ -1081,6 +1098,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avviso; return avviso;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> protocolliSearch(String dataDa, String dataA, String numeroProtocollo, int start, int end) public List<Avviso> protocolliSearch(String dataDa, String dataA, String numeroProtocollo, int start, int end)
throws ParseException, SystemException { throws ParseException, SystemException {
@ -1151,6 +1169,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return count; return count;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Avviso> getAvvisiPerAggiuntaProtocollo(int start, int end) throws SystemException { public List<Avviso> getAvvisiPerAggiuntaProtocollo(int start, int end) throws SystemException {
@ -1179,9 +1198,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
} }
// NUOVI METODI ADT // NUOVI METODI ADT
/** // ADT
* ADT
*/
@Override @Override
public int countAvvisiInvioTecnicoNew() throws SystemException { public int countAvvisiInvioTecnicoNew() throws SystemException {
@ -1189,9 +1206,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
} }
/** // ADT
* ADT @SuppressWarnings("unchecked")
*/
@Override @Override
public List<Avviso> getAvvisiInvioTecnicoNew(int start, int end) throws SystemException { public List<Avviso> getAvvisiInvioTecnicoNew(int start, int end) throws SystemException {
@ -1200,9 +1216,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
/** // ADT
* ADT
*/
private DynamicQuery dynamicQueryAvvisiInvioTecnicoNew(Long avvisoId) throws SystemException { private DynamicQuery dynamicQueryAvvisiInvioTecnicoNew(Long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
@ -1224,9 +1238,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
/** // ADT
* ADT
*/
@Override @Override
public Avviso getAvvisoVidimazione(long intPraticaId, long dettPraticaID) throws SystemException { public Avviso getAvvisoVidimazione(long intPraticaId, long dettPraticaID) throws SystemException {
@ -1239,13 +1251,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaID)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaID));
dynamicQuery.addOrder(OrderFactoryUtil.asc("avvisoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1);
return ritorno.isEmpty() ? null : ritorno.get(0); return ritorno.isEmpty() ? null : ritorno.get(0);
} }
/** // ADT
* ADT
*/
@Override @Override
public Avviso getLastAvvisoIntegrazione(long intPraticaId) throws SystemException { public Avviso getLastAvvisoIntegrazione(long intPraticaId) throws SystemException {
@ -1257,6 +1268,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1);
return ritorno.isEmpty() ? null : ritorno.get(0); return ritorno.isEmpty() ? null : ritorno.get(0);
} }

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

@ -39,10 +39,8 @@ import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
*/ */
public class AvvisoServiceImpl extends AvvisoServiceBaseImpl { public class AvvisoServiceImpl extends AvvisoServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* * it.tref.liferay.portos.bo.service.AvvisoServiceUtil} to access the avviso remote service.
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.AvvisoServiceUtil}
* to access the avviso remote service.
*/ */
@Override @Override

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

@ -153,6 +153,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false));
dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId"));
@SuppressWarnings("unchecked")
List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1); List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1);
if (!collaudoList.isEmpty()) if (!collaudoList.isEmpty())
return collaudoList.get(0); return collaudoList.get(0);
@ -166,6 +167,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId"));
@SuppressWarnings("unchecked")
List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1); List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1);
if (!collaudoList.isEmpty()) if (!collaudoList.isEmpty())
return collaudoList.get(0); return collaudoList.get(0);
@ -362,6 +364,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
return collaudoPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); return collaudoPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Collaudo> findByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId, public List<Collaudo> findByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId,
boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException { boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -381,10 +384,12 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId)); dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale));
@SuppressWarnings("unchecked")
List<Collaudo> results = dynamicQuery(dynamicQuery); List<Collaudo> results = dynamicQuery(dynamicQuery);
return results.size(); return results.size();
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Collaudo> findCollaudiCompletiNotProtocollo(int start, int end) throws SystemException { public List<Collaudo> findCollaudiCompletiNotProtocollo(int start, int end) throws SystemException {
@ -412,6 +417,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Collaudo> findCollaudiCompletiNotGestiti(int start, int end) throws SystemException { public List<Collaudo> findCollaudiCompletiNotGestiti(int start, int end) throws SystemException {

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

@ -208,6 +208,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
return comunePersistence.findByC_CP(companyId, codiceProvincia, start, end, orderByComparator); return comunePersistence.findByC_CP(companyId, codiceProvincia, start, end, orderByComparator);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Comune> findByKeywords(long companyId, String keywords, int start, int end, public List<Comune> findByKeywords(long companyId, String keywords, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {

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

@ -54,5 +54,4 @@ public class ComuneServiceImpl extends ComuneServiceBaseImpl {
return ComuneLocalServiceUtil.getComunes(start, end); return ComuneLocalServiceUtil.getComunes(start, end);
} }
} }

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

@ -461,6 +461,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
@Override @Override
public String getJsonEsitoPratica(long controlloPraticaId, Map<String, Serializable> workflowContext) public String getJsonEsitoPratica(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId());
if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) {
@ -498,9 +499,10 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
JSONArray esito = JSONFactoryUtil.createJSONArray(); JSONArray esito = JSONFactoryUtil.createJSONArray();
esito.put(etichetta(StatoPraticaConstants.CONFORME)); esito.put(etichetta(StatoPraticaConstants.CONFORME));
esito.put(etichetta("Perizia di stima per committente", StatoPraticaConstants.INTEGRAZIONE, true));
esito.put(etichetta(StatoPraticaConstants.NON_CONFORME)); esito.put(etichetta(StatoPraticaConstants.NON_CONFORME));
esito.put(etichetta("Autorizzazione a seguito di pagamento di sanzione pecuniaria", esito.put(etichetta(StatoPraticaConstants.INTEGRAZIONE));
StatoPraticaConstants.INTEGRAZIONE, true)); esito.put(etichetta(StatoPraticaConstants.PREAVVISO_CONTRARIO));
JSONObject ret = JSONFactoryUtil.createJSONObject(); JSONObject ret = JSONFactoryUtil.createJSONObject();
ret.put("esito", esito); ret.put("esito", esito);
return ret.toString(); return ret.toString();
@ -603,6 +605,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo); DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo);
dqKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPraticaId)); dqKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPraticaId));
dqKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName())); dqKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName()));
@SuppressWarnings("unchecked")
List<KaleoInstance> listaKaleo = KaleoInstanceLocalServiceUtil.dynamicQuery(dqKaleo); List<KaleoInstance> listaKaleo = KaleoInstanceLocalServiceUtil.dynamicQuery(dqKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) { if (listaKaleo != null && !listaKaleo.isEmpty()) {
KaleoInstance kaleoInstance = listaKaleo.get(0); KaleoInstance kaleoInstance = listaKaleo.get(0);
@ -615,6 +618,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", "registra-esito")); dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", "registra-esito"));
Order defaultOrder = OrderFactoryUtil.desc("createDate"); Order defaultOrder = OrderFactoryUtil.desc("createDate");
dqKaleoLog.addOrder(defaultOrder); dqKaleoLog.addOrder(defaultOrder);
@SuppressWarnings("unchecked")
List<FormLog> listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog); List<FormLog> listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog);
if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) { if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) {
FormLog formLog = listaKaleoLog.get(0); FormLog formLog = listaKaleoLog.get(0);

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

@ -69,9 +69,7 @@ import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
*/ */
public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil} to access the delega local service. * it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil} to access the delega local service.
*/ */
@ -246,6 +244,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); return delegaPersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> findCfByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { public List<String> findCfByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException {
@ -254,6 +253,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery); return delegaPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Delega> findByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { public List<Delega> findByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException {
@ -261,6 +261,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery); return delegaPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> findCfByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti) public List<String> findCfByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti)
throws SystemException { throws SystemException {
@ -271,6 +272,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery); return delegaPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Delega> findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti) public List<Delega> findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti)
throws SystemException { throws SystemException {

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

@ -306,12 +306,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@Override @Override
@ -322,12 +319,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@Override @Override
@ -340,12 +334,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@Override @Override
@ -357,12 +348,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@Override @Override
@ -375,12 +363,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@Override @Override
@ -395,14 +380,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findCompletedByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche) public List<DettPratica> findCompletedByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche)
throws SystemException { throws SystemException {
@ -426,10 +409,10 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
int size = dynamicQuery(dynamicQuery).size(); return dynamicQuery(dynamicQuery).size();
return size;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findCompletedByIntPraticaAndSuccessivoDettPratica(long intPraticaId, long dettPraticaId) public List<DettPratica> findCompletedByIntPraticaAndSuccessivoDettPratica(long intPraticaId, long dettPraticaId)
throws SystemException { throws SystemException {
@ -518,8 +501,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
SystemException { SystemException {
Date now = new Date(); Date now = new Date();
validate(userId, dettPraticaId, intPraticaId, codiceFiscaleDelegatoCommittente,
codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, serviceContext);
DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId);
dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); dettPratica.setModifiedDate(serviceContext.getModifiedDate(now));
dettPratica.setIntPraticaId(intPraticaId); dettPratica.setIntPraticaId(intPraticaId);
@ -1487,10 +1468,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica; return dettPratica;
} }
private void validate(long userId, long dettPraticaId, long intPraticaId, String codiceFiscaleDelegatoCommittente,
String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) {
}
@Override @Override
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)
public DettPratica updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext) public DettPratica updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
@ -1581,6 +1558,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findByIntPraticaId(intPraticaId); return dettPraticaPersistence.findByIntPraticaId(intPraticaId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findByIntPraticaIdInviate(long intPraticaId, int start, int end) throws SystemException { public List<DettPratica> findByIntPraticaIdInviate(long intPraticaId, int start, int end) throws SystemException {
@ -1592,6 +1570,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findPraticheCompleteNotProtocollo(int start, int end) throws SystemException { public List<DettPratica> findPraticheCompleteNotProtocollo(int start, int end) throws SystemException {
@ -1619,6 +1598,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findPraticheCompleteNotGestite(int start, int end) throws SystemException { public List<DettPratica> findPraticheCompleteNotGestite(int start, int end) throws SystemException {
@ -1660,6 +1640,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
completa); completa);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findPraticheCompletateNonVersionate(int start, int end) throws SystemException { public List<DettPratica> findPraticheCompletateNonVersionate(int start, int end) throws SystemException {
@ -1724,10 +1705,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
public DettPratica getInvioSignal(long dettPraticaId) throws SystemException { public DettPratica getInvioSignal(long dettPraticaId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryInvioSignal(dettPraticaId); DynamicQuery dynamicQuery = dynamicQueryInvioSignal(dettPraticaId);
@SuppressWarnings("unchecked")
List<DettPratica> integrazioni = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); List<DettPratica> integrazioni = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return !integrazioni.isEmpty() ? integrazioni.get(0) : null; return integrazioni.isEmpty() ? null : integrazioni.get(0);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> getInviiSignal(int start, int end) throws SystemException { public List<DettPratica> getInviiSignal(int start, int end) throws SystemException {
@ -1750,6 +1733,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findByPagamentoId(long pagamentoId) throws SystemException { public List<DettPratica> findByPagamentoId(long pagamentoId) throws SystemException {
@ -1848,9 +1832,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE); return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE);
} }
/** // ADT: nuovo metodo per stampa fascicolo
* ADT: nuovo metodo per stampa fascicolo
*/
@Override @Override
public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException { public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException {
@ -1859,11 +1841,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1); List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) { return ritorno.isEmpty() ? null : ritorno.get(0);
return null;
} else {
return ritorno.get(0);
}
} }
} }

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

@ -310,6 +310,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getDocPraticaDaInviareDax(int start, int end) throws SystemException { public List<DocPratica> getDocPraticaDaInviareDax(int start, int end) throws SystemException {
@ -376,6 +377,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPraticaPersistence.findByClassPk_Tipologia(classPk, tipologia, start, end); return docPraticaPersistence.findByClassPk_Tipologia(classPk, tipologia, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) public List<DocPratica> findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException { throws SystemException {
@ -387,6 +389,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery, start, end); return soggettoPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, public List<DocPratica> findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException { int start, int end) throws SystemException {
@ -399,6 +402,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end); return dynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> findByIntPratica_ClassPk_Tipologie(long intPraticaId, long classPk, List<String> tipologie) public List<DocPratica> findByIntPratica_ClassPk_Tipologie(long intPraticaId, long classPk, List<String> tipologie)
throws SystemException { throws SystemException {
@ -411,6 +415,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> findByIntPratica_ClassPkEqual_Tipologie(long intPraticaId, long classPk, public List<DocPratica> findByIntPratica_ClassPkEqual_Tipologie(long intPraticaId, long classPk,
List<String> tipologie) throws SystemException { List<String> tipologie) throws SystemException {
@ -436,6 +441,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return findDistinctDlFileEntryId(new long[] { classPk }, tipologia, start, end); return findDistinctDlFileEntryId(new long[] { classPk }, tipologia, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> findDistinctDlFileEntryId(long[] classPks, String tipologia, int start, int end) public List<Long> findDistinctDlFileEntryId(long[] classPks, String tipologia, int start, int end)
throws SystemException { throws SystemException {
@ -452,6 +458,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidByIntPratica(long intPraticaId) throws SystemException { public List<DocPratica> getValidByIntPratica(long intPraticaId) throws SystemException {
@ -462,6 +469,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) public List<DocPratica> getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException { throws SystemException {
@ -482,6 +490,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidTmpByIntPratica(long intPraticaId, int start, int end) throws SystemException { public List<DocPratica> getValidTmpByIntPratica(long intPraticaId, int start, int end) throws SystemException {
@ -490,6 +499,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end); return dynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) public List<DocPratica> getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException { throws SystemException {
@ -500,6 +510,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end); return dynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidTmpByIntPratica_DettPratica_Tipologia(long intPraticaId, long dettPraticaId, public List<DocPratica> getValidTmpByIntPratica_DettPratica_Tipologia(long intPraticaId, long dettPraticaId,
String tipologia, int start, int end) throws SystemException { String tipologia, int start, int end) throws SystemException {
@ -512,6 +523,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end); return dynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie, int start, int end) public List<DocPratica> getValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie, int start, int end)
throws SystemException { throws SystemException {
@ -538,6 +550,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getInvalidByIntPratica(long intPraticaId) throws SystemException { public List<DocPratica> getInvalidByIntPratica(long intPraticaId) throws SystemException {
@ -548,6 +561,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { public List<DocPratica> getInvalidTmpByIntPratica(long intPraticaId) throws SystemException {
@ -558,6 +572,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DocPratica> getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia, public List<DocPratica> getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException { int start, int end) throws SystemException {
@ -615,9 +630,8 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPratica; return docPratica;
} }
/** // Metodo nuovo ADT
* Metodo nuovo ADT @SuppressWarnings("unchecked")
*/
@Override @Override
public List<DocPratica> findByIntPratica_ClassPk_TipologiaNew(long intPraticaId, long classPk, String tipologia, public List<DocPratica> findByIntPratica_ClassPk_TipologiaNew(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException { int start, int end) throws SystemException {

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

@ -53,7 +53,6 @@ public class DocPraticaServiceImpl extends DocPraticaServiceBaseImpl {
return docPraticaLocalService.addDocPratica(userId, className, classPk, intPraticaId, dlFileEntry, fileName, return docPraticaLocalService.addDocPratica(userId, className, classPk, intPraticaId, dlFileEntry, fileName,
version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari, version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari,
dettPraticaIdRimozione, dtDataRimozione, serviceContext); dettPraticaIdRimozione, dtDataRimozione, serviceContext);
} }
@Override @Override

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

@ -161,11 +161,9 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false));
dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId"));
@SuppressWarnings("unchecked")
List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1);
if (!fineLavoriList.isEmpty()) { return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0);
return fineLavoriList.get(0);
}
return null;
} }
@Override @Override
@ -175,11 +173,9 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId"));
@SuppressWarnings("unchecked")
List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1);
if (!fineLavoriList.isEmpty()) { return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0);
return fineLavoriList.get(0);
}
return null;
} }
@Override @Override
@ -412,6 +408,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
return fineLavoriPersistence.countByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata); return fineLavoriPersistence.countByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<FineLavori> findByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId, public List<FineLavori> findByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId,
boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException { boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -431,10 +428,12 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId)); dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale));
@SuppressWarnings("unchecked")
List<FineLavori> results = dynamicQuery(dynamicQuery); List<FineLavori> results = dynamicQuery(dynamicQuery);
return results.isEmpty() ? 0 : results.size(); return results.isEmpty() ? 0 : results.size();
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<FineLavori> findFineLavoriCompleteNotProtocollo(int start, int end) throws SystemException { public List<FineLavori> findFineLavoriCompleteNotProtocollo(int start, int end) throws SystemException {
@ -462,6 +461,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<FineLavori> findFineLavoriCompleteNotGestite(int start, int end) throws SystemException { public List<FineLavori> findFineLavoriCompleteNotGestite(int start, int end) throws SystemException {
@ -493,6 +493,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId")));
@SuppressWarnings("unchecked")
List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery);
return ids; return ids;
} }
@ -505,6 +506,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo)); dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId")));
@SuppressWarnings("unchecked")
List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery);
return ids; return ids;
} }

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

@ -54,6 +54,8 @@ public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowAction
* to access the history workflow action local service. * to access the history workflow action local service.
*/ */
@Override
@SuppressWarnings("unchecked")
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId, int sort) throws SystemException { public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId, int sort) throws SystemException {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(HistoryWorkflowAction.class); DynamicQuery query = DynamicQueryFactoryUtil.forClass(HistoryWorkflowAction.class);
@ -69,5 +71,4 @@ public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowAction
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) throws SystemException { public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) throws SystemException {
return historyWorkflowActionPersistence.findByIntPratica(intPraticaId); return historyWorkflowActionPersistence.findByIntPratica(intPraticaId);
} }
} }

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

@ -159,8 +159,8 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
@Override @Override
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId, public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId,
String tipoProcedura, String statoPratica, String numeroProgetto, boolean validata, String tipoProcedura, String statoPratica, String numeroProgetto, boolean validata, int esitoControllo,
int esitoControllo, Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException { Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException {
Date now = new Date(); Date now = new Date();
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId);
@ -327,6 +327,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaPersistence.fetchByPrimaryKey(intPraticaId); return intPraticaPersistence.fetchByPrimaryKey(intPraticaId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> findFascicoliNotProgetto(int start, int end) throws SystemException { public List<IntPratica> findFascicoliNotProgetto(int start, int end) throws SystemException {
@ -469,6 +470,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica = updateIntPratica(intPratica); intPratica = updateIntPratica(intPratica);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException,
PortalException { PortalException {
@ -498,6 +500,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException,
PortalException { PortalException {
@ -540,6 +543,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@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)
throws SystemException, PortalException { throws SystemException, PortalException {
@ -576,6 +580,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end) public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end)
throws SystemException, PortalException { throws SystemException, PortalException {
@ -618,6 +623,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaFinder.canAddCollaudoCount(codiceFiscale); return intPraticaFinder.canAddCollaudoCount(codiceFiscale);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> search(List<Long> groupIds, int start, int end) throws SystemException { public List<IntPratica> search(List<Long> groupIds, int start, int end) throws SystemException {
@ -638,6 +644,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> searchWithIntPraticaId(List<Long> groupIds, long intPraticaId, int start, int end) public List<IntPratica> searchWithIntPraticaId(List<Long> groupIds, long intPraticaId, int start, int end)
throws SystemException { throws SystemException {
@ -795,23 +802,22 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId()));
queryCP.addOrder(OrderFactoryUtil.desc("controlloPraticaId")); queryCP.addOrder(OrderFactoryUtil.desc("controlloPraticaId"));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS,
QueryUtil.ALL_POS); QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) { for (ControlloPratica controlloPratica : appList) {
_log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId()); _log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId());
try { try {
WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE, WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE,
WorkflowUtil.getWorkflowContext(controlloPratica)); WorkflowUtil.getWorkflowContext(controlloPratica));
WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink( WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(controlloPratica.getCompanyId(),
controlloPratica.getCompanyId(), controlloPratica.getGroupId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(),
ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); controlloPratica.getPrimaryKey());
} catch (Exception e) { } catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId=" _log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId="
+ controlloPratica.getControlloPraticaId()); + controlloPratica.getControlloPraticaId());
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile disattivare workflow per intPraticaId=" _log.error("Errore in annullamento pratica - Impossibile disattivare workflow per intPraticaId="
+ intPraticaId); + intPraticaId);
@ -871,8 +877,8 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Long[] intPraticaIds) public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Long[] intPraticaIds) throws SystemException,
throws SystemException, PortalException { PortalException {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
if (Validator.isNotNull(ispettoreId)) { if (Validator.isNotNull(ispettoreId)) {
@ -889,8 +895,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica) public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica) throws SystemException {
throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
if (Validator.isNotNull(ispettoreId)) { if (Validator.isNotNull(ispettoreId)) {
@ -1150,14 +1155,13 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId()); intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId());
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId()));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP,
QueryUtil.ALL_POS, QueryUtil.ALL_POS); QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) { for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(companyId, controlloPratica.getUuid()); controlloIndexer.delete(companyId, controlloPratica.getUuid());
controlloIndexer.reindex(ControlloPratica.class.getName(), controlloIndexer
controlloPratica.getControlloPraticaId()); .reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
}
} }
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
@ -1185,11 +1189,9 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery dq = dynamicQuery(); DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
@SuppressWarnings("unchecked")
List<IntPratica> lista = dynamicQuery(dq); List<IntPratica> lista = dynamicQuery(dq);
if (lista != null && !lista.isEmpty()) { return lista.isEmpty() ? null : lista.get(0);
return lista.get(0);
}
return null;
} }
@Override @Override

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

@ -263,6 +263,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end) public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end)
throws SystemException { throws SystemException {
@ -281,6 +282,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata, int start, int end) throws SystemException { String utilizzata, int start, int end) throws SystemException {
@ -339,6 +341,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator) public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator)
throws SystemException { throws SystemException {
@ -454,6 +457,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return pagamentoPersistence.countByIntPratica(intPraticaId); return pagamentoPersistence.countByIntPratica(intPraticaId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByIntPratica_Visible(long intPraticaId) throws SystemException { public List<Pagamento> findByIntPratica_Visible(long intPraticaId) throws SystemException {

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

@ -213,6 +213,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.countByGeologoId(geologoUserId); return parereGeologoPersistence.countByGeologoId(geologoUserId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<ParereGeologo> findNotParereByGeologoId(long geologoUserId, int start, int end) throws SystemException { public List<ParereGeologo> findNotParereByGeologoId(long geologoUserId, int start, int end) throws SystemException {
@ -222,6 +223,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return dynamicQuery(dynamicQuery, start, end); return dynamicQuery(dynamicQuery, start, end);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<ParereGeologo> findWithParereByGeologoId(long geologoUserId, int start, int end) throws SystemException { public List<ParereGeologo> findWithParereByGeologoId(long geologoUserId, int start, int end) throws SystemException {

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

@ -143,6 +143,7 @@ public class ProvinciaLocalServiceImpl extends ProvinciaLocalServiceBaseImpl {
return provinciaPersistence.findByC_C(companyId, codiceProvincia); return provinciaPersistence.findByC_C(companyId, codiceProvincia);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Provincia> findByKeywords(long companyId, String keywords, int start, int end, public List<Provincia> findByKeywords(long companyId, String keywords, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {

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

@ -579,6 +579,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
tipologiaSoggetto, dettPraticaIdRimozione); tipologiaSoggetto, dettPraticaIdRimozione);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByIntPratica(long intPraticaId) throws SystemException { public List<Soggetto> getValidByIntPratica(long intPraticaId) throws SystemException {
@ -587,6 +588,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByDettPratica(long dettPraticaId) throws SystemException { public List<Soggetto> getValidByDettPratica(long dettPraticaId) throws SystemException {
@ -612,6 +614,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidTmpByIntPratica(long intPraticaId) throws SystemException { public List<Soggetto> getValidTmpByIntPratica(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica(intPraticaId); DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica(intPraticaId);
@ -635,6 +638,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException { public List<Soggetto> getTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException {
@ -661,6 +665,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getSoggettiPrincipaliValidTmpByDettPratica(long dettPraticaId) throws SystemException, public List<Soggetto> getSoggettiPrincipaliValidTmpByDettPratica(long dettPraticaId) throws SystemException,
PortalException { PortalException {
@ -670,6 +675,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, public List<Soggetto> getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId,
String[] tipologieSoggetto) throws SystemException, PortalException { String[] tipologieSoggetto) throws SystemException, PortalException {
@ -689,6 +695,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, public List<String> getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId,
String[] tipologieSoggetto) throws SystemException, PortalException { String[] tipologieSoggetto) throws SystemException, PortalException {
@ -707,16 +714,15 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dettPratica.getCodiceFiscalePrincipaleCommittente(), dettPratica.getCodiceFiscalePrincipaleCommittente(),
dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), dettPratica.getCodiceFiscalePrincipaleDitta(), dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), dettPratica.getCodiceFiscalePrincipaleDitta(),
dettPratica.getCodiceFiscalePrincipaleGeologo(), dettPratica.getCodiceFiscalePrincipaleProgettista() }; dettPratica.getCodiceFiscalePrincipaleGeologo(), dettPratica.getCodiceFiscalePrincipaleProgettista() };
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", dettPratica.getIntPraticaId())); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", dettPratica.getIntPraticaId()));
dynamicQuery.add(RestrictionsFactoryUtil.in("codiceFiscale", cfPrincipali)); dynamicQuery.add(RestrictionsFactoryUtil.in("codiceFiscale", cfPrincipali));
dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidTmpByDettPratica(long dettPraticaId) throws SystemException { public List<Soggetto> getValidTmpByDettPratica(long dettPraticaId) throws SystemException {
@ -725,6 +731,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getCfValidTmpByDettPratica(long dettPraticaId) throws SystemException { public List<String> getCfValidTmpByDettPratica(long dettPraticaId) throws SystemException {
@ -733,6 +740,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getCfValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) public List<String> getCfValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto)
throws SystemException { throws SystemException {
@ -746,6 +754,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getCfValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) public List<String> getCfValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto)
throws SystemException { throws SystemException {
@ -772,6 +781,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, public List<Soggetto> getValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale,
long docDettPraticaId) throws SystemException { long docDettPraticaId) throws SystemException {
@ -798,12 +808,9 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, 0L); DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, 0L);
dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
@SuppressWarnings("unchecked")
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery);
if (soggetti.isEmpty()) { return soggetti.isEmpty() ? null : soggetti.get(0);
return null;
} else {
return soggetti.get(0);
}
} }
@Override @Override
@ -814,12 +821,9 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
docDettPraticaId); docDettPraticaId);
dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
@SuppressWarnings("unchecked")
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery);
if (soggetti.isEmpty()) { return soggetti.isEmpty() ? null : soggetti.get(0);
return null;
} else {
return soggetti.get(0);
}
} }
private DynamicQuery createValidTmpQueryByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, private DynamicQuery createValidTmpQueryByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale,
@ -829,14 +833,12 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscale", codiceFiscale)); dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscale", codiceFiscale));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
if (Validator.isNotNull(docDettPraticaId)) { if (Validator.isNotNull(docDettPraticaId)) {
disjunction.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); disjunction.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L));
disjunction.add(RestrictionsFactoryUtil.le("dettPraticaIdRimozione", docDettPraticaId)); disjunction.add(RestrictionsFactoryUtil.le("dettPraticaIdRimozione", docDettPraticaId));
} }
return dynamicQuery; return dynamicQuery;
} }
@ -847,14 +849,12 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
DynamicQuery dynamicQuery = createValidQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); DynamicQuery dynamicQuery = createValidQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale);
dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
@SuppressWarnings("unchecked")
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery);
if (soggetti.isEmpty()) { return soggetti.isEmpty() ? null : soggetti.get(0);
return null;
} else {
return soggetti.get(0);
}
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) public List<Soggetto> getValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale)
throws SystemException { throws SystemException {
@ -864,6 +864,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByIntPratica_NoCodiceFiscale(long intPraticaId, String codiceFiscale) public List<Soggetto> getValidByIntPratica_NoCodiceFiscale(long intPraticaId, String codiceFiscale)
throws SystemException { throws SystemException {
@ -894,6 +895,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) public List<Soggetto> getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto)
throws SystemException { throws SystemException {
@ -904,10 +906,10 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione"));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
return soggetti;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) public List<Soggetto> getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto)
throws SystemException { throws SystemException {
@ -918,10 +920,10 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
return soggetti;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) public List<Soggetto> getValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto)
throws SystemException { throws SystemException {
@ -932,10 +934,10 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId"));
List<Soggetto> soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
return soggetti;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getCfValidByIntPratica(long intPraticaId) throws SystemException { public List<String> getCfValidByIntPratica(long intPraticaId) throws SystemException {
@ -953,6 +955,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidByIntPratica_CodiciFiscali(long intPraticaId, List<String> codiciFiscali) public List<Soggetto> getValidByIntPratica_CodiciFiscali(long intPraticaId, List<String> codiciFiscali)
throws SystemException { throws SystemException {
@ -962,6 +965,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getInvalidByIntPratica(long intPraticaId) throws SystemException { public List<Soggetto> getInvalidByIntPratica(long intPraticaId) throws SystemException {
@ -972,6 +976,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { public List<Soggetto> getInvalidTmpByIntPratica(long intPraticaId) throws SystemException {
@ -982,6 +987,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getRivalidatedTmpByIntPratica(long intPraticaId) throws SystemException { public List<Soggetto> getRivalidatedTmpByIntPratica(long intPraticaId) throws SystemException {
@ -993,6 +999,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) public List<Soggetto> getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId)
throws SystemException { throws SystemException {
@ -1002,6 +1009,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId, public List<Soggetto> getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId,
String tipologiaSoggetto) throws SystemException { String tipologiaSoggetto) throws SystemException {
@ -1029,7 +1037,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
} }
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione"));
dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false));
return dynamicQuery; return dynamicQuery;
} }
@ -1103,6 +1110,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
tipologiaSoggetto); tipologiaSoggetto);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException { public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException {
@ -1111,8 +1119,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName())); dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName()));
dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("intPraticaId"))); .property("intPraticaId")));
List<Long> ids = soggettoPersistence.findWithDynamicQuery(dynamicQuerySoggetti); return soggettoPersistence.findWithDynamicQuery(dynamicQuerySoggetti);
return ids;
} }
@Override @Override
@ -1130,18 +1137,17 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
for (Soggetto soggetto : soggettiDaInvalidare) { for (Soggetto soggetto : soggettiDaInvalidare) {
soggetto.setRimosso(true); soggetto.setRimosso(true);
soggetto.setDtDataRimozione(now); soggetto.setDtDataRimozione(now);
soggetto = updateSoggetto(soggetto); soggetto = updateSoggetto(soggetto);
} }
List<Soggetto> soggettiDaRivalidare = getRivalidatedTmpByIntPratica(intPraticaId); List<Soggetto> soggettiDaRivalidare = getRivalidatedTmpByIntPratica(intPraticaId);
for (Soggetto soggetto : soggettiDaRivalidare) { for (Soggetto soggetto : soggettiDaRivalidare) {
soggetto.setRimosso(false); soggetto.setRimosso(false);
soggetto.setDtDataRimozione(null); soggetto.setDtDataRimozione(null);
soggetto = updateSoggetto(soggetto); soggetto = updateSoggetto(soggetto);
} }
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> getSoggettiSostituitiIds(long intPraticaId) throws SystemException { public List<Long> getSoggettiSostituitiIds(long intPraticaId) throws SystemException {
@ -1149,8 +1155,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("soggettoSostituitoId"))); .property("soggettoSostituitoId")));
List<Long> ids = soggettoPersistence.findWithDynamicQuery(dynamicQuery); return soggettoPersistence.findWithDynamicQuery(dynamicQuery);
return ids;
} }
@Override @Override
@ -1213,6 +1218,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
return soggetto; return soggetto;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException { public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException {

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

@ -221,10 +221,11 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl {
return tempisticaFinder.praticheAttiveControlloObbligatorio(companyId, groupId); return tempisticaFinder.praticheAttiveControlloObbligatorio(companyId, groupId);
} }
private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
@Override @Override
public String getDtSottopostaAParere(long intPraticaId) throws SystemException { public String getDtSottopostaAParere(long intPraticaId) throws SystemException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
// ADT: BUG SCADENZARIO // ADT: BUG SCADENZARIO
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica != null && dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { if (dettPratica != null && dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) {
@ -239,12 +240,9 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl {
queryAvv.add(RestrictionsFactoryUtil.eq("className", DettPratica.class.getName())); queryAvv.add(RestrictionsFactoryUtil.eq("className", DettPratica.class.getName()));
Order defaultOrder = OrderFactoryUtil.desc("createDate"); Order defaultOrder = OrderFactoryUtil.desc("createDate");
queryAvv.addOrder(defaultOrder); queryAvv.addOrder(defaultOrder);
@SuppressWarnings("unchecked")
List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv);
if (listaAvv != null && !listaAvv.isEmpty()) { return listaAvv.isEmpty() ? StringPool.BLANK : sdf.format(listaAvv.get(0).getDtInvio());
return sdf.format(listaAvv.get(0).getDtInvio());
} else {
return StringPool.BLANK;
}
} }
@Override @Override

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

@ -132,6 +132,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return territorioPersistence.findByC_Group(companyId, groupId); return territorioPersistence.findByC_Group(companyId, groupId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<String> getActiveProvince() throws SystemException { public List<String> getActiveProvince() throws SystemException {
@ -149,6 +150,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException { public List<Long> getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException {
@ -167,6 +169,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Territorio> getActiveTerritoriByComune(long comuneId) throws SystemException { public List<Territorio> getActiveTerritoriByComune(long comuneId) throws SystemException {
@ -220,6 +223,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return territorioPersistence.findByGroup(groupId); return territorioPersistence.findByGroup(groupId);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> getTerritoriByGroupAndZona(long groupId, String zona) throws SystemException { public List<Long> getTerritoriByGroupAndZona(long groupId, String zona) throws SystemException {
@ -227,6 +231,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return territorioPersistence.findWithDynamicQuery(dynamicQuery); return territorioPersistence.findWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> getTerritoriByGroupAndZonaAndFascia(long groupId, String zona, String fascia) public List<Long> getTerritoriByGroupAndZonaAndFascia(long groupId, String zona, String fascia)
throws SystemException { throws SystemException {
@ -249,6 +254,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Long> getAllTerritorioGroup() throws SystemException { public List<Long> getAllTerritorioGroup() throws SystemException {
@ -268,11 +274,8 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("zona", zona)); dynamicQuery.add(RestrictionsFactoryUtil.eq("zona", zona));
dynamicQuery.add(RestrictionsFactoryUtil.eq("dtIni", dtIni)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dtIni", dtIni));
dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("territorioId")); dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("territorioId"));
@SuppressWarnings("unchecked")
List<Long> lista = territorioPersistence.findWithDynamicQuery(dynamicQuery); List<Long> lista = territorioPersistence.findWithDynamicQuery(dynamicQuery);
if (Validator.isNull(lista) || lista.isEmpty()) { return lista.isEmpty() ? 0L : lista.get(0);
return 0L;
} else {
return lista.get(0);
}
} }
} }

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

@ -62,6 +62,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -93,6 +94,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(groupId); qPos.add(groupId);
qPos.add(Validator.isNotNull(type) ? type : StringPool.PERCENT); qPos.add(Validator.isNotNull(type) ? type : StringPool.PERCENT);
qPos.add(isControlloObbligatorio); qPos.add(isControlloObbligatorio);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -106,6 +108,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
return countIntPraticaIds; return countIntPraticaIds;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<IntPratica> countControllo(Date dtMin, Date dtMax, long groupId, String type, public List<IntPratica> countControllo(Date dtMin, Date dtMax, long groupId, String type,
boolean isControlloObbligatorio) throws SystemException { boolean isControlloObbligatorio) throws SystemException {
@ -154,6 +157,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
qPos.add(controlloOblligatorio); qPos.add(controlloOblligatorio);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -167,6 +171,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
return countIntPraticaIds; return countIntPraticaIds;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Object[]> riparaWorkflow() throws SystemException { public List<Object[]> riparaWorkflow() throws SystemException {
@ -181,7 +186,6 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
query.addScalar("kaleoinstancetokenid", Type.LONG); query.addScalar("kaleoinstancetokenid", Type.LONG);
query.addScalar("controllopraticaid", Type.LONG); query.addScalar("controllopraticaid", Type.LONG);
query.addScalar("statusbyuserid", Type.LONG); query.addScalar("statusbyuserid", Type.LONG);
QueryPos qPos = QueryPos.getInstance(query);
pratiche = query.list(); pratiche = query.list();
} catch (ORMException e) { } catch (ORMException e) {
_log.error("Errore", e); _log.error("Errore", e);
@ -209,6 +213,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(codiceFiscaleDelegatoCollaudo); qPos.add(codiceFiscaleDelegatoCollaudo);
qPos.add(start); qPos.add(start);
qPos.add((end - start)); qPos.add((end - start));
@SuppressWarnings("unchecked")
List<IntPratica> list = query.list(); List<IntPratica> list = query.list();
return list; return list;
} catch (ORMException e) { } catch (ORMException e) {
@ -233,6 +238,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
query.setCacheable(false); query.setCacheable(false);
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(codiceFiscaleDelegatoCollaudo); qPos.add(codiceFiscaleDelegatoCollaudo);
@SuppressWarnings("unchecked")
List<IntPratica> list = query.list(); List<IntPratica> list = query.list();
return list.size(); return list.size();
} catch (ORMException e) { } catch (ORMException e) {
@ -260,6 +266,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -288,6 +295,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -304,6 +312,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
/** /**
* ADT: vale per aut/CO * ADT: vale per aut/CO
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public List<Object[]> reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId, public List<Object[]> reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId,
String type) throws SystemException { String type) throws SystemException {
@ -348,6 +357,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
/** /**
* ADT: REPORT PRATICHE VIDIMATE * ADT: REPORT PRATICHE VIDIMATE
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public List<Object[]> reportPraticheVidimate(Date dtMin, Date dtMax, long groupId, String type) public List<Object[]> reportPraticheVidimate(Date dtMin, Date dtMax, long groupId, String type)
throws SystemException { throws SystemException {
@ -411,6 +421,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); count = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -439,6 +450,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); count = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {
@ -467,6 +479,7 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
qPos.add(dtMin); qPos.add(dtMin);
qPos.add(dtMax); qPos.add(dtMax);
qPos.add(groupId); qPos.add(groupId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); count = (int) (list == null || list.isEmpty() ? 0 : list.get(0));
} catch (ORMException e) { } catch (ORMException e) {

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

@ -68,6 +68,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -97,6 +98,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0);
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
@ -127,6 +129,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -159,6 +162,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -190,6 +194,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
return list; return list;
} finally { } finally {
@ -217,6 +222,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
query.addScalar("INTPRATICAID", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
return list; return list;
} finally { } finally {
@ -244,6 +250,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
query.addScalar("INTPRATICAID", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
return list; return list;
} finally { } finally {
@ -275,6 +282,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -304,6 +312,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -333,7 +342,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -363,6 +372,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE); qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE);
qPos.add(companyId); qPos.add(companyId);
qPos.add(DateUtils.truncate(data, Calendar.DATE).getTime()); qPos.add(DateUtils.truncate(data, Calendar.DATE).getTime());
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = list != null && !list.isEmpty() ? list.size() : 0; count = list != null && !list.isEmpty() ? list.size() : 0;
} finally { } finally {
@ -493,6 +503,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(TempisticaConstants.TIPO_PRATICA);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0);
} finally { } finally {
@ -523,7 +534,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl<Tempistica> implem
QueryPos qPos = QueryPos.getInstance(query); QueryPos qPos = QueryPos.getInstance(query);
qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE); qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE);
qPos.add(companyId); qPos.add(companyId);
@SuppressWarnings("unchecked")
List<Long> list = query.list(); List<Long> list = query.list();
count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0);
} finally { } finally {

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java

@ -128,7 +128,6 @@ public class CompanyExpandoStartupAction extends SimpleAction {
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
roleGuest.getRoleId(), guestActions); roleGuest.getRoleId(), guestActions);

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java

@ -13,8 +13,6 @@ import java.util.Map;
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;
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.GetterUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.BaseWorkflowHandler; import com.liferay.portal.kernel.workflow.BaseWorkflowHandler;
@ -22,8 +20,6 @@ import com.liferay.portal.service.ServiceContext;
public class ControlloPraticaWorkflowHandler extends BaseWorkflowHandler { public class ControlloPraticaWorkflowHandler extends BaseWorkflowHandler {
private Log _log = LogFactoryUtil.getLog(ControlloPraticaWorkflowHandler.class);
@Override @Override
public String getClassName() { public String getClassName() {

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=3054 build.number=3057
build.date=1619511160294 build.date=1620379170167
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/homebo/view.jsp

@ -63,7 +63,7 @@ int totaleDeiTotali = countTotaleAutorizzazioni + countTotaleSorteggiate + count
<div class="container-fluid"> <div class="container-fluid">
<div class="col-sm-12 col-md-12 "> <div class="col-sm-12 col-md-12 ">
<h3 style="margin:2%; text-align: center;">PRATICHE IN INSTRUTTORIA</h3> <h3 style="margin:2%; text-align: center;">PRATICHE IN ISTRUTTORIA</h3>
</div> </div>
</div> </div>

72
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

@ -22,60 +22,54 @@
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> <%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId());
request.setAttribute("bean.dettPratica",dettPratica); request.setAttribute("bean.dettPratica",dettPratica);
boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),dettPratica.getDettPraticaId()) boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),dettPratica.getDettPraticaId())
|| TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()) || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())
|| TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); || TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione());
boolean disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettPratica.getIntPraticaId()); boolean disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettPratica.getIntPraticaId());
boolean isGeoEditable = TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
boolean isGeoEditable = TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) || || TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione());
TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione());
boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId()) boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId())
&& TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); && TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione());
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> <liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" />
<c:if test="<%= soggettoDelegato != null %>"> <c:if test="<%= soggettoDelegato != null %>">
<liferay-util:param name="soggettoId" value="<%= String.valueOf(soggettoDelegato.getSoggettoId()) %>" /> <liferay-util:param name="soggettoId" value="<%= String.valueOf(soggettoDelegato.getSoggettoId()) %>" />
</c:if> </c:if>
</liferay-util:include> </liferay-util:include>
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
<aui:model-context bean="<%=dettPratica %>" model="<%=DettPratica.class %>"></aui:model-context>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dett-principali"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dett-principali">
<div class="container-fluid"> <div class="container-fluid">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group group_dati_catastali"> <div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" <liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="Normativa"> title="Normativa">
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<c:if test="<%= (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9)) %>"> <c:if test="<%= intPratica.getTipoProcedura()
.equalsIgnoreCase(Constants.PROCEDURA_P9) %>">
<div class="row" > <div class="row" >
<div class="col-xs-12" style="margin:5px 0;"> <div class="col-xs-12" style="margin: 5px 0">
<p><%=LanguageUtil.get(pageContext, "sanatoria-edilizia") %></p> <p><%=LanguageUtil.get(pageContext, "sanatoria-edilizia") %></p>
</div> </div>
<div class="col-xs-12" style="margin-left:20px;"> <div class="col-xs-12" style="margin-left: 20px">
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" <aui:input disabled="<%=disabledInput
&& !enabledByIntegrazione %>"
name="sanatoriaEdilizia47" name="sanatoriaEdilizia47"
label="sanatoria-edilizia-47"/> label="sanatoria-edilizia-47"/>
</div> </div>
@ -133,21 +127,18 @@
label="norm-esente-spese"/> label="norm-esente-spese"/>
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12"> <div class="col-xs-12">
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="collaudoStatico" <aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="collaudoStatico"
label="collaudo-statico"/> label="collaudo-statico"/>
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12"> <div class="col-xs-12">
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="noCollaudo" <aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="noCollaudo"
label="no-collaudo"/> label="no-collaudo"/>
</div> </div>
</div> </div>
<div class="row row-padding-custom" style="display:none;"> <div class="row row-padding-custom" style="display:none;">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"> <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" name="normArt3com3" label="" /> <aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" name="normArt3com3" label="" />
@ -188,7 +179,6 @@
</div> </div>
</div> </div>
</div>--> </div>-->
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
@ -201,7 +191,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
@ -221,7 +210,6 @@
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="module-group group_dati_catastali"> <div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-dc"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-dc">
@ -322,7 +310,6 @@
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' /> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
<aui:input type="text" name="lat" <aui:input type="text" name="lat"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' label="dp-lat"/> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' label="dp-lat"/>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<aui:input name="long_hidden" label="" type="hidden" <aui:input name="long_hidden" label="" type="hidden"
@ -343,14 +330,12 @@
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<div class="module-group group_piano_paesaggistico_provinciale"> <div class="module-group group_piano_paesaggistico_provinciale">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="piano-paesaggistico"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="piano-paesaggistico">
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<aui:input name="paesaggioLocale" label="dp-paesaggio-locale" type="text" value="" /> <aui:input name="paesaggioLocale" label="dp-paesaggio-locale" type="text" value="" />
@ -359,7 +344,6 @@
<aui:input name="livelloDiTutela" label="dp-livello-di-tutela" type="text" value="" /> <aui:input name="livelloDiTutela" label="dp-livello-di-tutela" type="text" value="" />
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<aui:input type="textarea" name="vincoli" rows="4" cols="250" label="dp-vincoli"></aui:input> <aui:input type="textarea" name="vincoli" rows="4" cols="250" label="dp-vincoli"></aui:input>
@ -387,14 +371,12 @@
label="destinazione-2"/> label="destinazione-2"/>
</div> </div>
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" type="radio" checked='<%=BeanParamUtil.getString(dettPratica, request, "destinazione").equals("3") %>' name="destinazione" bean="<%=dettPratica %>" value="3" <aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" type="radio" checked='<%=BeanParamUtil.getString(dettPratica, request, "destinazione").equals("3") %>' name="destinazione" bean="<%=dettPratica %>" value="3"
label="destinazione-3"/> label="destinazione-3"/>
<aui:input disabled='<%= disabledInput && !enabledByIntegrazione || !BeanParamUtil.getString(dettPratica, request, "destinazione").equals("3") %>' name="destinazioneAltroIntervento" label=""/> <aui:input disabled='<%= disabledInput && !enabledByIntegrazione || !BeanParamUtil.getString(dettPratica, request, "destinazione").equals("3") %>' name="destinazioneAltroIntervento" label=""/>
</div> </div>
</div> </div>
</div> </div>
<div class="col-xs-6"> <div class="col-xs-6">
<p><%= LanguageUtil.get(pageContext, "destinazione-A") %></p> <p><%= LanguageUtil.get(pageContext, "destinazione-A") %></p>
@ -574,7 +556,6 @@
</div> </div>
</div> </div>
<div class="row row-padding-custom check-disable-row"> <div class="row row-padding-custom check-disable-row">
<% <%
boolean tcInAcciaio = dettPratica.getTcInAcciaio(); boolean tcInAcciaio = dettPratica.getTcInAcciaio();
@ -586,7 +567,6 @@
<aui:input disabled="<%=!tcInAcciaio || disabledInput %>" name="tcMista" label="tc-mista"/> <aui:input disabled="<%=!tcInAcciaio || disabledInput %>" name="tcMista" label="tc-mista"/>
</div> </div>
</div> </div>
<div class="row row-padding-custom check-disable-row"> <div class="row row-padding-custom check-disable-row">
<% <%
boolean tcInMuratura = dettPratica.getTcInMuratura(); boolean tcInMuratura = dettPratica.getTcInMuratura();
@ -604,7 +584,6 @@
<aui:input disabled="<%=!tcInMuratura || disabledInput %>" name="tcInMuraturaMista" label="tc-in-muratura-mista"/> <aui:input disabled="<%=!tcInMuratura || disabledInput %>" name="tcInMuraturaMista" label="tc-in-muratura-mista"/>
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<aui:input disabled="<%=disabledInput %>" name="tcInLegno" label="tc-in-legno"/> <aui:input disabled="<%=disabledInput %>" name="tcInLegno" label="tc-in-legno"/>
@ -620,7 +599,6 @@
<aui:input type="textarea" name="tcAltroDescrizione" disabled="<%=!dettPratica.getTcAltro() || disabledInput %>" label=""></aui:input> <aui:input type="textarea" name="tcAltroDescrizione" disabled="<%=!dettPratica.getTcAltro() || disabledInput %>" label=""></aui:input>
</div> </div>
</div> </div>
<!-- <div class="row row-padding-custom "> <!-- <div class="row row-padding-custom ">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<aui:input disabled="<%=disabledInput %>" name="tcConDispositivi" <aui:input disabled="<%=disabledInput %>" name="tcConDispositivi"
@ -652,18 +630,14 @@ Liferay.on('mapIt-ready',function(event) {
function localize(showAlert){ function localize(showAlert){
AUI().use('aui-io-request', function(A) { AUI().use('aui-io-request', function(A) {
var district = AUI().one("#<portlet:namespace/>provincia"); var district = AUI().one("#<portlet:namespace/>provincia");
city = AUI().one("#<portlet:namespace/>comune"); city = AUI().one("#<portlet:namespace/>comune");
address = AUI().one("#<portlet:namespace/>via"); address = AUI().one("#<portlet:namespace/>via");
var localization = [address.val().toLowerCase().split(" ").join("+"), var localization = [address.val().toLowerCase().split(" ").join("+"),
city.val().toLowerCase().split(" ").join("+"), city.val().toLowerCase().split(" ").join("+"),
district.val().toLowerCase().split(" ").join("+")]; district.val().toLowerCase().split(" ").join("+")];
var url = "https://nominatim.openstreetmap.org/search?format=json&addressdetails=0&q="+ var url = "https://nominatim.openstreetmap.org/search?format=json&addressdetails=0&q="+
localization.join("+"); localization.join("+");
A.io.request(url, { A.io.request(url, {
dataType: 'json', dataType: 'json',
on: { on: {
@ -684,7 +658,6 @@ function localize(showAlert){
); );
} }
}, },
} }
}); });
@ -692,20 +665,16 @@ function localize(showAlert){
} }
AUI().ready(function(A){ AUI().ready(function(A){
//checkIfDisableSistemiCostruttivi(); //checkIfDisableSistemiCostruttivi();
checkIfDisableInfrastrutture(); checkIfDisableInfrastrutture();
//checkCollaudoStatico(); //checkCollaudoStatico();
}); });
function checkIfDisableSistemiCostruttivi(){ function checkIfDisableSistemiCostruttivi(){
var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"), var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"),
miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"), miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"),
adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"), adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"),
nuovaCostruzione = AUI().one("#<portlet:namespace/>tc-nuova-costruzioneCheckbox"); nuovaCostruzione = AUI().one("#<portlet:namespace/>tc-nuova-costruzioneCheckbox");
if(interventoLocale.attr("checked") && !nuovaCostruzione.attr("checked") && !miglioramentoSismico.attr("checked") && !adeguamentoSismico.attr("checked")){ if(interventoLocale.attr("checked") && !nuovaCostruzione.attr("checked") && !miglioramentoSismico.attr("checked") && !adeguamentoSismico.attr("checked")){
disableInput('#descrizione_componenti_costruttive'); disableInput('#descrizione_componenti_costruttive');
} }
@ -720,16 +689,13 @@ $('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function()
var longitude = parseFloat($('#<portlet:namespace/>long').val()); var longitude = parseFloat($('#<portlet:namespace/>long').val());
$('#<portlet:namespace/>lat_hidden').val(latitude); $('#<portlet:namespace/>lat_hidden').val(latitude);
$('#<portlet:namespace/>long_hidden').val(longitude); $('#<portlet:namespace/>long_hidden').val(longitude);
var zoom = mapItMap.getCurrentZoom(); var zoom = mapItMap.getCurrentZoom();
updateCoords(latitude, longitude, zoom, true, true); updateCoords(latitude, longitude, zoom, true, true);
} }
}); });
$('#sistemi_costruttivi input').on('change', function(){ $('#sistemi_costruttivi input').on('change', function(){
var _this = $(this); var _this = $(this);
if(_this.attr('id')=='<portlet:namespace/>tcInterventiCheckbox'){ if(_this.attr('id')=='<portlet:namespace/>tcInterventiCheckbox'){
if(!_this.is(":checked")) if(!_this.is(":checked"))
$('.costruzioni_esistenti ul input[type="checkbox"]').prop("checked", false).attr("disabled", true); $('.costruzioni_esistenti ul input[type="checkbox"]').prop("checked", false).attr("disabled", true);
@ -744,15 +710,12 @@ $('#sistemi_costruttivi input').on('change', function(){
} else if($('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop('checked')){ } else if($('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop('checked')){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).removeAttr('disabled'); $('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).removeAttr('disabled');
} }
//checkIfDisableSistemiCostruttivi(); //checkIfDisableSistemiCostruttivi();
}); });
function checkIfDisableInfrastrutture(){ function checkIfDisableInfrastrutture(){
var destinazione = AUI().one("#destinazioneinazione input:checked"), var destinazione = AUI().one("#destinazioneinazione input:checked"),
allowedValues = ["2", "A4A","A4B","A4C","A4D","A4E","A4F","A5A","B4A","B4B","B4C","B5A"]; allowedValues = ["2", "A4A","A4B","A4C","A4D","A4E","A4F","A5A","B4A","B4B","B4C","B5A"];
if( destinazione!=null && allowedValues.indexOf(destinazione.val()) != -1 ){ if( destinazione!=null && allowedValues.indexOf(destinazione.val()) != -1 ){
disableInput('#dati_metrici'); disableInput('#dati_metrici');
disableInput('#descrizione_componenti_costruttiveContent'); disableInput('#descrizione_componenti_costruttiveContent');
@ -773,8 +736,6 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
else else
$('input[name="<portlet:namespace/>destinazioneAltroIntervento"]').prop('disabled', true); $('input[name="<portlet:namespace/>destinazioneAltroIntervento"]').prop('disabled', true);
}, 100); }, 100);
}); });
$('#<portlet:namespace/>normDpr input[type=checkbox]').change(function() { $('#<portlet:namespace/>normDpr input[type=checkbox]').change(function() {
@ -782,7 +743,6 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
var _this = $(this), var _this = $(this),
checked = _this.prop('checked'), checked = _this.prop('checked'),
sibling, sibling_hidden; sibling, sibling_hidden;
if(_this.attr('id')=="<portlet:namespace/>normDpr01DepCheckbox"){ if(_this.attr('id')=="<portlet:namespace/>normDpr01DepCheckbox"){
sibling = $("#<portlet:namespace/>normDpr02DepCheckbox"); sibling = $("#<portlet:namespace/>normDpr02DepCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr02Dep"); sibling_hidden = $("#<portlet:namespace/>normDpr02Dep");
@ -799,13 +759,11 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
sibling = $("#<portlet:namespace/>normDpr01AutCheckbox"); sibling = $("#<portlet:namespace/>normDpr01AutCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr01Aut"); sibling_hidden = $("#<portlet:namespace/>normDpr01Aut");
} }
if(_this.is(":checked")){ if(_this.is(":checked")){
sibling.prop("checked", false); sibling.prop("checked", false);
sibling_hidden.val(false); sibling_hidden.val(false);
} }
}); });
</script> </script>
<script type="text/javascript" > <script type="text/javascript" >
var agMin = parseFloat("<%=territorio.getAgMin()%>"), var agMin = parseFloat("<%=territorio.getAgMin()%>"),
@ -820,7 +778,6 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
} }
}); });
$('#<portlet:namespace/>ag').keyup(function(e) { $('#<portlet:namespace/>ag').keyup(function(e) {
if (e.keyCode == 8){ if (e.keyCode == 8){
return return
@ -852,7 +809,6 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
} }
function range(val, min, max){ function range(val, min, max){
if ( parseFloat(val) > max) { if ( parseFloat(val) > max) {
return max; return max;
} else if ( parseFloat(val) < min) { } else if ( parseFloat(val) < min) {
@ -862,7 +818,6 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
} }
</script> </script>
<script type="text/javascript" > <script type="text/javascript" >
Liferay.provide( Liferay.provide(
window, window,
'enableInput', 'enableInput',
@ -886,10 +841,8 @@ $('#destinazioneinazione input[type="radio"]').on('click', function(){
item.addClass('disabled'); item.addClass('disabled');
item.set('disabled', true); item.set('disabled', true);
}); });
} }
); );
</script> </script>
<!-- ADT BUG FE ID = 23 --> <!-- ADT BUG FE ID = 23 -->
<script type="text/javascript" > <script type="text/javascript" >
@ -914,7 +867,6 @@ $('#<portlet:namespace/>lavoriPubbliciCheckbox, #<portlet:namespace/>intervFinPu
$('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false); $('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false);
}); });
} }
}); });
$('#<portlet:namespace/>intervFinPubCheckbox').change(function () { $('#<portlet:namespace/>intervFinPubCheckbox').change(function () {
@ -968,7 +920,6 @@ $('#<portlet:namespace/>collaudoStaticoCheckbox').change(function () {
} }
}); });
function checkCollaudoStatico(){ function checkCollaudoStatico(){
var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"), var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"),
miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"), miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"),
adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"), adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"),
@ -976,7 +927,6 @@ function checkCollaudoStatico(){
collaudostatico = AUI().one("#<portlet:namespace/>collaudoStaticoCheckbox"); collaudostatico = AUI().one("#<portlet:namespace/>collaudoStaticoCheckbox");
if(collaudostatico.attr("checked") ){ if(collaudostatico.attr("checked") ){
$('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop("checked", false).attr("disabled", true); $('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcInterventiCheckbox').prop("checked", true).attr("disabled", true); $('#<portlet:namespace/>tcInterventiCheckbox').prop("checked", true).attr("disabled", true);
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop("checked", false).attr("disabled", true); $('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
@ -984,8 +934,6 @@ function checkCollaudoStatico(){
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeAttr("disabled"); $('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeAttr("disabled");
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeClass('disabled'); $('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeClass('disabled');
} }
if(nuovaCostruzione.attr("checked")|| if(nuovaCostruzione.attr("checked")||
adeguamentoSismico.attr("checked")|| adeguamentoSismico.attr("checked")||
miglioramentoSismico.attr("checked")){ miglioramentoSismico.attr("checked")){

28
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</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.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=sicilia-sue-connector-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=%24%7Bliferay_sdk_dir%3Asicilia-sue-connector-portlet%7D%2Fivy-settings.xml&amp;loadSettingsOnDemand=false&amp;ivyUserDir=%24%7Bliferay_sdk_dir%3Asicilia-sue-connector-portlet%7D%2F.ivy&amp;propertyFiles=">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

37
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.project

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sicilia-sue-connector-portlet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

12
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/.jsdtscope

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

7
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.jdt.core.prefs

@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

3
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.jst.jsp.core.prefs

@ -0,0 +1,3 @@
eclipse.preferences.version=1
validateFragments=false
validation.use-project-settings=true

12
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="sicilia-sue-connector-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/service"/>
<dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="sicilia-sue-connector-portlet"/>
<property name="java-output-path" value="/sicilia-sue-connector-portlet/docroot/WEB-INF/classes"/>
</wb-module>
</project-modules>

7
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml

@ -0,0 +1,7 @@
<root>
<facet id="liferay.portlet">
<node name="libprov">
<attribute name="provider-id" value="com.liferay.ide.eclipse.plugin.portlet.libraryProvider"/>
</node>
</facet>
</root>

11
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Liferay v6.2 CE (Tomcat 7)"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="liferay.portlet" version="6.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

1
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container

@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

1
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name

@ -0,0 +1 @@
Window

6
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/build.xml

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="sicilia-sue-connector-portlet" basedir="." default="deploy">
<import file="../build-common-portlet.xml" />
</project>

3
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/META-INF/MANIFEST.MF

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

1
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/.gitignore vendored

@ -0,0 +1 @@
/classes/

BIN
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar

File binario non mostrato.

8
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.2.0//EN" "http://www.liferay.com/dtd/liferay-display_6_2_0.dtd">
<display>
<category name="category.sample">
<portlet id="sicilia-sue-connector" />
</category>
</display>

5
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-hook.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">
<hook>
<portal-properties>portal.properties</portal-properties>
</hook>

14
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -0,0 +1,14 @@
name=Sicilia SUE Connector
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
#portal-dependency-jars=
#portal-dependency-tlds=c.tld
required-deployment-contexts=portos-bo-portlet

28
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>sicilia-sue-connector</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>sicilia-sue-connector-portlet</css-class-wrapper>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>

34
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet>
<portlet-name>sicilia-sue-connector</portlet-name>
<display-name>Sicilia SUE Connector</display-name>
<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>Sicilia SUE Connector</title>
<short-title>Sicilia SUE Connector</short-title>
<keywords>Sicilia SUE Connector</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>

22
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd">
<service-builder package-path="it.mwg.sicilia.sue">
<author>Manifattura Web Group Srl</author>
<namespace>sicilia_sue</namespace>
<entity name="Sportello" local-service="true" remote-service="true">
<!-- PK fields -->
<column name="sportelloId" type="long" primary="true" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<!-- Other fields -->
<!-- Order -->
<!-- Finder methods -->
</entity>
</service-builder>

40
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/NoSuchSportelloException.java

@ -0,0 +1,40 @@
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue;
import com.liferay.portal.NoSuchModelException;
/**
* @author Manifattura Web Group Srl
*/
public class NoSuchSportelloException extends NoSuchModelException {
public NoSuchSportelloException() {
super();
}
public NoSuchSportelloException(String msg) {
super(msg);
}
public NoSuchSportelloException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchSportelloException(Throwable cause) {
super(cause);
}
}

34
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/Sportello.java

@ -0,0 +1,34 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.model;
import com.liferay.portal.model.PersistedModel;
/**
* The extended model interface for the Sportello service. Represents a row in the &quot;sicilia_sue_Sportello&quot; database table, with each column mapped to a property of this class.
*
* @author Manifattura Web Group Srl
* @see SportelloModel
* @see it.mwg.sicilia.sue.model.impl.SportelloImpl
* @see it.mwg.sicilia.sue.model.impl.SportelloModelImpl
* @generated
*/
public interface Sportello extends SportelloModel, PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to {@link it.mwg.sicilia.sue.model.impl.SportelloImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
}

505
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java

@ -0,0 +1,505 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.model;
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.util.PortalUtil;
import it.mwg.sicilia.sue.service.ClpSerializer;
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* @author Manifattura Web Group Srl
*/
public class SportelloClp extends BaseModelImpl<Sportello> implements Sportello {
public SportelloClp() {
}
@Override
public Class<?> getModelClass() {
return Sportello.class;
}
@Override
public String getModelClassName() {
return Sportello.class.getName();
}
@Override
public long getPrimaryKey() {
return _sportelloId;
}
@Override
public void setPrimaryKey(long primaryKey) {
setSportelloId(primaryKey);
}
@Override
public Serializable getPrimaryKeyObj() {
return _sportelloId;
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
setPrimaryKey(((Long)primaryKeyObj).longValue());
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("sportelloId", getSportelloId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long sportelloId = (Long)attributes.get("sportelloId");
if (sportelloId != null) {
setSportelloId(sportelloId);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
}
@Override
public long getSportelloId() {
return _sportelloId;
}
@Override
public void setSportelloId(long sportelloId) {
_sportelloId = sportelloId;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setSportelloId", long.class);
method.invoke(_sportelloRemoteModel, sportelloId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public long getGroupId() {
return _groupId;
}
@Override
public void setGroupId(long groupId) {
_groupId = groupId;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setGroupId", long.class);
method.invoke(_sportelloRemoteModel, groupId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public long getCompanyId() {
return _companyId;
}
@Override
public void setCompanyId(long companyId) {
_companyId = companyId;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setCompanyId", long.class);
method.invoke(_sportelloRemoteModel, companyId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public long getUserId() {
return _userId;
}
@Override
public void setUserId(long userId) {
_userId = userId;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setUserId", long.class);
method.invoke(_sportelloRemoteModel, userId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getUserUuid() throws SystemException {
return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
}
@Override
public void setUserUuid(String userUuid) {
_userUuid = userUuid;
}
@Override
public String getUserName() {
return _userName;
}
@Override
public void setUserName(String userName) {
_userName = userName;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setUserName", String.class);
method.invoke(_sportelloRemoteModel, userName);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public Date getCreateDate() {
return _createDate;
}
@Override
public void setCreateDate(Date createDate) {
_createDate = createDate;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setCreateDate", Date.class);
method.invoke(_sportelloRemoteModel, createDate);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public Date getModifiedDate() {
return _modifiedDate;
}
@Override
public void setModifiedDate(Date modifiedDate) {
_modifiedDate = modifiedDate;
if (_sportelloRemoteModel != null) {
try {
Class<?> clazz = _sportelloRemoteModel.getClass();
Method method = clazz.getMethod("setModifiedDate", Date.class);
method.invoke(_sportelloRemoteModel, modifiedDate);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
public BaseModel<?> getSportelloRemoteModel() {
return _sportelloRemoteModel;
}
public void setSportelloRemoteModel(BaseModel<?> sportelloRemoteModel) {
_sportelloRemoteModel = sportelloRemoteModel;
}
public Object invokeOnRemoteModel(String methodName,
Class<?>[] parameterTypes, Object[] parameterValues)
throws Exception {
Object[] remoteParameterValues = new Object[parameterValues.length];
for (int i = 0; i < parameterValues.length; i++) {
if (parameterValues[i] != null) {
remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
}
}
Class<?> remoteModelClass = _sportelloRemoteModel.getClass();
ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();
Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];
for (int i = 0; i < parameterTypes.length; i++) {
if (parameterTypes[i].isPrimitive()) {
remoteParameterTypes[i] = parameterTypes[i];
}
else {
String parameterTypeName = parameterTypes[i].getName();
remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
}
}
Method method = remoteModelClass.getMethod(methodName,
remoteParameterTypes);
Object returnValue = method.invoke(_sportelloRemoteModel,
remoteParameterValues);
if (returnValue != null) {
returnValue = ClpSerializer.translateOutput(returnValue);
}
return returnValue;
}
@Override
public void persist() throws SystemException {
if (this.isNew()) {
SportelloLocalServiceUtil.addSportello(this);
}
else {
SportelloLocalServiceUtil.updateSportello(this);
}
}
@Override
public Sportello toEscapedModel() {
return (Sportello)ProxyUtil.newProxyInstance(Sportello.class.getClassLoader(),
new Class[] { Sportello.class }, new AutoEscapeBeanHandler(this));
}
@Override
public Object clone() {
SportelloClp clone = new SportelloClp();
clone.setSportelloId(getSportelloId());
clone.setGroupId(getGroupId());
clone.setCompanyId(getCompanyId());
clone.setUserId(getUserId());
clone.setUserName(getUserName());
clone.setCreateDate(getCreateDate());
clone.setModifiedDate(getModifiedDate());
return clone;
}
@Override
public int compareTo(Sportello sportello) {
long primaryKey = sportello.getPrimaryKey();
if (getPrimaryKey() < primaryKey) {
return -1;
}
else if (getPrimaryKey() > primaryKey) {
return 1;
}
else {
return 0;
}
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SportelloClp)) {
return false;
}
SportelloClp sportello = (SportelloClp)obj;
long primaryKey = sportello.getPrimaryKey();
if (getPrimaryKey() == primaryKey) {
return true;
}
else {
return false;
}
}
public Class<?> getClpSerializerClass() {
return _clpSerializerClass;
}
@Override
public int hashCode() {
return (int)getPrimaryKey();
}
@Override
public String toString() {
StringBundler sb = new StringBundler(15);
sb.append("{sportelloId=");
sb.append(getSportelloId());
sb.append(", groupId=");
sb.append(getGroupId());
sb.append(", companyId=");
sb.append(getCompanyId());
sb.append(", userId=");
sb.append(getUserId());
sb.append(", userName=");
sb.append(getUserName());
sb.append(", createDate=");
sb.append(getCreateDate());
sb.append(", modifiedDate=");
sb.append(getModifiedDate());
sb.append("}");
return sb.toString();
}
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(25);
sb.append("<model><model-name>");
sb.append("it.mwg.sicilia.sue.model.Sportello");
sb.append("</model-name>");
sb.append(
"<column><column-name>sportelloId</column-name><column-value><![CDATA[");
sb.append(getSportelloId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>groupId</column-name><column-value><![CDATA[");
sb.append(getGroupId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>companyId</column-name><column-value><![CDATA[");
sb.append(getCompanyId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>userId</column-name><column-value><![CDATA[");
sb.append(getUserId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>userName</column-name><column-value><![CDATA[");
sb.append(getUserName());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>createDate</column-name><column-value><![CDATA[");
sb.append(getCreateDate());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
sb.append(getModifiedDate());
sb.append("]]></column-value></column>");
sb.append("</model>");
return sb.toString();
}
private long _sportelloId;
private long _groupId;
private long _companyId;
private long _userId;
private String _userUuid;
private String _userName;
private Date _createDate;
private Date _modifiedDate;
private BaseModel<?> _sportelloRemoteModel;
private Class<?> _clpSerializerClass = it.mwg.sicilia.sue.service.ClpSerializer.class;
}

248
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java

@ -0,0 +1,248 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.model;
import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.GroupedModel;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.expando.model.ExpandoBridge;
import java.io.Serializable;
import java.util.Date;
/**
* The base model interface for the Sportello service. Represents a row in the &quot;sicilia_sue_Sportello&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.mwg.sicilia.sue.model.impl.SportelloImpl}.
* </p>
*
* @author Manifattura Web Group Srl
* @see Sportello
* @see it.mwg.sicilia.sue.model.impl.SportelloImpl
* @see it.mwg.sicilia.sue.model.impl.SportelloModelImpl
* @generated
*/
public interface SportelloModel extends BaseModel<Sportello>, GroupedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a sportello model instance should use the {@link Sportello} interface instead.
*/
/**
* Returns the primary key of this sportello.
*
* @return the primary key of this sportello
*/
public long getPrimaryKey();
/**
* Sets the primary key of this sportello.
*
* @param primaryKey the primary key of this sportello
*/
public void setPrimaryKey(long primaryKey);
/**
* Returns the sportello ID of this sportello.
*
* @return the sportello ID of this sportello
*/
public long getSportelloId();
/**
* Sets the sportello ID of this sportello.
*
* @param sportelloId the sportello ID of this sportello
*/
public void setSportelloId(long sportelloId);
/**
* Returns the group ID of this sportello.
*
* @return the group ID of this sportello
*/
@Override
public long getGroupId();
/**
* Sets the group ID of this sportello.
*
* @param groupId the group ID of this sportello
*/
@Override
public void setGroupId(long groupId);
/**
* Returns the company ID of this sportello.
*
* @return the company ID of this sportello
*/
@Override
public long getCompanyId();
/**
* Sets the company ID of this sportello.
*
* @param companyId the company ID of this sportello
*/
@Override
public void setCompanyId(long companyId);
/**
* Returns the user ID of this sportello.
*
* @return the user ID of this sportello
*/
@Override
public long getUserId();
/**
* Sets the user ID of this sportello.
*
* @param userId the user ID of this sportello
*/
@Override
public void setUserId(long userId);
/**
* Returns the user uuid of this sportello.
*
* @return the user uuid of this sportello
* @throws SystemException if a system exception occurred
*/
@Override
public String getUserUuid() throws SystemException;
/**
* Sets the user uuid of this sportello.
*
* @param userUuid the user uuid of this sportello
*/
@Override
public void setUserUuid(String userUuid);
/**
* Returns the user name of this sportello.
*
* @return the user name of this sportello
*/
@AutoEscape
@Override
public String getUserName();
/**
* Sets the user name of this sportello.
*
* @param userName the user name of this sportello
*/
@Override
public void setUserName(String userName);
/**
* Returns the create date of this sportello.
*
* @return the create date of this sportello
*/
@Override
public Date getCreateDate();
/**
* Sets the create date of this sportello.
*
* @param createDate the create date of this sportello
*/
@Override
public void setCreateDate(Date createDate);
/**
* Returns the modified date of this sportello.
*
* @return the modified date of this sportello
*/
@Override
public Date getModifiedDate();
/**
* Sets the modified date of this sportello.
*
* @param modifiedDate the modified date of this sportello
*/
@Override
public void setModifiedDate(Date modifiedDate);
@Override
public boolean isNew();
@Override
public void setNew(boolean n);
@Override
public boolean isCachedModel();
@Override
public void setCachedModel(boolean cachedModel);
@Override
public boolean isEscapedModel();
@Override
public Serializable getPrimaryKeyObj();
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj);
@Override
public ExpandoBridge getExpandoBridge();
@Override
public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext);
@Override
public Object clone();
@Override
public int compareTo(it.mwg.sicilia.sue.model.Sportello sportello);
@Override
public int hashCode();
@Override
public CacheModel<it.mwg.sicilia.sue.model.Sportello> toCacheModel();
@Override
public it.mwg.sicilia.sue.model.Sportello toEscapedModel();
@Override
public it.mwg.sicilia.sue.model.Sportello toUnescapedModel();
@Override
public String toString();
@Override
public String toXmlString();
}

156
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java

@ -0,0 +1,156 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* This class is used by SOAP remote services, specifically {@link it.mwg.sicilia.sue.service.http.SportelloServiceSoap}.
*
* @author Manifattura Web Group Srl
* @see it.mwg.sicilia.sue.service.http.SportelloServiceSoap
* @generated
*/
public class SportelloSoap implements Serializable {
public static SportelloSoap toSoapModel(Sportello model) {
SportelloSoap soapModel = new SportelloSoap();
soapModel.setSportelloId(model.getSportelloId());
soapModel.setGroupId(model.getGroupId());
soapModel.setCompanyId(model.getCompanyId());
soapModel.setUserId(model.getUserId());
soapModel.setUserName(model.getUserName());
soapModel.setCreateDate(model.getCreateDate());
soapModel.setModifiedDate(model.getModifiedDate());
return soapModel;
}
public static SportelloSoap[] toSoapModels(Sportello[] models) {
SportelloSoap[] soapModels = new SportelloSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static SportelloSoap[][] toSoapModels(Sportello[][] models) {
SportelloSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new SportelloSoap[models.length][models[0].length];
}
else {
soapModels = new SportelloSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static SportelloSoap[] toSoapModels(List<Sportello> models) {
List<SportelloSoap> soapModels = new ArrayList<SportelloSoap>(models.size());
for (Sportello model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new SportelloSoap[soapModels.size()]);
}
public SportelloSoap() {
}
public long getPrimaryKey() {
return _sportelloId;
}
public void setPrimaryKey(long pk) {
setSportelloId(pk);
}
public long getSportelloId() {
return _sportelloId;
}
public void setSportelloId(long sportelloId) {
_sportelloId = sportelloId;
}
public long getGroupId() {
return _groupId;
}
public void setGroupId(long groupId) {
_groupId = groupId;
}
public long getCompanyId() {
return _companyId;
}
public void setCompanyId(long companyId) {
_companyId = companyId;
}
public long getUserId() {
return _userId;
}
public void setUserId(long userId) {
_userId = userId;
}
public String getUserName() {
return _userName;
}
public void setUserName(String userName) {
_userName = userName;
}
public Date getCreateDate() {
return _createDate;
}
public void setCreateDate(Date createDate) {
_createDate = createDate;
}
public Date getModifiedDate() {
return _modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
_modifiedDate = modifiedDate;
}
private long _sportelloId;
private long _groupId;
private long _companyId;
private long _userId;
private String _userName;
private Date _createDate;
private Date _modifiedDate;
}

431
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java

@ -0,0 +1,431 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.model;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* This class is a wrapper for {@link Sportello}.
* </p>
*
* @author Manifattura Web Group Srl
* @see Sportello
* @generated
*/
public class SportelloWrapper implements Sportello, ModelWrapper<Sportello> {
public SportelloWrapper(Sportello sportello) {
_sportello = sportello;
}
@Override
public Class<?> getModelClass() {
return Sportello.class;
}
@Override
public String getModelClassName() {
return Sportello.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("sportelloId", getSportelloId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long sportelloId = (Long)attributes.get("sportelloId");
if (sportelloId != null) {
setSportelloId(sportelloId);
}
Long groupId = (Long)attributes.get("groupId");
if (groupId != null) {
setGroupId(groupId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
}
/**
* Returns the primary key of this sportello.
*
* @return the primary key of this sportello
*/
@Override
public long getPrimaryKey() {
return _sportello.getPrimaryKey();
}
/**
* Sets the primary key of this sportello.
*
* @param primaryKey the primary key of this sportello
*/
@Override
public void setPrimaryKey(long primaryKey) {
_sportello.setPrimaryKey(primaryKey);
}
/**
* Returns the sportello ID of this sportello.
*
* @return the sportello ID of this sportello
*/
@Override
public long getSportelloId() {
return _sportello.getSportelloId();
}
/**
* Sets the sportello ID of this sportello.
*
* @param sportelloId the sportello ID of this sportello
*/
@Override
public void setSportelloId(long sportelloId) {
_sportello.setSportelloId(sportelloId);
}
/**
* Returns the group ID of this sportello.
*
* @return the group ID of this sportello
*/
@Override
public long getGroupId() {
return _sportello.getGroupId();
}
/**
* Sets the group ID of this sportello.
*
* @param groupId the group ID of this sportello
*/
@Override
public void setGroupId(long groupId) {
_sportello.setGroupId(groupId);
}
/**
* Returns the company ID of this sportello.
*
* @return the company ID of this sportello
*/
@Override
public long getCompanyId() {
return _sportello.getCompanyId();
}
/**
* Sets the company ID of this sportello.
*
* @param companyId the company ID of this sportello
*/
@Override
public void setCompanyId(long companyId) {
_sportello.setCompanyId(companyId);
}
/**
* Returns the user ID of this sportello.
*
* @return the user ID of this sportello
*/
@Override
public long getUserId() {
return _sportello.getUserId();
}
/**
* Sets the user ID of this sportello.
*
* @param userId the user ID of this sportello
*/
@Override
public void setUserId(long userId) {
_sportello.setUserId(userId);
}
/**
* Returns the user uuid of this sportello.
*
* @return the user uuid of this sportello
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _sportello.getUserUuid();
}
/**
* Sets the user uuid of this sportello.
*
* @param userUuid the user uuid of this sportello
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_sportello.setUserUuid(userUuid);
}
/**
* Returns the user name of this sportello.
*
* @return the user name of this sportello
*/
@Override
public java.lang.String getUserName() {
return _sportello.getUserName();
}
/**
* Sets the user name of this sportello.
*
* @param userName the user name of this sportello
*/
@Override
public void setUserName(java.lang.String userName) {
_sportello.setUserName(userName);
}
/**
* Returns the create date of this sportello.
*
* @return the create date of this sportello
*/
@Override
public java.util.Date getCreateDate() {
return _sportello.getCreateDate();
}
/**
* Sets the create date of this sportello.
*
* @param createDate the create date of this sportello
*/
@Override
public void setCreateDate(java.util.Date createDate) {
_sportello.setCreateDate(createDate);
}
/**
* Returns the modified date of this sportello.
*
* @return the modified date of this sportello
*/
@Override
public java.util.Date getModifiedDate() {
return _sportello.getModifiedDate();
}
/**
* Sets the modified date of this sportello.
*
* @param modifiedDate the modified date of this sportello
*/
@Override
public void setModifiedDate(java.util.Date modifiedDate) {
_sportello.setModifiedDate(modifiedDate);
}
@Override
public boolean isNew() {
return _sportello.isNew();
}
@Override
public void setNew(boolean n) {
_sportello.setNew(n);
}
@Override
public boolean isCachedModel() {
return _sportello.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_sportello.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _sportello.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _sportello.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_sportello.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _sportello.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel<?> baseModel) {
_sportello.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_sportello.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_sportello.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new SportelloWrapper((Sportello)_sportello.clone());
}
@Override
public int compareTo(it.mwg.sicilia.sue.model.Sportello sportello) {
return _sportello.compareTo(sportello);
}
@Override
public int hashCode() {
return _sportello.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel<it.mwg.sicilia.sue.model.Sportello> toCacheModel() {
return _sportello.toCacheModel();
}
@Override
public it.mwg.sicilia.sue.model.Sportello toEscapedModel() {
return new SportelloWrapper(_sportello.toEscapedModel());
}
@Override
public it.mwg.sicilia.sue.model.Sportello toUnescapedModel() {
return new SportelloWrapper(_sportello.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _sportello.toString();
}
@Override
public java.lang.String toXmlString() {
return _sportello.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_sportello.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SportelloWrapper)) {
return false;
}
SportelloWrapper sportelloWrapper = (SportelloWrapper)obj;
if (Validator.equals(_sportello, sportelloWrapper._sportello)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public Sportello getWrappedSportello() {
return _sportello;
}
@Override
public Sportello getWrappedModel() {
return _sportello;
}
@Override
public void resetOriginalValues() {
_sportello.resetOriginalValues();
}
private Sportello _sportello;
}

288
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/ClpSerializer.java

@ -0,0 +1,288 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream;
import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.ClassLoaderObjectInputStream;
import com.liferay.portal.kernel.util.PropsUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.BaseModel;
import it.mwg.sicilia.sue.model.SportelloClp;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
/**
* @author Manifattura Web Group Srl
*/
public class ClpSerializer {
public static String getServletContextName() {
if (Validator.isNotNull(_servletContextName)) {
return _servletContextName;
}
synchronized (ClpSerializer.class) {
if (Validator.isNotNull(_servletContextName)) {
return _servletContextName;
}
try {
ClassLoader classLoader = ClpSerializer.class.getClassLoader();
Class<?> portletPropsClass = classLoader.loadClass(
"com.liferay.util.portlet.PortletProps");
Method getMethod = portletPropsClass.getMethod("get",
new Class<?>[] { String.class });
String portletPropsServletContextName = (String)getMethod.invoke(null,
"sicilia-sue-connector-portlet-deployment-context");
if (Validator.isNotNull(portletPropsServletContextName)) {
_servletContextName = portletPropsServletContextName;
}
}
catch (Throwable t) {
if (_log.isInfoEnabled()) {
_log.info(
"Unable to locate deployment context from portlet properties");
}
}
if (Validator.isNull(_servletContextName)) {
try {
String propsUtilServletContextName = PropsUtil.get(
"sicilia-sue-connector-portlet-deployment-context");
if (Validator.isNotNull(propsUtilServletContextName)) {
_servletContextName = propsUtilServletContextName;
}
}
catch (Throwable t) {
if (_log.isInfoEnabled()) {
_log.info(
"Unable to locate deployment context from portal properties");
}
}
}
if (Validator.isNull(_servletContextName)) {
_servletContextName = "sicilia-sue-connector-portlet";
}
return _servletContextName;
}
}
public static Object translateInput(BaseModel<?> oldModel) {
Class<?> oldModelClass = oldModel.getClass();
String oldModelClassName = oldModelClass.getName();
if (oldModelClassName.equals(SportelloClp.class.getName())) {
return translateInputSportello(oldModel);
}
return oldModel;
}
public static Object translateInput(List<Object> oldList) {
List<Object> newList = new ArrayList<Object>(oldList.size());
for (int i = 0; i < oldList.size(); i++) {
Object curObj = oldList.get(i);
newList.add(translateInput(curObj));
}
return newList;
}
public static Object translateInputSportello(BaseModel<?> oldModel) {
SportelloClp oldClpModel = (SportelloClp)oldModel;
BaseModel<?> newModel = oldClpModel.getSportelloRemoteModel();
newModel.setModelAttributes(oldClpModel.getModelAttributes());
return newModel;
}
public static Object translateInput(Object obj) {
if (obj instanceof BaseModel<?>) {
return translateInput((BaseModel<?>)obj);
}
else if (obj instanceof List<?>) {
return translateInput((List<Object>)obj);
}
else {
return obj;
}
}
public static Object translateOutput(BaseModel<?> oldModel) {
Class<?> oldModelClass = oldModel.getClass();
String oldModelClassName = oldModelClass.getName();
if (oldModelClassName.equals(
"it.mwg.sicilia.sue.model.impl.SportelloImpl")) {
return translateOutputSportello(oldModel);
}
else if (oldModelClassName.endsWith("Clp")) {
try {
ClassLoader classLoader = ClpSerializer.class.getClassLoader();
Method getClpSerializerClassMethod = oldModelClass.getMethod(
"getClpSerializerClass");
Class<?> oldClpSerializerClass = (Class<?>)getClpSerializerClassMethod.invoke(oldModel);
Class<?> newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName());
Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput",
BaseModel.class);
Class<?> oldModelModelClass = oldModel.getModelClass();
Method getRemoteModelMethod = oldModelClass.getMethod("get" +
oldModelModelClass.getSimpleName() + "RemoteModel");
Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel);
BaseModel<?> newModel = (BaseModel<?>)translateOutputMethod.invoke(null,
oldRemoteModel);
return newModel;
}
catch (Throwable t) {
if (_log.isInfoEnabled()) {
_log.info("Unable to translate " + oldModelClassName, t);
}
}
}
return oldModel;
}
public static Object translateOutput(List<Object> oldList) {
List<Object> newList = new ArrayList<Object>(oldList.size());
for (int i = 0; i < oldList.size(); i++) {
Object curObj = oldList.get(i);
newList.add(translateOutput(curObj));
}
return newList;
}
public static Object translateOutput(Object obj) {
if (obj instanceof BaseModel<?>) {
return translateOutput((BaseModel<?>)obj);
}
else if (obj instanceof List<?>) {
return translateOutput((List<Object>)obj);
}
else {
return obj;
}
}
public static Throwable translateThrowable(Throwable throwable) {
if (_useReflectionToTranslateThrowable) {
try {
UnsyncByteArrayOutputStream unsyncByteArrayOutputStream = new UnsyncByteArrayOutputStream();
ObjectOutputStream objectOutputStream = new ObjectOutputStream(unsyncByteArrayOutputStream);
objectOutputStream.writeObject(throwable);
objectOutputStream.flush();
objectOutputStream.close();
UnsyncByteArrayInputStream unsyncByteArrayInputStream = new UnsyncByteArrayInputStream(unsyncByteArrayOutputStream.unsafeGetByteArray(),
0, unsyncByteArrayOutputStream.size());
Thread currentThread = Thread.currentThread();
ClassLoader contextClassLoader = currentThread.getContextClassLoader();
ObjectInputStream objectInputStream = new ClassLoaderObjectInputStream(unsyncByteArrayInputStream,
contextClassLoader);
throwable = (Throwable)objectInputStream.readObject();
objectInputStream.close();
return throwable;
}
catch (SecurityException se) {
if (_log.isInfoEnabled()) {
_log.info("Do not use reflection to translate throwable");
}
_useReflectionToTranslateThrowable = false;
}
catch (Throwable throwable2) {
_log.error(throwable2, throwable2);
return throwable2;
}
}
Class<?> clazz = throwable.getClass();
String className = clazz.getName();
if (className.equals(PortalException.class.getName())) {
return new PortalException();
}
if (className.equals(SystemException.class.getName())) {
return new SystemException();
}
if (className.equals("it.mwg.sicilia.sue.NoSuchSportelloException")) {
return new it.mwg.sicilia.sue.NoSuchSportelloException();
}
return throwable;
}
public static Object translateOutputSportello(BaseModel<?> oldModel) {
SportelloClp newModel = new SportelloClp();
newModel.setModelAttributes(oldModel.getModelAttributes());
newModel.setSportelloRemoteModel(oldModel);
return newModel;
}
private static Log _log = LogFactoryUtil.getLog(ClpSerializer.class);
private static String _servletContextName;
private static boolean _useReflectionToTranslateThrowable = true;
}

252
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalService.java

@ -0,0 +1,252 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.service.BaseLocalService;
import com.liferay.portal.service.InvokableLocalService;
import com.liferay.portal.service.PersistedModelLocalService;
/**
* Provides the local service interface for Sportello. Methods of this
* service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same
* VM.
*
* @author Manifattura Web Group Srl
* @see SportelloLocalServiceUtil
* @see it.mwg.sicilia.sue.service.base.SportelloLocalServiceBaseImpl
* @see it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl
* @generated
*/
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface SportelloLocalService extends BaseLocalService,
InvokableLocalService, PersistedModelLocalService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link SportelloLocalServiceUtil} to access the sportello local service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
/**
* Adds the sportello to the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was added
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.mwg.sicilia.sue.model.Sportello addSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Creates a new sportello with the primary key. Does not add the sportello to the database.
*
* @param sportelloId the primary key for the new sportello
* @return the new sportello
*/
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId);
/**
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param sportelloId the primary key of the sportello
* @return the sportello that was removed
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Deletes the sportello from the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
public it.mwg.sicilia.sue.model.Sportello deleteSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException;
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the sportello with the primary key.
*
* @param sportelloId the primary key of the sportello
* @return the sportello
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Override
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @return the range of sportellos
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of sportellos.
*
* @return the number of sportellos
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getSportellosCount()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was updated
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.mwg.sicilia.sue.model.Sportello updateSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public java.lang.String getBeanIdentifier();
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public void setBeanIdentifier(java.lang.String beanIdentifier);
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
}

701
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceClp.java

@ -0,0 +1,701 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.service.InvokableLocalService;
/**
* @author Manifattura Web Group Srl
* @generated
*/
public class SportelloLocalServiceClp implements SportelloLocalService {
public SportelloLocalServiceClp(InvokableLocalService invokableLocalService) {
_invokableLocalService = invokableLocalService;
_methodName0 = "addSportello";
_methodParameterTypes0 = new String[] {
"it.mwg.sicilia.sue.model.Sportello"
};
_methodName1 = "createSportello";
_methodParameterTypes1 = new String[] { "long" };
_methodName2 = "deleteSportello";
_methodParameterTypes2 = new String[] { "long" };
_methodName3 = "deleteSportello";
_methodParameterTypes3 = new String[] {
"it.mwg.sicilia.sue.model.Sportello"
};
_methodName4 = "dynamicQuery";
_methodParameterTypes4 = new String[] { };
_methodName5 = "dynamicQuery";
_methodParameterTypes5 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName6 = "dynamicQuery";
_methodParameterTypes6 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName7 = "dynamicQuery";
_methodParameterTypes7 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName8 = "dynamicQueryCount";
_methodParameterTypes8 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName9 = "dynamicQueryCount";
_methodParameterTypes9 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery",
"com.liferay.portal.kernel.dao.orm.Projection"
};
_methodName10 = "fetchSportello";
_methodParameterTypes10 = new String[] { "long" };
_methodName11 = "getSportello";
_methodParameterTypes11 = new String[] { "long" };
_methodName12 = "getPersistedModel";
_methodParameterTypes12 = new String[] { "java.io.Serializable" };
_methodName13 = "getSportellos";
_methodParameterTypes13 = new String[] { "int", "int" };
_methodName14 = "getSportellosCount";
_methodParameterTypes14 = new String[] { };
_methodName15 = "updateSportello";
_methodParameterTypes15 = new String[] {
"it.mwg.sicilia.sue.model.Sportello"
};
_methodName16 = "getBeanIdentifier";
_methodParameterTypes16 = new String[] { };
_methodName17 = "setBeanIdentifier";
_methodParameterTypes17 = new String[] { "java.lang.String" };
}
@Override
public it.mwg.sicilia.sue.model.Sportello addSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName0,
_methodParameterTypes0,
new Object[] { ClpSerializer.translateInput(sportello) });
}
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName1,
_methodParameterTypes1, new Object[] { sportelloId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName2,
_methodParameterTypes2, new Object[] { sportelloId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.mwg.sicilia.sue.model.Sportello deleteSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName3,
_methodParameterTypes3,
new Object[] { ClpSerializer.translateInput(sportello) });
}
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName4,
_methodParameterTypes4, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
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 (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName6,
_methodParameterTypes6,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end
});
}
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 (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName7,
_methodParameterTypes7,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end,
ClpSerializer.translateInput(orderByComparator)
});
}
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 (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName8,
_methodParameterTypes8,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
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 ((Long)returnObj).longValue();
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName9,
_methodParameterTypes9,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
ClpSerializer.translateInput(projection)
});
}
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 ((Long)returnObj).longValue();
}
@Override
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName10,
_methodParameterTypes10, new Object[] { sportelloId });
}
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName11,
_methodParameterTypes11, new Object[] { sportelloId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName12,
_methodParameterTypes12,
new Object[] { ClpSerializer.translateInput(primaryKeyObj) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)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 (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName13,
_methodParameterTypes13, new Object[] { start, end });
}
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 (java.util.List<it.mwg.sicilia.sue.model.Sportello>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int getSportellosCount()
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName14,
_methodParameterTypes14, new Object[] { });
}
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 ((Integer)returnObj).intValue();
}
@Override
public it.mwg.sicilia.sue.model.Sportello updateSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName15,
_methodParameterTypes15,
new Object[] { ClpSerializer.translateInput(sportello) });
}
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.lang.String getBeanIdentifier() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName16,
_methodParameterTypes16, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
}
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
try {
_invokableLocalService.invokeMethod(_methodName17,
_methodParameterTypes17,
new Object[] { ClpSerializer.translateInput(beanIdentifier) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
throw new UnsupportedOperationException();
}
private InvokableLocalService _invokableLocalService;
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName16;
private String[] _methodParameterTypes16;
private String _methodName17;
private String[] _methodParameterTypes17;
}

308
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceUtil.java

@ -0,0 +1,308 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.InvokableLocalService;
/**
* Provides the local service utility for Sportello. This utility wraps
* {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and is the
* primary access point for service operations in application layer code running
* on the local server. Methods of this service will not have security checks
* based on the propagated JAAS credentials because this service can only be
* accessed from within the same VM.
*
* @author Manifattura Web Group Srl
* @see SportelloLocalService
* @see it.mwg.sicilia.sue.service.base.SportelloLocalServiceBaseImpl
* @see it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl
* @generated
*/
public class SportelloLocalServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Adds the sportello to the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was added
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello addSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().addSportello(sportello);
}
/**
* Creates a new sportello with the primary key. Does not add the sportello to the database.
*
* @param sportelloId the primary key for the new sportello
* @return the new sportello
*/
public static it.mwg.sicilia.sue.model.Sportello createSportello(
long sportelloId) {
return getService().createSportello(sportelloId);
}
/**
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param sportelloId the primary key of the sportello
* @return the sportello that was removed
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello deleteSportello(
long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().deleteSportello(sportelloId);
}
/**
* Deletes the sportello from the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello deleteSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().deleteSportello(sportello);
}
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return getService().dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.dynamicQuery(dynamicQuery, start, end, orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery, projection);
}
public static it.mwg.sicilia.sue.model.Sportello fetchSportello(
long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().fetchSportello(sportelloId);
}
/**
* Returns the sportello with the primary key.
*
* @param sportelloId the primary key of the sportello
* @return the sportello
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello getSportello(
long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getSportello(sportelloId);
}
public static com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getPersistedModel(primaryKeyObj);
}
/**
* Returns a range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @return the range of sportellos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getSportellos(start, end);
}
/**
* Returns the number of sportellos.
*
* @return the number of sportellos
* @throws SystemException if a system exception occurred
*/
public static int getSportellosCount()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getSportellosCount();
}
/**
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was updated
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello updateSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().updateSportello(sportello);
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static void clearService() {
_service = null;
}
public static SportelloLocalService getService() {
if (_service == null) {
InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
SportelloLocalService.class.getName());
if (invokableLocalService instanceof SportelloLocalService) {
_service = (SportelloLocalService)invokableLocalService;
}
else {
_service = new SportelloLocalServiceClp(invokableLocalService);
}
ReferenceRegistry.registerReference(SportelloLocalServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(SportelloLocalService service) {
}
private static SportelloLocalService _service;
}

311
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloLocalServiceWrapper.java

@ -0,0 +1,311 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.service.ServiceWrapper;
/**
* Provides a wrapper for {@link SportelloLocalService}.
*
* @author Manifattura Web Group Srl
* @see SportelloLocalService
* @generated
*/
public class SportelloLocalServiceWrapper implements SportelloLocalService,
ServiceWrapper<SportelloLocalService> {
public SportelloLocalServiceWrapper(
SportelloLocalService sportelloLocalService) {
_sportelloLocalService = sportelloLocalService;
}
/**
* Adds the sportello to the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was added
* @throws SystemException if a system exception occurred
*/
@Override
public it.mwg.sicilia.sue.model.Sportello addSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.addSportello(sportello);
}
/**
* Creates a new sportello with the primary key. Does not add the sportello to the database.
*
* @param sportelloId the primary key for the new sportello
* @return the new sportello
*/
@Override
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId) {
return _sportelloLocalService.createSportello(sportelloId);
}
/**
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param sportelloId the primary key of the sportello
* @return the sportello that was removed
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.deleteSportello(sportelloId);
}
/**
* Deletes the sportello from the database. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
@Override
public it.mwg.sicilia.sue.model.Sportello deleteSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.deleteSportello(sportello);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _sportelloLocalService.dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.dynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.dynamicQueryCount(dynamicQuery, projection);
}
@Override
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.fetchSportello(sportelloId);
}
/**
* Returns the sportello with the primary key.
*
* @param sportelloId the primary key of the sportello
* @return the sportello
* @throws PortalException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.getSportello(sportelloId);
}
@Override
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.getPersistedModel(primaryKeyObj);
}
/**
* Returns a range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @return the range of sportellos
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.getSportellos(start, end);
}
/**
* Returns the number of sportellos.
*
* @return the number of sportellos
* @throws SystemException if a system exception occurred
*/
@Override
public int getSportellosCount()
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.getSportellosCount();
}
/**
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param sportello the sportello
* @return the sportello that was updated
* @throws SystemException if a system exception occurred
*/
@Override
public it.mwg.sicilia.sue.model.Sportello updateSportello(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return _sportelloLocalService.updateSportello(sportello);
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public java.lang.String getBeanIdentifier() {
return _sportelloLocalService.getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
_sportelloLocalService.setBeanIdentifier(beanIdentifier);
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return _sportelloLocalService.invokeMethod(name, parameterTypes,
arguments);
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/
public SportelloLocalService getWrappedSportelloLocalService() {
return _sportelloLocalService;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
*/
public void setWrappedSportelloLocalService(
SportelloLocalService sportelloLocalService) {
_sportelloLocalService = sportelloLocalService;
}
@Override
public SportelloLocalService getWrappedService() {
return _sportelloLocalService;
}
@Override
public void setWrappedService(SportelloLocalService sportelloLocalService) {
_sportelloLocalService = sportelloLocalService;
}
private SportelloLocalService _sportelloLocalService;
}

66
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloService.java

@ -0,0 +1,66 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.security.ac.AccessControlled;
import com.liferay.portal.service.BaseService;
import com.liferay.portal.service.InvokableService;
/**
* Provides the remote service interface for Sportello. Methods of this
* service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely.
*
* @author Manifattura Web Group Srl
* @see SportelloServiceUtil
* @see it.mwg.sicilia.sue.service.base.SportelloServiceBaseImpl
* @see it.mwg.sicilia.sue.service.impl.SportelloServiceImpl
* @generated
*/
@AccessControlled
@JSONWebService
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface SportelloService extends BaseService, InvokableService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link SportelloServiceUtil} to access the sportello remote service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public java.lang.String getBeanIdentifier();
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public void setBeanIdentifier(java.lang.String beanIdentifier);
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
}

91
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceClp.java

@ -0,0 +1,91 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.service.InvokableService;
/**
* @author Manifattura Web Group Srl
* @generated
*/
public class SportelloServiceClp implements SportelloService {
public SportelloServiceClp(InvokableService invokableService) {
_invokableService = invokableService;
_methodName0 = "getBeanIdentifier";
_methodParameterTypes0 = new String[] { };
_methodName1 = "setBeanIdentifier";
_methodParameterTypes1 = new String[] { "java.lang.String" };
}
@Override
public java.lang.String getBeanIdentifier() {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName0,
_methodParameterTypes0, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
}
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
try {
_invokableService.invokeMethod(_methodName1,
_methodParameterTypes1,
new Object[] { ClpSerializer.translateInput(beanIdentifier) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
throw new UnsupportedOperationException();
}
private InvokableService _invokableService;
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
}

96
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceUtil.java

@ -0,0 +1,96 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.InvokableService;
/**
* Provides the remote service utility for Sportello. This utility wraps
* {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and is the
* primary access point for service operations in application layer code running
* on a remote server. Methods of this service are expected to have security
* checks based on the propagated JAAS credentials because this service can be
* accessed remotely.
*
* @author Manifattura Web Group Srl
* @see SportelloService
* @see it.mwg.sicilia.sue.service.base.SportelloServiceBaseImpl
* @see it.mwg.sicilia.sue.service.impl.SportelloServiceImpl
* @generated
*/
public class SportelloServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static void clearService() {
_service = null;
}
public static SportelloService getService() {
if (_service == null) {
InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
SportelloService.class.getName());
if (invokableService instanceof SportelloService) {
_service = (SportelloService)invokableService;
}
else {
_service = new SportelloServiceClp(invokableService);
}
ReferenceRegistry.registerReference(SportelloServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(SportelloService service) {
}
private static SportelloService _service;
}

84
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/SportelloServiceWrapper.java

@ -0,0 +1,84 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service;
import com.liferay.portal.service.ServiceWrapper;
/**
* Provides a wrapper for {@link SportelloService}.
*
* @author Manifattura Web Group Srl
* @see SportelloService
* @generated
*/
public class SportelloServiceWrapper implements SportelloService,
ServiceWrapper<SportelloService> {
public SportelloServiceWrapper(SportelloService sportelloService) {
_sportelloService = sportelloService;
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public java.lang.String getBeanIdentifier() {
return _sportelloService.getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
_sportelloService.setBeanIdentifier(beanIdentifier);
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return _sportelloService.invokeMethod(name, parameterTypes, arguments);
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/
public SportelloService getWrappedSportelloService() {
return _sportelloService;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
*/
public void setWrappedSportelloService(SportelloService sportelloService) {
_sportelloService = sportelloService;
}
@Override
public SportelloService getWrappedService() {
return _sportelloService;
}
@Override
public void setWrappedService(SportelloService sportelloService) {
_sportelloService = sportelloService;
}
private SportelloService _sportelloService;
}

44
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/messaging/ClpMessageListener.java

@ -0,0 +1,44 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service.messaging;
import com.liferay.portal.kernel.messaging.BaseMessageListener;
import com.liferay.portal.kernel.messaging.Message;
import it.mwg.sicilia.sue.service.ClpSerializer;
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil;
import it.mwg.sicilia.sue.service.SportelloServiceUtil;
/**
* @author Manifattura Web Group Srl
*/
public class ClpMessageListener extends BaseMessageListener {
public static String getServletContextName() {
return ClpSerializer.getServletContextName();
}
@Override
protected void doReceive(Message message) throws Exception {
String command = message.getString("command");
String servletContextName = message.getString("servletContextName");
if (command.equals("undeploy") &&
servletContextName.equals(getServletContextName())) {
SportelloLocalServiceUtil.clearService();
SportelloServiceUtil.clearService();
}
}
}

37
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloActionableDynamicQuery.java

@ -0,0 +1,37 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service.persistence;
import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import it.mwg.sicilia.sue.model.Sportello;
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil;
/**
* @author Manifattura Web Group Srl
* @generated
*/
public abstract class SportelloActionableDynamicQuery
extends BaseActionableDynamicQuery {
public SportelloActionableDynamicQuery() throws SystemException {
setBaseLocalService(SportelloLocalServiceUtil.getService());
setClass(Sportello.class);
setClassLoader(it.mwg.sicilia.sue.service.ClpSerializer.class.getClassLoader());
setPrimaryKeyPropertyName("sportelloId");
}
}

161
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java

@ -0,0 +1,161 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service.persistence;
import com.liferay.portal.service.persistence.BasePersistence;
import it.mwg.sicilia.sue.model.Sportello;
/**
* The persistence interface for the sportello service.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author Manifattura Web Group Srl
* @see SportelloPersistenceImpl
* @see SportelloUtil
* @generated
*/
public interface SportelloPersistence extends BasePersistence<Sportello> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link SportelloUtil} to access the sportello persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Caches the sportello in the entity cache if it is enabled.
*
* @param sportello the sportello
*/
public void cacheResult(it.mwg.sicilia.sue.model.Sportello sportello);
/**
* Caches the sportellos in the entity cache if it is enabled.
*
* @param sportellos the sportellos
*/
public void cacheResult(
java.util.List<it.mwg.sicilia.sue.model.Sportello> sportellos);
/**
* Creates a new sportello with the primary key. Does not add the sportello to the database.
*
* @param sportelloId the primary key for the new sportello
* @return the new sportello
*/
public it.mwg.sicilia.sue.model.Sportello create(long sportelloId);
/**
* Removes the sportello with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param sportelloId the primary key of the sportello
* @return the sportello that was removed
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.mwg.sicilia.sue.model.Sportello remove(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException,
it.mwg.sicilia.sue.NoSuchSportelloException;
public it.mwg.sicilia.sue.model.Sportello updateImpl(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the sportello with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found.
*
* @param sportelloId the primary key of the sportello
* @return the sportello
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.mwg.sicilia.sue.model.Sportello findByPrimaryKey(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException,
it.mwg.sicilia.sue.NoSuchSportelloException;
/**
* Returns the sportello with the primary key or returns <code>null</code> if it could not be found.
*
* @param sportelloId the primary key of the sportello
* @return the sportello, or <code>null</code> if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.mwg.sicilia.sue.model.Sportello fetchByPrimaryKey(
long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the sportellos.
*
* @return the sportellos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @return the range of sportellos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of sportellos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the sportellos from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of sportellos.
*
* @return the number of sportellos
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
}

279
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java

@ -0,0 +1,279 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.mwg.sicilia.sue.service.persistence;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;
import it.mwg.sicilia.sue.model.Sportello;
import java.util.List;
/**
* The persistence utility for the sportello service. This utility wraps {@link SportelloPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author Manifattura Web Group Srl
* @see SportelloPersistence
* @see SportelloPersistenceImpl
* @generated
*/
public class SportelloUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
*/
public static void clearCache(Sportello sportello) {
getPersistence().clearCache(sportello);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List<Sportello> findWithDynamicQuery(
DynamicQuery dynamicQuery) throws SystemException {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List<Sportello> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end)
throws SystemException {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List<Sportello> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
return getPersistence()
.findWithDynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
*/
public static Sportello update(Sportello sportello)
throws SystemException {
return getPersistence().update(sportello);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
*/
public static Sportello update(Sportello sportello,
ServiceContext serviceContext) throws SystemException {
return getPersistence().update(sportello, serviceContext);
}
/**
* Caches the sportello in the entity cache if it is enabled.
*
* @param sportello the sportello
*/
public static void cacheResult(it.mwg.sicilia.sue.model.Sportello sportello) {
getPersistence().cacheResult(sportello);
}
/**
* Caches the sportellos in the entity cache if it is enabled.
*
* @param sportellos the sportellos
*/
public static void cacheResult(
java.util.List<it.mwg.sicilia.sue.model.Sportello> sportellos) {
getPersistence().cacheResult(sportellos);
}
/**
* Creates a new sportello with the primary key. Does not add the sportello to the database.
*
* @param sportelloId the primary key for the new sportello
* @return the new sportello
*/
public static it.mwg.sicilia.sue.model.Sportello create(long sportelloId) {
return getPersistence().create(sportelloId);
}
/**
* Removes the sportello with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param sportelloId the primary key of the sportello
* @return the sportello that was removed
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello remove(long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException,
it.mwg.sicilia.sue.NoSuchSportelloException {
return getPersistence().remove(sportelloId);
}
public static it.mwg.sicilia.sue.model.Sportello updateImpl(
it.mwg.sicilia.sue.model.Sportello sportello)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().updateImpl(sportello);
}
/**
* Returns the sportello with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found.
*
* @param sportelloId the primary key of the sportello
* @return the sportello
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello findByPrimaryKey(
long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException,
it.mwg.sicilia.sue.NoSuchSportelloException {
return getPersistence().findByPrimaryKey(sportelloId);
}
/**
* Returns the sportello with the primary key or returns <code>null</code> if it could not be found.
*
* @param sportelloId the primary key of the sportello
* @return the sportello, or <code>null</code> if a sportello with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.mwg.sicilia.sue.model.Sportello fetchByPrimaryKey(
long sportelloId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByPrimaryKey(sportelloId);
}
/**
* Returns all the sportellos.
*
* @return the sportellos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll();
}
/**
* Returns a range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @return the range of sportellos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the sportellos.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of sportellos
* @param end the upper bound of the range of sportellos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of sportellos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Removes all the sportellos from the database.
*
* @throws SystemException if a system exception occurred
*/
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException {
getPersistence().removeAll();
}
/**
* Returns the number of sportellos.
*
* @return the number of sportellos
* @throws SystemException if a system exception occurred
*/
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().countAll();
}
public static SportelloPersistence getPersistence() {
if (_persistence == null) {
_persistence = (SportelloPersistence)PortletBeanLocatorUtil.locate(it.mwg.sicilia.sue.service.ClpSerializer.getServletContextName(),
SportelloPersistence.class.getName());
ReferenceRegistry.registerReference(SportelloUtil.class,
"_persistence");
}
return _persistence;
}
/**
* @deprecated As of 6.2.0
*/
public void setPersistence(SportelloPersistence persistence) {
}
private static SportelloPersistence _persistence;
}

0
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties

0
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql

0
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/sequences.sql

19
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql

@ -0,0 +1,19 @@
create table sicilia_sue_SUE (
sueId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null
);
create table sicilia_sue_Sportello (
sportelloId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null
);

Some files were not shown because too many files have changed in this diff Show More

Caricamento…
Annulla
Salva