Salvatore La Manna 4 anni fa
parent
commit
3150fd472c
  1. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java
  2. 131
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceClp.java
  3. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceUtil.java
  4. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceWrapper.java
  5. 28
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java
  6. 126
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java
  7. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java
  8. 40
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java
  9. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  10. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  11. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  12. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  13. 54
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java
  14. 42
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java
  15. 688
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/DettPraticaServiceSoap.java
  16. 238
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  17. 113
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java
  18. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
  19. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
  21. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
  22. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
  23. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
  24. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
  25. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
  26. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
  27. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
  28. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
  29. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
  30. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  31. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
  32. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
  33. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
  34. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
  35. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
  36. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
  37. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java
  38. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
  39. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java
  40. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
  41. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html
  42. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  43. 183
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp
  44. 115
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js
  45. 36
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
  46. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java
  47. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentUtil.java
  48. 4
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties
  49. 1
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java

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

@ -848,26 +848,23 @@ public interface DettPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public void sendToVersioning(long dettPraticaId, java.lang.String url) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
throws java.lang.Exception; public java.util.List<java.lang.String> getDettPraticaFields();
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getNumeroDiVersioni(java.lang.String url) public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException;
java.io.IOException;
public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getVersionNumber(java.lang.String url, int version) public boolean isNumber(java.lang.String field);
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
public com.liferay.portal.kernel.json.JSONArray callForChanges( public java.lang.String format(java.lang.String field,
java.lang.String url) java.io.Serializable value);
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
public int countVariateByIntPratica(long intPraticaId) public int countVariateByIntPratica(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;

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

@ -490,29 +490,35 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
"long", "java.lang.String", "java.lang.String" "long", "java.lang.String", "java.lang.String"
}; };
_methodName76 = "sendToVersioning"; _methodName76 = "getDettPraticaFields";
_methodParameterTypes76 = new String[] { "long", "java.lang.String" }; _methodParameterTypes76 = new String[] { };
_methodName77 = "getNumeroDiVersioni"; _methodName77 = "getVersioni";
_methodParameterTypes77 = new String[] { "java.lang.String" }; _methodParameterTypes77 = new String[] { "long" };
_methodName78 = "getVersionNumber"; _methodName78 = "callForChanges";
_methodParameterTypes78 = new String[] { "java.lang.String", "int" }; _methodParameterTypes78 = new String[] { "long" };
_methodName79 = "callForChanges"; _methodName79 = "isNumber";
_methodParameterTypes79 = new String[] { "java.lang.String" }; _methodParameterTypes79 = new String[] { "java.lang.String" };
_methodName80 = "countVariateByIntPratica"; _methodName80 = "format";
_methodParameterTypes80 = new String[] { "long" }; _methodParameterTypes80 = new String[] {
"java.lang.String", "java.io.Serializable"
};
_methodName81 = "getFirstCompletedByIntPratica"; _methodName81 = "countVariateByIntPratica";
_methodParameterTypes81 = new String[] { "long" }; _methodParameterTypes81 = new String[] { "long" };
_methodName82 = "getFirstCompletedByIntPratica";
_methodParameterTypes82 = new String[] { "long" };
} }
@Override @Override
@ -4160,20 +4166,16 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
} }
@Override @Override
public void sendToVersioning(long dettPraticaId, java.lang.String url) public java.util.List<java.lang.String> getDettPraticaFields() {
throws java.lang.Exception { Object returnObj = null;
try { try {
_invokableLocalService.invokeMethod(_methodName76, returnObj = _invokableLocalService.invokeMethod(_methodName76,
_methodParameterTypes76, _methodParameterTypes76, new Object[] { });
new Object[] { dettPraticaId, ClpSerializer.translateInput(url) });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof java.lang.Exception) {
throw (java.lang.Exception)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -4182,35 +4184,27 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
" is not a valid exception"); " is not a valid exception");
} }
} }
return (java.util.List<java.lang.String>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public int getNumeroDiVersioni(java.lang.String url) public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException {
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName77, returnObj = _invokableLocalService.invokeMethod(_methodName77,
_methodParameterTypes77, _methodParameterTypes77, new Object[] { intPraticaId });
new Object[] { ClpSerializer.translateInput(url) });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t; throw (com.liferay.portal.kernel.exception.SystemException)t;
} }
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -4220,36 +4214,26 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
} }
} }
return ((Integer)returnObj).intValue(); return (java.util.List<it.tref.liferay.portos.bo.model.DettPratica>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public java.lang.String getVersionNumber(java.lang.String url, int version) public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException {
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName78, returnObj = _invokableLocalService.invokeMethod(_methodName78,
_methodParameterTypes78, _methodParameterTypes78, new Object[] { intPraticaId });
new Object[] { ClpSerializer.translateInput(url), version });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t; throw (com.liferay.portal.kernel.exception.SystemException)t;
} }
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -4259,36 +4243,49 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
} }
} }
return (java.lang.String)ClpSerializer.translateOutput(returnObj); return (java.util.List<java.util.Map<java.lang.String, java.io.Serializable>>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public com.liferay.portal.kernel.json.JSONArray callForChanges( public boolean isNumber(java.lang.String field) {
java.lang.String url)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName79, returnObj = _invokableLocalService.invokeMethod(_methodName79,
_methodParameterTypes79, _methodParameterTypes79,
new Object[] { ClpSerializer.translateInput(url) }); new Object[] { ClpSerializer.translateInput(field) });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) { if (t instanceof RuntimeException) {
throw (com.liferay.portal.kernel.exception.PortalException)t; throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
} }
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { return ((Boolean)returnObj).booleanValue();
throw (com.liferay.portal.kernel.exception.SystemException)t;
} }
if (t instanceof java.io.IOException) { @Override
throw (java.io.IOException)t; public java.lang.String format(java.lang.String field,
java.io.Serializable value) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName80,
_methodParameterTypes80,
new Object[] {
ClpSerializer.translateInput(field),
ClpSerializer.translateInput(value)
});
} }
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
@ -4299,7 +4296,7 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
} }
} }
return (com.liferay.portal.kernel.json.JSONArray)ClpSerializer.translateOutput(returnObj); return (java.lang.String)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
@ -4308,8 +4305,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName80, returnObj = _invokableLocalService.invokeMethod(_methodName81,
_methodParameterTypes80, new Object[] { intPraticaId }); _methodParameterTypes81, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -4337,8 +4334,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName81, returnObj = _invokableLocalService.invokeMethod(_methodName82,
_methodParameterTypes81, new Object[] { intPraticaId }); _methodParameterTypes82, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -4522,4 +4519,6 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService {
private String[] _methodParameterTypes80; private String[] _methodParameterTypes80;
private String _methodName81; private String _methodName81;
private String[] _methodParameterTypes81; private String[] _methodParameterTypes81;
private String _methodName82;
private String[] _methodParameterTypes82;
} }

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

@ -1144,32 +1144,29 @@ public class DettPraticaLocalServiceUtil {
tipologiaSoggetto); tipologiaSoggetto);
} }
public static void sendToVersioning(long dettPraticaId, java.lang.String url) public static java.util.List<java.lang.String> getDettPraticaFields() {
throws java.lang.Exception { return getService().getDettPraticaFields();
getService().sendToVersioning(dettPraticaId, url);
} }
public static int getNumeroDiVersioni(java.lang.String url) public static java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException {
java.io.IOException { return getService().getVersioni(intPraticaId);
return getService().getNumeroDiVersioni(url);
} }
public static java.lang.String getVersionNumber(java.lang.String url, public static java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException, return getService().callForChanges(intPraticaId);
java.io.IOException {
return getService().getVersionNumber(url, version);
} }
public static com.liferay.portal.kernel.json.JSONArray callForChanges( public static boolean isNumber(java.lang.String field) {
java.lang.String url) return getService().isNumber(field);
throws com.liferay.portal.kernel.exception.PortalException, }
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { public static java.lang.String format(java.lang.String field,
return getService().callForChanges(url); java.io.Serializable value) {
return getService().format(field, value);
} }
public static int countVariateByIntPratica(long intPraticaId) public static int countVariateByIntPratica(long intPraticaId)

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

@ -1212,34 +1212,33 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService,
} }
@Override @Override
public void sendToVersioning(long dettPraticaId, java.lang.String url) public java.util.List<java.lang.String> getDettPraticaFields() {
throws java.lang.Exception { return _dettPraticaLocalService.getDettPraticaFields();
_dettPraticaLocalService.sendToVersioning(dettPraticaId, url);
} }
@Override @Override
public int getNumeroDiVersioni(java.lang.String url) public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException {
java.io.IOException { return _dettPraticaLocalService.getVersioni(intPraticaId);
return _dettPraticaLocalService.getNumeroDiVersioni(url);
} }
@Override @Override
public java.lang.String getVersionNumber(java.lang.String url, int version) public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
throws com.liferay.portal.kernel.exception.PortalException, long intPraticaId)
com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException {
java.io.IOException { return _dettPraticaLocalService.callForChanges(intPraticaId);
return _dettPraticaLocalService.getVersionNumber(url, version);
} }
@Override @Override
public com.liferay.portal.kernel.json.JSONArray callForChanges( public boolean isNumber(java.lang.String field) {
java.lang.String url) return _dettPraticaLocalService.isNumber(field);
throws com.liferay.portal.kernel.exception.PortalException, }
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { @Override
return _dettPraticaLocalService.callForChanges(url); public java.lang.String format(java.lang.String field,
java.io.Serializable value) {
return _dettPraticaLocalService.format(field, value);
} }
@Override @Override

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

