Sfoglia il codice sorgente

Cambio branch

master
Salvatore La Manna 3 anni fa
parent
commit
5d13f9406b
  1. 24
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java
  3. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java
  4. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java
  5. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologo.java
  6. 297
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoClp.java
  7. 115
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoModel.java
  8. 60
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoSoap.java
  9. 219
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoWrapper.java
  10. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java
  11. 200
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java
  12. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java
  13. 32
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java
  14. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoService.java
  15. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceClp.java
  16. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceUtil.java
  17. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceWrapper.java
  18. 600
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java
  19. 740
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java
  20. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties
  21. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql
  22. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  23. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  24. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  25. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  26. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties
  27. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/ControlloPraticaAdvancedSearch.java
  28. 66
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java
  29. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  30. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  31. 64
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoCacheModel.java
  32. 138
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java
  33. 305
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoModelImpl.java
  34. 215
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  35. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java
  36. 280
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java
  37. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  38. 101
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java
  39. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java
  40. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java
  41. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java
  42. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  43. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  44. 68
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  45. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java
  46. 2744
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
  47. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portal.properties
  48. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  49. 71
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp
  50. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp
  51. 67
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp
  52. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_annulla_ric_geologo.jsp
  53. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp
  54. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp
  55. 33
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf
  56. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_actions.jsp
  57. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp
  58. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties
  59. 59
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java
  60. 11
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/abort_fascicolo.jsp
  61. 94
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo.jsp
  62. 38
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp
  63. 11
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions/add_parere.jsp
  64. 50
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions/assegna_parere.jsp
  65. 23
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp
  66. 32
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/parericompletati.jsp
  67. 58
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp
  68. 50
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaassegnare.jsp
  69. 15
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp
  70. 12
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp
  71. 4
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/service.properties
  72. 2
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath
  73. 7
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/ParereConstants.java
  74. 53
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/UnitaOperativeUtil.java
  75. 52
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/UserUtil.java
  76. 8
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java
  77. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

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

@ -95,12 +95,15 @@
<entity name="ParereGeologo" local-service="true" remote-service="true" uuid="true" table="portos_bo_ParereGeo"> <entity name="ParereGeologo" local-service="true" remote-service="true" uuid="true" table="portos_bo_ParereGeo">
<column name="parereGeologoId" type="long" primary="true" /> <column name="parereGeologoId" type="long" primary="true" />
<column name="companyId" type="long" /> <column name="companyId" type="long" />
<column name="unitaOperativa" type="int" />
<column name="userId" type="long" /> <column name="userId" type="long" />
<column name="userName" type="String" /> <column name="userName" type="String" />
<column name="createDate" type="Date" /> <column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" /> <column name="modifiedDate" type="Date" />
<column name="groupId" type="long" /> <column name="groupId" type="long" />
<column name="geologoUserId" type="long" /> <column name="geologoUserId" type="long" />
<column name="assegnatoreUserId" type="long" />
<column name="dtAssegnazione" type="Date" />
<column name="parere" type="String" /> <column name="parere" type="String" />
<column name="intPraticaId" type="long" /> <column name="intPraticaId" type="long" />
<column name="dettPraticaId" type="long" /> <column name="dettPraticaId" type="long" />
@ -112,6 +115,9 @@
<column name="dtAnnullamento" type="Date" /> <column name="dtAnnullamento" type="Date" />
<column name="userIdAnnullamento" type="long" /> <column name="userIdAnnullamento" type="long" />
<column name="noteAnnullamento" type="String" /> <column name="noteAnnullamento" type="String" />
<column name="approvatoreUserId" type="long" />
<column name="dtApprovazione" type="Date" />
<column name="noteApprovatore" type="String" />
<order> <order>
<order-column name="createDate" order-by="asc" /> <order-column name="createDate" order-by="asc" />
@ -138,6 +144,24 @@
<finder-column name="groupId" /> <finder-column name="groupId" />
</finder> </finder>
<finder return-type="Collection" name="Group_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento">
<finder-column name="groupId" arrayable-operator="IN" />
<finder-column name="unitaOperativa" arrayable-operator="IN" />
<finder-column name="geologoUserId" />
<finder-column name="assegnatoreUserId" arrayable-operator="IN" />
<finder-column name="dtCompilazione" />
<finder-column name="dtAnnullamento" />
</finder>
<finder return-type="Collection" name="Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione">
<finder-column name="groupId" arrayable-operator="IN" />
<finder-column name="unitaOperativa" arrayable-operator="IN" />
<finder-column name="assegnatoreUserId" arrayable-operator="IN" />
<finder-column name="dtCompilazione" comparator="!=" />
<finder-column name="dtAnnullamento" comparator="!=" />
<finder-column name="dtApprovazione" />
</finder>
<reference package-path="com.liferay.portlet.documentlibrary" entity="DLApp" /> <reference package-path="com.liferay.portlet.documentlibrary" entity="DLApp" />
</entity> </entity>

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

