diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar index 3683f047..d2efecdb 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 01599695..4028bc29 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -112,6 +112,7 @@ + @@ -127,18 +128,6 @@ - - - - - - - - - - - - @@ -153,12 +142,13 @@ - + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoClp.java index 02288169..b28f1e11 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoClp.java @@ -97,6 +97,7 @@ public class ParereGeologoClp extends BaseModelImpl attributes.put("dtCompilazione", getDtCompilazione()); attributes.put("status", getStatus()); attributes.put("noteRichiedente", getNoteRichiedente()); + attributes.put("noteAssegnatore", getNoteAssegnatore()); attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento()); @@ -229,6 +230,12 @@ public class ParereGeologoClp extends BaseModelImpl setNoteRichiedente(noteRichiedente); } + String noteAssegnatore = (String)attributes.get("noteAssegnatore"); + + if (noteAssegnatore != null) { + setNoteAssegnatore(noteAssegnatore); + } + Date dtAnnullamento = (Date)attributes.get("dtAnnullamento"); if (dtAnnullamento != null) { @@ -760,6 +767,30 @@ public class ParereGeologoClp extends BaseModelImpl } } + @Override + public String getNoteAssegnatore() { + return _noteAssegnatore; + } + + @Override + public void setNoteAssegnatore(String noteAssegnatore) { + _noteAssegnatore = noteAssegnatore; + + if (_parereGeologoRemoteModel != null) { + try { + Class clazz = _parereGeologoRemoteModel.getClass(); + + Method method = clazz.getMethod("setNoteAssegnatore", + String.class); + + method.invoke(_parereGeologoRemoteModel, noteAssegnatore); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public Date getDtAnnullamento() { return _dtAnnullamento; @@ -1047,6 +1078,7 @@ public class ParereGeologoClp extends BaseModelImpl clone.setDtCompilazione(getDtCompilazione()); clone.setStatus(getStatus()); clone.setNoteRichiedente(getNoteRichiedente()); + clone.setNoteAssegnatore(getNoteAssegnatore()); clone.setDtAnnullamento(getDtAnnullamento()); clone.setUserIdAnnullamento(getUserIdAnnullamento()); clone.setNoteAnnullamento(getNoteAnnullamento()); @@ -1104,7 +1136,7 @@ public class ParereGeologoClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(getUuid()); @@ -1146,6 +1178,8 @@ public class ParereGeologoClp extends BaseModelImpl sb.append(getStatus()); sb.append(", noteRichiedente="); sb.append(getNoteRichiedente()); + sb.append(", noteAssegnatore="); + sb.append(getNoteAssegnatore()); sb.append(", dtAnnullamento="); sb.append(getDtAnnullamento()); sb.append(", userIdAnnullamento="); @@ -1165,7 +1199,7 @@ public class ParereGeologoClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(85); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.ParereGeologo"); @@ -1251,6 +1285,10 @@ public class ParereGeologoClp extends BaseModelImpl "noteRichiedente"); + sb.append( + "noteAssegnatore"); sb.append( "dtAnnullamento private Date _dtCompilazione; private int _status; private String _noteRichiedente; + private String _noteAssegnatore; private Date _dtAnnullamento; private long _userIdAnnullamento; private String _noteAnnullamento; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoModel.java index 03adcc66..ad8862a8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoModel.java @@ -407,6 +407,21 @@ public interface ParereGeologoModel extends BaseModel, */ public void setNoteRichiedente(String noteRichiedente); + /** + * Returns the note assegnatore of this parere geologo. + * + * @return the note assegnatore of this parere geologo + */ + @AutoEscape + public String getNoteAssegnatore(); + + /** + * Sets the note assegnatore of this parere geologo. + * + * @param noteAssegnatore the note assegnatore of this parere geologo + */ + public void setNoteAssegnatore(String noteAssegnatore); + /** * Returns the dt annullamento of this parere geologo. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoSoap.java index 66c63c9b..cd3a4c22 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoSoap.java @@ -51,6 +51,7 @@ public class ParereGeologoSoap implements Serializable { soapModel.setDtCompilazione(model.getDtCompilazione()); soapModel.setStatus(model.getStatus()); soapModel.setNoteRichiedente(model.getNoteRichiedente()); + soapModel.setNoteAssegnatore(model.getNoteAssegnatore()); soapModel.setDtAnnullamento(model.getDtAnnullamento()); soapModel.setUserIdAnnullamento(model.getUserIdAnnullamento()); soapModel.setNoteAnnullamento(model.getNoteAnnullamento()); @@ -269,6 +270,14 @@ public class ParereGeologoSoap implements Serializable { _noteRichiedente = noteRichiedente; } + public String getNoteAssegnatore() { + return _noteAssegnatore; + } + + public void setNoteAssegnatore(String noteAssegnatore) { + _noteAssegnatore = noteAssegnatore; + } + public Date getDtAnnullamento() { return _dtAnnullamento; } @@ -337,6 +346,7 @@ public class ParereGeologoSoap implements Serializable { private Date _dtCompilazione; private int _status; private String _noteRichiedente; + private String _noteAssegnatore; private Date _dtAnnullamento; private long _userIdAnnullamento; private String _noteAnnullamento; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoWrapper.java index 80200b5c..fc642c62 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ParereGeologoWrapper.java @@ -71,6 +71,7 @@ public class ParereGeologoWrapper implements ParereGeologo, attributes.put("dtCompilazione", getDtCompilazione()); attributes.put("status", getStatus()); attributes.put("noteRichiedente", getNoteRichiedente()); + attributes.put("noteAssegnatore", getNoteAssegnatore()); attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento()); @@ -203,6 +204,12 @@ public class ParereGeologoWrapper implements ParereGeologo, setNoteRichiedente(noteRichiedente); } + String noteAssegnatore = (String)attributes.get("noteAssegnatore"); + + if (noteAssegnatore != null) { + setNoteAssegnatore(noteAssegnatore); + } + Date dtAnnullamento = (Date)attributes.get("dtAnnullamento"); if (dtAnnullamento != null) { @@ -726,6 +733,26 @@ public class ParereGeologoWrapper implements ParereGeologo, _parereGeologo.setNoteRichiedente(noteRichiedente); } + /** + * Returns the note assegnatore of this parere geologo. + * + * @return the note assegnatore of this parere geologo + */ + @Override + public java.lang.String getNoteAssegnatore() { + return _parereGeologo.getNoteAssegnatore(); + } + + /** + * Sets the note assegnatore of this parere geologo. + * + * @param noteAssegnatore the note assegnatore of this parere geologo + */ + @Override + public void setNoteAssegnatore(java.lang.String noteAssegnatore) { + _parereGeologo.setNoteAssegnatore(noteAssegnatore); + } + /** * Returns the dt annullamento of this parere geologo. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java index 59f6bda1..d37693b3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java @@ -317,8 +317,8 @@ public interface ParereGeologoLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -363,10 +363,6 @@ public interface ParereGeologoLocalService extends BaseLocalService, long geologoUserId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findWithParereByGeologoId( long geologoUserId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java index d8cff209..ad48949a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java @@ -138,7 +138,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { "com.liferay.portal.service.ServiceContext" }; - _methodName24 = "updateParereGeologo"; + _methodName24 = "esprimiParere"; _methodParameterTypes24 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", @@ -195,21 +195,17 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { _methodParameterTypes35 = new String[] { "long", "int", "int" }; - _methodName36 = "findByCompanyIdGroupId"; + _methodName36 = "findWithParereByGeologoId"; - _methodParameterTypes36 = new String[] { "long", "long" }; + _methodParameterTypes36 = new String[] { "long", "int", "int" }; - _methodName37 = "findWithParereByGeologoId"; + _methodName37 = "countFindWithParereByGeologoId"; - _methodParameterTypes37 = new String[] { "long", "int", "int" }; + _methodParameterTypes37 = new String[] { "long" }; - _methodName38 = "countFindWithParereByGeologoId"; + _methodName38 = "getCarichiLavoro"; - _methodParameterTypes38 = new String[] { "long" }; - - _methodName39 = "getCarichiLavoro"; - - _methodParameterTypes39 = new String[] { "long", "int" }; + _methodParameterTypes38 = new String[] { "long", "int" }; } @Override @@ -942,8 +938,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -954,9 +950,9 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { returnObj = _invokableLocalService.invokeMethod(_methodName24, _methodParameterTypes24, new Object[] { - parereGeologoId, + parereId, - ClpSerializer.translateInput(parere), + ClpSerializer.translateInput(testo), ClpSerializer.translateInput(content), @@ -1310,35 +1306,6 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findWithParereByGeologoId( long geologoUserId, int start, int end) @@ -1346,8 +1313,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { geologoUserId, start, end }); } catch (Throwable t) { @@ -1375,8 +1342,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, new Object[] { geologoUserId }); + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { geologoUserId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1405,8 +1372,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { controlloPraticaId, giorni }); } catch (Throwable t) { @@ -1509,6 +1476,4 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { private String[] _methodParameterTypes37; private String _methodName38; private String[] _methodParameterTypes38; - private String _methodName39; - private String[] _methodParameterTypes39; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java index 7aff7262..09c4a7c0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java @@ -346,15 +346,15 @@ public class ParereGeologoLocalServiceUtil { dettPraticaId, noteRichiedente, serviceContext); } - public static it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public static it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() - .updateParereGeologo(parereGeologoId, parere, content, - fileName, serviceContext); + .esprimiParere(parereId, testo, content, fileName, + serviceContext); } public static it.tref.liferay.portos.bo.model.ParereGeologo remove( @@ -418,12 +418,6 @@ public class ParereGeologoLocalServiceUtil { return getService().findByGeologoIdInCorso(geologoUserId, start, end); } - public static java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByCompanyIdGroupId(companyId, groupId); - } - public static java.util.List findWithParereByGeologoId( long geologoUserId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java index 6940df5f..850a696f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java @@ -368,14 +368,14 @@ public class ParereGeologoLocalServiceWrapper } @Override - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - return _parereGeologoLocalService.updateParereGeologo(parereGeologoId, - parere, content, fileName, serviceContext); + return _parereGeologoLocalService.esprimiParere(parereId, testo, + content, fileName, serviceContext); } @Override @@ -453,14 +453,6 @@ public class ParereGeologoLocalServiceWrapper start, end); } - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _parereGeologoLocalService.findByCompanyIdGroupId(companyId, - groupId); - } - @Override public java.util.List findWithParereByGeologoId( long geologoUserId, int start, int end) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoService.java index d5825e55..2d947471 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoService.java @@ -71,8 +71,8 @@ public interface ParereGeologoService extends BaseService, InvokableService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceClp.java index 9a974e37..8af2a071 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceClp.java @@ -39,7 +39,7 @@ public class ParereGeologoServiceClp implements ParereGeologoService { "com.liferay.portal.service.ServiceContext" }; - _methodName4 = "updateParereGeologo"; + _methodName4 = "esprimiParere"; _methodParameterTypes4 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", @@ -161,8 +161,8 @@ public class ParereGeologoServiceClp implements ParereGeologoService { } @Override - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -173,9 +173,9 @@ public class ParereGeologoServiceClp implements ParereGeologoService { returnObj = _invokableService.invokeMethod(_methodName4, _methodParameterTypes4, new Object[] { - parereGeologoId, + parereId, - ClpSerializer.translateInput(parere), + ClpSerializer.translateInput(testo), ClpSerializer.translateInput(content), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceUtil.java index 058eec65..bb9fe3cf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceUtil.java @@ -74,15 +74,15 @@ public class ParereGeologoServiceUtil { dettPraticaId, noteRichiedente, serviceContext); } - public static it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public static it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() - .updateParereGeologo(parereGeologoId, parere, content, - fileName, serviceContext); + .esprimiParere(parereId, testo, content, fileName, + serviceContext); } public static it.tref.liferay.portos.bo.model.ParereGeologo deleteParereGeologo( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceWrapper.java index bdfc6680..f5a62186 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoServiceWrapper.java @@ -70,14 +70,14 @@ public class ParereGeologoServiceWrapper implements ParereGeologoService, } @Override - public it.tref.liferay.portos.bo.model.ParereGeologo updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public it.tref.liferay.portos.bo.model.ParereGeologo esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - return _parereGeologoService.updateParereGeologo(parereGeologoId, - parere, content, fileName, serviceContext); + return _parereGeologoService.esprimiParere(parereId, testo, content, + fileName, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java index 7af2ce2b..4632b316 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java @@ -284,10 +284,6 @@ public interface TerritorioLocalService extends BaseLocalService, long comuneId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List getActiveProvince() throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java index 7aad6b76..52250bb6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java @@ -145,46 +145,42 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { _methodParameterTypes23 = new String[] { "long", "int", "int" }; - _methodName24 = "findByCompanyIdGroupId"; + _methodName24 = "getActiveProvince"; - _methodParameterTypes24 = new String[] { "long", "long" }; + _methodParameterTypes24 = new String[] { }; - _methodName25 = "getActiveProvince"; + _methodName25 = "getActiveComuniByCodiceProvincia"; - _methodParameterTypes25 = new String[] { }; + _methodParameterTypes25 = new String[] { "java.lang.String" }; - _methodName26 = "getActiveComuniByCodiceProvincia"; + _methodName26 = "getActiveTerritoriByComune"; - _methodParameterTypes26 = new String[] { "java.lang.String" }; + _methodParameterTypes26 = new String[] { "long" }; - _methodName27 = "getActiveTerritoriByComune"; + _methodName27 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - _methodParameterTypes27 = new String[] { "long" }; - - _methodName28 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - - _methodParameterTypes28 = new String[] { + _methodParameterTypes27 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName29 = "getTerritoriByGroupAndZona"; + _methodName28 = "getTerritoriByGroupAndZona"; - _methodParameterTypes29 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes28 = new String[] { "long", "java.lang.String" }; - _methodName30 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName29 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes30 = new String[] { + _methodParameterTypes29 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName31 = "getAllTerritorioGroup"; + _methodName30 = "getAllTerritorioGroup"; - _methodParameterTypes31 = new String[] { }; + _methodParameterTypes30 = new String[] { }; - _methodName32 = "verifyTerritorioConstraintAlreadyExist"; + _methodName31 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes32 = new String[] { + _methodParameterTypes31 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -952,43 +948,14 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List getActiveProvince() throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1016,8 +983,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { ClpSerializer.translateInput(codiceProvincia) }); } catch (Throwable t) { @@ -1046,8 +1013,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, new Object[] { comuneId }); + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { comuneId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1077,8 +1044,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { comuneId, @@ -1121,8 +1088,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { groupId, ClpSerializer.translateInput(zona) }); } catch (Throwable t) { @@ -1151,8 +1118,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { groupId, @@ -1186,8 +1153,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1216,8 +1183,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { comuneId, @@ -1312,6 +1279,4 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { private String[] _methodParameterTypes30; private String _methodName31; private String[] _methodParameterTypes31; - private String _methodName32; - private String[] _methodParameterTypes32; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java index bdd5dec8..8af2ae12 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java @@ -319,12 +319,6 @@ public class TerritorioLocalServiceUtil { return getService().findByComuneId(comuneId, start, end); } - public static java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByCompanyIdGroupId(companyId, groupId); - } - public static java.util.List getActiveProvince() throws com.liferay.portal.kernel.exception.SystemException { return getService().getActiveProvince(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java index 48bb4c80..37525aa5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java @@ -336,13 +336,6 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService, return _territorioLocalService.findByComuneId(comuneId, start, end); } - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _territorioLocalService.findByCompanyIdGroupId(companyId, groupId); - } - @Override public java.util.List getActiveProvince() throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java index 7e982e63..81844388 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java @@ -524,346 +524,6 @@ public interface ParereGeologoPersistence extends BasePersistence public int countByIntPraticaId(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica 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 findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, 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 intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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[] findByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long intPraticaId, 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; - - /** - * Removes all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - public void removeByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica 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 countByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo 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 findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, 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 geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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[] findByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long geologoUserId, - 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; - - /** - * Removes all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - public void removeByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo 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 countByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the parere geologos where companyId = ? and groupId = ?. * @@ -1313,25 +973,26 @@ public interface ParereGeologoPersistence extends BasePersistence throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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 findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1341,6 +1002,7 @@ public interface ParereGeologoPersistence extends BasePersistence * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1348,14 +1010,15 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1365,6 +1028,7 @@ public interface ParereGeologoPersistence extends BasePersistence * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1373,20 +1037,22 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1394,41 +1060,43 @@ public interface ParereGeologoPersistence extends BasePersistence * @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( + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching parere geologo, or null 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( + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1436,42 +1104,44 @@ public interface ParereGeologoPersistence extends BasePersistence * @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( + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching parere geologo, or null 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( + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @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 dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1479,16 +1149,17 @@ public interface ParereGeologoPersistence extends BasePersistence * @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( + public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_PrevAndNext( long parereGeologoId, long groupId, int unitaOperativa, long assegnatoreUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + java.util.Date dtAssegnazione, 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 ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1498,19 +1169,20 @@ public interface ParereGeologoPersistence extends BasePersistence * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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 findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1520,6 +1192,7 @@ public interface ParereGeologoPersistence extends BasePersistence * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1527,14 +1200,15 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1544,6 +1218,7 @@ public interface ParereGeologoPersistence extends BasePersistence * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1552,64 +1227,68 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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 = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ? from the database. + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ? 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 dtAssegnazione the dt assegnazione * @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( + public void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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( + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupIds the group IDs * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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( + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException; /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java index a184d335..fda092b5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java @@ -684,426 +684,6 @@ public class ParereGeologoUtil { return getPersistence().countByIntPraticaId(intPraticaId); } - /** - * Returns all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica 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 findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento); - } - - /** - * Returns a range of all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, start, end); - } - - /** - * Returns an ordered range of all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, 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() - .findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, start, end, orderByComparator); - } - - /** - * Returns the first parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, 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() - .findByIntPraticaId_DtCompilazione_DtAnnullamento_First(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the first parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null 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 fetchByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPraticaId_DtCompilazione_DtAnnullamento_First(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the last parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, 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() - .findByIntPraticaId_DtCompilazione_DtAnnullamento_Last(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the last parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null 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 fetchByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPraticaId_DtCompilazione_DtAnnullamento_Last(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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[] findByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long intPraticaId, 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() - .findByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext(parereGeologoId, - intPraticaId, dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Removes all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento); - } - - /** - * Returns the number of parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica 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 countByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento); - } - - /** - * Returns all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo 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 findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento); - } - - /** - * Returns a range of all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, start, end); - } - - /** - * Returns an ordered range of all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, 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() - .findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, start, end, orderByComparator); - } - - /** - * Returns the first parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, 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() - .findByGeologoUserId_DtCompilazione_DtAnnullamento_First(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the first parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null 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 fetchByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByGeologoUserId_DtCompilazione_DtAnnullamento_First(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the last parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 findByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, 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() - .findByGeologoUserId_DtCompilazione_DtAnnullamento_Last(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the last parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null 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 fetchByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByGeologoUserId_DtCompilazione_DtAnnullamento_Last(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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[] findByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long geologoUserId, - 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() - .findByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext(parereGeologoId, - geologoUserId, dtCompilazione, dtAnnullamento, orderByComparator); - } - - /** - * Removes all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - public static void removeByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento); - } - - /** - * Returns the number of parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo 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 countByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento); - } - /** * Returns all the parere geologos where companyId = ? and groupId = ?. * @@ -1651,30 +1231,31 @@ public class ParereGeologoUtil { } /** - * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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 findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); } /** - * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1684,6 +1265,7 @@ public class ParereGeologoUtil { * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1691,19 +1273,20 @@ public class ParereGeologoUtil { * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end); } /** - * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1713,6 +1296,7 @@ public class ParereGeologoUtil { * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1721,25 +1305,27 @@ public class ParereGeologoUtil { * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end, orderByComparator); } /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1747,51 +1333,53 @@ public class ParereGeologoUtil { * @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( + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); } /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching parere geologo, or null 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( + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_First(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); } /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1799,52 +1387,54 @@ public class ParereGeologoUtil { * @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( + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); } /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching parere geologo, or null 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( + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_Last(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); } /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @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 dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param orderByComparator the comparator to order the set by (optionally null) @@ -1852,21 +1442,22 @@ public class ParereGeologoUtil { * @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( + public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_PrevAndNext( long parereGeologoId, long groupId, int unitaOperativa, long assegnatoreUserId, java.util.Date dtCompilazione, - java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + java.util.Date dtAssegnazione, 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, + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione_PrevAndNext(parereGeologoId, groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, - dtAnnullamento, dtApprovazione, orderByComparator); + dtAssegnazione, dtAnnullamento, dtApprovazione, orderByComparator); } /** - * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1876,24 +1467,25 @@ public class ParereGeologoUtil { * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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 findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds, + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupIds, unitaOperativas, assegnatoreUserIds, dtCompilazione, - dtAnnullamento, dtApprovazione); + dtAssegnazione, dtAnnullamento, dtApprovazione); } /** - * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1903,6 +1495,7 @@ public class ParereGeologoUtil { * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1910,19 +1503,20 @@ public class ParereGeologoUtil { * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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, + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupIds, unitaOperativas, assegnatoreUserIds, dtCompilazione, - dtAnnullamento, dtApprovazione, start, end); + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end); } /** - * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -1932,6 +1526,7 @@ public class ParereGeologoUtil { * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @param dtAnnullamento the dt annullamento * @param dtApprovazione the dt approvazione * @param start the lower bound of the range of parere geologos @@ -1940,84 +1535,89 @@ public class ParereGeologoUtil { * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione, int start, int end, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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, + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupIds, unitaOperativas, assegnatoreUserIds, dtCompilazione, - dtAnnullamento, dtApprovazione, start, end, orderByComparator); + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end, + orderByComparator); } /** - * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ? from the database. + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ? 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 dtAssegnazione the dt assegnazione * @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( + public static void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); } /** - * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa * @param assegnatoreUserId the assegnatore user ID * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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( + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + 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); + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); } /** - * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * * @param groupIds the group IDs * @param unitaOperativas the unita operativas * @param assegnatoreUserIds the assegnatore user IDs * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione * @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( + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, - java.util.Date dtCompilazione, java.util.Date dtAnnullamento, - java.util.Date dtApprovazione) + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupIds, + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupIds, unitaOperativas, assegnatoreUserIds, dtCompilazione, - dtAnnullamento, dtApprovazione); + dtAssegnazione, dtAnnullamento, dtApprovazione); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties index 34898283..360fce4c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties @@ -162,7 +162,10 @@ 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_Annullamento_DtApprovazione +IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_DtAnnullamento_DtApprovazione IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione +IX_D0EBB039=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione IX_3A6B6848=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql index 2e2719ce..833d2931 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql @@ -157,6 +157,7 @@ create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, 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_D0EBB039 on portos_bo_ParereGeo (groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, 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_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql index 9e964202..6b6dff67 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql @@ -590,6 +590,7 @@ create table portos_bo_ParereGeo ( dtCompilazione DATE null, status INTEGER, noteRichiedente STRING null, + noteAssegnatore STRING null, dtAnnullamento DATE null, userIdAnnullamento LONG, noteAnnullamento STRING null, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml index bf9db105..77e237b2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml @@ -649,6 +649,7 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml index 45c93255..d8ab06f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml @@ -699,6 +699,9 @@ 4000 + + 4000 + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml index 7b63d592..7856af48 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml @@ -843,6 +843,7 @@ + TIMESTAMP diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties index defdbea9..99eb2c9f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties @@ -331,5 +331,3 @@ label-integrazione-13 = Variante ricerca-posizione = Ricerca per posizione ricerca-indirizzo = Ricerca per indirizzo ricerca-progetto = Ricerca per progetto - -note-richiedente = Note del richiedente \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties index 518729ba..6b98e63d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties @@ -1364,3 +1364,7 @@ mappe-openstreetmap = OpenStreetmap sanatoria-edilizia = Sanatoria edilizia intervento-voce-p7 = L.R. 5/2019, art. 3, allegato B: intervento alla voce B + +note-richiedente = Note del richiedente +note-assegnatore = Note per l'istruttore +note-approvatore = Note dell'approvatore diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java index af940b3f..04ef3356 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java @@ -12,6 +12,8 @@ import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.Role; import com.liferay.portal.model.RoleConstants; import com.liferay.portal.model.User; @@ -31,35 +33,48 @@ public class DatabaseUpdateAction extends SimpleAction { 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); + long versione = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, CHIAVE_VERSIONE); + if (versione < 0) { + parereGeologoV2(companyId); + versione = 0; + ConfigurazioneLocalServiceUtil.storeConfig(CHIAVE_VERSIONE, String.valueOf(versione), + serviceContext); + } } catch (PortalException | SystemException e) { _log.error(e, e); } } } - private static void parereGeologov2(long companyId) throws SystemException { + private static void parereGeologoV2(long companyId) throws SystemException { final int SLICE = 100; List pareri; int start = 0; + int lavorati = 0; + int aggiornati = 0; do { pareri = ParereGeologoLocalServiceUtil.getParereGeologos(start, start + SLICE); if (pareri.size() > 0) { for (ParereGeologo parere : pareri) { - + if (companyId == parere.getCompanyId()) { + lavorati++; + if (Validator.isNotNull(parere.getDtCompilazione()) + && Validator.isNull(parere.getDtApprovazione())) { + parere.setDtApprovazione(parere.getDtCompilazione()); + ParereGeologoLocalServiceUtil.updateParereGeologo(parere); + aggiornati++; + } + } } + start += pareri.size(); + _log.info("Aggiornati a v2 " + aggiornati + StringPool.SLASH + lavorati + " pareri"); } } while (pareri.size() > 0); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoCacheModel.java index b8880bc7..d41a5a9b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoCacheModel.java +++ b/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, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(uuid); @@ -80,6 +80,8 @@ public class ParereGeologoCacheModel implements CacheModel, sb.append(status); sb.append(", noteRichiedente="); sb.append(noteRichiedente); + sb.append(", noteAssegnatore="); + sb.append(noteAssegnatore); sb.append(", dtAnnullamento="); sb.append(dtAnnullamento); sb.append(", userIdAnnullamento="); @@ -179,6 +181,13 @@ public class ParereGeologoCacheModel implements CacheModel, parereGeologoImpl.setNoteRichiedente(noteRichiedente); } + if (noteAssegnatore == null) { + parereGeologoImpl.setNoteAssegnatore(StringPool.BLANK); + } + else { + parereGeologoImpl.setNoteAssegnatore(noteAssegnatore); + } + if (dtAnnullamento == Long.MIN_VALUE) { parereGeologoImpl.setDtAnnullamento(null); } @@ -238,6 +247,7 @@ public class ParereGeologoCacheModel implements CacheModel, dtCompilazione = objectInput.readLong(); status = objectInput.readInt(); noteRichiedente = objectInput.readUTF(); + noteAssegnatore = objectInput.readUTF(); dtAnnullamento = objectInput.readLong(); userIdAnnullamento = objectInput.readLong(); noteAnnullamento = objectInput.readUTF(); @@ -296,6 +306,13 @@ public class ParereGeologoCacheModel implements CacheModel, objectOutput.writeUTF(noteRichiedente); } + if (noteAssegnatore == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(noteAssegnatore); + } + objectOutput.writeLong(dtAnnullamento); objectOutput.writeLong(userIdAnnullamento); @@ -337,6 +354,7 @@ public class ParereGeologoCacheModel implements CacheModel, public long dtCompilazione; public int status; public String noteRichiedente; + public String noteAssegnatore; public long dtAnnullamento; public long userIdAnnullamento; public String noteAnnullamento; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java index c982bf04..f3b3b6b3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java @@ -92,31 +92,32 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl { try { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); - String tipoOggetto; - String receiver; + String oggetto; String[] to; if (Validator.isNotNull(getDtApprovazione())) { // notifica parere espresso a istruttore User istruttore = intPratica.recuperaTecnicoIstruttore(); User geologo = UserLocalServiceUtil.getUser(getGeologoUserId()); + User approvatore = UserLocalServiceUtil.getUser(getAssegnatoreUserId()); to = new String[] { istruttore.getEmailAddress() }; - tipoOggetto = "Parere endoprocedimentale espresso da " + Generics.capitalizeFull(geologo.getFullName()); - receiver = Generics.capitalizeFull(istruttore.getFullName()); + oggetto = "Parere endoprocedimentale espresso da " + Generics.capitalizeFull(geologo.getFullName()) + + ", approvato da " + Generics.capitalizeFull(approvatore.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 " + oggetto = "Parere endoprocedimentale da approvare, richiesto da " + + Generics.capitalizeFull(getUserName()) + ", 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()); + User assegnatore = UserLocalServiceUtil.getUser(getAssegnatoreUserId()); to = new String[] { geologo.getEmailAddress() }; - tipoOggetto = "Parere endoprocedimentale da esprimere, richiesto da " - + Generics.capitalizeFull(getUserName()); - receiver = Generics.capitalizeFull(geologo.getFullName()); + oggetto = "Parere endoprocedimentale da esprimere, richiesto da " + + Generics.capitalizeFull(getUserName()) + ", assegnato da " + + Generics.capitalizeFull(assegnatore.getFullName()); } else if (getAssegnatoreUserId() == 0) { // notifica parere da assegnare a tutta l'unità operativa Set emails = new HashSet<>(); @@ -124,15 +125,15 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl { 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(); + oggetto = "Parere endoprocedimentale da assegnare, richiesto da " + + Generics.capitalizeFull(getUserName()) + " a 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()); + oggetto = "Parere endoprocedimentale da assegnare, richiesto da " + + Generics.capitalizeFull(getUserName()) + " a " + + Generics.capitalizeFull(assegnatore.getFullName()); } String[] cc = new String[0]; String[] ccn = new String[0]; @@ -147,9 +148,8 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl { 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("tipoOggetto", oggetto); templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm") .format(getDtCompilazione() != null ? getDtCompilazione() : new Date())); templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoModelImpl.java index 1bd53c68..dfc9f0d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoModelImpl.java @@ -88,6 +88,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl { "dtCompilazione", Types.TIMESTAMP }, { "status", Types.INTEGER }, { "noteRichiedente", Types.VARCHAR }, + { "noteAssegnatore", Types.VARCHAR }, { "dtAnnullamento", Types.TIMESTAMP }, { "userIdAnnullamento", Types.BIGINT }, { "noteAnnullamento", Types.VARCHAR }, @@ -95,7 +96,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl { "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,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_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,noteAssegnatore 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 ORDER_BY_JPQL = " ORDER BY parereGeologo.createDate ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_ParereGeo.createDate ASC"; @@ -115,13 +116,14 @@ public class ParereGeologoModelImpl extends BaseModelImpl public static long COMPANYID_COLUMN_BITMASK = 2L; public static long DTANNULLAMENTO_COLUMN_BITMASK = 4L; public static long DTAPPROVAZIONE_COLUMN_BITMASK = 8L; - public static long DTCOMPILAZIONE_COLUMN_BITMASK = 16L; - public static long GEOLOGOUSERID_COLUMN_BITMASK = 32L; - public static long GROUPID_COLUMN_BITMASK = 64L; - 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; + public static long DTASSEGNAZIONE_COLUMN_BITMASK = 16L; + public static long DTCOMPILAZIONE_COLUMN_BITMASK = 32L; + public static long GEOLOGOUSERID_COLUMN_BITMASK = 64L; + public static long GROUPID_COLUMN_BITMASK = 128L; + public static long INTPRATICAID_COLUMN_BITMASK = 256L; + public static long UNITAOPERATIVA_COLUMN_BITMASK = 512L; + public static long UUID_COLUMN_BITMASK = 1024L; + public static long CREATEDATE_COLUMN_BITMASK = 2048L; /** * Converts the soap model instance into a normal model instance. @@ -156,6 +158,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl model.setDtCompilazione(soapModel.getDtCompilazione()); model.setStatus(soapModel.getStatus()); model.setNoteRichiedente(soapModel.getNoteRichiedente()); + model.setNoteAssegnatore(soapModel.getNoteAssegnatore()); model.setDtAnnullamento(soapModel.getDtAnnullamento()); model.setUserIdAnnullamento(soapModel.getUserIdAnnullamento()); model.setNoteAnnullamento(soapModel.getNoteAnnullamento()); @@ -246,6 +249,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl attributes.put("dtCompilazione", getDtCompilazione()); attributes.put("status", getStatus()); attributes.put("noteRichiedente", getNoteRichiedente()); + attributes.put("noteAssegnatore", getNoteAssegnatore()); attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("userIdAnnullamento", getUserIdAnnullamento()); attributes.put("noteAnnullamento", getNoteAnnullamento()); @@ -378,6 +382,12 @@ public class ParereGeologoModelImpl extends BaseModelImpl setNoteRichiedente(noteRichiedente); } + String noteAssegnatore = (String)attributes.get("noteAssegnatore"); + + if (noteAssegnatore != null) { + setNoteAssegnatore(noteAssegnatore); + } + Date dtAnnullamento = (Date)attributes.get("dtAnnullamento"); if (dtAnnullamento != null) { @@ -656,9 +666,19 @@ public class ParereGeologoModelImpl extends BaseModelImpl @Override public void setDtAssegnazione(Date dtAssegnazione) { + _columnBitmask |= DTASSEGNAZIONE_COLUMN_BITMASK; + + if (_originalDtAssegnazione == null) { + _originalDtAssegnazione = _dtAssegnazione; + } + _dtAssegnazione = dtAssegnazione; } + public Date getOriginalDtAssegnazione() { + return _originalDtAssegnazione; + } + @JSON @Override public String getParere() { @@ -779,6 +799,22 @@ public class ParereGeologoModelImpl extends BaseModelImpl _noteRichiedente = noteRichiedente; } + @JSON + @Override + public String getNoteAssegnatore() { + if (_noteAssegnatore == null) { + return StringPool.BLANK; + } + else { + return _noteAssegnatore; + } + } + + @Override + public void setNoteAssegnatore(String noteAssegnatore) { + _noteAssegnatore = noteAssegnatore; + } + @JSON @Override public Date getDtAnnullamento() { @@ -943,6 +979,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl parereGeologoImpl.setDtCompilazione(getDtCompilazione()); parereGeologoImpl.setStatus(getStatus()); parereGeologoImpl.setNoteRichiedente(getNoteRichiedente()); + parereGeologoImpl.setNoteAssegnatore(getNoteAssegnatore()); parereGeologoImpl.setDtAnnullamento(getDtAnnullamento()); parereGeologoImpl.setUserIdAnnullamento(getUserIdAnnullamento()); parereGeologoImpl.setNoteAnnullamento(getNoteAnnullamento()); @@ -1022,6 +1059,8 @@ public class ParereGeologoModelImpl extends BaseModelImpl parereGeologoModelImpl._setOriginalAssegnatoreUserId = false; + parereGeologoModelImpl._originalDtAssegnazione = parereGeologoModelImpl._dtAssegnazione; + parereGeologoModelImpl._originalIntPraticaId = parereGeologoModelImpl._intPraticaId; parereGeologoModelImpl._setOriginalIntPraticaId = false; @@ -1138,6 +1177,14 @@ public class ParereGeologoModelImpl extends BaseModelImpl parereGeologoCacheModel.noteRichiedente = null; } + parereGeologoCacheModel.noteAssegnatore = getNoteAssegnatore(); + + String noteAssegnatore = parereGeologoCacheModel.noteAssegnatore; + + if ((noteAssegnatore != null) && (noteAssegnatore.length() == 0)) { + parereGeologoCacheModel.noteAssegnatore = null; + } + Date dtAnnullamento = getDtAnnullamento(); if (dtAnnullamento != null) { @@ -1181,7 +1228,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(getUuid()); @@ -1223,6 +1270,8 @@ public class ParereGeologoModelImpl extends BaseModelImpl sb.append(getStatus()); sb.append(", noteRichiedente="); sb.append(getNoteRichiedente()); + sb.append(", noteAssegnatore="); + sb.append(getNoteAssegnatore()); sb.append(", dtAnnullamento="); sb.append(getDtAnnullamento()); sb.append(", userIdAnnullamento="); @@ -1242,7 +1291,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(85); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.ParereGeologo"); @@ -1328,6 +1377,10 @@ public class ParereGeologoModelImpl extends BaseModelImpl "noteRichiedente"); + sb.append( + "noteAssegnatore"); sb.append( "dtAnnullamento private long _originalAssegnatoreUserId; private boolean _setOriginalAssegnatoreUserId; private Date _dtAssegnazione; + private Date _originalDtAssegnazione; private String _parere; private long _intPraticaId; private long _originalIntPraticaId; @@ -1399,6 +1453,7 @@ public class ParereGeologoModelImpl extends BaseModelImpl private Date _originalDtCompilazione; private int _status; private String _noteRichiedente; + private String _noteAssegnatore; private Date _dtAnnullamento; private Date _originalDtAnnullamento; private long _userIdAnnullamento; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java index 6e8216b7..e003d6ed 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java @@ -253,10 +253,10 @@ public class GestioneAttivitaPortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); serviceContext.setCreateDate(now); serviceContext.setModifiedDate(now); - ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(unitaOperativa, userId, - intPraticaId, dettPraticaId, noteRichiedente, serviceContext); + ParereGeologo parere = ParereGeologoServiceUtil.addParereGeologo(unitaOperativa, userId, intPraticaId, + dettPraticaId, noteRichiedente, serviceContext); // ADT: aggiunta notifica geologo - parereGeologo.invioNotifica(serviceContext); + parere.invioNotifica(serviceContext); } catch (PortalException | SystemException e) { _log.error(e, e); SessionErrors.add(request, "error-aggiunta-richiesta-parere"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java index 4d59920d..409f824e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java @@ -137,7 +137,7 @@ public class ParereGeologoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName171 = "updateParereGeologo"; + _methodName171 = "esprimiParere"; _methodParameterTypes171 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", @@ -210,21 +210,17 @@ public class ParereGeologoLocalServiceClpInvoker { _methodParameterTypes185 = new String[] { "long", "int", "int" }; - _methodName186 = "findByCompanyIdGroupId"; + _methodName189 = "findWithParereByGeologoId"; - _methodParameterTypes186 = new String[] { "long", "long" }; + _methodParameterTypes189 = new String[] { "long", "int", "int" }; - _methodName187 = "findWithParereByGeologoId"; + _methodName190 = "countFindWithParereByGeologoId"; - _methodParameterTypes187 = new String[] { "long", "int", "int" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName188 = "countFindWithParereByGeologoId"; + _methodName191 = "getCarichiLavoro"; - _methodParameterTypes188 = new String[] { "long" }; - - _methodName189 = "getCarichiLavoro"; - - _methodParameterTypes189 = new String[] { "long", "int" }; + _methodParameterTypes191 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -364,7 +360,7 @@ public class ParereGeologoLocalServiceClpInvoker { if (_methodName171.equals(name) && Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { - return ParereGeologoLocalServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), + return ParereGeologoLocalServiceUtil.esprimiParere(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); @@ -450,26 +446,20 @@ public class ParereGeologoLocalServiceClpInvoker { ((Integer)arguments[2]).intValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { - return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -553,12 +543,10 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes184; private String _methodName185; 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; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java index 63a4f327..facb9d07 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java @@ -39,7 +39,7 @@ public class ParereGeologoServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName151 = "updateParereGeologo"; + _methodName151 = "esprimiParere"; _methodParameterTypes151 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", @@ -87,7 +87,7 @@ public class ParereGeologoServiceClpInvoker { if (_methodName151.equals(name) && Arrays.deepEquals(_methodParameterTypes151, parameterTypes)) { - return ParereGeologoServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), + return ParereGeologoServiceUtil.esprimiParere(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java index 8d6d13ea..46fff965 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java @@ -144,56 +144,52 @@ public class TerritorioLocalServiceClpInvoker { _methodParameterTypes166 = new String[] { "long", "int", "int" }; - _methodName167 = "findByCompanyIdGroupId"; + _methodName167 = "getActiveProvince"; - _methodParameterTypes167 = new String[] { "long", "long" }; + _methodParameterTypes167 = new String[] { }; - _methodName168 = "getActiveProvince"; + _methodName168 = "getActiveComuniByCodiceProvincia"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes168 = new String[] { "java.lang.String" }; - _methodName169 = "getActiveComuniByCodiceProvincia"; + _methodName169 = "getActiveTerritoriByComune"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName170 = "getActiveTerritoriByComune"; + _methodName170 = "deleteTerritorio"; _methodParameterTypes170 = new String[] { "long" }; _methodName171 = "deleteTerritorio"; - _methodParameterTypes171 = new String[] { "long" }; - - _methodName172 = "deleteTerritorio"; - - _methodParameterTypes172 = new String[] { + _methodParameterTypes171 = new String[] { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName173 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + _methodName172 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - _methodParameterTypes173 = new String[] { + _methodParameterTypes172 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName175 = "getTerritoriByGroupAndZona"; + _methodName174 = "getTerritoriByGroupAndZona"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; - _methodName176 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName175 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes175 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName178 = "getAllTerritorioGroup"; + _methodName177 = "getAllTerritorioGroup"; - _methodParameterTypes178 = new String[] { }; + _methodParameterTypes177 = new String[] { }; - _methodName179 = "verifyTerritorioConstraintAlreadyExist"; + _methodName178 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -349,62 +345,56 @@ public class TerritorioLocalServiceClpInvoker { if (_methodName167.equals(name) && Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { - return TerritorioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); + return TerritorioLocalServiceUtil.getActiveProvince(); } if (_methodName168.equals(name) && Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { - return TerritorioLocalServiceUtil.getActiveProvince(); + return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]); } if (_methodName169.equals(name) && Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { - return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]); + return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue()); } if (_methodName170.equals(name) && Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { - return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue()); + return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue()); } if (_methodName171.equals(name) && Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { - return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue()); + return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } if (_methodName172.equals(name) && Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { - return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); - } - - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return TerritorioLocalServiceUtil.findTerritorioByComuneIdGZonaFasciaDtIni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.util.Date)arguments[4]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZonaAndFascia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return TerritorioLocalServiceUtil.getAllTerritorioGroup(); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return TerritorioLocalServiceUtil.verifyTerritorioConstraintAlreadyExist(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -472,14 +462,12 @@ public class TerritorioLocalServiceClpInvoker { private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; private String _methodName175; private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; private String _methodName178; private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java index d4fbe5cd..da353c7e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/ParereGeologoServiceSoap.java @@ -81,14 +81,14 @@ public class ParereGeologoServiceSoap { } } - public static it.tref.liferay.portos.bo.model.ParereGeologoSoap updateParereGeologo( - long parereGeologoId, java.lang.String parere, byte[] content, + public static it.tref.liferay.portos.bo.model.ParereGeologoSoap esprimiParere( + long parereId, java.lang.String testo, byte[] content, java.lang.String fileName, com.liferay.portal.service.ServiceContext serviceContext) throws RemoteException { try { - it.tref.liferay.portos.bo.model.ParereGeologo returnValue = ParereGeologoServiceUtil.updateParereGeologo(parereGeologoId, - parere, content, fileName, serviceContext); + it.tref.liferay.portos.bo.model.ParereGeologo returnValue = ParereGeologoServiceUtil.esprimiParere(parereId, + testo, content, fileName, serviceContext); return it.tref.liferay.portos.bo.model.ParereGeologoSoap.toSoapModel(returnValue); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java index b9d0ef6f..1a9f153d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java @@ -26,7 +26,9 @@ import java.util.Map; import java.util.TreeMap; import com.liferay.portal.NoSuchRepositoryEntryException; +import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.Junction; import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.exception.PortalException; @@ -103,22 +105,22 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase } @Override - public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, String fileName, + public ParereGeologo esprimiParere(long parereId, String testo, byte[] content, String fileName, ServiceContext serviceContext) throws PortalException, SystemException { - ParereGeologo parereGeologo = getParereGeologo(parereGeologoId); + ParereGeologo parere = getParereGeologo(parereId); User geologo = userLocalService.getUser(serviceContext.getUserId()); if (Validator.isNotNull(geologo) && serviceContext.getUserId() == geologo.getUserId()) { Date now = new Date(); - parereGeologo.setModifiedDate(serviceContext.getModifiedDate()); - parereGeologo.setDtCompilazione(now); - parereGeologo.setParere(parere); + parere.setModifiedDate(serviceContext.getModifiedDate()); + parere.setDtCompilazione(now); + parere.setParere(testo); if (Validator.isNotNull(content) && Validator.isNotNull(fileName)) { long fileEntryId = 0L; long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(parereGeologo.getDettPraticaId()); + String folderName = PraticaUtil.getFolderName(parere.getDettPraticaId()); Folder folder = null; try { folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), @@ -128,7 +130,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } - String title = now.getTime() + "_parere_" + parereGeologoId + StringPool.UNDERLINE + fileName; + String title = now.getTime() + "_parere_" + parereId + StringPool.UNDERLINE + fileName; String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(fileName); String changeLog = StringPool.BLANK; @@ -137,12 +139,12 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase now.getTime() + StringPool.UNDERLINE + fileName, mimeType, title, description, changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); - parereGeologo.setFileEntryId(fileEntryId); + parere.setFileEntryId(fileEntryId); } - return updateParereGeologo(parereGeologo); + return updateParereGeologo(parere); } else { // TODO error chi sta compilando non è il geologo designato o il geologo non esiste. - return parereGeologo; + return parere; } } @@ -192,26 +194,29 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase return parereGeologoPersistence.countByIntPraticaId(intPraticaId); } + @SuppressWarnings("unchecked") @Override public List findByIntPraticaIdInCorso(long intPraticaId, int start, int end) throws SystemException { - return parereGeologoPersistence.findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, null, null, - start, end); + DynamicQuery query = dqByIntPraticaIdInCorso(intPraticaId); + query.addOrder(OrderFactoryUtil.desc("createDate")); + return parereGeologoPersistence.findWithDynamicQuery(query, start, end); } @Override public int countByIntPraticaInCorso(long intPraticaId) throws SystemException { - return parereGeologoPersistence.countByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, null, null); + DynamicQuery query = dqByIntPraticaIdInCorso(intPraticaId); + return (int) parereGeologoPersistence.countWithDynamicQuery(query); } @Override public List findByUserDaApprovare(User user, int start, int end) throws SystemException { return parereGeologoPersistence - .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), - new long[] { 0L, user.getUserId() }, null, null, null, start, end, + new long[] { 0L, user.getUserId() }, null, null, null, null, start, end, OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtCompilazione", false)); } @@ -219,9 +224,9 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase public int countByUserDaApprovare(User user) throws SystemException { return parereGeologoPersistence - .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), - new long[] { 0L, user.getUserId() }, null, null, null); + new long[] { 0L, user.getUserId() }, null, null, null, null); } @Override @@ -244,20 +249,45 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase @Override public int countByGeologoIdInCorso(long geologoUserId) throws SystemException { - return parereGeologoPersistence.countByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, null, null); + DynamicQuery query = dqByGeologoIdInCorso(geologoUserId); + return (int) parereGeologoPersistence.countWithDynamicQuery(query); } + @SuppressWarnings("unchecked") @Override public List findByGeologoIdInCorso(long geologoUserId, int start, int end) throws SystemException { - return parereGeologoPersistence.findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, null, null, - start, end, OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "createDate", true)); + DynamicQuery query = dqByGeologoIdInCorso(geologoUserId); + query.addOrder(OrderFactoryUtil.desc("createDate")); + return parereGeologoPersistence.findWithDynamicQuery(query, start, end); } - @Override - public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { + private DynamicQuery dqByIntPraticaIdInCorso(long intPraticaId) { + + DynamicQuery query = dqInCorso(); + query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + return query; + } - return parereGeologoPersistence.findByC_GroupId(companyId, groupId); + private DynamicQuery dqByGeologoIdInCorso(long geologoUserId) { + + DynamicQuery query = dqInCorso(); + query.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); + return query; + } + + private DynamicQuery dqInCorso() { + + DynamicQuery query = dynamicQuery(); + Junction assegnataNonApprovata = RestrictionsFactoryUtil.conjunction(); + assegnataNonApprovata.add(RestrictionsFactoryUtil.isNotNull("dtAssegnazione")); + assegnataNonApprovata.add(RestrictionsFactoryUtil.isNull("dtApprovazione")); + Disjunction nonEspressoONonApprovato = RestrictionsFactoryUtil.disjunction(); + nonEspressoONonApprovato.add(assegnataNonApprovata); + nonEspressoONonApprovato.add(RestrictionsFactoryUtil.isNull("dtCompilazione")); + query.add(nonEspressoONonApprovato); + query.add(RestrictionsFactoryUtil.isNull("dtAnnullamento")); + return query; } @SuppressWarnings("unchecked") diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java index 77749aac..06b1c3c8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java @@ -53,11 +53,10 @@ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl { } @Override - public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, String fileName, + public ParereGeologo esprimiParere(long parereId, String testo, byte[] content, String fileName, ServiceContext serviceContext) throws PortalException, SystemException { - return parereGeologoLocalService - .updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); + return parereGeologoLocalService.esprimiParere(parereId, testo, content, fileName, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java index d21970aa..58430dde 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java @@ -121,11 +121,6 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { return territorioPersistence.findByComuneId(comuneId, start, end); } - @Override - public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { - return territorioPersistence.findByC_Group(companyId, groupId); - } - @SuppressWarnings("unchecked") @Override public List getActiveProvince() throws SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java index 392af44e..0ef33164 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java index 1dd062fd..e86c49f7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java index 6d670b4e..39126b3b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.impl.AvvisoImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java index a676849e..1c9ee855 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.impl.CollaudoImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java index 691776e7..b5054e85 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchComuneException; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.impl.ComuneImpl; import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java index b88225f1..b8d76564 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException; import it.tref.liferay.portos.bo.model.Comunicazione; import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java index 66d67c23..4a0e9a11 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException; import it.tref.liferay.portos.bo.model.Configurazione; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java index 0cc84b84..7c1fa3f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java index bbf7e7de..a2090464 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException; import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.impl.DelegaImpl; import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java index bee8169a..33dd7b46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java index 91ed3905..13626ed5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java index d521d3f1..3e71e802 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java index 908947c5..e2a7716d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl; +import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java index b1f93960..7b45230e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException; import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl; +import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java index f6fb9408..5bd3b3e8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java @@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java index fa8c2ebd..fc11289b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.impl.PagamentoImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java index 6e09c827..b750d9b1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java @@ -47,6 +47,7 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import java.io.Serializable; @@ -1962,1339 +1963,6 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - return findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 - */ - @Override - public List findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, int start, - int end) throws SystemException { - return findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, start, end, null); - } - - /** - * Returns an ordered range of all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param intPraticaId the int pratica 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO; - finderArgs = new Object[] { - intPraticaId, dtCompilazione, dtAnnullamento - }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO; - finderArgs = new Object[] { - intPraticaId, dtCompilazione, dtAnnullamento, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (ParereGeologo parereGeologo : list) { - if ((intPraticaId != parereGeologo.getIntPraticaId()) || - !Validator.equals(dtCompilazione, - parereGeologo.getDtCompilazione()) || - !Validator.equals(dtAnnullamento, - parereGeologo.getDtAnnullamento())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(5 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(5); - } - - query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_INTPRATICAID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo findByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = fetchByIntPraticaId_DtCompilazione_DtAnnullamento_First(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - - if (parereGeologo != null) { - return parereGeologo; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", dtCompilazione="); - msg.append(dtCompilazione); - - msg.append(", dtAnnullamento="); - msg.append(dtAnnullamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchParereGeologoException(msg.toString()); - } - - /** - * Returns the first parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public ParereGeologo fetchByIntPraticaId_DtCompilazione_DtAnnullamento_First( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) throws SystemException { - List list = findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo findByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = fetchByIntPraticaId_DtCompilazione_DtAnnullamento_Last(intPraticaId, - dtCompilazione, dtAnnullamento, orderByComparator); - - if (parereGeologo != null) { - return parereGeologo; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", dtCompilazione="); - msg.append(dtCompilazione); - - msg.append(", dtAnnullamento="); - msg.append(dtAnnullamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchParereGeologoException(msg.toString()); - } - - /** - * Returns the last parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public ParereGeologo fetchByIntPraticaId_DtCompilazione_DtAnnullamento_Last( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) throws SystemException { - int count = countByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento); - - if (count == 0) { - return null; - } - - List list = findByIntPraticaId_DtCompilazione_DtAnnullamento(intPraticaId, - dtCompilazione, dtAnnullamento, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo[] findByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long intPraticaId, Date dtCompilazione, - Date dtAnnullamento, OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = findByPrimaryKey(parereGeologoId); - - Session session = null; - - try { - session = openSession(); - - ParereGeologo[] array = new ParereGeologoImpl[3]; - - array[0] = getByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext(session, - parereGeologo, intPraticaId, dtCompilazione, - dtAnnullamento, orderByComparator, true); - - array[1] = parereGeologo; - - array[2] = getByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext(session, - parereGeologo, intPraticaId, dtCompilazione, - dtAnnullamento, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected ParereGeologo getByIntPraticaId_DtCompilazione_DtAnnullamento_PrevAndNext( - Session session, ParereGeologo parereGeologo, long intPraticaId, - Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_INTPRATICAID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(parereGeologo); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - for (ParereGeologo parereGeologo : findByIntPraticaId_DtCompilazione_DtAnnullamento( - intPraticaId, dtCompilazione, dtAnnullamento, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(parereGeologo); - } - } - - /** - * Returns the number of parere geologos where intPraticaId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param intPraticaId the int pratica 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 - */ - @Override - public int countByIntPraticaId_DtCompilazione_DtAnnullamento( - long intPraticaId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO; - - Object[] finderArgs = new Object[] { - intPraticaId, dtCompilazione, dtAnnullamento - }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_INTPRATICAID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_INTPRATICAID_2 = - "parereGeologo.intPraticaId = ? AND "; - private static final String _FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1 = - "parereGeologo.dtCompilazione IS NULL AND "; - private static final String _FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2 = - "parereGeologo.dtCompilazione = ? AND "; - private static final String _FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1 = - "parereGeologo.dtAnnullamento IS NULL"; - private static final String _FINDER_COLUMN_INTPRATICAID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2 = - "parereGeologo.dtAnnullamento = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO = - new FinderPath(ParereGeologoModelImpl.ENTITY_CACHE_ENABLED, - ParereGeologoModelImpl.FINDER_CACHE_ENABLED, - ParereGeologoImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByGeologoUserId_DtCompilazione_DtAnnullamento", - new String[] { - Long.class.getName(), Date.class.getName(), Date.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO = - new FinderPath(ParereGeologoModelImpl.ENTITY_CACHE_ENABLED, - ParereGeologoModelImpl.FINDER_CACHE_ENABLED, - ParereGeologoImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByGeologoUserId_DtCompilazione_DtAnnullamento", - new String[] { - Long.class.getName(), Date.class.getName(), Date.class.getName() - }, - ParereGeologoModelImpl.GEOLOGOUSERID_COLUMN_BITMASK | - ParereGeologoModelImpl.DTCOMPILAZIONE_COLUMN_BITMASK | - ParereGeologoModelImpl.DTANNULLAMENTO_COLUMN_BITMASK | - ParereGeologoModelImpl.CREATEDATE_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO = - new FinderPath(ParereGeologoModelImpl.ENTITY_CACHE_ENABLED, - ParereGeologoModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByGeologoUserId_DtCompilazione_DtAnnullamento", - new String[] { - Long.class.getName(), Date.class.getName(), Date.class.getName() - }); - - /** - * Returns all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @return the matching parere geologos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - return findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 - */ - @Override - public List findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - int start, int end) throws SystemException { - return findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, start, end, null); - } - - /** - * Returns an ordered range of all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. - *

- * - * @param geologoUserId the geologo 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 null) - * @return the ordered range of matching parere geologos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO; - finderArgs = new Object[] { - geologoUserId, dtCompilazione, dtAnnullamento - }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO; - finderArgs = new Object[] { - geologoUserId, dtCompilazione, dtAnnullamento, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (ParereGeologo parereGeologo : list) { - if ((geologoUserId != parereGeologo.getGeologoUserId()) || - !Validator.equals(dtCompilazione, - parereGeologo.getDtCompilazione()) || - !Validator.equals(dtAnnullamento, - parereGeologo.getDtAnnullamento())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(5 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(5); - } - - query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(geologoUserId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo findByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = fetchByGeologoUserId_DtCompilazione_DtAnnullamento_First(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - - if (parereGeologo != null) { - return parereGeologo; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("geologoUserId="); - msg.append(geologoUserId); - - msg.append(", dtCompilazione="); - msg.append(dtCompilazione); - - msg.append(", dtAnnullamento="); - msg.append(dtAnnullamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchParereGeologoException(msg.toString()); - } - - /** - * Returns the first parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public ParereGeologo fetchByGeologoUserId_DtCompilazione_DtAnnullamento_First( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) throws SystemException { - List list = findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo findByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = fetchByGeologoUserId_DtCompilazione_DtAnnullamento_Last(geologoUserId, - dtCompilazione, dtAnnullamento, orderByComparator); - - if (parereGeologo != null) { - return parereGeologo; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("geologoUserId="); - msg.append(geologoUserId); - - msg.append(", dtCompilazione="); - msg.append(dtCompilazione); - - msg.append(", dtAnnullamento="); - msg.append(dtAnnullamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchParereGeologoException(msg.toString()); - } - - /** - * Returns the last parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching parere geologo, or null if a matching parere geologo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public ParereGeologo fetchByGeologoUserId_DtCompilazione_DtAnnullamento_Last( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator) throws SystemException { - int count = countByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento); - - if (count == 0) { - return null; - } - - List list = findByGeologoUserId_DtCompilazione_DtAnnullamento(geologoUserId, - dtCompilazione, dtAnnullamento, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param parereGeologoId the primary key of the current parere geologo - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @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 - */ - @Override - public ParereGeologo[] findByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext( - long parereGeologoId, long geologoUserId, Date dtCompilazione, - Date dtAnnullamento, OrderByComparator orderByComparator) - throws NoSuchParereGeologoException, SystemException { - ParereGeologo parereGeologo = findByPrimaryKey(parereGeologoId); - - Session session = null; - - try { - session = openSession(); - - ParereGeologo[] array = new ParereGeologoImpl[3]; - - array[0] = getByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext(session, - parereGeologo, geologoUserId, dtCompilazione, - dtAnnullamento, orderByComparator, true); - - array[1] = parereGeologo; - - array[2] = getByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext(session, - parereGeologo, geologoUserId, dtCompilazione, - dtAnnullamento, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected ParereGeologo getByGeologoUserId_DtCompilazione_DtAnnullamento_PrevAndNext( - Session session, ParereGeologo parereGeologo, long geologoUserId, - Date dtCompilazione, Date dtAnnullamento, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(geologoUserId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(parereGeologo); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ? from the database. - * - * @param geologoUserId the geologo user ID - * @param dtCompilazione the dt compilazione - * @param dtAnnullamento the dt annullamento - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - for (ParereGeologo parereGeologo : findByGeologoUserId_DtCompilazione_DtAnnullamento( - geologoUserId, dtCompilazione, dtAnnullamento, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(parereGeologo); - } - } - - /** - * Returns the number of parere geologos where geologoUserId = ? and dtCompilazione = ? and dtAnnullamento = ?. - * - * @param geologoUserId the geologo 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 - */ - @Override - public int countByGeologoUserId_DtCompilazione_DtAnnullamento( - long geologoUserId, Date dtCompilazione, Date dtAnnullamento) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO; - - Object[] finderArgs = new Object[] { - geologoUserId, dtCompilazione, dtAnnullamento - }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); - - boolean bindDtCompilazione = false; - - if (dtCompilazione == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1); - } - else { - bindDtCompilazione = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2); - } - - boolean bindDtAnnullamento = false; - - if (dtAnnullamento == null) { - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); - } - else { - bindDtAnnullamento = true; - - query.append(_FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(geologoUserId); - - if (bindDtCompilazione) { - qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); - } - - if (bindDtAnnullamento) { - qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2 = - "parereGeologo.geologoUserId = ? AND "; - private static final String _FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_1 = - "parereGeologo.dtCompilazione IS NULL AND "; - private static final String _FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTCOMPILAZIONE_2 = - "parereGeologo.dtCompilazione = ? AND "; - private static final String _FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1 = - "parereGeologo.dtAnnullamento IS NULL"; - private static final String _FINDER_COLUMN_GEOLOGOUSERID_DTCOMPILAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2 = - "parereGeologo.dtAnnullamento = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_GROUPID = new FinderPath(ParereGeologoModelImpl.ENTITY_CACHE_ENABLED, ParereGeologoModelImpl.FINDER_CACHE_ENABLED, @@ -5168,54 +3836,56 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - Date dtCompilazione, Date dtAnnullamento, Date dtApprovazione) - throws SystemException { - return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId, - unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento, - dtApprovazione, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); } /** - * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -5225,6 +3895,7 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - Date dtCompilazione, Date dtAnnullamento, Date dtApprovazione, - int start, int end) throws SystemException { - return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione(groupId, - unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento, - dtApprovazione, start, end, null); + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end, null); } /** - * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAnnullamento ≠ ? and dtApprovazione = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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 orderByComparator 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. @@ -5253,6 +3924,7 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione( + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione( long groupId, int unitaOperativa, long assegnatoreUserId, - Date dtCompilazione, Date dtAnnullamento, Date dtApprovazione, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end, + OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTANNULLAMENTO_DTAPPROVAZIONE; + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE; finderArgs = new Object[] { groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, - dtAnnullamento, dtApprovazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end, orderByComparator }; @@ -5289,7 +3961,9 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImplnull) @@ -5435,20 +4125,21 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in out.print("nessun parere richiesto"); } else { for (ParereGeologo parere : pareri) { - 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 assegnatore = parere.getAssegnatoreUserId() == 0 ? null : UserLocalServiceUtil.getUser(parere.getAssegnatoreUserId()); @@ -89,13 +79,18 @@ List pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in : UserLocalServiceUtil.getUser(parere.getGeologoUserId()); User annullante = parere.getUserIdAnnullamento() == 0 ? null : UserLocalServiceUtil.getUser(parere.getUserIdAnnullamento()); + User approvatore = parere.getApprovatoreUserId() == 0 ? null + : UserLocalServiceUtil.getUser(parere.getApprovatoreUserId()); + boolean espresso = Validator.isNotNull(parere.getDtCompilazione()) + && (Validator.isNull(parere.getDtAssegnazione()) + || Validator.isNotNull(parere.getDtApprovazione())); %>

  • - + @@ -125,7 +120,7 @@ List pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in
    - + Espresso da <%= Generics.capitalizeFull(geologo.getFullName()) %> in data <%= dateFormatDateTime.format(parere.getDtCompilazione()) %>
    @@ -139,10 +134,16 @@ List pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in +
    + + Approvato da <%= Generics.capitalizeFull(approvatore.getFullName()) %> + in data <%= dateFormatDateTime.format(parere.getDtApprovazione()) %> +
    +
    -
    Annullato da <%= Generics.capitalizeFull(annullante.getFullName()) %> + Annullato da <%= Generics.capitalizeFull(annullante.getFullName()) %> in data <%= dateFormatDateTime.format(parere.getDtAnnullamento()) %> con motivazioni: <%= parere.getNoteAnnullamento() %>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp index da204eae..2414f27f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.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 import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="it.mwg.sismica.bo.util.MappeUtil"%> @@ -268,25 +269,19 @@ String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) | value='<%= geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>'/> - - -
    - -
    -
    -
    -
    - -
    -
    +
    + <%-- Integrazione geoportal --%> +
    +
    +
    +
    +
    - - - - - +
    + <%-- /Integrazione geoportal --%> +
    @@ -305,19 +300,19 @@ String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) | <%= LanguageUtil.get(pageContext, "livello-di-tutela") %>
    - <%= dettPratica.getLivelloDiTutela() %> + <%= Generics.nl2br(dettPratica.getLivelloDiTutela()) %>
    <%= LanguageUtil.get(pageContext, "paesaggio-locale") %>
    - <%= dettPratica.getPaesaggioLocale() %> + <%= Generics.nl2br(dettPratica.getPaesaggioLocale()) %>
    <%= LanguageUtil.get(pageContext, "vincoli") %>
    - <%= BeanPropertiesUtil.getString(dettPratica, "vincoli") %> + <%= Generics.nl2br(dettPratica.getVincoli()) %>
    @@ -325,7 +320,6 @@ String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) | -
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp index 135ecf4e..4204d191 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp @@ -41,7 +41,7 @@ long lastDettPraticaId = DettPraticaLocalServiceUtil.getLastCompletedByIntPratic String randomId = StringUtil.randomId(); String buttonIdCambioIstruttore = "buttonIdCambioIstruttore_" + randomId; String buttonIdRichiediParere = "buttonIdRichiediParere_" + randomId; -String buttonIdAnnullaRicGeologo = "buttonIdAnnullaRicGeologo_" + randomId; +String buttonIdAnnullaParere = "buttonIdAnnullaParere_" + randomId; String buttonIdAggiungiDettPraticheAlControllo = "buttonIdAggiungiDettPraticheAlControllo_" + randomId; Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); long territorioGroupId = territorio.getGroupId(); @@ -129,7 +129,7 @@ long territorioGroupId = territorio.getGroupId(); value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> - +
    @@ -149,12 +149,11 @@ long territorioGroupId = territorio.getGroupId(); value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> - +
    -
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp index f6c4b967..ada14ebc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_richiesta_parere.jsp @@ -11,10 +11,10 @@ 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; +String buttonId = ParamUtil.getString(request, "buttonId"); +String randomId = StringUtil.randomId() + dettPraticaId; +String formName = "formNameRichiediParere_" + randomId; +String contentDiv = "divIdRichiediParere" + randomId; Map lista = intPratica.getGeologiPerParere(); %> @@ -22,8 +22,8 @@ Map lista = intPratica.getGeologiPerParere(); - -
    + +
    <% @@ -56,11 +56,11 @@ Map lista = intPratica.getGeologiPerParere();
    - + - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf index 572580bd..fafe6d02 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf @@ -214,7 +214,9 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP for (ParereGeologo parere : tutti) { if (Validator.isNotNull(parere.getDtAnnullamento())) { annullati++; - } else if (Validator.isNotNull(parere.getDtCompilazione())) { + } else if (Validator.isNotNull(parere.getDtCompilazione()) + && (Validator.isNull(parere.getDtAssegnazione()) + || Validator.isNotNull(parere.getDtApprovazione()))) { espressi++; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties index ff277483..e297d84d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties @@ -3,6 +3,8 @@ domanda-non-modificabile = Domanda non modificabile fascicolo-action-open-pratica = Apri pratica fascicolo-action-parere-geologo = Esprimi parere fascicolo-action-assegna-parere = Assegna il parere +fascicolo-action-approva-parere = Approva il parere +fascicolo-action-rifiuta-parere = Rifiuta il parere pagamento-attivo-domanda-non-modificabile = Pagamento in corso - Domanda non modificabile add-fascicolo = Aggiungi progetto diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java index a5f4964a..7c9ac01a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java @@ -979,13 +979,8 @@ public class FascicoloFePortlet extends MVCPortlet { Pattern.quote(StringPool.PIPE), StringPool.SPACE); String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + StringPool.PIPE + particella4; - String latitudine = ParamUtil.getString(request, "lat", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String longitudine = ParamUtil.getString(request, "long", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String zoom = ParamUtil.getString(request, "zoom", StringPool.BLANK).replaceAll(Pattern.quote(StringPool.PIPE), - StringPool.SPACE); - String localizzazioneGeografica = latitudine + StringPool.PIPE + longitudine + StringPool.PIPE + zoom; + String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); + _log.info("localizzazioneGeografica = " + localizzazioneGeografica); boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java index c17fd7a1..9646d8ef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java @@ -45,15 +45,15 @@ public class ParereGeologoPortlet extends MVCPortlet { private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class); - public void aggiornaParere(ActionRequest request, ActionResponse response) { + public void esprimiParere(ActionRequest request, ActionResponse response) { - String parere = ParamUtil.getString(request, "parere"); - long intPraticaId = ParamUtil.getLong(request, "intPratica"); - long parereGeologoId = ParamUtil.getLong(request, "parereGeologoId"); + String testo = ParamUtil.getString(request, "parere"); + long parereId = ParamUtil.getLong(request, "parereId"); + Date now = new Date(); UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request); ServiceContext serviceContext; try { - ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); + ParereGeologo parere = ParereGeologoLocalServiceUtil.getParereGeologo(parereId); serviceContext = ServiceContextFactory.getInstance(request); byte[] content = null; String fileName = uploadRequest.getFileName("docFile"); @@ -64,36 +64,55 @@ public class ParereGeologoPortlet extends MVCPortlet { SessionErrors.add(request, "error.geniocivilebo.pareregeologo.allegato.length.valid"); } } - if (!SessionErrors.isEmpty(request)) { - PortalUtil.copyRequestParameters(request, response); + if (SessionErrors.isEmpty(request)) { + content = FileUtil.getBytes(file); + parere = ParereGeologoServiceUtil.esprimiParere(parereId, testo, content, fileName, serviceContext); + parere.invioNotifica(serviceContext); + SessionMessages.add(request, "success-update-parere-geologo"); } else { - if (Validator.isNotNull(intPraticaId)) { - content = FileUtil.getBytes(file); - } + PortalUtil.copyRequestParameters(request, response); } - ParereGeologoServiceUtil.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); - parereGeologo.invioNotifica(serviceContext); - SessionMessages.add(request, "success-update-parere-geologo"); } catch (Exception e) { _log.error(e, e); SessionErrors.add(request, "error-update-parere-geologo"); } } + public void approvaParere(ActionRequest request, ActionResponse response) throws PortalException, SystemException { + + long parereId = ParamUtil.getLong(request, "parereId"); + boolean approva = ParamUtil.getBoolean(request, "approva"); + String noteApprovatore = ParamUtil.getString(request, "noteApprovatore"); + Date now = new Date(); + ServiceContext serviceContext = ServiceContextFactory.getInstance(request); + ParereGeologo parere = ParereGeologoLocalServiceUtil.getParereGeologo(parereId); + parere.setNoteApprovatore(noteApprovatore); + parere.setApprovatoreUserId(serviceContext.getUserId()); + parere.setModifiedDate(now); + if (approva) { + parere.setDtApprovazione(now); + } else { + parere.setDtCompilazione(null); + } + ParereGeologoLocalServiceUtil.updateParereGeologo(parere); + parere.invioNotifica(serviceContext); + } + public void assegnaParere(ActionRequest request, ActionResponse response) { - long parereGeologoId = ParamUtil.getLong(request, "parereGeologoId"); + long parereId = ParamUtil.getLong(request, "parereId"); 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); + ParereGeologo parere = ParereGeologoLocalServiceUtil.getParereGeologo(parereId); + parere.setGeologoUserId(geologoUserId); + parere.setAssegnatoreUserId(serviceContext.getUserId()); + parere.setNoteAssegnatore(ParamUtil.getString(request, "noteAssegnatore")); + parere.setDtAssegnazione(now); + parere.setModifiedDate(now); + ParereGeologoLocalServiceUtil.updateParereGeologo(parere); + parere.invioNotifica(serviceContext); } catch (PortalException | SystemException e) { _log.error(e, e); SessionErrors.add(request, "error-update-parere-geologo"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp index 58228475..76f82f0e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp @@ -23,7 +23,6 @@ <%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> <%@ include file="/html/fascicolofe/init.jsp" %> <% - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); @@ -42,15 +41,12 @@ boolean enabledByIntegrazione = dettPratica.hasDelegaCompilazioneDomanda(user.ge boolean isDisabled = disabledInput && !enabledByIntegrazione; boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante"); boolean disableViarch = !dettPratica.getLavoriPubblici() && !dettPratica.getIntervFinPub(); - String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabledInput || isGeoEditable)); - String hide1 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) ? "hideSection" : ""); String hide3 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) ? "hideSection" : ""); String hide8 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q8) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P8) ? "hideSection" : ""); String hide9 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q9) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) ? "hideSection" : ""); String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) ? "hideSection" : ""); - %> @@ -250,19 +246,16 @@ String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) |
    - - -
    - -
    -
    -
    - -
    -
    +
    + <%-- Integrazione geoportal --%> +
    +
    +
    +
    - -
    - - - -
    - -
    -
    - + +function duplicati(input) { + + var righe = input.split('\n'); + var valore = ''; + var output = ''; + for (var i in righe) { + if (valore !== righe[i]) { + valore = righe[i]; + output += (output === '' ? '' : '\n') + valore; + } + } + return output; +} + +
    + <%-- /Integrazione geoportal --%>
    -
    +
    @@ -336,54 +346,29 @@ function messageListener(event) { label="dp-dc-via"/>
    -
    -
    - -
    -
    -
    - <% - String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|")); - %> - -
    - - -
    -
    - - -
    - -
    +
    -
    - +
    - +
    - +
    @@ -393,32 +378,6 @@ function messageListener(event) {
    - -
    + url="<%= FascicoloURLUtil.getFascicoloViewURL(parere.getCompanyId(), parere.getIntPraticaId()) %>" />
    - + + <% + String buttonId = "buttonIdEsprimiParere_" + parereId; + %>
    -
    + + + +
    - + + <% + String buttonId = "buttonIdAssegnaParere_" + parereId; + %>
    -
    + + + +
    - + <% - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parereGeologo.getFileEntryId()); + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parere.getFileEntryId()); String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); %> @@ -53,23 +66,37 @@ String buttonIdAssegnaParere = "buttonIdAssegnaParere_" + parereGeologo.getParer url="<%= downloadUrl %>" />
    + + <% + String buttonId = "buttonIdApprovaParere_" + parereId; + %> +
    + +
    + + + + + + <% + buttonId = "buttonIdRifiutaParere_" + parereId; + %> +
    + +
    + + + + + +
    - - - - - - - - - - - - - -