@ -323,24 +323,20 @@ public interface DettPraticaService extends BaseService, InvokableService {
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getNumeroDiVersioni(long intPraticaId, long companyId) public java.util.List<java.lang.String> getDettPraticaFields();
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getJsonVersion(long intPraticaId, long companyId, public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException;
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
public java.lang.String callForChanges(long intPraticaId, long companyId, public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException;
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException; @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean isNumber(java.lang.String field);
public void sendToVersioning(long dettPraticaId, long companyId) public java.lang.String format(java.lang.String field,
throws java.lang.Exception; java.io.Serializable value);
} }

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

@ -186,21 +186,27 @@ public class DettPraticaServiceClp implements DettPraticaService {
"long", "java.lang.String", "java.lang.String" "long", "java.lang.String", "java.lang.String"
}; };
_methodName23 = "getNumeroDiVersioni"; _methodName23 = "getDettPraticaFields";
_methodParameterTypes23 = new String[] { "long", "long" }; _methodParameterTypes23 = new String[] { };
_methodName24 = "getJsonVersion"; _methodName24 = "getVersioni";
_methodParameterTypes24 = new String[] { "long", "long", "int" }; _methodParameterTypes24 = new String[] { "long" };
_methodName25 = "callForChanges"; _methodName25 = "callForChanges";
_methodParameterTypes25 = new String[] { "long", "long", "int" }; _methodParameterTypes25 = new String[] { "long" };
_methodName26 = "sendToVersioning"; _methodName26 = "isNumber";
_methodParameterTypes26 = new String[] { "long", "long" }; _methodParameterTypes26 = new String[] { "java.lang.String" };
_methodName27 = "format";
_methodParameterTypes27 = new String[] {
"java.lang.String", "java.io.Serializable"
};
} }
@Override @Override
@ -1620,32 +1626,16 @@ public class DettPraticaServiceClp implements DettPraticaService {
} }
@Override @Override
public int getNumeroDiVersioni(long intPraticaId, long companyId) public java.util.List<java.lang.String> getDettPraticaFields() {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableService.invokeMethod(_methodName23, returnObj = _invokableService.invokeMethod(_methodName23,
_methodParameterTypes23, _methodParameterTypes23, new Object[] { });
new Object[] { intPraticaId, companyId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -1655,37 +1645,26 @@ public class DettPraticaServiceClp implements DettPraticaService {
} }
} }
return ((Integer)returnObj).intValue(); return (java.util.List<java.lang.String>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public java.lang.String getJsonVersion(long intPraticaId, long companyId, public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableService.invokeMethod(_methodName24, returnObj = _invokableService.invokeMethod(_methodName24,
_methodParameterTypes24, _methodParameterTypes24, new Object[] { intPraticaId });
new Object[] { intPraticaId, companyId, version });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t; throw (com.liferay.portal.kernel.exception.SystemException)t;
} }
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -1695,37 +1674,26 @@ public class DettPraticaServiceClp implements DettPraticaService {
} }
} }
return (java.lang.String)ClpSerializer.translateOutput(returnObj); return (java.util.List<it.tref.liferay.portos.bo.model.DettPratica>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public java.lang.String callForChanges(long intPraticaId, long companyId, public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableService.invokeMethod(_methodName25, returnObj = _invokableService.invokeMethod(_methodName25,
_methodParameterTypes25, _methodParameterTypes25, new Object[] { intPraticaId });
new Object[] { intPraticaId, companyId, version });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t; throw (com.liferay.portal.kernel.exception.SystemException)t;
} }
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
} }
@ -1735,23 +1703,49 @@ public class DettPraticaServiceClp implements DettPraticaService {
} }
} }
return (java.lang.String)ClpSerializer.translateOutput(returnObj); return (java.util.List<java.util.Map<java.lang.String, java.io.Serializable>>)ClpSerializer.translateOutput(returnObj);
} }
@Override @Override
public void sendToVersioning(long dettPraticaId, long companyId) public boolean isNumber(java.lang.String field) {
throws java.lang.Exception { Object returnObj = null;
try { try {
_invokableService.invokeMethod(_methodName26, returnObj = _invokableService.invokeMethod(_methodName26,
_methodParameterTypes26, _methodParameterTypes26,
new Object[] { dettPraticaId, companyId }); new Object[] { ClpSerializer.translateInput(field) });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
if (t instanceof java.lang.Exception) { if (t instanceof RuntimeException) {
throw (java.lang.Exception)t; throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Boolean)returnObj).booleanValue();
}
@Override
public java.lang.String format(java.lang.String field,
java.io.Serializable value) {
Object returnObj = null;
try {
returnObj = _invokableService.invokeMethod(_methodName27,
_methodParameterTypes27,
new Object[] {
ClpSerializer.translateInput(field),
ClpSerializer.translateInput(value)
});
} }
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException)t; throw (RuntimeException)t;
@ -1761,6 +1755,8 @@ public class DettPraticaServiceClp implements DettPraticaService {
" is not a valid exception"); " is not a valid exception");
} }
} }
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
} }
private InvokableService _invokableService; private InvokableService _invokableService;
@ -1816,4 +1812,6 @@ public class DettPraticaServiceClp implements DettPraticaService {
private String[] _methodParameterTypes25; private String[] _methodParameterTypes25;
private String _methodName26; private String _methodName26;
private String[] _methodParameterTypes26; private String[] _methodParameterTypes26;
private String _methodName27;
private String[] _methodParameterTypes27;
} }

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