@ -162,6 +162,10 @@ public interface IntPratica extends IntPraticaModel, PersistedModel {
public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getGeologi() public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getGeologi()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.Map<java.lang.String, com.liferay.portal.model.User> getGeologiPerParere()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasAnnullaDelega(long userId) public boolean hasAnnullaDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;

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

@ -1938,6 +1938,26 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
} }
@Override
public java.util.Map<java.lang.String, com.liferay.portal.model.User> getGeologiPerParere() {
try {
String methodName = "getGeologiPerParere";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
java.util.Map<java.lang.String, com.liferay.portal.model.User> returnObj =
(java.util.Map<java.lang.String, com.liferay.portal.model.User>)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override @Override
public boolean canAddSoggetto(java.lang.String tipoSoggetto) { public boolean canAddSoggetto(java.lang.String tipoSoggetto) {
try { try {

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

@ -1490,6 +1490,13 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
return _intPratica.getGeologi(); return _intPratica.getGeologi();
} }
@Override
public java.util.Map<java.lang.String, com.liferay.portal.model.User> getGeologiPerParere()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPratica.getGeologiPerParere();
}
@Override @Override
public boolean hasAnnullaDelega(long userId) public boolean hasAnnullaDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

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

@ -31,4 +31,10 @@ public interface ParereGeologo extends ParereGeologoModel, PersistedModel {
* *
* Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/ */
public java.util.Set<com.liferay.portal.model.User> getIstruttori()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void invioNotifica(
com.liferay.portal.service.ServiceContext serviceContext);
} }

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

@ -80,12 +80,15 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
attributes.put("uuid", getUuid()); attributes.put("uuid", getUuid());
attributes.put("parereGeologoId", getParereGeologoId()); attributes.put("parereGeologoId", getParereGeologoId());
attributes.put("companyId", getCompanyId()); attributes.put("companyId", getCompanyId());
attributes.put("unitaOperativa", getUnitaOperativa());
attributes.put("userId", getUserId()); attributes.put("userId", getUserId());
attributes.put("userName", getUserName()); attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate()); attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate()); attributes.put("modifiedDate", getModifiedDate());
attributes.put("groupId", getGroupId()); attributes.put("groupId", getGroupId());
attributes.put("geologoUserId", getGeologoUserId()); attributes.put("geologoUserId", getGeologoUserId());
attributes.put("assegnatoreUserId", getAssegnatoreUserId());
attributes.put("dtAssegnazione", getDtAssegnazione());
attributes.put("parere", getParere()); attributes.put("parere", getParere());
attributes.put("intPraticaId", getIntPraticaId()); attributes.put("intPraticaId", getIntPraticaId());
attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("dettPraticaId", getDettPraticaId());
@ -97,6 +100,9 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento());
attributes.put("noteAnnullamento", getNoteAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento());
attributes.put("approvatoreUserId", getApprovatoreUserId());
attributes.put("dtApprovazione", getDtApprovazione());
attributes.put("noteApprovatore", getNoteApprovatore());
return attributes; return attributes;
} }
@ -121,6 +127,12 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
setCompanyId(companyId); setCompanyId(companyId);
} }
Integer unitaOperativa = (Integer)attributes.get("unitaOperativa");
if (unitaOperativa != null) {
setUnitaOperativa(unitaOperativa);
}
Long userId = (Long)attributes.get("userId"); Long userId = (Long)attributes.get("userId");
if (userId != null) { if (userId != null) {
@ -157,6 +169,18 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
setGeologoUserId(geologoUserId); setGeologoUserId(geologoUserId);
} }
Long assegnatoreUserId = (Long)attributes.get("assegnatoreUserId");
if (assegnatoreUserId != null) {
setAssegnatoreUserId(assegnatoreUserId);
}
Date dtAssegnazione = (Date)attributes.get("dtAssegnazione");
if (dtAssegnazione != null) {
setDtAssegnazione(dtAssegnazione);
}
String parere = (String)attributes.get("parere"); String parere = (String)attributes.get("parere");
if (parere != null) { if (parere != null) {
@ -222,6 +246,24 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
if (noteAnnullamento != null) { if (noteAnnullamento != null) {
setNoteAnnullamento(noteAnnullamento); setNoteAnnullamento(noteAnnullamento);
} }
Long approvatoreUserId = (Long)attributes.get("approvatoreUserId");
if (approvatoreUserId != null) {
setApprovatoreUserId(approvatoreUserId);
}
Date dtApprovazione = (Date)attributes.get("dtApprovazione");
if (dtApprovazione != null) {
setDtApprovazione(dtApprovazione);
}
String noteApprovatore = (String)attributes.get("noteApprovatore");
if (noteApprovatore != null) {
setNoteApprovatore(noteApprovatore);
}
} }
@Override @Override
@ -293,6 +335,29 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
} }
} }
@Override
public int getUnitaOperativa() {
return _unitaOperativa;
}
@Override
public void setUnitaOperativa(int unitaOperativa) {
_unitaOperativa = unitaOperativa;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setUnitaOperativa", int.class);
method.invoke(_parereGeologoRemoteModel, unitaOperativa);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override @Override
public long getUserId() { public long getUserId() {
return _userId; return _userId;
@ -452,6 +517,64 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
_geologoUserUuid = geologoUserUuid; _geologoUserUuid = geologoUserUuid;
} }
@Override
public long getAssegnatoreUserId() {
return _assegnatoreUserId;
}
@Override
public void setAssegnatoreUserId(long assegnatoreUserId) {
_assegnatoreUserId = assegnatoreUserId;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setAssegnatoreUserId",
long.class);
method.invoke(_parereGeologoRemoteModel, assegnatoreUserId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getAssegnatoreUserUuid() throws SystemException {
return PortalUtil.getUserValue(getAssegnatoreUserId(), "uuid",
_assegnatoreUserUuid);
}
@Override
public void setAssegnatoreUserUuid(String assegnatoreUserUuid) {
_assegnatoreUserUuid = assegnatoreUserUuid;
}
@Override
public Date getDtAssegnazione() {
return _dtAssegnazione;
}
@Override
public void setDtAssegnazione(Date dtAssegnazione) {
_dtAssegnazione = dtAssegnazione;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setDtAssegnazione", Date.class);
method.invoke(_parereGeologoRemoteModel, dtAssegnazione);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override @Override
public String getParere() { public String getParere() {
return _parere; return _parere;
@ -708,6 +831,126 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
} }
} }
@Override
public long getApprovatoreUserId() {
return _approvatoreUserId;
}
@Override
public void setApprovatoreUserId(long approvatoreUserId) {
_approvatoreUserId = approvatoreUserId;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setApprovatoreUserId",
long.class);
method.invoke(_parereGeologoRemoteModel, approvatoreUserId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getApprovatoreUserUuid() throws SystemException {
return PortalUtil.getUserValue(getApprovatoreUserId(), "uuid",
_approvatoreUserUuid);
}
@Override
public void setApprovatoreUserUuid(String approvatoreUserUuid) {
_approvatoreUserUuid = approvatoreUserUuid;
}
@Override
public Date getDtApprovazione() {
return _dtApprovazione;
}
@Override
public void setDtApprovazione(Date dtApprovazione) {
_dtApprovazione = dtApprovazione;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setDtApprovazione", Date.class);
method.invoke(_parereGeologoRemoteModel, dtApprovazione);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getNoteApprovatore() {
return _noteApprovatore;
}
@Override
public void setNoteApprovatore(String noteApprovatore) {
_noteApprovatore = noteApprovatore;
if (_parereGeologoRemoteModel != null) {
try {
Class<?> clazz = _parereGeologoRemoteModel.getClass();
Method method = clazz.getMethod("setNoteApprovatore",
String.class);
method.invoke(_parereGeologoRemoteModel, noteApprovatore);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public void invioNotifica(
com.liferay.portal.service.ServiceContext serviceContext) {
try {
String methodName = "invioNotifica";
Class<?>[] parameterTypes = new Class<?>[] {
com.liferay.portal.service.ServiceContext.class
};
Object[] parameterValues = new Object[] { serviceContext };
invokeOnRemoteModel(methodName, parameterTypes, parameterValues);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public java.util.Set<com.liferay.portal.model.User> getIstruttori() {
try {
String methodName = "getIstruttori";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
java.util.Set<com.liferay.portal.model.User> returnObj = (java.util.Set<com.liferay.portal.model.User>)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(
@ -787,12 +1030,15 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
clone.setUuid(getUuid()); clone.setUuid(getUuid());
clone.setParereGeologoId(getParereGeologoId()); clone.setParereGeologoId(getParereGeologoId());
clone.setCompanyId(getCompanyId()); clone.setCompanyId(getCompanyId());
clone.setUnitaOperativa(getUnitaOperativa());
clone.setUserId(getUserId()); clone.setUserId(getUserId());
clone.setUserName(getUserName()); clone.setUserName(getUserName());
clone.setCreateDate(getCreateDate()); clone.setCreateDate(getCreateDate());
clone.setModifiedDate(getModifiedDate()); clone.setModifiedDate(getModifiedDate());
clone.setGroupId(getGroupId()); clone.setGroupId(getGroupId());
clone.setGeologoUserId(getGeologoUserId()); clone.setGeologoUserId(getGeologoUserId());
clone.setAssegnatoreUserId(getAssegnatoreUserId());
clone.setDtAssegnazione(getDtAssegnazione());
clone.setParere(getParere()); clone.setParere(getParere());
clone.setIntPraticaId(getIntPraticaId()); clone.setIntPraticaId(getIntPraticaId());
clone.setDettPraticaId(getDettPraticaId()); clone.setDettPraticaId(getDettPraticaId());
@ -804,6 +1050,9 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
clone.setDtAnnullamento(getDtAnnullamento()); clone.setDtAnnullamento(getDtAnnullamento());
clone.setUserIdAnnullamento(getUserIdAnnullamento()); clone.setUserIdAnnullamento(getUserIdAnnullamento());
clone.setNoteAnnullamento(getNoteAnnullamento()); clone.setNoteAnnullamento(getNoteAnnullamento());
clone.setApprovatoreUserId(getApprovatoreUserId());
clone.setDtApprovazione(getDtApprovazione());
clone.setNoteApprovatore(getNoteApprovatore());
return clone; return clone;
} }
@ -855,7 +1104,7 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(41); StringBundler sb = new StringBundler(53);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -863,6 +1112,8 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
sb.append(getParereGeologoId()); sb.append(getParereGeologoId());
sb.append(", companyId="); sb.append(", companyId=");
sb.append(getCompanyId()); sb.append(getCompanyId());
sb.append(", unitaOperativa=");
sb.append(getUnitaOperativa());
sb.append(", userId="); sb.append(", userId=");
sb.append(getUserId()); sb.append(getUserId());
sb.append(", userName="); sb.append(", userName=");
@ -875,6 +1126,10 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
sb.append(getGroupId()); sb.append(getGroupId());
sb.append(", geologoUserId="); sb.append(", geologoUserId=");
sb.append(getGeologoUserId()); sb.append(getGeologoUserId());
sb.append(", assegnatoreUserId=");
sb.append(getAssegnatoreUserId());
sb.append(", dtAssegnazione=");
sb.append(getDtAssegnazione());
sb.append(", parere="); sb.append(", parere=");
sb.append(getParere()); sb.append(getParere());
sb.append(", intPraticaId="); sb.append(", intPraticaId=");
@ -897,6 +1152,12 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
sb.append(getUserIdAnnullamento()); sb.append(getUserIdAnnullamento());
sb.append(", noteAnnullamento="); sb.append(", noteAnnullamento=");
sb.append(getNoteAnnullamento()); sb.append(getNoteAnnullamento());
sb.append(", approvatoreUserId=");
sb.append(getApprovatoreUserId());
sb.append(", dtApprovazione=");
sb.append(getDtApprovazione());
sb.append(", noteApprovatore=");
sb.append(getNoteApprovatore());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -904,7 +1165,7 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(64); StringBundler sb = new StringBundler(82);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.ParereGeologo"); sb.append("it.tref.liferay.portos.bo.model.ParereGeologo");
@ -922,6 +1183,10 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
"<column><column-name>companyId</column-name><column-value><![CDATA["); "<column><column-name>companyId</column-name><column-value><![CDATA[");
sb.append(getCompanyId()); sb.append(getCompanyId());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>unitaOperativa</column-name><column-value><![CDATA[");
sb.append(getUnitaOperativa());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>userId</column-name><column-value><![CDATA["); "<column><column-name>userId</column-name><column-value><![CDATA[");
sb.append(getUserId()); sb.append(getUserId());
@ -946,6 +1211,14 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
"<column><column-name>geologoUserId</column-name><column-value><![CDATA["); "<column><column-name>geologoUserId</column-name><column-value><![CDATA[");
sb.append(getGeologoUserId()); sb.append(getGeologoUserId());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>assegnatoreUserId</column-name><column-value><![CDATA[");
sb.append(getAssegnatoreUserId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtAssegnazione</column-name><column-value><![CDATA[");
sb.append(getDtAssegnazione());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>parere</column-name><column-value><![CDATA["); "<column><column-name>parere</column-name><column-value><![CDATA[");
sb.append(getParere()); sb.append(getParere());
@ -990,6 +1263,18 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
"<column><column-name>noteAnnullamento</column-name><column-value><![CDATA["); "<column><column-name>noteAnnullamento</column-name><column-value><![CDATA[");
sb.append(getNoteAnnullamento()); sb.append(getNoteAnnullamento());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>approvatoreUserId</column-name><column-value><![CDATA[");
sb.append(getApprovatoreUserId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtApprovazione</column-name><column-value><![CDATA[");
sb.append(getDtApprovazione());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>noteApprovatore</column-name><column-value><![CDATA[");
sb.append(getNoteApprovatore());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -999,6 +1284,7 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
private String _uuid; private String _uuid;
private long _parereGeologoId; private long _parereGeologoId;
private long _companyId; private long _companyId;
private int _unitaOperativa;
private long _userId; private long _userId;
private String _userUuid; private String _userUuid;
private String _userName; private String _userName;
@ -1007,6 +1293,9 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
private long _groupId; private long _groupId;
private long _geologoUserId; private long _geologoUserId;
private String _geologoUserUuid; private String _geologoUserUuid;
private long _assegnatoreUserId;
private String _assegnatoreUserUuid;
private Date _dtAssegnazione;
private String _parere; private String _parere;
private long _intPraticaId; private long _intPraticaId;
private long _dettPraticaId; private long _dettPraticaId;
@ -1018,6 +1307,10 @@ public class ParereGeologoClp extends BaseModelImpl<ParereGeologo>
private Date _dtAnnullamento; private Date _dtAnnullamento;
private long _userIdAnnullamento; private long _userIdAnnullamento;
private String _noteAnnullamento; private String _noteAnnullamento;
private long _approvatoreUserId;
private String _approvatoreUserUuid;
private Date _dtApprovazione;
private String _noteApprovatore;
private BaseModel<?> _parereGeologoRemoteModel; private BaseModel<?> _parereGeologoRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
} }

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

@ -109,6 +109,20 @@ public interface ParereGeologoModel extends BaseModel<ParereGeologo>,
@Override @Override
public void setCompanyId(long companyId); public void setCompanyId(long companyId);
/**
* Returns the unita operativa of this parere geologo.
*
* @return the unita operativa of this parere geologo
*/
public int getUnitaOperativa();
/**
* Sets the unita operativa of this parere geologo.
*
* @param unitaOperativa the unita operativa of this parere geologo
*/
public void setUnitaOperativa(int unitaOperativa);
/** /**
* Returns the user ID of this parere geologo. * Returns the user ID of this parere geologo.
* *
@ -236,6 +250,49 @@ public interface ParereGeologoModel extends BaseModel<ParereGeologo>,
*/ */
public void setGeologoUserUuid(String geologoUserUuid); public void setGeologoUserUuid(String geologoUserUuid);
/**
* Returns the assegnatore user ID of this parere geologo.
*
* @return the assegnatore user ID of this parere geologo
*/
public long getAssegnatoreUserId();
/**
* Sets the assegnatore user ID of this parere geologo.
*
* @param assegnatoreUserId the assegnatore user ID of this parere geologo
*/
public void setAssegnatoreUserId(long assegnatoreUserId);
/**
* Returns the assegnatore user uuid of this parere geologo.
*
* @return the assegnatore user uuid of this parere geologo
* @throws SystemException if a system exception occurred
*/
public String getAssegnatoreUserUuid() throws SystemException;
/**
* Sets the assegnatore user uuid of this parere geologo.
*
* @param assegnatoreUserUuid the assegnatore user uuid of this parere geologo
*/
public void setAssegnatoreUserUuid(String assegnatoreUserUuid);
/**
* Returns the dt assegnazione of this parere geologo.
*
* @return the dt assegnazione of this parere geologo
*/
public Date getDtAssegnazione();
/**
* Sets the dt assegnazione of this parere geologo.
*
* @param dtAssegnazione the dt assegnazione of this parere geologo
*/
public void setDtAssegnazione(Date dtAssegnazione);
/** /**
* Returns the parere of this parere geologo. * Returns the parere of this parere geologo.
* *
@ -393,6 +450,64 @@ public interface ParereGeologoModel extends BaseModel<ParereGeologo>,
*/ */
public void setNoteAnnullamento(String noteAnnullamento); public void setNoteAnnullamento(String noteAnnullamento);
/**
* Returns the approvatore user ID of this parere geologo.
*
* @return the approvatore user ID of this parere geologo
*/
public long getApprovatoreUserId();
/**
* Sets the approvatore user ID of this parere geologo.
*
* @param approvatoreUserId the approvatore user ID of this parere geologo
*/
public void setApprovatoreUserId(long approvatoreUserId);
/**
* Returns the approvatore user uuid of this parere geologo.
*
* @return the approvatore user uuid of this parere geologo
* @throws SystemException if a system exception occurred
*/
public String getApprovatoreUserUuid() throws SystemException;
/**
* Sets the approvatore user uuid of this parere geologo.
*
* @param approvatoreUserUuid the approvatore user uuid of this parere geologo
*/
public void setApprovatoreUserUuid(String approvatoreUserUuid);
/**
* Returns the dt approvazione of this parere geologo.
*
* @return the dt approvazione of this parere geologo
*/
public Date getDtApprovazione();
/**
* Sets the dt approvazione of this parere geologo.
*
* @param dtApprovazione the dt approvazione of this parere geologo
*/
public void setDtApprovazione(Date dtApprovazione);
/**
* Returns the note approvatore of this parere geologo.
*
* @return the note approvatore of this parere geologo
*/
@AutoEscape
public String getNoteApprovatore();
/**
* Sets the note approvatore of this parere geologo.
*
* @param noteApprovatore the note approvatore of this parere geologo
*/
public void setNoteApprovatore(String noteApprovatore);
@Override @Override
public boolean isNew(); public boolean isNew();

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

@ -34,12 +34,15 @@ public class ParereGeologoSoap implements Serializable {
soapModel.setUuid(model.getUuid()); soapModel.setUuid(model.getUuid());
soapModel.setParereGeologoId(model.getParereGeologoId()); soapModel.setParereGeologoId(model.getParereGeologoId());
soapModel.setCompanyId(model.getCompanyId()); soapModel.setCompanyId(model.getCompanyId());
soapModel.setUnitaOperativa(model.getUnitaOperativa());
soapModel.setUserId(model.getUserId()); soapModel.setUserId(model.getUserId());
soapModel.setUserName(model.getUserName()); soapModel.setUserName(model.getUserName());
soapModel.setCreateDate(model.getCreateDate()); soapModel.setCreateDate(model.getCreateDate());
soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setModifiedDate(model.getModifiedDate());
soapModel.setGroupId(model.getGroupId()); soapModel.setGroupId(model.getGroupId());
soapModel.setGeologoUserId(model.getGeologoUserId()); soapModel.setGeologoUserId(model.getGeologoUserId());
soapModel.setAssegnatoreUserId(model.getAssegnatoreUserId());
soapModel.setDtAssegnazione(model.getDtAssegnazione());
soapModel.setParere(model.getParere()); soapModel.setParere(model.getParere());
soapModel.setIntPraticaId(model.getIntPraticaId()); soapModel.setIntPraticaId(model.getIntPraticaId());
soapModel.setDettPraticaId(model.getDettPraticaId()); soapModel.setDettPraticaId(model.getDettPraticaId());
@ -51,6 +54,9 @@ public class ParereGeologoSoap implements Serializable {
soapModel.setDtAnnullamento(model.getDtAnnullamento()); soapModel.setDtAnnullamento(model.getDtAnnullamento());
soapModel.setUserIdAnnullamento(model.getUserIdAnnullamento()); soapModel.setUserIdAnnullamento(model.getUserIdAnnullamento());
soapModel.setNoteAnnullamento(model.getNoteAnnullamento()); soapModel.setNoteAnnullamento(model.getNoteAnnullamento());
soapModel.setApprovatoreUserId(model.getApprovatoreUserId());
soapModel.setDtApprovazione(model.getDtApprovazione());
soapModel.setNoteApprovatore(model.getNoteApprovatore());
return soapModel; return soapModel;
} }
@ -127,6 +133,14 @@ public class ParereGeologoSoap implements Serializable {
_companyId = companyId; _companyId = companyId;
} }
public int getUnitaOperativa() {
return _unitaOperativa;
}
public void setUnitaOperativa(int unitaOperativa) {
_unitaOperativa = unitaOperativa;
}
public long getUserId() { public long getUserId() {
return _userId; return _userId;
} }
@ -175,6 +189,22 @@ public class ParereGeologoSoap implements Serializable {
_geologoUserId = geologoUserId; _geologoUserId = geologoUserId;
} }
public long getAssegnatoreUserId() {
return _assegnatoreUserId;
}
public void setAssegnatoreUserId(long assegnatoreUserId) {
_assegnatoreUserId = assegnatoreUserId;
}
public Date getDtAssegnazione() {
return _dtAssegnazione;
}
public void setDtAssegnazione(Date dtAssegnazione) {
_dtAssegnazione = dtAssegnazione;
}
public String getParere() { public String getParere() {
return _parere; return _parere;
} }
@ -263,15 +293,42 @@ public class ParereGeologoSoap implements Serializable {
_noteAnnullamento = noteAnnullamento; _noteAnnullamento = noteAnnullamento;
} }
public long getApprovatoreUserId() {
return _approvatoreUserId;
}
public void setApprovatoreUserId(long approvatoreUserId) {
_approvatoreUserId = approvatoreUserId;
}
public Date getDtApprovazione() {
return _dtApprovazione;
}
public void setDtApprovazione(Date dtApprovazione) {
_dtApprovazione = dtApprovazione;
}
public String getNoteApprovatore() {
return _noteApprovatore;
}
public void setNoteApprovatore(String noteApprovatore) {
_noteApprovatore = noteApprovatore;
}
private String _uuid; private String _uuid;
private long _parereGeologoId; private long _parereGeologoId;
private long _companyId; private long _companyId;
private int _unitaOperativa;
private long _userId; private long _userId;
private String _userName; private String _userName;
private Date _createDate; private Date _createDate;
private Date _modifiedDate; private Date _modifiedDate;
private long _groupId; private long _groupId;
private long _geologoUserId; private long _geologoUserId;
private long _assegnatoreUserId;
private Date _dtAssegnazione;
private String _parere; private String _parere;
private long _intPraticaId; private long _intPraticaId;
private long _dettPraticaId; private long _dettPraticaId;
@ -283,4 +340,7 @@ public class ParereGeologoSoap implements Serializable {
private Date _dtAnnullamento; private Date _dtAnnullamento;
private long _userIdAnnullamento; private long _userIdAnnullamento;
private String _noteAnnullamento; private String _noteAnnullamento;
private long _approvatoreUserId;
private Date _dtApprovazione;
private String _noteApprovatore;
} }

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

@ -54,12 +54,15 @@ public class ParereGeologoWrapper implements ParereGeologo,
attributes.put("uuid", getUuid()); attributes.put("uuid", getUuid());
attributes.put("parereGeologoId", getParereGeologoId()); attributes.put("parereGeologoId", getParereGeologoId());
attributes.put("companyId", getCompanyId()); attributes.put("companyId", getCompanyId());
attributes.put("unitaOperativa", getUnitaOperativa());
attributes.put("userId", getUserId()); attributes.put("userId", getUserId());
attributes.put("userName", getUserName()); attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate()); attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate()); attributes.put("modifiedDate", getModifiedDate());
attributes.put("groupId", getGroupId()); attributes.put("groupId", getGroupId());
attributes.put("geologoUserId", getGeologoUserId()); attributes.put("geologoUserId", getGeologoUserId());
attributes.put("assegnatoreUserId", getAssegnatoreUserId());
attributes.put("dtAssegnazione", getDtAssegnazione());
attributes.put("parere", getParere()); attributes.put("parere", getParere());
attributes.put("intPraticaId", getIntPraticaId()); attributes.put("intPraticaId", getIntPraticaId());
attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("dettPraticaId", getDettPraticaId());
@ -71,6 +74,9 @@ public class ParereGeologoWrapper implements ParereGeologo,
attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento());
attributes.put("noteAnnullamento", getNoteAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento());
attributes.put("approvatoreUserId", getApprovatoreUserId());
attributes.put("dtApprovazione", getDtApprovazione());
attributes.put("noteApprovatore", getNoteApprovatore());
return attributes; return attributes;
} }
@ -95,6 +101,12 @@ public class ParereGeologoWrapper implements ParereGeologo,
setCompanyId(companyId); setCompanyId(companyId);
} }
Integer unitaOperativa = (Integer)attributes.get("unitaOperativa");
if (unitaOperativa != null) {
setUnitaOperativa(unitaOperativa);
}
Long userId = (Long)attributes.get("userId"); Long userId = (Long)attributes.get("userId");
if (userId != null) { if (userId != null) {
@ -131,6 +143,18 @@ public class ParereGeologoWrapper implements ParereGeologo,
setGeologoUserId(geologoUserId); setGeologoUserId(geologoUserId);
} }
Long assegnatoreUserId = (Long)attributes.get("assegnatoreUserId");
if (assegnatoreUserId != null) {
setAssegnatoreUserId(assegnatoreUserId);
}
Date dtAssegnazione = (Date)attributes.get("dtAssegnazione");
if (dtAssegnazione != null) {
setDtAssegnazione(dtAssegnazione);
}
String parere = (String)attributes.get("parere"); String parere = (String)attributes.get("parere");
if (parere != null) { if (parere != null) {
@ -196,6 +220,24 @@ public class ParereGeologoWrapper implements ParereGeologo,
if (noteAnnullamento != null) { if (noteAnnullamento != null) {
setNoteAnnullamento(noteAnnullamento); setNoteAnnullamento(noteAnnullamento);
} }
Long approvatoreUserId = (Long)attributes.get("approvatoreUserId");
if (approvatoreUserId != null) {
setApprovatoreUserId(approvatoreUserId);
}
Date dtApprovazione = (Date)attributes.get("dtApprovazione");
if (dtApprovazione != null) {
setDtApprovazione(dtApprovazione);
}
String noteApprovatore = (String)attributes.get("noteApprovatore");
if (noteApprovatore != null) {
setNoteApprovatore(noteApprovatore);
}
} }
/** /**
@ -278,6 +320,26 @@ public class ParereGeologoWrapper implements ParereGeologo,
_parereGeologo.setCompanyId(companyId); _parereGeologo.setCompanyId(companyId);
} }
/**
* Returns the unita operativa of this parere geologo.
*
* @return the unita operativa of this parere geologo
*/
@Override
public int getUnitaOperativa() {
return _parereGeologo.getUnitaOperativa();
}
/**
* Sets the unita operativa of this parere geologo.
*
* @param unitaOperativa the unita operativa of this parere geologo
*/
@Override
public void setUnitaOperativa(int unitaOperativa) {
_parereGeologo.setUnitaOperativa(unitaOperativa);
}
/** /**
* Returns the user ID of this parere geologo. * Returns the user ID of this parere geologo.
* *
@ -442,6 +504,68 @@ public class ParereGeologoWrapper implements ParereGeologo,
_parereGeologo.setGeologoUserUuid(geologoUserUuid); _parereGeologo.setGeologoUserUuid(geologoUserUuid);
} }
/**
* Returns the assegnatore user ID of this parere geologo.
*
* @return the assegnatore user ID of this parere geologo
*/
@Override
public long getAssegnatoreUserId() {
return _parereGeologo.getAssegnatoreUserId();
}
/**
* Sets the assegnatore user ID of this parere geologo.
*
* @param assegnatoreUserId the assegnatore user ID of this parere geologo
*/
@Override
public void setAssegnatoreUserId(long assegnatoreUserId) {
_parereGeologo.setAssegnatoreUserId(assegnatoreUserId);
}
/**
* Returns the assegnatore user uuid of this parere geologo.
*
* @return the assegnatore user uuid of this parere geologo
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getAssegnatoreUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologo.getAssegnatoreUserUuid();
}
/**
* Sets the assegnatore user uuid of this parere geologo.
*
* @param assegnatoreUserUuid the assegnatore user uuid of this parere geologo
*/
@Override
public void setAssegnatoreUserUuid(java.lang.String assegnatoreUserUuid) {
_parereGeologo.setAssegnatoreUserUuid(assegnatoreUserUuid);
}
/**
* Returns the dt assegnazione of this parere geologo.
*
* @return the dt assegnazione of this parere geologo
*/
@Override
public java.util.Date getDtAssegnazione() {
return _parereGeologo.getDtAssegnazione();
}
/**
* Sets the dt assegnazione of this parere geologo.
*
* @param dtAssegnazione the dt assegnazione of this parere geologo
*/
@Override
public void setDtAssegnazione(java.util.Date dtAssegnazione) {
_parereGeologo.setDtAssegnazione(dtAssegnazione);
}
/** /**
* Returns the parere of this parere geologo. * Returns the parere of this parere geologo.
* *
@ -662,6 +786,88 @@ public class ParereGeologoWrapper implements ParereGeologo,
_parereGeologo.setNoteAnnullamento(noteAnnullamento); _parereGeologo.setNoteAnnullamento(noteAnnullamento);
} }
/**
* Returns the approvatore user ID of this parere geologo.
*
* @return the approvatore user ID of this parere geologo
*/
@Override
public long getApprovatoreUserId() {
return _parereGeologo.getApprovatoreUserId();
}
/**
* Sets the approvatore user ID of this parere geologo.
*
* @param approvatoreUserId the approvatore user ID of this parere geologo
*/
@Override
public void setApprovatoreUserId(long approvatoreUserId) {
_parereGeologo.setApprovatoreUserId(approvatoreUserId);
}
/**
* Returns the approvatore user uuid of this parere geologo.
*
* @return the approvatore user uuid of this parere geologo
* @throws SystemException if a system exception occurred
*/
@Override
public java.lang.String getApprovatoreUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologo.getApprovatoreUserUuid();
}
/**
* Sets the approvatore user uuid of this parere geologo.
*
* @param approvatoreUserUuid the approvatore user uuid of this parere geologo
*/
@Override
public void setApprovatoreUserUuid(java.lang.String approvatoreUserUuid) {
_parereGeologo.setApprovatoreUserUuid(approvatoreUserUuid);
}
/**
* Returns the dt approvazione of this parere geologo.
*
* @return the dt approvazione of this parere geologo
*/
@Override
public java.util.Date getDtApprovazione() {
return _parereGeologo.getDtApprovazione();
}
/**
* Sets the dt approvazione of this parere geologo.
*
* @param dtApprovazione the dt approvazione of this parere geologo
*/
@Override
public void setDtApprovazione(java.util.Date dtApprovazione) {
_parereGeologo.setDtApprovazione(dtApprovazione);
}
/**
* Returns the note approvatore of this parere geologo.
*
* @return the note approvatore of this parere geologo
*/
@Override
public java.lang.String getNoteApprovatore() {
return _parereGeologo.getNoteApprovatore();
}
/**
* Sets the note approvatore of this parere geologo.
*
* @param noteApprovatore the note approvatore of this parere geologo
*/
@Override
public void setNoteApprovatore(java.lang.String noteApprovatore) {
_parereGeologo.setNoteApprovatore(noteApprovatore);
}
@Override @Override
public boolean isNew() { public boolean isNew() {
return _parereGeologo.isNew(); return _parereGeologo.isNew();
@ -767,6 +973,19 @@ public class ParereGeologoWrapper implements ParereGeologo,
_parereGeologo.persist(); _parereGeologo.persist();
} }
@Override
public java.util.Set<com.liferay.portal.model.User> getIstruttori()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _parereGeologo.getIstruttori();
}
@Override
public void invioNotifica(
com.liferay.portal.service.ServiceContext serviceContext) {
_parereGeologo.invioNotifica(serviceContext);
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {

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

@ -311,7 +311,7 @@ public interface ParereGeologoLocalService extends BaseLocalService,
throws java.lang.Throwable; throws java.lang.Throwable;
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -342,6 +342,20 @@ public interface ParereGeologoLocalService extends BaseLocalService,
public int countByIntPraticaInCorso(long intPraticaId) public int countByIntPraticaInCorso(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaApprovare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
public int countByUserDaApprovare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaAssegnare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
public int countByUserDaAssegnare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException;
public int countByGeologoIdInCorso(long geologoUserId) public int countByGeologoIdInCorso(long geologoUserId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;

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

@ -134,7 +134,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
_methodName23 = "addParereGeologo"; _methodName23 = "addParereGeologo";
_methodParameterTypes23 = new String[] { _methodParameterTypes23 = new String[] {
"long", "long", "long", "java.lang.String", "int", "long", "long", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -167,29 +167,49 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
_methodParameterTypes29 = new String[] { "long" }; _methodParameterTypes29 = new String[] { "long" };
_methodName30 = "countByGeologoIdInCorso"; _methodName30 = "findByUserDaApprovare";
_methodParameterTypes30 = new String[] { "long" }; _methodParameterTypes30 = new String[] {
"com.liferay.portal.model.User", "int", "int"
};
_methodName31 = "findByGeologoIdInCorso"; _methodName31 = "countByUserDaApprovare";
_methodParameterTypes31 = new String[] { "long", "int", "int" }; _methodParameterTypes31 = new String[] { "com.liferay.portal.model.User" };
_methodName32 = "findByCompanyIdGroupId"; _methodName32 = "findByUserDaAssegnare";
_methodParameterTypes32 = new String[] { "long", "long" }; _methodParameterTypes32 = new String[] {
"com.liferay.portal.model.User", "int", "int"
};
_methodName33 = "findWithParereByGeologoId"; _methodName33 = "countByUserDaAssegnare";
_methodParameterTypes33 = new String[] { "long", "int", "int" }; _methodParameterTypes33 = new String[] { "com.liferay.portal.model.User" };
_methodName34 = "countFindWithParereByGeologoId"; _methodName34 = "countByGeologoIdInCorso";
_methodParameterTypes34 = new String[] { "long" }; _methodParameterTypes34 = new String[] { "long" };
_methodName35 = "getCarichiLavoro"; _methodName35 = "findByGeologoIdInCorso";
_methodParameterTypes35 = new String[] { "long", "int", "int" };
_methodName36 = "findByCompanyIdGroupId";
_methodParameterTypes36 = new String[] { "long", "long" };
_methodName37 = "findWithParereByGeologoId";
_methodParameterTypes37 = new String[] { "long", "int", "int" };
_methodName38 = "countFindWithParereByGeologoId";
_methodParameterTypes38 = new String[] { "long" };
_methodParameterTypes35 = new String[] { "long", "int" }; _methodName39 = "getCarichiLavoro";
_methodParameterTypes39 = new String[] { "long", "int" };
} }
@Override @Override
@ -874,7 +894,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
@Override @Override
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -885,7 +905,9 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
returnObj = _invokableLocalService.invokeMethod(_methodName23, returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes23, _methodParameterTypes23,
new Object[] { new Object[] {
geologoUserId, unitaOperativa,
userId,
intPraticaId, intPraticaId,
@ -1113,13 +1135,131 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
} }
@Override @Override
public int countByGeologoIdInCorso(long geologoUserId) public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaApprovare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName30, returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30, new Object[] { geologoUserId }); _methodParameterTypes30,
new Object[] { ClpSerializer.translateInput(user), 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.tref.liferay.portos.bo.model.ParereGeologo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int countByUserDaApprovare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
new Object[] { ClpSerializer.translateInput(user) });
}
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 java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaAssegnare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] { ClpSerializer.translateInput(user), 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.tref.liferay.portos.bo.model.ParereGeologo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int countByUserDaAssegnare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
new Object[] { ClpSerializer.translateInput(user) });
}
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 int countByGeologoIdInCorso(long geologoUserId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34, new Object[] { geologoUserId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1147,8 +1287,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName31, returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes31, _methodParameterTypes35,
new Object[] { geologoUserId, start, end }); new Object[] { geologoUserId, start, end });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1177,8 +1317,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName32, returnObj = _invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes32, new Object[] { companyId, groupId }); _methodParameterTypes36, new Object[] { companyId, groupId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1206,8 +1346,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName33, returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes33, _methodParameterTypes37,
new Object[] { geologoUserId, start, end }); new Object[] { geologoUserId, start, end });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1235,8 +1375,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName34, returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes34, new Object[] { geologoUserId }); _methodParameterTypes38, new Object[] { geologoUserId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1265,8 +1405,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName35, returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes35, _methodParameterTypes39,
new Object[] { controlloPraticaId, giorni }); new Object[] { controlloPraticaId, giorni });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1363,4 +1503,12 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService {
private String[] _methodParameterTypes34; private String[] _methodParameterTypes34;
private String _methodName35; private String _methodName35;
private String[] _methodParameterTypes35; private String[] _methodParameterTypes35;
private String _methodName36;
private String[] _methodParameterTypes36;
private String _methodName37;
private String[] _methodParameterTypes37;
private String _methodName38;
private String[] _methodParameterTypes38;
private String _methodName39;
private String[] _methodParameterTypes39;
} }

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

@ -336,13 +336,13 @@ public class ParereGeologoLocalServiceUtil {
} }
public static it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public static it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.addParereGeologo(geologoUserId, intPraticaId, .addParereGeologo(unitaOperativa, userId, intPraticaId,
dettPraticaId, noteRichiedente, serviceContext); dettPraticaId, noteRichiedente, serviceContext);
} }
@ -385,6 +385,28 @@ public class ParereGeologoLocalServiceUtil {
return getService().countByIntPraticaInCorso(intPraticaId); return getService().countByIntPraticaInCorso(intPraticaId);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaApprovare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByUserDaApprovare(user, start, end);
}
public static int countByUserDaApprovare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByUserDaApprovare(user);
}
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaAssegnare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByUserDaAssegnare(user, start, end);
}
public static int countByUserDaAssegnare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByUserDaAssegnare(user);
}
public static int countByGeologoIdInCorso(long geologoUserId) public static int countByGeologoIdInCorso(long geologoUserId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByGeologoIdInCorso(geologoUserId); return getService().countByGeologoIdInCorso(geologoUserId);

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

@ -358,13 +358,13 @@ public class ParereGeologoLocalServiceWrapper
@Override @Override
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoLocalService.addParereGeologo(geologoUserId, return _parereGeologoLocalService.addParereGeologo(unitaOperativa,
intPraticaId, dettPraticaId, noteRichiedente, serviceContext); userId, intPraticaId, dettPraticaId, noteRichiedente, serviceContext);
} }
@Override @Override
@ -413,6 +413,32 @@ public class ParereGeologoLocalServiceWrapper
return _parereGeologoLocalService.countByIntPraticaInCorso(intPraticaId); return _parereGeologoLocalService.countByIntPraticaInCorso(intPraticaId);
} }
@Override
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaApprovare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoLocalService.findByUserDaApprovare(user, start, end);
}
@Override
public int countByUserDaApprovare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoLocalService.countByUserDaApprovare(user);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByUserDaAssegnare(
com.liferay.portal.model.User user, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoLocalService.findByUserDaAssegnare(user, start, end);
}
@Override
public int countByUserDaAssegnare(com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoLocalService.countByUserDaAssegnare(user);
}
@Override @Override
public int countByGeologoIdInCorso(long geologoUserId) public int countByGeologoIdInCorso(long geologoUserId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {

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

@ -65,7 +65,7 @@ public interface ParereGeologoService extends BaseService, InvokableService {
throws java.lang.Throwable; throws java.lang.Throwable;
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

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

@ -35,7 +35,7 @@ public class ParereGeologoServiceClp implements ParereGeologoService {
_methodName3 = "addParereGeologo"; _methodName3 = "addParereGeologo";
_methodParameterTypes3 = new String[] { _methodParameterTypes3 = new String[] {
"long", "long", "long", "java.lang.String", "int", "long", "long", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -113,7 +113,7 @@ public class ParereGeologoServiceClp implements ParereGeologoService {
@Override @Override
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -124,7 +124,9 @@ public class ParereGeologoServiceClp implements ParereGeologoService {
returnObj = _invokableService.invokeMethod(_methodName3, returnObj = _invokableService.invokeMethod(_methodName3,
_methodParameterTypes3, _methodParameterTypes3,
new Object[] { new Object[] {
geologoUserId, unitaOperativa,
userId,
intPraticaId, intPraticaId,

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

@ -64,13 +64,13 @@ public class ParereGeologoServiceUtil {
} }
public static it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public static it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.addParereGeologo(geologoUserId, intPraticaId, .addParereGeologo(unitaOperativa, userId, intPraticaId,
dettPraticaId, noteRichiedente, serviceContext); dettPraticaId, noteRichiedente, serviceContext);
} }

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

@ -60,12 +60,12 @@ public class ParereGeologoServiceWrapper implements ParereGeologoService,
@Override @Override
public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo( public it.tref.liferay.portos.bo.model.ParereGeologo addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _parereGeologoService.addParereGeologo(geologoUserId, return _parereGeologoService.addParereGeologo(unitaOperativa, userId,
intPraticaId, dettPraticaId, noteRichiedente, serviceContext); intPraticaId, dettPraticaId, noteRichiedente, serviceContext);
} }

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

@ -1012,6 +1012,606 @@ public interface ParereGeologoPersistence extends BasePersistence<ParereGeologo>
public int countByC_GroupId(long companyId, long groupId) public int countByC_GroupId(long companyId, long groupId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param parereGeologoId the primary key of the current parere geologo
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_PrevAndNext(
long parereGeologoId, long groupId, int unitaOperativa,
long geologoUserId, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63; from the database.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @throws SystemException if a system exception occurred
*/
public void removeByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public int countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public int countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param parereGeologoId the primary key of the current parere geologo
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_PrevAndNext(
long parereGeologoId, long groupId, int unitaOperativa,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException;
/**
* Returns all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63; from the database.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @throws SystemException if a system exception occurred
*/
public void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException;
/** /**
* Caches the parere geologo in the entity cache if it is enabled. * Caches the parere geologo in the entity cache if it is enabled.
* *

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

@ -1280,6 +1280,746 @@ public class ParereGeologoUtil {
return getPersistence().countByC_GroupId(companyId, groupId); return getPersistence().countByC_GroupId(companyId, groupId);
} }
/**
* Returns all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento);
}
/**
* Returns a range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, start, end);
}
/**
* Returns an ordered range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, start, end, orderByComparator);
}
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, orderByComparator);
}
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_First(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, orderByComparator);
}
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, orderByComparator);
}
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_Last(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento, orderByComparator);
}
/**
* Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param parereGeologoId the primary key of the current parere geologo
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_PrevAndNext(
long parereGeologoId, long groupId, int unitaOperativa,
long geologoUserId, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento_PrevAndNext(parereGeologoId,
groupId, unitaOperativa, geologoUserId, assegnatoreUserId,
dtCompilazione, dtAnnullamento, orderByComparator);
}
/**
* Returns all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupIds,
unitaOperativas, geologoUserId, assegnatoreUserIds, dtCompilazione,
dtAnnullamento);
}
/**
* Returns a range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupIds,
unitaOperativas, geologoUserId, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, start, end);
}
/**
* Returns an ordered range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupIds,
unitaOperativas, geologoUserId, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, start, end, orderByComparator);
}
/**
* Removes all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63; from the database.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @throws SystemException if a system exception occurred
*/
public static void removeByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException {
getPersistence()
.removeByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento);
}
/**
* Returns the number of parere geologos where groupId = &#63; and unitaOperativa = &#63; and geologoUserId = &#63; and assegnatoreUserId = &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param geologoUserId the geologo user ID
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long groupId, int unitaOperativa, long geologoUserId,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupId,
unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione,
dtAnnullamento);
}
/**
* Returns the number of parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and geologoUserId = &#63; and assegnatoreUserId = any &#63; and dtCompilazione = &#63; and dtAnnullamento = &#63;.
*
* @param groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param geologoUserId the geologo user ID
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
long[] groupIds, int[] unitaOperativas, long geologoUserId,
long[] assegnatoreUserIds, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(groupIds,
unitaOperativas, geologoUserId, assegnatoreUserIds, dtCompilazione,
dtAnnullamento);
}
/**
* Returns all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione);
}
/**
* Returns a range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, start, end);
}
/**
* Returns an ordered range of all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, start, end, orderByComparator);
}
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, orderByComparator);
}
/**
* Returns the first parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_First(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, orderByComparator);
}
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, orderByComparator);
}
/**
* Returns the last parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching parere geologo, or <code>null</code> if a matching parere geologo could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_Last(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione, orderByComparator);
}
/**
* Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param parereGeologoId the primary key of the current parere geologo
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next parere geologo
* @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_PrevAndNext(
long parereGeologoId, long groupId, int unitaOperativa,
long assegnatoreUserId, java.util.Date dtCompilazione,
java.util.Date dtAnnullamento, java.util.Date dtApprovazione,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchParereGeologoException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione_PrevAndNext(parereGeologoId,
groupId, unitaOperativa, assegnatoreUserId, dtCompilazione,
dtAnnullamento, dtApprovazione, orderByComparator);
}
/**
* Returns all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds,
unitaOperativas, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, dtApprovazione);
}
/**
* Returns a range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @return the range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds,
unitaOperativas, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, dtApprovazione, start, end);
}
/**
* Returns an ordered range of all the parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* <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.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. 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 groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @param start the lower bound of the range of parere geologos
* @param end the upper bound of the range of parere geologos (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.bo.model.ParereGeologo> findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds,
unitaOperativas, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, dtApprovazione, start, end, orderByComparator);
}
/**
* Removes all the parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63; from the database.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @throws SystemException if a system exception occurred
*/
public static void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException {
getPersistence()
.removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione);
}
/**
* Returns the number of parere geologos where groupId = &#63; and unitaOperativa = &#63; and assegnatoreUserId = &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupId the group ID
* @param unitaOperativa the unita operativa
* @param assegnatoreUserId the assegnatore user ID
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long groupId, int unitaOperativa, long assegnatoreUserId,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId,
unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento,
dtApprovazione);
}
/**
* Returns the number of parere geologos where groupId = any &#63; and unitaOperativa = any &#63; and assegnatoreUserId = any &#63; and dtCompilazione &ne; &#63; and dtAnnullamento &ne; &#63; and dtApprovazione = &#63;.
*
* @param groupIds the group IDs
* @param unitaOperativas the unita operativas
* @param assegnatoreUserIds the assegnatore user IDs
* @param dtCompilazione the dt compilazione
* @param dtAnnullamento the dt annullamento
* @param dtApprovazione the dt approvazione
* @return the number of matching parere geologos
* @throws SystemException if a system exception occurred
*/
public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds,
java.util.Date dtCompilazione, java.util.Date dtAnnullamento,
java.util.Date dtApprovazione)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds,
unitaOperativas, assegnatoreUserIds, dtCompilazione,
dtAnnullamento, dtApprovazione);
}
/** /**
* Caches the parere geologo in the entity cache if it is enabled. * Caches the parere geologo in the entity cache if it is enabled.
* *

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

@ -157,7 +157,13 @@ IX_8815F580=portos_bo_Pagamento.Uuid
IX_C25B9EA8=portos_bo_Pagamento.Uuid_C IX_C25B9EA8=portos_bo_Pagamento.Uuid_C
IX_2E6B85CA=portos_bo_ParereGeo.C_GroupId IX_2E6B85CA=portos_bo_ParereGeo.C_GroupId
IX_81AC7104=portos_bo_ParereGeo.G_GroupId_GeologoUserId_DtCompilazione_DtAnnullamento
IX_5D9EAD5E=portos_bo_ParereGeo.GeologoUserId_DtCompilazione_DtAnnullamento IX_5D9EAD5E=portos_bo_ParereGeo.GeologoUserId_DtCompilazione_DtAnnullamento
IX_81AC7104=portos_bo_ParereGeo.GroupId_GeologoUserId_DtCompilazione_DtAnnullamento
IX_B4CF0B7E=portos_bo_ParereGeo.Group_Geologo_Assegnatore_DtCompilazione_DtAnnullamento
IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_DtCompilazione_DtAnnullamento_DtApprovazione
IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione
IX_3A6B6848=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento
IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId
IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento
IX_635441BE=portos_bo_ParereGeo.UUID_G IX_635441BE=portos_bo_ParereGeo.UUID_G

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

@ -154,6 +154,10 @@ create unique index IX_D00BAF2A on portos_bo_Pagamento (uuid_, groupId);
create index IX_2E6B85CA on portos_bo_ParereGeo (companyId, groupId); create index IX_2E6B85CA on portos_bo_ParereGeo (companyId, groupId);
create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, dtAnnullamento); create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, dtAnnullamento);
create index IX_B4CF0B7E on portos_bo_ParereGeo (groupId, geologoUserId, assegnatoreUserId, dtCompilazione, dtAnnullamento);
create index IX_81AC7104 on portos_bo_ParereGeo (groupId, geologoUserId, dtCompilazione, dtAnnullamento);
create index IX_94C87F94 on portos_bo_ParereGeo (groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento, dtApprovazione);
create index IX_3A6B6848 on portos_bo_ParereGeo (groupId, unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione, dtAnnullamento);
create index IX_EFB6D6FA on portos_bo_ParereGeo (intPraticaId); create index IX_EFB6D6FA on portos_bo_ParereGeo (intPraticaId);
create index IX_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento); create index IX_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento);
create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_24A66C6C on portos_bo_ParereGeo (uuid_);

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

@ -573,12 +573,15 @@ create table portos_bo_ParereGeo (
uuid_ VARCHAR(75) null, uuid_ VARCHAR(75) null,
parereGeologoId LONG not null primary key, parereGeologoId LONG not null primary key,
companyId LONG, companyId LONG,
unitaOperativa INTEGER,
userId LONG, userId LONG,
userName VARCHAR(75) null, userName VARCHAR(75) null,
createDate DATE null, createDate DATE null,
modifiedDate DATE null, modifiedDate DATE null,
groupId LONG, groupId LONG,
geologoUserId LONG, geologoUserId LONG,
assegnatoreUserId LONG,
dtAssegnazione DATE null,
parere STRING null, parere STRING null,
intPraticaId LONG, intPraticaId LONG,
dettPraticaId LONG, dettPraticaId LONG,
@ -589,7 +592,10 @@ create table portos_bo_ParereGeo (
noteRichiedente STRING null, noteRichiedente STRING null,
dtAnnullamento DATE null, dtAnnullamento DATE null,
userIdAnnullamento LONG, userIdAnnullamento LONG,
noteAnnullamento STRING null noteAnnullamento STRING null,
approvatoreUserId LONG,
dtApprovazione DATE null,
noteApprovatore STRING null
); );
create table portos_bo_Provincia ( create table portos_bo_Provincia (

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

@ -632,12 +632,15 @@
</id> </id>
<property name="uuid" type="com.liferay.portal.dao.orm.hibernate.StringType" column="uuid_" /> <property name="uuid" type="com.liferay.portal.dao.orm.hibernate.StringType" column="uuid_" />
<property name="companyId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="companyId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="unitaOperativa" type="com.liferay.portal.dao.orm.hibernate.IntegerType" />
<property name="userId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="userId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="userName" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="userName" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="createDate" type="org.hibernate.type.TimestampType" /> <property name="createDate" type="org.hibernate.type.TimestampType" />
<property name="modifiedDate" type="org.hibernate.type.TimestampType" /> <property name="modifiedDate" type="org.hibernate.type.TimestampType" />
<property name="groupId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="groupId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="geologoUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="geologoUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="assegnatoreUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="dtAssegnazione" type="org.hibernate.type.TimestampType" />
<property name="parere" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="parere" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="intPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="intPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="dettPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="dettPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
@ -649,6 +652,9 @@
<property name="dtAnnullamento" type="org.hibernate.type.TimestampType" /> <property name="dtAnnullamento" type="org.hibernate.type.TimestampType" />
<property name="userIdAnnullamento" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="userIdAnnullamento" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="noteAnnullamento" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="noteAnnullamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="approvatoreUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="dtApprovazione" type="org.hibernate.type.TimestampType" />
<property name="noteApprovatore" type="com.liferay.portal.dao.orm.hibernate.StringType" />
</class> </class>
<class name="it.tref.liferay.portos.bo.model.impl.ProvinciaImpl" table="portos_bo_Provincia"> <class name="it.tref.liferay.portos.bo.model.impl.ProvinciaImpl" table="portos_bo_Provincia">
<cache usage="read-write" /> <cache usage="read-write" />

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

@ -678,12 +678,15 @@
<field name="uuid" type="String" /> <field name="uuid" type="String" />
<field name="parereGeologoId" type="long" /> <field name="parereGeologoId" type="long" />
<field name="companyId" type="long" /> <field name="companyId" type="long" />
<field name="unitaOperativa" type="int" />
<field name="userId" type="long" /> <field name="userId" type="long" />
<field name="userName" type="String" /> <field name="userName" type="String" />
<field name="createDate" type="Date" /> <field name="createDate" type="Date" />
<field name="modifiedDate" type="Date" /> <field name="modifiedDate" type="Date" />
<field name="groupId" type="long" /> <field name="groupId" type="long" />
<field name="geologoUserId" type="long" /> <field name="geologoUserId" type="long" />
<field name="assegnatoreUserId" type="long" />
<field name="dtAssegnazione" type="Date" />
<field name="parere" type="String"> <field name="parere" type="String">
<hint name="max-length">4000</hint> <hint name="max-length">4000</hint>
</field> </field>
@ -701,6 +704,11 @@
<field name="noteAnnullamento" type="String"> <field name="noteAnnullamento" type="String">
<hint name="max-length">4000</hint> <hint name="max-length">4000</hint>
</field> </field>
<field name="approvatoreUserId" type="long" />
<field name="dtApprovazione" type="Date" />
<field name="noteApprovatore" type="String">
<hint name="max-length">4000</hint>
</field>
</model> </model>
<model name="it.tref.liferay.portos.bo.model.Provincia"> <model name="it.tref.liferay.portos.bo.model.Provincia">
<field name="provinciaId" type="long" /> <field name="provinciaId" type="long" />

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

@ -816,6 +816,7 @@
<column name="UUID_" /> <column name="UUID_" />
</basic> </basic>
<basic name="companyId" /> <basic name="companyId" />
<basic name="unitaOperativa" />
<basic name="userId" /> <basic name="userId" />
<basic name="userName" /> <basic name="userName" />
<basic name="createDate"> <basic name="createDate">
@ -826,6 +827,10 @@
</basic> </basic>
<basic name="groupId" /> <basic name="groupId" />
<basic name="geologoUserId" /> <basic name="geologoUserId" />
<basic name="assegnatoreUserId" />
<basic name="dtAssegnazione">
<temporal>TIMESTAMP</temporal>
</basic>
<basic name="parere" /> <basic name="parere" />
<basic name="intPraticaId" /> <basic name="intPraticaId" />
<basic name="dettPraticaId" /> <basic name="dettPraticaId" />
@ -843,6 +848,13 @@
</basic> </basic>
<basic name="userIdAnnullamento" /> <basic name="userIdAnnullamento" />
<basic name="noteAnnullamento" /> <basic name="noteAnnullamento" />
<basic name="approvatoreUserId" />
<basic name="dtApprovazione">
<temporal>TIMESTAMP</temporal>
</basic>
<basic name="noteApprovatore" />
<transient name="approvatoreUserUuid" />
<transient name="assegnatoreUserUuid" />
<transient name="geologoUserUuid" /> <transient name="geologoUserUuid" />
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties

@ -331,3 +331,5 @@ label-integrazione-13 = Variante
ricerca-posizione = Ricerca per posizione ricerca-posizione = Ricerca per posizione
ricerca-indirizzo = Ricerca per indirizzo ricerca-indirizzo = Ricerca per indirizzo
ricerca-progetto = Ricerca per progetto ricerca-progetto = Ricerca per progetto
note-richiedente = Note del richiedente

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/ControlloPraticaAdvancedSearch.java

@ -1,7 +1,7 @@
package it.mwg.sismica.bo.search; package it.mwg.sismica.bo.search;
import it.mwg.sismica.bo.shared.util.PortosIndexField; import it.mwg.sismica.bo.shared.util.PortosIndexField;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
@ -14,6 +14,7 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;
import java.util.Set;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
@ -195,7 +196,7 @@ public class ControlloPraticaAdvancedSearch {
booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST);
} }
} }
List<Integer> uos = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> uos = UserUtil.getUnitaOperative(user);
if ((uos.size() > 0) && !uos.contains(0)) { if ((uos.size() > 0) && !uos.contains(0)) {
BooleanQuery uoQuery = BooleanQueryFactoryUtil.create(searchContext); BooleanQuery uoQuery = BooleanQueryFactoryUtil.create(searchContext);
for (int uo : uos) { for (int uo : uos) {

66
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java

@ -0,0 +1,66 @@
package it.mwg.sismica.bo.startup;
import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil;
import java.util.List;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.RoleConstants;
import com.liferay.portal.model.User;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil;
public class DatabaseUpdateAction extends SimpleAction {
private static final String CHIAVE_VERSIONE = DatabaseUpdateAction.class.getName() + ".versione";
private static final Log _log = LogFactoryUtil.getLog(DatabaseUpdateAction.class);
@Override
public void run(String[] ids) throws ActionException {
for (String id : ids) {
long companyId = Long.parseLong(id);
try {
long versione = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, CHIAVE_VERSIONE);
if (versione < 2) {
parereGeologov2(companyId);
// versione = 2;
}
ServiceContext serviceContext = new ServiceContext();
Role adminRole = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR);
User adminUser = UserLocalServiceUtil.getRoleUsers(adminRole.getRoleId(), 0, 1).get(0);
serviceContext.setCompanyId(companyId);
serviceContext.setScopeGroupId(-1L);
serviceContext.setUserId(adminUser.getUserId());
ConfigurazioneLocalServiceUtil.storeConfig(CHIAVE_VERSIONE, String.valueOf(versione), serviceContext);
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
}
}
private static void parereGeologov2(long companyId) throws SystemException {
final int SLICE = 100;
List<ParereGeologo> pareri;
int start = 0;
do {
pareri = ParereGeologoLocalServiceUtil.getParereGeologos(start, start + SLICE);
if (pareri.size() > 0) {
for (ParereGeologo parere : pareri) {
}
}
} while (pareri.size() > 0);
}
}

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

@ -4,7 +4,7 @@
package it.mwg.sismica.bo.util; package it.mwg.sismica.bo.util;
import it.mwg.sismica.bo.shared.util.AvvisoUtil; import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
@ -159,6 +159,8 @@ public class ManutenzioneDatabase {
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
long companyId = serviceContext.getCompanyId(); long companyId = serviceContext.getCompanyId();
if (mode.contains("!Pareri!")) {
}
if (mode.contains("!Scavi!")) { if (mode.contains("!Scavi!")) {
esito.addAll(SismicaUtil.migraScavi()); esito.addAll(SismicaUtil.migraScavi());
} }
@ -251,7 +253,7 @@ public class ManutenzioneDatabase {
try { try {
User user = UserLocalServiceUtil.getUser(userId); User user = UserLocalServiceUtil.getUser(userId);
if (Validator.isNotNull(user)) { if (Validator.isNotNull(user)) {
List<Integer> uos = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> uos = UserUtil.getUnitaOperative(user);
for (int uo : uos) { for (int uo : uos) {
if (uo > destinazione) { if (uo > destinazione) {
destinazione = uo; destinazione = uo;

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

@ -17,6 +17,7 @@ import static java.lang.Math.sin;
import static java.lang.Math.sqrt; import static java.lang.Math.sqrt;
import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.mwg.sismica.bo.shared.util.AsseverazioniUtil;
import it.mwg.sismica.bo.shared.util.AzioniPraticheUtil; import it.mwg.sismica.bo.shared.util.AzioniPraticheUtil;
import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -47,6 +48,8 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -61,8 +64,12 @@ import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.model.UserGroupRole;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
/** /**
@ -512,6 +519,28 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
return geologi; return geologi;
} }
@Override
public Map<String, User> getGeologiPerParere() throws PortalException, SystemException {
Role role = RoleLocalServiceUtil.getRole(getCompanyId(), Constants.ROLE_NAME_GEOLOGO);
Map<String, User> geologi = new TreeMap<>();
for (UserGroupRole ugr : UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroup(getGroupId())) {
User user = ugr.getUser();
if ((user.getRoles().contains(role) || UserUtil.getUnitaOperative(user).contains(
getUnitaOperativa()))
&& (user.getUserId() != getStatusByUserId())) {
for (int unitaOperativa : UserUtil.getUnitaOperative(user)) {
if (unitaOperativa != 0) {
geologi.put(String.format("%03d", unitaOperativa), null);
geologi.put(String.format("%03d", unitaOperativa) + user.getLastName().toUpperCase()
+ user.getFirstName().toLowerCase(), user);
}
}
}
}
return geologi;
}
private List<String> getSignaturePerSubject(List<String> signatures, String tipoSoggetto, long docPraticaClassPk) private List<String> getSignaturePerSubject(List<String> signatures, String tipoSoggetto, long docPraticaClassPk)
throws SystemException { throws SystemException {
@ -556,6 +585,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
|| StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato); || StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato);
} }
@Override
public void invioMailNotifica(long dettPraticaId, long classPk, String className, String[] to, String[] cc, public void invioMailNotifica(long dettPraticaId, long classPk, String className, String[] to, String[] cc,
String[] ccn, String templateName, JSONObject templateVariables, List<FileAttachment> allegati, String[] ccn, String templateName, JSONObject templateVariables, List<FileAttachment> allegati,
ServiceContext serviceContext) throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {

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

@ -38,7 +38,7 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
Externalizable { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(41); StringBundler sb = new StringBundler(53);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(uuid); sb.append(uuid);
@ -46,6 +46,8 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
sb.append(parereGeologoId); sb.append(parereGeologoId);
sb.append(", companyId="); sb.append(", companyId=");
sb.append(companyId); sb.append(companyId);
sb.append(", unitaOperativa=");
sb.append(unitaOperativa);
sb.append(", userId="); sb.append(", userId=");
sb.append(userId); sb.append(userId);
sb.append(", userName="); sb.append(", userName=");
@ -58,6 +60,10 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
sb.append(groupId); sb.append(groupId);
sb.append(", geologoUserId="); sb.append(", geologoUserId=");
sb.append(geologoUserId); sb.append(geologoUserId);
sb.append(", assegnatoreUserId=");
sb.append(assegnatoreUserId);
sb.append(", dtAssegnazione=");
sb.append(dtAssegnazione);
sb.append(", parere="); sb.append(", parere=");
sb.append(parere); sb.append(parere);
sb.append(", intPraticaId="); sb.append(", intPraticaId=");
@ -80,6 +86,12 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
sb.append(userIdAnnullamento); sb.append(userIdAnnullamento);
sb.append(", noteAnnullamento="); sb.append(", noteAnnullamento=");
sb.append(noteAnnullamento); sb.append(noteAnnullamento);
sb.append(", approvatoreUserId=");
sb.append(approvatoreUserId);
sb.append(", dtApprovazione=");
sb.append(dtApprovazione);
sb.append(", noteApprovatore=");
sb.append(noteApprovatore);
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -98,6 +110,7 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
parereGeologoImpl.setParereGeologoId(parereGeologoId); parereGeologoImpl.setParereGeologoId(parereGeologoId);
parereGeologoImpl.setCompanyId(companyId); parereGeologoImpl.setCompanyId(companyId);
parereGeologoImpl.setUnitaOperativa(unitaOperativa);
parereGeologoImpl.setUserId(userId); parereGeologoImpl.setUserId(userId);
if (userName == null) { if (userName == null) {
@ -123,6 +136,14 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
parereGeologoImpl.setGroupId(groupId); parereGeologoImpl.setGroupId(groupId);
parereGeologoImpl.setGeologoUserId(geologoUserId); parereGeologoImpl.setGeologoUserId(geologoUserId);
parereGeologoImpl.setAssegnatoreUserId(assegnatoreUserId);
if (dtAssegnazione == Long.MIN_VALUE) {
parereGeologoImpl.setDtAssegnazione(null);
}
else {
parereGeologoImpl.setDtAssegnazione(new Date(dtAssegnazione));
}
if (parere == null) { if (parere == null) {
parereGeologoImpl.setParere(StringPool.BLANK); parereGeologoImpl.setParere(StringPool.BLANK);
@ -174,6 +195,22 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
parereGeologoImpl.setNoteAnnullamento(noteAnnullamento); parereGeologoImpl.setNoteAnnullamento(noteAnnullamento);
} }
parereGeologoImpl.setApprovatoreUserId(approvatoreUserId);
if (dtApprovazione == Long.MIN_VALUE) {
parereGeologoImpl.setDtApprovazione(null);
}
else {
parereGeologoImpl.setDtApprovazione(new Date(dtApprovazione));
}
if (noteApprovatore == null) {
parereGeologoImpl.setNoteApprovatore(StringPool.BLANK);
}
else {
parereGeologoImpl.setNoteApprovatore(noteApprovatore);
}
parereGeologoImpl.resetOriginalValues(); parereGeologoImpl.resetOriginalValues();
return parereGeologoImpl; return parereGeologoImpl;
@ -184,12 +221,15 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
uuid = objectInput.readUTF(); uuid = objectInput.readUTF();
parereGeologoId = objectInput.readLong(); parereGeologoId = objectInput.readLong();
companyId = objectInput.readLong(); companyId = objectInput.readLong();
unitaOperativa = objectInput.readInt();
userId = objectInput.readLong(); userId = objectInput.readLong();
userName = objectInput.readUTF(); userName = objectInput.readUTF();
createDate = objectInput.readLong(); createDate = objectInput.readLong();
modifiedDate = objectInput.readLong(); modifiedDate = objectInput.readLong();
groupId = objectInput.readLong(); groupId = objectInput.readLong();
geologoUserId = objectInput.readLong(); geologoUserId = objectInput.readLong();
assegnatoreUserId = objectInput.readLong();
dtAssegnazione = objectInput.readLong();
parere = objectInput.readUTF(); parere = objectInput.readUTF();
intPraticaId = objectInput.readLong(); intPraticaId = objectInput.readLong();
dettPraticaId = objectInput.readLong(); dettPraticaId = objectInput.readLong();
@ -201,6 +241,9 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
dtAnnullamento = objectInput.readLong(); dtAnnullamento = objectInput.readLong();
userIdAnnullamento = objectInput.readLong(); userIdAnnullamento = objectInput.readLong();
noteAnnullamento = objectInput.readUTF(); noteAnnullamento = objectInput.readUTF();
approvatoreUserId = objectInput.readLong();
dtApprovazione = objectInput.readLong();
noteApprovatore = objectInput.readUTF();
} }
@Override @Override
@ -215,6 +258,7 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
objectOutput.writeLong(parereGeologoId); objectOutput.writeLong(parereGeologoId);
objectOutput.writeLong(companyId); objectOutput.writeLong(companyId);
objectOutput.writeInt(unitaOperativa);
objectOutput.writeLong(userId); objectOutput.writeLong(userId);
if (userName == null) { if (userName == null) {
@ -228,6 +272,8 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
objectOutput.writeLong(modifiedDate); objectOutput.writeLong(modifiedDate);
objectOutput.writeLong(groupId); objectOutput.writeLong(groupId);
objectOutput.writeLong(geologoUserId); objectOutput.writeLong(geologoUserId);
objectOutput.writeLong(assegnatoreUserId);
objectOutput.writeLong(dtAssegnazione);
if (parere == null) { if (parere == null) {
objectOutput.writeUTF(StringPool.BLANK); objectOutput.writeUTF(StringPool.BLANK);
@ -259,17 +305,30 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
else { else {
objectOutput.writeUTF(noteAnnullamento); objectOutput.writeUTF(noteAnnullamento);
} }
objectOutput.writeLong(approvatoreUserId);
objectOutput.writeLong(dtApprovazione);
if (noteApprovatore == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(noteApprovatore);
}
} }
public String uuid; public String uuid;
public long parereGeologoId; public long parereGeologoId;
public long companyId; public long companyId;
public int unitaOperativa;
public long userId; public long userId;
public String userName; public String userName;
public long createDate; public long createDate;
public long modifiedDate; public long modifiedDate;
public long groupId; public long groupId;
public long geologoUserId; public long geologoUserId;
public long assegnatoreUserId;
public long dtAssegnazione;
public String parere; public String parere;
public long intPraticaId; public long intPraticaId;
public long dettPraticaId; public long dettPraticaId;
@ -281,4 +340,7 @@ public class ParereGeologoCacheModel implements CacheModel<ParereGeologo>,
public long dtAnnullamento; public long dtAnnullamento;
public long userIdAnnullamento; public long userIdAnnullamento;
public String noteAnnullamento; public String noteAnnullamento;
public long approvatoreUserId;
public long dtApprovazione;
public String noteApprovatore;
} }

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

@ -8,6 +8,48 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
import it.mwg.sismica.bo.shared.util.Generics;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.User;
import com.liferay.portal.model.UserGroupRole;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
import com.liferay.portal.service.UserLocalServiceUtil;
/** /**
* The extended model implementation for the ParereGeologo service. Represents a row in the * The extended model implementation for the ParereGeologo service. Represents a row in the
* &quot;portos_bo_ParereGeologo&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_ParereGeologo&quot; database table, with each column mapped to a property of this class.
@ -24,5 +66,101 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a parere geologo model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a parere geologo model instance
* should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead.
*/ */
private static final Log _log = LogFactoryUtil.getLog(ParereGeologoImpl.class);
public ParereGeologoImpl() {} public ParereGeologoImpl() {}
@Override
public Set<User> getIstruttori() throws PortalException, SystemException {
Role role = RoleLocalServiceUtil.getRole(getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
getGroupId(), role.getRoleId());
Map<String, User> ret = new TreeMap<>();
for (UserGroupRole userGroupRole : userGroupRoles) {
User user = userGroupRole.getUser();
if (UserUtil.getUnitaOperative(user).contains(getUnitaOperativa())) {
ret.put(user.getLastName().toUpperCase() + user.getFirstName().toLowerCase(), user);
}
}
return new LinkedHashSet<>(ret.values());
}
@Override
public void invioNotifica(ServiceContext serviceContext) {
try {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
String tipoOggetto;
String receiver;
String[] to;
if (Validator.isNotNull(getDtApprovazione())) {
// notifica parere espresso a istruttore
User istruttore = intPratica.recuperaTecnicoIstruttore();
User geologo = UserLocalServiceUtil.getUser(getGeologoUserId());
to = new String[] { istruttore.getEmailAddress() };
tipoOggetto = "Parere endoprocedimentale espresso da " + Generics.capitalizeFull(geologo.getFullName());
receiver = Generics.capitalizeFull(istruttore.getFullName());
} else if (Validator.isNotNull(getDtCompilazione())) {
// notifica parere da approvare
User approvatore = UserLocalServiceUtil.getUser(getAssegnatoreUserId());
User geologo = UserLocalServiceUtil.getUser(getGeologoUserId());
to = new String[] { approvatore.getEmailAddress() };
tipoOggetto = "Parere endoprocedimentale da approvare, espresso da "
+ Generics.capitalizeFull(geologo.getFullName());
receiver = Generics.capitalizeFull(approvatore.getFullName());
} else if (Validator.isNotNull(getDtAssegnazione())) {
// notifica parere da esprimere
User geologo = UserLocalServiceUtil.getUser(getGeologoUserId());
to = new String[] { geologo.getEmailAddress() };
tipoOggetto = "Parere endoprocedimentale da esprimere, richiesto da "
+ Generics.capitalizeFull(getUserName());
receiver = Generics.capitalizeFull(geologo.getFullName());
} else if (getAssegnatoreUserId() == 0) {
// notifica parere da assegnare a tutta l'unità operativa
Set<String> emails = new HashSet<>();
for (User user : UnitaOperativeUtil.getGeologi(getCompanyId(), getGroupId(), getUnitaOperativa())) {
emails.add(user.getEmailAddress());
}
to = emails.toArray(new String[emails.size()]);
tipoOggetto = "Parere endoprocedimentale da assegnare, richiesto da "
+ Generics.capitalizeFull(getUserName());
receiver = "Unità operativa " + getUnitaOperativa();
} else {
// notifica parere da assegnare al singolo operatore
User assegnatore = UserLocalServiceUtil.getUser(getAssegnatoreUserId());
to = new String[] { assegnatore.getEmailAddress() };
tipoOggetto = "Richiesta Parere da assegnare";
receiver = Generics.capitalizeFull(assegnatore.getFullName());
}
String[] cc = new String[0];
String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", receiver);
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", tipoOggetto);
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm")
.format(getDtCompilazione() != null ? getDtCompilazione() : new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = getParereGeologoId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn,
templateVariables, null, serviceContext);
} catch (PortalException | SystemException e) {
_log.error("Errore invio mail al geologo - ParereGeologoId=" + getParereGeologoId(), e);
}
}
} }

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

@ -71,12 +71,15 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
{ "uuid_", Types.VARCHAR }, { "uuid_", Types.VARCHAR },
{ "parereGeologoId", Types.BIGINT }, { "parereGeologoId", Types.BIGINT },
{ "companyId", Types.BIGINT }, { "companyId", Types.BIGINT },
{ "unitaOperativa", Types.INTEGER },
{ "userId", Types.BIGINT }, { "userId", Types.BIGINT },
{ "userName", Types.VARCHAR }, { "userName", Types.VARCHAR },
{ "createDate", Types.TIMESTAMP }, { "createDate", Types.TIMESTAMP },
{ "modifiedDate", Types.TIMESTAMP }, { "modifiedDate", Types.TIMESTAMP },
{ "groupId", Types.BIGINT }, { "groupId", Types.BIGINT },
{ "geologoUserId", Types.BIGINT }, { "geologoUserId", Types.BIGINT },
{ "assegnatoreUserId", Types.BIGINT },
{ "dtAssegnazione", Types.TIMESTAMP },
{ "parere", Types.VARCHAR }, { "parere", Types.VARCHAR },
{ "intPraticaId", Types.BIGINT }, { "intPraticaId", Types.BIGINT },
{ "dettPraticaId", Types.BIGINT }, { "dettPraticaId", Types.BIGINT },
@ -87,9 +90,12 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
{ "noteRichiedente", Types.VARCHAR }, { "noteRichiedente", Types.VARCHAR },
{ "dtAnnullamento", Types.TIMESTAMP }, { "dtAnnullamento", Types.TIMESTAMP },
{ "userIdAnnullamento", Types.BIGINT }, { "userIdAnnullamento", Types.BIGINT },
{ "noteAnnullamento", Types.VARCHAR } { "noteAnnullamento", Types.VARCHAR },
{ "approvatoreUserId", Types.BIGINT },
{ "dtApprovazione", Types.TIMESTAMP },
{ "noteApprovatore", Types.VARCHAR }
}; };
public static final String TABLE_SQL_CREATE = "create table portos_bo_ParereGeo (uuid_ VARCHAR(75) null,parereGeologoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,geologoUserId LONG,parere STRING null,intPraticaId LONG,dettPraticaId LONG,fileEntryId LONG,dtRichista DATE null,dtCompilazione DATE null,status INTEGER,noteRichiedente STRING null,dtAnnullamento DATE null,userIdAnnullamento LONG,noteAnnullamento STRING null)"; public static final String TABLE_SQL_CREATE = "create table portos_bo_ParereGeo (uuid_ VARCHAR(75) null,parereGeologoId LONG not null primary key,companyId LONG,unitaOperativa INTEGER,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,geologoUserId LONG,assegnatoreUserId LONG,dtAssegnazione DATE null,parere STRING null,intPraticaId LONG,dettPraticaId LONG,fileEntryId LONG,dtRichista DATE null,dtCompilazione DATE null,status INTEGER,noteRichiedente STRING null,dtAnnullamento DATE null,userIdAnnullamento LONG,noteAnnullamento STRING null,approvatoreUserId LONG,dtApprovazione DATE null,noteApprovatore STRING null)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_ParereGeo"; public static final String TABLE_SQL_DROP = "drop table portos_bo_ParereGeo";
public static final String ORDER_BY_JPQL = " ORDER BY parereGeologo.createDate ASC"; public static final String ORDER_BY_JPQL = " ORDER BY parereGeologo.createDate ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_ParereGeo.createDate ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_ParereGeo.createDate ASC";
@ -105,14 +111,17 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.ParereGeologo"), "value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.ParereGeologo"),
true); true);
public static long COMPANYID_COLUMN_BITMASK = 1L; public static long ASSEGNATOREUSERID_COLUMN_BITMASK = 1L;
public static long DTANNULLAMENTO_COLUMN_BITMASK = 2L; public static long COMPANYID_COLUMN_BITMASK = 2L;
public static long DTCOMPILAZIONE_COLUMN_BITMASK = 4L; public static long DTANNULLAMENTO_COLUMN_BITMASK = 4L;
public static long GEOLOGOUSERID_COLUMN_BITMASK = 8L; public static long DTAPPROVAZIONE_COLUMN_BITMASK = 8L;
public static long GROUPID_COLUMN_BITMASK = 16L; public static long DTCOMPILAZIONE_COLUMN_BITMASK = 16L;
public static long INTPRATICAID_COLUMN_BITMASK = 32L; public static long GEOLOGOUSERID_COLUMN_BITMASK = 32L;
public static long UUID_COLUMN_BITMASK = 64L; public static long GROUPID_COLUMN_BITMASK = 64L;
public static long CREATEDATE_COLUMN_BITMASK = 128L; public static long INTPRATICAID_COLUMN_BITMASK = 128L;
public static long UNITAOPERATIVA_COLUMN_BITMASK = 256L;
public static long UUID_COLUMN_BITMASK = 512L;
public static long CREATEDATE_COLUMN_BITMASK = 1024L;
/** /**
* Converts the soap model instance into a normal model instance. * Converts the soap model instance into a normal model instance.
@ -130,12 +139,15 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
model.setUuid(soapModel.getUuid()); model.setUuid(soapModel.getUuid());
model.setParereGeologoId(soapModel.getParereGeologoId()); model.setParereGeologoId(soapModel.getParereGeologoId());
model.setCompanyId(soapModel.getCompanyId()); model.setCompanyId(soapModel.getCompanyId());
model.setUnitaOperativa(soapModel.getUnitaOperativa());
model.setUserId(soapModel.getUserId()); model.setUserId(soapModel.getUserId());
model.setUserName(soapModel.getUserName()); model.setUserName(soapModel.getUserName());
model.setCreateDate(soapModel.getCreateDate()); model.setCreateDate(soapModel.getCreateDate());
model.setModifiedDate(soapModel.getModifiedDate()); model.setModifiedDate(soapModel.getModifiedDate());
model.setGroupId(soapModel.getGroupId()); model.setGroupId(soapModel.getGroupId());
model.setGeologoUserId(soapModel.getGeologoUserId()); model.setGeologoUserId(soapModel.getGeologoUserId());
model.setAssegnatoreUserId(soapModel.getAssegnatoreUserId());
model.setDtAssegnazione(soapModel.getDtAssegnazione());
model.setParere(soapModel.getParere()); model.setParere(soapModel.getParere());
model.setIntPraticaId(soapModel.getIntPraticaId()); model.setIntPraticaId(soapModel.getIntPraticaId());
model.setDettPraticaId(soapModel.getDettPraticaId()); model.setDettPraticaId(soapModel.getDettPraticaId());
@ -147,6 +159,9 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
model.setDtAnnullamento(soapModel.getDtAnnullamento()); model.setDtAnnullamento(soapModel.getDtAnnullamento());
model.setUserIdAnnullamento(soapModel.getUserIdAnnullamento()); model.setUserIdAnnullamento(soapModel.getUserIdAnnullamento());
model.setNoteAnnullamento(soapModel.getNoteAnnullamento()); model.setNoteAnnullamento(soapModel.getNoteAnnullamento());
model.setApprovatoreUserId(soapModel.getApprovatoreUserId());
model.setDtApprovazione(soapModel.getDtApprovazione());
model.setNoteApprovatore(soapModel.getNoteApprovatore());
return model; return model;
} }
@ -214,12 +229,15 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
attributes.put("uuid", getUuid()); attributes.put("uuid", getUuid());
attributes.put("parereGeologoId", getParereGeologoId()); attributes.put("parereGeologoId", getParereGeologoId());
attributes.put("companyId", getCompanyId()); attributes.put("companyId", getCompanyId());
attributes.put("unitaOperativa", getUnitaOperativa());
attributes.put("userId", getUserId()); attributes.put("userId", getUserId());
attributes.put("userName", getUserName()); attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate()); attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate()); attributes.put("modifiedDate", getModifiedDate());
attributes.put("groupId", getGroupId()); attributes.put("groupId", getGroupId());
attributes.put("geologoUserId", getGeologoUserId()); attributes.put("geologoUserId", getGeologoUserId());
attributes.put("assegnatoreUserId", getAssegnatoreUserId());
attributes.put("dtAssegnazione", getDtAssegnazione());
attributes.put("parere", getParere()); attributes.put("parere", getParere());
attributes.put("intPraticaId", getIntPraticaId()); attributes.put("intPraticaId", getIntPraticaId());
attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("dettPraticaId", getDettPraticaId());
@ -231,6 +249,9 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento());
attributes.put("noteAnnullamento", getNoteAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento());
attributes.put("approvatoreUserId", getApprovatoreUserId());
attributes.put("dtApprovazione", getDtApprovazione());
attributes.put("noteApprovatore", getNoteApprovatore());
return attributes; return attributes;
} }
@ -255,6 +276,12 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
setCompanyId(companyId); setCompanyId(companyId);
} }
Integer unitaOperativa = (Integer)attributes.get("unitaOperativa");
if (unitaOperativa != null) {
setUnitaOperativa(unitaOperativa);
}
Long userId = (Long)attributes.get("userId"); Long userId = (Long)attributes.get("userId");
if (userId != null) { if (userId != null) {
@ -291,6 +318,18 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
setGeologoUserId(geologoUserId); setGeologoUserId(geologoUserId);
} }
Long assegnatoreUserId = (Long)attributes.get("assegnatoreUserId");
if (assegnatoreUserId != null) {
setAssegnatoreUserId(assegnatoreUserId);
}
Date dtAssegnazione = (Date)attributes.get("dtAssegnazione");
if (dtAssegnazione != null) {
setDtAssegnazione(dtAssegnazione);
}
String parere = (String)attributes.get("parere"); String parere = (String)attributes.get("parere");
if (parere != null) { if (parere != null) {
@ -356,6 +395,24 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
if (noteAnnullamento != null) { if (noteAnnullamento != null) {
setNoteAnnullamento(noteAnnullamento); setNoteAnnullamento(noteAnnullamento);
} }
Long approvatoreUserId = (Long)attributes.get("approvatoreUserId");
if (approvatoreUserId != null) {
setApprovatoreUserId(approvatoreUserId);
}
Date dtApprovazione = (Date)attributes.get("dtApprovazione");
if (dtApprovazione != null) {
setDtApprovazione(dtApprovazione);
}
String noteApprovatore = (String)attributes.get("noteApprovatore");
if (noteApprovatore != null) {
setNoteApprovatore(noteApprovatore);
}
} }
@JSON @JSON
@ -416,6 +473,29 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
return _originalCompanyId; return _originalCompanyId;
} }
@JSON
@Override
public int getUnitaOperativa() {
return _unitaOperativa;
}
@Override
public void setUnitaOperativa(int unitaOperativa) {
_columnBitmask |= UNITAOPERATIVA_COLUMN_BITMASK;
if (!_setOriginalUnitaOperativa) {
_setOriginalUnitaOperativa = true;
_originalUnitaOperativa = _unitaOperativa;
}
_unitaOperativa = unitaOperativa;
}
public int getOriginalUnitaOperativa() {
return _originalUnitaOperativa;
}
@JSON @JSON
@Override @Override
public long getUserId() { public long getUserId() {
@ -534,6 +614,51 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
return _originalGeologoUserId; return _originalGeologoUserId;
} }
@JSON
@Override
public long getAssegnatoreUserId() {
return _assegnatoreUserId;
}
@Override
public void setAssegnatoreUserId(long assegnatoreUserId) {
_columnBitmask |= ASSEGNATOREUSERID_COLUMN_BITMASK;
if (!_setOriginalAssegnatoreUserId) {
_setOriginalAssegnatoreUserId = true;
_originalAssegnatoreUserId = _assegnatoreUserId;
}
_assegnatoreUserId = assegnatoreUserId;
}
@Override
public String getAssegnatoreUserUuid() throws SystemException {
return PortalUtil.getUserValue(getAssegnatoreUserId(), "uuid",
_assegnatoreUserUuid);
}
@Override
public void setAssegnatoreUserUuid(String assegnatoreUserUuid) {
_assegnatoreUserUuid = assegnatoreUserUuid;
}
public long getOriginalAssegnatoreUserId() {
return _originalAssegnatoreUserId;
}
@JSON
@Override
public Date getDtAssegnazione() {
return _dtAssegnazione;
}
@Override
public void setDtAssegnazione(Date dtAssegnazione) {
_dtAssegnazione = dtAssegnazione;
}
@JSON @JSON
@Override @Override
public String getParere() { public String getParere() {
@ -702,6 +827,65 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
_noteAnnullamento = noteAnnullamento; _noteAnnullamento = noteAnnullamento;
} }
@JSON
@Override
public long getApprovatoreUserId() {
return _approvatoreUserId;
}
@Override
public void setApprovatoreUserId(long approvatoreUserId) {
_approvatoreUserId = approvatoreUserId;
}
@Override
public String getApprovatoreUserUuid() throws SystemException {
return PortalUtil.getUserValue(getApprovatoreUserId(), "uuid",
_approvatoreUserUuid);
}
@Override
public void setApprovatoreUserUuid(String approvatoreUserUuid) {
_approvatoreUserUuid = approvatoreUserUuid;
}
@JSON
@Override
public Date getDtApprovazione() {
return _dtApprovazione;
}
@Override
public void setDtApprovazione(Date dtApprovazione) {
_columnBitmask |= DTAPPROVAZIONE_COLUMN_BITMASK;
if (_originalDtApprovazione == null) {
_originalDtApprovazione = _dtApprovazione;
}
_dtApprovazione = dtApprovazione;
}
public Date getOriginalDtApprovazione() {
return _originalDtApprovazione;
}
@JSON
@Override
public String getNoteApprovatore() {
if (_noteApprovatore == null) {
return StringPool.BLANK;
}
else {
return _noteApprovatore;
}
}
@Override
public void setNoteApprovatore(String noteApprovatore) {
_noteApprovatore = noteApprovatore;
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(
@ -742,12 +926,15 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoImpl.setUuid(getUuid()); parereGeologoImpl.setUuid(getUuid());
parereGeologoImpl.setParereGeologoId(getParereGeologoId()); parereGeologoImpl.setParereGeologoId(getParereGeologoId());
parereGeologoImpl.setCompanyId(getCompanyId()); parereGeologoImpl.setCompanyId(getCompanyId());
parereGeologoImpl.setUnitaOperativa(getUnitaOperativa());
parereGeologoImpl.setUserId(getUserId()); parereGeologoImpl.setUserId(getUserId());
parereGeologoImpl.setUserName(getUserName()); parereGeologoImpl.setUserName(getUserName());
parereGeologoImpl.setCreateDate(getCreateDate()); parereGeologoImpl.setCreateDate(getCreateDate());
parereGeologoImpl.setModifiedDate(getModifiedDate()); parereGeologoImpl.setModifiedDate(getModifiedDate());
parereGeologoImpl.setGroupId(getGroupId()); parereGeologoImpl.setGroupId(getGroupId());
parereGeologoImpl.setGeologoUserId(getGeologoUserId()); parereGeologoImpl.setGeologoUserId(getGeologoUserId());
parereGeologoImpl.setAssegnatoreUserId(getAssegnatoreUserId());
parereGeologoImpl.setDtAssegnazione(getDtAssegnazione());
parereGeologoImpl.setParere(getParere()); parereGeologoImpl.setParere(getParere());
parereGeologoImpl.setIntPraticaId(getIntPraticaId()); parereGeologoImpl.setIntPraticaId(getIntPraticaId());
parereGeologoImpl.setDettPraticaId(getDettPraticaId()); parereGeologoImpl.setDettPraticaId(getDettPraticaId());
@ -759,6 +946,9 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoImpl.setDtAnnullamento(getDtAnnullamento()); parereGeologoImpl.setDtAnnullamento(getDtAnnullamento());
parereGeologoImpl.setUserIdAnnullamento(getUserIdAnnullamento()); parereGeologoImpl.setUserIdAnnullamento(getUserIdAnnullamento());
parereGeologoImpl.setNoteAnnullamento(getNoteAnnullamento()); parereGeologoImpl.setNoteAnnullamento(getNoteAnnullamento());
parereGeologoImpl.setApprovatoreUserId(getApprovatoreUserId());
parereGeologoImpl.setDtApprovazione(getDtApprovazione());
parereGeologoImpl.setNoteApprovatore(getNoteApprovatore());
parereGeologoImpl.resetOriginalValues(); parereGeologoImpl.resetOriginalValues();
@ -816,6 +1006,10 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoModelImpl._setOriginalCompanyId = false; parereGeologoModelImpl._setOriginalCompanyId = false;
parereGeologoModelImpl._originalUnitaOperativa = parereGeologoModelImpl._unitaOperativa;
parereGeologoModelImpl._setOriginalUnitaOperativa = false;
parereGeologoModelImpl._originalGroupId = parereGeologoModelImpl._groupId; parereGeologoModelImpl._originalGroupId = parereGeologoModelImpl._groupId;
parereGeologoModelImpl._setOriginalGroupId = false; parereGeologoModelImpl._setOriginalGroupId = false;
@ -824,6 +1018,10 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoModelImpl._setOriginalGeologoUserId = false; parereGeologoModelImpl._setOriginalGeologoUserId = false;
parereGeologoModelImpl._originalAssegnatoreUserId = parereGeologoModelImpl._assegnatoreUserId;
parereGeologoModelImpl._setOriginalAssegnatoreUserId = false;
parereGeologoModelImpl._originalIntPraticaId = parereGeologoModelImpl._intPraticaId; parereGeologoModelImpl._originalIntPraticaId = parereGeologoModelImpl._intPraticaId;
parereGeologoModelImpl._setOriginalIntPraticaId = false; parereGeologoModelImpl._setOriginalIntPraticaId = false;
@ -832,6 +1030,8 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoModelImpl._originalDtAnnullamento = parereGeologoModelImpl._dtAnnullamento; parereGeologoModelImpl._originalDtAnnullamento = parereGeologoModelImpl._dtAnnullamento;
parereGeologoModelImpl._originalDtApprovazione = parereGeologoModelImpl._dtApprovazione;
parereGeologoModelImpl._columnBitmask = 0; parereGeologoModelImpl._columnBitmask = 0;
} }
@ -851,6 +1051,8 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoCacheModel.companyId = getCompanyId(); parereGeologoCacheModel.companyId = getCompanyId();
parereGeologoCacheModel.unitaOperativa = getUnitaOperativa();
parereGeologoCacheModel.userId = getUserId(); parereGeologoCacheModel.userId = getUserId();
parereGeologoCacheModel.userName = getUserName(); parereGeologoCacheModel.userName = getUserName();
@ -883,6 +1085,17 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoCacheModel.geologoUserId = getGeologoUserId(); parereGeologoCacheModel.geologoUserId = getGeologoUserId();
parereGeologoCacheModel.assegnatoreUserId = getAssegnatoreUserId();
Date dtAssegnazione = getDtAssegnazione();
if (dtAssegnazione != null) {
parereGeologoCacheModel.dtAssegnazione = dtAssegnazione.getTime();
}
else {
parereGeologoCacheModel.dtAssegnazione = Long.MIN_VALUE;
}
parereGeologoCacheModel.parere = getParere(); parereGeologoCacheModel.parere = getParere();
String parere = parereGeologoCacheModel.parere; String parere = parereGeologoCacheModel.parere;
@ -944,12 +1157,31 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
parereGeologoCacheModel.noteAnnullamento = null; parereGeologoCacheModel.noteAnnullamento = null;
} }
parereGeologoCacheModel.approvatoreUserId = getApprovatoreUserId();
Date dtApprovazione = getDtApprovazione();
if (dtApprovazione != null) {
parereGeologoCacheModel.dtApprovazione = dtApprovazione.getTime();
}
else {
parereGeologoCacheModel.dtApprovazione = Long.MIN_VALUE;
}
parereGeologoCacheModel.noteApprovatore = getNoteApprovatore();
String noteApprovatore = parereGeologoCacheModel.noteApprovatore;
if ((noteApprovatore != null) && (noteApprovatore.length() == 0)) {
parereGeologoCacheModel.noteApprovatore = null;
}
return parereGeologoCacheModel; return parereGeologoCacheModel;
} }
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(41); StringBundler sb = new StringBundler(53);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -957,6 +1189,8 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
sb.append(getParereGeologoId()); sb.append(getParereGeologoId());
sb.append(", companyId="); sb.append(", companyId=");
sb.append(getCompanyId()); sb.append(getCompanyId());
sb.append(", unitaOperativa=");
sb.append(getUnitaOperativa());
sb.append(", userId="); sb.append(", userId=");
sb.append(getUserId()); sb.append(getUserId());
sb.append(", userName="); sb.append(", userName=");
@ -969,6 +1203,10 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
sb.append(getGroupId()); sb.append(getGroupId());
sb.append(", geologoUserId="); sb.append(", geologoUserId=");
sb.append(getGeologoUserId()); sb.append(getGeologoUserId());
sb.append(", assegnatoreUserId=");
sb.append(getAssegnatoreUserId());
sb.append(", dtAssegnazione=");
sb.append(getDtAssegnazione());
sb.append(", parere="); sb.append(", parere=");
sb.append(getParere()); sb.append(getParere());
sb.append(", intPraticaId="); sb.append(", intPraticaId=");
@ -991,6 +1229,12 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
sb.append(getUserIdAnnullamento()); sb.append(getUserIdAnnullamento());
sb.append(", noteAnnullamento="); sb.append(", noteAnnullamento=");
sb.append(getNoteAnnullamento()); sb.append(getNoteAnnullamento());
sb.append(", approvatoreUserId=");
sb.append(getApprovatoreUserId());
sb.append(", dtApprovazione=");
sb.append(getDtApprovazione());
sb.append(", noteApprovatore=");
sb.append(getNoteApprovatore());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -998,7 +1242,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(64); StringBundler sb = new StringBundler(82);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.ParereGeologo"); sb.append("it.tref.liferay.portos.bo.model.ParereGeologo");
@ -1016,6 +1260,10 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
"<column><column-name>companyId</column-name><column-value><![CDATA["); "<column><column-name>companyId</column-name><column-value><![CDATA[");
sb.append(getCompanyId()); sb.append(getCompanyId());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>unitaOperativa</column-name><column-value><![CDATA[");
sb.append(getUnitaOperativa());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>userId</column-name><column-value><![CDATA["); "<column><column-name>userId</column-name><column-value><![CDATA[");
sb.append(getUserId()); sb.append(getUserId());
@ -1040,6 +1288,14 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
"<column><column-name>geologoUserId</column-name><column-value><![CDATA["); "<column><column-name>geologoUserId</column-name><column-value><![CDATA[");
sb.append(getGeologoUserId()); sb.append(getGeologoUserId());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>assegnatoreUserId</column-name><column-value><![CDATA[");
sb.append(getAssegnatoreUserId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtAssegnazione</column-name><column-value><![CDATA[");
sb.append(getDtAssegnazione());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>parere</column-name><column-value><![CDATA["); "<column><column-name>parere</column-name><column-value><![CDATA[");
sb.append(getParere()); sb.append(getParere());
@ -1084,6 +1340,18 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
"<column><column-name>noteAnnullamento</column-name><column-value><![CDATA["); "<column><column-name>noteAnnullamento</column-name><column-value><![CDATA[");
sb.append(getNoteAnnullamento()); sb.append(getNoteAnnullamento());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>approvatoreUserId</column-name><column-value><![CDATA[");
sb.append(getApprovatoreUserId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtApprovazione</column-name><column-value><![CDATA[");
sb.append(getDtApprovazione());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>noteApprovatore</column-name><column-value><![CDATA[");
sb.append(getNoteApprovatore());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -1100,6 +1368,9 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
private long _companyId; private long _companyId;
private long _originalCompanyId; private long _originalCompanyId;
private boolean _setOriginalCompanyId; private boolean _setOriginalCompanyId;
private int _unitaOperativa;
private int _originalUnitaOperativa;
private boolean _setOriginalUnitaOperativa;
private long _userId; private long _userId;
private String _userUuid; private String _userUuid;
private String _userName; private String _userName;
@ -1112,6 +1383,11 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
private String _geologoUserUuid; private String _geologoUserUuid;
private long _originalGeologoUserId; private long _originalGeologoUserId;
private boolean _setOriginalGeologoUserId; private boolean _setOriginalGeologoUserId;
private long _assegnatoreUserId;
private String _assegnatoreUserUuid;
private long _originalAssegnatoreUserId;
private boolean _setOriginalAssegnatoreUserId;
private Date _dtAssegnazione;
private String _parere; private String _parere;
private long _intPraticaId; private long _intPraticaId;
private long _originalIntPraticaId; private long _originalIntPraticaId;
@ -1127,6 +1403,11 @@ public class ParereGeologoModelImpl extends BaseModelImpl<ParereGeologo>
private Date _originalDtAnnullamento; private Date _originalDtAnnullamento;
private long _userIdAnnullamento; private long _userIdAnnullamento;
private String _noteAnnullamento; private String _noteAnnullamento;
private long _approvatoreUserId;
private String _approvatoreUserUuid;
private Date _dtApprovazione;
private Date _originalDtApprovazione;
private String _noteApprovatore;
private long _columnBitmask; private long _columnBitmask;
private ParereGeologo _escapedModel; private ParereGeologo _escapedModel;
} }

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

@ -2,7 +2,7 @@ package it.tref.liferay.portos.bo.portlet;
import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
@ -19,7 +19,6 @@ import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
@ -41,6 +40,7 @@ import java.util.Comparator;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Set;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
@ -110,37 +110,37 @@ public class FascicoloPortlet extends MVCPortlet {
super.render(request, response); super.render(request, response);
} }
public void toggleWorkflow(ActionRequest actionRequest, ActionResponse actionResponse) { public void toggleWorkflow(ActionRequest request, ActionResponse response) {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
boolean attivare = ParamUtil.getBoolean(actionRequest, "avviare"); boolean attivare = ParamUtil.getBoolean(request, "avviare");
boolean sospendere = ParamUtil.getBoolean(actionRequest, "sospendere"); boolean sospendere = ParamUtil.getBoolean(request, "sospendere");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
String stato_pratica = ParamUtil.getString(actionRequest, "seleziona_stato"); String stato_pratica = ParamUtil.getString(request, "seleziona_stato");
try { try {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
if (attivare && !sospendere) { if (attivare && !sospendere) {
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(), WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(),
dettPratica.getDettPraticaId(), serviceContext, true); dettPratica.getDettPraticaId(), serviceContext, true);
addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(), addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(),
intPratica.getGroupId(), user, true); intPratica.getGroupId(), user, true);
SessionMessages.add(actionRequest, "success-workflow-ripreso"); SessionMessages.add(request, "success-workflow-ripreso");
} else if (!attivare && sospendere) { } else if (!attivare && sospendere) {
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(), WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(),
dettPratica.getDettPraticaId(), serviceContext, false); dettPratica.getDettPraticaId(), serviceContext, false);
addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(), addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(),
intPratica.getGroupId(), user, false); intPratica.getGroupId(), user, false);
SessionMessages.add(actionRequest, "success-workflow-sospeso"); SessionMessages.add(request, "success-workflow-sospeso");
} else { } else {
SessionErrors.add(actionRequest, "error-workflow-stato-incosistente"); SessionErrors.add(request, "error-workflow-stato-incosistente");
} }
String redirectURL = ParamUtil.getString(actionRequest, "redirect"); String redirectURL = ParamUtil.getString(request, "redirect");
if (Validator.isNotNull(redirectURL)) { if (Validator.isNotNull(redirectURL)) {
actionResponse.sendRedirect(redirectURL); response.sendRedirect(redirectURL);
} }
if (!attivare) { if (!attivare) {
intPratica.setStatoPratica(stato_pratica); intPratica.setStatoPratica(stato_pratica);
@ -152,7 +152,7 @@ public class FascicoloPortlet extends MVCPortlet {
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, intPratica.getCompanyId()); IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, intPratica.getCompanyId());
} catch (Exception e) { } catch (Exception e) {
_log.error("error-workflow-sospeso", e); _log.error("error-workflow-sospeso", e);
SessionErrors.add(actionRequest, attivare ? "error-workflow-sospeso" : "error-workflow-ripreso"); SessionErrors.add(request, attivare ? "error-workflow-sospeso" : "error-workflow-ripreso");
} }
} }
@ -173,155 +173,130 @@ public class FascicoloPortlet extends MVCPortlet {
HistoryWorkflowActionLocalServiceUtil.updateHistoryWorkflowAction(historyWorkflowAction); HistoryWorkflowActionLocalServiceUtil.updateHistoryWorkflowAction(historyWorkflowAction);
} }
public void toggleSospensione(ActionRequest actionRequest, ActionResponse actionResponse) { public void toggleSospensione(ActionRequest request, ActionResponse response) {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
boolean sospesa = ParamUtil.getBoolean(actionRequest, "sospesa"); boolean sospesa = ParamUtil.getBoolean(request, "sospesa");
try { try {
IntPraticaServiceUtil.sospendiPratica(intPraticaId, sospesa); IntPraticaServiceUtil.sospendiPratica(intPraticaId, sospesa);
SessionMessages.add(actionRequest, sospesa ? "success-sospesa" : "success-ripresa"); SessionMessages.add(request, sospesa ? "success-sospesa" : "success-ripresa");
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-workflow-sospeso", e); _log.error("error-workflow-sospeso", e);
SessionErrors.add(actionRequest, sospesa ? "error-sospesa" : "error-ripresa"); SessionErrors.add(request, sospesa ? "error-sospesa" : "error-ripresa");
} }
} }
public void cambiaStato(ActionRequest actionRequest, ActionResponse actionResponse) { public void cambiaStato(ActionRequest request, ActionResponse response) {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
String statoPratica = ParamUtil.getString(actionRequest, "nuovoStatoPratica"); String statoPratica = ParamUtil.getString(request, "nuovoStatoPratica");
_log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId); _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId);
try { try {
_log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId + " NUOVO STATO: " + statoPratica); _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId + " NUOVO STATO: " + statoPratica);
IntPraticaServiceUtil.updateStatoPratica(intPraticaId, statoPratica); IntPraticaServiceUtil.updateStatoPratica(intPraticaId, statoPratica);
SessionMessages.add(actionRequest, "success-cambio-stato"); SessionMessages.add(request, "success-cambio-stato");
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-workflow-sospeso", e); _log.error("error-workflow-sospeso", e);
SessionErrors.add(actionRequest, "error-cambio-stato"); SessionErrors.add(request, "error-cambio-stato");
} }
} }
public void aggiungiRichiestaParere(ActionRequest actionRequest, ActionResponse actionResponse) { public void cambiaTitolare(ActionRequest request, ActionResponse response) {
long geologoId = ParamUtil.getLong(actionRequest, "geologoId"); String nuovoSoggettoCF = ParamUtil.getString(request, "nuovoSoggettoCF");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); long companyId = ParamUtil.getLong(request, "companyId");
String noteRichiedente = ParamUtil.getString(actionRequest, "noteRichiedente");
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
serviceContext.setCreateDate(new Date());
serviceContext.setModifiedDate(new Date());
ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, dettPraticaId, noteRichiedente,
serviceContext);
} catch (PortalException | SystemException e) {
_log.error("error-workflow-sospeso", e);
SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere");
}
}
public void cambiaTitolare(ActionRequest actionRequest, ActionResponse actionResponse) {
String nuovoSoggettoCF = ParamUtil.getString(actionRequest, "nuovoSoggettoCF");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L);
long companyId = ParamUtil.getLong(actionRequest, "companyId");
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, nuovoSoggettoCF); User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, nuovoSoggettoCF);
if (Validator.isNotNull(user)) { if (Validator.isNotNull(user)) {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (!intPratica.praticaInProgress()) { if (!intPratica.praticaInProgress()) {
_log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" + intPraticaId); _log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" + intPraticaId);
IntPraticaServiceUtil.cambiaTitolare(intPraticaId, user.getUserId(), serviceContext); IntPraticaServiceUtil.cambiaTitolare(intPraticaId, user.getUserId(), serviceContext);
SessionMessages.add(actionRequest, "success-cambio-titolare"); SessionMessages.add(request, "success-cambio-titolare");
} else { } else {
SessionErrors.add(actionRequest, "error-cambio-titolare-pratica-in-progress"); SessionErrors.add(request, "error-cambio-titolare-pratica-in-progress");
} }
} else { } else {
_log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company " + companyId _log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company " + companyId
+ " e codice fiscale " + nuovoSoggettoCF); + " e codice fiscale " + nuovoSoggettoCF);
SessionErrors.add(actionRequest, "error-cambio-titolare-no-such-user"); SessionErrors.add(request, "error-cambio-titolare-no-such-user");
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-cambio-titolare", e); _log.error("error-cambio-titolare", e);
SessionErrors.add(actionRequest, "error-cambio-titolare"); SessionErrors.add(request, "error-cambio-titolare");
} }
} }
public void searchURL(ActionRequest actionRequest, ActionResponse actionResponse) { public void searchURL(ActionRequest request, ActionResponse response) {
String numeroProgetto = actionRequest.getParameter("numeroProgetto"); String numeroProgetto = request.getParameter("numeroProgetto");
String statoPratica = actionRequest.getParameter("statoPratica"); String statoPratica = request.getParameter("statoPratica");
String committente = actionRequest.getParameter("committente"); String committente = request.getParameter("committente");
String tecnicoIstruttore = actionRequest.getParameter("tecnicoIstruttore"); String tecnicoIstruttore = request.getParameter("tecnicoIstruttore");
String titolareDigitale = actionRequest.getParameter("titolareDigitale"); String titolareDigitale = request.getParameter("titolareDigitale");
String soggettiInterconnessi = actionRequest.getParameter("soggettiInterconnessi"); String soggettiInterconnessi = request.getParameter("soggettiInterconnessi");
String dataRichiestaInizio = actionRequest.getParameter("dataRichiestaInizio"); String dataRichiestaInizio = request.getParameter("dataRichiestaInizio");
String dataRichiestaFine = actionRequest.getParameter("dataRichiestaFine"); String dataRichiestaFine = request.getParameter("dataRichiestaFine");
String provincia = actionRequest.getParameter("provincia"); String provincia = request.getParameter("provincia");
String comune = actionRequest.getParameter("comune"); String comune = request.getParameter("comune");
String tipoIntervento = actionRequest.getParameter("tipoIntervento"); String tipoIntervento = request.getParameter("tipoIntervento");
String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); String tipoProcedura = ParamUtil.getString(request, "tipoProcedura");
String unitaOperativa = ParamUtil.getString(actionRequest, "unitaOperativa"); String unitaOperativa = ParamUtil.getString(request, "unitaOperativa");
String geologi = ParamUtil.getString(actionRequest, "geologi"); String geologi = ParamUtil.getString(request, "geologi");
String parereGeologo = ParamUtil.getString(actionRequest, "parereGeologo"); String parereGeologo = ParamUtil.getString(request, "parereGeologo");
String istruttore = ParamUtil.getString(actionRequest, "istruttore"); String istruttore = ParamUtil.getString(request, "istruttore");
if (Validator.isNotNull(dataRichiestaInizio)) { if (Validator.isNotNull(dataRichiestaInizio)) {
String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH); String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH);
actionResponse.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]); response.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]);
int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month)); response.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month));
actionResponse.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]); response.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]);
} }
if (Validator.isNotNull(dataRichiestaFine)) { if (Validator.isNotNull(dataRichiestaFine)) {
String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH); String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH);
actionResponse.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]); response.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]);
int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month)); response.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month));
actionResponse.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]); response.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]);
} }
String ufficio = actionRequest.getParameter("ufficio"); String ufficio = request.getParameter("ufficio");
String ordinaPer = actionRequest.getParameter("ordinaPer"); String ordinaPer = request.getParameter("ordinaPer");
String ordinaTipo = actionRequest.getParameter("ordinaTipo"); String ordinaTipo = request.getParameter("ordinaTipo");
if (Validator.isNotNull(tipoIntervento)) { if (Validator.isNotNull(tipoIntervento)) {
actionResponse.setRenderParameter("tipoIntervento", tipoIntervento); response.setRenderParameter("tipoIntervento", tipoIntervento);
} }
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); response.setRenderParameter("numeroProgetto", numeroProgetto);
// actionResponse.setRenderParameter("praticaAperta", praticaAperta); response.setRenderParameter("statoPratica", statoPratica);
// actionResponse.setRenderParameter("descIntervento", descInterventoSearch); response.setRenderParameter("committente", committente);
// actionResponse.setRenderParameter("protocollo", protocollo);
// actionResponse.setRenderParameter("tipoPratica", tipoPratica);
actionResponse.setRenderParameter("statoPratica", statoPratica);
actionResponse.setRenderParameter("committente", committente);
if (Validator.isNotNull(provincia)) { if (Validator.isNotNull(provincia)) {
actionResponse.setRenderParameter("provincia", provincia); response.setRenderParameter("provincia", provincia);
} }
if (Validator.isNotNull(comune)) { if (Validator.isNotNull(comune)) {
actionResponse.setRenderParameter("comune", comune); response.setRenderParameter("comune", comune);
} }
// actionResponse.setRenderParameter("indirizzo", indirizzo);
if (Validator.isNull(tecnicoIstruttore)) { if (Validator.isNull(tecnicoIstruttore)) {
actionResponse.setRenderParameter("tecnicoIstruttore", StringPool.BLANK); response.setRenderParameter("tecnicoIstruttore", StringPool.BLANK);
} else { } else {
actionResponse.setRenderParameter("tecnicoIstruttore", tecnicoIstruttore); response.setRenderParameter("tecnicoIstruttore", tecnicoIstruttore);
} }
actionResponse.setRenderParameter("titolareDigitale", titolareDigitale); response.setRenderParameter("titolareDigitale", titolareDigitale);
actionResponse.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi); response.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi);
actionResponse.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio); response.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio);
actionResponse.setRenderParameter("dataRichiestaFine", dataRichiestaFine); response.setRenderParameter("dataRichiestaFine", dataRichiestaFine);
if (Validator.isNull(ufficio)) { if (Validator.isNull(ufficio)) {
actionResponse.setRenderParameter("ufficio", "-1"); response.setRenderParameter("ufficio", "-1");
} else { } else {
actionResponse.setRenderParameter("ufficio", ufficio); response.setRenderParameter("ufficio", ufficio);
} }
actionResponse.setRenderParameter("ordinaPer", ordinaPer); response.setRenderParameter("ordinaPer", ordinaPer);
actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); response.setRenderParameter("ordinaTipo", ordinaTipo);
response.setRenderParameter("tipoProcedura", tipoProcedura);
actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); response.setRenderParameter("unitaOperativa", unitaOperativa);
actionResponse.setRenderParameter("unitaOperativa", unitaOperativa); response.setRenderParameter("geologi", geologi);
actionResponse.setRenderParameter("geologi", geologi); response.setRenderParameter("parereGeologo", parereGeologo);
actionResponse.setRenderParameter("parereGeologo", parereGeologo); response.setRenderParameter("istruttore", istruttore);
actionResponse.setRenderParameter("istruttore", istruttore);
} }
@Override @Override
@ -399,14 +374,12 @@ public class FascicoloPortlet extends MVCPortlet {
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("unitaOperative".equals(id)) { } else if ("unitaOperative".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
for (int i = 1; i < 11; i++) { for (int i = 1; i < 11; i++) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("uoId", i); jsonObject.put("uoId", i);
jsonObject.put("descLong", i); jsonObject.put("descLong", i);
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("comuni".equals(id)) { } else if ("comuni".equals(id)) {
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId");
@ -446,7 +419,7 @@ public class FascicoloPortlet extends MVCPortlet {
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {
User istruttore = userGroupRole.getUser(); User istruttore = userGroupRole.getUser();
List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); Set<Integer> unitaOperativeIstruttore = UserUtil.getUnitaOperative(istruttore);
if (unitaOperativeIstruttore.contains(uoId)) { if (unitaOperativeIstruttore.contains(uoId)) {
if (tecniciIstruttori.isEmpty()) { if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
@ -647,24 +620,24 @@ public class FascicoloPortlet extends MVCPortlet {
return sb.toString(); return sb.toString();
} }
public void setBollettinoImposta(ActionRequest actionRequest, ActionResponse actionResponse) public void setBollettinoImposta(ActionRequest request, ActionResponse response) throws PortalException,
throws PortalException, SystemException { SystemException {
try { try {
long idPagamento = ParamUtil.getLong(actionRequest, "idPagamento"); long idPagamento = ParamUtil.getLong(request, "idPagamento");
String numeroBollettino = ParamUtil.getString(actionRequest, "numeroBollettino"); String numeroBollettino = ParamUtil.getString(request, "numeroBollettino");
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(idPagamento); Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(idPagamento);
if (Validator.isNotNull(pagamento)) { if (Validator.isNotNull(pagamento)) {
pagamento.setNumeroBollettino(numeroBollettino); pagamento.setNumeroBollettino(numeroBollettino);
PagamentoLocalServiceUtil.updatePagamento(pagamento); PagamentoLocalServiceUtil.updatePagamento(pagamento);
} }
// PortalUtil.copyRequestParameters(actionRequest, actionResponse); // PortalUtil.copyRequestParameters(actionRequest, actionResponse);
String redirectURL = ParamUtil.getString(actionRequest, "redirect"); String redirectURL = ParamUtil.getString(request, "redirect");
if (Validator.isNotNull(redirectURL)) { if (Validator.isNotNull(redirectURL)) {
actionResponse.sendRedirect(redirectURL); response.sendRedirect(redirectURL);
} }
} catch (Exception e) { } catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(request, response);
_log.error("Error", e); _log.error("Error", e);
throw new SystemException(e); throw new SystemException(e);
} }

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

@ -1,7 +1,7 @@
package it.tref.liferay.portos.bo.portlet; package it.tref.liferay.portos.bo.portlet;
import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
@ -29,6 +29,7 @@ import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Set;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
@ -358,7 +359,7 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet {
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {
User istruttore = userGroupRole.getUser(); User istruttore = userGroupRole.getUser();
List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); Set<Integer> unitaOperativeIstruttore = UserUtil.getUnitaOperative(istruttore);
if (unitaOperativeIstruttore.contains(uoId)) { if (unitaOperativeIstruttore.contains(uoId)) {
if (tecniciIstruttori.isEmpty()) { if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);

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

@ -2,7 +2,7 @@ package it.tref.liferay.portos.bo.portlet;
import it.mwg.sismica.bo.search.ControlloPraticaAdvancedSearch; import it.mwg.sismica.bo.search.ControlloPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.AvvisoUtil; import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
@ -22,7 +22,6 @@ import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean;
import it.tref.liferay.portos.bo.shared.util.ActionKeys; import it.tref.liferay.portos.bo.shared.util.ActionKeys;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@ -32,6 +31,7 @@ import java.util.Comparator;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
@ -42,6 +42,8 @@ import javax.portlet.ResourceResponse;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
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;
@ -57,9 +59,7 @@ import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.util.CSVUtil; import com.liferay.portal.kernel.util.CSVUtil;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -89,76 +89,76 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(GestioneAttivitaPortlet.class); private static final Log _log = LogFactoryUtil.getLog(GestioneAttivitaPortlet.class);
public void search2URL(ActionRequest actionRequest, ActionResponse actionResponse) { public void search2URL(ActionRequest request, ActionResponse response) {
String tabs1 = ParamUtil.getString(actionRequest, "tabs1"); String tabs1 = ParamUtil.getString(request, "tabs1");
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(request, "numeroProgetto");
String protocollo = ParamUtil.getString(actionRequest, "protocollo"); String protocollo = ParamUtil.getString(request, "protocollo");
String tipoPratica = ParamUtil.getString(actionRequest, "tipoPratica"); String tipoPratica = ParamUtil.getString(request, "tipoPratica");
String statoPratica = ParamUtil.getString(actionRequest, "statoPratica"); String statoPratica = ParamUtil.getString(request, "statoPratica");
String committente = ParamUtil.getString(actionRequest, "committente"); String committente = ParamUtil.getString(request, "committente");
String soggettiInterconnessi = ParamUtil.getString(actionRequest, "soggettiInterconnessi"); String soggettiInterconnessi = ParamUtil.getString(request, "soggettiInterconnessi");
String istruttore = ParamUtil.getString(actionRequest, "istruttore"); String istruttore = ParamUtil.getString(request, "istruttore");
String dataRichiestaInizio = ParamUtil.getString(actionRequest, "dataRichiestaInizio"); String dataRichiestaInizio = ParamUtil.getString(request, "dataRichiestaInizio");
String dataRichiestaFine = ParamUtil.getString(actionRequest, "dataRichiestaFine"); String dataRichiestaFine = ParamUtil.getString(request, "dataRichiestaFine");
String ufficio = ParamUtil.getString(actionRequest, "ufficio"); String ufficio = ParamUtil.getString(request, "ufficio");
String ordinaPer = ParamUtil.getString(actionRequest, "ordinaPer"); String ordinaPer = ParamUtil.getString(request, "ordinaPer");
String ordinaTipo = ParamUtil.getString(actionRequest, "ordinaTipo"); String ordinaTipo = ParamUtil.getString(request, "ordinaTipo");
String comune = ParamUtil.getString(actionRequest, "comune"); String comune = ParamUtil.getString(request, "comune");
String tipoAttivita = ParamUtil.getString(actionRequest, "tipoAttivita"); String tipoAttivita = ParamUtil.getString(request, "tipoAttivita");
String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); String tipoProcedura = ParamUtil.getString(request, "tipoProcedura");
String unitaOperativa = ParamUtil.getString(actionRequest, "unitaOperativa"); String unitaOperativa = ParamUtil.getString(request, "unitaOperativa");
String provincia = ParamUtil.getString(actionRequest, "provincia"); String provincia = ParamUtil.getString(request, "provincia");
String geologi = ParamUtil.getString(actionRequest, "geologi"); String geologi = ParamUtil.getString(request, "geologi");
String parereGeologo = ParamUtil.getString(actionRequest, "parereGeologo"); String parereGeologo = ParamUtil.getString(request, "parereGeologo");
actionResponse.setRenderParameter("tabs1", tabs1); response.setRenderParameter("tabs1", tabs1);
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); response.setRenderParameter("numeroProgetto", numeroProgetto);
actionResponse.setRenderParameter("protocollo", protocollo); response.setRenderParameter("protocollo", protocollo);
// ADT - BUG-11 Aggiunta filtro ricerca // ADT - BUG-11 Aggiunta filtro ricerca
if (Validator.isNotNull(tipoPratica)) { if (Validator.isNotNull(tipoPratica)) {
if (AvvisoUtil.TIPO_REPORT_CONTROLLO_OBBLIGATORIO.equalsIgnoreCase(tipoPratica)) { if (AvvisoUtil.TIPO_REPORT_CONTROLLO_OBBLIGATORIO.equalsIgnoreCase(tipoPratica)) {
tipoPratica = Constants.TIPO_PRATICA_DEPOSITO; tipoPratica = Constants.TIPO_PRATICA_DEPOSITO;
actionResponse.setRenderParameter("controlloObbligatorio", StringPool.TRUE); response.setRenderParameter("controlloObbligatorio", StringPool.TRUE);
} }
actionResponse.setRenderParameter("tipoPratica", tipoPratica); response.setRenderParameter("tipoPratica", tipoPratica);
} }
actionResponse.setRenderParameter("statoPratica", statoPratica); response.setRenderParameter("statoPratica", statoPratica);
actionResponse.setRenderParameter("committente", committente); response.setRenderParameter("committente", committente);
actionResponse.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi); response.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi);
actionResponse.setRenderParameter("istruttore", istruttore); response.setRenderParameter("istruttore", istruttore);
actionResponse.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio); response.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio);
actionResponse.setRenderParameter("dataRichiestaFine", dataRichiestaFine); response.setRenderParameter("dataRichiestaFine", dataRichiestaFine);
if (Validator.isNotNull(dataRichiestaInizio)) { if (Validator.isNotNull(dataRichiestaInizio)) {
String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH); String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH);
actionResponse.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]); response.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]);
int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month)); response.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month));
actionResponse.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]); response.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]);
} }
if (Validator.isNotNull(dataRichiestaFine)) { if (Validator.isNotNull(dataRichiestaFine)) {
String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH); String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH);
actionResponse.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]); response.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]);
int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month)); response.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month));
actionResponse.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]); response.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]);
} }
actionResponse.setRenderParameter("ufficio", ufficio); response.setRenderParameter("ufficio", ufficio);
actionResponse.setRenderParameter("ordinaPer", ordinaPer); response.setRenderParameter("ordinaPer", ordinaPer);
actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); response.setRenderParameter("ordinaTipo", ordinaTipo);
actionResponse.setRenderParameter("comune", comune); response.setRenderParameter("comune", comune);
actionResponse.setRenderParameter("tipoAttivita", tipoAttivita); response.setRenderParameter("tipoAttivita", tipoAttivita);
actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); response.setRenderParameter("tipoProcedura", tipoProcedura);
actionResponse.setRenderParameter("unitaOperativa", unitaOperativa); response.setRenderParameter("unitaOperativa", unitaOperativa);
actionResponse.setRenderParameter("provincia", provincia); response.setRenderParameter("provincia", provincia);
actionResponse.setRenderParameter("geologi", geologi); response.setRenderParameter("geologi", geologi);
actionResponse.setRenderParameter("parereGeologo", parereGeologo); response.setRenderParameter("parereGeologo", parereGeologo);
} }
public void cambioIstruttore(ActionRequest actionRequest, ActionResponse actionResponse) { public void cambioIstruttore(ActionRequest request, ActionResponse response) {
long controlloPraticaId = ParamUtil.getLong(actionRequest, "controlloPraticaId"); long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long istruttoreId = ParamUtil.getLong(actionRequest, "istruttoreId"); long istruttoreId = ParamUtil.getLong(request, "istruttoreId");
try { try {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica.getStatusByUserId()) && intPratica.getStatusByUserId() != istruttoreId) { if (Validator.isNotNull(intPratica.getStatusByUserId()) && intPratica.getStatusByUserId() != istruttoreId) {
@ -168,16 +168,16 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-cambio-istruttore", e); _log.error("error-cambio-istruttore", e);
SessionErrors.add(actionRequest, "error-cambio-istruttore"); SessionErrors.add(request, "error-cambio-istruttore");
} }
} }
public void riassegnaAlRuolo(ActionRequest actionRequest, ActionResponse actionResponse) { public void riassegnaAlRuolo(ActionRequest request, ActionResponse response) {
long controlloPraticaId = ParamUtil.getLong(actionRequest, "controlloPraticaId"); long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId");
long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); long workflowTaskId = ParamUtil.getLong(request, "workflowTaskId");
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPratica(controlloPraticaId); .getControlloPratica(controlloPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId());
@ -212,7 +212,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-cambio-istruttore", e); _log.error("error-cambio-istruttore", e);
SessionErrors.add(actionRequest, "error-assegnazione-ruolo"); SessionErrors.add(request, "error-assegnazione-ruolo");
} }
} }
@ -238,76 +238,39 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
} }
} }
public void aggiungiRichiestaParere(ActionRequest actionRequest, ActionResponse actionResponse) { public void aggiungiRichiestaParere(ActionRequest request, ActionResponse response) {
long geologoId = ParamUtil.getLong(actionRequest, "geologoId"); String destinatario = ParamUtil.getString(request, "destinatario");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); String[] valori = StringUtils.split(destinatario, '|');
long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); if (valori.length > 1) {
String noteRichiedente = ParamUtil.getString(actionRequest, "noteRichiedente"); int unitaOperativa = Integer.parseInt(valori[0]);
long userId = Long.parseLong(valori[1]);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
String noteRichiedente = ParamUtil.getString(request, "noteRichiedente");
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); Date now = new Date();
serviceContext.setCreateDate(new Date()); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
serviceContext.setModifiedDate(new Date()); serviceContext.setCreateDate(now);
ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, serviceContext.setModifiedDate(now);
dettPraticaId, noteRichiedente, serviceContext); ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(unitaOperativa, userId,
intPraticaId, dettPraticaId, noteRichiedente, serviceContext);
// ADT: aggiunta notifica geologo // ADT: aggiunta notifica geologo
invioNotificaGeologo(parereGeologo, serviceContext); parereGeologo.invioNotifica(serviceContext);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e, e); _log.error(e, e);
SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere"); SessionErrors.add(request, "error-aggiunta-richiesta-parere");
}
} }
private static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) {
_log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId());
try {
User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parereGeologo.getIntPraticaId());
_log.info("email geologo = " + geologo.getEmailAddress());
String[] to = { geologo.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", geologo.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Richiesta Parere");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologo.getParereGeologoId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn,
templateVariables, null, serviceContext);
} catch (Exception e) {
_log.error(
"invioNotificaGeologo - Errore invio mail al geologo - ParereGeologoId="
+ parereGeologo.getParereGeologoId(), e);
} }
} }
public void aggiungiDettPraticheAlControllo(ActionRequest actionRequest, ActionResponse actionResponse) public void aggiungiDettPraticheAlControllo(ActionRequest request, ActionResponse response) throws PortalException,
throws PortalException, SystemException { SystemException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long controlloPraticaId = ParamUtil.getLong(actionRequest, "controlloPraticaId"); long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId");
long lastDettPraticaId = ParamUtil.getLong(actionRequest, "lastDettPraticaId"); long lastDettPraticaId = ParamUtil.getLong(request, "lastDettPraticaId");
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (lastDettPraticaId != controlloPratica.getDettPraticaId() if (lastDettPraticaId != controlloPratica.getDettPraticaId()
@ -315,37 +278,32 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(controlloPraticaId, lastDettPraticaId, ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(controlloPraticaId, lastDettPraticaId,
serviceContext); serviceContext);
} else { } else {
SessionErrors.add(actionRequest, "error-aggiunta-pratiche-al-controllo"); SessionErrors.add(request, "error-aggiunta-pratiche-al-controllo");
} }
} }
@Override @Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, public void serveResource(ResourceRequest request, ResourceResponse response) throws IOException, PortletException {
PortletException {
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
Locale locale = themeDisplay.getLocale(); Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
String cmd = ParamUtil.getString(resourceRequest, Constants.CMD); String cmd = ParamUtil.getString(request, Constants.CMD);
String id = resourceRequest.getResourceID(); String id = request.getResourceID();
String csv = StringPool.BLANK; String csv = StringPool.BLANK;
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(request);
HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); HttpServletResponse httpResponse = PortalUtil.getHttpServletResponse(response);
if (cmd.equals("dirigente")) { if (cmd.equals("dirigente")) {
csv = exportToCSV(locale, resourceRequest, true, user); csv = exportToCSV(locale, request, true, user);
} else if (cmd.equals("po")) { } else if (cmd.equals("po")) {
csv = exportToCSV(locale, resourceRequest, false, user); csv = exportToCSV(locale, request, false, user);
} else if (cmd.equals("exportRicercaMieAttivita") || cmd.equals("exportRicercaMieiRuoli") } else if (cmd.equals("exportRicercaMieAttivita") || cmd.equals("exportRicercaMieiRuoli")
|| cmd.equals("exportRicercaAltreAttivita") || cmd.equals("exportRicercaAttivitaConcluse")) { || cmd.equals("exportRicercaAltreAttivita") || cmd.equals("exportRicercaAttivitaConcluse")) {
csv = exportSearch(locale, resourceRequest, user, cmd); csv = exportSearch(locale, request, user, cmd);
} }
// ADT BUG BO ID= 1 SEZIONE ATTIVITÀ
try { try {
if ("comuniForUfficio".equals(id)) { if ("comuniForUfficio".equals(id)) {
String ufficio = ParamUtil.getString(request, "ufficioId");
String ufficio = ParamUtil.getString(resourceRequest, "ufficioId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
List<Comune> comuni; List<Comune> comuni;
if (Validator.isNotNull(ufficio) && !ufficio.equals("0")) { if (Validator.isNotNull(ufficio) && !ufficio.equals("0")) {
@ -361,7 +319,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, jsonArray);
} else { } else {
comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserId(user.getUserId()); comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserId(user.getUserId());
for (Comune comune : comuni) { for (Comune comune : comuni) {
@ -370,7 +328,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
jsonObject.put("descLong", comune.getDenominazione()); jsonObject.put("descLong", comune.getDenominazione());
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, jsonArray);
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@ -387,20 +345,18 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia()); jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia());
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, jsonArray);
} else if ("unitaOperative".equals(id)) { } else if ("unitaOperative".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
for (int i = 1; i < 11; i++) { for (int i = 1; i < 11; i++) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("uoId", i); jsonObject.put("uoId", i);
jsonObject.put("descLong", i); jsonObject.put("descLong", i);
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(request, response, jsonArray);
writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("comuni".equals(id)) { } else if ("comuni".equals(id)) {
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); String provinciaId = ParamUtil.getString(request, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) { if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) {
List<Long> comuniIds = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaId); List<Long> comuniIds = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaId);
@ -422,22 +378,21 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, jsonArray);
} else if ("istruttore".equals(id)) { } else if ("istruttore".equals(id)) {
Integer uoId = ParamUtil.getInteger(resourceRequest, "uoId"); Integer uoId = ParamUtil.getInteger(request, "uoId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(uoId) && !uoId.equals("-1")) { if (Validator.isNotNull(uoId) && !uoId.equals("-1")) {
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user
.getUserId()); .getUserId());
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for (Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {
User istruttore = userGroupRole.getUser(); User istruttore = userGroupRole.getUser();
List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); Set<Integer> unitaOperativeIstruttore = UserUtil.getUnitaOperative(istruttore);
if (unitaOperativeIstruttore.contains(uoId)) { if (unitaOperativeIstruttore.contains(uoId)) {
if (tecniciIstruttori.isEmpty()) { if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
@ -456,7 +411,6 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
} }
} }
} }
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>();
for (UserGroupRole tecnico : tecniciIstruttori) { for (UserGroupRole tecnico : tecniciIstruttori) {
IstruttoreBean istruttore = new IstruttoreBean(); IstruttoreBean istruttore = new IstruttoreBean();
@ -464,9 +418,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
istruttore.setDenominazione(tecnico.getUser().getFullName()); istruttore.setDenominazione(tecnico.getUser().getFullName());
tecniciIstruttoriSorted.add(istruttore); tecniciIstruttoriSorted.add(istruttore);
} }
Collections.sort(tecniciIstruttoriSorted); Collections.sort(tecniciIstruttoriSorted);
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) { for (IstruttoreBean istruttore : tecniciIstruttoriSorted) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("istruttoreId", istruttore.getIdIstruttore()); jsonObject.put("istruttoreId", istruttore.getIdIstruttore());
@ -474,19 +426,15 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
} }
writeJSON(request, response, jsonArray);
writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("geologo".equals(id)) { } else if ("geologo".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user
.getUserId()); .getUserId());
List<User> geologi = new ArrayList<User>(); List<User> geologi = new ArrayList<User>();
for (Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_geologo"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_geologo");
List<User> geologiUsers = UserLocalServiceUtil.getRoleUsers(role.getRoleId()); List<User> geologiUsers = UserLocalServiceUtil.getRoleUsers(role.getRoleId());
for (User userGroupRole : geologiUsers) { for (User userGroupRole : geologiUsers) {
if (geologi.isEmpty()) { if (geologi.isEmpty()) {
geologi.add(userGroupRole); geologi.add(userGroupRole);
@ -504,23 +452,19 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
} }
} }
} }
for (User geo : geologi) { for (User geo : geologi) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("geologoId", geo.getUserId()); jsonObject.put("geologoId", geo.getUserId());
jsonObject.put("descLong", geo.getFullName()); jsonObject.put("descLong", geo.getFullName());
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(request, response, jsonArray);
writeJSON(resourceRequest, resourceResponse, jsonArray);
} }
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
throw new IOException(e); throw new IOException(e);
} }
ServletResponseUtil.sendFile(httpRequest, httpResponse, "export_pratiche.csv", csv.getBytes(StringPool.UTF8),
ServletResponseUtil.sendFile(request, response, "export_pratiche.csv", csv.getBytes(StringPool.UTF8),
ContentTypes.TEXT_CSV_UTF8); ContentTypes.TEXT_CSV_UTF8);
} }

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

@ -34,8 +34,10 @@ import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set;
import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock;
@ -255,14 +257,15 @@ public class SchedulerInvioDocumento implements MessageListener {
Soggetto committentePrincipale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( Soggetto committentePrincipale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(
intPraticaId, dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); intPraticaId, dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE);
if (null == committentePrincipale) { if (null == committentePrincipale) {
_log.error("inviaMailNotifica: il committente principale non esiste, intPraticaId = " + intPraticaId); _log.error("Il committente principale non esiste, intPraticaId = " + intPraticaId);
} else { } else {
soggetti.remove(committentePrincipale); soggetti.remove(committentePrincipale);
} }
String[] to = new String[soggetti.size()]; Set<String> sTo = new HashSet<>();
for (int i = 0; i < to.length; i++) { for (Soggetto soggetto : soggetti) {
to[i] = soggetti.get(i).getEmail(); sTo.add(soggetto.getEmail());
} }
String[] to = sTo.toArray(new String[sTo.size()]);
String[] cc = new String[0]; String[] cc = new String[0];
String[] ccn = new String[0]; String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK; String tipoPratica = StringPool.BLANK;

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

@ -133,7 +133,7 @@ public class ParereGeologoLocalServiceClpInvoker {
_methodName170 = "addParereGeologo"; _methodName170 = "addParereGeologo";
_methodParameterTypes170 = new String[] { _methodParameterTypes170 = new String[] {
"long", "long", "long", "java.lang.String", "int", "long", "long", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -182,29 +182,49 @@ public class ParereGeologoLocalServiceClpInvoker {
_methodParameterTypes179 = new String[] { "long" }; _methodParameterTypes179 = new String[] { "long" };
_methodName180 = "countByGeologoIdInCorso"; _methodName180 = "findByUserDaApprovare";
_methodParameterTypes180 = new String[] { "long" }; _methodParameterTypes180 = new String[] {
"com.liferay.portal.model.User", "int", "int"
};
_methodName181 = "findByGeologoIdInCorso"; _methodName181 = "countByUserDaApprovare";
_methodParameterTypes181 = new String[] { "long", "int", "int" }; _methodParameterTypes181 = new String[] { "com.liferay.portal.model.User" };
_methodName182 = "findByCompanyIdGroupId"; _methodName182 = "findByUserDaAssegnare";
_methodParameterTypes182 = new String[] { "long", "long" }; _methodParameterTypes182 = new String[] {
"com.liferay.portal.model.User", "int", "int"
};
_methodName183 = "findWithParereByGeologoId"; _methodName183 = "countByUserDaAssegnare";
_methodParameterTypes183 = new String[] { "long", "int", "int" }; _methodParameterTypes183 = new String[] { "com.liferay.portal.model.User" };
_methodName184 = "countFindWithParereByGeologoId"; _methodName184 = "countByGeologoIdInCorso";
_methodParameterTypes184 = new String[] { "long" }; _methodParameterTypes184 = new String[] { "long" };
_methodName185 = "getCarichiLavoro"; _methodName185 = "findByGeologoIdInCorso";
_methodParameterTypes185 = new String[] { "long", "int", "int" };
_methodName186 = "findByCompanyIdGroupId";
_methodParameterTypes186 = new String[] { "long", "long" };
_methodName187 = "findWithParereByGeologoId";
_methodParameterTypes185 = new String[] { "long", "int" }; _methodParameterTypes187 = new String[] { "long", "int", "int" };
_methodName188 = "countFindWithParereByGeologoId";
_methodParameterTypes188 = new String[] { "long" };
_methodName189 = "getCarichiLavoro";
_methodParameterTypes189 = new String[] { "long", "int" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -334,11 +354,12 @@ public class ParereGeologoLocalServiceClpInvoker {
if (_methodName170.equals(name) && if (_methodName170.equals(name) &&
Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) {
return ParereGeologoLocalServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.addParereGeologo(((Integer)arguments[0]).intValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue(), ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3], ((Long)arguments[3]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[4]); (java.lang.String)arguments[4],
(com.liferay.portal.service.ServiceContext)arguments[5]);
} }
if (_methodName171.equals(name) && if (_methodName171.equals(name) &&
@ -395,36 +416,60 @@ public class ParereGeologoLocalServiceClpInvoker {
if (_methodName180.equals(name) && if (_methodName180.equals(name) &&
Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.findByUserDaApprovare((com.liferay.portal.model.User)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
} }
if (_methodName181.equals(name) && if (_methodName181.equals(name) &&
Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countByUserDaApprovare((com.liferay.portal.model.User)arguments[0]);
}
if (_methodName182.equals(name) &&
Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findByUserDaAssegnare((com.liferay.portal.model.User)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName183.equals(name) &&
Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countByUserDaAssegnare((com.liferay.portal.model.User)arguments[0]);
}
if (_methodName184.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue());
}
if (_methodName185.equals(name) &&
Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findByGeologoIdInCorso(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findByGeologoIdInCorso(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName182.equals(name) && if (_methodName186.equals(name) &&
Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue()); ((Long)arguments[1]).longValue());
} }
if (_methodName183.equals(name) && if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName184.equals(name) && if (_methodName188.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName185.equals(name) && if (_methodName189.equals(name) &&
Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue()); ((Integer)arguments[1]).intValue());
} }
@ -508,4 +553,12 @@ public class ParereGeologoLocalServiceClpInvoker {
private String[] _methodParameterTypes184; private String[] _methodParameterTypes184;
private String _methodName185; private String _methodName185;
private String[] _methodParameterTypes185; private String[] _methodParameterTypes185;
private String _methodName186;
private String[] _methodParameterTypes186;
private String _methodName187;
private String[] _methodParameterTypes187;
private String _methodName188;
private String[] _methodParameterTypes188;
private String _methodName189;
private String[] _methodParameterTypes189;
} }

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

@ -35,7 +35,7 @@ public class ParereGeologoServiceClpInvoker {
_methodName150 = "addParereGeologo"; _methodName150 = "addParereGeologo";
_methodParameterTypes150 = new String[] { _methodParameterTypes150 = new String[] {
"long", "long", "long", "java.lang.String", "int", "long", "long", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -77,11 +77,12 @@ public class ParereGeologoServiceClpInvoker {
if (_methodName150.equals(name) && if (_methodName150.equals(name) &&
Arrays.deepEquals(_methodParameterTypes150, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes150, parameterTypes)) {
return ParereGeologoServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), return ParereGeologoServiceUtil.addParereGeologo(((Integer)arguments[0]).intValue(),
((Long)arguments[1]).longValue(), ((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue(), ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3], ((Long)arguments[3]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[4]); (java.lang.String)arguments[4],
(com.liferay.portal.service.ServiceContext)arguments[5]);
} }
if (_methodName151.equals(name) && if (_methodName151.equals(name) &&

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java

@ -63,13 +63,14 @@ import java.rmi.RemoteException;
*/ */
public class ParereGeologoServiceSoap { public class ParereGeologoServiceSoap {
public static it.tref.liferay.portos.bo.model.ParereGeologoSoap addParereGeologo( public static it.tref.liferay.portos.bo.model.ParereGeologoSoap addParereGeologo(
long geologoUserId, long intPraticaId, long dettPraticaId, int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
java.lang.String noteRichiedente, java.lang.String noteRichiedente,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException { throws RemoteException {
try { try {
it.tref.liferay.portos.bo.model.ParereGeologo returnValue = ParereGeologoServiceUtil.addParereGeologo(geologoUserId, it.tref.liferay.portos.bo.model.ParereGeologo returnValue = ParereGeologoServiceUtil.addParereGeologo(unitaOperativa,
intPraticaId, dettPraticaId, noteRichiedente, serviceContext); userId, intPraticaId, dettPraticaId, noteRichiedente,
serviceContext);
return it.tref.liferay.portos.bo.model.ParereGeologoSoap.toSoapModel(returnValue); return it.tref.liferay.portos.bo.model.ParereGeologoSoap.toSoapModel(returnValue);
} }

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

@ -71,6 +71,7 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa
throws SystemException, PortalException { throws SystemException, PortalException {
synchronized (Configurazione.class) { synchronized (Configurazione.class) {
Date now = new Date();
Configurazione configurazione = null; Configurazione configurazione = null;
try { try {
configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave); configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave);
@ -79,12 +80,13 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa
configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName()));
configurazione.setChiave(chiave); configurazione.setChiave(chiave);
configurazione.setCompanyId(serviceContext.getCompanyId()); configurazione.setCompanyId(serviceContext.getCompanyId());
configurazione.setCreateDate(new Date()); configurazione.setCreateDate(now);
configurazione.setGroupId(serviceContext.getScopeGroupId()); configurazione.setGroupId(serviceContext.getScopeGroupId());
configurazione.setUserId(serviceContext.getUserId()); configurazione.setUserId(serviceContext.getUserId());
configurazione.setUserName(userLocalService.getUser(serviceContext.getUserId()).getFullName()); configurazione.setUserName(userLocalService.getUser(serviceContext.getUserId()).getFullName());
} }
configurazione.setValore(valore); configurazione.setValore(valore);
configurazione.setModifiedDate(now);
return updateConfigurazione(configurazione); return updateConfigurazione(configurazione);
} }
} }

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

@ -12,6 +12,7 @@ import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean;
import it.mwg.sismica.bo.shared.util.AvvisoUtil; import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.Generics; import it.mwg.sismica.bo.shared.util.Generics;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.mwg.sismica.bo.shared.util.UserUtil;
import it.mwg.sismica.bo.util.CarichiLavoroUtil; import it.mwg.sismica.bo.util.CarichiLavoroUtil;
import it.mwg.sismica.bo.util.SismicaUtil; import it.mwg.sismica.bo.util.SismicaUtil;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
@ -38,7 +39,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.TreeMap; import java.util.TreeMap;
import java.util.TreeSet;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -422,19 +422,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId);
int unitaOperativa = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()) int unitaOperativa = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId())
.getUnitaOperativa(); .getUnitaOperativa();
long roleId = RoleLocalServiceUtil.getRole(controlloPratica.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE)
.getRoleId();
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
controlloPratica.getGroupId(), roleId);
List<JSONObject> istruttori = new ArrayList<>(); List<JSONObject> istruttori = new ArrayList<>();
if (unitaOperativa == 0) { if (unitaOperativa == 0) {
Set<Integer> unitaOperative = new TreeSet<>(); Set<Integer> unitaOperative = UnitaOperativeUtil.getUnitaOperative(controlloPratica.getCompanyId(),
for (UserGroupRole userGroupRole : userGroupRoles) { controlloPratica.getGroupId(), Constants.ROLE_NAME_ISTRUTTORE);
User user = userGroupRole.getUser();
unitaOperative.addAll(UnitaOperativeUtil.getUnitaOperative(user));
}
for (Integer uo : unitaOperative) { for (Integer uo : unitaOperative) {
if (0 != uo) { if (uo != 0) {
JSONObject unita = JSONFactoryUtil.createJSONObject(); JSONObject unita = JSONFactoryUtil.createJSONObject();
unita.put("label", " > Unità operativa " + uo); unita.put("label", " > Unità operativa " + uo);
unita.put("value", "--UO--" + uo); unita.put("value", "--UO--" + uo);
@ -444,9 +437,13 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
} }
Map<String, JSONObject> ordinati = new TreeMap<>(); Map<String, JSONObject> ordinati = new TreeMap<>();
long roleId = RoleLocalServiceUtil.getRole(controlloPratica.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE)
.getRoleId();
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
controlloPratica.getGroupId(), roleId);
for (UserGroupRole userGroupRole : userGroupRoles) { for (UserGroupRole userGroupRole : userGroupRoles) {
User user = userGroupRole.getUser(); User user = userGroupRole.getUser();
List<Integer> uo = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> uo = UserUtil.getUnitaOperative(user);
if ((unitaOperativa == 0) || uo.contains(unitaOperativa)) { if ((unitaOperativa == 0) || uo.contains(unitaOperativa)) {
JSONObject istruttore = JSONFactoryUtil.createJSONObject(); JSONObject istruttore = JSONFactoryUtil.createJSONObject();
istruttore.put( istruttore.put(

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

@ -11,7 +11,7 @@ package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.AvvisoUtil; import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.NoSuchIntPraticaException;
import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.AllegatoManuale;
@ -821,14 +821,16 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
Date now = new Date(); Date now = new Date();
try { try {
for (Avviso avviso : avvisoLocalService.findByIntPratica_Inviato(intPraticaId, AvvisoUtil.DOCUMENTO_NON_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { for (Avviso avviso : avvisoLocalService.findByIntPratica_Inviato(intPraticaId,
if(!avviso.isRifiutato() && avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_FIRMA)){ AvvisoUtil.DOCUMENTO_NON_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
if (!avviso.isRifiutato() && avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_FIRMA)) {
avviso.setAnnullato(true); avviso.setAnnullato(true);
avviso.persist(); avviso.persist();
} }
} }
} catch (Exception e) { } catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile annulare gli avvisi (intpraticaid="+intPraticaId+")"); _log.error("Errore in annullamento pratica - Impossibile annulare gli avvisi (intpraticaid=" + intPraticaId
+ ")");
} }
intPratica.setModifiedDate(now); intPratica.setModifiedDate(now);
intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA); intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA);
@ -879,12 +881,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException,
SystemException { SystemException {
List<Integer> uo = UnitaOperativeUtil.getUnitaOperative(userLocalService.getUser(istruttoreId));
ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId);
IntPratica intPratica = getIntPratica(intPraticaId); IntPratica intPratica = getIntPratica(intPraticaId);
intPratica.setStatusByUserId(istruttoreId); intPratica.setStatusByUserId(istruttoreId);
intPratica.setStatusDate(new Date()); intPratica.setStatusDate(new Date());
intPratica.setUnitaOperativa(uo.get(uo.size() - 1)); User istruttore = userLocalService.getUser(istruttoreId);
intPratica.setUnitaOperativa(UserUtil.getUnitaOperative(istruttore).last());
intPratica = updateIntPratica(intPratica); intPratica = updateIntPratica(intPratica);
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId);
User user = PermissionThreadLocal.getPermissionChecker().getUser(); User user = PermissionThreadLocal.getPermissionChecker().getUser();

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

@ -9,6 +9,7 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean; import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean;
import it.mwg.sismica.bo.shared.util.UserUtil;
import it.mwg.sismica.bo.util.CarichiLavoroUtil; import it.mwg.sismica.bo.util.CarichiLavoroUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
@ -30,6 +31,8 @@ import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
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;
@ -62,23 +65,39 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
* it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil} to access the parere geologo local service. * it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil} to access the parere geologo local service.
*/ */
private static final Log _log = LogFactoryUtil.getLog(ParereGeologoLocalServiceImpl.class);
@Override @Override
public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, public ParereGeologo addParereGeologo(int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
String noteRichiedente, ServiceContext serviceContext) throws SystemException, PortalException { String noteRichiedente, ServiceContext serviceContext) throws SystemException, PortalException {
long parereGeologoId = counterLocalService.increment(ParereGeologo.class.getName()); long geologoUserId = 0;
ParereGeologo parereGeologo = parereGeologoPersistence.create(parereGeologoId); long assegnatoreUserId = 0;
if (unitaOperativa < 0) {
unitaOperativa = intPraticaLocalService.getIntPratica(intPraticaId).getUnitaOperativa();
assegnatoreUserId = serviceContext.getUserId();
geologoUserId = userId;
} else {
assegnatoreUserId = userId;
}
ParereGeologo parereGeologo = parereGeologoPersistence.create(counterLocalService.increment(ParereGeologo.class
.getName()));
parereGeologo.setCompanyId(serviceContext.getCompanyId()); parereGeologo.setCompanyId(serviceContext.getCompanyId());
User user = userLocalService.getUser(serviceContext.getUserId()); User user = userLocalService.getUser(serviceContext.getUserId());
parereGeologo.setUserId(user.getUserId()); parereGeologo.setUserId(user.getUserId());
parereGeologo.setUserName(user.getScreenName()); parereGeologo.setUserName(user.getFullName());
parereGeologo.setCreateDate(serviceContext.getCreateDate()); parereGeologo.setCreateDate(serviceContext.getCreateDate());
parereGeologo.setModifiedDate(serviceContext.getModifiedDate()); parereGeologo.setModifiedDate(serviceContext.getModifiedDate());
parereGeologo.setGroupId(serviceContext.getScopeGroupId()); parereGeologo.setGroupId(intPraticaLocalService.getIntPratica(intPraticaId).getGroupId());
parereGeologo.setIntPraticaId(intPraticaId); parereGeologo.setIntPraticaId(intPraticaId);
parereGeologo.setDettPraticaId(dettPraticaId); parereGeologo.setDettPraticaId(dettPraticaId);
parereGeologo.setUnitaOperativa(unitaOperativa);
parereGeologo.setGeologoUserId(geologoUserId); parereGeologo.setGeologoUserId(geologoUserId);
parereGeologo.setDtRichista(new Date()); parereGeologo.setAssegnatoreUserId(assegnatoreUserId);
if (geologoUserId != 0) {
parereGeologo.setDtAssegnazione(serviceContext.getModifiedDate());
}
parereGeologo.setDtRichista(serviceContext.getCreateDate());
parereGeologo.setNoteRichiedente(noteRichiedente); parereGeologo.setNoteRichiedente(noteRichiedente);
return parereGeologoPersistence.update(parereGeologo); return parereGeologoPersistence.update(parereGeologo);
} }
@ -118,7 +137,6 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
now.getTime() + StringPool.UNDERLINE + fileName, mimeType, title, description, changeLog, now.getTime() + StringPool.UNDERLINE + fileName, mimeType, title, description, changeLog,
content, serviceContext); content, serviceContext);
fileEntryId = fileEntry.getFileEntryId(); fileEntryId = fileEntry.getFileEntryId();
parereGeologo.setFileEntryId(fileEntryId); parereGeologo.setFileEntryId(fileEntryId);
} }
return updateParereGeologo(parereGeologo); return updateParereGeologo(parereGeologo);
@ -187,6 +205,42 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.countByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, null, null); return parereGeologoPersistence.countByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, null, null);
} }
@Override
public List<ParereGeologo> findByUserDaApprovare(User user, int start, int end) throws SystemException {
return parereGeologoPersistence
.findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user),
new long[] { 0L, user.getUserId() }, null, null, null, start, end,
OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtCompilazione", false));
}
@Override
public int countByUserDaApprovare(User user) throws SystemException {
return parereGeologoPersistence
.countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(
UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user),
new long[] { 0L, user.getUserId() }, null, null, null);
}
@Override
public List<ParereGeologo> findByUserDaAssegnare(User user, int start, int end) throws SystemException {
return parereGeologoPersistence.findByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L,
new long[] { 0L, user.getUserId() }, null, null, start, end,
OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtRichista", false));
}
@Override
public int countByUserDaAssegnare(User user) throws SystemException {
return parereGeologoPersistence.countByGroup_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento(
UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L,
new long[] { 0L, user.getUserId() }, null, null);
}
@Override @Override
public int countByGeologoIdInCorso(long geologoUserId) throws SystemException { public int countByGeologoIdInCorso(long geologoUserId) throws SystemException {

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

@ -42,14 +42,14 @@ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl {
*/ */
@Override @Override
public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, public ParereGeologo addParereGeologo(int unitaOperativa, long userId, long intPraticaId, long dettPraticaId,
String noteRichiedente, ServiceContext serviceContext) throws SystemException, PortalException { String noteRichiedente, ServiceContext serviceContext) throws SystemException, PortalException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId());
IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO); IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO);
return parereGeologoLocalService.addParereGeologo(geologoUserId, intPraticaId, dettPraticaId, noteRichiedente, return parereGeologoLocalService.addParereGeologo(unitaOperativa, userId, intPraticaId, dettPraticaId,
serviceContext); noteRichiedente, serviceContext);
} }
@Override @Override

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

