Sfoglia il codice sorgente

replicate context in ScheduledActions table

feature/kafka-integrator
E-A 2 anni fa
parent
commit
4b89ab98d5
  1. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath
  2. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar
  3. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar
  4. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar
  9. 4
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml
  10. 42
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java
  11. 15
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java
  12. 10
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java
  13. 27
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java
  14. 5
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalService.java
  15. 11
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceClp.java
  16. 5
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceUtil.java
  17. 5
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceWrapper.java
  18. 55
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/SportelloPersistence.java
  19. 65
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/SportelloUtil.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  21. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  22. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  23. 20
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java
  24. 47
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java
  25. 31
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java
  26. 10
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/SportelloLocalServiceImpl.java
  27. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java
  28. 266
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/SportelloPersistenceImpl.java
  29. 4
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre">
<attributes>
<attribute name="owner.project.facets" value="java"/>

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

4
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml

@ -26,9 +26,6 @@
<column name="creationDate" type="Date" db-name="creation_date" />
<column name="lastUpdateDate" type="Date" db-name="last_update_date" />
<column name="sentToPortosDate" type="Date" db-name="sent_to_portos_date" />
<finder return-type="Sportello" name="Id" unique="true" db-index="false">
<finder-column name="id" />
</finder>
</entity>
<entity name="HeadSportello" table="head_sportello"
data-source="suesuapDataSource" local-service="true" remote-service="false"
@ -56,6 +53,7 @@
<column name="errorLog" type="String" db-name="error_log"></column>
<column name="errorFlag" type="boolean" db-name="error_flag"></column>
<column name="intPraticaId" type="long" db-name="int_pratica_id" />
<column name="context" type="String" db-name="context" />
<finder return-type="Collection" name="IntPraticaId">
<finder-column name="intPraticaId" />
</finder>

42
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java