@ -459,32 +459,29 @@ public class DettPraticaServiceUtil {
tipologiaSoggetto); tipologiaSoggetto);
} }
public static int getNumeroDiVersioni(long intPraticaId, long companyId) public static java.util.List<java.lang.String> getDettPraticaFields() {
throws com.liferay.portal.kernel.exception.PortalException, return getService().getDettPraticaFields();
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return getService().getNumeroDiVersioni(intPraticaId, companyId);
} }
public static java.lang.String getJsonVersion(long intPraticaId, public static java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
long companyId, int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException, return getService().getVersioni(intPraticaId);
java.io.IOException {
return getService().getJsonVersion(intPraticaId, companyId, version);
} }
public static java.lang.String callForChanges(long intPraticaId, public static java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
long companyId, int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException, return getService().callForChanges(intPraticaId);
java.io.IOException { }
return getService().callForChanges(intPraticaId, companyId, version);
public static boolean isNumber(java.lang.String field) {
return getService().isNumber(field);
} }
public static void sendToVersioning(long dettPraticaId, long companyId) public static java.lang.String format(java.lang.String field,
throws java.lang.Exception { java.io.Serializable value) {
getService().sendToVersioning(dettPraticaId, companyId); return getService().format(field, value);
} }
public static void clearService() { public static void clearService() {

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

@ -464,37 +464,33 @@ public class DettPraticaServiceWrapper implements DettPraticaService,
} }
@Override @Override
public int getNumeroDiVersioni(long intPraticaId, long companyId) public java.util.List<java.lang.String> getDettPraticaFields() {
throws com.liferay.portal.kernel.exception.PortalException, return _dettPraticaService.getDettPraticaFields();
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return _dettPraticaService.getNumeroDiVersioni(intPraticaId, companyId);
} }
@Override @Override
public java.lang.String getJsonVersion(long intPraticaId, long companyId, public java.util.List<it.tref.liferay.portos.bo.model.DettPratica> getVersioni(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException, return _dettPraticaService.getVersioni(intPraticaId);
java.io.IOException {
return _dettPraticaService.getJsonVersion(intPraticaId, companyId,
version);
} }
@Override @Override
public java.lang.String callForChanges(long intPraticaId, long companyId, public java.util.List<java.util.Map<java.lang.String, java.io.Serializable>> callForChanges(
int version) long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.SystemException {
com.liferay.portal.kernel.exception.SystemException, return _dettPraticaService.callForChanges(intPraticaId);
java.io.IOException { }
return _dettPraticaService.callForChanges(intPraticaId, companyId,
version); @Override
public boolean isNumber(java.lang.String field) {
return _dettPraticaService.isNumber(field);
} }
@Override @Override
public void sendToVersioning(long dettPraticaId, long companyId) public java.lang.String format(java.lang.String field,
throws java.lang.Exception { java.io.Serializable value) {
_dettPraticaService.sendToVersioning(dettPraticaId, companyId); return _dettPraticaService.format(field, value);
} }
/** /**

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -122,16 +122,6 @@ public class ValidazionePraticaUtil {
public static boolean canEditUsers(long intPraticaId) throws PortalException, SystemException { public static boolean canEditUsers(long intPraticaId) throws PortalException, SystemException {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
_log.info("isSospesa" + intPratica.isSospesa());
_log.info("isAnnullata" + intPratica.isAnnullata());
_log.info("canEditPratica" + canEditPratica(intPraticaId));
_log.info("praticaHasVarianteInProgress" + praticaHasVarianteInProgress(intPraticaId));
_log.info("praticaHasRichiestaIntegrazioneAttiva" + praticaHasRichiestaIntegrazioneAttiva(intPraticaId));
_log.info("praticaHasIntegrazioneInProgress" + praticaHasIntegrazioneInProgress(intPraticaId));
_log.info("praticaHasFineLavoriInProgress" + praticaHasFineLavoriInProgress(intPraticaId));
_log.info("praticaHasCollaudoInProgress" + praticaHasCollaudoInProgress(intPraticaId));
return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId) return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId)
&& !praticaHasVarianteInProgress(intPraticaId) && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId)
&& !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId) && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId)

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

@ -194,6 +194,7 @@ public class SismicaUtil {
int scadute = 0; int scadute = 0;
DynamicQuery dynamicQuery = IntPraticaLocalServiceUtil.dynamicQuery(); DynamicQuery dynamicQuery = IntPraticaLocalServiceUtil.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.INTEGRAZIONE)); dynamicQuery.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.INTEGRAZIONE));
@SuppressWarnings("unchecked")
List<IntPratica> pratiche = IntPraticaLocalServiceUtil.dynamicQuery(dynamicQuery); List<IntPratica> pratiche = IntPraticaLocalServiceUtil.dynamicQuery(dynamicQuery);
for (IntPratica pratica : pratiche) { for (IntPratica pratica : pratiche) {
Date dtUltimoAvviso = null; Date dtUltimoAvviso = null;

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

@ -11,7 +11,6 @@ import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch; import it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil; import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
@ -306,26 +305,11 @@ public class FascicoloPortlet extends MVCPortlet {
actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); actionResponse.setRenderParameter("ordinaTipo", ordinaTipo);
} }
public void versiona(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId", 0L);
long companyId = ParamUtil.getLong(actionRequest, "companyId");
try {
DettPraticaServiceUtil.sendToVersioning(dettPraticaId, companyId);
} catch (PortalException | SystemException | IOException | NoSuchFieldException | SecurityException e) {
_log.error("error-versioning", e);
SessionErrors.add(actionRequest, "error-versioning");
}
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
}
@Override @Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
PortletException { PortletException {
String id = resourceRequest.getResourceID(); String id = resourceRequest.getResourceID();
ServiceContext serviceContext;
try { try {
serviceContext = ServiceContextFactory.getInstance(resourceRequest);
if ("downloadAllDocPratica".equals(id)) { if ("downloadAllDocPratica".equals(id)) {
long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId");
long classPk = ParamUtil.getLong(resourceRequest, "classPk"); long classPk = ParamUtil.getLong(resourceRequest, "classPk");

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

@ -11,11 +11,9 @@ import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil;
@ -36,13 +34,11 @@ import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException; import com.liferay.portal.kernel.messaging.MessageListenerException;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Company;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.security.auth.PrincipalThreadLocal; import com.liferay.portal.security.auth.PrincipalThreadLocal;
import com.liferay.portal.security.permission.PermissionChecker; import com.liferay.portal.security.permission.PermissionChecker;
import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil; import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil;
import com.liferay.portal.security.permission.PermissionThreadLocal; import com.liferay.portal.security.permission.PermissionThreadLocal;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
@ -221,31 +217,6 @@ public class SchedulerPratiche implements MessageListener {
} }
} }
} }
// versionamento
count = DettPraticaLocalServiceUtil.countPraticheCompletateNonversionate();
if (count > 0) {
for (Company company : CompanyLocalServiceUtil.getCompanies()) {
String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(),
ConfigurazioneConstants.SCHEDULER_VERSIONING);
if (Boolean.parseBoolean(condition)) {
for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<DettPratica> dettPratiche = DettPraticaLocalServiceUtil
.findPraticheCompletateNonVersionate(cursor, cursor + SIZE);
for (DettPratica dettPratica : dettPratiche) {
try {
DettPraticaServiceUtil.sendToVersioning(dettPratica.getDettPraticaId(),
dettPratica.getCompanyId());
} catch (Exception e) {
_log.error("Error", e);
} finally {
PermissionThreadLocal.setPermissionChecker(null);
PrincipalThreadLocal.setName(null);
}
}
}
}
}
}
} catch (SystemException e) { } catch (SystemException e) {
_log.error("Error", e); _log.error("Error", e);
} finally { } finally {

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

@ -499,29 +499,35 @@ public class DettPraticaLocalServiceClpInvoker {
"long", "java.lang.String", "java.lang.String" "long", "java.lang.String", "java.lang.String"
}; };
_methodName277 = "sendToVersioning"; _methodName277 = "getDettPraticaFields";
_methodParameterTypes277 = new String[] { "long", "java.lang.String" }; _methodParameterTypes277 = new String[] { };
_methodName278 = "getNumeroDiVersioni"; _methodName278 = "getVersioni";
_methodParameterTypes278 = new String[] { "java.lang.String" }; _methodParameterTypes278 = new String[] { "long" };
_methodName279 = "getVersionNumber"; _methodName279 = "callForChanges";
_methodParameterTypes279 = new String[] { "java.lang.String", "int" }; _methodParameterTypes279 = new String[] { "long" };
_methodName281 = "callForChanges"; _methodName280 = "isNumber";
_methodParameterTypes281 = new String[] { "java.lang.String" }; _methodParameterTypes280 = new String[] { "java.lang.String" };
_methodName281 = "format";
_methodParameterTypes281 = new String[] {
"java.lang.String", "java.io.Serializable"
};
_methodName282 = "countVariateByIntPratica"; _methodName282 = "countVariateByIntPratica";
_methodParameterTypes282 = new String[] { "long" }; _methodParameterTypes282 = new String[] { "long" };
_methodName283 = "getFirstCompletedByIntPratica"; _methodName284 = "getFirstCompletedByIntPratica";
_methodParameterTypes283 = new String[] { "long" }; _methodParameterTypes284 = new String[] { "long" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -1384,26 +1390,28 @@ public class DettPraticaLocalServiceClpInvoker {
if (_methodName277.equals(name) && if (_methodName277.equals(name) &&
Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) {
DettPraticaLocalServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), return DettPraticaLocalServiceUtil.getDettPraticaFields();
(java.lang.String)arguments[1]);
return null;
} }
if (_methodName278.equals(name) && if (_methodName278.equals(name) &&
Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) {
return DettPraticaLocalServiceUtil.getNumeroDiVersioni((java.lang.String)arguments[0]); return DettPraticaLocalServiceUtil.getVersioni(((Long)arguments[0]).longValue());
} }
if (_methodName279.equals(name) && if (_methodName279.equals(name) &&
Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) {
return DettPraticaLocalServiceUtil.getVersionNumber((java.lang.String)arguments[0], return DettPraticaLocalServiceUtil.callForChanges(((Long)arguments[0]).longValue());
((Integer)arguments[1]).intValue()); }
if (_methodName280.equals(name) &&
Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) {
return DettPraticaLocalServiceUtil.isNumber((java.lang.String)arguments[0]);
} }
if (_methodName281.equals(name) && if (_methodName281.equals(name) &&
Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) {
return DettPraticaLocalServiceUtil.callForChanges((java.lang.String)arguments[0]); return DettPraticaLocalServiceUtil.format((java.lang.String)arguments[0],
(java.io.Serializable)arguments[1]);
} }
if (_methodName282.equals(name) && if (_methodName282.equals(name) &&
@ -1411,8 +1419,8 @@ public class DettPraticaLocalServiceClpInvoker {
return DettPraticaLocalServiceUtil.countVariateByIntPratica(((Long)arguments[0]).longValue()); return DettPraticaLocalServiceUtil.countVariateByIntPratica(((Long)arguments[0]).longValue());
} }
if (_methodName283.equals(name) && if (_methodName284.equals(name) &&
Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) {
return DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(((Long)arguments[0]).longValue()); return DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(((Long)arguments[0]).longValue());
} }
@ -1579,10 +1587,12 @@ public class DettPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes278; private String[] _methodParameterTypes278;
private String _methodName279; private String _methodName279;
private String[] _methodParameterTypes279; private String[] _methodParameterTypes279;
private String _methodName280;
private String[] _methodParameterTypes280;
private String _methodName281; private String _methodName281;
private String[] _methodParameterTypes281; private String[] _methodParameterTypes281;
private String _methodName282; private String _methodName282;
private String[] _methodParameterTypes282; private String[] _methodParameterTypes282;
private String _methodName283; private String _methodName284;
private String[] _methodParameterTypes283; private String[] _methodParameterTypes284;
} }

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

@ -186,21 +186,27 @@ public class DettPraticaServiceClpInvoker {
"long", "java.lang.String", "java.lang.String" "long", "java.lang.String", "java.lang.String"
}; };
_methodName214 = "getNumeroDiVersioni"; _methodName214 = "getDettPraticaFields";
_methodParameterTypes214 = new String[] { "long", "long" }; _methodParameterTypes214 = new String[] { };
_methodName215 = "getJsonVersion"; _methodName215 = "getVersioni";
_methodParameterTypes215 = new String[] { "long", "long", "int" }; _methodParameterTypes215 = new String[] { "long" };
_methodName216 = "callForChanges"; _methodName216 = "callForChanges";
_methodParameterTypes216 = new String[] { "long", "long", "int" }; _methodParameterTypes216 = new String[] { "long" };
_methodName217 = "sendToVersioning"; _methodName217 = "isNumber";
_methodParameterTypes217 = new String[] { "long", "long" }; _methodParameterTypes217 = new String[] { "java.lang.String" };
_methodName218 = "format";
_methodParameterTypes218 = new String[] {
"java.lang.String", "java.io.Serializable"
};
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -563,30 +569,28 @@ public class DettPraticaServiceClpInvoker {
if (_methodName214.equals(name) && if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return DettPraticaServiceUtil.getNumeroDiVersioni(((Long)arguments[0]).longValue(), return DettPraticaServiceUtil.getDettPraticaFields();
((Long)arguments[1]).longValue());
} }
if (_methodName215.equals(name) && if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return DettPraticaServiceUtil.getJsonVersion(((Long)arguments[0]).longValue(), return DettPraticaServiceUtil.getVersioni(((Long)arguments[0]).longValue());
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue());
} }
if (_methodName216.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue(), return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue());
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue());
} }
if (_methodName217.equals(name) && if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
DettPraticaServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), return DettPraticaServiceUtil.isNumber((java.lang.String)arguments[0]);
((Long)arguments[1]).longValue()); }
return null; if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
return DettPraticaServiceUtil.format((java.lang.String)arguments[0],
(java.io.Serializable)arguments[1]);
} }
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
@ -644,4 +648,6 @@ public class DettPraticaServiceClpInvoker {
private String[] _methodParameterTypes216; private String[] _methodParameterTypes216;
private String _methodName217; private String _methodName217;
private String[] _methodParameterTypes217; private String[] _methodParameterTypes217;
private String _methodName218;
private String[] _methodParameterTypes218;
} }

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

@ -1,688 +0,0 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package it.tref.liferay.portos.bo.service.http;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import java.rmi.RemoteException;
/**
* Provides the SOAP utility for the
* {@link it.tref.liferay.portos.bo.service.DettPraticaServiceUtil} service utility. The
* static methods of this class calls the same methods of the service utility.
* However, the signatures are different because it is difficult for SOAP to
* support certain types.
*
* <p>
* ServiceBuilder follows certain rules in translating the methods. For example,
* if the method in the service utility returns a {@link java.util.List}, that
* is translated to an array of {@link it.tref.liferay.portos.bo.model.DettPraticaSoap}.
* If the method in the service utility returns a
* {@link it.tref.liferay.portos.bo.model.DettPratica}, that is translated to a
* {@link it.tref.liferay.portos.bo.model.DettPraticaSoap}. Methods that SOAP cannot
* safely wire are skipped.
* </p>
*
* <p>
* The benefits of using the SOAP utility is that it is cross platform
* compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
* even Perl, to call the generated services. One drawback of SOAP is that it is
* slow because it needs to serialize all calls into a text format (XML).
* </p>
*
* <p>
* You can see a list of services at http://localhost:8080/api/axis. Set the
* property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
* security.
* </p>
*
* <p>
* The SOAP utility is only generated for remote services.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
* @see DettPraticaServiceHttp
* @see it.tref.liferay.portos.bo.model.DettPraticaSoap
* @see it.tref.liferay.portos.bo.service.DettPraticaServiceUtil
* @generated
*/
public class DettPraticaServiceSoap {
public static it.tref.liferay.portos.bo.model.DettPraticaSoap getDettPratica(
long dettPraticaId) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPratica(
long territorioId, java.lang.String tipoProcedura,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPratica(territorioId,
tipoProcedura, serviceContext);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPraticaToIntPratica(
long intPraticaId,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPraticaToIntPratica(intPraticaId,
serviceContext);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPraticaClonedToIntPratica(
long intPraticaId, long dettPraticaToCloneId,
java.lang.String tipoIntegrazione,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId,
dettPraticaToCloneId, tipoIntegrazione, serviceContext);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastEditableByIntPratica(
long intPraticaId) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap deleteDettPratica(
it.tref.liferay.portos.bo.model.DettPraticaSoap dettPratica)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.deleteDettPratica(it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl.toModel(
dettPratica));
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap deleteDettPratica(
long dettPraticaId) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.deleteDettPratica(dettPraticaId);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateDettPraticaSoggetti(
long userId, long dettPraticaId, long intPraticaId,
java.lang.String codiceFiscaleDelegatoCommittente,
java.lang.String codiceFiscaleDelegatoFineLavori,
java.lang.String codiceFiscaleDelegatoCollaudo,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateDettPraticaSoggetti(userId,
dettPraticaId, intPraticaId,
codiceFiscaleDelegatoCommittente,
codiceFiscaleDelegatoFineLavori,
codiceFiscaleDelegatoCollaudo, serviceContext);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateDettPratica(
long userId, long dettPraticaId, long intPraticaId, long integrazione,
java.lang.String protocollo, java.lang.String tipoIntegrazione,
boolean completa, boolean gestita, java.lang.String codicePagamento,
java.lang.String causalePagamento, java.lang.String mezzoPagamento,
java.lang.String importoBolli,
java.lang.String importoSpeseIstruttoria,
java.util.Date dataEffettuazione, int statusTask,
boolean workflowForzato, long soggettoSostituitoId,
java.lang.String destinazione, java.lang.String ag,
java.lang.String descLongIntervento, java.lang.String via,
java.lang.String localita, java.lang.String estremiCatastali,
java.lang.String estremiPratCom, long variataDa, long varianteNumero,
boolean varianteSostanziale, boolean operaConforme,
boolean collaudoStatico,
java.lang.String codiceFiscaleDelegatoCommittente,
java.lang.String codiceFiscaleDelegatoFineLavori,
java.lang.String codiceFiscaleDelegatoCollaudo,
java.lang.String codiceRuoloDelegato,
boolean lavoriInEconomiaCommittente,
boolean inizioLavoriContestualeOpera,
java.util.Date dataInizioLavoriOpera,
java.util.Date dataInizioEsecuzioneOpera,
java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura,
boolean lavoriPubblici, long pagamentoId,
int lavoriPubbliciPercentuale, java.lang.String numeroCivico,
java.lang.String dcParticelle, java.lang.String dcFoglio,
java.lang.String dcAllegato, java.lang.String dePiani,
java.lang.String deAltezza, java.lang.String deInterrati,
java.lang.String deSuperficie, java.lang.String deCostruzione,
java.lang.String deRistrutturazione, java.lang.String deUso,
java.lang.String dePubblica, java.lang.String dePrivata,
java.lang.String deUtilizzazione, java.lang.String dePosizioneEdificio,
boolean deInfStradalePonte, boolean deInfStradaleStrada,
boolean deInfStradaleAltro, boolean deInfIdraulicaLong,
boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro,
boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica,
boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura,
boolean deInfAltro, java.lang.String deInfAltroDesc,
java.lang.String dccFondazioni,
boolean dccStruttureEleMuraturePietrame,
boolean dccStruttureEleMuratureLaterizio,
boolean dccStruttureEleMuratureMisto,
boolean dccStruttureEleMuratureStoriche,
java.lang.String dccStruttureEleAcciaio,
java.lang.String dccStruttureEleCA,
java.lang.String dccStruttureEleLegno, boolean dccStruttureEleMistoCA,
boolean dccStruttureEleMistoAcciaio,
boolean dccStruttureEleMistoMuratura,
boolean dccStruttureEleMistoLegno,
boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro,
java.lang.String dccStruttureEleAltroDescrizione,
boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno,
boolean dccOrizzontamentiLegnoCA,
boolean dccOrizzontamentiLamieraGrecata,
boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro,
java.lang.String dccOrizzontamentiAltroDescrizione,
java.lang.String dccCopertura, boolean dccCoperturaCAAcciaio,
boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA,
boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli,
boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere,
boolean dccCoperturaAltro,
java.lang.String dccCoperturaAltroDesrizione,
boolean dccElemNonStrutLaterizio, boolean dccElemNonStrutCartongesso,
boolean dccElemNonStrutCalcestruzzo, boolean dccElemNonStrutLegno,
boolean dccElemNonStrutAltro,
java.lang.String dccElemNonStrutAltroDescrizione,
boolean dccOpereDiRinforzoInsCatene,
boolean dccOpereDiRinforzoInsCordoli,
boolean dccOpereDiRinforzoIniArmate,
boolean dccOpereDiRinforzoPlaccaggi,
boolean dccOpereDiRinforzoIrrSolai,
boolean dccOpereDiRinforzoRinforziFRP,
boolean dccOpereDiRinforzoTelaiECerchiature,
boolean dccOpereDiRinforzoInsRompitratta,
boolean dccOpereDiRinforzoAltro,
java.lang.String dccOpereDiRinforzoAltroDescrizione,
java.lang.String geoClasseIndagine,
java.lang.String geoCategoriaSottosuolo,
java.lang.String geoCategoriaTopografica,
java.lang.String geoConsolidamento,
java.lang.String geoPericolositaGeologica,
java.lang.String geoRischioGeomorfologicoPai,
java.lang.String geoPericolositaIdraulicaPai,
java.lang.String geoRischioIdraulicoPai,
java.lang.String geoPericolositaSismica,
java.lang.String geoPericolositaIdraulica,
java.lang.String geoPericolositaGeomorfica,
java.lang.String geoFattibilitaGeologica,
java.lang.String geoFattibilitaSismica,
java.lang.String geoFattibilitaIdraulica,
java.lang.String geoOperaRilevante,
java.lang.String geoOpereDiSostegno,
java.lang.String geoOpereInSotterranea,
java.lang.String geoPresenzaPrescrizioni,
java.lang.String geoNotePrescrizioni, java.lang.String geoNoteIndagini,
java.lang.String geoEvidenzeGeomorfiche,
java.lang.String geoEvidenzeGeologiche, java.util.Date geoDtRelazione,
boolean pagNuoveCostruzioni, int pagAdeguamentoSismico,
int pagMiglioramentoSismico, boolean pagRiparazioneInterventoLocale,
int pagNuovaCostruzione, boolean pagVarianti, int pagAltro,
boolean pagMiglioramentoSismicoSicilia,
java.lang.String pagCalcolatoAdeguamentoSismico,
java.lang.String pagCalcolatoMiglioramentoSismico,
java.lang.String pagCalcolatoRiparazioneInterventoLocale,
java.lang.String pagCalcolatoOperaNonQuantificabile,
java.lang.String pagEffettivoAdeguamentoSismico,
java.lang.String pagEffettivoMiglioramentoSismico,
java.lang.String pagEffettivoRiparazioneInterventoLocale,
java.lang.String pagEffettivoOperaNonQuantificabile,
java.lang.String pagNoteUtente, java.lang.String note,
java.lang.String noteUfficio,
java.lang.String localizzazioneGeografica, boolean tcNuovaCostruzione,
boolean tcAdeguamentoSismico, boolean tcMiglioramentoSismico,
boolean tcRiparazioneInterventoLocale, boolean tcInCA,
boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio,
boolean tcMista, boolean tcInMuratura, boolean tcInMuraturaOrdinaria,
boolean tcInMuraturaArmata, boolean tcInMuraturaMista,
boolean tcInLegno, boolean tcAltro,
java.lang.String tcAltroDescrizione, boolean tcConDispositivi,
boolean normLavoriInProprio, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep,
boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01,
boolean normDm02, boolean normDm03, boolean normDm2018,
boolean normDprg01, boolean normDprg02, boolean normAnr,
boolean normArt3com3, boolean normArt3com4, boolean normOrd01,
boolean normDm04, boolean normDm05, boolean normCI01,
boolean normLTC01, boolean suap, boolean normSismaBonus,
java.lang.String clRischioPreInt, java.lang.String clRischioPostInt,
boolean intervFinPub, java.lang.String intervFinPubDesc,
boolean tcNuovaCostruzioneComplessa,
com.liferay.portal.service.ServiceContext serviceContext,
boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateDettPratica(userId,
dettPraticaId, intPraticaId, integrazione, protocollo,
tipoIntegrazione, completa, gestita, codicePagamento,
causalePagamento, mezzoPagamento, importoBolli,
importoSpeseIstruttoria, dataEffettuazione, statusTask,
workflowForzato, soggettoSostituitoId, destinazione, ag,
descLongIntervento, via, localita, estremiCatastali,
estremiPratCom, variataDa, varianteNumero,
varianteSostanziale, operaConforme, collaudoStatico,
codiceFiscaleDelegatoCommittente,
codiceFiscaleDelegatoFineLavori,
codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato,
lavoriInEconomiaCommittente, inizioLavoriContestualeOpera,
dataInizioLavoriOpera, dataInizioEsecuzioneOpera,
dataFineEsecuzioneOpera, metratura, lavoriPubblici,
pagamentoId, lavoriPubbliciPercentuale, numeroCivico,
dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza,
deInterrati, deSuperficie, deCostruzione,
deRistrutturazione, deUso, dePubblica, dePrivata,
deUtilizzazione, dePosizioneEdificio, deInfStradalePonte,
deInfStradaleStrada, deInfStradaleAltro,
deInfIdraulicaLong, deInfIdraulicaTrasv,
deInfIdraulicaAltro, deInfOperaAccStradale,
deInfOperaAccIdraulica, deInfOperaAccAltro,
deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc,
dccFondazioni, dccStruttureEleMuraturePietrame,
dccStruttureEleMuratureLaterizio,
dccStruttureEleMuratureMisto,
dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio,
dccStruttureEleCA, dccStruttureEleLegno,
dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio,
dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno,
dccStruttureElePrefabbricato, dccStruttureEleAltro,
dccStruttureEleAltroDescrizione,
dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno,
dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata,
dccOrizzontamentiVolte, dccOrizzontamentiAltro,
dccOrizzontamentiAltroDescrizione, dccCopertura,
dccCoperturaCAAcciaio, dccCoperturaLegno,
dccCoperturaLegnoCA, dccCoperturaLamieraGrecata,
dccCoperturaPannelli, dccCoperturaPVCTelonati,
dccCoperturaLeggere, dccCoperturaAltro,
dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio,
dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo,
dccElemNonStrutLegno, dccElemNonStrutAltro,
dccElemNonStrutAltroDescrizione,
dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli,
dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi,
dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP,
dccOpereDiRinforzoTelaiECerchiature,
dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro,
dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine,
geoCategoriaSottosuolo, geoCategoriaTopografica,
geoConsolidamento, geoPericolositaGeologica,
geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai,
geoRischioIdraulicoPai, geoPericolositaSismica,
geoPericolositaIdraulica, geoPericolositaGeomorfica,
geoFattibilitaGeologica, geoFattibilitaSismica,
geoFattibilitaIdraulica, geoOperaRilevante,
geoOpereDiSostegno, geoOpereInSotterranea,
geoPresenzaPrescrizioni, geoNotePrescrizioni,
geoNoteIndagini, geoEvidenzeGeomorfiche,
geoEvidenzeGeologiche, geoDtRelazione, pagNuoveCostruzioni,
pagAdeguamentoSismico, pagMiglioramentoSismico,
pagRiparazioneInterventoLocale, pagNuovaCostruzione,
pagVarianti, pagAltro, pagMiglioramentoSismicoSicilia,
pagCalcolatoAdeguamentoSismico,
pagCalcolatoMiglioramentoSismico,
pagCalcolatoRiparazioneInterventoLocale,
pagCalcolatoOperaNonQuantificabile,
pagEffettivoAdeguamentoSismico,
pagEffettivoMiglioramentoSismico,
pagEffettivoRiparazioneInterventoLocale,
pagEffettivoOperaNonQuantificabile, pagNoteUtente, note,
noteUfficio, localizzazioneGeografica, tcNuovaCostruzione,
tcAdeguamentoSismico, tcMiglioramentoSismico,
tcRiparazioneInterventoLocale, tcInCA, tcInOpera,
tcPrefabbricato, tcInAcciaio, tcMista, tcInMuratura,
tcInMuraturaOrdinaria, tcInMuraturaArmata,
tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione,
tcConDispositivi, normLavoriInProprio, normEsenteBollo,
normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut,
normDpr02Aut, normDm01, normDm02, normDm03, normDm2018,
normDprg01, normDprg02, normAnr, normArt3com3,
normArt3com4, normOrd01, normDm04, normDm05, normCI01,
normLTC01, suap, normSismaBonus, clRischioPreInt,
clRischioPostInt, intervFinPub, intervFinPubDesc,
tcNuovaCostruzioneComplessa, serviceContext, bozza,
disabledSubmit, geoDisabledSubmit);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap fetchDettPratica(
long dettPraticaId) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.fetchDettPratica(dettPraticaId);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastCompletedByIntPratica(
long intPraticaId) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastdByIntPraticaAndTipoPratica(
long intPraticaId, java.util.List<java.lang.String> tipoPratiche)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastdByIntPraticaAndTipoPratica(intPraticaId,
tipoPratiche);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastEditabledByIntPraticaAndTipoPratica(
long intPraticaId, java.util.List<java.lang.String> tipoPratiche)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId,
tipoPratiche);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap[] findCompletedByIntPraticaAndTipoPratica(
long intPraticaId, java.util.List<java.lang.String> tipoPratiche)
throws RemoteException {
try {
java.util.List<it.tref.liferay.portos.bo.model.DettPratica> returnValue =
DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId,
tipoPratiche);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int countCompletedByIntPraticaAndTipoPratica(
long intPraticaId, java.util.List<java.lang.String> tipoPratiche)
throws RemoteException {
try {
int returnValue = DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId,
tipoPratiche);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap pagaInvia(
long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione,
boolean pagNuoveCostruzioni, boolean pagRiparazioneInterventoLocale,
boolean pagVarianti, java.lang.String importoSpeseIstruttoria,
boolean pagMiglioramentoSismicoSicilia,
java.lang.String pagCalcolatoAdeguamentoSismico,
java.lang.String pagCalcolatoMiglioramentoSismico,
java.lang.String pagCalcolatoRiparazioneInterventoLocale,
java.lang.String pagCalcolatoOperaNonQuantificabile,
java.lang.String pagEffettivoAdeguamentoSismico,
java.lang.String pagEffettivoMiglioramentoSismico,
java.lang.String pagEffettivoRiparazioneInterventoLocale,
java.lang.String pagEffettivoOperaNonQuantificabile,
java.lang.String pagNoteUtente,
java.lang.String codiceFiscaleCommittente, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.pagaInvia(dettPraticaId,
pagAdeguamentoSismico, pagAltro, pagMiglioramentoSismico,
pagNuovaCostruzione, pagNuoveCostruzioni,
pagRiparazioneInterventoLocale, pagVarianti,
importoSpeseIstruttoria, pagMiglioramentoSismicoSicilia,
pagCalcolatoAdeguamentoSismico,
pagCalcolatoMiglioramentoSismico,
pagCalcolatoRiparazioneInterventoLocale,
pagCalcolatoOperaNonQuantificabile,
pagEffettivoAdeguamentoSismico,
pagEffettivoMiglioramentoSismico,
pagEffettivoRiparazioneInterventoLocale,
pagEffettivoOperaNonQuantificabile, pagNoteUtente,
codiceFiscaleCommittente, currentURL, serviceContext);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateCheckPagamenti(
long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateCheckPagamenti(dettPraticaId,
normEsenteSpese, normEsenteBollo);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateEsito(
long dettPraticaId, int stato) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateEsito(dettPraticaId,
stato);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateEsitoIntegrazione(
long dettPraticaId, int stato) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateEsitoIntegrazione(dettPraticaId,
stato);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static it.tref.liferay.portos.bo.model.DettPraticaSoap updatePrincipale(
long dettPraticaId, java.lang.String codiceFiscale,
java.lang.String tipologiaSoggetto) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updatePrincipale(dettPraticaId,
codiceFiscale, tipologiaSoggetto);
return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getNumeroDiVersioni(long intPraticaId, long companyId)
throws RemoteException {
try {
int returnValue = DettPraticaServiceUtil.getNumeroDiVersioni(intPraticaId,
companyId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static java.lang.String getJsonVersion(long intPraticaId,
long companyId, int version) throws RemoteException {
try {
java.lang.String returnValue = DettPraticaServiceUtil.getJsonVersion(intPraticaId,
companyId, version);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static java.lang.String callForChanges(long intPraticaId,
long companyId, int version) throws RemoteException {
try {
java.lang.String returnValue = DettPraticaServiceUtil.callForChanges(intPraticaId,
companyId, version);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static void sendToVersioning(long dettPraticaId, long companyId)
throws RemoteException {
try {
DettPraticaServiceUtil.sendToVersioning(dettPraticaId, companyId);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
private static Log _log = LogFactoryUtil.getLog(DettPraticaServiceSoap.class);
}

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

@ -12,7 +12,6 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.util.HttpServiceUtil;
import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.NoSuchDettPraticaException;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
@ -23,6 +22,7 @@ import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.Tempistica;
import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.base.DettPraticaLocalServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.DettPraticaLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
@ -32,18 +32,20 @@ import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil;
import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.bo.util.TempisticaConstants; import it.tref.liferay.portos.bo.util.TempisticaConstants;
import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowConstants;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Types;
import java.text.NumberFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.Disjunction;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
@ -53,9 +55,10 @@ import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray; import com.liferay.portal.kernel.json.JSONDeserializer;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
@ -70,8 +73,6 @@ import com.liferay.portal.kernel.search.SearchContext;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.Http.Options;
import com.liferay.portal.kernel.util.HttpUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -1610,16 +1611,15 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dynamicQuery; return dynamicQuery;
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<DettPratica> findByPagamentoId(long pagamentoId) throws SystemException { public List<DettPratica> findByPagamentoId(long pagamentoId) throws SystemException {
DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery();
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdOneri", pagamentoId)); disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdOneri", pagamentoId));
disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdBolli", pagamentoId)); disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdBolli", pagamentoId));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery); return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery);
} }
@ -1653,70 +1653,188 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica; return dettPratica;
} }
private static final List<String> dettPraticaFields;
private static final Map<String, Integer> dettPraticaFieldsTypes;
static {
@SuppressWarnings("serial")
List<String> hiddenFields = new ArrayList<String>() {
{
add("causalePagamentoBolli");
add("causalePagamentoOneri");
add("codiceFiscaleDelegato");
add("codicePagamentoBolli");
add("codicePagamentoOneri");
add("codiceRuoloDelegato");
add("companyId");
add("completa");
add("createDate");
add("dataEffettuazione");
add("dettPraticaId");
add("dtInvioSignal");
add("dtProtocollo");
add("geoDtRelazione");
add("gestita");
add("groupId");
add("importoBolli");
add("importoSpeseIstruttoria");
add("integrazione");
add("intPraticaId");
add("mezzoPagamentoBolli");
add("mezzoPagamentoOneri");
add("modifiedDate");
add("pagAdeguamentoSismico");
add("pagAltro");
add("pagamentoIdBolli");
add("pagamentoIdOneri");
add("pagCalcolatoAdeguamentoSismico");
add("pagCalcolatoMiglioramentoSismico");
add("pagCalcolatoOperaNonQuantificabile");
add("pagCalcolatoRiparazioneInterventoLocale");
add("pagEffettivoAdeguamentoSismico");
add("pagEffettivoMiglioramentoSismico");
add("pagEffettivoOperaNonQuantificabile");
add("pagEffettivoRiparazioneInterventoLocale");
add("pagMiglioramentoSismico");
add("pagMiglioramentoSismicoSicilia");
add("pagNoteUtente");
add("pagNuovaCostruzione");
add("pagOperaNonQuantificabile");
add("pagRiparazioneInterventoLocale");
add("pagVarianti");
add("protocollo");
add("soggettoSostituitoId");
add("status");
add("statusByUserId");
add("statusByUserName");
add("statusDate");
add("statusTask");
add("tipoIntegrazione");
add("uuid_");
add("userId");
add("userName");
add("varianteNumero");
add("varianteSostanziale");
add("variataDa");
add("version");
add("versionata");
add("workflowForzato");
}
};
dettPraticaFields = new ArrayList<>();
dettPraticaFieldsTypes = new HashMap<>();
for (int i = 0; i < DettPraticaImpl.TABLE_COLUMNS.length; i++) {
String field = (String) DettPraticaImpl.TABLE_COLUMNS[i][0];
if (!hiddenFields.contains(field)) {
dettPraticaFields.add(field);
}
dettPraticaFieldsTypes.put(field, (int) DettPraticaImpl.TABLE_COLUMNS[i][1]);
}
}
@Override @Override
public void sendToVersioning(long dettPraticaId, String url) throws Exception { public List<String> getDettPraticaFields() {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); return dettPraticaFields;
String jsonToVersioning = dettPratica.serializeToVersioning();
JSONObject response = HttpServiceUtil.postJson(url, jsonToVersioning);
int version = response.getInt("version");
dettPratica.setVersion(version);
dettPratica.setVersionata(true);
dettPraticaLocalService.updateDettPratica(dettPratica);
} }
@Override @Override
public int getNumeroDiVersioni(String url) throws IOException, PortalException, SystemException { @SuppressWarnings("unchecked")
public List<DettPratica> getVersioni(long intPraticaId) throws SystemException {
Options options = new Options();
options.setLocation(url); DynamicQuery query = queryVersioning(intPraticaId);
options.setPost(false); query.addOrder(OrderFactoryUtil.asc("dettPraticaId"));
String responseBody = HttpUtil.URLtoString(options); return dettPraticaPersistence.findWithDynamicQuery(query);
if (options.getResponse().getResponseCode() == HttpServletResponse.SC_OK) {
return Integer.parseInt(responseBody);
} else {
_log.error(options.getLocation() + ": " + options.getResponse().getResponseCode());
}
return 0;
} }
@Override @Override
public String getVersionNumber(String url, int version) throws IOException, PortalException, SystemException { public List<Map<String, Serializable>> callForChanges(long intPraticaId) throws SystemException {
String response = callToVersion(url); DynamicQuery query = queryVersioning(intPraticaId);
JSONObject jsonObjectResponse = JSONFactoryUtil.createJSONObject(response); query.addOrder(OrderFactoryUtil.asc("dettPraticaId"));
JSONObject snapshot = jsonObjectResponse.getJSONObject("Snapshot"); @SuppressWarnings("unchecked")
int responseVersion = snapshot.getInt("version"); List<DettPratica> lista = dettPraticaPersistence.findWithDynamicQuery(query);
if (responseVersion != version) { int size = lista.size();
_log.error("Le versioni non corrispondono " + responseVersion + StringPool.FORWARD_SLASH + version); List<Map<String, Serializable>> versions = new ArrayList<>(size);
List<Map<String, Serializable>> changes = new ArrayList<>(size);
JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer();
JSONDeserializer<Map<String, Serializable>> deserializer = JSONFactoryUtil.createJSONDeserializer();
for (int i = 0; i < size; i++) {
versions.add(deserializer.deserialize(serializer.serialize(lista.get(i))));
changes.add(new HashMap<String, Serializable>());
}
for (String field : dettPraticaFields) {
Serializable v0 = null == versions.get(0).get(field) ? StringPool.BLANK : versions.get(0).get(field);
boolean changed = false;
for (int i = 1; i < size; i++) {
Serializable v1 = null == versions.get(i).get(field) ? StringPool.BLANK : versions.get(i).get(field);
if (!v1.equals(v0)) {
changed = true;
break;
}
} }
JSONObject jsonFields = snapshot.getJSONObject("fields"); if (changed) {
for (String hiddenField : PraticaUtil.getDettPraticaHiddenFields()) { for (int i = 0; i < versions.size(); i++) {
jsonFields.remove(hiddenField); Serializable v = null == versions.get(i).get(field) ? StringPool.BLANK : versions.get(i).get(field);
changes.get(i).put(field, v);
} }
return jsonFields.toString(); }
}
return changes;
} }
private String callToVersion(String versioningURL) throws IOException { @Override
public boolean isNumber(String field) {
Options options = new Options(); switch (dettPraticaFieldsTypes.get(field)) {
options.setLocation(versioningURL); case Types.BOOLEAN:
options.setPost(false); case Types.TIMESTAMP:
String responseBody = HttpUtil.URLtoString(options); return false;
if (options.getResponse().getResponseCode() == HttpServletResponse.SC_OK) { case Types.VARCHAR:
return responseBody; switch (field) {
} else { case "importoSpeseIstruttoria":
_log.error(options.getLocation() + ": " + options.getResponse().getResponseCode()); return true;
}
return false;
case Types.BIGINT:
case Types.DOUBLE:
case Types.INTEGER:
return true;
default:
_log.info(dettPraticaFieldsTypes.get(field));
} }
return StringPool.BLANK; return true;
} }
@Override @Override
public JSONArray callForChanges(String url) throws IOException, PortalException, SystemException { public String format(String field, Serializable value) {
String response = callToVersion(url); switch (dettPraticaFieldsTypes.get(field)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONObject(response).getJSONArray("values"); case Types.BOOLEAN:
return jsonArray; return (Boolean) value ? "Sì" : "No";
case Types.TIMESTAMP:
Date dt;
if (value instanceof Long) {
dt = new Date((Long) value);
} else if (value instanceof String) {
String s = (String) value;
if (s.isEmpty()) {
return s;
}
dt = new Date(Long.parseLong(s));
} else {
return "{{{{{{{" + value + "}}}}}}}";
}
return FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(dt);
case Types.VARCHAR:
return (String) value;
case Types.BIGINT:
case Types.DOUBLE:
case Types.INTEGER:
return NumberFormat.getInstance().format(value);
default:
_log.info(dettPraticaFieldsTypes.get(field));
return "XXXXXXXXXXXXX";
}
} }
@Override @Override
@ -1725,6 +1843,14 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE); return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE);
} }
private DynamicQuery queryVersioning(long intPraticaId) {
DynamicQuery query = dynamicQuery();
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
query.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED));
query.add(RestrictionsFactoryUtil.ne("tipoIntegrazione", TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO));
return query;
}
// ADT: nuovo metodo per stampa fascicolo // ADT: nuovo metodo per stampa fascicolo
@Override @Override
public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException { public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException {

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

@ -19,21 +19,17 @@ import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.service.base.DettPraticaServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.DettPraticaServiceBaseImpl;
import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission;
import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.util.DelegheUtil; import it.tref.liferay.portos.bo.util.DelegheUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.Company;
import com.liferay.portal.security.permission.ActionKeys; import com.liferay.portal.security.permission.ActionKeys;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
/** /**
@ -61,12 +57,14 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
* access the dett pratica remote service. * access the dett pratica remote service.
*/ */
@Override
public DettPratica getDettPratica(long dettPraticaId) throws PortalException, SystemException { public DettPratica getDettPratica(long dettPraticaId) throws PortalException, SystemException {
DettPraticaEntryPermission.check(getPermissionChecker(), dettPraticaId, ActionKeys.VIEW); DettPraticaEntryPermission.check(getPermissionChecker(), dettPraticaId, ActionKeys.VIEW);
return dettPraticaLocalService.getDettPratica(dettPraticaId); return dettPraticaLocalService.getDettPratica(dettPraticaId);
} }
@Override
public DettPratica addDettPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) public DettPratica addDettPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -75,17 +73,20 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
return dettPraticaLocalService.addDettPratica(territorioId, tipoProcedura, serviceContext); return dettPraticaLocalService.addDettPratica(territorioId, tipoProcedura, serviceContext);
} }
@Override
public DettPratica addDettPraticaToIntPratica(long intPraticaId, ServiceContext serviceContext) public DettPratica addDettPraticaToIntPratica(long intPraticaId, ServiceContext serviceContext)
throws PortalException, SystemException { throws PortalException, SystemException {
return dettPraticaLocalService.addDettPraticaToIntPratica(intPraticaId, serviceContext); return dettPraticaLocalService.addDettPraticaToIntPratica(intPraticaId, serviceContext);
} }
@Override
public DettPratica addDettPraticaClonedToIntPratica(long intPraticaId, long dettPraticaToCloneId, public DettPratica addDettPraticaClonedToIntPratica(long intPraticaId, long dettPraticaToCloneId,
String tipoIntegrazione, ServiceContext serviceContext) throws PortalException, SystemException { String tipoIntegrazione, ServiceContext serviceContext) throws PortalException, SystemException {
return dettPraticaLocalService.addDettPraticaClonedToIntPratica(intPraticaId, dettPraticaToCloneId, return dettPraticaLocalService.addDettPraticaClonedToIntPratica(intPraticaId, dettPraticaToCloneId,
tipoIntegrazione, serviceContext); tipoIntegrazione, serviceContext);
} }
@Override
public DettPratica getLastEditableByIntPratica(long intPraticaId) throws PortalException, SystemException { public DettPratica getLastEditableByIntPratica(long intPraticaId) throws PortalException, SystemException {
DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPraticaId); DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPraticaId);
@ -96,16 +97,19 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
return dettPratica; return dettPratica;
} }
@Override
public DettPratica deleteDettPratica(DettPratica dettPratica) throws PortalException, SystemException { public DettPratica deleteDettPratica(DettPratica dettPratica) throws PortalException, SystemException {
return dettPraticaLocalService.deleteDettPratica(dettPratica); return dettPraticaLocalService.deleteDettPratica(dettPratica);
} }
@Override
public DettPratica deleteDettPratica(long dettPraticaId) throws PortalException, SystemException { public DettPratica deleteDettPratica(long dettPraticaId) throws PortalException, SystemException {
return dettPraticaLocalService.deleteDettPratica(dettPraticaId); return dettPraticaLocalService.deleteDettPratica(dettPraticaId);
} }
@Override
public DettPratica updateDettPraticaSoggetti(long userId, long dettPraticaId, long intPraticaId, public DettPratica updateDettPraticaSoggetti(long userId, long dettPraticaId, long intPraticaId,
String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori,
String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) throws PortalException, String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) throws PortalException,
@ -116,6 +120,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
codiceFiscaleDelegatoCollaudo, serviceContext); codiceFiscaleDelegatoCollaudo, serviceContext);
} }
@Override
public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId, public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId,
long integrazione, String protocollo, String tipoIntegrazione, boolean completa, boolean gestita, long integrazione, String protocollo, String tipoIntegrazione, boolean completa, boolean gestita,
String codicePagamento, String causalePagamento, String mezzoPagamento, String importoBolli, String codicePagamento, String causalePagamento, String mezzoPagamento, String importoBolli,
@ -244,33 +249,39 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
return dettPratica; return dettPratica;
} }
@Override
public DettPratica fetchDettPratica(long dettPraticaId) throws SystemException { public DettPratica fetchDettPratica(long dettPraticaId) throws SystemException {
// TODO permessi // TODO permessi
return dettPraticaLocalService.fetchDettPratica(dettPraticaId); return dettPraticaLocalService.fetchDettPratica(dettPraticaId);
} }
@Override
public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException { public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException {
return dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); return dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId);
} }
@Override
public DettPratica getLastdByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche) public DettPratica getLastdByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche)
throws SystemException { throws SystemException {
return dettPraticaLocalService.getLastdByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); return dettPraticaLocalService.getLastdByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche);
} }
@Override
public DettPratica getLastEditabledByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche) public DettPratica getLastEditabledByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche)
throws SystemException { throws SystemException {
return dettPraticaLocalService.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); return dettPraticaLocalService.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche);
} }
@Override
public List<DettPratica> findCompletedByIntPraticaAndTipoPratica(long intPraticaId, public List<DettPratica> findCompletedByIntPraticaAndTipoPratica(long intPraticaId,
List<String> tipoPratiche) throws SystemException { List<String> tipoPratiche) throws SystemException {
return dettPraticaLocalService.findCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); return dettPraticaLocalService.findCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche);
} }
@Override
public int countCompletedByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche) public int countCompletedByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche)
throws SystemException { throws SystemException {
return dettPraticaLocalService.countCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); return dettPraticaLocalService.countCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche);
@ -294,6 +305,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
// } // }
// } // }
@Override
public DettPratica pagaInvia(long dettPraticaId, int pagAdeguamentoSismico, int pagAltro, public DettPratica pagaInvia(long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni, int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni,
boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria, boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria,
@ -316,11 +328,13 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
} }
@Override
public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese,
boolean normEsenteBollo) throws SystemException, PortalException { boolean normEsenteBollo) throws SystemException, PortalException {
return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo); return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo);
} }
@Override
public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException,
PortalException { PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
@ -328,6 +342,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
return dettPraticaLocalService.updateEsito(dettPraticaId, stato); return dettPraticaLocalService.updateEsito(dettPraticaId, stato);
} }
@Override
public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException,
SystemException, PortalException { SystemException, PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
@ -335,92 +350,38 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
return dettPraticaLocalService.updateEsitoIntegrazione(dettPraticaId, stato); return dettPraticaLocalService.updateEsitoIntegrazione(dettPraticaId, stato);
} }
// public void sostituisciPagamento(long pagamentoId, long dettPraticaId, @Override
// String
// codiceFiscaleCommittente, String mezzo,
// String url, ServiceContext serviceContext) throws PortalException,
// SystemException {
//
// DettPratica dettPratica =
// dettPraticaLocalService.getDettPratica(dettPraticaId);
// if (getUserId() == dettPratica.getUserId()) {
// dettPraticaLocalService.sostituisciPagamento(pagamentoId, dettPraticaId,
// codiceFiscaleCommittente, mezzo, url,
// serviceContext);
// } else {
// throw new
// SystemException("pagamento aggiornabile solo da titolare del dettPratica");
// }
//
// }
public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto)
throws PortalException, SystemException { throws PortalException, SystemException {
return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto);
} }
public int getNumeroDiVersioni(long intPraticaId, long companyId) throws IOException, PortalException, @Override
SystemException { public List<String> getDettPraticaFields() {
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String shapshotsCountURL = (String) company.getExpandoBridge().getAttribute(
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, false);
shapshotsCountURL += intPraticaId;
return dettPraticaLocalService.getNumeroDiVersioni(shapshotsCountURL); return dettPraticaLocalService.getDettPraticaFields();
} }
public String getJsonVersion(long intPraticaId, long companyId, int version) throws PortalException, @Override
SystemException, IOException { public List<DettPratica> getVersioni(long intPraticaId) throws SystemException {
return dettPraticaLocalService.getVersioni(intPraticaId);
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String shapshotsURL = (String) company.getExpandoBridge().getAttribute(
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS, false);
shapshotsURL += intPraticaId + StringPool.FORWARD_SLASH + version;
return dettPraticaLocalService.getVersionNumber(shapshotsURL, version);
} }
public String callForChanges(long intPraticaId, long companyId, int version) throws IOException, @Override
PortalException, SystemException { public List<Map<String, Serializable>> callForChanges(long intPraticaId) throws SystemException {
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String changesURL = (String) company.getExpandoBridge().getAttribute(
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES, false);
changesURL += intPraticaId + StringPool.FORWARD_SLASH + "from" + StringPool.FORWARD_SLASH
+ (version + 1);
JSONArray changes = dettPraticaLocalService.callForChanges(changesURL);
StringBuilder sb = new StringBuilder(); return dettPraticaLocalService.callForChanges(intPraticaId);
sb.append(StringPool.OPEN_BRACKET);
for (int i = 0; i < changes.length(); i++) {
if (!PraticaUtil.getDettPraticaHiddenFields().contains(
changes.getJSONObject(i).getString("property"))) {
sb.append(StringPool.QUOTE).append(changes.getJSONObject(i).getString("property"))
.append(StringPool.QUOTE).append(StringPool.COMMA);
} }
} @Override
if (sb.length() > 1) { public boolean isNumber(String field) {
sb.setLength(sb.length() - 1);
}
sb.append(StringPool.CLOSE_BRACKET);
return sb.toString();
return dettPraticaLocalService.isNumber(field);
} }
public void sendToVersioning(long dettPraticaId, long companyId) throws Exception { @Override
public String format(String field, Serializable value) {
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String commitURL = (String) company.getExpandoBridge().getAttribute(
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT, false);
dettPraticaLocalService.sendToVersioning(dettPraticaId, commitURL);
return dettPraticaLocalService.format(field, value);
} }
} }

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException;
import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.impl.AvvisoImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoImpl;
import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.impl.CollaudoImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoImpl;
import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchComuneException;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.impl.ComuneImpl; import it.tref.liferay.portos.bo.model.impl.ComuneImpl;
import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl; import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunePersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException;
import it.tref.liferay.portos.bo.model.Comunicazione; import it.tref.liferay.portos.bo.model.Comunicazione;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException;
import it.tref.liferay.portos.bo.model.Configurazione; import it.tref.liferay.portos.bo.model.Configurazione;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException;
import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.model.impl.DelegaImpl; import it.tref.liferay.portos.bo.model.impl.DelegaImpl;
import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl; import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException;
import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.DocAggiuntiva;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl;
import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl;
import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.HistoryWorkflowAction;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl;
import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException;
import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.impl.PagamentoImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoImpl;
import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException;
import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -43,6 +43,7 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl; import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl;
import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl; import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.impl.SoggettoImpl; import it.tref.liferay.portos.bo.model.impl.SoggettoImpl;
import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl; import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchSorteggioException;
import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.Sorteggio;
import it.tref.liferay.portos.bo.model.impl.SorteggioImpl; import it.tref.liferay.portos.bo.model.impl.SorteggioImpl;
import it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl; import it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl;
import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException;
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException;
import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.Tempistica;
import it.tref.liferay.portos.bo.model.impl.TempisticaImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaImpl;
import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -44,6 +44,7 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException;
import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.model.impl.TerritorioImpl; import it.tref.liferay.portos.bo.model.impl.TerritorioImpl;
import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl; import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence;
import java.io.Serializable; import java.io.Serializable;