File diff soppresso perché troppo grande Load Diff

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

@ -1,4 +1,5 @@
application.startup.events=\ application.startup.events=\
it.mwg.sismica.bo.startup.DatabaseUpdateAction,\
it.tref.liferay.portos.bo.startup.RoleUpdateAction,\ it.tref.liferay.portos.bo.startup.RoleUpdateAction,\
it.tref.liferay.portos.bo.startup.KaleoListenereStartupAction,\ it.tref.liferay.portos.bo.startup.KaleoListenereStartupAction,\
it.tref.liferay.portos.bo.startup.CompanyExpandoStartupAction it.tref.liferay.portos.bo.startup.CompanyExpandoStartupAction

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=3468 build.number=3510
build.date=1634740817864 build.date=1635413295815
build.auto.upgrade=true build.auto.upgrade=true
## ##

71
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp

@ -1,3 +1,4 @@
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%>
@ -62,7 +63,7 @@ List<ParereGeologo> pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in
<liferay-ui:icon url="<%= carichiDiLavoroGeologo %>" useDialog="true" message="visualizza-carichi-di-lavoro" <liferay-ui:icon url="<%= carichiDiLavoroGeologo %>" useDialog="true" message="visualizza-carichi-di-lavoro"
linkCssClass="btn btn-rounded" iconCssClass="icon-bar-chart" /> linkCssClass="btn btn-rounded" iconCssClass="icon-bar-chart" />
<p class="text_attivita"> <p class="text_attivita">
<strong>Parere Endoprocedimentale: </strong> <strong>Pareri endoprocedimentali:</strong>
</p> </p>
</div> </div>
<ul class="list-geo"> <ul class="list-geo">
@ -70,35 +71,65 @@ List<ParereGeologo> pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in
if (pareri.isEmpty()) { if (pareri.isEmpty()) {
out.print("nessun parere richiesto"); out.print("nessun parere richiesto");
} else { } else {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
for (ParereGeologo parere : pareri) { for (ParereGeologo parere : pareri) {
User geologo = UserLocalServiceUtil.getUser(parere.getGeologoUserId()); StringBuilder fullName = new StringBuilder();
if (parere.getUnitaOperativa() != 0) {
fullName.append("U.O. ").append(parere.getUnitaOperativa());
}
if (parere.getGeologoUserId() != 0) {
if (fullName.length() > 0) {
fullName.append(" - ");
}
fullName.append(UserLocalServiceUtil.getUser(parere.getGeologoUserId()).getFullName());
}
User richiedente = UserLocalServiceUtil.getUser(parere.getUserId()); User richiedente = UserLocalServiceUtil.getUser(parere.getUserId());
User assegnatore = parere.getAssegnatoreUserId() == 0 ? null
: UserLocalServiceUtil.getUser(parere.getAssegnatoreUserId());
User geologo = parere.getGeologoUserId() == 0 ? null
: UserLocalServiceUtil.getUser(parere.getGeologoUserId());
User annullante = parere.getUserIdAnnullamento() == 0 ? null
: UserLocalServiceUtil.getUser(parere.getUserIdAnnullamento());
%> %>
<li> <li>
<c:choose> <c:choose>
<c:when test="<%= Validator.isNotNull(parere.getDtAnnullamento()) %>"> <c:when test="<%= Validator.isNotNull(parere.getDtAnnullamento()) %>">
<i class="fa icon-remove text-error"></i> <i class="fa icon-remove text-error" title="Richiesta annullata"></i>
</c:when> </c:when>
<c:when test="<%= Validator.isNotNull(parere.getDtCompilazione()) %>"> <c:when test="<%= Validator.isNotNull(parere.getDtCompilazione()) %>">
<i class="fa icon-ok text-success"></i> <i class="fa icon-ok text-success" title="Parere espresso"></i>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<i class="fa icon-time text-info"></i> <i class="fa icon-time text-info" title="Parere non espresso"></i>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<strong><%= geologo.getFullName() %></strong>, <c:if test="<%= Validator.isNotNull(parere.getNoteRichiedente()) %>">
richiesto da <strong><%= richiedente.getFullName() %></strong> Note del richiedente: <%= parere.getNoteRichiedente() %><br />
</c:if>
<c:if test="<%= richiedente.getUserId() != parere.getAssegnatoreUserId() %>">
Richiesto da <strong><%= Generics.capitalizeFull(richiedente.getFullName()) %></strong>
<c:if test="<%= parere.getUnitaOperativa() != 0 %>">
a <%= assegnatore == null ? "tutti gli assegnatori"
: "<strong>" + Generics.capitalizeFull(assegnatore.getFullName()) + "</strong>" %>
di U.O. <%= parere.getUnitaOperativa() %>
</c:if>
<c:if test="<%= Validator.isNotNull(parere.getDtRichista()) %>"> <c:if test="<%= Validator.isNotNull(parere.getDtRichista()) %>">
in data <strong><%= sdf.format(parere.getDtRichista()) %></strong> in data <%= dateFormatDateTime.format(parere.getDtRichista()) %>
</c:if> </c:if>
<c:if test="<%= Validator.isNotNull(parere.getNoteRichiedente()) %>"> <br />
con le seguenti <strong>note</strong>: <%= parere.getNoteRichiedente() %> </c:if>
<c:if test="<%= assegnatore != null && geologo != null %>">
Assegnato da <strong><%= Generics.capitalizeFull(assegnatore.getFullName()) %></strong>
a <strong><%= Generics.capitalizeFull(geologo.getFullName()) %></strong>
<c:if test="<%= Validator.isNotNull(parere.getDtAssegnazione()) %>">
in data <%= dateFormatDateTime.format(parere.getDtAssegnazione()) %>
</c:if>
<br />
</c:if> </c:if>
<br/>
<c:if test="<%= Validator.isNotNull(parere.getDtCompilazione()) %>"> <c:if test="<%= Validator.isNotNull(parere.getDtCompilazione()) %>">
Parere espresso in data <strong><%= sdf.format(parere.getDtCompilazione()) %></strong>: Espresso da <strong><%= Generics.capitalizeFull(geologo.getFullName()) %></strong>
<%= parere.getParere() %> in data <%= dateFormatDateTime.format(parere.getDtCompilazione()) %>
<br />
<strong>Parere:</strong> <%= parere.getParere() %>
<c:if test="<%= Validator.isNotNull(parere.getFileEntryId()) %>"> <c:if test="<%= Validator.isNotNull(parere.getFileEntryId()) %>">
<% <%
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parere.getFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parere.getFileEntryId());
@ -110,15 +141,9 @@ List<ParereGeologo> pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in
cssClass="download_container" /> cssClass="download_container" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= Validator.isNull(parere.getDtCompilazione()) %>"> <c:if test="<%= annullante != null %>">
Parere non espresso <br/>Annullato da <strong><%= Generics.capitalizeFull(annullante.getFullName()) %></strong>
</c:if> in data <%= dateFormatDateTime.format(parere.getDtAnnullamento()) %>
<c:if test="<%= Validator.isNotNull(parere.getDtAnnullamento()) %>">
<%
User annullante = UserLocalServiceUtil.getUser(parere.getUserIdAnnullamento());
%>
<br/>Richiesta annullata da <strong><%= annullante.getFullName() %></strong>
in data <strong><%= sdf.format(parere.getDtAnnullamento()) %></strong>
con motivazioni: <%= parere.getNoteAnnullamento() %> con motivazioni: <%= parere.getNoteAnnullamento() %>
</c:if> </c:if>
</li> </li>

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp

@ -40,7 +40,7 @@ long lastDettPraticaId = DettPraticaLocalServiceUtil.getLastCompletedByIntPratic
intPratica.getIntPraticaId()).getDettPraticaId(); intPratica.getIntPraticaId()).getDettPraticaId();
String randomId = StringUtil.randomId(); String randomId = StringUtil.randomId();
String buttonIdCambioIstruttore = "buttonIdCambioIstruttore_" + randomId; String buttonIdCambioIstruttore = "buttonIdCambioIstruttore_" + randomId;
String buttonIdSelezionaGeologo = "buttonIdSelezionaGeologo_" + randomId; String buttonIdRichiediParere = "buttonIdRichiediParere_" + randomId;
String buttonIdAnnullaRicGeologo = "buttonIdAnnullaRicGeologo_" + randomId; String buttonIdAnnullaRicGeologo = "buttonIdAnnullaRicGeologo_" + randomId;
String buttonIdAggiungiDettPraticheAlControllo = "buttonIdAggiungiDettPraticheAlControllo_" + randomId; String buttonIdAggiungiDettPraticheAlControllo = "buttonIdAggiungiDettPraticheAlControllo_" + randomId;
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
@ -123,17 +123,17 @@ long territorioGroupId = territorio.getGroupId();
<c:if test="<%= listaTask.get(0).getName().equalsIgnoreCase( <c:if test="<%= listaTask.get(0).getName().equalsIgnoreCase(
WorkflowConstants.WORKFLOW_TASKNAME_ASSEGNAZIONE) WorkflowConstants.WORKFLOW_TASKNAME_ASSEGNAZIONE)
|| listaTask.get(0).getName().equalsIgnoreCase(WorkflowConstants.WORKFLOW_TASKNAME_ESITO) %>"> || listaTask.get(0).getName().equalsIgnoreCase(WorkflowConstants.WORKFLOW_TASKNAME_ESITO) %>">
<liferay-util:include page="/html/gestioneattivita/actions/action_seleziona_geologo.jsp" <liferay-util:include servletContext="<%= application %>"
servletContext="<%= application %>" > page="/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp">
<liferay-util:param name="intPraticaId" <liferay-util:param name="intPraticaId"
value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-util:param name="dettPraticaId" <liferay-util:param name="dettPraticaId"
value="<%= String.valueOf(controlloPratica.getDettPraticaId()) %>" /> value="<%= String.valueOf(controlloPratica.getDettPraticaId()) %>" />
<liferay-util:param name="buttonIdSelezionaGeologo" value="<%= buttonIdSelezionaGeologo %>" /> <liferay-util:param name="buttonIdRichiediParere" value="<%= buttonIdRichiediParere %>" />
</liferay-util:include> </liferay-util:include>
<div title='<%= LanguageUtil.get(pageContext, "fascicolo-action-seleziona-geologo") %>' <div title='<%= LanguageUtil.get(pageContext, "fascicolo-action-seleziona-geologo") %>'
class="tooltip-info"> class="tooltip-info">
<liferay-ui:icon id="<%= buttonIdSelezionaGeologo %>" linkCssClass="btn btn-action" <liferay-ui:icon id="<%= buttonIdRichiediParere %>" linkCssClass="btn btn-action"
iconCssClass="fa fa-globe" message="" url="#" /> iconCssClass="fa fa-globe" message="" url="#" />
</div> </div>
</c:if> </c:if>