@ -79,6 +79,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
attributes.put("context", getContext());
return attributes;
}
@ -120,6 +121,12 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
String context = (String)attributes.get("context");
if (context != null) {
setContext(context);
}
}
@Override
@ -265,6 +272,29 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
}
}
@Override
public String getContext() {
return _context;
}
@Override
public void setContext(String context) {
_context = context;
if (_scheduledActionsRemoteModel != null) {
try {
Class<?> clazz = _scheduledActionsRemoteModel.getClass();
Method method = clazz.getMethod("setContext", String.class);
method.invoke(_scheduledActionsRemoteModel, context);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
public BaseModel<?> getScheduledActionsRemoteModel() {
return _scheduledActionsRemoteModel;
}
@ -342,6 +372,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
clone.setErrorLog(getErrorLog());
clone.setErrorFlag(getErrorFlag());
clone.setIntPraticaId(getIntPraticaId());
clone.setContext(getContext());
return clone;
}
@ -394,7 +425,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
@Override
public String toString() {
StringBundler sb = new StringBundler(13);
StringBundler sb = new StringBundler(15);
sb.append("{shopId=");
sb.append(getShopId());
@ -408,6 +439,8 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
sb.append(getErrorFlag());
sb.append(", intPraticaId=");
sb.append(getIntPraticaId());
sb.append(", context=");
sb.append(getContext());
sb.append("}");
return sb.toString();
@ -415,7 +448,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(22);
StringBundler sb = new StringBundler(25);
sb.append("<model><model-name>");
sb.append("portos.nextmind.model.ScheduledActions");
@ -445,6 +478,10 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
"<column><column-name>intPraticaId</column-name><column-value><![CDATA[");
sb.append(getIntPraticaId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>context</column-name><column-value><![CDATA[");
sb.append(getContext());
sb.append("]]></column-value></column>");
sb.append("</model>");
@ -457,6 +494,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
private String _errorLog;
private boolean _errorFlag;
private long _intPraticaId;
private String _context;
private BaseModel<?> _scheduledActionsRemoteModel;
private Class<?> _clpSerializerClass = portos.nextmind.service.ClpSerializer.class;
}

15
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java

@ -150,6 +150,21 @@ public interface ScheduledActionsModel extends BaseModel<ScheduledActions> {
*/
public void setIntPraticaId(long intPraticaId);
/**
* Returns the context of this scheduled actions.
*
* @return the context of this scheduled actions
*/
@AutoEscape
public String getContext();
/**
* Sets the context of this scheduled actions.
*
* @param context the context of this scheduled actions
*/
public void setContext(String context);
@Override
public boolean isNew();

10
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java

@ -35,6 +35,7 @@ public class ScheduledActionsSoap implements Serializable {
soapModel.setErrorLog(model.getErrorLog());
soapModel.setErrorFlag(model.getErrorFlag());
soapModel.setIntPraticaId(model.getIntPraticaId());
soapModel.setContext(model.getContext());
return soapModel;
}
@ -141,10 +142,19 @@ public class ScheduledActionsSoap implements Serializable {
_intPraticaId = intPraticaId;
}
public String getContext() {
return _context;
}
public void setContext(String context) {
_context = context;
}
private long _shopId;
private int _requestAction;
private String _headers;
private String _errorLog;
private boolean _errorFlag;
private long _intPraticaId;
private String _context;
}

27
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java

@ -55,6 +55,7 @@ public class ScheduledActionsWrapper implements ScheduledActions,
attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
attributes.put("context", getContext());
return attributes;
}
@ -96,6 +97,12 @@ public class ScheduledActionsWrapper implements ScheduledActions,
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
String context = (String)attributes.get("context");
if (context != null) {
setContext(context);
}
}
/**
@ -248,6 +255,26 @@ public class ScheduledActionsWrapper implements ScheduledActions,
_scheduledActions.setIntPraticaId(intPraticaId);
}
/**
* Returns the context of this scheduled actions.
*
* @return the context of this scheduled actions
*/
@Override
public java.lang.String getContext() {
return _scheduledActions.getContext();
}
/**
* Sets the context of this scheduled actions.
*
* @param context the context of this scheduled actions
*/
@Override
public void setContext(java.lang.String context) {
_scheduledActions.setContext(context);
}
@Override
public boolean isNew() {
return _scheduledActions.isNew();

5
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalService.java

@ -250,6 +250,7 @@ public interface SportelloLocalService extends BaseLocalService,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
public java.util.List<portos.nextmind.model.Sportello> findById(long id)
throws com.liferay.portal.kernel.exception.SystemException;
public portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException;
}

11
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceClp.java

@ -660,8 +660,9 @@ public class SportelloLocalServiceClp implements SportelloLocalService {
}
@Override
public java.util.List<portos.nextmind.model.Sportello> findById(long id)
throws com.liferay.portal.kernel.exception.SystemException {
public portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException {
Object returnObj = null;
try {
@ -675,6 +676,10 @@ public class SportelloLocalServiceClp implements SportelloLocalService {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof portos.nextmind.NoSuchSportelloException) {
throw (portos.nextmind.NoSuchSportelloException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
@ -684,7 +689,7 @@ public class SportelloLocalServiceClp implements SportelloLocalService {
}
}
return (java.util.List<portos.nextmind.model.Sportello>)ClpSerializer.translateOutput(returnObj);
return (portos.nextmind.model.Sportello)ClpSerializer.translateOutput(returnObj);
}
private InvokableLocalService _invokableLocalService;

5
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceUtil.java

@ -271,8 +271,9 @@ public class SportelloLocalServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static java.util.List<portos.nextmind.model.Sportello> findById(
long id) throws com.liferay.portal.kernel.exception.SystemException {
public static portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException {
return getService().findById(id);
}

5
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/SportelloLocalServiceWrapper.java

@ -283,8 +283,9 @@ public class SportelloLocalServiceWrapper implements SportelloLocalService,
}
@Override
public java.util.List<portos.nextmind.model.Sportello> findById(long id)
throws com.liferay.portal.kernel.exception.SystemException {
public portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException {
return _sportelloLocalService.findById(id);
}

55
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/SportelloPersistence.java

@ -37,61 +37,6 @@ public interface SportelloPersistence extends BasePersistence<Sportello> {
* Never modify or reference this interface directly. Always use {@link SportelloUtil} to access the sportello persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns the sportello where id = &#63; or throws a {@link portos.nextmind.NoSuchSportelloException} if it could not be found.
*
* @param id the ID
* @return the matching sportello
* @throws portos.nextmind.NoSuchSportelloException if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException;
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param id the ID
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public portos.nextmind.model.Sportello fetchById(long id)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param id the ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public portos.nextmind.model.Sportello fetchById(long id,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the sportello where id = &#63; from the database.
*
* @param id the ID
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
public portos.nextmind.model.Sportello removeById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException;
/**
* Returns the number of sportellos where id = &#63;.
*
* @param id the ID
* @return the number of matching sportellos
* @throws SystemException if a system exception occurred
*/
public int countById(long id)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Caches the sportello in the entity cache if it is enabled.
*

65
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/SportelloUtil.java

@ -110,71 +110,6 @@ public class SportelloUtil {
return getPersistence().update(sportello, serviceContext);
}
/**
* Returns the sportello where id = &#63; or throws a {@link portos.nextmind.NoSuchSportelloException} if it could not be found.
*
* @param id the ID
* @return the matching sportello
* @throws portos.nextmind.NoSuchSportelloException if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public static portos.nextmind.model.Sportello findById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException {
return getPersistence().findById(id);
}
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param id the ID
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public static portos.nextmind.model.Sportello fetchById(long id)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchById(id);
}
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param id the ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
public static portos.nextmind.model.Sportello fetchById(long id,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchById(id, retrieveFromCache);
}
/**
* Removes the sportello where id = &#63; from the database.
*
* @param id the ID
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
public static portos.nextmind.model.Sportello removeById(long id)
throws com.liferay.portal.kernel.exception.SystemException,
portos.nextmind.NoSuchSportelloException {
return getPersistence().removeById(id);
}
/**
* Returns the number of sportellos where id = &#63;.
*
* @param id the ID
* @return the number of matching sportellos
* @throws SystemException if a system exception occurred
*/
public static int countById(long id)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().countById(id);
}
/**
* Caches the sportello in the entity cache if it is enabled.
*

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml

@ -31,6 +31,7 @@
<property name="errorLog" type="com.liferay.portal.dao.orm.hibernate.StringType" column="error_log" />
<property name="errorFlag" type="com.liferay.portal.dao.orm.hibernate.BooleanType" column="error_flag" />
<property name="intPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" column="int_pratica_id" />
<property name="context" type="com.liferay.portal.dao.orm.hibernate.StringType" />
</class>
<class name="portos.nextmind.model.impl.SportelloImpl" table="sportello">
<cache usage="read-write" />

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml

@ -21,6 +21,7 @@
<field name="errorLog" type="String" />
<field name="errorFlag" type="boolean" />
<field name="intPraticaId" type="long" />
<field name="context" type="String" />
</model>
<model name="portos.nextmind.model.Sportello">
<field name="id" type="long" />

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml

@ -61,6 +61,7 @@
<basic name="intPraticaId">
<column name="INT_PRATICA_ID" />
</basic>
<basic name="context" />
<transient name="modelAttributes" />
<transient name="primaryKey" />
<transient name="primaryKeyObj" />

20
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<ScheduledActions>,
Externalizable {
@Override
public String toString() {
StringBundler sb = new StringBundler(13);
StringBundler sb = new StringBundler(15);
sb.append("{shopId=");
sb.append(shopId);
@ -50,6 +50,8 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
sb.append(errorFlag);
sb.append(", intPraticaId=");
sb.append(intPraticaId);
sb.append(", context=");
sb.append(context);
sb.append("}");
return sb.toString();
@ -79,6 +81,13 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
scheduledActionsImpl.setErrorFlag(errorFlag);
scheduledActionsImpl.setIntPraticaId(intPraticaId);
if (context == null) {
scheduledActionsImpl.setContext(StringPool.BLANK);
}
else {
scheduledActionsImpl.setContext(context);
}
scheduledActionsImpl.resetOriginalValues();
return scheduledActionsImpl;
@ -92,6 +101,7 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
errorLog = objectInput.readUTF();
errorFlag = objectInput.readBoolean();
intPraticaId = objectInput.readLong();
context = objectInput.readUTF();
}
@Override
@ -116,6 +126,13 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
objectOutput.writeBoolean(errorFlag);
objectOutput.writeLong(intPraticaId);
if (context == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(context);
}
}
public long shopId;
@ -124,4 +141,5 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
public String errorLog;
public boolean errorFlag;
public long intPraticaId;
public String context;
}

47
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java

@ -63,9 +63,10 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
{ "headers", Types.VARCHAR },
{ "error_log", Types.VARCHAR },
{ "error_flag", Types.BOOLEAN },
{ "int_pratica_id", Types.BIGINT }
{ "int_pratica_id", Types.BIGINT },
{ "context", Types.VARCHAR }
};
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_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,context VARCHAR(75) null)";
public static final String TABLE_SQL_DROP = "drop table scheduled_actions";
public static final String ORDER_BY_JPQL = " ORDER BY scheduledActions.shopId ASC";
public static final String ORDER_BY_SQL = " ORDER BY scheduled_actions.shop_id ASC";
@ -129,6 +130,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
attributes.put("context", getContext());
return attributes;
}
@ -170,6 +172,12 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
String context = (String)attributes.get("context");
if (context != null) {
setContext(context);
}
}
@Override
@ -259,6 +267,21 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
return _originalIntPraticaId;
}
@Override
public String getContext() {
if (_context == null) {
return StringPool.BLANK;
}
else {
return _context;
}
}
@Override
public void setContext(String context) {
_context = context;
}
public long getColumnBitmask() {
return _columnBitmask;
}
@ -296,6 +319,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
scheduledActionsImpl.setErrorLog(getErrorLog());
scheduledActionsImpl.setErrorFlag(getErrorFlag());
scheduledActionsImpl.setIntPraticaId(getIntPraticaId());
scheduledActionsImpl.setContext(getContext());
scheduledActionsImpl.resetOriginalValues();
@ -383,12 +407,20 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
scheduledActionsCacheModel.intPraticaId = getIntPraticaId();
scheduledActionsCacheModel.context = getContext();
String context = scheduledActionsCacheModel.context;
if ((context != null) && (context.length() == 0)) {
scheduledActionsCacheModel.context = null;
}
return scheduledActionsCacheModel;
}
@Override
public String toString() {
StringBundler sb = new StringBundler(13);
StringBundler sb = new StringBundler(15);
sb.append("{shopId=");
sb.append(getShopId());
@ -402,6 +434,8 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
sb.append(getErrorFlag());
sb.append(", intPraticaId=");
sb.append(getIntPraticaId());
sb.append(", context=");
sb.append(getContext());
sb.append("}");
return sb.toString();
@ -409,7 +443,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(22);
StringBundler sb = new StringBundler(25);
sb.append("<model><model-name>");
sb.append("portos.nextmind.model.ScheduledActions");
@ -439,6 +473,10 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
"<column><column-name>intPraticaId</column-name><column-value><![CDATA[");
sb.append(getIntPraticaId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>context</column-name><column-value><![CDATA[");
sb.append(getContext());
sb.append("]]></column-value></column>");
sb.append("</model>");
@ -457,6 +495,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
private long _intPraticaId;
private long _originalIntPraticaId;
private boolean _setOriginalIntPraticaId;
private String _context;
private long _columnBitmask;
private ScheduledActions _escapedModel;
}

31
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java

@ -92,10 +92,7 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.finder.cache.enabled.portos.nextmind.model.Sportello"),
true);
public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.column.bitmask.enabled.portos.nextmind.model.Sportello"),
true);
public static long ID_COLUMN_BITMASK = 1L;
public static final boolean COLUMN_BITMASK_ENABLED = false;
public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
"lock.expiration.time.portos.nextmind.model.Sportello"));
@ -284,21 +281,9 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
@Override
public void setId(long id) {
_columnBitmask |= ID_COLUMN_BITMASK;
if (!_setOriginalId) {
_setOriginalId = true;
_originalId = _id;
}
_id = id;
}
public long getOriginalId() {
return _originalId;
}
@Override
public String getApplication() {
if (_application == null) {
@ -554,10 +539,6 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
_sentToPortosDate = sentToPortosDate;
}
public long getColumnBitmask() {
return _columnBitmask;
}
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
@ -654,13 +635,6 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
@Override
public void resetOriginalValues() {
SportelloModelImpl sportelloModelImpl = this;
sportelloModelImpl._originalId = sportelloModelImpl._id;
sportelloModelImpl._setOriginalId = false;
sportelloModelImpl._columnBitmask = 0;
}
@Override
@ -956,8 +930,6 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
Sportello.class
};
private long _id;
private long _originalId;
private boolean _setOriginalId;
private String _application;
private String _clientId;
private String _context;
@ -976,6 +948,5 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
private Date _creationDate;
private Date _lastUpdateDate;
private Date _sentToPortosDate;
private long _columnBitmask;
private Sportello _escapedModel;
}

10
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/SportelloLocalServiceImpl.java

@ -14,13 +14,9 @@
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.NoSuchSportelloException;
import portos.nextmind.model.Sportello;
import portos.nextmind.service.base.SportelloLocalServiceBaseImpl;
@ -44,7 +40,7 @@ public class SportelloLocalServiceImpl extends SportelloLocalServiceBaseImpl {
*
* Never reference this interface directly. Always use {@link portos.nextmind.service.SportelloLocalServiceUtil} to access the sportello local service.
*/
public List<Sportello> findById(long id) throws SystemException{
return sportelloPersistence.findById(id);
public Sportello findById(long id) throws SystemException, NoSuchSportelloException{
return sportelloPersistence.findByPrimaryKey(id);
}
}

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java

@ -859,6 +859,7 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
scheduledActionsImpl.setErrorLog(scheduledActions.getErrorLog());
scheduledActionsImpl.setErrorFlag(scheduledActions.isErrorFlag());
scheduledActionsImpl.setIntPraticaId(scheduledActions.getIntPraticaId());
scheduledActionsImpl.setContext(scheduledActions.getContext());
return scheduledActionsImpl;
}

266
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/SportelloPersistenceImpl.java

@ -19,7 +19,6 @@ 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;
@ -32,7 +31,6 @@ 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,215 +83,6 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloModelImpl.FINDER_CACHE_ENABLED, Long.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]);
public static final FinderPath FINDER_PATH_FETCH_BY_ID = new FinderPath(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloModelImpl.FINDER_CACHE_ENABLED, SportelloImpl.class,
FINDER_CLASS_NAME_ENTITY, "fetchById",
new String[] { Long.class.getName() },
SportelloModelImpl.ID_COLUMN_BITMASK);
public static final FinderPath FINDER_PATH_COUNT_BY_ID = new FinderPath(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloModelImpl.FINDER_CACHE_ENABLED, Long.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countById",
new String[] { Long.class.getName() });
/**
* Returns the sportello where id = &#63; or throws a {@link portos.nextmind.NoSuchSportelloException} if it could not be found.
*
* @param id the ID
* @return the matching sportello
* @throws portos.nextmind.NoSuchSportelloException if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Sportello findById(long id)
throws NoSuchSportelloException, SystemException {
Sportello sportello = fetchById(id);
if (sportello == null) {
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("id=");
msg.append(id);
msg.append(StringPool.CLOSE_CURLY_BRACE);
if (_log.isWarnEnabled()) {
_log.warn(msg.toString());
}
throw new NoSuchSportelloException(msg.toString());
}
return sportello;
}
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param id the ID
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Sportello fetchById(long id) throws SystemException {
return fetchById(id, true);
}
/**
* Returns the sportello where id = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param id the ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching sportello, or <code>null</code> if a matching sportello could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Sportello fetchById(long id, boolean retrieveFromCache)
throws SystemException {
Object[] finderArgs = new Object[] { id };
Object result = null;
if (retrieveFromCache) {
result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_ID,
finderArgs, this);
}
if (result instanceof Sportello) {
Sportello sportello = (Sportello)result;
if ((id != sportello.getId())) {
result = null;
}
}
if (result == null) {
StringBundler query = new StringBundler(3);
query.append(_SQL_SELECT_SPORTELLO_WHERE);
query.append(_FINDER_COLUMN_ID_ID_2);
String sql = query.toString();
Session session = null;
try {
session = openSession();
Query q = session.createQuery(sql);
QueryPos qPos = QueryPos.getInstance(q);
qPos.add(id);
List<Sportello> list = q.list();
if (list.isEmpty()) {
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ID,
finderArgs, list);
}
else {
Sportello sportello = list.get(0);
result = sportello;
cacheResult(sportello);
if ((sportello.getId() != id)) {
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ID,
finderArgs, sportello);
}
}
}
catch (Exception e) {
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_ID, finderArgs);
throw processException(e);
}
finally {
closeSession(session);
}
}
if (result instanceof List<?>) {
return null;
}
else {
return (Sportello)result;
}
}
/**
* Removes the sportello where id = &#63; from the database.
*
* @param id the ID
* @return the sportello that was removed
* @throws SystemException if a system exception occurred
*/
@Override
public Sportello removeById(long id)
throws NoSuchSportelloException, SystemException {
Sportello sportello = findById(id);
return remove(sportello);
}
/**
* Returns the number of sportellos where id = &#63;.
*
* @param id the ID
* @return the number of matching sportellos
* @throws SystemException if a system exception occurred
*/
@Override
public int countById(long id) throws SystemException {
FinderPath finderPath = FINDER_PATH_COUNT_BY_ID;
Object[] finderArgs = new Object[] { id };
Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,
this);
if (count == null) {
StringBundler query = new StringBundler(2);
query.append(_SQL_COUNT_SPORTELLO_WHERE);
query.append(_FINDER_COLUMN_ID_ID_2);
String sql = query.toString();
Session session = null;
try {
session = openSession();
Query q = session.createQuery(sql);
QueryPos qPos = QueryPos.getInstance(q);
qPos.add(id);
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_ID_ID_2 = "sportello.id = ?";
public SportelloPersistenceImpl() {
setModelClass(Sportello.class);
@ -309,9 +98,6 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
EntityCacheUtil.putResult(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloImpl.class, sportello.getPrimaryKey(), sportello);
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ID,
new Object[] { sportello.getId() }, sportello);
sportello.resetOriginalValues();
}
@ -368,8 +154,6 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
clearUniqueFindersCache(sportello);
}
@Override
@ -380,48 +164,6 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
for (Sportello sportello : sportellos) {
EntityCacheUtil.removeResult(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloImpl.class, sportello.getPrimaryKey());
clearUniqueFindersCache(sportello);
}
}
protected void cacheUniqueFindersCache(Sportello sportello) {
if (sportello.isNew()) {
Object[] args = new Object[] { sportello.getId() };
FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_ID, args,
Long.valueOf(1));
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ID, args, sportello);
}
else {
SportelloModelImpl sportelloModelImpl = (SportelloModelImpl)sportello;
if ((sportelloModelImpl.getColumnBitmask() &
FINDER_PATH_FETCH_BY_ID.getColumnBitmask()) != 0) {
Object[] args = new Object[] { sportello.getId() };
FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_ID, args,
Long.valueOf(1));
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ID, args,
sportello);
}
}
}
protected void clearUniqueFindersCache(Sportello sportello) {
SportelloModelImpl sportelloModelImpl = (SportelloModelImpl)sportello;
Object[] args = new Object[] { sportello.getId() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ID, args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_ID, args);
if ((sportelloModelImpl.getColumnBitmask() &
FINDER_PATH_FETCH_BY_ID.getColumnBitmask()) != 0) {
args = new Object[] { sportelloModelImpl.getOriginalId() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ID, args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_ID, args);
}
}
@ -559,16 +301,13 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !SportelloModelImpl.COLUMN_BITMASK_ENABLED) {
if (isNew) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
EntityCacheUtil.putResult(SportelloModelImpl.ENTITY_CACHE_ENABLED,
SportelloImpl.class, sportello.getPrimaryKey(), sportello);
clearUniqueFindersCache(sportello);
cacheUniqueFindersCache(sportello);
return sportello;
}
@ -915,12 +654,9 @@ public class SportelloPersistenceImpl extends BasePersistenceImpl<Sportello>
}
private static final String _SQL_SELECT_SPORTELLO = "SELECT sportello FROM Sportello sportello";
private static final String _SQL_SELECT_SPORTELLO_WHERE = "SELECT sportello FROM Sportello sportello WHERE ";
private static final String _SQL_COUNT_SPORTELLO = "SELECT COUNT(sportello) FROM Sportello sportello";
private static final String _SQL_COUNT_SPORTELLO_WHERE = "SELECT COUNT(sportello) FROM Sportello sportello WHERE ";
private static final String _ORDER_BY_ENTITY_ALIAS = "sportello.";
private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No Sportello exists with the primary key ";
private static final String _NO_SUCH_ENTITY_WITH_KEY = "No Sportello exists with the key {";
private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get(
PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE));
private static Log _log = LogFactoryUtil.getLog(SportelloPersistenceImpl.class);

4
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
##
build.namespace=portos_ss
build.number=33
build.date=1683709486797
build.number=47
build.date=1683728676774
build.auto.upgrade=true
##

Caricamento…
Annulla
Salva