16
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html

@ -54,6 +54,22 @@
«privi di rilevanza» nei riguardi della pubblica incolumità ai sensi dell’art. 94- «privi di rilevanza» nei riguardi della pubblica incolumità ai sensi dell’art. 94-
bis, comma 1, lettera C; bis, comma 1, lettera C;
</li> </li>
##anteprima
<li>
ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:<br/>
[<b>{{!coniugio}}</b>] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del
convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla
trattazione del procedimento;<br/>
[<b>{{coniugio}}</b>] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti
dipendenti dell'Ufficio del Genio Civile: {{relazioni}}
</li>
##
##lavoripubblici
<li>
ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state
regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico;
</li>
##
<li> <li>
di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679,
recepito con D.Lgs. 101/2018, circa le modalità di trattamento e l'utilizzo dei recepito con D.Lgs. 101/2018, circa le modalità di trattamento e l'utilizzo dei

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2600 build.number=2606
build.date=1620227802640 build.date=1621003317014
build.auto.upgrade=true build.auto.upgrade=true
## ##

183
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp

@ -1,75 +1,144 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.json.JSONArray"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="com.liferay.portal.kernel.json.JSONObject"%>
<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.json.JSONSerializer"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil"%>
<%@page import="java.io.Serializable"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" /> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" />
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_versioning"></liferay-ui:message></h2> <h2 class="fasciolo_page_title"><liferay-ui:message key="page_versioning" /></h2>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L);
DettPratica dettPratica; DettPratica dettPratica;
if(Validator.isNotNull(dettPraticaId)) { if (Validator.isNull(dettPraticaId)) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} else {
dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
} else {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} }
IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica"); IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica");
if(intPratica == null){ if (Validator.isNull(intPratica)) {
intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
} }
long intPraticaId = intPratica.getIntPraticaId();
List<DettPratica> dps = DettPraticaServiceUtil.getVersioni(intPraticaId);
int size = dps.size();
List<Map<String, Serializable>> changes = DettPraticaServiceUtil.callForChanges(intPraticaId);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
%> %>
<div class="container-fluid container-version"> <div class="container-fluid container-version">
<div class="table-responsive">
<h4 class="container-version__fascicolo"></h4> <table class="table table-striped">
<div id="label-slider"></div> <thead>
<div id="slider"></div> <tr>
<th></th>
<div class="row versioning-table no-gutter"> <%
for (int i = 0; i < size; i++) {
String tipoIntegrazione = dps.get(i).getTipoIntegrazione();
%>
<th><%= tipoIntegrazione.isEmpty() ? "Pratica"
: LanguageUtil.get(pageContext, "label-integrazione-" + tipoIntegrazione) %><br>
del <%= sdf.format(dps.get(i).getDtProtocollo()) %></th>
<% <%
JSONObject jsonObjectResponse = JSONFactoryUtil.createJSONObject(dettPratica.serializeToVersioningPage());
JSONArray jsonFields = jsonObjectResponse.getJSONArray("fields");
StringBuilder sb = new StringBuilder();
for(int i=0;i<jsonFields.length();i++){
String item = jsonFields.getString(i);
sb.append("<div class="+StringPool.QUOTE+"version_item item_").append(item).append(StringPool.QUOTE).append(">")
.append(LanguageUtil.get(pageContext, item.replaceAll("([A-Z])", "-$1").toLowerCase()))
.append(": <span class="+StringPool.QUOTE+"item_value"+StringPool.QUOTE+"><strong></strong></span></div>");
} }
%> %>
<div id='<portlet:namespace/>version_number' class="col-md-6 col-sm-6 col-xs-6 old-version" style="border-right:1px solid transparent"> </tr>
<div class="versioning-table_title"> </thead>
<h4 class="version_title">Version #<span class="number"></span></h4> <tbody>
</div> <%
<div class="version_body"> if (size == 0) {
<%= sb.toString() %> %>
</div> <tr><td colspan="<%= size + 1 %>">Nessuna differenza</td></tr>
</div> <%
<div id='<portlet:namespace/>version_last' class="col-md-6 col-sm-6 col-xs-6 last-version" style="border-left:1px solid #ccc"> } else {
<div class="versioning-table_title"> for (String item : DettPraticaLocalServiceUtil.getDettPraticaFields()) {
<h4 class="version_title">Versione Corrente</h4> if (changes.get(0).containsKey(item)) {
</div> %>
<div class="version_body"> <tr>
<%= sb.toString() %> <td><%= LanguageUtil.get(pageContext, item.replaceAll("([A-Z])", "-$1").toLowerCase()) %></td>
</div> <%
</div> Serializable precedente = null;
for (Map<String, Serializable> values : changes) {
Serializable value = values.get(item);
String style = (precedente == null ? value == null : precedente.equals(value)) ? "color:#AAA"
: StringPool.BLANK;
%>
<td style="<%= style %>"><%= DettPraticaServiceUtil.format(item, value) %></td>
<%
precedente = value;
}
%>
<%
}
}
}
%>
</tbody>
<%
Map<Long, List<DocPratica>> liste = new HashMap<Long, List<DocPratica>>();
for (String codice : DocumentiPraticaUtil.getDocDomanda()) {
liste.clear();
int nDocs = 0;
for (DocPratica doc : DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(intPraticaId, codice, QueryUtil.ALL_POS,
QueryUtil.ALL_POS)) {
if (doc.getClassName().equals(DettPratica.class.getName())) {
long classPk = doc.getClassPk();
if (!liste.containsKey(classPk)) {
liste.put(classPk, new ArrayList<DocPratica>());
}
liste.get(classPk).add(doc);
nDocs++;
}
}
if (nDocs > 0) {
%>
<tr>
<th><%= LanguageUtil.get(pageContext, "label-documenti-tipologia-" + codice) %></th>
<%
for (DettPratica dp : dps) {
List<DocPratica> lista = liste.get(dp.getDettPraticaId());
%>
<td>
<%
if (Validator.isNotNull(lista)) {
boolean separatore = false;
for (DocPratica doc : liste.get(dp.getDettPraticaId())) {
if (separatore) {
out.print("<hr/>");
}
%>
<%= doc.getFileName() %>
<c:if test="<%= Validator.isNotNull(doc.getDlFileEntryId())%>">
<br>
<liferay-portlet:renderURL var="previewURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId"
value="<%= String.valueOf(doc.getDlFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" />
</liferay-portlet:renderURL>
<liferay-ui:icon id='<%= "vo" + doc.getDocPraticaId() %>' linkCssClass="btn btn-action"
iconCssClass="fa fa-clipboard" message="Visualizza" url="<%= previewURL %>"
useDialog="true" />
<liferay-ui:icon id='<%= "vd" + doc.getDocPraticaId() %>' linkCssClass="btn btn-action"
iconCssClass="fa fa-download" message="Download"
url="<%= doc.getDownloadUrl(themeDisplay) %>" />
</c:if>
<br>
<%
separatore = true;
}
}
%>
</td>
<%
}
%>
</tr>
<%
}
}
%>
</table>
</div> </div>
</div> </div>
<aui:script use="aui-base">
Liferay.Service(
'/portos-bo-portlet.dettpratica/get-numero-di-versioni',
{
intPraticaId: <%= intPratica.getIntPraticaId() %>,
companyId : <%= company.getCompanyId() %>
},
function(obj) {
sliderVersion.init(obj, <%= intPratica.getIntPraticaId() %>, <%= company.getCompanyId() %>);
}
);
</aui:script>