67
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp

@ -0,0 +1,67 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="java.util.Map"%>
<%@include file="/html/gestioneattivita/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
String buttonIdRichiediParere = ParamUtil.getString(request, "buttonIdRichiediParere");
String randomId = StringUtil.randomId();
String formNameRichiediParere = "formNameRichiediParere_" + randomId;
String divIdRichiediParere = "divIdRichiediParere_" + randomId;
Map<String, User> lista = intPratica.getGeologiPerParere();
%>
<liferay-portlet:actionURL name="aggiungiRichiestaParere" var="aggiungiRichiestaParereURL">
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-util:param name="redirect" value="<%= currentURL %>" />
</liferay-portlet:actionURL>
<aui:form name="<%= formNameRichiediParere %>" method="post" action="<%= aggiungiRichiestaParereURL %>">
<div id='<%= renderResponse.getNamespace() + divIdRichiediParere %>' class="hide">
<aui:select name="destinatario" label="" required="true">
<aui:option label="Seleziona destinatario" value="" />
<%
for (String chiave : lista.keySet()) {
User geologo = lista.get(chiave);
int unitaOperativa = Integer.valueOf(chiave.substring(0, 3));
String label;
String value;
String style = StringPool.BLANK;
if (Validator.isNull(geologo)) {
label = "U.O. " + unitaOperativa + ": tutti gli assegnatori";
value = unitaOperativa + "|0";
style = "font-weight:bold";
} else {
label = Generics.capitalizeFull(geologo.getFullName()) + " - "
+ geologo.getScreenName().toLowerCase();
if (unitaOperativa == intPratica.getUnitaOperativa()) {
value = "-1|" + String.valueOf(geologo.getUserId());
} else {
value = unitaOperativa + StringPool.PIPE + String.valueOf(geologo.getUserId());
}
}
%>
<aui:option style="<%= style %>" label='<%= label %>' value="<%= value %>" />
<%
}
%>
</aui:select>
<br />
<aui:input name="noteRichiedente" type="textarea" />
</div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>">
<liferay-util:param name="formName" value="<%= formNameRichiediParere %>" />
<liferay-util:param name="titolo" value="Richiedi parere endoprocedimentale" />
<liferay-util:param name="buttonId" value="<%= buttonIdRichiediParere %>" />
<liferay-util:param name="buttonConferma" value="CONFERMA" />
<liferay-util:param name="contentDiv" value="<%= divIdRichiediParere %>" />
<liferay-util:param name="width" value="500" />
<liferay-util:param name="buttonBar" value="true" />
</liferay-util:include>
</aui:form>

