diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath index 89b4f8c0..df4ad34a 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath @@ -18,10 +18,5 @@ - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project index 95c939d7..0b7ca1aa 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project @@ -31,18 +31,6 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature - org.apache.ivyde.eclipse.ivynature org.eclipse.wst.jsdt.core.jsNature - - - 1683013922482 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.tern-project b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.tern-project deleted file mode 100644 index a185ba0d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.tern-project +++ /dev/null @@ -1 +0,0 @@ -{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore index 840e7d31..3e1644af 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore @@ -1 +1,2 @@ /classes/ +/service-classes/ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar deleted file mode 100644 index 8758a96b..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar deleted file mode 100644 index 80a5737f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar deleted file mode 100644 index e5a9342f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar deleted file mode 100644 index 068867eb..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar index c655a7ee..9fc935f2 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar deleted file mode 100644 index 7d7435fe..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar deleted file mode 100644 index 6d182ade..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml index 61c838f4..4711debc 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml @@ -2,11 +2,11 @@ ebusu - portos + portos_ss + data-source="suesuapDataSource" local-service="true" remote-service="false" + session-factory="suesuapSessionFactory" + tx-manager="suesuapTransactionManager"> @@ -23,11 +23,13 @@ + + + data-source="suesuapDataSource" local-service="true" remote-service="false" + session-factory="suesuapSessionFactory" + tx-manager="suesuapTransactionManager"> @@ -41,14 +43,19 @@ + data-source="suesuapDataSource" local-service="true" remote-service="false" + session-factory="suesuapSessionFactory" + tx-manager="suesuapTransactionManager"> - + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java index 57a170a5..e5ffdd5d 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java @@ -78,6 +78,7 @@ public class ScheduledActionsClp extends BaseModelImpl attributes.put("headers", getHeaders()); attributes.put("errorLog", getErrorLog()); attributes.put("errorFlag", getErrorFlag()); + attributes.put("intPraticaId", getIntPraticaId()); return attributes; } @@ -113,6 +114,12 @@ public class ScheduledActionsClp extends BaseModelImpl if (errorFlag != null) { setErrorFlag(errorFlag); } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } } @Override @@ -235,6 +242,29 @@ public class ScheduledActionsClp extends BaseModelImpl } } + @Override + public long getIntPraticaId() { + return _intPraticaId; + } + + @Override + public void setIntPraticaId(long intPraticaId) { + _intPraticaId = intPraticaId; + + if (_scheduledActionsRemoteModel != null) { + try { + Class clazz = _scheduledActionsRemoteModel.getClass(); + + Method method = clazz.getMethod("setIntPraticaId", long.class); + + method.invoke(_scheduledActionsRemoteModel, intPraticaId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + public BaseModel getScheduledActionsRemoteModel() { return _scheduledActionsRemoteModel; } @@ -311,6 +341,7 @@ public class ScheduledActionsClp extends BaseModelImpl clone.setHeaders(getHeaders()); clone.setErrorLog(getErrorLog()); clone.setErrorFlag(getErrorFlag()); + clone.setIntPraticaId(getIntPraticaId()); return clone; } @@ -363,7 +394,7 @@ public class ScheduledActionsClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(11); + StringBundler sb = new StringBundler(13); sb.append("{shop_id="); sb.append(getShop_id()); @@ -375,6 +406,8 @@ public class ScheduledActionsClp extends BaseModelImpl sb.append(getErrorLog()); sb.append(", errorFlag="); sb.append(getErrorFlag()); + sb.append(", intPraticaId="); + sb.append(getIntPraticaId()); sb.append("}"); return sb.toString(); @@ -382,7 +415,7 @@ public class ScheduledActionsClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(19); + StringBundler sb = new StringBundler(22); sb.append(""); sb.append("portos.nextmind.model.ScheduledActions"); @@ -408,6 +441,10 @@ public class ScheduledActionsClp extends BaseModelImpl "errorFlag"); + sb.append( + "intPraticaId"); sb.append(""); @@ -419,6 +456,7 @@ public class ScheduledActionsClp extends BaseModelImpl private String _headers; private String _errorLog; private boolean _errorFlag; + private long _intPraticaId; private BaseModel _scheduledActionsRemoteModel; private Class _clpSerializerClass = portos.nextmind.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java index f7081811..e8901957 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java @@ -136,6 +136,20 @@ public interface ScheduledActionsModel extends BaseModel { */ public void setErrorFlag(boolean errorFlag); + /** + * Returns the int pratica ID of this scheduled actions. + * + * @return the int pratica ID of this scheduled actions + */ + public long getIntPraticaId(); + + /** + * Sets the int pratica ID of this scheduled actions. + * + * @param intPraticaId the int pratica ID of this scheduled actions + */ + public void setIntPraticaId(long intPraticaId); + @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java index 0e5aa41e..d7d27b48 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java @@ -34,6 +34,7 @@ public class ScheduledActionsSoap implements Serializable { soapModel.setHeaders(model.getHeaders()); soapModel.setErrorLog(model.getErrorLog()); soapModel.setErrorFlag(model.getErrorFlag()); + soapModel.setIntPraticaId(model.getIntPraticaId()); return soapModel; } @@ -132,9 +133,18 @@ public class ScheduledActionsSoap implements Serializable { _errorFlag = errorFlag; } + public long getIntPraticaId() { + return _intPraticaId; + } + + public void setIntPraticaId(long intPraticaId) { + _intPraticaId = intPraticaId; + } + private long _shop_id; private int _requestAction; private String _headers; private String _errorLog; private boolean _errorFlag; + private long _intPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java index 2a348a61..410f1767 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java @@ -54,6 +54,7 @@ public class ScheduledActionsWrapper implements ScheduledActions, attributes.put("headers", getHeaders()); attributes.put("errorLog", getErrorLog()); attributes.put("errorFlag", getErrorFlag()); + attributes.put("intPraticaId", getIntPraticaId()); return attributes; } @@ -89,6 +90,12 @@ public class ScheduledActionsWrapper implements ScheduledActions, if (errorFlag != null) { setErrorFlag(errorFlag); } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } } /** @@ -221,6 +228,26 @@ public class ScheduledActionsWrapper implements ScheduledActions, _scheduledActions.setErrorFlag(errorFlag); } + /** + * Returns the int pratica ID of this scheduled actions. + * + * @return the int pratica ID of this scheduled actions + */ + @Override + public long getIntPraticaId() { + return _scheduledActions.getIntPraticaId(); + } + + /** + * Sets the int pratica ID of this scheduled actions. + * + * @param intPraticaId the int pratica ID of this scheduled actions + */ + @Override + public void setIntPraticaId(long intPraticaId) { + _scheduledActions.setIntPraticaId(intPraticaId); + } + @Override public boolean isNew() { return _scheduledActions.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java index ae56cc58..46cfda0c 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java @@ -253,4 +253,20 @@ public interface ScheduledActionsLocalService extends BaseLocalService, public java.lang.Object invokeMethod(java.lang.String name, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable; + + public java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + public java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + + public java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + public java.util.List findAzioniDaSvolgere( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java index a073dbd7..de56c354 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java @@ -115,6 +115,22 @@ public class ScheduledActionsLocalServiceClp _methodName17 = "setBeanIdentifier"; _methodParameterTypes17 = new String[] { "java.lang.String" }; + + _methodName19 = "findAll"; + + _methodParameterTypes19 = new String[] { "int", "int" }; + + _methodName20 = "findByIntPraticaId"; + + _methodParameterTypes20 = new String[] { "long" }; + + _methodName21 = "findByIntPraticaId"; + + _methodParameterTypes21 = new String[] { "long", "int", "int" }; + + _methodName22 = "findAzioniDaSvolgere"; + + _methodParameterTypes22 = new String[] { "int", "int" }; } @Override @@ -670,6 +686,123 @@ public class ScheduledActionsLocalServiceClp throw new UnsupportedOperationException(); } + @Override + public java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName19, + _methodParameterTypes19, new Object[] { start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { intPraticaId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName21, + _methodParameterTypes21, + new Object[] { intPraticaId, 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 java.util.List findAzioniDaSvolgere( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName22, + _methodParameterTypes22, new Object[] { start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -707,4 +840,12 @@ public class ScheduledActionsLocalServiceClp private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; + private String _methodName19; + private String[] _methodParameterTypes19; + private String _methodName20; + private String[] _methodParameterTypes20; + private String _methodName21; + private String[] _methodParameterTypes21; + private String _methodName22; + private String[] _methodParameterTypes22; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java index 6aa23ad0..c46fd00a 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java @@ -275,6 +275,30 @@ public class ScheduledActionsLocalServiceUtil { return getService().invokeMethod(name, parameterTypes, arguments); } + public static java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findAll(start, end); + } + + public static java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findByIntPraticaId(intPraticaId); + } + + public static java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findByIntPraticaId(intPraticaId, start, end); + } + + public static java.util.List findAzioniDaSvolgere( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findAzioniDaSvolgere(start, end); + } + public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java index 2dc0a0e1..5fce28d5 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java @@ -289,6 +289,35 @@ public class ScheduledActionsLocalServiceWrapper arguments); } + @Override + public java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _scheduledActionsLocalService.findAll(start, end); + } + + @Override + public java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _scheduledActionsLocalService.findByIntPraticaId(intPraticaId); + } + + @Override + public java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _scheduledActionsLocalService.findByIntPraticaId(intPraticaId, + start, end); + } + + @Override + public java.util.List findAzioniDaSvolgere( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _scheduledActionsLocalService.findAzioniDaSvolgere(start, end); + } + /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java index 0e19e74e..9955f2e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java @@ -37,6 +37,144 @@ public interface ScheduledActionsPersistence extends BasePersistenceservice.xml and rerun ServiceBuilder to regenerate this interface. */ + /** + * Returns all the scheduled actionses where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @return the matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @return the range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public java.util.List findByIntPraticaId( + long intPraticaId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public portos.nextmind.model.ScheduledActions findByIntPraticaId_First( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException; + + /** + * Returns the first scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public portos.nextmind.model.ScheduledActions fetchByIntPraticaId_First( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public portos.nextmind.model.ScheduledActions findByIntPraticaId_Last( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException; + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public portos.nextmind.model.ScheduledActions fetchByIntPraticaId_Last( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?. + * + * @param shop_id the primary key of the current scheduled actions + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public portos.nextmind.model.ScheduledActions[] findByIntPraticaId_PrevAndNext( + long shop_id, long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException; + + /** + * Removes all the scheduled actionses where intPraticaId = ? from the database. + * + * @param intPraticaId the int pratica ID + * @throws SystemException if a system exception occurred + */ + public void removeByIntPraticaId(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of scheduled actionses where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @return the number of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public int countByIntPraticaId(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + /** * Caches the scheduled actions in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java index c766199c..5bc51039 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java @@ -110,6 +110,172 @@ public class ScheduledActionsUtil { return getPersistence().update(scheduledActions, serviceContext); } + /** + * Returns all the scheduled actionses where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @return the matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByIntPraticaId( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByIntPraticaId(intPraticaId); + } + + /** + * Returns a range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @return the range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByIntPraticaId( + long intPraticaId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByIntPraticaId(intPraticaId, start, end); + } + + /** + * Returns an ordered range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByIntPraticaId( + long intPraticaId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByIntPraticaId(intPraticaId, start, end, + orderByComparator); + } + + /** + * Returns the first scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public static portos.nextmind.model.ScheduledActions findByIntPraticaId_First( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException { + return getPersistence() + .findByIntPraticaId_First(intPraticaId, orderByComparator); + } + + /** + * Returns the first scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public static portos.nextmind.model.ScheduledActions fetchByIntPraticaId_First( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByIntPraticaId_First(intPraticaId, orderByComparator); + } + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public static portos.nextmind.model.ScheduledActions findByIntPraticaId_Last( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException { + return getPersistence() + .findByIntPraticaId_Last(intPraticaId, orderByComparator); + } + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + public static portos.nextmind.model.ScheduledActions fetchByIntPraticaId_Last( + long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByIntPraticaId_Last(intPraticaId, orderByComparator); + } + + /** + * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?. + * + * @param shop_id the primary key of the current scheduled actions + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static portos.nextmind.model.ScheduledActions[] findByIntPraticaId_PrevAndNext( + long shop_id, long intPraticaId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + portos.nextmind.NoSuchScheduledActionsException { + return getPersistence() + .findByIntPraticaId_PrevAndNext(shop_id, intPraticaId, + orderByComparator); + } + + /** + * Removes all the scheduled actionses where intPraticaId = ? from the database. + * + * @param intPraticaId the int pratica ID + * @throws SystemException if a system exception occurred + */ + public static void removeByIntPraticaId(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByIntPraticaId(intPraticaId); + } + + /** + * Returns the number of scheduled actionses where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @return the number of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + public static int countByIntPraticaId(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByIntPraticaId(intPraticaId); + } + /** * Caches the scheduled actions in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml index 4a72a057..def9f57a 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml @@ -2,26 +2,26 @@ - - + - - + - + - - + - diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml index d4f46c99..0c9e279a 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml @@ -30,6 +30,7 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml index 214f8f0f..fc834093 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml @@ -20,6 +20,7 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml index b99d149d..8e7d1faa 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml @@ -56,6 +56,9 @@ + + + diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml index 2493483a..aa77436d 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml @@ -3,17 +3,17 @@ - - + + - - + + - - + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java index f3f85225..b0555dd5 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java @@ -1,24 +1,15 @@ package integratore; +import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.MessageListener; import com.liferay.portal.kernel.messaging.MessageListenerException; -import com.liferay.portal.model.Company; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.security.permission.PermissionChecker; -import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil; -import com.liferay.portal.security.permission.PermissionThreadLocal; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; - import java.util.List; import portos.nextmind.model.ScheduledActions; +import portos.nextmind.service.ScheduledActionsLocalServiceUtil; public class IntegratoreSchedulato implements MessageListener { @@ -40,14 +31,11 @@ public class IntegratoreSchedulato implements MessageListener { } public void getPraticaInformation(Message message) throws SystemException, PortalException, Exception { - - System.out.println("get information from db and create an obj"); - List listSA = portos.nextmind.service.persistence.ScheduledActionsUtil.findAll(0, 1); - System.out.println(listSA.toString()); - if (listSA.isEmpty()) {;} - else { - System.out.println(listSA.get(0).getRequestAction()); - } + System.out.println("get information from db and create an obj"); + List listSA = ScheduledActionsLocalServiceUtil.findAzioniDaSvolgere(QueryUtil.ALL_POS,QueryUtil.ALL_POS); + for (ScheduledActions scheduledActions : listSA) { + System.out.println(scheduledActions.getRequestAction()); + } } } diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java index 53a77164..667ba04e 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java @@ -74,9 +74,9 @@ public class HeadSportelloModelImpl extends BaseModelImpl public static final String TABLE_SQL_DROP = "drop table head_sportello"; public static final String ORDER_BY_JPQL = " ORDER BY headSportello.id ASC"; public static final String ORDER_BY_SQL = " ORDER BY head_sportello.id ASC"; - public static final String DATA_SOURCE = "sue-suap"; - public static final String SESSION_FACTORY = "sue-suapSessionFactory"; - public static final String TX_MANAGER = "sue-suapTransactionManager"; + public static final String DATA_SOURCE = "suesuapDataSource"; + public static final String SESSION_FACTORY = "suesuapSessionFactory"; + public static final String TX_MANAGER = "suesuapTransactionManager"; public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( "value.object.entity.cache.enabled.portos.nextmind.model.HeadSportello"), true); diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java index 6ec14700..cd7e8502 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java @@ -36,7 +36,7 @@ public class ScheduledActionsCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(11); + StringBundler sb = new StringBundler(13); sb.append("{shop_id="); sb.append(shop_id); @@ -48,6 +48,8 @@ public class ScheduledActionsCacheModel implements CacheModel, sb.append(errorLog); sb.append(", errorFlag="); sb.append(errorFlag); + sb.append(", intPraticaId="); + sb.append(intPraticaId); sb.append("}"); return sb.toString(); @@ -75,6 +77,7 @@ public class ScheduledActionsCacheModel implements CacheModel, } scheduledActionsImpl.setErrorFlag(errorFlag); + scheduledActionsImpl.setIntPraticaId(intPraticaId); scheduledActionsImpl.resetOriginalValues(); @@ -88,6 +91,7 @@ public class ScheduledActionsCacheModel implements CacheModel, headers = objectInput.readUTF(); errorLog = objectInput.readUTF(); errorFlag = objectInput.readBoolean(); + intPraticaId = objectInput.readLong(); } @Override @@ -111,6 +115,7 @@ public class ScheduledActionsCacheModel implements CacheModel, } objectOutput.writeBoolean(errorFlag); + objectOutput.writeLong(intPraticaId); } public long shop_id; @@ -118,4 +123,5 @@ public class ScheduledActionsCacheModel implements CacheModel, public String headers; public String errorLog; public boolean errorFlag; + public long intPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java index 1dc04e89..a6747986 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java @@ -62,22 +62,27 @@ public class ScheduledActionsModelImpl extends BaseModelImpl { "request_action", Types.INTEGER }, { "headers", Types.VARCHAR }, { "error_log", Types.VARCHAR }, - { "error_flag", Types.BOOLEAN } + { "error_flag", Types.BOOLEAN }, + { "int_pratica_id", Types.BIGINT } }; - public static final String TABLE_SQL_CREATE = "create table scheduled_actions (shop_id LONG not null primary key,request_action INTEGER,headers VARCHAR(75) null,error_log VARCHAR(75) null,error_flag BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table scheduled_actions (shop_id LONG not null primary key,request_action INTEGER,headers VARCHAR(75) null,error_log VARCHAR(75) null,error_flag BOOLEAN,int_pratica_id LONG)"; public static final String TABLE_SQL_DROP = "drop table scheduled_actions"; public static final String ORDER_BY_JPQL = " ORDER BY scheduledActions.shop_id ASC"; public static final String ORDER_BY_SQL = " ORDER BY scheduled_actions.shop_id ASC"; - public static final String DATA_SOURCE = "sue-suap"; - public static final String SESSION_FACTORY = "sue-suapSessionFactory"; - public static final String TX_MANAGER = "sue-suapTransactionManager"; + public static final String DATA_SOURCE = "suesuapDataSource"; + public static final String SESSION_FACTORY = "suesuapSessionFactory"; + public static final String TX_MANAGER = "suesuapTransactionManager"; public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( "value.object.entity.cache.enabled.portos.nextmind.model.ScheduledActions"), true); public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( "value.object.finder.cache.enabled.portos.nextmind.model.ScheduledActions"), true); - public static final boolean COLUMN_BITMASK_ENABLED = false; + public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.column.bitmask.enabled.portos.nextmind.model.ScheduledActions"), + true); + public static long INTPRATICAID_COLUMN_BITMASK = 1L; + public static long SHOP_ID_COLUMN_BITMASK = 2L; public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( "lock.expiration.time.portos.nextmind.model.ScheduledActions")); @@ -123,6 +128,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl attributes.put("headers", getHeaders()); attributes.put("errorLog", getErrorLog()); attributes.put("errorFlag", getErrorFlag()); + attributes.put("intPraticaId", getIntPraticaId()); return attributes; } @@ -158,6 +164,12 @@ public class ScheduledActionsModelImpl extends BaseModelImpl if (errorFlag != null) { setErrorFlag(errorFlag); } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } } @Override @@ -225,6 +237,32 @@ public class ScheduledActionsModelImpl extends BaseModelImpl _errorFlag = errorFlag; } + @Override + public long getIntPraticaId() { + return _intPraticaId; + } + + @Override + public void setIntPraticaId(long intPraticaId) { + _columnBitmask |= INTPRATICAID_COLUMN_BITMASK; + + if (!_setOriginalIntPraticaId) { + _setOriginalIntPraticaId = true; + + _originalIntPraticaId = _intPraticaId; + } + + _intPraticaId = intPraticaId; + } + + public long getOriginalIntPraticaId() { + return _originalIntPraticaId; + } + + public long getColumnBitmask() { + return _columnBitmask; + } + @Override public ExpandoBridge getExpandoBridge() { return ExpandoBridgeFactoryUtil.getExpandoBridge(0, @@ -257,6 +295,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl scheduledActionsImpl.setHeaders(getHeaders()); scheduledActionsImpl.setErrorLog(getErrorLog()); scheduledActionsImpl.setErrorFlag(getErrorFlag()); + scheduledActionsImpl.setIntPraticaId(getIntPraticaId()); scheduledActionsImpl.resetOriginalValues(); @@ -307,6 +346,13 @@ public class ScheduledActionsModelImpl extends BaseModelImpl @Override public void resetOriginalValues() { + ScheduledActionsModelImpl scheduledActionsModelImpl = this; + + scheduledActionsModelImpl._originalIntPraticaId = scheduledActionsModelImpl._intPraticaId; + + scheduledActionsModelImpl._setOriginalIntPraticaId = false; + + scheduledActionsModelImpl._columnBitmask = 0; } @Override @@ -335,12 +381,14 @@ public class ScheduledActionsModelImpl extends BaseModelImpl scheduledActionsCacheModel.errorFlag = getErrorFlag(); + scheduledActionsCacheModel.intPraticaId = getIntPraticaId(); + return scheduledActionsCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(11); + StringBundler sb = new StringBundler(13); sb.append("{shop_id="); sb.append(getShop_id()); @@ -352,6 +400,8 @@ public class ScheduledActionsModelImpl extends BaseModelImpl sb.append(getErrorLog()); sb.append(", errorFlag="); sb.append(getErrorFlag()); + sb.append(", intPraticaId="); + sb.append(getIntPraticaId()); sb.append("}"); return sb.toString(); @@ -359,7 +409,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(19); + StringBundler sb = new StringBundler(22); sb.append(""); sb.append("portos.nextmind.model.ScheduledActions"); @@ -385,6 +435,10 @@ public class ScheduledActionsModelImpl extends BaseModelImpl "errorFlag"); + sb.append( + "intPraticaId"); sb.append(""); @@ -400,5 +454,9 @@ public class ScheduledActionsModelImpl extends BaseModelImpl private String _headers; private String _errorLog; private boolean _errorFlag; + private long _intPraticaId; + private long _originalIntPraticaId; + private boolean _setOriginalIntPraticaId; + private long _columnBitmask; private ScheduledActions _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java index 01b22cd9..78bbd815 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java @@ -80,9 +80,9 @@ public class SportelloModelImpl extends BaseModelImpl public static final String TABLE_SQL_DROP = "drop table sportello"; public static final String ORDER_BY_JPQL = " ORDER BY sportello.id ASC"; public static final String ORDER_BY_SQL = " ORDER BY sportello.id ASC"; - public static final String DATA_SOURCE = "sue-suap"; - public static final String SESSION_FACTORY = "sue-suapSessionFactory"; - public static final String TX_MANAGER = "sue-suapTransactionManager"; + public static final String DATA_SOURCE = "suesuapDataSource"; + public static final String SESSION_FACTORY = "suesuapSessionFactory"; + public static final String TX_MANAGER = "suesuapTransactionManager"; public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( "value.object.entity.cache.enabled.portos.nextmind.model.Sportello"), true); diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java index 201ab0c5..56bb396f 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java @@ -113,6 +113,22 @@ public class ScheduledActionsLocalServiceClpInvoker { _methodName41 = "setBeanIdentifier"; _methodParameterTypes41 = new String[] { "java.lang.String" }; + + _methodName46 = "findAll"; + + _methodParameterTypes46 = new String[] { "int", "int" }; + + _methodName47 = "findByIntPraticaId"; + + _methodParameterTypes47 = new String[] { "long" }; + + _methodName48 = "findByIntPraticaId"; + + _methodParameterTypes48 = new String[] { "long", "int", "int" }; + + _methodName49 = "findAzioniDaSvolgere"; + + _methodParameterTypes49 = new String[] { "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -216,6 +232,30 @@ public class ScheduledActionsLocalServiceClpInvoker { return null; } + if (_methodName46.equals(name) && + Arrays.deepEquals(_methodParameterTypes46, parameterTypes)) { + return ScheduledActionsLocalServiceUtil.findAll(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue()); + } + + if (_methodName47.equals(name) && + Arrays.deepEquals(_methodParameterTypes47, parameterTypes)) { + return ScheduledActionsLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue()); + } + + if (_methodName48.equals(name) && + Arrays.deepEquals(_methodParameterTypes48, parameterTypes)) { + return ScheduledActionsLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); + } + + if (_methodName49.equals(name) && + Arrays.deepEquals(_methodParameterTypes49, parameterTypes)) { + return ScheduledActionsLocalServiceUtil.findAzioniDaSvolgere(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue()); + } + throw new UnsupportedOperationException(); } @@ -255,4 +295,12 @@ public class ScheduledActionsLocalServiceClpInvoker { private String[] _methodParameterTypes40; private String _methodName41; private String[] _methodParameterTypes41; + private String _methodName46; + private String[] _methodParameterTypes46; + private String _methodName47; + private String[] _methodParameterTypes47; + private String _methodName48; + private String[] _methodParameterTypes48; + private String _methodName49; + private String[] _methodParameterTypes49; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java index 8b0ef644..aa453107 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java @@ -14,6 +14,13 @@ package portos.nextmind.service.impl; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; +import com.liferay.portal.kernel.exception.SystemException; + +import java.util.List; + +import portos.nextmind.model.ScheduledActions; import portos.nextmind.service.base.ScheduledActionsLocalServiceBaseImpl; /** @@ -37,4 +44,25 @@ public class ScheduledActionsLocalServiceImpl * * Never reference this interface directly. Always use {@link portos.nextmind.service.ScheduledActionsLocalServiceUtil} to access the scheduled actions local service. */ + + public List findAll(int start, int end) throws SystemException{ + return scheduledActionsPersistence.findAll(start, end); + + } + + public List findByIntPraticaId(long intPraticaId) throws SystemException{ + return scheduledActionsPersistence.findByIntPraticaId(intPraticaId); + } + + public List findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException{ + return scheduledActionsPersistence.findByIntPraticaId(intPraticaId,start,end); + } + + @SuppressWarnings("unchecked") + public List findAzioniDaSvolgere(int start, int end) throws SystemException{ + DynamicQuery dq = scheduledActionsLocalService.dynamicQuery(); + dq.add(RestrictionsFactoryUtil.eq("intPraticaId", 0)); + return (List)scheduledActionsLocalService.dynamicQuery(dq,start,end); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java index d33378f1..6ae3173f 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java @@ -19,6 +19,7 @@ import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; import com.liferay.portal.kernel.dao.orm.FinderPath; import com.liferay.portal.kernel.dao.orm.Query; +import com.liferay.portal.kernel.dao.orm.QueryPos; import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.Session; import com.liferay.portal.kernel.exception.SystemException; @@ -31,6 +32,7 @@ import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil; import com.liferay.portal.kernel.util.SetUtil; import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.UnmodifiableList; import com.liferay.portal.model.CacheModel; @@ -85,6 +87,506 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl findByIntPraticaId(long intPraticaId) + throws SystemException { + return findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @return the range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + @Override + public List findByIntPraticaId(long intPraticaId, + int start, int end) throws SystemException { + return findByIntPraticaId(intPraticaId, start, end, null); + } + + /** + * Returns an ordered range of all the scheduled actionses where intPraticaId = ?. + * + *

+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param intPraticaId the int pratica ID + * @param start the lower bound of the range of scheduled actionses + * @param end the upper bound of the range of scheduled actionses (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + @Override + public List findByIntPraticaId(long intPraticaId, + int start, int end, OrderByComparator orderByComparator) + throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID; + finderArgs = new Object[] { intPraticaId }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID; + finderArgs = new Object[] { + intPraticaId, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (ScheduledActions scheduledActions : list) { + if ((intPraticaId != scheduledActions.getIntPraticaId())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(3 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_SCHEDULEDACTIONS_WHERE); + + query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2); + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(ScheduledActionsModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(intPraticaId); + + if (!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 scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ScheduledActions findByIntPraticaId_First(long intPraticaId, + OrderByComparator orderByComparator) + throws NoSuchScheduledActionsException, SystemException { + ScheduledActions scheduledActions = fetchByIntPraticaId_First(intPraticaId, + orderByComparator); + + if (scheduledActions != null) { + return scheduledActions; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("intPraticaId="); + msg.append(intPraticaId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchScheduledActionsException(msg.toString()); + } + + /** + * Returns the first scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ScheduledActions fetchByIntPraticaId_First(long intPraticaId, + OrderByComparator orderByComparator) throws SystemException { + List list = findByIntPraticaId(intPraticaId, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ScheduledActions findByIntPraticaId_Last(long intPraticaId, + OrderByComparator orderByComparator) + throws NoSuchScheduledActionsException, SystemException { + ScheduledActions scheduledActions = fetchByIntPraticaId_Last(intPraticaId, + orderByComparator); + + if (scheduledActions != null) { + return scheduledActions; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("intPraticaId="); + msg.append(intPraticaId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchScheduledActionsException(msg.toString()); + } + + /** + * Returns the last scheduled actions in the ordered set where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching scheduled actions, or null if a matching scheduled actions could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ScheduledActions fetchByIntPraticaId_Last(long intPraticaId, + OrderByComparator orderByComparator) throws SystemException { + int count = countByIntPraticaId(intPraticaId); + + if (count == 0) { + return null; + } + + List list = findByIntPraticaId(intPraticaId, + count - 1, count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?. + * + * @param shop_id the primary key of the current scheduled actions + * @param intPraticaId the int pratica ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next scheduled actions + * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ScheduledActions[] findByIntPraticaId_PrevAndNext(long shop_id, + long intPraticaId, OrderByComparator orderByComparator) + throws NoSuchScheduledActionsException, SystemException { + ScheduledActions scheduledActions = findByPrimaryKey(shop_id); + + Session session = null; + + try { + session = openSession(); + + ScheduledActions[] array = new ScheduledActionsImpl[3]; + + array[0] = getByIntPraticaId_PrevAndNext(session, scheduledActions, + intPraticaId, orderByComparator, true); + + array[1] = scheduledActions; + + array[2] = getByIntPraticaId_PrevAndNext(session, scheduledActions, + intPraticaId, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected ScheduledActions getByIntPraticaId_PrevAndNext(Session session, + ScheduledActions scheduledActions, long intPraticaId, + 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_SCHEDULEDACTIONS_WHERE); + + query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_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(ScheduledActionsModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(intPraticaId); + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(scheduledActions); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the scheduled actionses where intPraticaId = ? from the database. + * + * @param intPraticaId the int pratica ID + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByIntPraticaId(long intPraticaId) + throws SystemException { + for (ScheduledActions scheduledActions : findByIntPraticaId( + intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(scheduledActions); + } + } + + /** + * Returns the number of scheduled actionses where intPraticaId = ?. + * + * @param intPraticaId the int pratica ID + * @return the number of matching scheduled actionses + * @throws SystemException if a system exception occurred + */ + @Override + public int countByIntPraticaId(long intPraticaId) throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICAID; + + Object[] finderArgs = new Object[] { intPraticaId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_SCHEDULEDACTIONS_WHERE); + + query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(intPraticaId); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2 = "scheduledActions.intPraticaId = ?"; public ScheduledActionsPersistenceImpl() { setModelClass(ScheduledActions.class); @@ -283,6 +785,8 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl _badColumnNames = SetUtil.fromArray(new String[] { - "requestAction", "errorLog", "errorFlag" + "requestAction", "errorLog", "errorFlag", "intPraticaId" }); private static ScheduledActions _nullScheduledActions = new ScheduledActionsImpl() { @Override diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties index 45ce947d..64d77ccc 100644 --- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties @@ -12,9 +12,9 @@ ## Build ## - build.namespace=portos - build.number=9 - build.date=1683100407625 + build.namespace=portos_ss + build.number=23 + build.date=1683108076366 build.auto.upgrade=true ##