115
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js

@ -1,114 +1 @@
var versionamento = { /**/
changes : [],
init:function(idPratica, company, lastVersion, currentVersion){
var scope = this;
// console.log("lastVersion: "+lastVersion);
// console.log("currentVersion: "+currentVersion);
this.loadJsonVersion(idPratica, company, lastVersion, true);
if(currentVersion > 0){
this.loadJsonVersion(idPratica, company, currentVersion, false);
setTimeout(function(){
scope.getChanges(idPratica, company, currentVersion);
}, 300)
} else {
$('#_1_WAR_portosboportlet_version_number .version_body').html("<p class=\"text-center version_item\">Nessuna Versione precedente all'attuale</p>")
}
},
sliderChange:function(idPratica, company, currentVersion){
var scope = this;
this.loadJsonVersion(idPratica, company, currentVersion, false);
setTimeout(function(){
scope.getChanges(idPratica, company, currentVersion);
}, 300)
},
loadJsonVersion: function(idPratica, company, versionNumber, last) {
var scope = this;
Liferay.Service(
'/portos-bo-portlet.dettpratica/get-json-version',
{
intPraticaId: idPratica,
companyId : company,
version: versionNumber
},
function(obj) {
var item = last ? "_1_WAR_portosboportlet_version_last" : "_1_WAR_portosboportlet_version_number";
scope.updateHTML(JSON.parse(obj), item, last ? false : versionNumber);
}
);
},
getChanges: function(idPratica, company, versionNumber) {
var scope = this;
Liferay.Service(
'/portos-bo-portlet.dettpratica/call-for-changes',
{
intPraticaId: idPratica,
companyId : company,
version: versionNumber
},
function(obj) {
var arr = JSON.parse(obj);
$("#_1_WAR_portosboportlet_version_number .version_item").removeClass("background-red")
$("#_1_WAR_portosboportlet_version_last .version_item").removeClass("background-green")
for( index in arr){
var key = arr[index];
var left = $("#_1_WAR_portosboportlet_version_number .item_"+key),
right = $("#_1_WAR_portosboportlet_version_last .item_"+key);
left.addClass("background-red")
right.addClass("background-green")
var heights = [left,right].map(function (item)
{
return $(item).outerHeight();
});
left.css('height', Math.max.apply(null, heights));
right.css('height', Math.max.apply(null, heights));
}
}
);
},
updateHTML: function(obj, containerId, versionNumber) {
var scope = this;
var version_container = $('#'+containerId);
if(versionNumber){
version_container.find(".number").html(versionNumber);
}
for( item in obj ){
var item_value=obj[item].replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#034;/g,"\"");
version_container.find('.item_'+item+" .item_value")
.html("<strong>"+item_value+"</strong>")
}
}
}
var sliderVersion = {
init:function(val, idPratica, company){
/*alert('Slider INIT');*/
var initialValue = val, min = 1, maxValue = (val-1) > 0 ? (val-1) : 0;
versionamento.init(idPratica, company, val, maxValue);
$("#label-slider").text(maxValue);
if(maxValue <= 1) {
$("#label-slider").css("margin-left", '0');
}
$( function() {
$( "#slider" ).slider({
value: val,
min: 1,
max: maxValue,
step: 1,
slide: function( event, ui ) {
$("#label-slider").text(ui.value);
if(maxValue == 0) {
$("#label-slider").css("margin-left", '0');
}else {
$("#label-slider").css("margin-left", (ui.value-min)/(maxValue-min)*100+'%');
}
$("#label-slider").css("left", "-15px");
versionamento.sliderChange(idPratica, company, ui.value);
}
});
});
},
}