19
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_annulla_ric_geologo.jsp

@ -1,9 +1,7 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="java.util.ArrayList"%>
<%@include file="/html/gestioneattivita/init.jsp"%> <%@include file="/html/gestioneattivita/init.jsp"%>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
@ -23,18 +21,21 @@ List<ParereGeologo> pareri = ParereGeologoLocalServiceUtil.findByIntPraticaIdInC
<aui:form name="<%= formNameAnnullaRicGeologo %>" method="post" action="<%= annullaRichiestaParereGeologoUrl %>" > <aui:form name="<%= formNameAnnullaRicGeologo %>" method="post" action="<%= annullaRichiestaParereGeologoUrl %>" >
<div id='<%= renderResponse.getNamespace() + divIdAnnullaRicGeologo %>' class="hide" > <div id='<%= renderResponse.getNamespace() + divIdAnnullaRicGeologo %>' class="hide" >
<aui:select name="parereGeologoId" label="<%=StringPool.BLANK %>" required="true"> <aui:select name="parereGeologoId" label="<%=StringPool.BLANK %>" required="true">
<aui:option label="Seleziona funzionario" value="" /> <aui:option label="Seleziona parere" value="" />
<% <%
for (ParereGeologo parere : pareri) { for (ParereGeologo parere : pareri) {
if (Validator.isNull(parere.getDtCompilazione())) { if (Validator.isNull(parere.getDtCompilazione())) {
String fullName;
if (parere.getGeologoUserId() != 0) {
User geologo = UserLocalServiceUtil.getUser(parere.getGeologoUserId()); User geologo = UserLocalServiceUtil.getUser(parere.getGeologoUserId());
List<Organization> listaOrganizzazioni = OrganizationLocalServiceUtil.getUserOrganizations(geologo List<Organization> listaOrganizzazioni = OrganizationLocalServiceUtil
.getUserId()); .getUserOrganizations(geologo.getUserId());
StringBuilder sb = new StringBuilder(); fullName = geologo.getFullName();
sb.append(geologo.getFullName()).append(" - ") } else {
.append(ListUtil.toString(listaOrganizzazioni, "name", StringPool.COMMA_AND_SPACE)); fullName = "U.O. " + parere.getUnitaOperativa();
}
%> %>
<aui:option label="<%= sb.toString() %>" value="<%= parere.getParereGeologoId() %>" /> <aui:option label="<%= fullName %>" value="<%= parere.getParereGeologoId() %>" />
<% <%
} }
} }

