diff --git a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar index 98fd2a2a..68904594 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar index 84db7712..85b0f032 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar index 15a2e3b2..fcca7b2f 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar index 3553cf19..81ca9693 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar index a5242ab8..60c9d57e 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar index 98fd2a2a..68904594 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index fdad23ea..5eef4ff7 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index 49347f2e..85b0f032 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar index 72d73b32..fcca7b2f 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar index 3553cf19..81ca9693 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index a5242ab8..60c9d57e 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.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 71c87d03..4e6dee1b 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 @@ -172,6 +172,16 @@ + + + + + + + + + + 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 d37693b3..d8ff9e1b 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 @@ -356,6 +356,13 @@ public interface ParereGeologoLocalService extends BaseLocalService, public int countByUserDaAssegnare(com.liferay.portal.model.User user) throws com.liferay.portal.kernel.exception.SystemException; + public java.util.List findByUserAssegnati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + public int countByUserAssegnati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException; + public int countByGeologoIdInCorso(long geologoUserId) throws com.liferay.portal.kernel.exception.SystemException; @@ -370,6 +377,14 @@ public interface ParereGeologoLocalService extends BaseLocalService, public int countFindWithParereByGeologoId(long geologoUserId) throws com.liferay.portal.kernel.exception.SystemException; + public java.util.List findWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + public int countFindWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione) + throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.Map getCarichiLavoro( long controlloPraticaId, int giorni) 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 ad48949a..2bfcccd7 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 @@ -187,25 +187,43 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { _methodParameterTypes33 = new String[] { "com.liferay.portal.model.User" }; - _methodName34 = "countByGeologoIdInCorso"; + _methodName34 = "findByUserAssegnati"; - _methodParameterTypes34 = new String[] { "long" }; + _methodParameterTypes34 = new String[] { + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName35 = "countByUserAssegnati"; + + _methodParameterTypes35 = new String[] { "com.liferay.portal.model.User" }; + + _methodName36 = "countByGeologoIdInCorso"; + + _methodParameterTypes36 = new String[] { "long" }; + + _methodName37 = "findByGeologoIdInCorso"; + + _methodParameterTypes37 = new String[] { "long", "int", "int" }; - _methodName35 = "findByGeologoIdInCorso"; + _methodName38 = "findWithParereByGeologoId"; - _methodParameterTypes35 = new String[] { "long", "int", "int" }; + _methodParameterTypes38 = new String[] { "long", "int", "int" }; - _methodName36 = "findWithParereByGeologoId"; + _methodName39 = "countFindWithParereByGeologoId"; - _methodParameterTypes36 = new String[] { "long", "int", "int" }; + _methodParameterTypes39 = new String[] { "long" }; - _methodName37 = "countFindWithParereByGeologoId"; + _methodName40 = "findWithParereByGeologoIdAndApprovazione"; - _methodParameterTypes37 = new String[] { "long" }; + _methodParameterTypes40 = new String[] { "long", "boolean", "int", "int" }; - _methodName38 = "getCarichiLavoro"; + _methodName41 = "countFindWithParereByGeologoIdAndApprovazione"; - _methodParameterTypes38 = new String[] { "long", "int" }; + _methodParameterTypes41 = new String[] { "long", "boolean" }; + + _methodName42 = "getCarichiLavoro"; + + _methodParameterTypes42 = new String[] { "long", "int" }; } @Override @@ -1249,13 +1267,72 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public int countByGeologoIdInCorso(long geologoUserId) + public java.util.List findByUserAssegnati( + com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, new Object[] { geologoUserId }); + _methodParameterTypes34, + new Object[] { ClpSerializer.translateInput(user), start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int countByUserAssegnati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, + new Object[] { ClpSerializer.translateInput(user) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public int countByGeologoIdInCorso(long geologoUserId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { geologoUserId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1283,8 +1360,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { geologoUserId, start, end }); } catch (Throwable t) { @@ -1313,8 +1390,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { geologoUserId, start, end }); } catch (Throwable t) { @@ -1342,8 +1419,68 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, new Object[] { geologoUserId }); + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { geologoUserId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public java.util.List findWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, + new Object[] { geologoUserId, approvazione, start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int countFindWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, + new Object[] { geologoUserId, approvazione }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1372,8 +1509,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { controlloPraticaId, giorni }); } catch (Throwable t) { @@ -1476,4 +1613,12 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { private String[] _methodParameterTypes37; private String _methodName38; private String[] _methodParameterTypes38; + private String _methodName39; + private String[] _methodParameterTypes39; + private String _methodName40; + private String[] _methodParameterTypes40; + private String _methodName41; + private String[] _methodParameterTypes41; + private String _methodName42; + private String[] _methodParameterTypes42; } \ 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 09c4a7c0..45f1791e 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 @@ -407,6 +407,17 @@ public class ParereGeologoLocalServiceUtil { return getService().countByUserDaAssegnare(user); } + public static java.util.List findByUserAssegnati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findByUserAssegnati(user, start, end); + } + + public static int countByUserAssegnati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().countByUserAssegnati(user); + } + public static int countByGeologoIdInCorso(long geologoUserId) throws com.liferay.portal.kernel.exception.SystemException { return getService().countByGeologoIdInCorso(geologoUserId); @@ -429,6 +440,22 @@ public class ParereGeologoLocalServiceUtil { return getService().countFindWithParereByGeologoId(geologoUserId); } + public static java.util.List findWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .findWithParereByGeologoIdAndApprovazione(geologoUserId, + approvazione, start, end); + } + + public static int countFindWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .countFindWithParereByGeologoIdAndApprovazione(geologoUserId, + approvazione); + } + public static java.util.Map getCarichiLavoro( long controlloPraticaId, int giorni) 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/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 850a696f..96d7cccf 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 @@ -439,6 +439,19 @@ public class ParereGeologoLocalServiceWrapper return _parereGeologoLocalService.countByUserDaAssegnare(user); } + @Override + public java.util.List findByUserAssegnati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.findByUserAssegnati(user, start, end); + } + + @Override + public int countByUserAssegnati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.countByUserAssegnati(user); + } + @Override public int countByGeologoIdInCorso(long geologoUserId) throws com.liferay.portal.kernel.exception.SystemException { @@ -467,6 +480,22 @@ public class ParereGeologoLocalServiceWrapper return _parereGeologoLocalService.countFindWithParereByGeologoId(geologoUserId); } + @Override + public java.util.List findWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.findWithParereByGeologoIdAndApprovazione(geologoUserId, + approvazione, start, end); + } + + @Override + public int countFindWithParereByGeologoIdAndApprovazione( + long geologoUserId, boolean approvazione) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.countFindWithParereByGeologoIdAndApprovazione(geologoUserId, + approvazione); + } + @Override public java.util.Map getCarichiLavoro( long controlloPraticaId, int giorni) 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 81844388..a7c1971d 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 @@ -972,6 +972,325 @@ public interface ParereGeologoPersistence extends BasePersistence java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; + /** + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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[] findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long geologoUserId, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @throws SystemException if a system exception occurred + */ + public void removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException; + /** * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione = ?. * 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 fda092b5..0b59cb36 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 @@ -1230,6 +1230,395 @@ public class ParereGeologoUtil { dtAnnullamento); } + /** + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento); + } + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end, orderByComparator); + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, orderByComparator); + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, orderByComparator); + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, orderByComparator); + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, orderByComparator); + } + + /** + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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[] findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long geologoUserId, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext(parereGeologoId, + groupId, unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, orderByComparator); + } + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento); + } + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end, orderByComparator); + } + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @throws SystemException if a system exception occurred + */ + public static void removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence() + .removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento); + } + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento); + } + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento); + } + /** * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and 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 46b06813..414d58ac 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 @@ -180,6 +180,8 @@ IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazio 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_9E215E93=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento +IX_E45CCE1A=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_NotDtCompilazione_DtApprovazione_DtAnnullamento IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento IX_635441BE=portos_bo_ParereGeo.UUID_G 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 68cd3455..94bef81d 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 @@ -172,7 +172,9 @@ create index IX_B4CF0B7E on portos_bo_ParereGeo (groupId, geologoUserId, assegna 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_9E215E93 on portos_bo_ParereGeo (groupId, unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, dtApprovazione, dtAnnullamento); create index IX_3A6B6848 on portos_bo_ParereGeo (groupId, unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione, dtAnnullamento); +create index IX_E45CCE1A on portos_bo_ParereGeo (groupId, unitaOperativa, geologoUserId, assegnatoreUserId, dtCompilazione, dtApprovazione, dtAnnullamento); create index IX_EFB6D6FA on portos_bo_ParereGeo (intPraticaId); create index IX_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento); create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); 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 721112f5..9baf15e0 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 @@ -202,25 +202,43 @@ public class ParereGeologoLocalServiceClpInvoker { _methodParameterTypes189 = new String[] { "com.liferay.portal.model.User" }; - _methodName190 = "countByGeologoIdInCorso"; + _methodName190 = "findByUserAssegnati"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName191 = "countByUserAssegnati"; + + _methodParameterTypes191 = new String[] { "com.liferay.portal.model.User" }; + + _methodName192 = "countByGeologoIdInCorso"; + + _methodParameterTypes192 = new String[] { "long" }; + + _methodName193 = "findByGeologoIdInCorso"; - _methodName191 = "findByGeologoIdInCorso"; + _methodParameterTypes193 = new String[] { "long", "int", "int" }; - _methodParameterTypes191 = new String[] { "long", "int", "int" }; + _methodName197 = "findWithParereByGeologoId"; - _methodName195 = "findWithParereByGeologoId"; + _methodParameterTypes197 = new String[] { "long", "int", "int" }; - _methodParameterTypes195 = new String[] { "long", "int", "int" }; + _methodName198 = "countFindWithParereByGeologoId"; - _methodName196 = "countFindWithParereByGeologoId"; + _methodParameterTypes198 = new String[] { "long" }; - _methodParameterTypes196 = new String[] { "long" }; + _methodName199 = "findWithParereByGeologoIdAndApprovazione"; - _methodName197 = "getCarichiLavoro"; + _methodParameterTypes199 = new String[] { "long", "boolean", "int", "int" }; - _methodParameterTypes197 = new String[] { "long", "int" }; + _methodName200 = "countFindWithParereByGeologoIdAndApprovazione"; + + _methodParameterTypes200 = new String[] { "long", "boolean" }; + + _methodName201 = "getCarichiLavoro"; + + _methodParameterTypes201 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -436,30 +454,56 @@ public class ParereGeologoLocalServiceClpInvoker { if (_methodName190.equals(name) && Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { - return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue()); + return ParereGeologoLocalServiceUtil.findByUserAssegnati((com.liferay.portal.model.User)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); } if (_methodName191.equals(name) && Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + return ParereGeologoLocalServiceUtil.countByUserAssegnati((com.liferay.portal.model.User)arguments[0]); + } + + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue()); + } + + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByGeologoIdInCorso(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + return ParereGeologoLocalServiceUtil.findWithParereByGeologoIdAndApprovazione(((Long)arguments[0]).longValue(), + ((Boolean)arguments[1]).booleanValue(), + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue()); + } + + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoIdAndApprovazione(((Long)arguments[0]).longValue(), + ((Boolean)arguments[1]).booleanValue()); + } + + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -543,10 +587,18 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes190; private String _methodName191; private String[] _methodParameterTypes191; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; private String _methodName197; private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; } \ 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/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 95eb6aba..630a99cd 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 @@ -43,6 +43,7 @@ import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.User; import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; import com.liferay.portal.util.PortalUtil; import com.liferay.portlet.documentlibrary.NoSuchFileEntryException; import com.liferay.portlet.documentlibrary.NoSuchFolderException; @@ -111,9 +112,13 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase ParereGeologo parere = getParereGeologo(parereId); User geologo = userLocalService.getUser(serviceContext.getUserId()); if (Validator.isNotNull(geologo) && serviceContext.getUserId() == geologo.getUserId()) { - Date now = new Date(); + Date now = serviceContext.getModifiedDate(new Date()); parere.setModifiedDate(serviceContext.getModifiedDate()); parere.setDtCompilazione(now); + if(Validator.isNull(parere.getUnitaOperativa())){ + parere.setApprovatoreUserId(serviceContext.getUserId()); + parere.setDtApprovazione(now); + } parere.setParere(testo); if (Validator.isNotNull(content) && Validator.isNotNull(fileName)) { long fileEntryId = 0L; @@ -245,6 +250,23 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L, new long[] { 0L, user.getUserId() }, null, null); } + + @Override + public List findByUserAssegnati(User user, int start, int end) throws SystemException { + + return parereGeologoPersistence.findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L, + new long[] { 0L, user.getUserId() }, null, null, null, start, end, + OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtRichista", false)); + } + + @Override + public int countByUserAssegnati(User user) throws SystemException { + + return parereGeologoPersistence.countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L, + new long[] { 0L, user.getUserId() }, null, null, null); + } @Override public int countByGeologoIdInCorso(long geologoUserId) throws SystemException { @@ -279,16 +301,19 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase private DynamicQuery dqInCorso() { DynamicQuery query = dynamicQuery(); - Disjunction or = RestrictionsFactoryUtil.disjunction(); +// Disjunction or = RestrictionsFactoryUtil.disjunction(); Junction and = RestrictionsFactoryUtil.conjunction(); + Junction and2 = RestrictionsFactoryUtil.conjunction(); and.add(RestrictionsFactoryUtil.eq("assegnatoreUserId", 0L)); and.add(RestrictionsFactoryUtil.isNull("dtCompilazione")); - or.add(and); +// or.add(and); + and2.add(and); and = RestrictionsFactoryUtil.conjunction(); and.add(RestrictionsFactoryUtil.ne("assegnatoreUserId", 0L)); and.add(RestrictionsFactoryUtil.isNull("dtApprovazione")); - or.add(and); - query.add(or); +// or.add(and); + and2.add(and); + query.add(and2); query.add(RestrictionsFactoryUtil.isNull("dtAnnullamento")); return query; } @@ -312,6 +337,36 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK)); return (int) parereGeologoPersistence.countWithDynamicQuery(dynamicQuery); } + + @SuppressWarnings("unchecked") + @Override + public List findWithParereByGeologoIdAndApprovazione(long geologoUserId, boolean approvazione, int start, int end) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK)); + if(approvazione){ + dynamicQuery.add(RestrictionsFactoryUtil.ne("dtApprovazione", null)); + } else { + dynamicQuery.add(RestrictionsFactoryUtil.eq("dtApprovazione", null)); + } + dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate")); + return dynamicQuery(dynamicQuery, start, end); + } + + @Override + public int countFindWithParereByGeologoIdAndApprovazione(long geologoUserId, boolean approvazione) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK)); + if(approvazione){ + dynamicQuery.add(RestrictionsFactoryUtil.ne("dtApprovazione", null)); + } else { + dynamicQuery.add(RestrictionsFactoryUtil.eq("dtApprovazione", null)); + } + return (int) parereGeologoPersistence.countWithDynamicQuery(dynamicQuery); + } @Override @SuppressWarnings("unchecked") 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 7ccfc052..672b671d 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 @@ -3835,6 +3835,1440 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento) throws SystemException { + return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end, null); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, 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_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO; + finderArgs = new Object[] { + groupId, unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, + + start, end, orderByComparator + }; + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (ParereGeologo parereGeologo : list) { + if ((groupId != parereGeologo.getGroupId()) || + (unitaOperativa != parereGeologo.getUnitaOperativa()) || + (geologoUserId != parereGeologo.getGeologoUserId()) || + (assegnatoreUserId != parereGeologo.getAssegnatoreUserId()) || + Validator.equals(dtAssegnazione, + parereGeologo.getDtAssegnazione()) || + !Validator.equals(dtApprovazione, + parereGeologo.getDtApprovazione()) || + !Validator.equals(dtAnnullamento, + parereGeologo.getDtAnnullamento())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(9 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(9); + } + + query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_2); + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_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(groupId); + + qPos.add(unitaOperativa); + + qPos.add(geologoUserId); + + qPos.add(assegnatoreUserId); + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + 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 groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, + orderByComparator); + + if (parereGeologo != null) { + return parereGeologo; + } + + StringBundler msg = new StringBundler(16); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("groupId="); + msg.append(groupId); + + msg.append(", unitaOperativa="); + msg.append(unitaOperativa); + + msg.append(", geologoUserId="); + msg.append(geologoUserId); + + msg.append(", assegnatoreUserId="); + msg.append(assegnatoreUserId); + + msg.append(", dtAssegnazione="); + msg.append(dtAssegnazione); + + msg.append(", dtApprovazione="); + msg.append(dtApprovazione); + + 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 groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, OrderByComparator orderByComparator) + throws SystemException { + List list = findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, + orderByComparator); + + if (parereGeologo != null) { + return parereGeologo; + } + + StringBundler msg = new StringBundler(16); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("groupId="); + msg.append(groupId); + + msg.append(", unitaOperativa="); + msg.append(unitaOperativa); + + msg.append(", geologoUserId="); + msg.append(geologoUserId); + + msg.append(", assegnatoreUserId="); + msg.append(assegnatoreUserId); + + msg.append(", dtAssegnazione="); + msg.append(dtAssegnazione); + + msg.append(", dtApprovazione="); + msg.append(dtApprovazione); + + 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 groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, OrderByComparator orderByComparator) + throws SystemException { + int count = countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento); + + if (count == 0) { + return null; + } + + List list = findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, 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 groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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[] findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long geologoUserId, long assegnatoreUserId, Date dtAssegnazione, + Date dtApprovazione, Date dtAnnullamento, + OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = findByPrimaryKey(parereGeologoId); + + Session session = null; + + try { + session = openSession(); + + ParereGeologo[] array = new ParereGeologoImpl[3]; + + array[0] = getByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext(session, + parereGeologo, groupId, unitaOperativa, geologoUserId, + assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator, true); + + array[1] = parereGeologo; + + array[2] = getByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext(session, + parereGeologo, groupId, unitaOperativa, geologoUserId, + assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected ParereGeologo getByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + Session session, ParereGeologo parereGeologo, long groupId, + int unitaOperativa, long geologoUserId, long assegnatoreUserId, + Date dtAssegnazione, Date dtApprovazione, 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_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_2); + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_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(groupId); + + qPos.add(unitaOperativa); + + qPos.add(geologoUserId); + + qPos.add(assegnatoreUserId); + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + 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; + } + } + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento) throws SystemException { + return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end, null); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? 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 groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @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 findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + if ((groupIds != null) && (groupIds.length == 1) && + (unitaOperativas != null) && (unitaOperativas.length == 1) && + (assegnatoreUserIds != null) && + (assegnatoreUserIds.length == 1)) { + return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds[0], + unitaOperativas[0], geologoUserId, assegnatoreUserIds[0], + dtAssegnazione, dtApprovazione, dtAnnullamento, start, end, + orderByComparator); + } + + boolean pagination = true; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderArgs = new Object[] { + StringUtil.merge(groupIds), + StringUtil.merge(unitaOperativas), geologoUserId, + StringUtil.merge(assegnatoreUserIds), dtAssegnazione, + dtApprovazione, dtAnnullamento + }; + } + else { + finderArgs = new Object[] { + StringUtil.merge(groupIds), + StringUtil.merge(unitaOperativas), geologoUserId, + StringUtil.merge(assegnatoreUserIds), dtAssegnazione, + dtApprovazione, dtAnnullamento, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (ParereGeologo parereGeologo : list) { + if (!ArrayUtil.contains(groupIds, parereGeologo.getGroupId()) || + !ArrayUtil.contains(unitaOperativas, + parereGeologo.getUnitaOperativa()) || + (geologoUserId != parereGeologo.getGeologoUserId()) || + !ArrayUtil.contains(assegnatoreUserIds, + parereGeologo.getAssegnatoreUserId()) || + Validator.equals(dtAssegnazione, + parereGeologo.getDtAssegnazione()) || + !Validator.equals(dtApprovazione, + parereGeologo.getDtApprovazione()) || + !Validator.equals(dtAnnullamento, + parereGeologo.getDtAnnullamento())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = new StringBundler(); + + query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); + + boolean conjunctionable = false; + + if ((groupIds == null) || (groupIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < groupIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_5); + + if ((i + 1) < groupIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((unitaOperativas == null) || (unitaOperativas.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < unitaOperativas.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_5); + + if ((i + 1) < unitaOperativas.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_5); + + conjunctionable = true; + + if ((assegnatoreUserIds == null) || + (assegnatoreUserIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < assegnatoreUserIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_5); + + if ((i + 1) < assegnatoreUserIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_4); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_4); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_4); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_5); + } + + conjunctionable = true; + + 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); + + if (groupIds != null) { + qPos.add(groupIds); + } + + if (unitaOperativas != null) { + qPos.add(unitaOperativas); + } + + qPos.add(geologoUserId); + + if (assegnatoreUserIds != null) { + qPos.add(assegnatoreUserIds); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + 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(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento) throws SystemException { + for (ParereGeologo parereGeologo : findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + groupId, unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(parereGeologo); + } + } + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param geologoUserId the geologo user ID + * @param assegnatoreUserId the assegnatore user ID + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long geologoUserId, + long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento) throws SystemException { + FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO; + + Object[] finderArgs = new Object[] { + groupId, unitaOperativa, geologoUserId, assegnatoreUserId, + dtAssegnazione, dtApprovazione, dtAnnullamento + }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(8); + + query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_2); + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_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(groupId); + + qPos.add(unitaOperativa); + + qPos.add(geologoUserId); + + qPos.add(assegnatoreUserId); + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + 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(); + } + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param geologoUserId the geologo user ID + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtAssegnazione the dt assegnazione + * @param dtApprovazione the dt approvazione + * @param dtAnnullamento the dt annullamento + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long geologoUserId, + long[] assegnatoreUserIds, Date dtAssegnazione, Date dtApprovazione, + Date dtAnnullamento) throws SystemException { + Object[] finderArgs = new Object[] { + StringUtil.merge(groupIds), StringUtil.merge(unitaOperativas), + geologoUserId, StringUtil.merge(assegnatoreUserIds), + dtAssegnazione, dtApprovazione, dtAnnullamento + }; + + Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs, this); + + if (count == null) { + StringBundler query = new StringBundler(); + + query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); + + boolean conjunctionable = false; + + if ((groupIds == null) || (groupIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < groupIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_5); + + if ((i + 1) < groupIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((unitaOperativas == null) || (unitaOperativas.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < unitaOperativas.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_5); + + if ((i + 1) < unitaOperativas.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_5); + + conjunctionable = true; + + if ((assegnatoreUserIds == null) || + (assegnatoreUserIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < assegnatoreUserIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_5); + + if ((i + 1) < assegnatoreUserIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_4); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_4); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_4); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_5); + } + + conjunctionable = true; + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (groupIds != null) { + qPos.add(groupIds); + } + + if (unitaOperativas != null) { + qPos.add(unitaOperativas); + } + + qPos.add(geologoUserId); + + if (assegnatoreUserIds != null) { + qPos.add(assegnatoreUserIds); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_2 = + "parereGeologo.groupId = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GROUPID_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_2 = + "parereGeologo.unitaOperativa = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_UNITAOPERATIVA_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2 = + "parereGeologo.geologoUserId = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_GEOLOGOUSERID_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_2 = + "parereGeologo.assegnatoreUserId = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_ASSEGNATOREUSERID_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_1 = + "parereGeologo.dtAssegnazione IS NOT NULL AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_2 = + "parereGeologo.dtAssegnazione != ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTASSEGNAZIONE_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_1 = + "parereGeologo.dtApprovazione IS NULL AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_2 = + "parereGeologo.dtApprovazione = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1 = + "parereGeologo.dtAnnullamento IS NULL"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2 = + "parereGeologo.dtAnnullamento = ?"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO_DTANNULLAMENTO_2) + + ")"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_DTAPPROVAZIONE = new FinderPath(ParereGeologoModelImpl.ENTITY_CACHE_ENABLED, ParereGeologoModelImpl.FINDER_CACHE_ENABLED, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index 4196a399..40d0a4e5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=3649 - build.date=1680100687665 + build.number=3654 + build.date=1681484891668 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 28fe9716..4b85edf4 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index e1b72855..85b0f032 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar index 60cce08c..81ca9693 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index 0833f6eb..60c9d57e 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp index c9562f17..9283aa46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp @@ -8,6 +8,9 @@ String tabsValues = "1,2"; int countDaEsprimere = ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(user.getUserId()); int countDaAssegnare = 0; int countDaApprovare = 0; +int countAssegnati = 0; +int countApprovati = 0; +int countForniti = 0; { StringBuilder sb = new StringBuilder(); sb.append("Pareri da fornire"); @@ -15,18 +18,35 @@ int countDaApprovare = 0; sb.append(" (").append(countDaEsprimere).append(")"); } sb.append(",Pareri forniti"); + countForniti = ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(user.getUserId()); + if (countForniti > 0) { + sb.append(" (").append(countForniti).append(")"); + } + // FIXME aggiungere numerino per i parerei forniti if (UserUtil.isGeologo(user)) { - tabsValues = "1,2,3,4"; + tabsValues = "1,2,3,4,5,6"; sb.append(",Pareri da assegnare"); countDaAssegnare = ParereGeologoLocalServiceUtil.countByUserDaAssegnare(user); if (countDaAssegnare > 0) { sb.append(" (").append(countDaAssegnare).append(")"); } + // FIXME completare implementando il service per countByUserAssegnati + sb.append(",Pareri assegnati"); + countAssegnati = ParereGeologoLocalServiceUtil.countByUserAssegnati(user); + if (countAssegnati > 0) { + sb.append(" (").append(countAssegnati).append(")"); + } sb.append(",Pareri da approvare"); countDaApprovare = ParereGeologoLocalServiceUtil.countByUserDaApprovare(user); if (countDaApprovare > 0) { sb.append(" (").append(countDaApprovare).append(")"); } + sb.append(",Pareri da approvare"); + // FIXME completare implementando il service per countByUserApprovati + countApprovati = ParereGeologoLocalServiceUtil.countFindWithParereByGeologoIdAndApprovazione(user.getUserId(), true); + if (countApprovati > 0) { + sb.append(" (").append(countApprovati).append(")"); + } } tabsNames = sb.toString(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp new file mode 100644 index 00000000..dfe30c4f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp @@ -0,0 +1,64 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> +<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> +<%@page import="it.mwg.sismica.bo.shared.util.Generics"%> +<%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> +<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%> +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%> +<%@include file="/html/pareregeologo/init.jsp"%> + + + + + + <% + List lista = ParereGeologoLocalServiceUtil.findWithParereByGeologoIdAndApprovazione(user.getUserId(), true, searchContainer.getStart(), + searchContainer.getEnd()); + searchContainer.setTotal(countApprovati); + pageContext.setAttribute("results", lista); + pageContext.setAttribute("total", countApprovati); + %> + + + <% + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(parere.getDettPraticaId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId()); + %> + + + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriassegnati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriassegnati.jsp new file mode 100644 index 00000000..bd296ade --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriassegnati.jsp @@ -0,0 +1,51 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> +<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> +<%@page import="it.mwg.sismica.bo.shared.util.Generics"%> +<%@page import="it.mwg.sismica.bo.shared.util.UserUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> +<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%> +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%> +<%@include file="/html/pareregeologo/init.jsp"%> + + + + + <% + List lista = ParereGeologoLocalServiceUtil.findByUserAssegnati(user, searchContainer.getStart(), + searchContainer.getEnd()); + searchContainer.setTotal(countAssegnati); + pageContext.setAttribute("results", lista); + pageContext.setAttribute("total", countAssegnati); + %> + + + <% + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(parere.getDettPraticaId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parere.getIntPraticaId()); + %> + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp index 184f4cf6..6fc49d23 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridaapprovare.jsp @@ -19,7 +19,7 @@ } - + <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp index 79bcd8e0..8616ab00 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/view.jsp @@ -32,6 +32,12 @@ PortletURL portletURL = renderResponse.createRenderURL(); + + + + + + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index ae60d7bd..5eef4ff7 100644 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar index 2aab4bcd..85b0f032 100644 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar index 0bc24a6d..fcca7b2f 100644 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java index d920d14e..30fbf0bb 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java @@ -411,7 +411,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction { boolean canRegistraEsito = true; for (ParereGeologo parere : ParereGeologoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS)) { - if (Validator.isNull(parere.getDtCompilazione()) && Validator.isNull(parere.getDtAnnullamento())) { + if (isParereDaCompilare(parere) || isParereDaApprovare(parere)) { canRegistraEsito = false; break; } @@ -420,6 +420,14 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction { return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest, renderResponse); } + + private boolean isParereDaApprovare(Parere parere){ + return parere.getUnitaOperativa() != 0 && Validator.isNull(parere.getDtApprovazione) && Validator.isNull(parere.getDtAnnullamento()); + } + + private boolean isParereDaCompilare(Parere parere){ + return Validator.isNull(parere.getDtCompilazione()) && Validator.isNull(parere.getDtAnnullamento()); + } private String getTransitionValue(long taskInstanceId, String transitionName) throws PortalException, SystemException {