36
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

@ -8,33 +8,28 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="row add-new-project__row"> <div class="row add-new-project__row">
<div class="col-xs-6 col-sm-6 col-md-6 add-new-project__provincia"> <div class="col-xs-6 col-sm-6 col-md-6 add-new-project__provincia">
<aui:select name="provincia" label="Provincia" showEmptyOption="false" showRequiredLabel="true"> <aui:select name="provincia" label="Provincia" showEmptyOption="false" showRequiredLabel="true" />
</aui:select>
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 add-new-project__comune"> <div class="col-xs-6 col-sm-6 col-md-6 add-new-project__comune">
<aui:select name="comune" label="Comune" showEmptyOption="false" showRequiredLabel="true" disabled="<%=true%>"> <aui:select name="comune" label="Comune" showEmptyOption="false" showRequiredLabel="true" disabled="true" />
</aui:select>
</div> </div>
</div> </div>
<div class="row add-new-project__row add-new-project__flex"> <div class="row add-new-project__row add-new-project__flex">
<div class="col-xs-6 col-sm-6 col-md-6 add-new-project__fascia"> <div class="col-xs-6 col-sm-6 col-md-6 add-new-project__fascia">
<aui:select name="territorioId" label="Zona - Fascia" showEmptyOption="false" showRequiredLabel="true" disabled="<%=true%>"> <aui:select name="territorioId" label="Zona - Fascia" showEmptyOption="false" showRequiredLabel="true" disabled="true" />
</aui:select>
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 add-new-project__btn"> <div class="col-xs-6 col-sm-6 col-md-6 add-new-project__btn">
<aui:button type="submit" value="add-fascicolo"></aui:button> <aui:button type="submit" value="add-fascicolo" />
</div> </div>
</div> </div>
<div class="row add-new-project__row"> <div class="row add-new-project__row">
<div class="col-xs-12 add-new-project__procedura"> <div class="col-xs-12 add-new-project__procedura">
<aui:field-wrapper label="tipo-procedura" helpMessage="è necessario selezionare una voce"> <aui:field-wrapper label="tipo-procedura" helpMessage="è necessario selezionare una voce">
<aui:input label="tipo-procedura-a" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_A %>" type="radio" value="<%= Constants.PROCEDURA_A %>" showRequiredLabel="true" disabled="<%=true%>"> <aui:input label="tipo-procedura-a" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_A %>" type="radio" value="<%= Constants.PROCEDURA_A %>" showRequiredLabel="true" disabled="true">
<aui:validator name="required" /> <aui:validator name="required" />
</aui:input> </aui:input>
<aui:input label="tipo-procedura-b" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_B %>" type="radio" value="<%= Constants.PROCEDURA_B %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo-procedura-b" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_B %>" type="radio" value="<%= Constants.PROCEDURA_B %>" showRequiredLabel="true" disabled="true" />
<%-- <aui:input label="tipo-procedura-b1" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_B1 %>" type="radio" value="<%= Constants.PROCEDURA_B1 %>" showRequiredLabel="true" disabled="<%=true%>" /> --%> <aui:input label="tipo-procedura-c" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_C %>" type="radio" value="<%= Constants.PROCEDURA_C %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo-procedura-c" name="tipoProcedura" id="tipo_procedura_<%= Constants.PROCEDURA_C %>" type="radio" value="<%= Constants.PROCEDURA_C %>" showRequiredLabel="true" disabled="<%=true%>" />
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
</div> </div>
@ -43,11 +38,9 @@
</div> </div>
</div> </div>
</div> </div>
<liferay-portlet:resourceURL id="province" var="getProvinceURL" /> <liferay-portlet:resourceURL id="province" var="getProvinceURL" />
<liferay-portlet:resourceURL id="comuni" var="getComuniURL" /> <liferay-portlet:resourceURL id="comuni" var="getComuniURL" />
<liferay-portlet:resourceURL id="zoneFasce" var="getZoneFasceURL" /> <liferay-portlet:resourceURL id="zoneFasce" var="getZoneFasceURL" />
<aui:script use="aui-io-request,liferay-dynamic-select,aui-form-validator"> <aui:script use="aui-io-request,liferay-dynamic-select,aui-form-validator">
var defaultFormValidator = A.config.FormValidator; var defaultFormValidator = A.config.FormValidator;
var procedure = {}; var procedure = {};
@ -149,8 +142,7 @@
); );
}; };
new Liferay.DynamicSelect( new Liferay.DynamicSelect([
[
{ {
select: '<portlet:namespace />provincia', select: '<portlet:namespace />provincia',
selectData: getProvince, selectData: getProvince,
@ -158,7 +150,6 @@
selectId: 'provinciaId', selectId: 'provinciaId',
selectSort: true, selectSort: true,
selectVal: '0' selectVal: '0'
}, },
{ {
select: '<portlet:namespace />comune', select: '<portlet:namespace />comune',
@ -167,7 +158,6 @@
selectId: 'comuneId', selectId: 'comuneId',
selectSort: true, selectSort: true,
selectVal: '0' selectVal: '0'
}, },
{ {
select: '<portlet:namespace />territorioId', select: '<portlet:namespace />territorioId',
@ -176,9 +166,7 @@
selectId: 'territorioId', selectId: 'territorioId',
selectVal: '0' selectVal: '0'
} }
]);
]
);
$('.add-new-project__provincia select').change(function(){ $('.add-new-project__provincia select').change(function(){
var val = $(this).val(); var val = $(this).val();
@ -210,12 +198,6 @@
$('.add-new-project__procedura div').removeClass('success'); $('.add-new-project__procedura div').removeClass('success');
}else if(val !== 0) { }else if(val !== 0) {
$('.add-new-project__procedura input').prop('disabled', false).removeClass('disabled').parent().css('display', 'block'); $('.add-new-project__procedura input').prop('disabled', false).removeClass('disabled').parent().css('display', 'block');
// if ('<%= Constants.PROCEDURA_B %>' == procedure[val])
// $('#<portlet:namespace />tipo_procedura_<%= Constants.PROCEDURA_B1 %>').prop('disabled', 'disabled').prop('checked', false).parent().css('display', 'none');
// else
// $('#<portlet:namespace />tipo_procedura_<%= Constants.PROCEDURA_B %>').prop('disabled', 'disabled').prop('checked', false).parent().css('display', 'none');
// $('#<portlet:namespace />tipo_procedura_<%= Constants.PROCEDURA_C %>').prop('disabled', 'disabled').prop('checked', false);
} }
}); });
</aui:script> </aui:script>