16
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp

@ -1,12 +1,14 @@
<%@page import="org.apache.commons.collections4.CollectionUtils"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.model.UserGroupRole"%> <%@page import="com.liferay.portal.model.UserGroupRole"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.UnitaOperativeUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%>
<%@page import="java.util.Map"%> <%@page import="java.util.Map"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.TreeMap"%> <%@page import="java.util.TreeMap"%>
<%@page import="org.apache.commons.collections4.CollectionUtils"%>
<%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="org.apache.commons.lang.StringUtils"%>
<%@include file="/html/gestioneattivita/init.jsp"%> <%@include file="/html/gestioneattivita/init.jsp"%>
<% <%
@ -22,12 +24,12 @@ User istruttoreAttuale = UserLocalServiceUtil.getUser(intPratica.getStatusByUser
Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE); Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil
.getUserGroupRolesByGroupAndRole(controlloPratica.getGroupId(), role.getRoleId()); .getUserGroupRolesByGroupAndRole(controlloPratica.getGroupId(), role.getRoleId());
List<Integer> uoUser = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> uoUser = UserUtil.getUnitaOperative(user);
Map<String, User> istruttori = new TreeMap<String, User>(); Map<String, User> istruttori = new TreeMap<String, User>();
for (UserGroupRole userGroupRole: userGroupRoles) { for (UserGroupRole userGroupRole: userGroupRoles) {
if (userGroupRole.getUserId() != istruttoreAttuale.getUserId()) { if (userGroupRole.getUserId() != istruttoreAttuale.getUserId()) {
User istruttore = UserLocalServiceUtil.getUser(userGroupRole.getUserId()); User istruttore = UserLocalServiceUtil.getUser(userGroupRole.getUserId());
List<Integer> uoIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); Set<Integer> uoIstruttore = UserUtil.getUnitaOperative(istruttore);
if (CollectionUtils.containsAny(uoUser, uoIstruttore) || uoUser.contains(0)) { if (CollectionUtils.containsAny(uoUser, uoIstruttore) || uoUser.contains(0)) {
istruttori.put((istruttore.getLastName() + StringPool.SPACE + istruttore.getFirstName()).toUpperCase(), istruttori.put((istruttore.getLastName() + StringPool.SPACE + istruttore.getFirstName()).toUpperCase(),
istruttore); istruttore);
@ -48,10 +50,10 @@ for (UserGroupRole userGroupRole: userGroupRoles) {
<aui:select name="istruttoreId" label="" showEmptyOption="true" required="true"> <aui:select name="istruttoreId" label="" showEmptyOption="true" required="true">
<% <%
for (User istruttore : istruttori.values()) { for (User istruttore : istruttori.values()) {
List<Integer> uoIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); Set<Integer> uoIstruttore = UserUtil.getUnitaOperative(istruttore);
String nominativo = istruttore.getFullName() + " (u.o. " String nominativo = Generics.capitalizeFull(istruttore.getFullName()) + " (u.o. "
+ StringUtils.join(uoIstruttore, StringPool.COMMA_AND_SPACE) + ") - " + StringUtils.join(uoIstruttore, StringPool.COMMA_AND_SPACE) + ") - "
+ istruttore.getScreenName(); + istruttore.getScreenName().toLowerCase();
%> %>
<aui:option label="<%= nominativo %>" value="<%= istruttore.getUserId() %>" /> <aui:option label="<%= nominativo %>" value="<%= istruttore.getUserId() %>" />
<% <%

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp

@ -43,11 +43,11 @@ for (ParereGeologo parere : pareri) {
%> %>
</aui:select> </aui:select>
<br /> <br />
<aui:input name="noteRichiedente" label="Note" type="textarea" /> <aui:input name="noteRichiedente" type="textarea" />
</div> </div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>">
<liferay-util:param name="formName" value="<%= formNameSelezionaGeologo %>" /> <liferay-util:param name="formName" value="fascicolo-action-seleziona-geologo" />
<liferay-util:param name="titolo" value="Seleziona parere endoprocedimentale" /> <liferay-util:param name="titolo" value="Richiedi parere endoprocedimentale" />
<liferay-util:param name="buttonId" value="<%= buttonIdSelezionaGeologo %>" /> <liferay-util:param name="buttonId" value="<%= buttonIdSelezionaGeologo %>" />
<liferay-util:param name="buttonConferma" value="CONFERMA" /> <liferay-util:param name="buttonConferma" value="CONFERMA" />
<liferay-util:param name="contentDiv" value="<%= divIdSelezionaGeologo %>" /> <liferay-util:param name="contentDiv" value="<%= divIdSelezionaGeologo %>" />

33
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf

@ -186,22 +186,47 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
<c:if test='<%= "Tab_MieiTask".equals(currentTab) %>'> <c:if test='<%= "Tab_MieiTask".equals(currentTab) %>'>
<liferay-ui:search-container-column-text name="pareri-endoprocedimentali"> <liferay-ui:search-container-column-text name="pareri-endoprocedimentali">
<% <%
if (ParereGeologoLocalServiceUtil.countByIntPraticaId(intPratica.getIntPraticaId()) > 0) { List<ParereGeologo> tutti = ParereGeologoLocalServiceUtil
.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (tutti.size() > 0) {
List<ParereGeologo> inCorso = ParereGeologoLocalServiceUtil.findByIntPraticaIdInCorso( List<ParereGeologo> inCorso = ParereGeologoLocalServiceUtil.findByIntPraticaIdInCorso(
intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (inCorso.size() > 0) { if (inCorso.size() > 0) {
out.print("In attesa di:<ul style=\"list-style:disc inside\">"); out.print("In attesa di:<ul style=\"list-style:disc inside\">");
for (ParereGeologo parere : inCorso) { for (ParereGeologo parere : inCorso) {
String fullName;
if (parere.getGeologoUserId() != 0) {
fullName = UserLocalServiceUtil.fetchUser(parere.getGeologoUserId()).getFullName();
} else {
fullName = "U.O. " + parere.getUnitaOperativa();
}
%> %>
<li> <li>
<%= dateFormatDate.format(parere.getCreateDate()) %>: <%= dateFormatDate.format(parere.getCreateDate()) %>:
<%= UserLocalServiceUtil.fetchUser(parere.getGeologoUserId()).getFullName() %> <%= fullName %>
</li> </li>
<% <%
} }
out.print("</ul>"); out.print("</ul>");
} else { }
out.print("<i class=\"fa icon-ok text-success\"></i> Pareri già espressi"); int espressi = 0;
int annullati = 0;
for (ParereGeologo parere : tutti) {
if (Validator.isNotNull(parere.getDtAnnullamento())) {
annullati++;
} else if (Validator.isNotNull(parere.getDtCompilazione())) {
espressi++;
}
}
if (espressi == 1) {
out.print("<i class=\"fa icon-ok text-success\"></i> 1 parere già espresso");
} else if (espressi > 1) {
out.print("<i class=\"fa icon-ok text-success\"></i> " + espressi + " pareri già espressi");
}
if (annullati == 1) {
out.print("<i class=\"fa icon-remove text-error\"></i> 1 richiesta annullata");
} else if (annullati > 1) {
out.print("<i class=\"fa icon-remove text-error\"></i> " + annullati + " richieste annullate");
} }
} }
%> %>

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_actions.jsp

@ -1,8 +1,9 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.mwg.sismica.bo.shared.util.UnitaOperativeUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.GestioneFirmeUtil"%> <%@page import="it.tref.liferay.portos.bo.util.GestioneFirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="java.util.Set"%>
<%@include file="/html/gestionefirme/init.jsp"%> <%@include file="/html/gestionefirme/init.jsp"%>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
@ -12,7 +13,7 @@ redirect = searchContainer.getIteratorURL().toString();
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
avviso = (Avviso) row.getObject(); avviso = (Avviso) row.getObject();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId());
List<Integer> unitaOperativeUtente = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> unitaOperativeUtente = UserUtil.getUnitaOperative(user);
boolean inUnitaOperativa = unitaOperativeUtente.contains(intPratica.getUnitaOperativa()) || boolean inUnitaOperativa = unitaOperativeUtente.contains(intPratica.getUnitaOperativa()) ||
unitaOperativeUtente.contains(0); unitaOperativeUtente.contains(0);
%> %>

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp

@ -4,7 +4,7 @@
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.UnitaOperativeUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="java.util.Iterator"%> <%@page import="java.util.Iterator"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletURL"%>
<%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="org.apache.commons.lang.StringUtils"%>
@ -47,7 +47,7 @@ if (organizationId != 0) {
<liferay-ui:search-container-column-text property="screenName" name="Nome utente" /> <liferay-ui:search-container-column-text property="screenName" name="Nome utente" />
<liferay-ui:search-container-column-text property="firstName" name="Nome" /> <liferay-ui:search-container-column-text property="firstName" name="Nome" />
<liferay-ui:search-container-column-text property="lastName" name="Cognome" /> <liferay-ui:search-container-column-text property="lastName" name="Cognome" />
<liferay-ui:search-container-column-text name="Unità Operative" value="<%= StringUtils.join(UnitaOperativeUtil <liferay-ui:search-container-column-text name="Unità Operative" value="<%= StringUtils.join(UserUtil
.getUnitaOperative(orgUser), StringPool.COMMA_AND_SPACE) %>" /> .getUnitaOperative(orgUser), StringPool.COMMA_AND_SPACE) %>" />
<liferay-ui:search-container-column-text name="roles"> <liferay-ui:search-container-column-text name="roles">
<% <%

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties

@ -2,6 +2,7 @@ asseverazioni-attive-domanda-non-modificabile = Asseverazioni attive - Domanda n
domanda-non-modificabile = Domanda non modificabile domanda-non-modificabile = Domanda non modificabile
fascicolo-action-open-pratica = Apri pratica fascicolo-action-open-pratica = Apri pratica
fascicolo-action-parere-geologo = Esprimi parere fascicolo-action-parere-geologo = Esprimi parere
fascicolo-action-assegna-parere = Assegna il parere
pagamento-attivo-domanda-non-modificabile = Pagamento in corso - Domanda non modificabile pagamento-attivo-domanda-non-modificabile = Pagamento in corso - Domanda non modificabile
add-fascicolo = Aggiungi progetto add-fascicolo = Aggiungi progetto

59
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java

@ -20,6 +20,7 @@ import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
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.json.JSONFactoryUtil; 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.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
@ -44,50 +45,58 @@ public class ParereGeologoPortlet extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class); private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class);
public void aggiornaParere(ActionRequest actionRequest, ActionResponse actionResponse) { public void aggiornaParere(ActionRequest request, ActionResponse response) {
String parere = ParamUtil.getString(actionRequest, "parere"); String parere = ParamUtil.getString(request, "parere");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPratica"); long intPraticaId = ParamUtil.getLong(request, "intPratica");
long parereGeologoId = ParamUtil.getLong(actionRequest, "parereGeologoId"); long parereGeologoId = ParamUtil.getLong(request, "parereGeologoId");
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request);
ServiceContext serviceContext; ServiceContext serviceContext;
try { try {
ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId);
// TODO parere andrà rimosso se andrà implementata la modifica serviceContext = ServiceContextFactory.getInstance(request);
if (Validator.isNotNull(parereGeologo.getParere())) {
SessionErrors.add(actionRequest, "error-update-parere-geologo");
return;
}
serviceContext = ServiceContextFactory.getInstance(actionRequest);
byte[] content = null; byte[] content = null;
String fileName = uploadRequest.getFileName("docFile"); String fileName = uploadRequest.getFileName("docFile");
File file = uploadRequest.getFile("docFile"); File file = uploadRequest.getFile("docFile");
if (Validator.isNotNull(fileName) && file != null) { if (Validator.isNotNull(fileName) && file != null) {
// lunghezza fissata a 200 // lunghezza fissata a 200
if (fileName.length() > 200) { if (fileName.length() > 200) {
SessionErrors.add(actionRequest, "error.geniocivilebo.pareregeologo.allegato.length.valid"); SessionErrors.add(request, "error.geniocivilebo.pareregeologo.allegato.length.valid");
} }
} }
if (!SessionErrors.isEmpty(actionRequest)) { if (!SessionErrors.isEmpty(request)) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(request, response);
} else { } else {
if (Validator.isNotNull(intPraticaId)) { if (Validator.isNotNull(intPraticaId)) {
content = FileUtil.getBytes(file); content = FileUtil.getBytes(file);
} }
} }
_log.info("Aggiorna il parere per la intPratica " + intPraticaId + " il parere è: \n" + parere); ParereGeologoServiceUtil.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext);
if (Validator.isNull(parereGeologo.getParere())) { parereGeologo.invioNotifica(serviceContext);
ParereGeologoServiceUtil SessionMessages.add(request, "success-update-parere-geologo");
.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext);
// ADT: INVIO NOTIFICA PARERE ALL ISTRUTTORE
invioNotificaIstruttoreByGeologo(parereGeologo, serviceContext);
} else {
throw new PortalException("parere già espresso");
}
SessionMessages.add(actionRequest, "success-update-parere-geologo");
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
SessionErrors.add(actionRequest, "error-update-parere-geologo"); SessionErrors.add(request, "error-update-parere-geologo");
}
}
public void assegnaParere(ActionRequest request, ActionResponse response) {
long parereGeologoId = ParamUtil.getLong(request, "parereGeologoId");
long geologoUserId = ParamUtil.getLong(request, "geologoUserId");
Date now = new Date();
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId);
parereGeologo.setGeologoUserId(geologoUserId);
parereGeologo.setAssegnatoreUserId(serviceContext.getUserId());
parereGeologo.setDtAssegnazione(now);
parereGeologo.setModifiedDate(now);
ParereGeologoLocalServiceUtil.updateParereGeologo(parereGeologo);
parereGeologo.invioNotifica(serviceContext);
} catch (PortalException | SystemException e) {
_log.error(e, e);
SessionErrors.add(request, "error-update-parere-geologo");
} }
} }

11
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/abort_fascicolo.jsp

@ -41,13 +41,14 @@ String dialogId = ParamUtil.getString(request, "dialogId");
<div class="row"> <div class="row">
<div class="col-xs-12 container-checkbox-edit-allegato"> <div class="col-xs-12 container-checkbox-edit-allegato">
<% <%
Soggetto titolareDigitale = SoggettoLocalServiceUtil List<Soggetto> titolari = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName()) .getValidByIntPratica_CodiceFiscale(intPraticaId,
.get(0); user.getScreenName());
String nome = titolari.isEmpty() ? user.getFullName()
: titolari.get(0).getDescrizioneCompleta();
%> %>
<aui:input type="checkbox" name="applicaFirma" label='<%= LanguageUtil.format( <aui:input type="checkbox" name="applicaFirma" label='<%= LanguageUtil.format(
pageContext, "label.firma-annullamento", titolareDigitale pageContext, "label.firma-annullamento", nome) %>' />
.getDescrizioneCompleta()) %>' />
</div> </div>
</div> </div>
<aui:button-row> <aui:button-row>

94
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo.jsp

@ -1,106 +1,88 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%> <%@include file="/html/fascicolofe/init.jsp"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String toolbarItem = ParamUtil.getString(request, "toolbarItem", "view-riepilogo"); String toolbarItem = ParamUtil.getString(request, "toolbarItem", "view-riepilogo");
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
String jspActionPage = ParamUtil.getString(request, "jspActionPage","/html/fascicolofe/fascicolo_action.jsp"); String jspActionPage = ParamUtil.getString(request, "jspActionPage", "/html/fascicolofe/fascicolo_action.jsp");
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0l); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); String intPraticaTitle = Validator.isNull(intPratica) ? "Dettagli Fascicolo - protocollo n° XXX - Progetto n° YYY"
String intPraticaTitle = Validator.isNotNull(intPratica) ? intPratica.getTitle(locale,false) : "Dettagli Fascicolo - protocollo n°XXX - Progetto n°YYY"; : intPratica.getTitle(locale, false);
%> %>
<liferay-portlet:renderURL var="viewProgettiURL" />
<liferay-portlet:renderURL var="viewProgettiURL" /> <liferay-ui:header title="<%= intPraticaTitle %>" localizeTitle="false"
backURL="<%= Validator.isNotNull(backURL) ? backURL : viewProgettiURL %>" />
<liferay-ui:header
title="<%=intPraticaTitle%>"
localizeTitle="false"
backURL="<%= Validator.isNotNull(backURL) ? backURL : viewProgettiURL %>"
/>
<aui:nav cssClass="nav-tabs"> <aui:nav cssClass="nav-tabs">
<portlet:renderURL var="viewRiepilogoURL"> <portlet:renderURL var="viewRiepilogoURL">
<portlet:param name="toolbarItem" value= "view-riepilogo" /> <portlet:param name="toolbarItem" value= "view-riepilogo" />
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp"></portlet:param> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="backURL" value="<%=backURL %>"></portlet:param> <portlet:param name="backURL" value="<%= backURL %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:nav-item href="<%= viewRiepilogoURL %>" label="view-riepilogo" <aui:nav-item href="<%= viewRiepilogoURL %>" label="view-riepilogo"
selected='<%= toolbarItem.equals("view-riepilogo") %>' /> selected='<%= toolbarItem.equals("view-riepilogo") %>' />
<portlet:renderURL var="viewStoricoURL"> <portlet:renderURL var="viewStoricoURL">
<portlet:param name="toolbarItem" value="view-storico" /> <portlet:param name="toolbarItem" value="view-storico" />
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp"></portlet:param> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="backURL" value="<%=backURL %>"></portlet:param> <portlet:param name="backURL" value="<%= backURL %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:nav-item href="<%= viewStoricoURL %>" label="view-storico" <aui:nav-item href="<%= viewStoricoURL %>" label="view-storico"
selected='<%= toolbarItem.equals("view-storico") %>' /> selected='<%= toolbarItem.equals("view-storico") %>' />
<portlet:renderURL var="viewDettagliURL"> <portlet:renderURL var="viewDettagliURL">
<portlet:param name="toolbarItem" value= "view-dettagli" /> <portlet:param name="toolbarItem" value= "view-dettagli" />
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp"></portlet:param> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="backURL" value="<%=backURL %>"></portlet:param> <portlet:param name="backURL" value="<%= backURL %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:nav-item href="<%= viewDettagliURL %>" label="view-dettagli" <aui:nav-item href="<%= viewDettagliURL %>" label="view-dettagli"
selected='<%= toolbarItem.equals("view-dettagli") %>' /> selected='<%= toolbarItem.equals("view-dettagli") %>' />
<portlet:renderURL var="viewComunicazioniURL"> <portlet:renderURL var="viewComunicazioniURL">
<portlet:param name="toolbarItem" value= "view-comunicazioni" /> <portlet:param name="toolbarItem" value= "view-comunicazioni" />
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp"></portlet:param> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="backURL" value="<%=backURL %>"></portlet:param> <portlet:param name="backURL" value="<%= backURL %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:nav-item href="<%= viewComunicazioniURL %>" label="view-comunicazioni" <aui:nav-item href="<%= viewComunicazioniURL %>" label="view-comunicazioni"
selected='<%= toolbarItem.equals("view-comunicazioni") %>' /> selected='<%= toolbarItem.equals("view-comunicazioni") %>' />
<portlet:renderURL var="viewDocAggiuntivaURL"> <portlet:renderURL var="viewDocAggiuntivaURL">
<portlet:param name="toolbarItem" value= "view-docaggiuntiva" /> <portlet:param name="toolbarItem" value= "view-docaggiuntiva" />
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp"></portlet:param> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="backURL" value="<%=backURL %>"></portlet:param> <portlet:param name="backURL" value="<%= backURL %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:nav-item href="<%= viewDocAggiuntivaURL %>" label="view-docaggiuntiva" <aui:nav-item href="<%= viewDocAggiuntivaURL %>" label="view-docaggiuntiva"
selected='<%= toolbarItem.equals("view-docaggiuntiva") %>' /> selected='<%= toolbarItem.equals("view-docaggiuntiva") %>' />
</aui:nav> </aui:nav>
<br> <br>
<c:choose> <c:choose>
<c:when test='<%= toolbarItem.equals("view-riepilogo") %>'> <c:when test='<%= toolbarItem.equals("view-riepilogo") %>'>
<liferay-util:include page="/html/fascicolofe/view_fascicolo_riepilogo.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_riepilogo.jsp"
<liferay-util:param name="jspActionPage" value="<%=jspActionPage %>"></liferay-util:param> servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-util:param name="jspActionPage" value="<%= jspActionPage %>" />
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>
</c:when> </c:when>
<c:when test='<%= toolbarItem.equals("view-storico") %>'> <c:when test='<%= toolbarItem.equals("view-storico") %>'>
<liferay-util:include page="/html/fascicolofe/view_fascicolo_storico.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_storico.jsp" servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>
</c:when> </c:when>
<c:when test='<%= toolbarItem.equals("view-dettagli") %>'> <c:when test='<%= toolbarItem.equals("view-dettagli") %>'>
<liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>
</c:when> </c:when>
<c:when test='<%= toolbarItem.equals("view-comunicazioni") %>'> <c:when test='<%= toolbarItem.equals("view-comunicazioni") %>'>
<liferay-util:include page="/html/fascicolofe/view_fascicolo_comunicazioni.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_comunicazioni.jsp"
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>
</c:when> </c:when>
<c:when test='<%= toolbarItem.equals("view-docaggiuntiva") %>'> <c:when test='<%= toolbarItem.equals("view-docaggiuntiva") %>'>
<liferay-util:include page="/html/fascicolofe/view_fascicolo_docaggiuntiva.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_docaggiuntiva.jsp"
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>
</c:when> </c:when>
</c:choose> </c:choose>