11
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java

@ -151,7 +151,8 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext( public it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
EmailAttachmentPK emailAttachmentPK, long emailId, it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -256,7 +257,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @return the new email attachment * @return the new email attachment
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment create( public it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
EmailAttachmentPK emailAttachmentPK); it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK);
/** /**
* Removes the email attachment with the primary key from the database. Also notifies the appropriate model listeners. * Removes the email attachment with the primary key from the database. Also notifies the appropriate model listeners.
@ -267,7 +268,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment remove( public it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -284,7 +285,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey( public it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -296,7 +297,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey( public it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
/** /**

11
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentUtil.java

@ -239,7 +239,8 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
EmailAttachmentPK emailAttachmentPK, long emailId, it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
@ -367,7 +368,7 @@ public class EmailAttachmentUtil {
* @return the new email attachment * @return the new email attachment
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment create( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
EmailAttachmentPK emailAttachmentPK) { it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) {
return getPersistence().create(emailAttachmentPK); return getPersistence().create(emailAttachmentPK);
} }
@ -380,7 +381,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment remove( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().remove(emailAttachmentPK); return getPersistence().remove(emailAttachmentPK);
@ -401,7 +402,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().findByPrimaryKey(emailAttachmentPK); return getPersistence().findByPrimaryKey(emailAttachmentPK);
@ -415,7 +416,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
EmailAttachmentPK emailAttachmentPK) it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByPrimaryKey(emailAttachmentPK); return getPersistence().fetchByPrimaryKey(emailAttachmentPK);
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_Mail build.namespace=portos_Mail
build.number=78 build.number=79
build.date=1619531086656 build.date=1620662460162
build.auto.upgrade=true build.auto.upgrade=true
## ##

1
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java

@ -14,7 +14,6 @@ public class TipoSoggettoUtil {
public static final String PROGETTISTA = "06"; public static final String PROGETTISTA = "06";
public static final String JSON_CODICE_FISCALE = "codiceFiscale"; public static final String JSON_CODICE_FISCALE = "codiceFiscale";
public static final String JSON_CODICE_RUOLO = "codiceRuolo";
@SuppressWarnings("serial") @SuppressWarnings("serial")
private static final List<String> allSubjects = new ArrayList<String>() { private static final List<String> allSubjects = new ArrayList<String>() {

Caricamento…
Annulla
Salva