38
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp

@ -1,12 +1,11 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> <%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%> <%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@ include file="/html/pareregeologo/init.jsp" %> <%@ include file="/html/pareregeologo/init.jsp" %>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
@ -23,6 +22,7 @@ if (searchContainer != null) {
parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId);
} }
String buttonIdAddParere = "buttonIdAddParere_" + parereGeologo.getParereGeologoId(); String buttonIdAddParere = "buttonIdAddParere_" + parereGeologo.getParereGeologoId();
String buttonIdAssegnaParere = "buttonIdAssegnaParere_" + parereGeologo.getParereGeologoId();
%> %>
<liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="true" cssClass="menu_button_activity"> <liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="true" cssClass="menu_button_activity">
<div title='<%= LanguageUtil.get(pageContext,"fascicolo-action-open-pratica") %>' class="tooltip-info"> <div title='<%= LanguageUtil.get(pageContext,"fascicolo-action-open-pratica") %>' class="tooltip-info">
@ -30,13 +30,19 @@ String buttonIdAddParere = "buttonIdAddParere_" + parereGeologo.getParereGeologo
url="<%= FascicoloURLUtil.getFascicoloViewURL(parereGeologo.getCompanyId(), url="<%= FascicoloURLUtil.getFascicoloViewURL(parereGeologo.getCompanyId(),
parereGeologo.getIntPraticaId()) %>" /> parereGeologo.getIntPraticaId()) %>" />
</div> </div>
<c:if test="<%= Validator.isNull(parereGeologo.getParere()) %>"> <c:if test="<%= Validator.isNull(parereGeologo.getParere()) && tabs1.equalsIgnoreCase(tabs[0]) %>">
<div title='<%= LanguageUtil.get(pageContext,"fascicolo-action-parere-geologo") %>' class="tooltip-info"> <div title='<%= LanguageUtil.get(pageContext,"fascicolo-action-parere-geologo") %>' class="tooltip-info">
<liferay-ui:icon linkCssClass="btn btn-action" id="<%=buttonIdAddParere%>" iconCssClass="fa fa-pencil" <liferay-ui:icon linkCssClass="btn btn-action" id="<%= buttonIdAddParere %>" iconCssClass="fa fa-pencil"
message="" url="#" /> message="" url="#" />
</div> </div>
</c:if> </c:if>
<c:if test="<%= Validator.isNotNull( parereGeologo.getFileEntryId()) %>"> <c:if test="<%= (tabs.length > 2) && tabs1.equalsIgnoreCase(tabs[2]) %>">
<div title='<%= LanguageUtil.get(pageContext,"fascicolo-action-assegna-parere") %>' class="tooltip-info">
<liferay-ui:icon linkCssClass="btn btn-action" id="<%= buttonIdAssegnaParere %>"
iconCssClass="fa fa-user-circle" message="" url="#" />
</div>
</c:if>
<c:if test="<%= Validator.isNotNull(parereGeologo.getFileEntryId()) %>">
<% <%
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parereGeologo.getFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parereGeologo.getFileEntryId());
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay,
@ -48,13 +54,21 @@ String buttonIdAddParere = "buttonIdAddParere_" + parereGeologo.getParereGeologo
</div> </div>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<liferay-util:include page="/html/pareregeologo/actions/add_parere.jsp" servletContext="<%= application %>" > <c:if test="<%= tabs1.equalsIgnoreCase(tabs[0]) %>">
<liferay-util:include page="/html/pareregeologo/actions/add_parere.jsp" servletContext="<%= application %>" >
<liferay-util:param name="buttonIdAddParere" value="<%= buttonIdAddParere %>" /> <liferay-util:param name="buttonIdAddParere" value="<%= buttonIdAddParere %>" />
<liferay-util:param name="parereGeologoId" value="<%= String.valueOf(parereGeologo.getParereGeologoId()) %>" /> <liferay-util:param name="parereGeologoId" value="<%= String.valueOf(parereGeologo.getParereGeologoId()) %>" />
<liferay-util:param name="intPratica" value="<%= String.valueOf(parereGeologo.getIntPraticaId())%>" /> <liferay-util:param name="intPratica" value="<%= String.valueOf(parereGeologo.getIntPraticaId()) %>" />
<liferay-util:param name="noteRichiedente" value="<%= parereGeologo.getNoteRichiedente() %>" /> <liferay-util:param name="noteRichiedente" value="<%= parereGeologo.getNoteRichiedente() %>" />
</liferay-util:include> </liferay-util:include>
<script type="text/javascript"> </c:if>
<c:if test="<%= (tabs.length > 2) && tabs1.equalsIgnoreCase(tabs[2]) %>">
<liferay-util:include page="/html/pareregeologo/actions/assegna_parere.jsp" servletContext="<%= application %>" >
<liferay-util:param name="buttonIdAssegnaParere" value="<%= buttonIdAssegnaParere %>" />
<liferay-util:param name="parereGeologoId" value="<%= String.valueOf(parereGeologo.getParereGeologoId()) %>" />
</liferay-util:include>
</c:if>
<script>
YUI().use('aui-tooltip', function(Y) { YUI().use('aui-tooltip', function(Y) {
new Y.TooltipDelegate({ new Y.TooltipDelegate({
trigger: '.tooltip-info', trigger: '.tooltip-info',

11
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions/add_parere.jsp

@ -10,11 +10,11 @@ String formAggiornaParere = "formAggiornaParere_" + parereGeologoId;
String divIdAggiornaParere = "divIdAggiornaParere_" + parereGeologoId; String divIdAggiornaParere = "divIdAggiornaParere_" + parereGeologoId;
%> %>
<liferay-portlet:actionURL name="aggiornaParere" var="aggiornaParereUrl"> <liferay-portlet:actionURL name="aggiornaParere" var="aggiornaParereUrl">
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="parereGeologoId" value="<%=String.valueOf(parereGeologoId)%>" /> <portlet:param name="parereGeologoId" value="<%= String.valueOf(parereGeologoId) %>" />
<portlet:param name="redirect" value="<%=currentURL%>" /> <portlet:param name="redirect" value="<%= currentURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="<%=formAggiornaParere %>" enctype="multipart/form-data" method="post" <aui:form name="<%= formAggiornaParere %>" enctype="multipart/form-data" method="post"
action="<%= aggiornaParereUrl %>" > action="<%= aggiornaParereUrl %>" >
<div id='<%= renderResponse.getNamespace() + divIdAggiornaParere %>' class="hide" > <div id='<%= renderResponse.getNamespace() + divIdAggiornaParere %>' class="hide" >
<% <%
@ -33,7 +33,8 @@ String divIdAggiornaParere = "divIdAggiornaParere_" + parereGeologoId;
</div> </div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="<%= formAggiornaParere %>" /> <liferay-util:param name="formName" value="<%= formAggiornaParere %>" />
<liferay-util:param name="titolo" value="Inserisci Parere" /> <liferay-util:param name="titolo"
value='<%= LanguageUtil.get(pageContext,"fascicolo-action-parere-geologo") %>' />
<liferay-util:param name="buttonId" value="<%= buttonIdAddParere %>" /> <liferay-util:param name="buttonId" value="<%= buttonIdAddParere %>" />
<liferay-util:param name="buttonConferma" value="CONFERMA" /> <liferay-util:param name="buttonConferma" value="CONFERMA" />
<liferay-util:param name="contentDiv" value="<%= divIdAggiornaParere %>" /> <liferay-util:param name="contentDiv" value="<%= divIdAggiornaParere %>" />

50
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions/assegna_parere.jsp

@ -0,0 +1,50 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@include file="/html/pareregeologo/init.jsp"%>
<%
long parereGeologoId = ParamUtil.getLong(request, "parereGeologoId");
ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId);
String buttonIdAssegnaParere = ParamUtil.getString(request, "buttonIdAssegnaParere");
String formAssegnaParere = "formAssegnaParere_" + parereGeologoId;
String divIdAssegnaParere = "divIdAssegnaParere_" + parereGeologoId;
%>
<liferay-portlet:actionURL name="assegnaParere" var="assegnaParereUrl">
<portlet:param name="parereGeologoId" value="<%= String.valueOf(parereGeologoId) %>" />
<portlet:param name="redirect" value="<%= currentURL %>" />
</liferay-portlet:actionURL>
<aui:form name="<%= formAssegnaParere %>" enctype="multipart/form-data" method="post"
action="<%= assegnaParereUrl %>" >
<div id='<%= renderResponse.getNamespace() + divIdAssegnaParere %>' class="hide" >
<c:if test="<%= Validator.isNotNull(parereGeologo.getNoteRichiedente()) %>">
<strong>Note del richiedente: </strong><span>
<%= HtmlUtil.escape(parereGeologo.getNoteRichiedente()) %>
</span><br /><br />
</c:if>
<aui:select name="geologoUserId" label="" required="true">
<aui:option label="Seleziona istruttore" value="" />
<%
for (User istruttore : parereGeologo.getIstruttori()) {
%>
<aui:option value="<%= istruttore.getUserId() %>"
selected="<%= user.getUserId() == istruttore.getUserId() %>"
label='<%= Generics.capitalizeFull(istruttore.getFullName()) + " - "
+ istruttore.getScreenName().toLowerCase() %>' />
<%
}
%>
</aui:select>
</div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="<%= formAssegnaParere %>" />
<liferay-util:param name="titolo" value="Assegna a istruttore" />
<liferay-util:param name="buttonId" value="<%= buttonIdAssegnaParere %>" />
<liferay-util:param name="buttonConferma" value="CONFERMA" />
<liferay-util:param name="contentDiv" value="<%= divIdAssegnaParere %>" />
<liferay-util:param name="width" value="500" />
<liferay-util:param name="buttonBar" value="true" />
</liferay-util:include>
</aui:form>

23
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp

@ -1,13 +1,16 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %> <%@page import="com.liferay.portal.model.Role"%>
<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%>
<%@ page import="it.tref.liferay.portos.bo.model.ParereGeologo" %> <%@include file="/html/init.jsp"%>
<%@page import="java.util.ArrayList"%>
<% <%
String tabNames = "Pareri da fornire,Pareri forniti"; String tabNames;
if (UserUtil.isGeologo(user)) {
String tabs1 = ParamUtil.getString(request, "tabs1", StringUtil.split(tabNames)[0]); tabNames = "Pareri da fornire,Pareri forniti,Pareri da assegnare,Pareri da approvare";
} else {
tabNames = "Pareri da fornire,Pareri forniti";
}
String tabs[] = StringUtil.split(tabNames);
String tabs1 = ParamUtil.getString(request, "tabs1", tabs[0]);
%> %>

32
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/parericompletati.jsp

@ -2,10 +2,12 @@
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="java.util.Collections"%> <%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@ include file="/html/pareregeologo/init.jsp" %> <%@ include file="/html/pareregeologo/init.jsp" %>
<liferay-portlet:renderURL varImpl="searchURL"> <liferay-portlet:renderURL varImpl="searchURL">
<liferay-portlet:param name="tabs1" value="<%=StringUtil.split(tabNames)[1]%>" /> <liferay-portlet:param name="tabs1" value="<%= tabs[1] %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" > <liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" >
<% <%
@ -18,21 +20,17 @@
<% <%
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId());
%> %>
<liferay-ui:search-container-column-text name="progetto"> <liferay-ui:search-container-column-text name="progetto" value="<%= intPratica.getTitle(true) %>" />
<%= intPratica.getTitle(true) %> <liferay-ui:search-container-column-text name="Data di creazione"
</liferay-ui:search-container-column-text> value="<%= dateFormatDateTime.format(parere.getCreateDate()) %>" />
<liferay-ui:search-container-column-text name="Data di creazione"> <liferay-ui:search-container-column-text name="Richiedente"
<%= dateFormatDateTime.format(parere.getCreateDate()) %> value="<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %>" />
</liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Note del richiedente"
<liferay-ui:search-container-column-text name="Richiedente"> value="<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>" />
<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %> <liferay-ui:search-container-column-text name="Localizzazione" value="<%= intPratica.getIndirizzo() %>" />
</liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="U.O." cssClass="text-center"
<liferay-ui:search-container-column-text name="Localizzazione"> value="<%= parere.getUnitaOperativa() == 0 ? StringPool.BLANK
<%= intPratica.getIndirizzo() %> : String.valueOf(parere.getUnitaOperativa()) %>" />
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Note del richiedente">
<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Parere" property="parere" /> <liferay-ui:search-container-column-text name="Parere" property="parere" />
<liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" align="right" /> <liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" align="right" />
</liferay-ui:search-container-row> </liferay-ui:search-container-row>

58
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp

@ -0,0 +1,58 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@include file="/html/pareregeologo/init.jsp"%>
<style>
.width-40 {
width:40%;
}
.width-15 {
width:15%;
}
</style>
<liferay-portlet:renderURL varImpl="searchURL">
<liferay-portlet:param name="tabs1" value="<%= tabs[2] %>" />
</liferay-portlet:renderURL>
<liferay-ui:search-container delta="20" emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" >
<%
List<ParereGeologo> lista = ParereGeologoLocalServiceUtil.findByUserDaApprovare(user, searchContainer.getStart(),
searchContainer.getEnd());
int totale = ParereGeologoLocalServiceUtil.countByUserDaApprovare(user);
searchContainer.setTotal(totale);
pageContext.setAttribute("results", lista);
pageContext.setAttribute("total", totale);
%>
<liferay-ui:search-container-results results="<%= lista %>" />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.ParereGeologo" modelVar="parere">
<%
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(parere.getDettPraticaId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId());
%>
<liferay-ui:search-container-column-text name="progetto" value="<%= dettPratica.getMiddleDescription() %>" />
<liferay-ui:search-container-column-text name="Data di creazione"
value="<%= dateFormatDateTime.format(parere.getCreateDate()) %>" />
<liferay-ui:search-container-column-text name="Richiedente"
value="<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %>" />
<liferay-ui:search-container-column-text name="Note del richiedente"
value="<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>" />
<liferay-ui:search-container-column-text name="U.O." cssClass="text-center"
value="<%= parere.getUnitaOperativa() == 0 ? StringPool.BLANK
: String.valueOf(parere.getUnitaOperativa()) %>" />
<liferay-ui:search-container-column-text name="Assegnatore"
value='<%= parere.getAssegnatoreUserId() == 0
? "U.O. " + parere.getUnitaOperativa() + " - tutti gli assegnatori"
: Generics.capitalizeFull(UserLocalServiceUtil.getUser(parere.getAssegnatoreUserId())
.getFullName()) %>' />
<liferay-ui:search-container-column-text name="Localizzazione" value="<%= intPratica.getIndirizzo() %>" />
<liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" align="right" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container>

50
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaassegnare.jsp

@ -0,0 +1,50 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@include file="/html/pareregeologo/init.jsp"%>
<liferay-portlet:renderURL varImpl="searchURL">
<liferay-portlet:param name="tabs1" value="<%= tabs[3] %>" />
</liferay-portlet:renderURL>
<liferay-ui:search-container delta="20" emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" >
<%
List<ParereGeologo> lista = ParereGeologoLocalServiceUtil.findByUserDaAssegnare(user, searchContainer.getStart(),
searchContainer.getEnd());
int totale = ParereGeologoLocalServiceUtil.countByUserDaAssegnare(user);
searchContainer.setTotal(totale);
pageContext.setAttribute("results", lista);
pageContext.setAttribute("total", totale);
%>
<liferay-ui:search-container-results results="<%= lista %>" />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.ParereGeologo" modelVar="parere">
<%
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(parere.getDettPraticaId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId());
%>
<liferay-ui:search-container-column-text name="progetto" value="<%= dettPratica.getMiddleDescription() %>" />
<liferay-ui:search-container-column-text name="Data di creazione"
value="<%= dateFormatDateTime.format(parere.getCreateDate()) %>" />
<liferay-ui:search-container-column-text name="Richiedente"
value="<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %>" />
<liferay-ui:search-container-column-text name="Note del richiedente"
value="<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>" />
<liferay-ui:search-container-column-text name="U.O." cssClass="text-center"
value="<%= parere.getUnitaOperativa() == 0 ? StringPool.BLANK
: String.valueOf(parere.getUnitaOperativa()) %>" />
<liferay-ui:search-container-column-text name="Assegnatore"
value='<%= parere.getAssegnatoreUserId() == 0
? "U.O. " + parere.getUnitaOperativa() + " - tutti gli assegnatori"
: Generics.capitalizeFull(UserLocalServiceUtil.getUser(parere.getAssegnatoreUserId())
.getFullName()) %>' />
<liferay-ui:search-container-column-text name="Localizzazione" value="<%= intPratica.getIndirizzo() %>" />
<liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" align="right" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container>

15
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp

@ -3,12 +3,10 @@
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%> <%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="java.util.Collections"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@ include file="/html/pareregeologo/init.jsp" %> <%@ include file="/html/pareregeologo/init.jsp" %>
<style> <style>
.width-40{ .width-40{
@ -19,7 +17,7 @@
} }
</style> </style>
<liferay-portlet:renderURL varImpl="searchURL"> <liferay-portlet:renderURL varImpl="searchURL">
<liferay-portlet:param name="tabs1" value="<%= StringUtil.split(tabNames)[0] %>" /> <liferay-portlet:param name="tabs1" value="<%= tabs[0] %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:search-container delta="20" emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" > <liferay-ui:search-container delta="20" emptyResultsMessage="no-entries-were-found" iteratorURL="<%= searchURL %>" >
<% <%
@ -43,8 +41,11 @@
value="<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %>" /> value="<%= UserLocalServiceUtil.getUser(parere.getUserId()).getFullName() %>" />
<liferay-ui:search-container-column-text name="Note del richiedente" <liferay-ui:search-container-column-text name="Note del richiedente"
value="<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>" /> value="<%= HtmlUtil.escape(parere.getNoteRichiedente()) %>" />
<liferay-ui:search-container-column-text name="U.O." cssClass="text-center"
value="<%= parere.getUnitaOperativa() == 0 ? StringPool.BLANK
: String.valueOf(parere.getUnitaOperativa()) %>" />
<liferay-ui:search-container-column-text name="Localizzazione" value="<%= intPratica.getIndirizzo() %>" /> <liferay-ui:search-container-column-text name="Localizzazione" value="<%= intPratica.getIndirizzo() %>" />
<liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" /> <liferay-ui:search-container-column-jsp path="/html/pareregeologo/actions.jsp" align="right" />
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" /> <liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container> </liferay-ui:search-container>

12
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp

@ -8,7 +8,7 @@ PortletURL portletURL = renderResponse.createRenderURL();
%> %>
<!-- BUG bo: VISUALIZZA CARICO LAVORO PER GEOLOGI --> <!-- BUG bo: VISUALIZZA CARICO LAVORO PER GEOLOGI -->
<liferay-portlet:renderURL portletName="<%=PortletKeys.CARICHI_LAVORO %>" <liferay-portlet:renderURL portletName="<%=PortletKeys.CARICHI_LAVORO %>"
windowState="<%=LiferayWindowState.POP_UP.toString() %>" var="carichiDiLavoroGeologo"> windowState="<%= LiferayWindowState.POP_UP.toString() %>" var="carichiDiLavoroGeologo">
<liferay-portlet:param name="geologo" value="true" /> <liferay-portlet:param name="geologo" value="true" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<div id="<portlet:namespace />pareregeologoId"> <div id="<portlet:namespace />pareregeologoId">
@ -21,10 +21,16 @@ PortletURL portletURL = renderResponse.createRenderURL();
linkCssClass="btn" iconCssClass="icon-bar-chart" /> linkCssClass="btn" iconCssClass="icon-bar-chart" />
</div> </div>
</div> </div>
<c:if test="<%= tabs1.equals(StringUtil.split(tabNames)[0]) %>"> <c:if test="<%= tabs.length > 0 && tabs1.equals(tabs[0]) %>">
<jsp:include page="/html/pareregeologo/pareridacompletare.jsp" /> <jsp:include page="/html/pareregeologo/pareridacompletare.jsp" />
</c:if> </c:if>
<c:if test="<%= tabs1.equals(StringUtil.split(tabNames)[1]) %>"> <c:if test="<%= tabs.length > 1 && tabs1.equals(tabs[1]) %>">
<jsp:include page="/html/pareregeologo/parericompletati.jsp" /> <jsp:include page="/html/pareregeologo/parericompletati.jsp" />
</c:if> </c:if>
<c:if test="<%= tabs.length > 2 && tabs1.equals(tabs[2]) %>">
<jsp:include page="/html/pareregeologo/pareridaassegnare.jsp" />
</c:if>
<c:if test="<%= tabs.length > 3 && tabs1.equals(tabs[3]) %>">
<jsp:include page="/html/pareregeologo/pareridaapprovare.jsp" />
</c:if>
</div> </div>

4
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=sicilia_sue build.namespace=sicilia_sue
build.number=65 build.number=66
build.date=1632751092514 build.date=1635416035127
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath

@ -6,5 +6,5 @@
<classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/ext/portlet.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/ext/portlet.jar"/>
<classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/servlet-api.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/jsp-api.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/jsp-api.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

7
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/ParereConstants.java

@ -0,0 +1,7 @@
package it.mwg.sismica.bo.shared.util;
public class ParereConstants {
public static final int STATUS_CHIUSO = 0;
public static final int STATUS_APERTO = 1;
}

53
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/UnitaOperativeUtil.java

@ -2,20 +2,61 @@ package it.mwg.sismica.bo.shared.util;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.ArrayList; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.RoleConstants;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.model.UserGroupRole;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
public class UnitaOperativeUtil { public class UnitaOperativeUtil {
public static List<Integer> getUnitaOperative(User user) { public static SortedSet<Integer> getUnitaOperative(long companyId, long groupId, String roleName)
throws PortalException, SystemException {
List<Integer> ret = new ArrayList<>(); SortedSet<Integer> ret = new TreeSet<>();
short uo[] = (short[]) user.getExpandoBridge().getAttribute(Constants.USER_CUSTOM_FIELD_UNITA_OPERATIVE); Role role = RoleLocalServiceUtil.getRole(companyId, roleName);
for (int i = 0; i < uo.length; i++) { switch (role.getType()) {
ret.add((int) uo[i]); case RoleConstants.TYPE_REGULAR:
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroup(groupId);
for (UserGroupRole userGroupRole : userGroupRoles) {
User user = userGroupRole.getUser();
if (user.getRoles().contains(role)) {
ret.addAll(UserUtil.getUnitaOperative(user));
}
}
break;
case RoleConstants.TYPE_ORGANIZATION:
userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(groupId,
role.getRoleId());
for (UserGroupRole userGroupRole : userGroupRoles) {
ret.addAll(UserUtil.getUnitaOperative(userGroupRole.getUser()));
}
break;
} }
return ret; return ret;
} }
public static Set<User> getGeologi(long companyId, long groupId, int unitaOperativa) throws PortalException,
SystemException {
Set<User> users = new HashSet<>();
Role role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_GEOLOGO);
List<UserGroupRole> userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroup(groupId);
for (UserGroupRole userGroupRole : userGroupRoles) {
User user = userGroupRole.getUser();
if (UserUtil.getUnitaOperative(user).contains(unitaOperativa) && user.getRoles().contains(role)) {
users.add(user);
}
}
return users;
}
} }

52
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/UserUtil.java

@ -0,0 +1,52 @@
package it.mwg.sismica.bo.shared.util;
import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.User;
import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
public class UserUtil {
public static long[] getGroupIds(User user) throws SystemException {
List<Organization> organizations = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId());
long[] groupIds = new long[organizations.size()];
for (int i = 0; i < organizations.size(); i++) {
groupIds[i] = organizations.get(i).getGroupId();
}
return groupIds;
}
public static SortedSet<Integer> getUnitaOperative(User user) {
short uo[] = (short[]) user.getExpandoBridge().getAttribute(Constants.USER_CUSTOM_FIELD_UNITA_OPERATIVE);
SortedSet<Integer> ret = new TreeSet<>();
for (int i = 0; i < uo.length; i++) {
ret.add((int) uo[i]);
}
return ret;
}
public static int[] getUnitaOperativeArray(User user) {
short uo[] = (short[]) user.getExpandoBridge().getAttribute(Constants.USER_CUSTOM_FIELD_UNITA_OPERATIVE);
int[] ret = new int[uo.length];
for (int i = 0; i < uo.length; i++) {
ret[i] = uo[i];
}
return ret;
}
public static boolean isGeologo(User user) throws PortalException, SystemException {
return user.getRoles().contains(RoleLocalServiceUtil.getRole(user.getCompanyId(), Constants.ROLE_NAME_GEOLOGO));
}
}

8
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java

@ -1,6 +1,6 @@
package it.tref.liferay.portos.kaleo.hook.struts; package it.tref.liferay.portos.kaleo.hook.struts;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UserUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
@ -22,6 +22,7 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
@ -202,8 +203,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
WorkflowUtil.getWorkflowContext(controllo)); WorkflowUtil.getWorkflowContext(controllo));
} else if (uo == 0) { } else if (uo == 0) {
User user = UserLocalServiceUtil.getUser(Long.parseLong(istruttore)); User user = UserLocalServiceUtil.getUser(Long.parseLong(istruttore));
List<Integer> uos = UnitaOperativeUtil.getUnitaOperative(user); uo = UserUtil.getUnitaOperative(user).last();
uo = uos.get(uos.size() - 1);
} }
if (uo != pratica.getUnitaOperativa()) { if (uo != pratica.getUnitaOperativa()) {
pratica.setUnitaOperativa(uo); pratica.setUnitaOperativa(uo);
@ -393,7 +393,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
Organization org = OrganizationLocalServiceUtil.getOrganization(group.getClassPK()); Organization org = OrganizationLocalServiceUtil.getOrganization(group.getClassPK());
int unitaOperativa = WorkflowUtil.getIntPratica(workflowTaskId).getUnitaOperativa(); int unitaOperativa = WorkflowUtil.getIntPratica(workflowTaskId).getUnitaOperativa();
List<Integer> unitaOperativeUtente = UnitaOperativeUtil.getUnitaOperative(user); Set<Integer> unitaOperativeUtente = UserUtil.getUnitaOperative(user);
boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
org.getGroupId(), Constants.ROLE_NAME_ASSEGNATORE) org.getGroupId(), Constants.ROLE_NAME_ASSEGNATORE)
&& (unitaOperativeUtente.contains(unitaOperativa) || unitaOperativeUtente.contains(0)); && (unitaOperativeUtente.contains(unitaOperativa) || unitaOperativeUtente.contains(0));

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=Kaleo build.namespace=Kaleo
build.number=69 build.number=70
build.date=1634550959519 build.date=1635250473094
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva