Sfoglia il codice sorgente

Implementazione definitiva 'Perizia sanzione' e 'Decreto sanzione' per sanatorie

master
Salvatore La Manna 3 anni fa
parent
commit
d907c91294
  1. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java
  2. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java
  3. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java
  4. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  5. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  6. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  7. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  8. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java
  9. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java
  10. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java
  11. 45
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  12. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java
  13. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties
  14. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  15. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/portlet/OrganigrammaPortlet.java
  16. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java
  17. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  18. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java
  19. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java
  20. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  21. 66
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  22. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java
  23. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java
  24. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  25. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  26. 53
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  27. 57
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  28. 129
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  29. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java
  30. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  31. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp
  32. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp
  33. 105
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/task_completati.jsp
  34. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf
  35. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare.jsp
  36. 662
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp
  37. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf
  38. 130
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java
  39. 20
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java
  40. 6
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java
  41. 40
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/NoSuchEmailAttachmentException.java
  42. 40
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/NoSuchEmailException.java
  43. 40
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/NoSuchEmailTemplateException.java
  44. 35
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java
  45. 301
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java
  46. 146
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java
  47. 111
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java
  48. 278
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java
  49. 256
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java
  50. 733
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java
  51. 313
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java
  52. 320
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java
  53. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java
  54. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentUtil.java
  55. 38
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java
  56. 140
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java
  57. 362
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java
  58. 526
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java
  59. 4
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/sql/indexes.properties
  60. 3
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/sql/indexes.sql
  61. 6
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/sql/tables.sql
  62. 50
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java
  63. 76
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java
  64. 34
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java
  65. 318
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java
  66. 797
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java
  67. 266
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java
  68. 1491
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java
  69. 4
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties
  70. 3
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java
  71. 56
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java
  72. 2
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java
  73. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java
  74. 147
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java
  75. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java

@ -49,4 +49,6 @@ public interface IntPratica extends IntPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.lang.Integer getDistanzaOrtodromica(); public java.lang.Integer getDistanzaOrtodromica();
public boolean hasRichiestaIntegrazioneAttiva();
} }

19
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java

@ -1244,6 +1244,25 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
} }
@Override
public boolean hasRichiestaIntegrazioneAttiva() {
try {
String methodName = "hasRichiestaIntegrazioneAttiva";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override @Override
public java.lang.Integer getDistanzaOrtodromica() { public java.lang.Integer getDistanzaOrtodromica() {
try { try {

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java

@ -1275,6 +1275,11 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
return _intPratica.getDistanzaOrtodromica(); return _intPratica.getDistanzaOrtodromica();
} }
@Override
public boolean hasRichiestaIntegrazioneAttiva() {
return _intPratica.hasRichiestaIntegrazioneAttiva();
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {

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

@ -542,4 +542,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
long intPraticaId) long intPraticaId)
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;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId);
} }

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

@ -349,6 +349,10 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
_methodName68 = "getOrganizationByIntPraticaId"; _methodName68 = "getOrganizationByIntPraticaId";
_methodParameterTypes68 = new String[] { "long" }; _methodParameterTypes68 = new String[] { "long" };
_methodName69 = "hasRichiestaIntegrazioneAttiva";
_methodParameterTypes69 = new String[] { "long" };
} }
@Override @Override
@ -2671,6 +2675,29 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
return (com.liferay.portal.model.Organization)ClpSerializer.translateOutput(returnObj); return (com.liferay.portal.model.Organization)ClpSerializer.translateOutput(returnObj);
} }
@Override
public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName69,
_methodParameterTypes69, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Boolean)returnObj).booleanValue();
}
private InvokableLocalService _invokableLocalService; private InvokableLocalService _invokableLocalService;
private String _methodName0; private String _methodName0;
private String[] _methodParameterTypes0; private String[] _methodParameterTypes0;
@ -2808,4 +2835,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
private String[] _methodParameterTypes67; private String[] _methodParameterTypes67;
private String _methodName68; private String _methodName68;
private String[] _methodParameterTypes68; private String[] _methodParameterTypes68;
private String _methodName69;
private String[] _methodParameterTypes69;
} }

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

@ -674,6 +674,10 @@ public class IntPraticaLocalServiceUtil {
return getService().getOrganizationByIntPraticaId(intPraticaId); return getService().getOrganizationByIntPraticaId(intPraticaId);
} }
public static boolean hasRichiestaIntegrazioneAttiva(long intPraticaId) {
return getService().hasRichiestaIntegrazioneAttiva(intPraticaId);
}
public static void clearService() { public static void clearService() {
_service = null; _service = null;
} }

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

@ -741,6 +741,11 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
return _intPraticaLocalService.getOrganizationByIntPraticaId(intPraticaId); return _intPraticaLocalService.getOrganizationByIntPraticaId(intPraticaId);
} }
@Override
public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId) {
return _intPraticaLocalService.hasRichiestaIntegrazioneAttiva(intPraticaId);
}
/** /**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/ */

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

@ -63,12 +63,13 @@ public class AvvisoUtil {
put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA,
"label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata"); "label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata");
put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore"); put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore");
put(StatoPraticaConstants.DECRETO_SANZIONE, "label.admingeniocivile.avviso.tipoDocumento.decretosanzione");
put(StatoPraticaConstants.PERIZIA_SANZIONE, "label.admingeniocivile.avviso.tipoDocumento.periziasanzione"); put(StatoPraticaConstants.PERIZIA_SANZIONE, "label.admingeniocivile.avviso.tipoDocumento.periziasanzione");
} }
}; };
@SuppressWarnings("serial") @SuppressWarnings("serial")
private static final Map<String, String> allTipoDocumentoFolderTemplateProps = new LinkedHashMap<String, String>() { private static final Map<String, String> ALL_TIPO_DOCUMENTO_FOLDER_TEMPLATE_PROPS = new LinkedHashMap<String, String>() {
{ {
put(StatoPraticaConstants.VIDIMATA, "conf.geniocivile.avviso.folder.id.vidimata"); put(StatoPraticaConstants.VIDIMATA, "conf.geniocivile.avviso.folder.id.vidimata");
put(StatoPraticaConstants.CONFORME, "conf.geniocivile.avviso.folder.id.conforme"); put(StatoPraticaConstants.CONFORME, "conf.geniocivile.avviso.folder.id.conforme");
@ -89,12 +90,13 @@ public class AvvisoUtil {
put(StatoPraticaConstants.INVIO_AVVISO_MANUALE, "conf.geniocivile.avviso.folder.id.manuale"); put(StatoPraticaConstants.INVIO_AVVISO_MANUALE, "conf.geniocivile.avviso.folder.id.manuale");
put("PG", "conf.geniocivile.avviso.folder.id.doc_pagamento"); put("PG", "conf.geniocivile.avviso.folder.id.doc_pagamento");
put("DOM", "conf.geniocivile.avviso.folder.id.domanda_pdf"); put("DOM", "conf.geniocivile.avviso.folder.id.domanda_pdf");
put(StatoPraticaConstants.DECRETO_SANZIONE, "conf.geniocivile.avviso.folder.id.decretosanzione");
put(StatoPraticaConstants.PERIZIA_SANZIONE, "conf.geniocivile.avviso.folder.id.periziasanzione"); put(StatoPraticaConstants.PERIZIA_SANZIONE, "conf.geniocivile.avviso.folder.id.periziasanzione");
} }
}; };
@SuppressWarnings("serial") @SuppressWarnings("serial")
private static final Map<String, String> allTipoDocumentoFileTemplateProps = new LinkedHashMap<String, String>() { private static final Map<String, String> ALL_TIPO_DOCUMENTO_FILE_TEMPLATE_PROPS = new LinkedHashMap<String, String>() {
{ {
put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, "conf.geniocivile.avviso.template.id.variazionesoggetti"); put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, "conf.geniocivile.avviso.template.id.variazionesoggetti");
put(StatoPraticaConstants.FINE_LAVORI, "conf.geniocivile.avviso.template.id.vidimata.finelavori"); put(StatoPraticaConstants.FINE_LAVORI, "conf.geniocivile.avviso.template.id.vidimata.finelavori");
@ -150,12 +152,12 @@ public class AvvisoUtil {
public static Map<String, String> getAllTipoDocumentoFolderProps() { public static Map<String, String> getAllTipoDocumentoFolderProps() {
return allTipoDocumentoFolderTemplateProps; return ALL_TIPO_DOCUMENTO_FOLDER_TEMPLATE_PROPS;
} }
public static Map<String, String> getAllTipoDocumentoFileTemplateProps() { public static Map<String, String> getAllTipoDocumentoFileTemplateProps() {
return allTipoDocumentoFileTemplateProps; return ALL_TIPO_DOCUMENTO_FILE_TEMPLATE_PROPS;
} }
public static String getFileTemplateProp(String statoPratica, String tipoProcedura) { public static String getFileTemplateProp(String statoPratica, String tipoProcedura) {
@ -191,13 +193,13 @@ public class AvvisoUtil {
case StatoPraticaConstants.VIDIMATA: case StatoPraticaConstants.VIDIMATA:
label = "DP" + tipoProcedura; label = "DP" + tipoProcedura;
} }
return allTipoDocumentoFileTemplateProps.get(label); return ALL_TIPO_DOCUMENTO_FILE_TEMPLATE_PROPS.get(label);
} }
public static Collection<String> getUniqueTipoDocumentoFileTemplateProps() { public static Collection<String> getUniqueTipoDocumentoFileTemplateProps() {
Collection<String> result = new HashSet<>(); Collection<String> result = new HashSet<>();
for (String value : allTipoDocumentoFileTemplateProps.values()) { for (String value : ALL_TIPO_DOCUMENTO_FILE_TEMPLATE_PROPS.values()) {
result.add(value); result.add(value);
} }
return result; return result;
@ -213,8 +215,10 @@ public class AvvisoUtil {
.equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) {} .equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) {}
if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE) if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE)
&& (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) && (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)
|| tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE) || tipoDocumento || tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE)
.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO))) { || tipoDocumento.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| tipoDocumento.equals(StatoPraticaConstants.PERIZIA_SANZIONE) || tipoDocumento
.equals(StatoPraticaConstants.DECRETO_SANZIONE))) {
tipoReport = TIPO_REPORT_AUTORIZZAZIONE; tipoReport = TIPO_REPORT_AUTORIZZAZIONE;
} else { } else {
tipoReport = TIPO_REPORT_CONTROLLO_OBBLIGATORIO; tipoReport = TIPO_REPORT_CONTROLLO_OBBLIGATORIO;

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

@ -84,8 +84,7 @@ public class AzioniPraticheUtil {
boolean isAutorizzazione = isAutorizzazione(intPraticaId); boolean isAutorizzazione = isAutorizzazione(intPraticaId);
String status = StringPool.BLANK; String status = StringPool.BLANK;
if (intPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { if (intPratica.getStatus() == WorkflowConstants.STATUS_PENDING) {
if (StatoPraticaConstants.INTEGRAZIONE.equalsIgnoreCase(intPratica.getStatoPratica()) if (intPratica.hasRichiestaIntegrazioneAttiva()) {
|| StatoPraticaConstants.PREAVVISO_CONTRARIO.equalsIgnoreCase(intPratica.getStatoPratica())) {
if (isDeposito) { if (isDeposito) {
status = STATE_INTEGRAZIONE_DEPOSITO; status = STATE_INTEGRAZIONE_DEPOSITO;
} else if (isAutorizzazione) { } else if (isAutorizzazione) {

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

@ -29,16 +29,27 @@ public class PraticaUtil {
return "Documentazione Aggiuntiva"; return "Documentazione Aggiuntiva";
} }
@SuppressWarnings("serial")
private static final Map<String, String[]> STATUS_CHANGE_MAP = new LinkedHashMap<String, String[]>() {
{
put(StatoPraticaConstants.CONFORME, new String[] { StatoPraticaConstants.NON_CONFORME });
put(StatoPraticaConstants.NON_CONFORME, new String[] { StatoPraticaConstants.CONFORME });
put(StatoPraticaConstants.VIDIMATA, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
put(StatoPraticaConstants.INTEGRAZIONE, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
put(StatoPraticaConstants.PREAVVISO_CONTRARIO, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
put(StatoPraticaConstants.DECRETO_SANZIONE, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
put(StatoPraticaConstants.PERIZIA_SANZIONE, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
}
};
public static Map<String, String[]> getStatusChangeMap(long dettPraticaId) throws PortalException, SystemException { public static Map<String, String[]> getStatusChangeMap(long dettPraticaId) throws PortalException, SystemException {
Map<String, String[]> allMethod = new LinkedHashMap<String, String[]>(); return STATUS_CHANGE_MAP;
allMethod.put(StatoPraticaConstants.CONFORME, new String[] { StatoPraticaConstants.NON_CONFORME });
allMethod.put(StatoPraticaConstants.NON_CONFORME, new String[] { StatoPraticaConstants.CONFORME });
allMethod.put(StatoPraticaConstants.VIDIMATA, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
allMethod.put(StatoPraticaConstants.INTEGRAZIONE, new String[] { StatoPraticaConstants.CONFORME,
StatoPraticaConstants.NON_CONFORME });
return allMethod;
} }
public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) throws PortalException, public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) throws PortalException,

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

@ -19,7 +19,6 @@ import it.tref.liferay.portos.bo.shared.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.SezioniUtil; import it.tref.liferay.portos.bo.shared.util.SezioniUtil;
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.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
@ -104,7 +103,7 @@ public class ValidazionePraticaUtil {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId) return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId)
&& !praticaHasVarianteInProgress(intPraticaId) && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) && !intPratica.hasRichiestaIntegrazioneAttiva()
&& !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId) && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId)
&& !praticaHasCollaudoInProgress(intPraticaId); && !praticaHasCollaudoInProgress(intPraticaId);
} }
@ -149,9 +148,7 @@ public class ValidazionePraticaUtil {
} }
return intPratica.getStatus() != WorkflowConstants.STATUS_ANY return intPratica.getStatus() != WorkflowConstants.STATUS_ANY
&& intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE
&& !intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) && !intPratica.hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress(intPraticaId);
&& !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)
&& !praticaHasIntegrazioneInProgress(intPraticaId);
} }
public static boolean praticaCanEditVariante(long intPraticaId) throws SystemException, PortalException { public static boolean praticaCanEditVariante(long intPraticaId) throws SystemException, PortalException {
@ -181,8 +178,7 @@ public class ValidazionePraticaUtil {
} }
return intPratica.getStatus() != WorkflowConstants.STATUS_ANY return intPratica.getStatus() != WorkflowConstants.STATUS_ANY
&& intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE
&& (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) || intPratica && intPratica.hasRichiestaIntegrazioneAttiva();
.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO));
} }
public static boolean praticaCanEditIntegrazione(long intPraticaId) throws SystemException, PortalException { public static boolean praticaCanEditIntegrazione(long intPraticaId) throws SystemException, PortalException {
@ -195,14 +191,6 @@ public class ValidazionePraticaUtil {
return praticaHasIntegrazioneInProgress(intPraticaId); return praticaHasIntegrazioneInProgress(intPraticaId);
} }
public static boolean praticaHasRichiestaIntegrazioneAttiva(long intPraticaId) throws SystemException,
PortalException {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
return intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)
|| intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO);
}
public static boolean praticaHasIntegrazioneInProgress(long intPraticaId) throws SystemException, PortalException { public static boolean praticaHasIntegrazioneInProgress(long intPraticaId) throws SystemException, PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId,
@ -317,34 +305,26 @@ public class ValidazionePraticaUtil {
public static boolean pagamentoIsEnable(long dettPraticaId) throws SystemException, PortalException { public static boolean pagamentoIsEnable(long dettPraticaId) throws SystemException, PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)
&& AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId)
// se è un'integrazione non si paga // se è un'integrazione non si paga
&& !intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId());
&& !intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO);
} }
public static boolean canCompleteDettPraticaEsente(long dettPraticaId) throws SystemException, PortalException { public static boolean canCompleteDettPraticaEsente(long dettPraticaId) throws SystemException, PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)
&& AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && !dettPratica.isCompleta() && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && !dettPratica.isCompleta()
&& !intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId());
&& !intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO);
} }
public static boolean canCompleteIntegrazione(long dettPraticaId) throws SystemException, PortalException { public static boolean canCompleteIntegrazione(long dettPraticaId) throws SystemException, PortalException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)
return praticaIsCompleta(dettPraticaId)
&& !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)
&& AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId)
&& (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) && IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId())
|| intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO) || dettPratica
.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))
&& dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED; && dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED;
} }
@ -354,8 +334,8 @@ public class ValidazionePraticaUtil {
return Validator.isNotNull(intPratica) && intPratica.getUserId() == userId return Validator.isNotNull(intPratica) && intPratica.getUserId() == userId
&& intPratica.getStatus() != WorkflowConstants.STATUS_ANY && intPratica.getStatus() != WorkflowConstants.STATUS_ANY
&& intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE
&& !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) && !intPratica.hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress(intPraticaId)
&& !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasAnnullamento(intPraticaId); && !praticaHasAnnullamento(intPraticaId);
} }
public static boolean pagamentoFineLavoriIsEnable(long fineLavoriId) throws SystemException, PortalException { public static boolean pagamentoFineLavoriIsEnable(long fineLavoriId) throws SystemException, PortalException {
@ -491,7 +471,8 @@ public class ValidazionePraticaUtil {
} }
boolean tipologiaCostruttiva = dettPratica.getTcNuovaCostruzione() boolean tipologiaCostruttiva = dettPratica.getTcNuovaCostruzione()
|| dettPratica.getTcNuovaCostruzionePertinenza() || dettPratica.getTcCostruzioniEsistenti() || dettPratica.getTcNuovaCostruzionePertinenza() || dettPratica.getTcCostruzioniEsistenti()
|| dettPratica.getTcManutOrdStraord() || dettPratica.getTcAltriInterventi() || dettPratica.getTcNoOpereEscavazione(); || dettPratica.getTcManutOrdStraord() || dettPratica.getTcAltriInterventi()
|| dettPratica.getTcNoOpereEscavazione();
if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1)
&& !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) {
notCompleted.add("Tipologia intervento mancante"); notCompleted.add("Tipologia intervento mancante");
@ -632,8 +613,8 @@ public class ValidazionePraticaUtil {
if (dittaPresente) { if (dittaPresente) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("Rimuovere ") sb.append("Rimuovere ")
.append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + TipoSoggettoUtil.DITTA))
+ TipoSoggettoUtil.DITTA)).append(" da soggetti censiti o deselezionare \""); .append(" da soggetti censiti o deselezionare \"");
if (dettPratica.getNormLavoriInProprio()) { if (dettPratica.getNormLavoriInProprio()) {
sb.append(LanguageUtil.get(LocaleUtil.getDefault(), sb.append(LanguageUtil.get(LocaleUtil.getDefault(),
LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-in-proprio"))); LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-in-proprio")));

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

@ -24,7 +24,6 @@ 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.JSONDeserializer; 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.util.MapUtil;
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.kernel.workflow.WorkflowException; import com.liferay.portal.kernel.workflow.WorkflowException;
@ -236,6 +235,8 @@ public class WorkflowUtil {
put(StatoPraticaConstants.PREAVVISO_CONTRARIO, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.PREAVVISO_CONTRARIO, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.NO_PARERE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.NO_PARERE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.ANNULLATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.ANNULLATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.DECRETO_SANZIONE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.PERIZIA_SANZIONE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
} }
}; };
@ -332,12 +333,6 @@ public class WorkflowUtil {
} }
} }
} }
// Per perizia sanzione
if (StatoPraticaConstants.INTEGRAZIONE.equalsIgnoreCase((String) parameters.get("esito"))) {
if (MapUtil.getBoolean(parameters, "base64")) {
parameters.put("esito", StatoPraticaConstants.PERIZIA_SANZIONE);
}
}
return parameters; return parameters;
} }

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties

@ -144,6 +144,7 @@ conf.geniocivile.avviso.folder.id.doc_annullamento = Cartella File Annullamento
conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB
conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda
conf.geniocivile.avviso.folder.id.viarch = Cartella Avvisi VIArch conf.geniocivile.avviso.folder.id.viarch = Cartella Avvisi VIArch
conf.geniocivile.avviso.folder.id.decretosanzione = Cartella Decreti Sanzione
conf.geniocivile.avviso.folder.id.periziasanzione = Cartella Perizie Sanzione conf.geniocivile.avviso.folder.id.periziasanzione = Cartella Perizie Sanzione
#Configurazione Templates #Configurazione Templates

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -46,7 +46,8 @@ stato-pratica-VS = Variazione soggetti
stato-pratica-V1 = Apertura VIArch stato-pratica-V1 = Apertura VIArch
stato-pratica-V2 = Chiusura VIArch stato-pratica-V2 = Chiusura VIArch
stato-pratica-PS = Decreto sanzione stato-pratica-DS = Decreto sanzione
stato-pratica-PS = Perizia sanzione
effettua-delega = Effettua Delega effettua-delega = Effettua Delega
effettua-delega-TT = Effettua Delega Totale effettua-delega-TT = Effettua Delega Totale
@ -996,7 +997,7 @@ go-back = Indietro
upload-file = Carica Ricevuta upload-file = Carica Ricevuta
label-diritti-fissi = DIRITTI FISSI (D.A. 3319/2013;D.A. 116/2104) label-diritti-fissi = DIRITTI FISSI (D.A. 3319/2013;D.A. 116/2104)
label-interventi-beni-culturali = <strong>Inteventi su beni culturali</strong> (D.Lgs. 42/2004 parte II, titolo I, capo III, sez. I) label-interventi-beni-culturali = <strong>Interventi su beni culturali</strong> (D.Lgs. 42/2004 parte II, titolo I, capo III, sez. I)
label-interventi-beni-paesaggistici = <strong>Interventi su beni paesaggistici</strong> (D.Lgs. 42/2004 parte II, titolo I, capo III, sez. I) label-interventi-beni-paesaggistici = <strong>Interventi su beni paesaggistici</strong> (D.Lgs. 42/2004 parte II, titolo I, capo III, sez. I)
label-pagSoggettiAdAutorizzazione = Interventi soggetti ad autorizzazione label-pagSoggettiAdAutorizzazione = Interventi soggetti ad autorizzazione
label-pagInterventiRestauroManufatti = Interventi di restauro su manufatti architettonici label-pagInterventiRestauroManufatti = Interventi di restauro su manufatti architettonici
@ -1103,7 +1104,8 @@ label.admingeniocivile.statopratica.viarch1 = VIArch aperto
label.admingeniocivile.statopratica.viarch2 = VIArch chiuso label.admingeniocivile.statopratica.viarch2 = VIArch chiuso
label.admingeniocivile.statopratica.sanzione.doc1 = Sanzione pecuniaria doc. 1 label.admingeniocivile.statopratica.sanzione.doc1 = Sanzione pecuniaria doc. 1
label.admingeniocivile.statopratica.sanzione.doc2 = Sanzione pecuniaria doc. 2 label.admingeniocivile.statopratica.sanzione.doc2 = Sanzione pecuniaria doc. 2
label.admingeniocivile.statopratica.periziasanzione = Decreto sanzione label.admingeniocivile.statopratica.decretosanzione = Decreto sanzione
label.admingeniocivile.statopratica.periziasanzione = Perizia sanzione
label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005 label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005
label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo
@ -1218,7 +1220,8 @@ label.admingeniocivile.avviso.tipoDocumento.avvisomanuale = Avviso generico
label.admingeniocivile.avviso.tipoDocumento.cambioistruttore = Avviso di cambio istruttore label.admingeniocivile.avviso.tipoDocumento.cambioistruttore = Avviso di cambio istruttore
label.admingeniocivile.avviso.tipoDocumento.variazioneSoggetto = Avviso di variazione soggetto label.admingeniocivile.avviso.tipoDocumento.variazioneSoggetto = Avviso di variazione soggetto
label.admingeniocivile.avviso.tipoDocumento.vincoli = Avviso di attestazione vincoli label.admingeniocivile.avviso.tipoDocumento.vincoli = Avviso di attestazione vincoli
label.admingeniocivile.avviso.tipoDocumento.periziasanzione = Decreto sanzione label.admingeniocivile.avviso.tipoDocumento.decretosanzione = Decreto sanzione
label.admingeniocivile.avviso.tipoDocumento.periziasanzione = Perizia sanzione
label.admingeniocivile.avviso.documento.conforme = Conformità/Autorizzazione label.admingeniocivile.avviso.documento.conforme = Conformità/Autorizzazione
label.admingeniocivile.avviso.documento.nonconforme = Conformità negata label.admingeniocivile.avviso.documento.nonconforme = Conformità negata

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/portlet/OrganigrammaPortlet.java

@ -2,10 +2,4 @@ package it.mwg.sismica.bo.portlet;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
public class OrganigrammaPortlet extends MVCPortlet { public class OrganigrammaPortlet extends MVCPortlet {}
public OrganigrammaPortlet() {
// TODO Auto-generated constructor stub
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java

@ -40,8 +40,8 @@ public class SchedulerWorkflow implements MessageListener {
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker); PermissionThreadLocal.setPermissionChecker(permissionChecker);
SismicaUtil.riparaWorkflow(companyId, user.getUserId()); SismicaUtil.riparaWorkflow(companyId, user.getUserId());
SismicaUtil.integrazioniScadute();
} }
SismicaUtil.integrazioniScadute();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {

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

@ -147,7 +147,8 @@ public class SismicaUtil {
esitoLog(esito, "Inizio controllo integrazioni/preavvisi scaduti"); esitoLog(esito, "Inizio controllo integrazioni/preavvisi scaduti");
final int giorniIntegrazione = 40; final int giorniIntegrazione = 40;
final int giorniPreavviso = 20; final int giorniPreavviso = 20;
final int giorniSanzione = 100; final int giorniPeriziaSanzione = 40;
final int giorniDecretoSanzione = 100;
final long taskId = 21642; final long taskId = 21642;
final String taskName = "Esito"; final String taskName = "Esito";
final long nodeId = 21639; final long nodeId = 21639;
@ -158,17 +159,21 @@ public class SismicaUtil {
calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.HOUR, 0);
calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.SECOND, 0);
calendar.add(Calendar.DAY_OF_YEAR, -giorniIntegrazione);
Map<String, Date> date = new HashMap<>(); Map<String, Date> date = new HashMap<>();
calendar.add(Calendar.DAY_OF_YEAR, -giorniIntegrazione);
date.put(StatoPraticaConstants.INTEGRAZIONE, calendar.getTime()); date.put(StatoPraticaConstants.INTEGRAZIONE, calendar.getTime());
calendar.add(Calendar.DAY_OF_YEAR, giorniIntegrazione - giorniPreavviso); calendar.add(Calendar.DAY_OF_YEAR, giorniIntegrazione - giorniPreavviso);
date.put(StatoPraticaConstants.PREAVVISO_CONTRARIO, calendar.getTime()); date.put(StatoPraticaConstants.PREAVVISO_CONTRARIO, calendar.getTime());
calendar.add(Calendar.DAY_OF_YEAR, giorniPreavviso - giorniSanzione); calendar.add(Calendar.DAY_OF_YEAR, giorniPreavviso - giorniPeriziaSanzione);
date.put(StatoPraticaConstants.PERIZIA_SANZIONE, calendar.getTime()); date.put(StatoPraticaConstants.PERIZIA_SANZIONE, calendar.getTime());
calendar.add(Calendar.DAY_OF_YEAR, giorniPeriziaSanzione - giorniDecretoSanzione);
date.put(StatoPraticaConstants.DECRETO_SANZIONE, calendar.getTime());
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery(); DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery();
Disjunction or = RestrictionsFactoryUtil.disjunction(); Disjunction or = RestrictionsFactoryUtil.disjunction();
or.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.INTEGRAZIONE)); or.add(RestrictionsFactoryUtil.ilike("statoPratica", StatoPraticaConstants.INTEGRAZIONE));
or.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.PREAVVISO_CONTRARIO)); or.add(RestrictionsFactoryUtil.ilike("statoPratica", StatoPraticaConstants.PREAVVISO_CONTRARIO));
or.add(RestrictionsFactoryUtil.ilike("statoPratica", StatoPraticaConstants.PERIZIA_SANZIONE));
or.add(RestrictionsFactoryUtil.ilike("statoPratica", StatoPraticaConstants.DECRETO_SANZIONE));
query.add(or); query.add(or);
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
List<IntPratica> pratiche = IntPraticaLocalServiceUtil.dynamicQuery(query); List<IntPratica> pratiche = IntPraticaLocalServiceUtil.dynamicQuery(query);
@ -185,9 +190,6 @@ public class SismicaUtil {
if (Validator.isNull(dtUltimoAvviso) || dtUltimoAvviso.before(avviso.getDtInvio())) { if (Validator.isNull(dtUltimoAvviso) || dtUltimoAvviso.before(avviso.getDtInvio())) {
dtUltimoAvviso = avviso.getDtInvio(); dtUltimoAvviso = avviso.getDtInvio();
} }
if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.PERIZIA_SANZIONE)) {
stato = StatoPraticaConstants.PERIZIA_SANZIONE;
}
} }
} }
if (Validator.isNotNull(dtUltimoAvviso) && dtUltimoAvviso.before(date.get(stato))) { if (Validator.isNotNull(dtUltimoAvviso) && dtUltimoAvviso.before(date.get(stato))) {

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java

@ -233,7 +233,7 @@ public class ControlloPraticaIndexer extends BaseIndexer {
} else { } else {
document.addKeyword(PortosIndexField.PRATICA_APERTA, true); document.addKeyword(PortosIndexField.PRATICA_APERTA, true);
} }
if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { if (intPratica.hasRichiestaIntegrazioneAttiva()) {
document.addKeyword(PortosIndexField.PRATICA_APERTA, true); document.addKeyword(PortosIndexField.PRATICA_APERTA, true);
} }
// Prendo la lista dei soggetti committenti legati a IntPratica // Prendo la lista dei soggetti committenti legati a IntPratica

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java

@ -167,7 +167,7 @@ public class IntPraticaIndexer extends BaseIndexer {
} else { } else {
document.addKeyword(PortosIndexField.PRATICA_APERTA, true); document.addKeyword(PortosIndexField.PRATICA_APERTA, true);
} }
if (intPraticaFromDB.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { if (intPraticaFromDB.hasRichiestaIntegrazioneAttiva()) {
document.addKeyword(PortosIndexField.PRATICA_APERTA, true); document.addKeyword(PortosIndexField.PRATICA_APERTA, true);
} }
document.addKeyword(PortosIndexField.STATUS, intPraticaFromDB.getStatus()); document.addKeyword(PortosIndexField.STATUS, intPraticaFromDB.getStatus());

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java

@ -24,6 +24,7 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import java.util.Locale; import java.util.Locale;
@ -181,4 +182,14 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
return distanzaOrtodromica; return distanzaOrtodromica;
} }
@Override
public boolean hasRichiestaIntegrazioneAttiva() {
String stato = getStatoPratica().toUpperCase();
return StatoPraticaConstants.INTEGRAZIONE.equals(stato)
|| StatoPraticaConstants.PREAVVISO_CONTRARIO.equals(stato)
|| StatoPraticaConstants.DECRETO_SANZIONE.equals(stato)
|| StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato);
}
} }

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

@ -23,6 +23,7 @@ import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean; import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean;
import it.tref.liferay.portos.bo.shared.util.Constants;
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.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil;
@ -211,7 +212,8 @@ public class FascicoloPortlet extends MVCPortlet {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
serviceContext.setCreateDate(new Date()); serviceContext.setCreateDate(new Date());
serviceContext.setModifiedDate(new Date()); serviceContext.setModifiedDate(new Date());
ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, dettPraticaId, noteRichiedente, serviceContext); ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, dettPraticaId, noteRichiedente,
serviceContext);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("error-workflow-sospeso", e); _log.error("error-workflow-sospeso", e);
SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere"); SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere");
@ -285,10 +287,10 @@ public class FascicoloPortlet extends MVCPortlet {
actionResponse.setRenderParameter("tipoIntervento", tipoIntervento); actionResponse.setRenderParameter("tipoIntervento", tipoIntervento);
} }
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("numeroProgetto", numeroProgetto);
//actionResponse.setRenderParameter("praticaAperta", praticaAperta); // actionResponse.setRenderParameter("praticaAperta", praticaAperta);
//actionResponse.setRenderParameter("descIntervento", descInterventoSearch); // actionResponse.setRenderParameter("descIntervento", descInterventoSearch);
//actionResponse.setRenderParameter("protocollo", protocollo); // actionResponse.setRenderParameter("protocollo", protocollo);
//actionResponse.setRenderParameter("tipoPratica", tipoPratica); // actionResponse.setRenderParameter("tipoPratica", tipoPratica);
actionResponse.setRenderParameter("statoPratica", statoPratica); actionResponse.setRenderParameter("statoPratica", statoPratica);
actionResponse.setRenderParameter("committente", committente); actionResponse.setRenderParameter("committente", committente);
if (Validator.isNotNull(provincia)) { if (Validator.isNotNull(provincia)) {
@ -297,7 +299,7 @@ public class FascicoloPortlet extends MVCPortlet {
if (Validator.isNotNull(comune)) { if (Validator.isNotNull(comune)) {
actionResponse.setRenderParameter("comune", comune); actionResponse.setRenderParameter("comune", comune);
} }
//actionResponse.setRenderParameter("indirizzo", indirizzo); // actionResponse.setRenderParameter("indirizzo", indirizzo);
if (Validator.isNull(tecnicoIstruttore)) { if (Validator.isNull(tecnicoIstruttore)) {
actionResponse.setRenderParameter("tecnicoIstruttore", StringPool.BLANK); actionResponse.setRenderParameter("tecnicoIstruttore", StringPool.BLANK);
} else { } else {
@ -365,8 +367,8 @@ public class FascicoloPortlet extends MVCPortlet {
inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(),
fileEntry.getVersion(), false); fileEntry.getVersion(), false);
String s = new String(fileEntry.getTitle().getBytes(StandardCharsets.UTF_8)); String s = new String(fileEntry.getTitle().getBytes(StandardCharsets.UTF_8));
byte[] b = s.getBytes(StandardCharsets.ISO_8859_1); byte[] b = s.getBytes(StandardCharsets.ISO_8859_1);
String name = new String(b, StandardCharsets.ISO_8859_1); String name = new String(b, StandardCharsets.ISO_8859_1);
zipWriter.addEntry(name, inputStream); zipWriter.addEntry(name, inputStream);
} finally { } finally {
StreamUtil.cleanUp(inputStream); StreamUtil.cleanUp(inputStream);
@ -388,16 +390,17 @@ public class FascicoloPortlet extends MVCPortlet {
List<String> province = TerritorioLocalServiceUtil.getActiveProvince(); List<String> province = TerritorioLocalServiceUtil.getActiveProvince();
for (String codiceProvincia : province) { for (String codiceProvincia : province) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), codiceProvincia); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(),
codiceProvincia);
jsonObject.put("provinciaId", provincia.getCodiceProvincia()); jsonObject.put("provinciaId", provincia.getCodiceProvincia());
jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia()); jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia());
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
}else if ("unitaOperative".equals(id)) { } else if ("unitaOperative".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
for(int i=1; i<11; i++) { for (int i = 1; i < 11; i++) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("uoId", i); jsonObject.put("uoId", i);
jsonObject.put("descLong", i); jsonObject.put("descLong", i);
@ -405,7 +408,7 @@ public class FascicoloPortlet extends MVCPortlet {
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
}else if ("comuni".equals(id)) { } else if ("comuni".equals(id)) {
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) { if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) {
@ -429,32 +432,33 @@ public class FascicoloPortlet extends MVCPortlet {
} }
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
}else if ("istruttore".equals(id)) { } else if ("istruttore".equals(id)) {
Integer uoId = ParamUtil.getInteger(resourceRequest, "uoId"); Integer uoId = ParamUtil.getInteger(resourceRequest, "uoId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(uoId) && !uoId.equals("-1")) { if (Validator.isNotNull(uoId) && !uoId.equals("-1")) {
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); .getUserId());
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for(Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {
User istruttore = userGroupRole.getUser(); User istruttore = userGroupRole.getUser();
List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore);
if(unitaOperativeIstruttore.contains(uoId)){ if (unitaOperativeIstruttore.contains(uoId)) {
if (tecniciIstruttori.isEmpty()) { if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
} else { } else {
boolean isPresent = false; boolean isPresent = false;
for(UserGroupRole tecnico : tecniciIstruttori) { for (UserGroupRole tecnico : tecniciIstruttori) {
if (tecnico.getUserId() == userGroupRole.getUserId()) { if (tecnico.getUserId() == userGroupRole.getUserId()) {
isPresent = true; isPresent = true;
break; break;
} }
} }
if(!isPresent){ if (!isPresent) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
} }
} }
@ -482,12 +486,13 @@ public class FascicoloPortlet extends MVCPortlet {
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
}else if ("geologo".equals(id)) { } else if ("geologo".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user
List<User> geologi = new ArrayList<User>(); .getUserId());
List<User> geologi = new ArrayList<User>();
for(Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_geologo"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_geologo");
List<User> geologiUsers = UserLocalServiceUtil.getRoleUsers(role.getRoleId()); List<User> geologiUsers = UserLocalServiceUtil.getRoleUsers(role.getRoleId());
@ -496,13 +501,13 @@ public class FascicoloPortlet extends MVCPortlet {
geologi.add(userGroupRole); geologi.add(userGroupRole);
} else { } else {
boolean isPresent = false; boolean isPresent = false;
for(User geo : geologi) { for (User geo : geologi) {
if (geo.getUserId() == userGroupRole.getUserId()) { if (geo.getUserId() == userGroupRole.getUserId()) {
isPresent = true; isPresent = true;
break; break;
} }
} }
if(!isPresent){ if (!isPresent) {
geologi.add(userGroupRole); geologi.add(userGroupRole);
} }
} }
@ -516,7 +521,6 @@ public class FascicoloPortlet extends MVCPortlet {
jsonArray.put(jsonObject); jsonArray.put(jsonObject);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("exportRicerca".equals(id)) { } else if ("exportRicerca".equals(id)) {
@ -643,8 +647,8 @@ public class FascicoloPortlet extends MVCPortlet {
return sb.toString(); return sb.toString();
} }
public void setBollettinoImposta(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, public void setBollettinoImposta(ActionRequest actionRequest, ActionResponse actionResponse)
SystemException { throws PortalException, SystemException {
try { try {
long idPagamento = ParamUtil.getLong(actionRequest, "idPagamento"); long idPagamento = ParamUtil.getLong(actionRequest, "idPagamento");
@ -654,7 +658,7 @@ public class FascicoloPortlet extends MVCPortlet {
pagamento.setNumeroBollettino(numeroBollettino); pagamento.setNumeroBollettino(numeroBollettino);
PagamentoLocalServiceUtil.updatePagamento(pagamento); PagamentoLocalServiceUtil.updatePagamento(pagamento);
} }
//PortalUtil.copyRequestParameters(actionRequest, actionResponse); // PortalUtil.copyRequestParameters(actionRequest, actionResponse);
String redirectURL = ParamUtil.getString(actionRequest, "redirect"); String redirectURL = ParamUtil.getString(actionRequest, "redirect");
if (Validator.isNotNull(redirectURL)) { if (Validator.isNotNull(redirectURL)) {
actionResponse.sendRedirect(redirectURL); actionResponse.sendRedirect(redirectURL);

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

@ -17,6 +17,7 @@ import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean; import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
@ -352,7 +353,7 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet {
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for (Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {

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

@ -109,7 +109,6 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
String provincia = ParamUtil.getString(actionRequest, "provincia"); String provincia = ParamUtil.getString(actionRequest, "provincia");
String geologi = ParamUtil.getString(actionRequest, "geologi"); String geologi = ParamUtil.getString(actionRequest, "geologi");
String parereGeologo = ParamUtil.getString(actionRequest, "parereGeologo"); String parereGeologo = ParamUtil.getString(actionRequest, "parereGeologo");
actionResponse.setRenderParameter("tabs1", tabs1); actionResponse.setRenderParameter("tabs1", tabs1);
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("numeroProgetto", numeroProgetto);
actionResponse.setRenderParameter("protocollo", protocollo); actionResponse.setRenderParameter("protocollo", protocollo);
@ -191,13 +190,16 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
// TODO listare meglio // TODO listare meglio
switch (lastWorkflowTask.getName()) { switch (lastWorkflowTask.getName()) {
case "Assegnazione": case "Assegnazione":
role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(), "portos_assegnatore"); role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(),
Constants.ROLE_NAME_ASSEGNATORE);
break; break;
case "Esito": case "Esito":
role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(), "portos_istruttore"); role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(),
Constants.ROLE_NAME_ISTRUTTORE);
break; break;
case "Approvazione": case "Approvazione":
role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(), "portos_approvatore"); role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(),
Constants.ROLE_NAME_APPROVATORE);
break; break;
} }
WorkflowTaskManagerUtil.assignWorkflowTaskToRole(controlloPratica.getCompanyId(), WorkflowTaskManagerUtil.assignWorkflowTaskToRole(controlloPratica.getCompanyId(),
@ -385,7 +387,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for (Organization org : organizationList) { for (Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId()); org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {

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

@ -377,6 +377,9 @@ public class SchedulerInvioDocumento implements MessageListener {
long companyId = controlloPratica.getCompanyId(); long companyId = controlloPratica.getCompanyId();
long userId = WorkflowUtil.getWorkflowInstanceCreateUserId(controlloPratica); long userId = WorkflowUtil.getWorkflowInstanceCreateUserId(controlloPratica);
String signalName = WorkflowUtil.getSignalByTipoDocumento(avviso.getTipoDocumento()); String signalName = WorkflowUtil.getSignalByTipoDocumento(avviso.getTipoDocumento());
if (signalName == null) {
_log.info("Segnale non trovato per tipoDocumento " + avviso.getTipoDocumento());
}
try { try {
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId,
workflowInstanceId); workflowInstanceId);

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

@ -358,6 +358,10 @@ public class IntPraticaLocalServiceClpInvoker {
_methodName224 = "getOrganizationByIntPraticaId"; _methodName224 = "getOrganizationByIntPraticaId";
_methodParameterTypes224 = new String[] { "long" }; _methodParameterTypes224 = new String[] { "long" };
_methodName225 = "hasRichiestaIntegrazioneAttiva";
_methodParameterTypes225 = new String[] { "long" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -805,6 +809,11 @@ public class IntPraticaLocalServiceClpInvoker {
return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue());
} }
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue());
}
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@ -948,4 +957,6 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes223; private String[] _methodParameterTypes223;
private String _methodName224; private String _methodName224;
private String[] _methodParameterTypes224; private String[] _methodParameterTypes224;
private String _methodName225;
private String[] _methodParameterTypes225;
} }

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

@ -124,7 +124,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
long controlloPraticaId) throws SystemException, PortalException { long controlloPraticaId) throws SystemException, PortalException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
if (base64File.isEmpty() || !base64File.startsWith("data:application/pdf;base64,")) { if (base64File.isEmpty()) {
String statoPraticaCode = PraticaUtil.getStatoPraticaCode(stato, intPratica); String statoPraticaCode = PraticaUtil.getStatoPraticaCode(stato, intPratica);
String propertiesTemplate = AvvisoUtil.getFileTemplateProp(statoPraticaCode, intPratica.getTipoProcedura()); String propertiesTemplate = AvvisoUtil.getFileTemplateProp(statoPraticaCode, intPratica.getTipoProcedura());
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
@ -135,26 +135,36 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
classPk, className, userCodiceFiscalePrimaFirma, StringPool.BLANK, controlloPraticaId, classPk, className, userCodiceFiscalePrimaFirma, StringPool.BLANK, controlloPraticaId,
serviceContext); serviceContext);
} else { } else {
byte[] bytes = Base64.decode(base64File.substring(28)); long fileEntryId = 0;
long attachmentFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), if (base64File.startsWith("fileEntryId=")) {
ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); try {
Folder attachmentFolder = dlAppLocalService.getFolder(attachmentFolderId); fileEntryId = Long.parseLong(base64File.substring(12));
long repositoryId = attachmentFolder.getRepositoryId(); } catch (NumberFormatException e) {}
String folderName = PraticaUtil.getFolderName(classPk); }
Folder folder = null; if (fileEntryId == 0) {
try { byte[] bytes = Base64.decode(base64File.substring(28));
folder = dlAppLocalService.getFolder(repositoryId, attachmentFolder.getFolderId(), folderName); long attachmentFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
} catch (NoSuchFolderException e) { ConfigurazioneConstants.ATTACHMENT_FOLDER_ID);
folder = dlAppLocalService.addFolder(serviceContext.getUserId(), attachmentFolder.getRepositoryId(), Folder attachmentFolder = dlAppLocalService.getFolder(attachmentFolderId);
attachmentFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); long repositoryId = attachmentFolder.getRepositoryId();
String folderName = PraticaUtil.getFolderName(classPk);
Folder folder = null;
try {
folder = dlAppLocalService.getFolder(repositoryId, attachmentFolder.getFolderId(), folderName);
} catch (NoSuchFolderException e) {
folder = dlAppLocalService.addFolder(serviceContext.getUserId(),
attachmentFolder.getRepositoryId(), attachmentFolder.getFolderId(), folderName,
StringPool.BLANK, serviceContext);
}
String targetFileName = getFileNameAvviso(classPk, StatoPraticaConstants.SANZIONE_DOC1, null, "F")
+ ".pdf";
FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), repositoryId,
folder.getFolderId(), StringPool.BLANK, ContentTypes.APPLICATION_PDF, targetFileName,
targetFileName, StringPool.BLANK, bytes, serviceContext);
fileEntryId = fileEntry.getFileEntryId();
} }
String targetFileName = getFileNameAvviso(classPk, StatoPraticaConstants.SANZIONE_DOC1, null, "F") + ".pdf";
FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), repositoryId,
folder.getFolderId(), StringPool.BLANK, ContentTypes.APPLICATION_PDF, targetFileName,
targetFileName, StringPool.BLANK, bytes, serviceContext);
return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, 0L, classPk, className, return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, 0L, classPk, className,
userCodiceFiscalePrimaFirma, fileEntry.getFileEntryId(), 0L, StringPool.BLANK, controlloPraticaId, userCodiceFiscalePrimaFirma, fileEntryId, 0L, StringPool.BLANK, controlloPraticaId, serviceContext);
serviceContext);
} }
} }
@ -839,6 +849,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_AUTORIZZATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_AUTORIZZATA));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.INTEGRAZIONE)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.INTEGRAZIONE));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.PERIZIA_SANZIONE));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.DECRETO_SANZIONE));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));
@ -1104,7 +1116,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in(
new String[] { StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.PREAVVISO_CONTRARIO })); new String[] { StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.PREAVVISO_CONTRARIO,
StatoPraticaConstants.PERIZIA_SANZIONE, StatoPraticaConstants.DECRETO_SANZIONE }));
dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L));
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));

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

@ -35,7 +35,6 @@ import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.TreeMap; import java.util.TreeMap;
@ -55,7 +54,6 @@ import com.liferay.portal.kernel.json.JSONArray;
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.json.JSONSerializer;
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;
import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.Indexable;
@ -334,23 +332,23 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
intPraticaLocalService.updateIntPratica(intPratica); intPraticaLocalService.updateIntPratica(intPratica);
} }
// I valori di ritorno possibili sono: approvato,non_approvato,annullato,richiesta_integrazione // I valori di ritorno possibili sono: approvato, non_approvato, annullato, richiesta_integrazione
@Override @Override
public String valutazioneEsitoFinaleUpdateStatoPratica(long controlloPraticaId, public String valutazioneEsitoFinaleUpdateStatoPratica(long controlloPraticaId,
Map<String, Serializable> workflowContext) throws PortalException, SystemException { Map<String, Serializable> workflowContext) throws PortalException, SystemException {
String esito = getEsitoFinale(controlloPraticaId, workflowContext); String esito = getEsitoFinale(controlloPraticaId, workflowContext);
String ramoWorkflow = StringPool.BLANK; String ramoWorkflow = StringPool.BLANK;
ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); ControlloPratica controllo = getControlloPratica(controlloPraticaId);
Avviso avviso = avvisoLocalService Avviso avviso = avvisoLocalService.fetchLastAvvisoByIntPraticaPerStatoFinale(controllo.getIntPraticaId());
.fetchLastAvvisoByIntPraticaPerStatoFinale(controlloPratica.getIntPraticaId()); _log.info("controlloPratica = " + controlloPraticaId + ", esito = " + esito);
if (avviso != null && avviso.getRifiutato()) { if (avviso != null && avviso.getRifiutato()) {
ramoWorkflow = "rifiuto_firma"; ramoWorkflow = "rifiuto_firma";
} else { } else {
boolean updateIntPratica = true; boolean updateIntPratica = true;
switch (esito) { switch (esito) {
case StatoPraticaConstants.CONFORME:
case StatoPraticaConstants.AUTORIZZATA: case StatoPraticaConstants.AUTORIZZATA:
case StatoPraticaConstants.CONFORME:
ramoWorkflow = "approvato"; ramoWorkflow = "approvato";
break; break;
case StatoPraticaConstants.NON_CONFORME: case StatoPraticaConstants.NON_CONFORME:
@ -360,18 +358,24 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
break; break;
case StatoPraticaConstants.INTEGRAZIONE: case StatoPraticaConstants.INTEGRAZIONE:
case StatoPraticaConstants.PREAVVISO_CONTRARIO: case StatoPraticaConstants.PREAVVISO_CONTRARIO:
case StatoPraticaConstants.DECRETO_SANZIONE:
case StatoPraticaConstants.PERIZIA_SANZIONE:
ramoWorkflow = "richiesta_integrazione"; ramoWorkflow = "richiesta_integrazione";
break; break;
case StatoPraticaConstants.ANNULLATA: case StatoPraticaConstants.ANNULLATA:
ramoWorkflow = "annullato"; ramoWorkflow = "annullato";
updateIntPratica = false; // Annulla solo il workflow updateIntPratica = false; // Annulla solo il workflow
break; break;
default:
throw new SystemException("Nessun ramo workflow per esito = " + esito);
} }
if (updateIntPratica) { if (updateIntPratica) {
intPraticaLocalService.updateStatoPratica(controlloPratica.getIntPraticaId(), esito); _log.info("intPraticaLocalService.updateStatoPratica(" + controllo.getIntPraticaId() + ", '" + esito
+ "')");
intPraticaLocalService.updateStatoPratica(controllo.getIntPraticaId(), esito);
} }
} }
IndexerRegistryUtil.getIndexer(ControlloPratica.class).reindex(controlloPratica); IndexerRegistryUtil.getIndexer(ControlloPratica.class).reindex(controllo);
return ramoWorkflow; return ramoWorkflow;
} }
@ -392,13 +396,16 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override @Override
public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext) public void
throws PortalException, SystemException { aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException {
ControlloPratica controllo = getControlloPratica(controlloPraticaId); ControlloPratica controllo = getControlloPratica(controlloPraticaId);
IntPratica pratica = intPraticaLocalService.getIntPratica(controllo.getIntPraticaId()); IntPratica pratica = intPraticaLocalService.getIntPratica(controllo.getIntPraticaId());
String stato = pratica.getStatoPratica(); String stato = pratica.getStatoPratica();
if (!stato.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)) { if (!stato.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)
&& !stato.equalsIgnoreCase(StatoPraticaConstants.PERIZIA_SANZIONE)
&& !stato.equalsIgnoreCase(StatoPraticaConstants.DECRETO_SANZIONE)) {
stato = StatoPraticaConstants.INTEGRAZIONE; stato = StatoPraticaConstants.INTEGRAZIONE;
} }
pratica.setStatoPratica(stato); pratica.setStatoPratica(stato);
@ -496,9 +503,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
if (jsonSanatoria == null) { if (jsonSanatoria == null) {
JSONArray esito = JSONFactoryUtil.createJSONArray(); JSONArray esito = JSONFactoryUtil.createJSONArray();
esito.put(etichettaEsito(StatoPraticaConstants.CONFORME)); esito.put(etichettaEsito(StatoPraticaConstants.CONFORME));
esito.put(etichettaEsito( esito.put(etichettaEsito(StatoPraticaConstants.PERIZIA_SANZIONE, true));
StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.PERIZIA_SANZIONE), esito.put(etichettaEsito(StatoPraticaConstants.DECRETO_SANZIONE, true));
StatoPraticaConstants.INTEGRAZIONE, true));
esito.put(etichettaEsito(StatoPraticaConstants.NON_CONFORME)); esito.put(etichettaEsito(StatoPraticaConstants.NON_CONFORME));
esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE)); esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE));
esito.put(etichettaEsito(StatoPraticaConstants.PREAVVISO_CONTRARIO)); esito.put(etichettaEsito(StatoPraticaConstants.PREAVVISO_CONTRARIO));
@ -534,10 +540,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
if (jsonVincoli == null) { if (jsonVincoli == null) {
JSONArray esito = JSONFactoryUtil.createJSONArray(); JSONArray esito = JSONFactoryUtil.createJSONArray();
esito.put(etichettaEsito("Attestazione", StatoPraticaConstants.CONFORME)); esito.put(etichettaEsito("Attestazione", StatoPraticaConstants.CONFORME));
esito.put(etichettaEsito(StatoPraticaConstants.NON_CONFORME));
esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE)); esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE));
esito.put(etichettaEsito(StatoPraticaConstants.PREAVVISO_CONTRARIO));
esito.put(etichettaEsito(StatoPraticaConstants.NO_PARERE));
JSONObject json = JSONFactoryUtil.createJSONObject(); JSONObject json = JSONFactoryUtil.createJSONObject();
json.put("esito", esito); json.put("esito", esito);
jsonVincoli = json.toString(); jsonVincoli = json.toString();
@ -555,9 +558,9 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return etichettaEsito(label, value, false, false); return etichettaEsito(label, value, false, false);
} }
private static JSONObject etichettaEsito(String label, String value, boolean upload) { private static JSONObject etichettaEsito(String value, boolean upload) {
return etichettaEsito(label, value, upload, false); return etichettaEsito(StatoPraticaConstants.getEsitoAutorizzazione(value), value, upload, false);
} }
private static JSONObject etichettaEsito(String label, String value, boolean upload, boolean isDefault) { private static JSONObject etichettaEsito(String label, String value, boolean upload, boolean isDefault) {
@ -625,7 +628,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
public String getTipoEsito(long controlloPraticaId) throws SystemException, PortalException { public String getTipoEsito(long controlloPraticaId) throws SystemException, PortalException {
String tipoEsito = StringPool.BLANK; String tipoEsito = StringPool.BLANK;
ControlloPratica controlloPratica = fetchControlloPratica(controlloPraticaId);
ClassLoader classLoaderKaleo = (ClassLoader) PortletBeanLocatorUtil.locate( ClassLoader classLoaderKaleo = (ClassLoader) PortletBeanLocatorUtil.locate(
com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader");
DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo); DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo);
@ -650,13 +652,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
FormLog formLog = listaKaleoLog.get(0); FormLog formLog = listaKaleoLog.get(0);
JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters());
if (json.has("esito")) { if (json.has("esito")) {
if (json.getBoolean("base64")) { tipoEsito = PraticaUtil.getStatoPratica(json.getString("esito"),
tipoEsito = LanguageUtil.get(Locale.ITALIAN, "stato-pratica-" fetchControlloPratica(controlloPraticaId).getIntPraticaId());
+ StatoPraticaConstants.PERIZIA_SANZIONE);
} else {
tipoEsito = PraticaUtil.getStatoPratica(json.getString("esito"),
controlloPratica.getIntPraticaId());
}
} }
} }
} }
@ -693,7 +690,9 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
_log.debug("Avviso " + avviso.getTipoDocumento() + StringPool.SPACE + avviso.getDtAvviso() _log.debug("Avviso " + avviso.getTipoDocumento() + StringPool.SPACE + avviso.getDtAvviso()
+ StringPool.SPACE + avviso.getCreateDate()); + StringPool.SPACE + avviso.getCreateDate());
if (tipo.equals(StatoPraticaConstants.INTEGRAZIONE) if (tipo.equals(StatoPraticaConstants.INTEGRAZIONE)
|| tipo.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)) { || tipo.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| tipo.equals(StatoPraticaConstants.PERIZIA_SANZIONE)
|| tipo.equals(StatoPraticaConstants.DECRETO_SANZIONE)) {
start = avviso.getCreateDate(); start = avviso.getCreateDate();
end = null; end = null;
if (Validator.isNotNull(chiusura)) { if (Validator.isNotNull(chiusura)) {

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

@ -459,12 +459,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
IntPratica intPratica = getIntPratica(intPraticaId); IntPratica intPratica = getIntPratica(intPraticaId);
intPratica.setModifiedDate(new Date()); intPratica.setModifiedDate(new Date());
intPratica.setStatoPratica(statoPratica); intPratica.setStatoPratica(statoPratica);
return updateIntPratica(intPratica); return updateIntPratica(intPratica);
} }
@Override @Override
public List<IntPratica> findByC_UserId(long companyId, long userId, int start, int end) throws SystemException { public List<IntPratica> findByC_UserId(long companyId, long userId, int start, int end) throws SystemException {
return intPraticaPersistence.findByC_UserId(companyId, userId, start, end); return intPraticaPersistence.findByC_UserId(companyId, userId, start, end);
} }
@ -484,7 +484,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica.setStatus(status); intPratica.setStatus(status);
if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.AUTORIZZATA); intPratica.setStatoPratica(StatoPraticaConstants.AUTORIZZATA);
} else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { } else if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.CONFORME); intPratica.setStatoPratica(StatoPraticaConstants.CONFORME);
} else { } else {
// SANATORIA (da capire) // SANATORIA (da capire)
@ -563,9 +563,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
if (ids.isEmpty()) { if (ids.isEmpty()) {
return 0; return 0;
} }
DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids); DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids);
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
} }
@ -574,19 +572,16 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_EXPIRED)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_EXPIRED));
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_IN_TRASH)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_IN_TRASH));
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED));
disjunction.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.ANNULLATA)); disjunction.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
Disjunction disjunctionSoggetti = RestrictionsFactoryUtil.disjunction(); Disjunction disjunctionSoggetti = RestrictionsFactoryUtil.disjunction();
disjunctionSoggetti.add(RestrictionsFactoryUtil.eq("userId", soggettoId)); disjunctionSoggetti.add(RestrictionsFactoryUtil.eq("userId", soggettoId));
disjunctionSoggetti.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); disjunctionSoggetti.add(RestrictionsFactoryUtil.in("intPraticaId", ids));
dynamicQuery.add(disjunctionSoggetti); dynamicQuery.add(disjunctionSoggetti);
return dynamicQuery; return dynamicQuery;
} }
@ -620,13 +615,10 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids));
return dynamicQuery; return dynamicQuery;
} }
@ -705,7 +697,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica")); dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica"));
dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA));
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
@Override @Override
@ -991,46 +982,34 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
+ (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : StringPool.BLANK)); + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : StringPool.BLANK));
parameters.put("ag", dettPratica.getAg()); parameters.put("ag", dettPratica.getAg());
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
parameters.put("normDpr01", parameters.put("normDpr01", dettPratica.getNormDpr01Dep()
dettPratica.getNormDpr01Dep() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("normDpr02", dettPratica.getNormDpr01Dep()
parameters.put("normDpr02", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getNormDpr01Dep() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
parameters.put("normDpr01", parameters.put("normDpr01", dettPratica.getNormDpr01Aut()
dettPratica.getNormDpr01Aut() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("normDpr02", dettPratica.getNormDpr01Aut()
parameters.put("normDpr02", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getNormDpr01Aut() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
} }
parameters.put("normDm2018", parameters.put("normDm2018", dettPratica.getNormDm2018()
dettPratica.getNormDm2018() ? "<i class='<i class='fa fa-check-circle-o txt-green'/>'/>" ? "<i class='<i class='fa fa-check-circle-o txt-green'/>'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>");
parameters.put("normAnr", dettPratica.getNormAnr() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("normAnr", dettPratica.getNormAnr() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("normLavoriInProprio", parameters.put("normLavoriInProprio", dettPratica.getNormLavoriInProprio()
dettPratica.getNormLavoriInProprio() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("lavoriPubblici", dettPratica.getLavoriPubblici()
parameters.put("lavoriPubblici", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getLavoriPubblici() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("normEsenteBollo", dettPratica.getNormEsenteBollo()
: "<i class='fa fa-check-circle-o'/>"); ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
parameters.put("normEsenteBollo", parameters.put("normEsenteSpese", dettPratica.getNormEsenteSpese()
dettPratica.getNormEsenteBollo() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("collaudoStatico", dettPratica.getCollaudoStatico()
parameters.put("normEsenteSpese", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getNormEsenteSpese() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("normArt3com3", dettPratica.getNormEsenteSpese()
: "<i class='fa fa-check-circle-o'/>"); ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
parameters.put("collaudoStatico", parameters.put("normArt3com4", dettPratica.getNormEsenteSpese()
dettPratica.getCollaudoStatico() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>");
parameters.put("normArt3com3",
dettPratica.getNormEsenteSpese() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
parameters.put("normArt3com4",
dettPratica.getNormEsenteSpese() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
parameters.put("descLongIntervento", dettPratica.getDescLongIntervento()); parameters.put("descLongIntervento", dettPratica.getDescLongIntervento());
parameters.put("provincia", provincia.getProvincia()); parameters.put("provincia", provincia.getProvincia());
parameters.put("comune", comune.getDenominazione()); parameters.put("comune", comune.getDenominazione());
@ -1050,46 +1029,37 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-" + title) + StringPool.COLON; label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-" + title) + StringPool.COLON;
} }
parameters.put("destinazione", label + dettPratica.getDestinazione()); parameters.put("destinazione", label + dettPratica.getDestinazione());
parameters.put("nuovaCostruzione", parameters.put("nuovaCostruzione", dettPratica.getTcNuovaCostruzione()
dettPratica.getTcNuovaCostruzione() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>");
boolean interventiEsistenti = dettPratica.getTcAdeguamentoSismico() boolean interventiEsistenti = dettPratica.getTcAdeguamentoSismico()
|| dettPratica.getTcMiglioramentoSismico() || dettPratica.getTcRiparazioneInterventoLocale(); || dettPratica.getTcMiglioramentoSismico() || dettPratica.getTcRiparazioneInterventoLocale();
parameters.put("interventiEsistenti", interventiEsistenti ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("interventiEsistenti", interventiEsistenti ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("adeguamentoSismico", parameters.put("adeguamentoSismico", dettPratica.getTcAdeguamentoSismico()
dettPratica.getTcAdeguamentoSismico() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("miglioramentoSismico", dettPratica.getTcMiglioramentoSismico()
parameters.put("miglioramentoSismico", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getTcMiglioramentoSismico() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("riparazioneLocale", dettPratica.getTcRiparazioneInterventoLocale()
: "<i class='fa fa-check-circle-o'/>"); ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
parameters.put("riparazioneLocale",
dettPratica.getTcRiparazioneInterventoLocale() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
parameters.put("inCa", dettPratica.getTcInCA() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("inCa", dettPratica.getTcInCA() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("inOpera", dettPratica.getTcInOpera() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("inOpera", dettPratica.getTcInOpera() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("prefabbricato", parameters.put("prefabbricato", dettPratica.getTcPrefabbricato()
dettPratica.getTcPrefabbricato() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>");
parameters.put("inMuratura", dettPratica.getTcInMuratura() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("inMuratura", dettPratica.getTcInMuratura() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("inMuraturaOrdinaria", parameters.put("inMuraturaOrdinaria", dettPratica.getTcInMuraturaOrdinaria()
dettPratica.getTcInMuraturaOrdinaria() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>"); parameters.put("inMuraturaArmata", dettPratica.getTcInMuraturaArmata()
parameters.put("inMuraturaArmata", ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
dettPratica.getTcInMuraturaArmata() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("inMuraturaMista", dettPratica.getTcInMuraturaMista()
: "<i class='fa fa-check-circle-o'/>"); ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
parameters.put("inMuraturaMista",
dettPratica.getTcInMuraturaMista() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>");
parameters.put("inLegno", dettPratica.getTcInLegno() ? "<i class='fa fa-check-circle-o txt-green'/>" parameters.put("inLegno", dettPratica.getTcInLegno() ? "<i class='fa fa-check-circle-o txt-green'/>"
: "<i class='fa fa-check-circle-o'/>"); : "<i class='fa fa-check-circle-o'/>");
parameters.put("tcAltro", dettPratica.getTcAltroDescrizione()); parameters.put("tcAltro", dettPratica.getTcAltroDescrizione());
parameters.put("tcDispositivi", parameters.put("tcDispositivi", dettPratica.getTcConDispositivi()
dettPratica.getTcConDispositivi() ? "<i class='fa fa-check-circle-o txt-green'/>" ? "<i class='fa fa-check-circle-o txt-green'/>" : "<i class='fa fa-check-circle-o'/>");
: "<i class='fa fa-check-circle-o'/>");
parameters.put("dePiani", LanguageUtil.get(Locale.ITALIAN, "de-piani-" + dettPratica.getDePiani())); parameters.put("dePiani", LanguageUtil.get(Locale.ITALIAN, "de-piani-" + dettPratica.getDePiani()));
parameters.put("deAltezza", LanguageUtil.get(Locale.ITALIAN, "de-altezza-" + dettPratica.getDeAltezza())); parameters.put("deAltezza", LanguageUtil.get(Locale.ITALIAN, "de-altezza-" + dettPratica.getDeAltezza()));
parameters.put("deInterrati", parameters.put("deInterrati",
@ -1191,4 +1161,15 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId()); Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId());
return organization; return organization;
} }
public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId) {
IntPratica intPratica;
try {
intPratica = fetchIntPratica(intPraticaId);
} catch (SystemException | PortalException e) {
return false;
}
return intPratica.hasRichiestaIntegrazioneAttiva();
}
} }

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java

@ -19,8 +19,7 @@ import com.liferay.portal.service.UserLocalServiceUtil;
public class GestioneFirmeUtil { public class GestioneFirmeUtil {
@SuppressWarnings("serial") private static final List<String> TIPO_DOCUMENTO_FIRMA_BASE = Arrays.<String> asList(
private static List<String> tipoDocumentoFirmaBase = Arrays.<String> asList(
StatoPraticaConstants.INVIO_AVVISO_MANUALE, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.INVIO_AVVISO_MANUALE, StatoPraticaConstants.INTEGRAZIONE,
StatoPraticaConstants.PREAVVISO_CONTRARIO); StatoPraticaConstants.PREAVVISO_CONTRARIO);
@ -41,7 +40,7 @@ public class GestioneFirmeUtil {
Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId); Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId);
boolean firma = hasFirmaPermision(userId, groupId); boolean firma = hasFirmaPermision(userId, groupId);
boolean firmaDirigente = hasFirmaPermisionDirigente(userId, groupId); boolean firmaDirigente = hasFirmaPermisionDirigente(userId, groupId);
return firmaDirigente || (firma && tipoDocumentoFirmaBase.contains(avviso.getTipoDocumento())); return firmaDirigente || (firma && TIPO_DOCUMENTO_FIRMA_BASE.contains(avviso.getTipoDocumento()));
} }
public static String getCodiceFiscaleFirma(long companyId, long groupId, String tipoDocumento) public static String getCodiceFiscaleFirma(long companyId, long groupId, String tipoDocumento)
@ -49,7 +48,7 @@ public class GestioneFirmeUtil {
Role role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE); Role role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE);
String codiceFiscaleFirma = StringPool.BLANK; String codiceFiscaleFirma = StringPool.BLANK;
if (tipoDocumentoFirmaBase.contains(tipoDocumento)) { if (TIPO_DOCUMENTO_FIRMA_BASE.contains(tipoDocumento)) {
role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_PO); role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_PO);
} else { } else {
role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE); role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE);

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=3361 build.number=3373
build.date=1631701936996 build.date=1632402210917
build.auto.upgrade=true build.auto.upgrade=true
## ##

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp

@ -170,6 +170,15 @@ List<ParereGeologo> pareri = ParereGeologoLocalServiceUtil.findByIntPraticaId(in
out.print(LanguageUtil.get(pageContext, key)); out.print(LanguageUtil.get(pageContext, key));
out.print(":</strong> "); out.print(":</strong> ");
if (base64 && key.equalsIgnoreCase("testo_del_documento")) { if (base64 && key.equalsIgnoreCase("testo_del_documento")) {
FileEntry fileEntry = null;
if (value.startsWith("fileEntryId=")) {
try {
long fileEntryId = Long.parseLong(value.substring(12));
fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId);
value = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay,
StringPool.BLANK, false, true);
} catch (Exception e) {}
}
out.print("<script>window.mostraDoc = function() { var w = window.open('');"); out.print("<script>window.mostraDoc = function() { var w = window.open('');");
out.print("w.document.write(\"<iframe width='100%' height='100%' src='"); out.print("w.document.write(\"<iframe width='100%' height='100%' src='");
out.print(value); out.print(value);

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp

@ -163,8 +163,8 @@ String keywords = StringPool.BLANK;
Le pratiche sottoposte a parere sono quelle che hanno statoPratica == 'SP', non quelle in Le pratiche sottoposte a parere sono quelle che hanno statoPratica == 'SP', non quelle in
status di workflow = pending status di workflow = pending
--> -->
<c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants <c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(
.SOTTOPOSTA_A_PARERE) %>"> StatoPraticaConstants.SOTTOPOSTA_A_PARERE) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" <span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info"
title="Sottoposta a parere" style="padding:5px;margin-right:5px"> title="Sottoposta a parere" style="padding:5px;margin-right:5px">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %> <%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>

105
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/task_completati.jsp

@ -3,12 +3,10 @@
<%@page import="com.liferay.portal.kernel.search.Hits"%> <%@page import="com.liferay.portal.kernel.search.Hits"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%> <%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@ include file="/html/gestioneattivita/init.jsp" %> <%@include file="/html/gestioneattivita/init.jsp"%>
<% <%
boolean doSearch = true; boolean doSearch = true;
PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
//GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER //GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK); String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK);
String protocollo = ParamUtil.getString(request, "protocollo", StringPool.BLANK); String protocollo = ParamUtil.getString(request, "protocollo", StringPool.BLANK);
@ -16,7 +14,6 @@ String tipoPratica = ParamUtil.getString(request, "tipoPratica", StringPool.BLAN
String statoPratica = ParamUtil.getString(request, "statoPratica", StringPool.BLANK); String statoPratica = ParamUtil.getString(request, "statoPratica", StringPool.BLANK);
String committente = ParamUtil.getString(request, "committente", StringPool.BLANK); String committente = ParamUtil.getString(request, "committente", StringPool.BLANK);
String soggettiInterconnessi = ParamUtil.getString(request, "soggettiInterconnessi", StringPool.BLANK); String soggettiInterconnessi = ParamUtil.getString(request, "soggettiInterconnessi", StringPool.BLANK);
//ADT ADT BUG BO ID = 8
String istruttore = ParamUtil.getString(request, "istruttore", StringPool.BLANK); String istruttore = ParamUtil.getString(request, "istruttore", StringPool.BLANK);
String ufficio = ParamUtil.getString(request, "ufficio", StringPool.BLANK); String ufficio = ParamUtil.getString(request, "ufficio", StringPool.BLANK);
String ordinaPer = ParamUtil.getString(request, "ordinaPer", StringPool.BLANK); String ordinaPer = ParamUtil.getString(request, "ordinaPer", StringPool.BLANK);
@ -24,14 +21,12 @@ String ordinaTipo = ParamUtil.getString(request, "ordinaTipo", StringPool.BLANK)
String comuneSearch = ParamUtil.getString(request, "comune", StringPool.BLANK); String comuneSearch = ParamUtil.getString(request, "comune", StringPool.BLANK);
String tipoAttivita = ParamUtil.getString(request, "tipoAttivita", StringPool.BLANK); String tipoAttivita = ParamUtil.getString(request, "tipoAttivita", StringPool.BLANK);
String tipoProcedura = ParamUtil.getString(request, "tipoProcedura", StringPool.BLANK); String tipoProcedura = ParamUtil.getString(request, "tipoProcedura", StringPool.BLANK);
iteratorURL.setParameter("numeroProgetto", numeroProgetto); iteratorURL.setParameter("numeroProgetto", numeroProgetto);
iteratorURL.setParameter("protocollo", protocollo); iteratorURL.setParameter("protocollo", protocollo);
iteratorURL.setParameter("tipoPratica", tipoPratica); iteratorURL.setParameter("tipoPratica", tipoPratica);
iteratorURL.setParameter("statoPratica", statoPratica); iteratorURL.setParameter("statoPratica", statoPratica);
iteratorURL.setParameter("committente", committente); iteratorURL.setParameter("committente", committente);
iteratorURL.setParameter("soggettiInterconnessi", soggettiInterconnessi); iteratorURL.setParameter("soggettiInterconnessi", soggettiInterconnessi);
//ADT ADT BUG BO ID = 8
iteratorURL.setParameter("istruttore", istruttore); iteratorURL.setParameter("istruttore", istruttore);
iteratorURL.setParameter("dataRichiestaInizio", dataRichiestaInizio); iteratorURL.setParameter("dataRichiestaInizio", dataRichiestaInizio);
iteratorURL.setParameter("dataRichiestaFine", dataRichiestaFine); iteratorURL.setParameter("dataRichiestaFine", dataRichiestaFine);
@ -41,35 +36,29 @@ iteratorURL.setParameter("tipoAttivita", tipoAttivita);
iteratorURL.setParameter("tipoProcedura", tipoProcedura); iteratorURL.setParameter("tipoProcedura", tipoProcedura);
iteratorURL.setParameter("ordinaPer", ordinaPer); iteratorURL.setParameter("ordinaPer", ordinaPer);
iteratorURL.setParameter("ordinaTipo", ordinaTipo); iteratorURL.setParameter("ordinaTipo", ordinaTipo);
iteratorURL.setParameter("tabs1", tabs1); iteratorURL.setParameter("tabs1", tabs1);
String orderByType = ParamUtil.getString(request, "orderByType", "asc"); String orderByType = ParamUtil.getString(request, "orderByType", "asc");
String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); String orderByCol = ParamUtil.getString(request, "orderByCol", "nome");
String keywords = StringPool.BLANK; String keywords = StringPool.BLANK;
request.setAttribute("tabs1", "Tab_TaskCompletati"); request.setAttribute("tabs1", "Tab_TaskCompletati");
%> %>
<!-- Funzione per esportare la ricerca --> <!-- Funzione per esportare la ricerca -->
<liferay-portlet:resourceURL id="exportRicercaAttivitaConcluse" var="exportRicercaAttivitaConcluseURL"> <liferay-portlet:resourceURL id="exportRicercaAttivitaConcluse" var="exportRicercaAttivitaConcluseURL">
<liferay-portlet:param name="dataRichiestaInizio" value="<%=dataRichiestaInizio %>"/> <liferay-portlet:param name="dataRichiestaInizio" value="<%= dataRichiestaInizio %>"/>
<liferay-portlet:param name="dataRichiestaFine" value="<%=dataRichiestaFine %>"/> <liferay-portlet:param name="dataRichiestaFine" value="<%= dataRichiestaFine %>"/>
<liferay-portlet:param name="numeroProgetto" value="<%=numeroProgetto %>"/> <liferay-portlet:param name="numeroProgetto" value="<%= numeroProgetto %>"/>
<liferay-portlet:param name="protocollo" value="<%=protocollo %>"/> <liferay-portlet:param name="protocollo" value="<%= protocollo %>"/>
<liferay-portlet:param name="tipoPratica" value="<%=tipoPratica %>"/> <liferay-portlet:param name="tipoPratica" value="<%= tipoPratica %>"/>
<liferay-portlet:param name="statoPratica" value="<%=statoPratica %>"/> <liferay-portlet:param name="statoPratica" value="<%= statoPratica %>"/>
<liferay-portlet:param name="committente" value="<%=committente %>"/> <liferay-portlet:param name="committente" value="<%= committente %>"/>
<liferay-portlet:param name="soggettiInterconnessi" value="<%=soggettiInterconnessi %>"/> <liferay-portlet:param name="soggettiInterconnessi" value="<%= soggettiInterconnessi %>"/>
<!-- ADT BUG BO ID = 8 --> <liferay-portlet:param name="istruttore" value="<%= istruttore %>"/>
<liferay-portlet:param name="istruttore" value="<%=istruttore %>"/> <liferay-portlet:param name="ufficio" value="<%= ufficio %>"/>
<liferay-portlet:param name="ufficio" value="<%=ufficio %>"/> <liferay-portlet:param name="comune" value="<%= comuneSearch %>"/>
<liferay-portlet:param name="comune" value="<%=comuneSearch %>"/> <liferay-portlet:param name="tipoAttivita" value="<%= tipoAttivita %>"/>
<liferay-portlet:param name="tipoAttivita" value="<%=tipoAttivita %>"/> <liferay-portlet:param name="tipoProcedura" value="<%= tipoProcedura %>"/>
<liferay-portlet:param name="tipoProcedura" value="<%=tipoProcedura %>"/> <liferay-portlet:param name="ordinaPer" value="<%= ordinaPer %>"/>
<liferay-portlet:param name="ordinaPer" value="<%=ordinaPer %>"/> <liferay-portlet:param name="ordinaTipo" value="<%= ordinaTipo %>"/>
<liferay-portlet:param name="ordinaTipo" value="<%=ordinaTipo %>"/>
<liferay-portlet:param name="searchForExport" value="true"/> <liferay-portlet:param name="searchForExport" value="true"/>
<liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicercaAttivitaConcluse"/> <liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicercaAttivitaConcluse"/>
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
@ -82,51 +71,29 @@ request.setAttribute("tabs1", "Tab_TaskCompletati");
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>">
<liferay-ui:search-container
emptyResultsMessage="no-entries-were-found"
iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>"
>
<% <%
List<ControlloPratica> listaControlloPratica = new ArrayList<ControlloPratica>(); List<ControlloPratica> listaControlloPratica = new ArrayList<ControlloPratica>();
Hits hits = ControlloPraticaAdvancedSearch.searchTaskConclusi(request, user, searchContainer.getStart(), searchContainer.getEnd()); Hits hits = ControlloPraticaAdvancedSearch.searchTaskConclusi(request, user, searchContainer.getStart(),
searchContainer.getEnd());
for (Document doc : hits.toList()) { for (Document doc : hits.toList()) {
long controlloPraticaId = Long.parseLong(doc.get("controlloPraticaId"));
String controlloPraticaId = doc.get("controlloPraticaId"); if (Validator.isNotNull(controlloPraticaId)) {
if (Validator.isNotNull(controlloPraticaId)) { ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.fetchControlloPratica(controlloPraticaId);
ControlloPratica controlloPratica = if (Validator.isNotNull(controlloPratica)) {
ControlloPraticaLocalServiceUtil.fetchControlloPratica(GetterUtil.getLong(controlloPraticaId));
if (Validator.isNotNull(controlloPratica)) {
listaControlloPratica.add(controlloPratica); listaControlloPratica.add(controlloPratica);
} }
} }
}
searchContainer.setTotal(hits.getLength());
}
searchContainer.setTotal(hits.getLength());
%> %>
<liferay-ui:search-container-results results="<%= listaControlloPratica %>" />
<liferay-ui:search-container-results <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.ControlloPratica"
results="<%=listaControlloPratica%>" modelVar="controlloPratica">
/> <%@include file="/html/gestioneattivita/view_columns.jspf"%>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.ControlloPratica"
modelVar="controlloPratica"
>
<%@ include file="/html/gestioneattivita/view_columns.jspf" %>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
<liferay-ui:search-iterator paginate="<%= true %>" />
</liferay-ui:search-container> </liferay-ui:search-container>

15
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf

@ -1,11 +1,8 @@
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@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.dao.orm.QueryUtil"%> <%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstance"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowInstance"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
@ -18,17 +15,20 @@
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%> <%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%> <%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%> <%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%>
<%@page import="it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants"%>
<%@page import="java.util.List"%> <%@page import="java.util.List"%>
<% <%
//ADT - BUG-12 Aggiunta colonna Data Esito //ADT - BUG-12 Aggiunta colonna Data Esito
@ -85,7 +85,7 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
} }
} }
if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { if (intPratica.hasRichiestaIntegrazioneAttiva()) {
taskName.append(StringPool.SPACE).append(LanguageUtil.get(pageContext, "in-corso")); taskName.append(StringPool.SPACE).append(LanguageUtil.get(pageContext, "in-corso"));
} }
out.print(taskName); out.print(taskName);
@ -93,12 +93,11 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Esito"> <liferay-ui:search-container-column-text name="Esito">
<% <%
StringBuilder esito = new StringBuilder(); out.print(ControlloPraticaLocalServiceUtil.getTipoEsito(controlloPratica.getControlloPraticaId()));
esito.append(ControlloPraticaLocalServiceUtil.getTipoEsito(controlloPratica.getControlloPraticaId()));
if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) {
esito.append(StringPool.SPACE).append(LanguageUtil.get(pageContext, "in-corso")); out.print(StringPool.SPACE);
out.print(LanguageUtil.get(pageContext, "in-corso"));
} }
out.print(esito);
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<%-- ADT - BUG-12 Aggiunta colonna Data Esito --%> <%-- ADT - BUG-12 Aggiunta colonna Data Esito --%>

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare.jsp

@ -68,8 +68,7 @@ if (Validator.isNotNull(mvcPath)) {
String tipoProcedura = StringPool.BLANK; String tipoProcedura = StringPool.BLANK;
if (Validator.isNotNull(intPratica)) { if (Validator.isNotNull(intPratica)) {
tipoProcedura = LanguageUtil.get(pageContext, "label_procedura_" tipoProcedura = LanguageUtil.get(pageContext, "label_procedura_"
+ intPratica.getTipoProcedura()) + intPratica.getTipoProcedura()) + ") "
+ ") "
+ LanguageUtil.get(pageContext, "tipo_procedura_" + LanguageUtil.get(pageContext, "tipo_procedura_"
+ intPratica.getTipoProcedura()); + intPratica.getTipoProcedura());
} }

662
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp

@ -1,30 +1,23 @@
<%@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.util.HtmlUtil"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.Map"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="com.liferay.portal.model.Organization"%> <%@page import="com.liferay.portal.model.Organization"%>
<%@page import="java.text.NumberFormat"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.Map"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<% <%
NumberFormat numberFormat = NumberFormat.getInstance(Locale.ITALIAN); NumberFormat numberFormat = NumberFormat.getInstance(Locale.ITALIAN);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
@ -34,7 +27,6 @@ if (dettPratica == null) {
} }
} }
Organization organization = IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(intPraticaId); Organization organization = IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(intPraticaId);
String nomeProvincia = organization.getName();
String contoCorrente = (String) organization.getExpandoBridge().getAttribute("conto_corrente"); String contoCorrente = (String) organization.getExpandoBridge().getAttribute("conto_corrente");
Map<String, Double> pagamenti = PagamentoLocalServiceUtil.getPagamenti(); Map<String, Double> pagamenti = PagamentoLocalServiceUtil.getPagamenti();
String formName = "fmpaga"; String formName = "fmpaga";
@ -53,7 +45,8 @@ if (Validator.isNotNull(dettPratica.getPagamentoIdOneri())) {
pagamentoOneri = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdOneri()); pagamentoOneri = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdOneri());
pagamentoOneriIsPagato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA); pagamentoOneriIsPagato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoOneriIsPending = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO); pagamentoOneriIsPending = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoOneriNonPagabile = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE); pagamentoOneriNonPagabile = pagamentoOneri.getUtilizzata().equalsIgnoreCase(
PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoOneriRifiutato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA); pagamentoOneriRifiutato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoOneriAnnullato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO); pagamentoOneriAnnullato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
} }
@ -67,7 +60,8 @@ if (Validator.isNotNull(dettPratica.getPagamentoIdBolli())) {
pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdBolli()); pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdBolli());
pagamentoBolliIsPagato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA); pagamentoBolliIsPagato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoBolliIsPending = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO); pagamentoBolliIsPending = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoBolliNonPagabile = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE); pagamentoBolliNonPagabile = pagamentoBolli.getUtilizzata().equalsIgnoreCase(
PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoBolliRifiutato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA); pagamentoBolliRifiutato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoBolliAnnullato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO); pagamentoBolliAnnullato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
} }
@ -75,6 +69,25 @@ String formRicevutaPagamento = "fmRicevuta";
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPratica.getTipoIntegrazione()) boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPratica.getTipoIntegrazione())
|| dettPratica.isNormEsenteSpese(); || dettPratica.isNormEsenteSpese();
boolean archivio = false;
boolean beniCulturali = true;
boolean beniPaesaggistici = true;
boolean attestazioni = true;
switch (intPratica.getTipoRichiesta()) {
case Constants.BENI_IMMOBILI:
case Constants.BENI_MOBILI:
case Constants.AUT_URBANISTICA:
attestazioni = false;
beniPaesaggistici = false;
break;
case Constants.VINCOLI:
beniCulturali = false;
beniPaesaggistici = false;
break;
default:
attestazioni = false;
beniCulturali = false;
}
%> %>
<liferay-ui:error key="error.geniocivilefe.pagamento.allegato.ext.valid" <liferay-ui:error key="error.geniocivilefe.pagamento.allegato.ext.valid"
message="error.geniocivilefe.pagamento.allegato.ext.valid" /> message="error.geniocivilefe.pagamento.allegato.ext.valid" />
@ -95,7 +108,8 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<div class="container-fluid clearfix root-calc"> <div class="container-fluid clearfix root-calc">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar"> <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(), <c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>"> DettPratica.class.getName()) %>">
<liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>" <liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>"
@ -114,7 +128,8 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<div class="col-xs-12 padding_15"> <div class="col-xs-12 padding_15">
Progetto #<%= intPratica.getTitle(false) %> Progetto #<%= intPratica.getTitle(false) %>
<strong> <%= Validator.isNull(dettPratica.getTipoIntegrazione()) ? StringPool.BLANK <strong> <%= Validator.isNull(dettPratica.getTipoIntegrazione()) ? StringPool.BLANK
: " - " + LanguageUtil.get(pageContext, "label-integrazione-" + dettPratica.getTipoIntegrazione()) %> : " - " + LanguageUtil.get(pageContext, "label-integrazione-"
+ dettPratica.getTipoIntegrazione()) %>
</strong> </strong>
</div> </div>
</div> </div>
@ -165,8 +180,9 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<aui:input type="file" name="docFile" <aui:input type="file" name="docFile"
label="ricevuta-pagamento-spese"> label="ricevuta-pagamento-spese">
<aui:validator name="required" errorMessage="File Richiesto" /> <aui:validator name="required" errorMessage="File Richiesto" />
<aui:validator name="acceptFiles" <aui:validator
errorMessage="Errore... Formati supportati: pdf,p7m">'p7m,pdf'</aui:validator> errorMessage="Errore... Formati supportati: pdf,p7m"
name="acceptFiles">'p7m,pdf'</aui:validator>
</aui:input> </aui:input>
</div> </div>
<aui:button-row> <aui:button-row>
@ -181,14 +197,15 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<div <div
class="col-xs-10 padding_15"> class="col-xs-10 padding_15">
<span> <span>
<%= LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-spese") %> <%= LanguageUtil.get(pageContext,
"text-pagamento-nonpagabile-spese") %>
</span> </span>
</div> </div>
</c:if> </c:if>
<c:if test="<%= pagamentoOneriRifiutato %>"> <c:if test="<%= pagamentoOneriRifiutato %>">
<div class="col-xs-10 padding_15"> <div class="col-xs-10 padding_15">
<span> <span>
<%=LanguageUtil.get(pageContext, "text-pagamento-rifiutato-spese")%> <%= LanguageUtil.get(pageContext, "text-pagamento-rifiutato-spese") %>
</span> </span>
</div> </div>
</c:if> </c:if>
@ -258,8 +275,9 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<div> <div>
<aui:input type="file" name="docFile" label="Ricevuta Pagamento"> <aui:input type="file" name="docFile" label="Ricevuta Pagamento">
<aui:validator name="required" errorMessage="File Richiesto" /> <aui:validator name="required" errorMessage="File Richiesto" />
<aui:validator name="acceptFiles" <aui:validator
errorMessage="Errore... Formati supportati: pdf,p7m">'p7m,pdf'</aui:validator> errorMessage="Errore... Formati supportati: pdf,p7m"
name="acceptFiles">'p7m,pdf'</aui:validator>
</aui:input> </aui:input>
</div> </div>
<aui:button-row> <aui:button-row>
@ -273,7 +291,8 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<c:if test="<%= pagamentoBolliNonPagabile %>"> <c:if test="<%= pagamentoBolliNonPagabile %>">
<div class="col-xs-10 padding_15"> <div class="col-xs-10 padding_15">
<span> <span>
<%= LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-bolli") %> <%= LanguageUtil.get(pageContext,
"text-pagamento-nonpagabile-bolli") %>
</span> </span>
</div> </div>
</c:if> </c:if>
@ -290,7 +309,7 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<liferay-util:param name="pagamentoId" <liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamentoBolli.getPagamentoId()) %>' /> value='<%= String.valueOf(pagamentoBolli.getPagamentoId()) %>' />
<liferay-util:param name="verifyPagamentoURL" <liferay-util:param name="verifyPagamentoURL"
value='<%=verifyPagamentoURL%>' /> value='<%= verifyPagamentoURL %>' />
</liferay-util:include> </liferay-util:include>
</div> </div>
</c:if> </c:if>
@ -305,14 +324,16 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(), DettPratica.class.getName()) %>"> <c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>">
<liferay-util:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" /> <liferay-util:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
<liferay-util:param name="className" value="<%= DettPratica.class.getName() %>" /> <liferay-util:param name="className" value="<%= DettPratica.class.getName() %>" />
</liferay-util:include> </liferay-util:include>
<div class="separator" style="margin: 30px 0 40px 0"></div> <div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), DettPratica.class.getName()) %>"> <c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2> <h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if> </c:if>
<liferay-portlet:actionURL name="pagaInvia" var="pagaInviaURL"> <liferay-portlet:actionURL name="pagaInvia" var="pagaInviaURL">
@ -332,8 +353,8 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<div class="container-fluid clearfix calcolo-importo calcola-importo-modal"> <div class="container-fluid clearfix calcolo-importo calcola-importo-modal">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
<aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true" required="true" <aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true"
showRequiredLabel="true" disabled="<%= disabledInput %>"> required="true" showRequiredLabel="true" disabled="<%= disabledInput %>">
<% <%
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto( List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.COMMITTENTE); intPraticaId, TipoSoggettoUtil.COMMITTENTE);
@ -366,279 +387,303 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
<c:if test="<%= dettPratica.isNormEsenteSpese() %>"> <c:if test="<%= dettPratica.isNormEsenteSpese() %>">
<ol style="list-style-type: none; width: 100%"> <ol style="list-style-type: none; width: 100%">
<li><strong> <li><strong>
<%= LanguageUtil.get(pageContext, "label-diritti-fissi")%> <%= LanguageUtil.get(pageContext, "label-diritti-fissi") %>
</strong></li> </strong></li>
</ol> </ol>
</c:if> </c:if>
<div> <c:if test="<%= beniCulturali %>">
<span><%=LanguageUtil.get(pageContext, <div>
"label-interventi-beni-culturali")%></span><br/><br/> <span><%= LanguageUtil.get(pageContext,
</div> "label-interventi-beni-culturali") %></span><br/><br/>
<div style="margin-left:15px">
<div class="row">
<div class="col-xs-6">
<aui:input type="checkbox"
name="chk-pagSoggettiAdAutorizzazione"
for="pagSoggettiAdAutorizzazione"
data-val='<%= pagamenti
.get("pagSoggettiAdAutorizzazione")%>'
label="label-pagSoggettiAdAutorizzazione"
inlineLabel="left" inlineField="true"
disabled="<%= disabledInputOneri
|| disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagSoggettiAdAutorizzazione"
inlineLabel="left" inlineField="true" />
</div>
<div class="col-xs-6">&euro;<%= numberFormat.format(
pagamenti.get("pagSoggettiAdAutorizzazione")) %></div>
</div> </div>
<div class="row"> <div style="margin-left:15px">
<div class="col-xs-6"> <div class="row">
<aui:input type="checkbox" <div class="col-xs-6">
name="chk-pagInterventiRestauroManufatti" <aui:input type="checkbox"
for="pagInterventiRestauroManufatti" name="chk-pagSoggettiAdAutorizzazione"
data-val='<%= pagamenti.get( for="pagSoggettiAdAutorizzazione"
"pagInterventiRestauroManufatti")%>' data-val='<%= pagamenti
label="label-pagInterventiRestauroManufatti" .get("pagSoggettiAdAutorizzazione") %>'
inlineLabel="left" inlineField="true" label="label-pagSoggettiAdAutorizzazione"
disabled="<%= disabledInputOneri inlineLabel="left" inlineField="true"
|| disabledIstruttoria %>" /> disabled="<%= disabledInputOneri
<aui:input type="hidden" cssClass="field_price" || disabledIstruttoria %>" />
name="pagInterventiRestauroManufatti" <aui:input type="hidden" cssClass="field_price"
inlineLabel="left" inlineField="true" /> name="pagSoggettiAdAutorizzazione"
inlineLabel="left" inlineField="true" />
</div>
<div class="col-xs-6">€ <%= numberFormat.format(
pagamenti.get("pagSoggettiAdAutorizzazione")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagInterventiRestauroManufatti")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox"
<div class="row"> name="chk-pagInterventiRestauroManufatti"
<div class="col-xs-6"> for="pagInterventiRestauroManufatti"
<aui:input type="checkbox" name="chk-pagAltriCasiCulturali" data-val='<%= pagamenti.get(
for="pagAltriCasiCulturali" "pagInterventiRestauroManufatti") %>'
data-val='<%= pagamenti.get( label="label-pagInterventiRestauroManufatti"
"pagAltriCasiCulturali") %>' inlineLabel="left" inlineField="true"
label="label-pagAltriCasiCulturali" inlineLabel="left" disabled="<%= disabledInputOneri
inlineField="true" disabled="<%= disabledInputOneri || disabledIstruttoria %>" />
|| disabledIstruttoria %>" /> <aui:input type="hidden" cssClass="field_price"
<aui:input type="hidden" cssClass="field_price" name="pagInterventiRestauroManufatti"
name="pagAltriCasiCulturali" inlineLabel="left" inlineLabel="left" inlineField="true" />
inlineField="true" /> </div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagInterventiRestauroManufatti")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagAltriCasiCulturali")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagAltriCasiCulturali"
</div> for="pagAltriCasiCulturali"
<div> data-val='<%= pagamenti.get(
<span><%= LanguageUtil.get(pageContext, "pagAltriCasiCulturali") %>'
"label-interventi-beni-paesaggistici") %></span><br/><br/> label="label-pagAltriCasiCulturali"
</div> inlineLabel="left" inlineField="true"
<div style="margin-left: 15px"> disabled="<%= disabledInputOneri
<div class="row"> || disabledIstruttoria %>" />
<div class="col-xs-6"> <aui:input type="hidden" cssClass="field_price"
<aui:input type="checkbox" name="chk-pagLottizzazioni" name="pagAltriCasiCulturali" inlineLabel="left"
for="pagLottizzazioni" data-val='<%= pagamenti.get( inlineField="true" />
"pagLottizzazioni")%>' </div>
label="label-pagLottizzazioni" inlineLabel="left" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
inlineField="true" disabled="<%= disabledInputOneri .get("pagAltriCasiCulturali")) %></div>
|| disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagLottizzazioni" inlineLabel="left"
inlineField="true" />
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti
.get("pagLottizzazioni")) %></div>
</div> </div>
<div class="row"> </c:if>
<div class="col-xs-6"> <c:if test="<%= beniPaesaggistici %>">
<aui:input type="checkbox" name="chk-pagGrandiStrutture" <div>
for="pagGrandiStrutture" data-val='<%=pagamenti.get( <span><%= LanguageUtil.get(pageContext,
"pagGrandiStrutture")%>' "label-interventi-beni-paesaggistici") %></span><br/><br/>
label="label-pagGrandiStrutture" inlineLabel="left"
inlineField="true" disabled="<%= disabledInputOneri
|| disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagGrandiStrutture" inlineLabel="left"
inlineField="true" />
</div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti
.get("pagGrandiStrutture")) %></div>
</div> </div>
<div class="row"> <div style="margin-left: 15px">
<div class="col-xs-6"> <div class="row">
<aui:input type="checkbox" name="chk-pagCondotte" <div class="col-xs-6">
for="pagCondotte" data-val='<%= pagamenti.get( <aui:input type="checkbox" name="chk-pagLottizzazioni"
"pagCondotte")%>' label="label-pagCondotte" for="pagLottizzazioni" data-val='<%= pagamenti.get(
inlineLabel="left" inlineField="true" "pagLottizzazioni") %>'
disabled="<%= disabledInputOneri label="label-pagLottizzazioni" inlineLabel="left"
|| disabledIstruttoria %>" /> inlineField="true" disabled="<%= disabledInputOneri
<aui:input type="hidden" cssClass="field_price" || disabledIstruttoria %>" />
name="pagCondotte" inlineLabel="left" <aui:input type="hidden" cssClass="field_price"
inlineField="true" /> name="pagLottizzazioni" inlineLabel="left"
inlineField="true" />
</div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagLottizzazioni")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagCondotte")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagGrandiStrutture"
<div class="row"> for="pagGrandiStrutture"
<div class="col-xs-6"> data-val='<%= pagamenti.get(
<aui:input type="checkbox" name="chk-pagPalificazioni" "pagGrandiStrutture") %>'
for="pagPalificazioni" data-val='<%=pagamenti.get( label="label-pagGrandiStrutture" inlineLabel="left"
"pagPalificazioni") %>' inlineField="true" disabled="<%= disabledInputOneri
label="label-pagPalificazioni" inlineLabel="left" || disabledIstruttoria %>" />
inlineField="true" disabled="<%= disabledInputOneri <aui:input type="hidden" cssClass="field_price"
|| disabledIstruttoria %>" /> name="pagGrandiStrutture" inlineLabel="left"
<aui:input type="hidden" cssClass="field_price" inlineField="true" />
name="pagPalificazioni" inlineLabel="left" </div>
inlineField="true" /> <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagGrandiStrutture")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagPalificazioni")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagCondotte"
<div class="row"> for="pagCondotte" data-val='<%= pagamenti.get(
<div class="col-xs-6"> "pagCondotte") %>'
<aui:input type="checkbox" name="chk-pagImpiantiEolici" label="label-pagCondotte" inlineLabel="left"
for="pagImpiantiEolici" data-val='<%=pagamenti.get( inlineField="true" disabled="<%= disabledInputOneri
"pagImpiantiEolici")%>' || disabledIstruttoria %>" />
label="label-pagImpiantiEolici" inlineLabel="left" <aui:input type="hidden" cssClass="field_price"
inlineField="true" disabled="<%= disabledInputOneri name="pagCondotte" inlineLabel="left"
|| disabledIstruttoria %>" /> inlineField="true" />
<aui:input type="hidden" cssClass="field_price" </div>
name="pagImpiantiEolici" inlineLabel="left" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
inlineField="true" /> .get("pagCondotte")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagImpiantiEolici")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagPalificazioni"
<div class="row"> for="pagPalificazioni" data-val='<%= pagamenti.get(
<div class="col-xs-6"> "pagPalificazioni") %>'
<aui:input type="checkbox" name="chk-pagNuoveRealizzazioni" label="label-pagPalificazioni" inlineLabel="left"
for="pagNuoveRealizzazioni" data-val='<%=pagamenti inlineField="true" disabled="<%= disabledInputOneri
.get("pagNuoveRealizzazioni") %>' || disabledIstruttoria %>" />
label="label-pagNuoveRealizzazioni" inlineLabel="left" <aui:input type="hidden" cssClass="field_price"
inlineField="true" disabled="<%= disabledInputOneri name="pagPalificazioni" inlineLabel="left"
|| disabledIstruttoria %>" /> inlineField="true" />
<aui:input type="hidden" cssClass="field_price" </div>
name="pagNuoveRealizzazioni" inlineLabel="left" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
inlineField="true" /> .get("pagPalificazioni")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagNuoveRealizzazioni")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagImpiantiEolici"
<div class="row"> for="pagImpiantiEolici"
<div class="col-xs-6"> data-val='<%= pagamenti.get(
<aui:input type="checkbox" name="chk-pagImmobiliPreesistenti" "pagImpiantiEolici") %>'
for="pagImmobiliPreesistenti" data-val='<%= pagamenti label="label-pagImpiantiEolici" inlineLabel="left"
.get("pagImmobiliPreesistenti") %>' inlineField="true" disabled="<%= disabledInputOneri
label="label-pagImmobiliPreesistenti" || disabledIstruttoria %>" />
inlineLabel="left" inlineField="true" <aui:input type="hidden" cssClass="field_price"
disabled="<%= disabledInputOneri name="pagImpiantiEolici" inlineLabel="left"
|| disabledIstruttoria%>" /> inlineField="true" />
<aui:input type="hidden" cssClass="field_price" </div>
name="pagImmobiliPreesistenti" inlineLabel="left" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
inlineField="true" /> .get("pagImpiantiEolici")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagImmobiliPreesistenti")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagNuoveRealizzazioni"
<div class="row"> for="pagNuoveRealizzazioni" data-val='<%= pagamenti
<div class="col-xs-6"> .get("pagNuoveRealizzazioni") %>'
<aui:input type="checkbox" name="chk-pagManifestiPubblicitari" label="label-pagNuoveRealizzazioni"
for="pagManifestiPubblicitari" data-val='<%=pagamenti inlineLabel="left" inlineField="true"
.get("pagManifestiPubblicitari") %>' disabled="<%= disabledInputOneri
label="label-pagManifestiPubblicitari" || disabledIstruttoria %>" />
inlineLabel="left" inlineField="true" <aui:input type="hidden" cssClass="field_price"
disabled="<%= disabledInputOneri name="pagNuoveRealizzazioni" inlineLabel="left"
|| disabledIstruttoria %>" /> inlineField="true" />
<aui:input type="hidden" cssClass="field_price" </div>
name="pagManifestiPubblicitari" inlineLabel="left" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
inlineField="true" /> .get("pagNuoveRealizzazioni")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagManifestiPubblicitari")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagImmobiliPreesistenti"
<div class="row"> for="pagImmobiliPreesistenti"
<div class="col-xs-6"> data-val='<%= pagamenti.get(
<aui:input type="checkbox" name="chk-pagPareriDiMassima" "pagImmobiliPreesistenti") %>'
for="pagPareriDiMassima" data-val='<%=pagamenti.get( label="label-pagImmobiliPreesistenti"
"pagPareriDiMassima")%>' inlineLabel="left" inlineField="true"
label="label-pagPareriDiMassima" inlineLabel="left" disabled="<%= disabledInputOneri
inlineField="true" disabled="<%= disabledInputOneri || disabledIstruttoria %>" />
|| disabledIstruttoria %>" /> <aui:input type="hidden" cssClass="field_price"
<aui:input type="hidden" cssClass="field_price" name="pagImmobiliPreesistenti" inlineLabel="left"
name="pagPareriDiMassima" inlineLabel="left" inlineField="true" />
inlineField="true" /> </div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagImmobiliPreesistenti")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagPareriDiMassima")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagManifestiPubblicitari"
<div class="row"> for="pagManifestiPubblicitari"
<div class="col-xs-6"> data-val='<%= pagamenti.get(
<aui:input type="checkbox" "pagManifestiPubblicitari") %>'
name="chk-pagAltriCasiPaesaggistici" label="label-pagManifestiPubblicitari"
for="pagAltriCasiPaesaggistici" inlineLabel="left" inlineField="true"
data-val='<%= pagamenti.get( disabled="<%= disabledInputOneri
"pagAltriCasiPaesaggistici") %>' || disabledIstruttoria %>" />
label="label-pagAltriCasiPaesaggistici" <aui:input type="hidden" cssClass="field_price"
inlineLabel="left" inlineField="true" name="pagManifestiPubblicitari" inlineLabel="left"
disabled="<%= disabledInputOneri inlineField="true" />
|| disabledIstruttoria %>" /> </div>
<aui:input type="hidden" cssClass="field_price" <div class="col-xs-6">€ <%= numberFormat.format(pagamenti
name="pagAltriCasiPaesaggistici" inlineLabel="left" .get("pagManifestiPubblicitari")) %></div>
inlineField="true" />
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti <div class="row">
.get("pagAltriCasiPaesaggistici")) %></div> <div class="col-xs-6">
</div> <aui:input type="checkbox" name="chk-pagPareriDiMassima"
<div style="margin-top: 30px"></div> for="pagPareriDiMassima"
<div class="row"> data-val='<%= pagamenti.get(
<div class="col-xs-6"> "pagPareriDiMassima") %>'
<aui:input type="checkbox" name="chk-pagVariantiPareriResi" label="label-pagPareriDiMassima" inlineLabel="left"
id="enableVariantiPareri" for="pagVariantiPareriResi" inlineField="true" disabled="<%= disabledInputOneri
data-val='<%= pagamenti.get( || disabledIstruttoria %>" />
"pagVariantiPareriResi") %>' <aui:input type="hidden" cssClass="field_price"
label="label-pagVariantiPareriResi" inlineLabel="left" name="pagPareriDiMassima" inlineLabel="left"
inlineField="true" disabled="<%= disabledInputOneri inlineField="true" />
|| disabledIstruttoria %>" /> </div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagPareriDiMassima")) %></div>
</div> </div>
<div class="col-xs-6"> <div class="row">
<aui:input type="text" disabled="true" <div class="col-xs-6">
cssClass="field_price text_input" label="label-empty" <aui:input type="checkbox"
name="pagVariantiPareriResi" inlineLabel="left" name="chk-pagAltriCasiPaesaggistici"
inlineField="true" /> for="pagAltriCasiPaesaggistici"
data-val='<%= pagamenti.get(
"pagAltriCasiPaesaggistici") %>'
label="label-pagAltriCasiPaesaggistici"
inlineLabel="left" inlineField="true"
disabled="<%= disabledInputOneri
|| disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagAltriCasiPaesaggistici" inlineLabel="left"
inlineField="true" />
</div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagAltriCasiPaesaggistici")) %></div>
</div> </div>
</div> </div>
<div class="row"> </c:if>
<div class="col-xs-6"> <c:if test="<%= beniCulturali || beniPaesaggistici %>">
<aui:input type="checkbox" name="chk-pagRilascioAttestazioni" <div style="margin-left:15px">
for="pagRilascioAttestazioni" data-val='<%= pagamenti <div style="margin-top: 30px"></div>
.get("pagRilascioAttestazioni") %>' <div class="row">
label="label-pagRilascioAttestazioni" <div class="col-xs-6">
inlineLabel="left" inlineField="true" <aui:input type="checkbox" name="chk-pagVariantiPareriResi"
disabled="<%= disabledInputOneri id="enableVariantiPareri" for="pagVariantiPareriResi"
|| disabledIstruttoria %>" /> data-val='<%= pagamenti.get(
<aui:input type="hidden" cssClass="field_price" "pagVariantiPareriResi") %>'
name="pagRilascioAttestazioni" inlineLabel="left" label="label-pagVariantiPareriResi" inlineLabel="left"
inlineField="true" /> inlineField="true" disabled="<%= disabledInputOneri
|| disabledIstruttoria %>" />
</div>
<div class="col-xs-6">
<aui:input type="text" disabled="true"
cssClass="field_price text_input" label="label-empty"
name="pagVariantiPareriResi" inlineLabel="left"
inlineField="true" />
</div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti
.get("pagRilascioAttestazioni")) %></div>
</div> </div>
<div class="row"> </c:if>
<div class="col-xs-6"> <c:if test="<%= attestazioni %>">
<aui:input type="checkbox" name="chk-pagConsultazioniArchivio" <div style="margin-left:15px">
for="pagConsultazioniArchivio" data-val='<%=pagamenti <div class="row">
.get("pagConsultazioniArchivio")%>' <div class="col-xs-6">
label="label-pagConsultazioniArchivio" <aui:input type="checkbox" name="chk-pagRilascioAttestazioni"
inlineLabel="left" inlineField="true" for="pagRilascioAttestazioni" data-val='<%= pagamenti
disabled="<%= disabledInputOneri .get("pagRilascioAttestazioni") %>'
|| disabledIstruttoria %>" /> label="label-pagRilascioAttestazioni"
<aui:input type="hidden" cssClass="field_price" inlineLabel="left" inlineField="true"
name="pagConsultazioniArchivio" inlineLabel="left" disabled="<%= disabledInputOneri
inlineField="true" /> || disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagRilascioAttestazioni" inlineLabel="left"
inlineField="true" />
</div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagRilascioAttestazioni")) %></div>
</div> </div>
<div class="col-xs-6">&euro;<%= numberFormat.format(pagamenti
.get("pagConsultazioniArchivio")) %></div>
</div> </div>
</div> </c:if>
<c:if test="<%= archivio %>">
<div style="margin-left:15px">
<div class="row">
<div class="col-xs-6">
<aui:input type="checkbox" name="chk-pagConsultazioniArchivio"
for="pagConsultazioniArchivio"
data-val='<%= pagamenti.get(
"pagConsultazioniArchivio") %>'
label="label-pagConsultazioniArchivio"
inlineLabel="left" inlineField="true"
disabled="<%= disabledInputOneri
|| disabledIstruttoria %>" />
<aui:input type="hidden" cssClass="field_price"
name="pagConsultazioniArchivio" inlineLabel="left"
inlineField="true" />
</div>
<div class="col-xs-6">€ <%= numberFormat.format(pagamenti
.get("pagConsultazioniArchivio")) %></div>
</div>
</div>
</c:if>
</div> </div>
</div> </div>
</div> </div>
@ -652,8 +697,10 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
speseIstruttoria = speseIstruttoria + ",00"; speseIstruttoria = speseIstruttoria + ",00";
} }
%> %>
<div id="<portlet:namespace/>importoIstruttoria" class="total-row__value"> <div class="total-row__value">
<strong>&euro; <%= speseIstruttoria %></strong> <strong id="<portlet:namespace/>importoIstruttoria">
€ <%= speseIstruttoria %>
</strong>
</div> </div>
<aui:input type="hidden" name="importoSpeseIstruttoria" /> <aui:input type="hidden" name="importoSpeseIstruttoria" />
<br/> <br/>
@ -718,8 +765,9 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<liferay-ui:icon iconCssClass="fa fa-close" message="cancel" url="<%= verifyURL %>" <liferay-ui:icon iconCssClass="fa fa-close" message="cancel" url="<%= verifyURL %>"
linkCssClass="btn" /> linkCssClass="btn" />
<liferay-ui:icon id="<%= buttonId %>" iconCssClass="fa fa-credit-card" message="Paga e invia" <liferay-ui:icon id="<%= buttonId %>" iconCssClass="fa fa-credit-card"
url="#" linkCssClass="btn btn-primary paga_invia_btn disabled" /> message="Paga e invia" url="#"
linkCssClass="btn btn-primary paga_invia_btn disabled" />
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
@ -730,9 +778,9 @@ boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPr
</span> </span>
</div> </div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>">
<liferay-util:param name="formName" value="<%=formName %>" /> <liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="titolo" value="Attenzione" /> <liferay-util:param name="titolo" value="Attenzione" />
<liferay-util:param name="buttonId" value="<%=buttonId%>" /> <liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="buttonConferma" value="Conferma" /> <liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="500" /> <liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="280" /> <liferay-util:param name="height" value="280" />
@ -796,34 +844,32 @@ $(".text_input").each(function () {
e.preventDefault(); e.preventDefault();
return; return;
} }
// Allow: backspace, delete, tab, escape, enter and . // Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 || if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A // Allow: Ctrl+A, Command+A
(e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) || (e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right, down, up // Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) { (e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything // let it happen, don't do anything
return; return;
} }
// Ensure that it is a number and stop the keypress // Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault(); e.preventDefault();
} }
calcolo(); calcolo();
}); });
}); });
function calcolo() { function calcolo() {
var totale = 0; var totale = 0;
$.each($('.field_price'), function(index, val) { $.each($('.field_price'), function(index, val) {
if ($(this).is(":not(:disabled)")) { if ($(this).is(":not(:disabled)")) {
totale += parseFloat($(this).val()); totale += parseFloat($(this).val());
} }
}); });
$('#<portlet:namespace/>importoSpeseIstruttoria').val(totale); $('#<portlet:namespace/>importoSpeseIstruttoria').val(totale);
$("#<portlet:namespace/>importoIstruttoria").html("&euro; " + Number(totale).formatMoney(2, ',', '.')); $("#<portlet:namespace/>importoIstruttoria").html(" " + Number(totale).formatMoney(2, ',', '.'));
} }
Number.prototype.formatMoney = function(c, d, t) { Number.prototype.formatMoney = function(c, d, t) {

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf

@ -80,7 +80,7 @@ if (lastDettPratica == null) {
SP SP
</span> </span>
</c:if> </c:if>
<c:if test="<%= StatoPraticaConstants.INTEGRAZIONE.equalsIgnoreCase(intPratica.getStatoPratica()) %>"> <c:if test="<%= intPratica.hasRichiestaIntegrazioneAttiva() %>">
<span class="tooltip-info display-inline-block" title="Richiesta Integrazione" style="padding:0"> <span class="tooltip-info display-inline-block" title="Richiesta Integrazione" style="padding:0">
<i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i> <i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i>
</span> </span>

130
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java

@ -61,32 +61,32 @@ public class FirmaServlet extends HttpServlet {
String metodo = pathArray[0]; String metodo = pathArray[0];
Risposta<?> risposta = new Risposta<>(); Risposta<?> risposta = new Risposta<>();
switch (metodo) { switch (metodo) {
case GET_CONFIGURATION: case GET_CONFIGURATION:
risposta = firmaGetUtil.getConfiguration(); risposta = firmaGetUtil.getConfiguration();
break; break;
case GET_TYPE: case GET_TYPE:
risposta = firmaGetUtil.getType(); risposta = firmaGetUtil.getType();
break; break;
case GET_TYPE_VERBALE: case GET_TYPE_VERBALE:
risposta = firmaGetUtil.getTypeVerbale(); risposta = firmaGetUtil.getTypeVerbale();
break; break;
case LOGIN: case LOGIN:
if (pathArray.length == 2) { if (pathArray.length == 2) {
String codiceFiscale = pathArray[1]; String codiceFiscale = pathArray[1];
risposta = firmaGetUtil.loginCodiceFiscale(codiceFiscale); risposta = firmaGetUtil.loginCodiceFiscale(codiceFiscale);
} }
if (pathArray.length == 3) { if (pathArray.length == 3) {
String nome = pathArray[1]; String nome = pathArray[1];
String cognome = pathArray[2]; String cognome = pathArray[2];
risposta = firmaGetUtil.loginNomeCognome(nome, cognome); risposta = firmaGetUtil.loginNomeCognome(nome, cognome);
} }
break; break;
case VERSION: case VERSION:
risposta = firmaGetUtil.version(); risposta = firmaGetUtil.version();
break; break;
case GET_STILE: case GET_STILE:
risposta = firmaGetUtil.getStile(); risposta = firmaGetUtil.getStile();
break; break;
} }
JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer();
jsonSerializer.exclude("*.class"); jsonSerializer.exclude("*.class");
@ -108,46 +108,46 @@ public class FirmaServlet extends HttpServlet {
String metodo = pathArray[0]; String metodo = pathArray[0];
Risposta<?> risposta = new Risposta<>(); Risposta<?> risposta = new Risposta<>();
switch (metodo) { switch (metodo) {
case GET_FILE: case GET_FILE:
if (pathArray.length == 3) { if (pathArray.length == 3) {
String tipo = pathArray[1]; String tipo = pathArray[1];
String id = pathArray[2]; String id = pathArray[2];
risposta = firmaPostUtil.getFile(token, tipo, id); risposta = firmaPostUtil.getFile(token, tipo, id);
} }
break; break;
case GET_FILE_LIST: case GET_FILE_LIST:
risposta = firmaPostUtil.getFileList(token); risposta = firmaPostUtil.getFileList(token);
break; break;
case OPEN_PRATICA: case OPEN_PRATICA:
if (pathArray.length == 2) { if (pathArray.length == 2) {
String idFile = pathArray[1]; String idFile = pathArray[1];
risposta = firmaPostUtil.openPratica(token, idFile); risposta = firmaPostUtil.openPratica(token, idFile);
} }
break; break;
case RIFIUTA: case RIFIUTA:
if (pathArray.length == 5) { if (pathArray.length == 5) {
String idFile = pathArray[1]; String idFile = pathArray[1];
String messaggio = pathArray[2]; String messaggio = pathArray[2];
String cambiaFase = pathArray[3]; String cambiaFase = pathArray[3];
String assegna = pathArray[4]; String assegna = pathArray[4];
risposta = firmaPostUtil.rifiuta(token, idFile, messaggio, cambiaFase, assegna); risposta = firmaPostUtil.rifiuta(token, idFile, messaggio, cambiaFase, assegna);
} }
break; break;
case SET_FILE: case SET_FILE:
if (pathArray.length == 3) { if (pathArray.length == 3) {
String tipo = pathArray[1]; String tipo = pathArray[1];
String idFile = pathArray[2]; String idFile = pathArray[2];
JSONDeserializer<Map<String, String>> jsonDeserializer = JSONFactoryUtil.createJSONDeserializer(); JSONDeserializer<Map<String, String>> jsonDeserializer = JSONFactoryUtil.createJSONDeserializer();
Map<String, String> map = jsonDeserializer.deserialize(token); Map<String, String> map = jsonDeserializer.deserialize(token);
ServiceContext serviceContext = null; ServiceContext serviceContext = null;
try { try {
serviceContext = ServiceContextFactory.getInstance(request); serviceContext = ServiceContextFactory.getInstance(request);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e.getMessage()); _log.error(e.getMessage());
}
risposta = firmaPostUtil.setFile(map.get("token"), map.get("file"), tipo, idFile, serviceContext);
} }
risposta = firmaPostUtil.setFile(map.get("token"), map.get("file"), tipo, idFile, serviceContext); break;
}
break;
} }
JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer();
jsonSerializer.exclude("*.class"); jsonSerializer.exclude("*.class");

20
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java

File diff suppressed because one or more lines are too long

6
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java

@ -51,9 +51,8 @@ public class FirmaPostUtil {
// NEL RITORNO "tipoDocumento" è documentType con intPraticaId faccio fetch su tabella intPratica e prendo campo // NEL RITORNO "tipoDocumento" è documentType con intPraticaId faccio fetch su tabella intPratica e prendo campo
// tipoPratica // tipoPratica
long[] companyIds = PortalUtil.getCompanyIds(); long[] companyIds = PortalUtil.getCompanyIds();
Risposta<List<RestFile>> risposta = new Risposta<List<RestFile>>(); Risposta<List<RestFile>> risposta = new Risposta<>();
for (long companyId : companyIds) { for (long companyId : companyIds) {
Company company = null; Company company = null;
try { try {
company = CompanyLocalServiceUtil.getCompany(companyId); company = CompanyLocalServiceUtil.getCompany(companyId);
@ -82,8 +81,7 @@ public class FirmaPostUtil {
restFile.setDataInvio(new Date()); restFile.setDataInvio(new Date());
String tipoDocumento = avviso.translateTipoDocumento(); String tipoDocumento = avviso.translateTipoDocumento();
restFile.setDocumentiType(avviso.getTipoDocumento()); // TO-VERIFY restFile.setDocumentiType(avviso.getTipoDocumento()); // TO-VERIFY
restFile.setNomeFile(LanguageUtil.get(Locale.ITALIAN, tipoDocumento) restFile.setNomeFile(LanguageUtil.get(Locale.ITALIAN, tipoDocumento) + " - "
+ StringPool.SPACE + StringPool.DASH + StringPool.SPACE
+ intPratica.getTitle(Locale.ITALIAN, true)); + intPratica.getTitle(Locale.ITALIAN, true));
restFile.setFile(StringPool.BLANK); restFile.setFile(StringPool.BLANK);
Group group = GroupLocalServiceUtil.getGroup(avviso.getGroupId()); Group group = GroupLocalServiceUtil.getGroup(avviso.getGroupId());

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

@ -0,0 +1,40 @@
/**
* Copyright (c) 2000-2013 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.mailmanager;
import com.liferay.portal.NoSuchModelException;
/**
* @author
*/
public class NoSuchEmailAttachmentException extends NoSuchModelException {
public NoSuchEmailAttachmentException() {
super();
}
public NoSuchEmailAttachmentException(String msg) {
super(msg);
}
public NoSuchEmailAttachmentException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchEmailAttachmentException(Throwable cause) {
super(cause);
}
}

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

@ -0,0 +1,40 @@
/**
* Copyright (c) 2000-2013 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.mailmanager;
import com.liferay.portal.NoSuchModelException;
/**
* @author
*/
public class NoSuchEmailException extends NoSuchModelException {
public NoSuchEmailException() {
super();
}
public NoSuchEmailException(String msg) {
super(msg);
}
public NoSuchEmailException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchEmailException(Throwable cause) {
super(cause);
}
}

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

@ -0,0 +1,40 @@
/**
* Copyright (c) 2000-2013 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.mailmanager;
import com.liferay.portal.NoSuchModelException;
/**
* @author
*/
public class NoSuchEmailTemplateException extends NoSuchModelException {
public NoSuchEmailTemplateException() {
super();
}
public NoSuchEmailTemplateException(String msg) {
super(msg);
}
public NoSuchEmailTemplateException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchEmailTemplateException(Throwable cause) {
super(cause);
}
}

35
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java

@ -1,35 +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.mailmanager.model;
import com.liferay.portal.model.PersistedModel;
/**
* The extended model interface for the EmailTemplateAttachment service. Represents a row in the &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* @author
* @see EmailTemplateAttachmentModel
* @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl
* @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl
* @generated
*/
public interface EmailTemplateAttachment extends EmailTemplateAttachmentModel,
PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
}

301
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java

@ -1,301 +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.mailmanager.model;
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import it.tref.liferay.portos.mailmanager.service.ClpSerializer;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* @author $author$
*/
public class EmailTemplateAttachmentClp extends BaseModelImpl<EmailTemplateAttachment>
implements EmailTemplateAttachment {
public EmailTemplateAttachmentClp() {
}
@Override
public Class<?> getModelClass() {
return EmailTemplateAttachment.class;
}
@Override
public String getModelClassName() {
return EmailTemplateAttachment.class.getName();
}
@Override
public EmailTemplateAttachmentPK getPrimaryKey() {
return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId);
}
@Override
public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey) {
setEmailTemplateId(primaryKey.emailTemplateId);
setFileEntryId(primaryKey.fileEntryId);
}
@Override
public Serializable getPrimaryKeyObj() {
return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
setPrimaryKey((EmailTemplateAttachmentPK)primaryKeyObj);
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long emailTemplateId = (Long)attributes.get("emailTemplateId");
if (emailTemplateId != null) {
setEmailTemplateId(emailTemplateId);
}
Long fileEntryId = (Long)attributes.get("fileEntryId");
if (fileEntryId != null) {
setFileEntryId(fileEntryId);
}
}
@Override
public long getEmailTemplateId() {
return _emailTemplateId;
}
@Override
public void setEmailTemplateId(long emailTemplateId) {
_emailTemplateId = emailTemplateId;
if (_emailTemplateAttachmentRemoteModel != null) {
try {
Class<?> clazz = _emailTemplateAttachmentRemoteModel.getClass();
Method method = clazz.getMethod("setEmailTemplateId", long.class);
method.invoke(_emailTemplateAttachmentRemoteModel,
emailTemplateId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public long getFileEntryId() {
return _fileEntryId;
}
@Override
public void setFileEntryId(long fileEntryId) {
_fileEntryId = fileEntryId;
if (_emailTemplateAttachmentRemoteModel != null) {
try {
Class<?> clazz = _emailTemplateAttachmentRemoteModel.getClass();
Method method = clazz.getMethod("setFileEntryId", long.class);
method.invoke(_emailTemplateAttachmentRemoteModel, fileEntryId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
public BaseModel<?> getEmailTemplateAttachmentRemoteModel() {
return _emailTemplateAttachmentRemoteModel;
}
public void setEmailTemplateAttachmentRemoteModel(
BaseModel<?> emailTemplateAttachmentRemoteModel) {
_emailTemplateAttachmentRemoteModel = emailTemplateAttachmentRemoteModel;
}
public Object invokeOnRemoteModel(String methodName,
Class<?>[] parameterTypes, Object[] parameterValues)
throws Exception {
Object[] remoteParameterValues = new Object[parameterValues.length];
for (int i = 0; i < parameterValues.length; i++) {
if (parameterValues[i] != null) {
remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
}
}
Class<?> remoteModelClass = _emailTemplateAttachmentRemoteModel.getClass();
ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();
Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];
for (int i = 0; i < parameterTypes.length; i++) {
if (parameterTypes[i].isPrimitive()) {
remoteParameterTypes[i] = parameterTypes[i];
}
else {
String parameterTypeName = parameterTypes[i].getName();
remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
}
}
Method method = remoteModelClass.getMethod(methodName,
remoteParameterTypes);
Object returnValue = method.invoke(_emailTemplateAttachmentRemoteModel,
remoteParameterValues);
if (returnValue != null) {
returnValue = ClpSerializer.translateOutput(returnValue);
}
return returnValue;
}
@Override
public void persist() throws SystemException {
if (this.isNew()) {
EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment(this);
}
else {
EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment(this);
}
}
@Override
public EmailTemplateAttachment toEscapedModel() {
return (EmailTemplateAttachment)ProxyUtil.newProxyInstance(EmailTemplateAttachment.class.getClassLoader(),
new Class[] { EmailTemplateAttachment.class },
new AutoEscapeBeanHandler(this));
}
@Override
public Object clone() {
EmailTemplateAttachmentClp clone = new EmailTemplateAttachmentClp();
clone.setEmailTemplateId(getEmailTemplateId());
clone.setFileEntryId(getFileEntryId());
return clone;
}
@Override
public int compareTo(EmailTemplateAttachment emailTemplateAttachment) {
EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey();
return getPrimaryKey().compareTo(primaryKey);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof EmailTemplateAttachmentClp)) {
return false;
}
EmailTemplateAttachmentClp emailTemplateAttachment = (EmailTemplateAttachmentClp)obj;
EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey();
if (getPrimaryKey().equals(primaryKey)) {
return true;
}
else {
return false;
}
}
public Class<?> getClpSerializerClass() {
return _clpSerializerClass;
}
@Override
public int hashCode() {
return getPrimaryKey().hashCode();
}
@Override
public String toString() {
StringBundler sb = new StringBundler(5);
sb.append("{emailTemplateId=");
sb.append(getEmailTemplateId());
sb.append(", fileEntryId=");
sb.append(getFileEntryId());
sb.append("}");
return sb.toString();
}
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(10);
sb.append("<model><model-name>");
sb.append(
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment");
sb.append("</model-name>");
sb.append(
"<column><column-name>emailTemplateId</column-name><column-value><![CDATA[");
sb.append(getEmailTemplateId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>fileEntryId</column-name><column-value><![CDATA[");
sb.append(getFileEntryId());
sb.append("]]></column-value></column>");
sb.append("</model>");
return sb.toString();
}
private long _emailTemplateId;
private long _fileEntryId;
private BaseModel<?> _emailTemplateAttachmentRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.mailmanager.service.ClpSerializer.class;
}

146
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java

@ -1,146 +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.mailmanager.model;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.expando.model.ExpandoBridge;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK;
import java.io.Serializable;
/**
* The base model interface for the EmailTemplateAttachment service. Represents a row in the &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl}.
* </p>
*
* @author
* @see EmailTemplateAttachment
* @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl
* @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl
* @generated
*/
public interface EmailTemplateAttachmentModel extends BaseModel<EmailTemplateAttachment> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a email template attachment model instance should use the {@link EmailTemplateAttachment} interface instead.
*/
/**
* Returns the primary key of this email template attachment.
*
* @return the primary key of this email template attachment
*/
public EmailTemplateAttachmentPK getPrimaryKey();
/**
* Sets the primary key of this email template attachment.
*
* @param primaryKey the primary key of this email template attachment
*/
public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey);
/**
* Returns the email template ID of this email template attachment.
*
* @return the email template ID of this email template attachment
*/
public long getEmailTemplateId();
/**
* Sets the email template ID of this email template attachment.
*
* @param emailTemplateId the email template ID of this email template attachment
*/
public void setEmailTemplateId(long emailTemplateId);
/**
* Returns the file entry ID of this email template attachment.
*
* @return the file entry ID of this email template attachment
*/
public long getFileEntryId();
/**
* Sets the file entry ID of this email template attachment.
*
* @param fileEntryId the file entry ID of this email template attachment
*/
public void setFileEntryId(long fileEntryId);
@Override
public boolean isNew();
@Override
public void setNew(boolean n);
@Override
public boolean isCachedModel();
@Override
public void setCachedModel(boolean cachedModel);
@Override
public boolean isEscapedModel();
@Override
public Serializable getPrimaryKeyObj();
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj);
@Override
public ExpandoBridge getExpandoBridge();
@Override
public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext);
@Override
public Object clone();
@Override
public int compareTo(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment);
@Override
public int hashCode();
@Override
public CacheModel<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> toCacheModel();
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toEscapedModel();
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toUnescapedModel();
@Override
public String toString();
@Override
public String toXmlString();
}

111
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java

@ -1,111 +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.mailmanager.model;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* This class is used by SOAP remote services.
*
* @author
* @generated
*/
public class EmailTemplateAttachmentSoap implements Serializable {
public static EmailTemplateAttachmentSoap toSoapModel(
EmailTemplateAttachment model) {
EmailTemplateAttachmentSoap soapModel = new EmailTemplateAttachmentSoap();
soapModel.setEmailTemplateId(model.getEmailTemplateId());
soapModel.setFileEntryId(model.getFileEntryId());
return soapModel;
}
public static EmailTemplateAttachmentSoap[] toSoapModels(
EmailTemplateAttachment[] models) {
EmailTemplateAttachmentSoap[] soapModels = new EmailTemplateAttachmentSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static EmailTemplateAttachmentSoap[][] toSoapModels(
EmailTemplateAttachment[][] models) {
EmailTemplateAttachmentSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new EmailTemplateAttachmentSoap[models.length][models[0].length];
}
else {
soapModels = new EmailTemplateAttachmentSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static EmailTemplateAttachmentSoap[] toSoapModels(
List<EmailTemplateAttachment> models) {
List<EmailTemplateAttachmentSoap> soapModels = new ArrayList<EmailTemplateAttachmentSoap>(models.size());
for (EmailTemplateAttachment model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new EmailTemplateAttachmentSoap[soapModels.size()]);
}
public EmailTemplateAttachmentSoap() {
}
public EmailTemplateAttachmentPK getPrimaryKey() {
return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId);
}
public void setPrimaryKey(EmailTemplateAttachmentPK pk) {
setEmailTemplateId(pk.emailTemplateId);
setFileEntryId(pk.fileEntryId);
}
public long getEmailTemplateId() {
return _emailTemplateId;
}
public void setEmailTemplateId(long emailTemplateId) {
_emailTemplateId = emailTemplateId;
}
public long getFileEntryId() {
return _fileEntryId;
}
public void setFileEntryId(long fileEntryId) {
_fileEntryId = fileEntryId;
}
private long _emailTemplateId;
private long _fileEntryId;
}

278
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java

@ -1,278 +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.mailmanager.model;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* This class is a wrapper for {@link EmailTemplateAttachment}.
* </p>
*
* @author
* @see EmailTemplateAttachment
* @generated
*/
public class EmailTemplateAttachmentWrapper implements EmailTemplateAttachment,
ModelWrapper<EmailTemplateAttachment> {
public EmailTemplateAttachmentWrapper(
EmailTemplateAttachment emailTemplateAttachment) {
_emailTemplateAttachment = emailTemplateAttachment;
}
@Override
public Class<?> getModelClass() {
return EmailTemplateAttachment.class;
}
@Override
public String getModelClassName() {
return EmailTemplateAttachment.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long emailTemplateId = (Long)attributes.get("emailTemplateId");
if (emailTemplateId != null) {
setEmailTemplateId(emailTemplateId);
}
Long fileEntryId = (Long)attributes.get("fileEntryId");
if (fileEntryId != null) {
setFileEntryId(fileEntryId);
}
}
/**
* Returns the primary key of this email template attachment.
*
* @return the primary key of this email template attachment
*/
@Override
public it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK getPrimaryKey() {
return _emailTemplateAttachment.getPrimaryKey();
}
/**
* Sets the primary key of this email template attachment.
*
* @param primaryKey the primary key of this email template attachment
*/
@Override
public void setPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK primaryKey) {
_emailTemplateAttachment.setPrimaryKey(primaryKey);
}
/**
* Returns the email template ID of this email template attachment.
*
* @return the email template ID of this email template attachment
*/
@Override
public long getEmailTemplateId() {
return _emailTemplateAttachment.getEmailTemplateId();
}
/**
* Sets the email template ID of this email template attachment.
*
* @param emailTemplateId the email template ID of this email template attachment
*/
@Override
public void setEmailTemplateId(long emailTemplateId) {
_emailTemplateAttachment.setEmailTemplateId(emailTemplateId);
}
/**
* Returns the file entry ID of this email template attachment.
*
* @return the file entry ID of this email template attachment
*/
@Override
public long getFileEntryId() {
return _emailTemplateAttachment.getFileEntryId();
}
/**
* Sets the file entry ID of this email template attachment.
*
* @param fileEntryId the file entry ID of this email template attachment
*/
@Override
public void setFileEntryId(long fileEntryId) {
_emailTemplateAttachment.setFileEntryId(fileEntryId);
}
@Override
public boolean isNew() {
return _emailTemplateAttachment.isNew();
}
@Override
public void setNew(boolean n) {
_emailTemplateAttachment.setNew(n);
}
@Override
public boolean isCachedModel() {
return _emailTemplateAttachment.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_emailTemplateAttachment.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _emailTemplateAttachment.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _emailTemplateAttachment.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_emailTemplateAttachment.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _emailTemplateAttachment.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel<?> baseModel) {
_emailTemplateAttachment.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_emailTemplateAttachment.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_emailTemplateAttachment.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new EmailTemplateAttachmentWrapper((EmailTemplateAttachment)_emailTemplateAttachment.clone());
}
@Override
public int compareTo(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) {
return _emailTemplateAttachment.compareTo(emailTemplateAttachment);
}
@Override
public int hashCode() {
return _emailTemplateAttachment.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> toCacheModel() {
return _emailTemplateAttachment.toCacheModel();
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toEscapedModel() {
return new EmailTemplateAttachmentWrapper(_emailTemplateAttachment.toEscapedModel());
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toUnescapedModel() {
return new EmailTemplateAttachmentWrapper(_emailTemplateAttachment.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _emailTemplateAttachment.toString();
}
@Override
public java.lang.String toXmlString() {
return _emailTemplateAttachment.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_emailTemplateAttachment.persist();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof EmailTemplateAttachmentWrapper)) {
return false;
}
EmailTemplateAttachmentWrapper emailTemplateAttachmentWrapper = (EmailTemplateAttachmentWrapper)obj;
if (Validator.equals(_emailTemplateAttachment,
emailTemplateAttachmentWrapper._emailTemplateAttachment)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public EmailTemplateAttachment getWrappedEmailTemplateAttachment() {
return _emailTemplateAttachment;
}
@Override
public EmailTemplateAttachment getWrappedModel() {
return _emailTemplateAttachment;
}
@Override
public void resetOriginalValues() {
_emailTemplateAttachment.resetOriginalValues();
}
private EmailTemplateAttachment _emailTemplateAttachment;
}

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

@ -1,256 +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.mailmanager.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.service.BaseLocalService;
import com.liferay.portal.service.InvokableLocalService;
import com.liferay.portal.service.PersistedModelLocalService;
/**
* Provides the local service interface for EmailTemplateAttachment. Methods of this
* service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same
* VM.
*
* @author
* @see EmailTemplateAttachmentLocalServiceUtil
* @see it.tref.liferay.portos.mailmanager.service.base.EmailTemplateAttachmentLocalServiceBaseImpl
* @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl
* @generated
*/
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface EmailTemplateAttachmentLocalService extends BaseLocalService,
InvokableLocalService, PersistedModelLocalService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link EmailTemplateAttachmentLocalServiceUtil} to access the email template attachment local service. Add custom service methods to {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
/**
* Adds the email template attachment to the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was added
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK);
/**
* Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Deletes the email template attachment from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException;
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the email template attachment with the primary key.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Override
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> getEmailTemplateAttachments(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getEmailTemplateAttachmentsCount()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was updated
* @throws SystemException if a system exception occurred
*/
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public java.lang.String getBeanIdentifier();
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public void setBeanIdentifier(java.lang.String beanIdentifier);
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
}

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

@ -1,733 +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.mailmanager.service;
import com.liferay.portal.service.InvokableLocalService;
/**
* @author
* @generated
*/
public class EmailTemplateAttachmentLocalServiceClp
implements EmailTemplateAttachmentLocalService {
public EmailTemplateAttachmentLocalServiceClp(
InvokableLocalService invokableLocalService) {
_invokableLocalService = invokableLocalService;
_methodName0 = "addEmailTemplateAttachment";
_methodParameterTypes0 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName1 = "createEmailTemplateAttachment";
_methodParameterTypes1 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName2 = "deleteEmailTemplateAttachment";
_methodParameterTypes2 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName3 = "deleteEmailTemplateAttachment";
_methodParameterTypes3 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName4 = "dynamicQuery";
_methodParameterTypes4 = new String[] { };
_methodName5 = "dynamicQuery";
_methodParameterTypes5 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName6 = "dynamicQuery";
_methodParameterTypes6 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName7 = "dynamicQuery";
_methodParameterTypes7 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName8 = "dynamicQueryCount";
_methodParameterTypes8 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName9 = "dynamicQueryCount";
_methodParameterTypes9 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery",
"com.liferay.portal.kernel.dao.orm.Projection"
};
_methodName10 = "fetchEmailTemplateAttachment";
_methodParameterTypes10 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName11 = "getEmailTemplateAttachment";
_methodParameterTypes11 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName12 = "getPersistedModel";
_methodParameterTypes12 = new String[] { "java.io.Serializable" };
_methodName13 = "getEmailTemplateAttachments";
_methodParameterTypes13 = new String[] { "int", "int" };
_methodName14 = "getEmailTemplateAttachmentsCount";
_methodParameterTypes14 = new String[] { };
_methodName15 = "updateEmailTemplateAttachment";
_methodParameterTypes15 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName16 = "getBeanIdentifier";
_methodParameterTypes16 = new String[] { };
_methodName17 = "setBeanIdentifier";
_methodParameterTypes17 = new String[] { "java.lang.String" };
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName0,
_methodParameterTypes0,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachment)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName1,
_methodParameterTypes1,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachmentPK)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName2,
_methodParameterTypes2,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachmentPK)
});
}
catch (Throwable 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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName3,
_methodParameterTypes3,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachment)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName4,
_methodParameterTypes4, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName6,
_methodParameterTypes6,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName7,
_methodParameterTypes7,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end,
ClpSerializer.translateInput(orderByComparator)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List)ClpSerializer.translateOutput(returnObj);
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName8,
_methodParameterTypes8,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Long)returnObj).longValue();
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName9,
_methodParameterTypes9,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
ClpSerializer.translateInput(projection)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Long)returnObj).longValue();
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName10,
_methodParameterTypes10,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachmentPK)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName11,
_methodParameterTypes11,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachmentPK)
});
}
catch (Throwable 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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName12,
_methodParameterTypes12,
new Object[] { ClpSerializer.translateInput(primaryKeyObj) });
}
catch (Throwable 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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> getEmailTemplateAttachments(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName13,
_methodParameterTypes13, new Object[] { start, end });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int getEmailTemplateAttachmentsCount()
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName14,
_methodParameterTypes14, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Integer)returnObj).intValue();
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName15,
_methodParameterTypes15,
new Object[] {
ClpSerializer.translateInput(emailTemplateAttachment)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.lang.String getBeanIdentifier() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName16,
_methodParameterTypes16, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
}
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
try {
_invokableLocalService.invokeMethod(_methodName17,
_methodParameterTypes17,
new Object[] { ClpSerializer.translateInput(beanIdentifier) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
throw new UnsupportedOperationException();
}
private InvokableLocalService _invokableLocalService;
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName16;
private String[] _methodParameterTypes16;
private String _methodName17;
private String[] _methodParameterTypes17;
}

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

@ -1,313 +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.mailmanager.service;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.InvokableLocalService;
/**
* Provides the local service utility for EmailTemplateAttachment. This utility wraps
* {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and is the
* primary access point for service operations in application layer code running
* on the local server. Methods of this service will not have security checks
* based on the propagated JAAS credentials because this service can only be
* accessed from within the same VM.
*
* @author
* @see EmailTemplateAttachmentLocalService
* @see it.tref.liferay.portos.mailmanager.service.base.EmailTemplateAttachmentLocalServiceBaseImpl
* @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl
* @generated
*/
public class EmailTemplateAttachmentLocalServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Adds the email template attachment to the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was added
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().addEmailTemplateAttachment(emailTemplateAttachment);
}
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) {
return getService()
.createEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.deleteEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.deleteEmailTemplateAttachment(emailTemplateAttachment);
}
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return getService().dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.dynamicQuery(dynamicQuery, start, end, orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery, projection);
}
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.fetchEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Returns the email template attachment with the primary key.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getEmailTemplateAttachment(emailTemplateAttachmentPK);
}
public static com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getPersistedModel(primaryKeyObj);
}
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> getEmailTemplateAttachments(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getEmailTemplateAttachments(start, end);
}
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
public static int getEmailTemplateAttachmentsCount()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getEmailTemplateAttachmentsCount();
}
/**
* Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was updated
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateEmailTemplateAttachment(emailTemplateAttachment);
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static void clearService() {
_service = null;
}
public static EmailTemplateAttachmentLocalService getService() {
if (_service == null) {
InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
EmailTemplateAttachmentLocalService.class.getName());
if (invokableLocalService instanceof EmailTemplateAttachmentLocalService) {
_service = (EmailTemplateAttachmentLocalService)invokableLocalService;
}
else {
_service = new EmailTemplateAttachmentLocalServiceClp(invokableLocalService);
}
ReferenceRegistry.registerReference(EmailTemplateAttachmentLocalServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(EmailTemplateAttachmentLocalService service) {
}
private static EmailTemplateAttachmentLocalService _service;
}

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

@ -1,320 +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.mailmanager.service;
import com.liferay.portal.service.ServiceWrapper;
/**
* Provides a wrapper for {@link EmailTemplateAttachmentLocalService}.
*
* @author
* @see EmailTemplateAttachmentLocalService
* @generated
*/
public class EmailTemplateAttachmentLocalServiceWrapper
implements EmailTemplateAttachmentLocalService,
ServiceWrapper<EmailTemplateAttachmentLocalService> {
public EmailTemplateAttachmentLocalServiceWrapper(
EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) {
_emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService;
}
/**
* Adds the email template attachment to the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was added
* @throws SystemException if a system exception occurred
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.addEmailTemplateAttachment(emailTemplateAttachment);
}
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) {
return _emailTemplateAttachmentLocalService.createEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.deleteEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.deleteEmailTemplateAttachment(emailTemplateAttachment);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _emailTemplateAttachmentLocalService.dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery,
start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery,
start, end, orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.dynamicQueryCount(dynamicQuery,
projection);
}
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.fetchEmailTemplateAttachment(emailTemplateAttachmentPK);
}
/**
* Returns the email template attachment with the primary key.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.getEmailTemplateAttachment(emailTemplateAttachmentPK);
}
@Override
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.getPersistedModel(primaryKeyObj);
}
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> getEmailTemplateAttachments(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.getEmailTemplateAttachments(start,
end);
}
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
@Override
public int getEmailTemplateAttachmentsCount()
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.getEmailTemplateAttachmentsCount();
}
/**
* Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was updated
* @throws SystemException if a system exception occurred
*/
@Override
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return _emailTemplateAttachmentLocalService.updateEmailTemplateAttachment(emailTemplateAttachment);
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public java.lang.String getBeanIdentifier() {
return _emailTemplateAttachmentLocalService.getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
_emailTemplateAttachmentLocalService.setBeanIdentifier(beanIdentifier);
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return _emailTemplateAttachmentLocalService.invokeMethod(name,
parameterTypes, arguments);
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/
public EmailTemplateAttachmentLocalService getWrappedEmailTemplateAttachmentLocalService() {
return _emailTemplateAttachmentLocalService;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
*/
public void setWrappedEmailTemplateAttachmentLocalService(
EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) {
_emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService;
}
@Override
public EmailTemplateAttachmentLocalService getWrappedService() {
return _emailTemplateAttachmentLocalService;
}
@Override
public void setWrappedService(
EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) {
_emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService;
}
private EmailTemplateAttachmentLocalService _emailTemplateAttachmentLocalService;
}

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);
} }

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

@ -1,38 +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.mailmanager.service.persistence;
import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil;
/**
* @author
* @generated
*/
public abstract class EmailTemplateAttachmentActionableDynamicQuery
extends BaseActionableDynamicQuery {
public EmailTemplateAttachmentActionableDynamicQuery()
throws SystemException {
setBaseLocalService(EmailTemplateAttachmentLocalServiceUtil.getService());
setClass(EmailTemplateAttachment.class);
setClassLoader(it.tref.liferay.portos.mailmanager.service.ClpSerializer.class.getClassLoader());
setPrimaryKeyPropertyName("primaryKey.emailTemplateId");
}
}

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

@ -1,140 +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.mailmanager.service.persistence;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import java.io.Serializable;
/**
* @author
* @generated
*/
public class EmailTemplateAttachmentPK implements Comparable<EmailTemplateAttachmentPK>,
Serializable {
public long emailTemplateId;
public long fileEntryId;
public EmailTemplateAttachmentPK() {
}
public EmailTemplateAttachmentPK(long emailTemplateId, long fileEntryId) {
this.emailTemplateId = emailTemplateId;
this.fileEntryId = fileEntryId;
}
public long getEmailTemplateId() {
return emailTemplateId;
}
public void setEmailTemplateId(long emailTemplateId) {
this.emailTemplateId = emailTemplateId;
}
public long getFileEntryId() {
return fileEntryId;
}
public void setFileEntryId(long fileEntryId) {
this.fileEntryId = fileEntryId;
}
@Override
public int compareTo(EmailTemplateAttachmentPK pk) {
if (pk == null) {
return -1;
}
int value = 0;
if (emailTemplateId < pk.emailTemplateId) {
value = -1;
}
else if (emailTemplateId > pk.emailTemplateId) {
value = 1;
}
else {
value = 0;
}
if (value != 0) {
return value;
}
if (fileEntryId < pk.fileEntryId) {
value = -1;
}
else if (fileEntryId > pk.fileEntryId) {
value = 1;
}
else {
value = 0;
}
if (value != 0) {
return value;
}
return 0;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof EmailTemplateAttachmentPK)) {
return false;
}
EmailTemplateAttachmentPK pk = (EmailTemplateAttachmentPK)obj;
if ((emailTemplateId == pk.emailTemplateId) &&
(fileEntryId == pk.fileEntryId)) {
return true;
}
else {
return false;
}
}
@Override
public int hashCode() {
return (String.valueOf(emailTemplateId) + String.valueOf(fileEntryId)).hashCode();
}
@Override
public String toString() {
StringBundler sb = new StringBundler(10);
sb.append(StringPool.OPEN_CURLY_BRACE);
sb.append("emailTemplateId");
sb.append(StringPool.EQUAL);
sb.append(emailTemplateId);
sb.append(StringPool.COMMA);
sb.append(StringPool.SPACE);
sb.append("fileEntryId");
sb.append(StringPool.EQUAL);
sb.append(fileEntryId);
sb.append(StringPool.CLOSE_CURLY_BRACE);
return sb.toString();
}
}

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

@ -1,362 +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.mailmanager.service.persistence;
import com.liferay.portal.service.persistence.BasePersistence;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
/**
* The persistence interface for the email template attachment service.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author
* @see EmailTemplateAttachmentPersistenceImpl
* @see EmailTemplateAttachmentUtil
* @generated
*/
public interface EmailTemplateAttachmentPersistence extends BasePersistence<EmailTemplateAttachment> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link EmailTemplateAttachmentUtil} to access the email template attachment persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the email template attachments where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @return the matching email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the email template attachments where emailTemplateId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param emailTemplateId the email template ID
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the email template attachments where emailTemplateId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param emailTemplateId the email template ID
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_First(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Returns the first email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_First(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_Last(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Returns the last email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_Last(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the email template attachments before and after the current email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateAttachmentPK the primary key of the current email template attachment
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment[] findByEmailTemplateId_PrevAndNext(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK,
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Removes all the email template attachments where emailTemplateId = &#63; from the database.
*
* @param emailTemplateId the email template ID
* @throws SystemException if a system exception occurred
*/
public void removeByEmailTemplateId(long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of email template attachments where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @return the number of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public int countByEmailTemplateId(long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the email template attachment where fileEntryId = &#63; or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Returns the email template attachment where fileEntryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the email template attachment where fileEntryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param fileEntryId the file entry ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId(
long fileEntryId, boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the email template attachment where fileEntryId = &#63; from the database.
*
* @param fileEntryId the file entry ID
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment removeByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Returns the number of email template attachments where fileEntryId = &#63;.
*
* @param fileEntryId the file entry ID
* @return the number of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public int countByFileEntryId(long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Caches the email template attachment in the entity cache if it is enabled.
*
* @param emailTemplateAttachment the email template attachment
*/
public void cacheResult(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment);
/**
* Caches the email template attachments in the entity cache if it is enabled.
*
* @param emailTemplateAttachments the email template attachments
*/
public void cacheResult(
java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> emailTemplateAttachments);
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment create(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK);
/**
* Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment remove(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateImpl(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the email template attachment with the primary key or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException;
/**
* Returns the email template attachment with the primary key or returns <code>null</code> if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment, or <code>null</code> if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the email template attachments.
*
* @return the email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the email template attachments from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
}

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

@ -1,526 +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.mailmanager.service.persistence;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import java.util.List;
/**
* The persistence utility for the email template attachment service. This utility wraps {@link EmailTemplateAttachmentPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author
* @see EmailTemplateAttachmentPersistence
* @see EmailTemplateAttachmentPersistenceImpl
* @generated
*/
public class EmailTemplateAttachmentUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
*/
public static void clearCache(
EmailTemplateAttachment emailTemplateAttachment) {
getPersistence().clearCache(emailTemplateAttachment);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List<EmailTemplateAttachment> findWithDynamicQuery(
DynamicQuery dynamicQuery) throws SystemException {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List<EmailTemplateAttachment> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end)
throws SystemException {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List<EmailTemplateAttachment> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
return getPersistence()
.findWithDynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
*/
public static EmailTemplateAttachment update(
EmailTemplateAttachment emailTemplateAttachment)
throws SystemException {
return getPersistence().update(emailTemplateAttachment);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
*/
public static EmailTemplateAttachment update(
EmailTemplateAttachment emailTemplateAttachment,
ServiceContext serviceContext) throws SystemException {
return getPersistence().update(emailTemplateAttachment, serviceContext);
}
/**
* Returns all the email template attachments where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @return the matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findByEmailTemplateId(emailTemplateId);
}
/**
* Returns a range of all the email template attachments where emailTemplateId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param emailTemplateId the email template ID
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByEmailTemplateId(emailTemplateId, start, end);
}
/**
* Returns an ordered range of all the email template attachments where emailTemplateId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param emailTemplateId the email template ID
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.findByEmailTemplateId(emailTemplateId, start, end,
orderByComparator);
}
/**
* Returns the first email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_First(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence()
.findByEmailTemplateId_First(emailTemplateId,
orderByComparator);
}
/**
* Returns the first email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_First(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByEmailTemplateId_First(emailTemplateId,
orderByComparator);
}
/**
* Returns the last email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_Last(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence()
.findByEmailTemplateId_Last(emailTemplateId,
orderByComparator);
}
/**
* Returns the last email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_Last(
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByEmailTemplateId_Last(emailTemplateId,
orderByComparator);
}
/**
* Returns the email template attachments before and after the current email template attachment in the ordered set where emailTemplateId = &#63;.
*
* @param emailTemplateAttachmentPK the primary key of the current email template attachment
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment[] findByEmailTemplateId_PrevAndNext(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK,
long emailTemplateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence()
.findByEmailTemplateId_PrevAndNext(emailTemplateAttachmentPK,
emailTemplateId, orderByComparator);
}
/**
* Removes all the email template attachments where emailTemplateId = &#63; from the database.
*
* @param emailTemplateId the email template ID
* @throws SystemException if a system exception occurred
*/
public static void removeByEmailTemplateId(long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException {
getPersistence().removeByEmailTemplateId(emailTemplateId);
}
/**
* Returns the number of email template attachments where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @return the number of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static int countByEmailTemplateId(long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().countByEmailTemplateId(emailTemplateId);
}
/**
* Returns the email template attachment where fileEntryId = &#63; or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence().findByFileEntryId(fileEntryId);
}
/**
* Returns the email template attachment where fileEntryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByFileEntryId(fileEntryId);
}
/**
* Returns the email template attachment where fileEntryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param fileEntryId the file entry ID
* @param retrieveFromCache whether to use the finder cache
* @return the matching email template attachment, or <code>null</code> if a matching email template attachment could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId(
long fileEntryId, boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence()
.fetchByFileEntryId(fileEntryId, retrieveFromCache);
}
/**
* Removes the email template attachment where fileEntryId = &#63; from the database.
*
* @param fileEntryId the file entry ID
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment removeByFileEntryId(
long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence().removeByFileEntryId(fileEntryId);
}
/**
* Returns the number of email template attachments where fileEntryId = &#63;.
*
* @param fileEntryId the file entry ID
* @return the number of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static int countByFileEntryId(long fileEntryId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().countByFileEntryId(fileEntryId);
}
/**
* Caches the email template attachment in the entity cache if it is enabled.
*
* @param emailTemplateAttachment the email template attachment
*/
public static void cacheResult(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) {
getPersistence().cacheResult(emailTemplateAttachment);
}
/**
* Caches the email template attachments in the entity cache if it is enabled.
*
* @param emailTemplateAttachments the email template attachments
*/
public static void cacheResult(
java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> emailTemplateAttachments) {
getPersistence().cacheResult(emailTemplateAttachments);
}
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment create(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) {
return getPersistence().create(emailTemplateAttachmentPK);
}
/**
* Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment remove(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence().remove(emailTemplateAttachmentPK);
}
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateImpl(
it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().updateImpl(emailTemplateAttachment);
}
/**
* Returns the email template attachment with the primary key or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException {
return getPersistence().findByPrimaryKey(emailTemplateAttachmentPK);
}
/**
* Returns the email template attachment with the primary key or returns <code>null</code> if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment, or <code>null</code> if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByPrimaryKey(emailTemplateAttachmentPK);
}
/**
* Returns all the email template attachments.
*
* @return the email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll();
}
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Removes all the email template attachments from the database.
*
* @throws SystemException if a system exception occurred
*/
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException {
getPersistence().removeAll();
}
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().countAll();
}
public static EmailTemplateAttachmentPersistence getPersistence() {
if (_persistence == null) {
_persistence = (EmailTemplateAttachmentPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.mailmanager.service.ClpSerializer.getServletContextName(),
EmailTemplateAttachmentPersistence.class.getName());
ReferenceRegistry.registerReference(EmailTemplateAttachmentUtil.class,
"_persistence");
}
return _persistence;
}
/**
* @deprecated As of 6.2.0
*/
public void setPersistence(EmailTemplateAttachmentPersistence persistence) {
}
private static EmailTemplateAttachmentPersistence _persistence;
}

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

@ -4,7 +4,6 @@ IX_58C7CF0B=portos_Mail_Email.C_G_C_C
IX_489D58F=portos_Mail_Email.C_G_T IX_489D58F=portos_Mail_Email.C_G_T
IX_489D58F=portos_Mail_Email.C_T IX_489D58F=portos_Mail_Email.C_T
IX_73A01DF4=portos_Mail_Email.Company IX_73A01DF4=portos_Mail_Email.Company
IX_73A01DF4=portos_Mail_Email.G_C
IX_20966470=portos_Mail_EmailAttachment.EmailId IX_20966470=portos_Mail_EmailAttachment.EmailId
IX_CF970AA=portos_Mail_EmailAttachment.FileEntryId IX_CF970AA=portos_Mail_EmailAttachment.FileEntryId
@ -13,6 +12,3 @@ IX_59165C50=portos_Mail_EmailTemplate.C_GroupId
IX_6935F329=portos_Mail_EmailTemplate.C_GroupId_Name IX_6935F329=portos_Mail_EmailTemplate.C_GroupId_Name
IX_EE0B52F3=portos_Mail_EmailTemplate.C_Name IX_EE0B52F3=portos_Mail_EmailTemplate.C_Name
IX_28EAC59A=portos_Mail_EmailTemplate.Company IX_28EAC59A=portos_Mail_EmailTemplate.Company
IX_EC38E0B0=portos_Mail_EmailTemplateAttachment.EmailTemplateId
IX_4577CF50=portos_Mail_EmailTemplateAttachment.FileEntryId

3
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/sql/indexes.sql

@ -11,6 +11,3 @@ create index IX_28EAC59A on portos_Mail_EmailTemplate (companyId);
create index IX_59165C50 on portos_Mail_EmailTemplate (companyId, groupId); create index IX_59165C50 on portos_Mail_EmailTemplate (companyId, groupId);
create unique index IX_6935F329 on portos_Mail_EmailTemplate (companyId, groupId, templateName); create unique index IX_6935F329 on portos_Mail_EmailTemplate (companyId, groupId, templateName);
create unique index IX_EE0B52F3 on portos_Mail_EmailTemplate (companyId, templateName); create unique index IX_EE0B52F3 on portos_Mail_EmailTemplate (companyId, templateName);
create index IX_EC38E0B0 on portos_Mail_EmailTemplateAttachment (emailTemplateId);
create index IX_4577CF50 on portos_Mail_EmailTemplateAttachment (fileEntryId);

6
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/sql/tables.sql

@ -55,9 +55,3 @@ create table portos_Mail_EmailTemplate (
attachmentPermitted BOOLEAN, attachmentPermitted BOOLEAN,
additionalParameters VARCHAR(75) null additionalParameters VARCHAR(75) null
); );
create table portos_Mail_EmailTemplateAttachment (
emailTemplateId LONG not null,
fileEntryId LONG not null,
primary key (emailTemplateId, fileEntryId)
);

50
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java

@ -1,50 +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.mailmanager.model.impl;
import com.liferay.portal.kernel.exception.SystemException;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil;
/**
* The extended model base implementation for the EmailTemplateAttachment service. Represents a row in the &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link EmailTemplateAttachmentImpl}.
* </p>
*
* @author
* @see EmailTemplateAttachmentImpl
* @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment
* @generated
*/
public abstract class EmailTemplateAttachmentBaseImpl
extends EmailTemplateAttachmentModelImpl implements EmailTemplateAttachment {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. All methods that expect a email template attachment model instance should use the {@link EmailTemplateAttachment} interface instead.
*/
@Override
public void persist() throws SystemException {
if (this.isNew()) {
EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment(this);
}
else {
EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment(this);
}
}
}

76
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java

@ -1,76 +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.mailmanager.model.impl;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.CacheModel;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/**
* The cache model class for representing EmailTemplateAttachment in entity cache.
*
* @author
* @see EmailTemplateAttachment
* @generated
*/
public class EmailTemplateAttachmentCacheModel implements CacheModel<EmailTemplateAttachment>,
Externalizable {
@Override
public String toString() {
StringBundler sb = new StringBundler(5);
sb.append("{emailTemplateId=");
sb.append(emailTemplateId);
sb.append(", fileEntryId=");
sb.append(fileEntryId);
sb.append("}");
return sb.toString();
}
@Override
public EmailTemplateAttachment toEntityModel() {
EmailTemplateAttachmentImpl emailTemplateAttachmentImpl = new EmailTemplateAttachmentImpl();
emailTemplateAttachmentImpl.setEmailTemplateId(emailTemplateId);
emailTemplateAttachmentImpl.setFileEntryId(fileEntryId);
emailTemplateAttachmentImpl.resetOriginalValues();
return emailTemplateAttachmentImpl;
}
@Override
public void readExternal(ObjectInput objectInput) throws IOException {
emailTemplateId = objectInput.readLong();
fileEntryId = objectInput.readLong();
}
@Override
public void writeExternal(ObjectOutput objectOutput)
throws IOException {
objectOutput.writeLong(emailTemplateId);
objectOutput.writeLong(fileEntryId);
}
public long emailTemplateId;
public long fileEntryId;
}

34
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java

@ -1,34 +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.mailmanager.model.impl;
/**
* The extended model implementation for the EmailTemplateAttachment service. Represents a row in the &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface.
* </p>
*
* @author
*/
public class EmailTemplateAttachmentImpl extends EmailTemplateAttachmentBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a email template attachment model instance should use the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface instead.
*/
public EmailTemplateAttachmentImpl() {
}
}

318
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java

@ -1,318 +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.mailmanager.model.impl;
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK;
import java.io.Serializable;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
/**
* The base model implementation for the EmailTemplateAttachment service. Represents a row in the &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This implementation and its corresponding interface {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link EmailTemplateAttachmentImpl}.
* </p>
*
* @author
* @see EmailTemplateAttachmentImpl
* @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment
* @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel
* @generated
*/
public class EmailTemplateAttachmentModelImpl extends BaseModelImpl<EmailTemplateAttachment>
implements EmailTemplateAttachmentModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. All methods that expect a email template attachment model instance should use the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface instead.
*/
public static final String TABLE_NAME = "portos_Mail_EmailTemplateAttachment";
public static final Object[][] TABLE_COLUMNS = {
{ "emailTemplateId", Types.BIGINT },
{ "fileEntryId", Types.BIGINT }
};
public static final String TABLE_SQL_CREATE = "create table portos_Mail_EmailTemplateAttachment (emailTemplateId LONG not null,fileEntryId LONG not null,primary key (emailTemplateId, fileEntryId))";
public static final String TABLE_SQL_DROP = "drop table portos_Mail_EmailTemplateAttachment";
public static final String ORDER_BY_JPQL = " ORDER BY emailTemplateAttachment.id.emailTemplateId ASC, emailTemplateAttachment.id.fileEntryId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_Mail_EmailTemplateAttachment.emailTemplateId ASC, portos_Mail_EmailTemplateAttachment.fileEntryId ASC";
public static final String DATA_SOURCE = "liferayDataSource";
public static final String SESSION_FACTORY = "liferaySessionFactory";
public static final String TX_MANAGER = "liferayTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"),
true);
public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.finder.cache.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"),
true);
public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.column.bitmask.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"),
true);
public static long EMAILTEMPLATEID_COLUMN_BITMASK = 1L;
public static long FILEENTRYID_COLUMN_BITMASK = 2L;
public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
"lock.expiration.time.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"));
public EmailTemplateAttachmentModelImpl() {
}
@Override
public EmailTemplateAttachmentPK getPrimaryKey() {
return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId);
}
@Override
public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey) {
setEmailTemplateId(primaryKey.emailTemplateId);
setFileEntryId(primaryKey.fileEntryId);
}
@Override
public Serializable getPrimaryKeyObj() {
return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
setPrimaryKey((EmailTemplateAttachmentPK)primaryKeyObj);
}
@Override
public Class<?> getModelClass() {
return EmailTemplateAttachment.class;
}
@Override
public String getModelClassName() {
return EmailTemplateAttachment.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long emailTemplateId = (Long)attributes.get("emailTemplateId");
if (emailTemplateId != null) {
setEmailTemplateId(emailTemplateId);
}
Long fileEntryId = (Long)attributes.get("fileEntryId");
if (fileEntryId != null) {
setFileEntryId(fileEntryId);
}
}
@Override
public long getEmailTemplateId() {
return _emailTemplateId;
}
@Override
public void setEmailTemplateId(long emailTemplateId) {
_columnBitmask |= EMAILTEMPLATEID_COLUMN_BITMASK;
if (!_setOriginalEmailTemplateId) {
_setOriginalEmailTemplateId = true;
_originalEmailTemplateId = _emailTemplateId;
}
_emailTemplateId = emailTemplateId;
}
public long getOriginalEmailTemplateId() {
return _originalEmailTemplateId;
}
@Override
public long getFileEntryId() {
return _fileEntryId;
}
@Override
public void setFileEntryId(long fileEntryId) {
_columnBitmask |= FILEENTRYID_COLUMN_BITMASK;
if (!_setOriginalFileEntryId) {
_setOriginalFileEntryId = true;
_originalFileEntryId = _fileEntryId;
}
_fileEntryId = fileEntryId;
}
public long getOriginalFileEntryId() {
return _originalFileEntryId;
}
public long getColumnBitmask() {
return _columnBitmask;
}
@Override
public EmailTemplateAttachment toEscapedModel() {
if (_escapedModel == null) {
_escapedModel = (EmailTemplateAttachment)ProxyUtil.newProxyInstance(_classLoader,
_escapedModelInterfaces, new AutoEscapeBeanHandler(this));
}
return _escapedModel;
}
@Override
public Object clone() {
EmailTemplateAttachmentImpl emailTemplateAttachmentImpl = new EmailTemplateAttachmentImpl();
emailTemplateAttachmentImpl.setEmailTemplateId(getEmailTemplateId());
emailTemplateAttachmentImpl.setFileEntryId(getFileEntryId());
emailTemplateAttachmentImpl.resetOriginalValues();
return emailTemplateAttachmentImpl;
}
@Override
public int compareTo(EmailTemplateAttachment emailTemplateAttachment) {
EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey();
return getPrimaryKey().compareTo(primaryKey);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof EmailTemplateAttachment)) {
return false;
}
EmailTemplateAttachment emailTemplateAttachment = (EmailTemplateAttachment)obj;
EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey();
if (getPrimaryKey().equals(primaryKey)) {
return true;
}
else {
return false;
}
}
@Override
public int hashCode() {
return getPrimaryKey().hashCode();
}
@Override
public void resetOriginalValues() {
EmailTemplateAttachmentModelImpl emailTemplateAttachmentModelImpl = this;
emailTemplateAttachmentModelImpl._originalEmailTemplateId = emailTemplateAttachmentModelImpl._emailTemplateId;
emailTemplateAttachmentModelImpl._setOriginalEmailTemplateId = false;
emailTemplateAttachmentModelImpl._originalFileEntryId = emailTemplateAttachmentModelImpl._fileEntryId;
emailTemplateAttachmentModelImpl._setOriginalFileEntryId = false;
emailTemplateAttachmentModelImpl._columnBitmask = 0;
}
@Override
public CacheModel<EmailTemplateAttachment> toCacheModel() {
EmailTemplateAttachmentCacheModel emailTemplateAttachmentCacheModel = new EmailTemplateAttachmentCacheModel();
emailTemplateAttachmentCacheModel.emailTemplateId = getEmailTemplateId();
emailTemplateAttachmentCacheModel.fileEntryId = getFileEntryId();
return emailTemplateAttachmentCacheModel;
}
@Override
public String toString() {
StringBundler sb = new StringBundler(5);
sb.append("{emailTemplateId=");
sb.append(getEmailTemplateId());
sb.append(", fileEntryId=");
sb.append(getFileEntryId());
sb.append("}");
return sb.toString();
}
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(10);
sb.append("<model><model-name>");
sb.append(
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment");
sb.append("</model-name>");
sb.append(
"<column><column-name>emailTemplateId</column-name><column-value><![CDATA[");
sb.append(getEmailTemplateId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>fileEntryId</column-name><column-value><![CDATA[");
sb.append(getFileEntryId());
sb.append("]]></column-value></column>");
sb.append("</model>");
return sb.toString();
}
private static ClassLoader _classLoader = EmailTemplateAttachment.class.getClassLoader();
private static Class<?>[] _escapedModelInterfaces = new Class[] {
EmailTemplateAttachment.class
};
private long _emailTemplateId;
private long _originalEmailTemplateId;
private boolean _setOriginalEmailTemplateId;
private long _fileEntryId;
private long _originalFileEntryId;
private boolean _setOriginalFileEntryId;
private long _columnBitmask;
private EmailTemplateAttachment _escapedModel;
}

797
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java

@ -1,797 +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.mailmanager.service.base;
import com.liferay.portal.kernel.bean.BeanReference;
import com.liferay.portal.kernel.bean.IdentifiableBean;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
import com.liferay.portal.kernel.dao.orm.Projection;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.model.PersistedModel;
import com.liferay.portal.service.BaseLocalServiceImpl;
import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
import com.liferay.portal.service.persistence.CompanyPersistence;
import com.liferay.portal.service.persistence.UserPersistence;
import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPersistence;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailPersistence;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPersistence;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplatePersistence;
import java.io.Serializable;
import java.util.List;
import javax.sql.DataSource;
/**
* Provides the base implementation for the email template attachment local service.
*
* <p>
* This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl}.
* </p>
*
* @author
* @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl
* @see it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil
* @generated
*/
public abstract class EmailTemplateAttachmentLocalServiceBaseImpl
extends BaseLocalServiceImpl implements EmailTemplateAttachmentLocalService,
IdentifiableBean {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil} to access the email template attachment local service.
*/
/**
* Adds the email template attachment to the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was added
* @throws SystemException if a system exception occurred
*/
@Indexable(type = IndexableType.REINDEX)
@Override
public EmailTemplateAttachment addEmailTemplateAttachment(
EmailTemplateAttachment emailTemplateAttachment)
throws SystemException {
emailTemplateAttachment.setNew(true);
return emailTemplateAttachmentPersistence.update(emailTemplateAttachment);
}
/**
* Creates a new email template attachment with the primary key. Does not add the email template attachment to the database.
*
* @param emailTemplateAttachmentPK the primary key for the new email template attachment
* @return the new email template attachment
*/
@Override
public EmailTemplateAttachment createEmailTemplateAttachment(
EmailTemplateAttachmentPK emailTemplateAttachmentPK) {
return emailTemplateAttachmentPersistence.create(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment that was removed
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Indexable(type = IndexableType.DELETE)
@Override
public EmailTemplateAttachment deleteEmailTemplateAttachment(
EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws PortalException, SystemException {
return emailTemplateAttachmentPersistence.remove(emailTemplateAttachmentPK);
}
/**
* Deletes the email template attachment from the database. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was removed
* @throws SystemException if a system exception occurred
*/
@Indexable(type = IndexableType.DELETE)
@Override
public EmailTemplateAttachment deleteEmailTemplateAttachment(
EmailTemplateAttachment emailTemplateAttachment)
throws SystemException {
return emailTemplateAttachmentPersistence.remove(emailTemplateAttachment);
}
@Override
public DynamicQuery dynamicQuery() {
Class<?> clazz = getClass();
return DynamicQueryFactoryUtil.forClass(EmailTemplateAttachment.class,
clazz.getClassLoader());
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException {
return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
throws SystemException {
return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery,
start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery,
start, end, orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException {
return emailTemplateAttachmentPersistence.countWithDynamicQuery(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection) throws SystemException {
return emailTemplateAttachmentPersistence.countWithDynamicQuery(dynamicQuery,
projection);
}
@Override
public EmailTemplateAttachment fetchEmailTemplateAttachment(
EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws SystemException {
return emailTemplateAttachmentPersistence.fetchByPrimaryKey(emailTemplateAttachmentPK);
}
/**
* Returns the email template attachment with the primary key.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment
* @throws PortalException if a email template attachment with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public EmailTemplateAttachment getEmailTemplateAttachment(
EmailTemplateAttachmentPK emailTemplateAttachmentPK)
throws PortalException, SystemException {
return emailTemplateAttachmentPersistence.findByPrimaryKey(emailTemplateAttachmentPK);
}
@Override
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException, SystemException {
return emailTemplateAttachmentPersistence.findByPrimaryKey(primaryKeyObj);
}
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of email template attachments
* @param end the upper bound of the range of email template attachments (not inclusive)
* @return the range of email template attachments
* @throws SystemException if a system exception occurred
*/
@Override
public List<EmailTemplateAttachment> getEmailTemplateAttachments(
int start, int end) throws SystemException {
return emailTemplateAttachmentPersistence.findAll(start, end);
}
/**
* Returns the number of email template attachments.
*
* @return the number of email template attachments
* @throws SystemException if a system exception occurred
*/
@Override
public int getEmailTemplateAttachmentsCount() throws SystemException {
return emailTemplateAttachmentPersistence.countAll();
}
/**
* Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param emailTemplateAttachment the email template attachment
* @return the email template attachment that was updated
* @throws SystemException if a system exception occurred
*/
@Indexable(type = IndexableType.REINDEX)
@Override
public EmailTemplateAttachment updateEmailTemplateAttachment(
EmailTemplateAttachment emailTemplateAttachment)
throws SystemException {
return emailTemplateAttachmentPersistence.update(emailTemplateAttachment);
}
/**
* Returns the email local service.
*
* @return the email local service
*/
public it.tref.liferay.portos.mailmanager.service.EmailLocalService getEmailLocalService() {
return emailLocalService;
}
/**
* Sets the email local service.
*
* @param emailLocalService the email local service
*/
public void setEmailLocalService(
it.tref.liferay.portos.mailmanager.service.EmailLocalService emailLocalService) {
this.emailLocalService = emailLocalService;
}
/**
* Returns the email remote service.
*
* @return the email remote service
*/
public it.tref.liferay.portos.mailmanager.service.EmailService getEmailService() {
return emailService;
}
/**
* Sets the email remote service.
*
* @param emailService the email remote service
*/
public void setEmailService(
it.tref.liferay.portos.mailmanager.service.EmailService emailService) {
this.emailService = emailService;
}
/**
* Returns the email persistence.
*
* @return the email persistence
*/
public EmailPersistence getEmailPersistence() {
return emailPersistence;
}
/**
* Sets the email persistence.
*
* @param emailPersistence the email persistence
*/
public void setEmailPersistence(EmailPersistence emailPersistence) {
this.emailPersistence = emailPersistence;
}
/**
* Returns the email attachment local service.
*
* @return the email attachment local service
*/
public it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService getEmailAttachmentLocalService() {
return emailAttachmentLocalService;
}
/**
* Sets the email attachment local service.
*
* @param emailAttachmentLocalService the email attachment local service
*/
public void setEmailAttachmentLocalService(
it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService emailAttachmentLocalService) {
this.emailAttachmentLocalService = emailAttachmentLocalService;
}
/**
* Returns the email attachment persistence.
*
* @return the email attachment persistence
*/
public EmailAttachmentPersistence getEmailAttachmentPersistence() {
return emailAttachmentPersistence;
}
/**
* Sets the email attachment persistence.
*
* @param emailAttachmentPersistence the email attachment persistence
*/
public void setEmailAttachmentPersistence(
EmailAttachmentPersistence emailAttachmentPersistence) {
this.emailAttachmentPersistence = emailAttachmentPersistence;
}
/**
* Returns the email template local service.
*
* @return the email template local service
*/
public it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService getEmailTemplateLocalService() {
return emailTemplateLocalService;
}
/**
* Sets the email template local service.
*
* @param emailTemplateLocalService the email template local service
*/
public void setEmailTemplateLocalService(
it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService emailTemplateLocalService) {
this.emailTemplateLocalService = emailTemplateLocalService;
}
/**
* Returns the email template remote service.
*
* @return the email template remote service
*/
public it.tref.liferay.portos.mailmanager.service.EmailTemplateService getEmailTemplateService() {
return emailTemplateService;
}
/**
* Sets the email template remote service.
*
* @param emailTemplateService the email template remote service
*/
public void setEmailTemplateService(
it.tref.liferay.portos.mailmanager.service.EmailTemplateService emailTemplateService) {
this.emailTemplateService = emailTemplateService;
}
/**
* Returns the email template persistence.
*
* @return the email template persistence
*/
public EmailTemplatePersistence getEmailTemplatePersistence() {
return emailTemplatePersistence;
}
/**
* Sets the email template persistence.
*
* @param emailTemplatePersistence the email template persistence
*/
public void setEmailTemplatePersistence(
EmailTemplatePersistence emailTemplatePersistence) {
this.emailTemplatePersistence = emailTemplatePersistence;
}
/**
* Returns the email template attachment local service.
*
* @return the email template attachment local service
*/
public it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService getEmailTemplateAttachmentLocalService() {
return emailTemplateAttachmentLocalService;
}
/**
* Sets the email template attachment local service.
*
* @param emailTemplateAttachmentLocalService the email template attachment local service
*/
public void setEmailTemplateAttachmentLocalService(
it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) {
this.emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService;
}
/**
* Returns the email template attachment persistence.
*
* @return the email template attachment persistence
*/
public EmailTemplateAttachmentPersistence getEmailTemplateAttachmentPersistence() {
return emailTemplateAttachmentPersistence;
}
/**
* Sets the email template attachment persistence.
*
* @param emailTemplateAttachmentPersistence the email template attachment persistence
*/
public void setEmailTemplateAttachmentPersistence(
EmailTemplateAttachmentPersistence emailTemplateAttachmentPersistence) {
this.emailTemplateAttachmentPersistence = emailTemplateAttachmentPersistence;
}
/**
* Returns the counter local service.
*
* @return the counter local service
*/
public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
return counterLocalService;
}
/**
* Sets the counter local service.
*
* @param counterLocalService the counter local service
*/
public void setCounterLocalService(
com.liferay.counter.service.CounterLocalService counterLocalService) {
this.counterLocalService = counterLocalService;
}
/**
* Returns the company local service.
*
* @return the company local service
*/
public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
return companyLocalService;
}
/**
* Sets the company local service.
*
* @param companyLocalService the company local service
*/
public void setCompanyLocalService(
com.liferay.portal.service.CompanyLocalService companyLocalService) {
this.companyLocalService = companyLocalService;
}
/**
* Returns the company remote service.
*
* @return the company remote service
*/
public com.liferay.portal.service.CompanyService getCompanyService() {
return companyService;
}
/**
* Sets the company remote service.
*
* @param companyService the company remote service
*/
public void setCompanyService(
com.liferay.portal.service.CompanyService companyService) {
this.companyService = companyService;
}
/**
* Returns the company persistence.
*
* @return the company persistence
*/
public CompanyPersistence getCompanyPersistence() {
return companyPersistence;
}
/**
* Sets the company persistence.
*
* @param companyPersistence the company persistence
*/
public void setCompanyPersistence(CompanyPersistence companyPersistence) {
this.companyPersistence = companyPersistence;
}
/**
* Returns the resource local service.
*
* @return the resource local service
*/
public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
return resourceLocalService;
}
/**
* Sets the resource local service.
*
* @param resourceLocalService the resource local service
*/
public void setResourceLocalService(
com.liferay.portal.service.ResourceLocalService resourceLocalService) {
this.resourceLocalService = resourceLocalService;
}
/**
* Returns the user local service.
*
* @return the user local service
*/
public com.liferay.portal.service.UserLocalService getUserLocalService() {
return userLocalService;
}
/**
* Sets the user local service.
*
* @param userLocalService the user local service
*/
public void setUserLocalService(
com.liferay.portal.service.UserLocalService userLocalService) {
this.userLocalService = userLocalService;
}
/**
* Returns the user remote service.
*
* @return the user remote service
*/
public com.liferay.portal.service.UserService getUserService() {
return userService;
}
/**
* Sets the user remote service.
*
* @param userService the user remote service
*/
public void setUserService(
com.liferay.portal.service.UserService userService) {
this.userService = userService;
}
/**
* Returns the user persistence.
*
* @return the user persistence
*/
public UserPersistence getUserPersistence() {
return userPersistence;
}
/**
* Sets the user persistence.
*
* @param userPersistence the user persistence
*/
public void setUserPersistence(UserPersistence userPersistence) {
this.userPersistence = userPersistence;
}
/**
* Returns the d l app local service.
*
* @return the d l app local service
*/
public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {
return dlAppLocalService;
}
/**
* Sets the d l app local service.
*
* @param dlAppLocalService the d l app local service
*/
public void setDLAppLocalService(
com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) {
this.dlAppLocalService = dlAppLocalService;
}
/**
* Returns the d l app remote service.
*
* @return the d l app remote service
*/
public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() {
return dlAppService;
}
/**
* Sets the d l app remote service.
*
* @param dlAppService the d l app remote service
*/
public void setDLAppService(
com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) {
this.dlAppService = dlAppService;
}
public void afterPropertiesSet() {
Class<?> clazz = getClass();
_classLoader = clazz.getClassLoader();
PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment",
emailTemplateAttachmentLocalService);
}
public void destroy() {
PersistedModelLocalServiceRegistryUtil.unregister(
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment");
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public String getBeanIdentifier() {
return _beanIdentifier;
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(String beanIdentifier) {
_beanIdentifier = beanIdentifier;
}
@Override
public Object invokeMethod(String name, String[] parameterTypes,
Object[] arguments) throws Throwable {
Thread currentThread = Thread.currentThread();
ClassLoader contextClassLoader = currentThread.getContextClassLoader();
if (contextClassLoader != _classLoader) {
currentThread.setContextClassLoader(_classLoader);
}
try {
return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
}
finally {
if (contextClassLoader != _classLoader) {
currentThread.setContextClassLoader(contextClassLoader);
}
}
}
protected Class<?> getModelClass() {
return EmailTemplateAttachment.class;
}
protected String getModelClassName() {
return EmailTemplateAttachment.class.getName();
}
/**
* Performs an SQL query.
*
* @param sql the sql query
*/
protected void runSQL(String sql) throws SystemException {
try {
DataSource dataSource = emailTemplateAttachmentPersistence.getDataSource();
SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
sql, new int[0]);
sqlUpdate.update();
}
catch (Exception e) {
throw new SystemException(e);
}
}
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailLocalService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailLocalService emailLocalService;
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailService emailService;
@BeanReference(type = EmailPersistence.class)
protected EmailPersistence emailPersistence;
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService emailAttachmentLocalService;
@BeanReference(type = EmailAttachmentPersistence.class)
protected EmailAttachmentPersistence emailAttachmentPersistence;
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService emailTemplateLocalService;
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailTemplateService emailTemplateService;
@BeanReference(type = EmailTemplatePersistence.class)
protected EmailTemplatePersistence emailTemplatePersistence;
@BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService.class)
protected it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService;
@BeanReference(type = EmailTemplateAttachmentPersistence.class)
protected EmailTemplateAttachmentPersistence emailTemplateAttachmentPersistence;
@BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
protected com.liferay.counter.service.CounterLocalService counterLocalService;
@BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
protected com.liferay.portal.service.CompanyLocalService companyLocalService;
@BeanReference(type = com.liferay.portal.service.CompanyService.class)
protected com.liferay.portal.service.CompanyService companyService;
@BeanReference(type = CompanyPersistence.class)
protected CompanyPersistence companyPersistence;
@BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
@BeanReference(type = com.liferay.portal.service.UserLocalService.class)
protected com.liferay.portal.service.UserLocalService userLocalService;
@BeanReference(type = com.liferay.portal.service.UserService.class)
protected com.liferay.portal.service.UserService userService;
@BeanReference(type = UserPersistence.class)
protected UserPersistence userPersistence;
@BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class)
protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService;
@BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class)
protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService;
private String _beanIdentifier;
private ClassLoader _classLoader;
private EmailTemplateAttachmentLocalServiceClpInvoker _clpInvoker = new EmailTemplateAttachmentLocalServiceClpInvoker();
}

266
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java

@ -1,266 +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.mailmanager.service.base;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil;
import java.util.Arrays;
/**
* @author
* @generated
*/
public class EmailTemplateAttachmentLocalServiceClpInvoker {
public EmailTemplateAttachmentLocalServiceClpInvoker() {
_methodName0 = "addEmailTemplateAttachment";
_methodParameterTypes0 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName1 = "createEmailTemplateAttachment";
_methodParameterTypes1 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName2 = "deleteEmailTemplateAttachment";
_methodParameterTypes2 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName3 = "deleteEmailTemplateAttachment";
_methodParameterTypes3 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName4 = "dynamicQuery";
_methodParameterTypes4 = new String[] { };
_methodName5 = "dynamicQuery";
_methodParameterTypes5 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName6 = "dynamicQuery";
_methodParameterTypes6 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName7 = "dynamicQuery";
_methodParameterTypes7 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName8 = "dynamicQueryCount";
_methodParameterTypes8 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName9 = "dynamicQueryCount";
_methodParameterTypes9 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery",
"com.liferay.portal.kernel.dao.orm.Projection"
};
_methodName10 = "fetchEmailTemplateAttachment";
_methodParameterTypes10 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName11 = "getEmailTemplateAttachment";
_methodParameterTypes11 = new String[] {
"it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK"
};
_methodName12 = "getPersistedModel";
_methodParameterTypes12 = new String[] { "java.io.Serializable" };
_methodName13 = "getEmailTemplateAttachments";
_methodParameterTypes13 = new String[] { "int", "int" };
_methodName14 = "getEmailTemplateAttachmentsCount";
_methodParameterTypes14 = new String[] { };
_methodName15 = "updateEmailTemplateAttachment";
_methodParameterTypes15 = new String[] {
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"
};
_methodName58 = "getBeanIdentifier";
_methodParameterTypes58 = new String[] { };
_methodName59 = "setBeanIdentifier";
_methodParameterTypes59 = new String[] { "java.lang.String" };
}
public Object invokeMethod(String name, String[] parameterTypes,
Object[] arguments) throws Throwable {
if (_methodName0.equals(name) &&
Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]);
}
if (_methodName1.equals(name) &&
Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.createEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]);
}
if (_methodName2.equals(name) &&
Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.deleteEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]);
}
if (_methodName3.equals(name) &&
Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.deleteEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]);
}
if (_methodName4.equals(name) &&
Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery();
}
if (_methodName5.equals(name) &&
Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
}
if (_methodName6.equals(name) &&
Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName7.equals(name) &&
Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
}
if (_methodName8.equals(name) &&
Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
}
if (_methodName9.equals(name) &&
Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
(com.liferay.portal.kernel.dao.orm.Projection)arguments[1]);
}
if (_methodName10.equals(name) &&
Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.fetchEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]);
}
if (_methodName11.equals(name) &&
Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]);
}
if (_methodName12.equals(name) &&
Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]);
}
if (_methodName13.equals(name) &&
Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachments(((Integer)arguments[0]).intValue(),
((Integer)arguments[1]).intValue());
}
if (_methodName14.equals(name) &&
Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachmentsCount();
}
if (_methodName15.equals(name) &&
Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]);
}
if (_methodName58.equals(name) &&
Arrays.deepEquals(_methodParameterTypes58, parameterTypes)) {
return EmailTemplateAttachmentLocalServiceUtil.getBeanIdentifier();
}
if (_methodName59.equals(name) &&
Arrays.deepEquals(_methodParameterTypes59, parameterTypes)) {
EmailTemplateAttachmentLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]);
return null;
}
throw new UnsupportedOperationException();
}
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName58;
private String[] _methodParameterTypes58;
private String _methodName59;
private String[] _methodParameterTypes59;
}

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

File diff soppresso perché troppo grande Load Diff

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=84 build.number=87
build.date=1619511256971 build.date=1632402791172
build.auto.upgrade=true build.auto.upgrade=true
## ##

3
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java

@ -34,6 +34,7 @@ public class StatoPraticaConstants {
public static final String VIARCH_APERTO = "V1"; public static final String VIARCH_APERTO = "V1";
public static final String VIARCH_CHIUSO = "V2"; public static final String VIARCH_CHIUSO = "V2";
public static final String PERIZIA_SANZIONE = "PS"; public static final String PERIZIA_SANZIONE = "PS";
public static final String DECRETO_SANZIONE = "DS";
public static final String SANZIONE_DOC1 = "S1"; public static final String SANZIONE_DOC1 = "S1";
public static final String SANZIONE_DOC2 = "S2"; public static final String SANZIONE_DOC2 = "S2";
public static final String VINCOLI = "AV"; public static final String VINCOLI = "AV";
@ -69,6 +70,7 @@ public class StatoPraticaConstants {
put(SANZIONE_DOC1, "label.admingeniocivile.statopratica.sanzione.doc1"); put(SANZIONE_DOC1, "label.admingeniocivile.statopratica.sanzione.doc1");
put(SANZIONE_DOC2, "label.admingeniocivile.statopratica.sanzione.doc2"); put(SANZIONE_DOC2, "label.admingeniocivile.statopratica.sanzione.doc2");
put(PERIZIA_SANZIONE, "label.admingeniocivile.statopratica.periziasanzione"); put(PERIZIA_SANZIONE, "label.admingeniocivile.statopratica.periziasanzione");
put(DECRETO_SANZIONE, "label.admingeniocivile.statopratica.decretosanzione");
} }
}; };
@ -82,6 +84,7 @@ public class StatoPraticaConstants {
put(NON_AUTORIZZATA, getLabel(NON_AUTORIZZATA)); put(NON_AUTORIZZATA, getLabel(NON_AUTORIZZATA));
put(PREAVVISO_CONTRARIO, getLabel(PREAVVISO_CONTRARIO)); put(PREAVVISO_CONTRARIO, getLabel(PREAVVISO_CONTRARIO));
put(PERIZIA_SANZIONE, getLabel(PERIZIA_SANZIONE)); put(PERIZIA_SANZIONE, getLabel(PERIZIA_SANZIONE));
put(DECRETO_SANZIONE, getLabel(DECRETO_SANZIONE));
} }
}; };

56
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java

@ -5,6 +5,7 @@ import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.model.FormLog;
@ -47,7 +48,6 @@ import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.servlet.SessionMessages; import com.liferay.portal.kernel.servlet.SessionMessages;
import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; import com.liferay.portal.kernel.struts.BaseStrutsPortletAction;
import com.liferay.portal.kernel.struts.StrutsPortletAction; import com.liferay.portal.kernel.struts.StrutsPortletAction;
import com.liferay.portal.kernel.util.Constants;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.HttpUtil;
import com.liferay.portal.kernel.util.JavaConstants; import com.liferay.portal.kernel.util.JavaConstants;
@ -91,16 +91,10 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
private static final Log _log = LogFactoryUtil.getLog(EditWorkflowTaskAction.class); private static final Log _log = LogFactoryUtil.getLog(EditWorkflowTaskAction.class);
private static final String PARAMETER_ESITO = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "esito"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
private static final String PARAMETER_ISTRUTTORE = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "istruttore"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
private static final String PARAMETER_TESTO = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "testo_del_documento"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
private static final List<String> VALORI_AMMESSI = Arrays.asList(StatoPraticaConstants.ANNULLATA, private static final List<String> VALORI_AMMESSI = Arrays.asList(StatoPraticaConstants.ANNULLATA,
StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME, StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME,
StatoPraticaConstants.NO_PARERE, StatoPraticaConstants.PREAVVISO_CONTRARIO); StatoPraticaConstants.NO_PARERE, StatoPraticaConstants.PREAVVISO_CONTRARIO,
StatoPraticaConstants.PERIZIA_SANZIONE, StatoPraticaConstants.DECRETO_SANZIONE);
private static final List<Integer> LOG_TYPES = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION, private static final List<Integer> LOG_TYPES = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION,
WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION); WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION);
@ -166,27 +160,30 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
if (transitionName.equalsIgnoreCase("registra-esito")) { if (transitionName.equalsIgnoreCase("registra-esito")) {
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil
.getHttpServletRequest(actionRequest)); .getHttpServletRequest(actionRequest));
String esito = httpServletRequest.getParameter(PARAMETER_ESITO); String esito = httpServletRequest.getParameter(WorkflowUtil.PARAMETER_ESITO);
if (esito == null) { if (esito == null) {
esito = StringPool.BLANK; esito = StringPool.BLANK;
} }
String testoDocumento = httpServletRequest.getParameter(PARAMETER_TESTO); String testoDocumento = httpServletRequest.getParameter(WorkflowUtil.PARAMETER_TESTO);
if (testoDocumento == null) { if (testoDocumento == null) {
testoDocumento = StringPool.BLANK; testoDocumento = StringPool.BLANK;
} }
if (!VALORI_AMMESSI.contains(esito) if (!VALORI_AMMESSI.contains(esito)
|| ((esito.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE) || esito || ((esito.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE)
.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)) && testoDocumento.isEmpty())) { || esito.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| esito.equalsIgnoreCase(StatoPraticaConstants.PERIZIA_SANZIONE) || esito
.equalsIgnoreCase(StatoPraticaConstants.DECRETO_SANZIONE)) && testoDocumento.isEmpty())) {
_log.error("controllo validazione completamento task registra-esito = " + workflowTaskId _log.error("controllo validazione completamento task registra-esito = " + workflowTaskId
+ " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE + " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE
+ StringPool.SLASH + StatoPraticaConstants.PREAVVISO_CONTRARIO + StringPool.SLASH + StatoPraticaConstants.PREAVVISO_CONTRARIO + StringPool.SLASH
+ " con testo del documento vuoto"); + StatoPraticaConstants.PERIZIA_SANZIONE + StringPool.SLASH
+ StatoPraticaConstants.DECRETO_SANZIONE + " con testo del documento vuoto");
throw new PortalException("controllo validazione completamento task registra-esito non riuscito"); throw new PortalException("controllo validazione completamento task registra-esito non riuscito");
} }
} else if (transitionName.equalsIgnoreCase("Riassegna") || transitionName.equalsIgnoreCase("assegna")) { } else if (transitionName.equalsIgnoreCase("Riassegna") || transitionName.equalsIgnoreCase("assegna")) {
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil
.getHttpServletRequest(actionRequest)); .getHttpServletRequest(actionRequest));
String istruttore = httpServletRequest.getParameter(PARAMETER_ISTRUTTORE); String istruttore = httpServletRequest.getParameter(WorkflowUtil.PARAMETER_ISTRUTTORE);
if (Validator.isNull(istruttore)) { if (Validator.isNull(istruttore)) {
_log.error("controllo validazione completamento task = " + transitionName + " - " + workflowTaskId _log.error("controllo validazione completamento task = " + transitionName + " - " + workflowTaskId
+ " non riuscito - istruttore non presente nel workflow"); + " non riuscito - istruttore non presente nel workflow");
@ -197,7 +194,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
ControlloPratica controllo = WorkflowUtil.getControlloPratica(workflowTaskId); ControlloPratica controllo = WorkflowUtil.getControlloPratica(workflowTaskId);
IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId());
long companyId = controllo.getCompanyId(); long companyId = controllo.getCompanyId();
long roleId = RoleLocalServiceUtil.getRole(companyId, "portos_assegnatore").getRoleId(); long roleId = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_ASSEGNATORE).getRoleId();
int uo = Integer.parseInt(istruttore.substring(6)); int uo = Integer.parseInt(istruttore.substring(6));
WorkflowTaskManagerUtil.assignWorkflowTaskToRole(companyId, themeDisplay.getUserId(), workflowTaskId, WorkflowTaskManagerUtil.assignWorkflowTaskToRole(companyId, themeDisplay.getUserId(), workflowTaskId,
roleId, "Trasferito all'UO " + uo + " per assegnazione all'istruttore.\n" + comment, null, roleId, "Trasferito all'UO " + uo + " per assegnazione all'istruttore.\n" + comment, null,
@ -208,7 +205,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
} }
Map<String, Serializable> workflowContext = new HashMap<String, Serializable>(); Map<String, Serializable> workflowContext = new HashMap<String, Serializable>();
workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName);
WorkflowUtil.updateWorkflowContextWithTaskFormParameters(actionRequest, workflowContext); WorkflowUtil.updateWorkflowContextWithTaskFormParameters(actionRequest, workflowContext, true);
if (aggiorna) { if (aggiorna) {
WorkflowTaskManagerUtil.completeWorkflowTask(themeDisplay.getCompanyId(), themeDisplay.getUserId(), WorkflowTaskManagerUtil.completeWorkflowTask(themeDisplay.getCompanyId(), themeDisplay.getUserId(),
workflowTaskId, transitionName, comment, workflowContext); workflowTaskId, transitionName, comment, workflowContext);
@ -225,7 +222,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
long companyId = themeDisplay.getCompanyId(); long companyId = themeDisplay.getCompanyId();
long userId = themeDisplay.getUserId(); long userId = themeDisplay.getUserId();
Map<String, Serializable> workflowContext = WorkflowUtil.getWorkflowContext(controllo); Map<String, Serializable> workflowContext = WorkflowUtil.getWorkflowContext(controllo);
long roleId = RoleLocalServiceUtil.getRole(companyId, "portos_assegnatore").getRoleId(); long roleId = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_ASSEGNATORE).getRoleId();
WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, userId, workflowTaskId, userId, StringPool.BLANK, WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, userId, workflowTaskId, userId, StringPool.BLANK,
null, workflowContext); null, workflowContext);
WorkflowTaskManagerUtil WorkflowTaskManagerUtil
@ -326,7 +323,6 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID); String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID);
try { try {
LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet(); LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet();
if (layoutTypePortlet.hasPortletId(portletId)) { if (layoutTypePortlet.hasPortletId(portletId)) {
return true; return true;
} }
@ -392,7 +388,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
int unitaOperativa = WorkflowUtil.getIntPratica(workflowTaskId).getUnitaOperativa(); int unitaOperativa = WorkflowUtil.getIntPratica(workflowTaskId).getUnitaOperativa();
List<Integer> unitaOperativeUtente = UnitaOperativeUtil.getUnitaOperative(user); List<Integer> unitaOperativeUtente = UnitaOperativeUtil.getUnitaOperative(user);
boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
org.getGroupId(), "portos_assegnatore") org.getGroupId(), Constants.ROLE_NAME_ASSEGNATORE)
&& (unitaOperativeUtente.contains(unitaOperativa) || unitaOperativeUtente.contains(0)); && (unitaOperativeUtente.contains(unitaOperativa) || unitaOperativeUtente.contains(0));
KaleoInstance instance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowTask.getWorkflowInstanceId()); KaleoInstance instance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowTask.getWorkflowInstanceId());
KaleoInstanceToken rootToken = KaleoInstanceTokenLocalServiceUtil.getKaleoInstanceToken(instance KaleoInstanceToken rootToken = KaleoInstanceTokenLocalServiceUtil.getKaleoInstanceToken(instance
@ -422,12 +418,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance
.getClassPK()); .getClassPK());
if (json.has("esito")) { if (json.has("esito")) {
String esito = json.getString("esito"); return PraticaUtil.getStatoPratica(json.getString("esito"), controlloPratica.getIntPraticaId());
if (json.getBoolean("base64")) {
esito = StatoPraticaConstants.PERIZIA_SANZIONE;
}
String ret = PraticaUtil.getStatoPratica(esito, controlloPratica.getIntPraticaId());
return ret;
} else if (json.has("istruttore")) { } else if (json.has("istruttore")) {
User istruttore = UserLocalServiceUtil.fetchUser(json.getLong("istruttore")); User istruttore = UserLocalServiceUtil.fetchUser(json.getLong("istruttore"));
if (Validator.isNotNull(istruttore)) { if (Validator.isNotNull(istruttore)) {
@ -442,15 +433,13 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), "portletClassLoader"); PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), "portletClassLoader");
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId); KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId);
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance return ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance.getClassPK());
.getClassPK());
return controlloPratica;
} }
private Map<Long, String> getHistoryWorkfloLogs(ThemeDisplay themeDisplay, long workflowInstanceId, private Map<Long, String> getHistoryWorkfloLogs(ThemeDisplay themeDisplay, long workflowInstanceId,
RenderRequest renderRequest, ControlloPratica controlloPratica) { RenderRequest renderRequest, ControlloPratica controlloPratica) {
Map<Long, String> esitiMapByWorkflowLogID = new HashMap<Long, String>(); Map<Long, String> history = new HashMap<Long, String>();
try { try {
List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance( List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(
themeDisplay.getCompanyId(), workflowInstanceId, LOG_TYPES, QueryUtil.ALL_POS, QueryUtil.ALL_POS, themeDisplay.getCompanyId(), workflowInstanceId, LOG_TYPES, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
@ -464,11 +453,10 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest);
FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(), FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(),
wfTask.getWorkflowTaskId()); wfTask.getWorkflowTaskId());
if (formLog != null && Validator.isNotNull(formLog.getFormParameters())) { if (formLog != null && Validator.isNotNull(formLog.getFormParameters())) {
JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters());
if (json.has("esito")) { if (json.has("esito")) {
esitiMapByWorkflowLogID.put( history.put(
workflowLog.getWorkflowLogId(), workflowLog.getWorkflowLogId(),
PraticaUtil.getStatoPratica(json.getString("esito"), PraticaUtil.getStatoPratica(json.getString("esito"),
controlloPratica.getIntPraticaId())); controlloPratica.getIntPraticaId()));
@ -483,7 +471,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
} catch (Exception e) { } catch (Exception e) {
_log.error("Errore in getHistoryWorkflowLogs", e); _log.error("Errore in getHistoryWorkflowLogs", e);
} }
return esitiMapByWorkflowLogID; return history;
} }
/** /**

2
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java

@ -131,7 +131,7 @@ public class RenderFormTaskPortletAction extends BaseStrutsPortletAction {
formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName); formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName);
if (formTemplateLink != null) { if (formTemplateLink != null) {
Map<String, Serializable> workflowContext = new HashMap<String, Serializable>(); Map<String, Serializable> workflowContext = new HashMap<String, Serializable>();
WorkflowUtil.updateWorkflowContextWithTaskFormParameters(resourceRequest, workflowContext); WorkflowUtil.updateWorkflowContextWithTaskFormParameters(resourceRequest, workflowContext, false);
DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink
.getDdmTemplateId()); .getDdmTemplateId());
String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class), String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class),

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java

@ -18,7 +18,6 @@ import javax.portlet.RenderResponse;
import com.liferay.portal.kernel.json.JSONDeserializer; 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.struts.BaseStrutsPortletAction; import com.liferay.portal.kernel.struts.BaseStrutsPortletAction;
import com.liferay.portal.kernel.util.MapUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys; import com.liferay.portal.kernel.util.WebKeys;
@ -63,9 +62,6 @@ public class RenderHistoryFormAction extends BaseStrutsPortletAction {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance
.getClassPK()); .getClassPK());
String esito = parameters.get("esito").toString(); String esito = parameters.get("esito").toString();
if (MapUtil.getBoolean(parameters, "base64") && esito.equals(StatoPraticaConstants.INTEGRAZIONE)) {
esito = StatoPraticaConstants.PERIZIA_SANZIONE;
}
String tipoEsito = null; String tipoEsito = null;
if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) {
tipoEsito = StatoPraticaConstants.getEsitoDeposito(esito); tipoEsito = StatoPraticaConstants.getEsitoDeposito(esito);

147
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java

@ -2,8 +2,12 @@ package it.tref.liferay.portos.kaleo.util;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
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.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.model.FormLog;
import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil;
import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants;
@ -27,6 +31,9 @@ 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.JSONDeserializer; 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.repository.model.Folder;
import com.liferay.portal.kernel.util.Base64;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
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;
@ -45,9 +52,24 @@ import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken;
import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext;
import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil;
import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil;
import com.liferay.portlet.documentlibrary.NoSuchFolderException;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
public class WorkflowUtil { public class WorkflowUtil {
public static final String PARAMETER_BASE64 = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "base64"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
public static final String PARAMETER_ESITO = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "esito"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
public static final String PARAMETER_ISTRUTTORE = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "istruttore"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
public static final String PARAMETER_NOTE_INTERNE = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "Note_interne"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
public static final String PARAMETER_TESTO = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "testo_del_documento"
+ WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM;
private static final String BASE64_PDF = "data:" + ContentTypes.APPLICATION_PDF + ";base64,";
public static ControlloPratica getControlloPratica(long workflowTaskId) { public static ControlloPratica getControlloPratica(long workflowTaskId) {
ControlloPratica controllo = null; ControlloPratica controllo = null;
@ -192,43 +214,122 @@ public class WorkflowUtil {
} }
public static void updateWorkflowContextWithTaskFormParameters(PortletRequest portletRequest, public static void updateWorkflowContextWithTaskFormParameters(PortletRequest portletRequest,
Map<String, Serializable> workflowContext) { Map<String, Serializable> workflowContext, boolean createFileEntry) {
long workflowTaskId = ParamUtil.getLong(portletRequest, "workflowTaskId");
long userId = PortalUtil.getUserId(portletRequest);
Map<String, String> formParameters = null; Map<String, String> formParameters = null;
Enumeration<String> names = portletRequest.getParameterNames(); Enumeration<String> names = portletRequest.getParameterNames();
while (names.hasMoreElements()) { while (names.hasMoreElements()) {
String name = names.nextElement(); formParameters = readParameter(userId, workflowTaskId, portletRequest, names.nextElement(),
if (name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) createFileEntry, formParameters);
&& name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) {
if (formParameters == null) {
formParameters = new HashMap<>();
}
String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(),
name.length() - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length());
String value = StringUtils.join(ParamUtil.getParameterValues(portletRequest, name), ',');
formParameters.put(parameterName, value);
}
} }
if (formParameters == null) { if (formParameters == null) {
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil
.getHttpServletRequest(portletRequest)); .getHttpServletRequest(portletRequest));
names = httpServletRequest.getParameterNames(); names = httpServletRequest.getParameterNames();
while (names.hasMoreElements()) { while (names.hasMoreElements()) {
String name = names.nextElement(); formParameters = readParameter(userId, workflowTaskId, httpServletRequest, names.nextElement(),
if (name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) createFileEntry, formParameters);
&& name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) {
if (formParameters == null) {
formParameters = new HashMap<>();
}
String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(),
name.length() - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length());
String value = StringUtils.join(ParamUtil.getParameterValues(httpServletRequest, name), ',');
formParameters.put(parameterName, value);
}
} }
} }
if (formParameters != null) { if (formParameters != null) {
workflowContext.put(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS, (Serializable) formParameters); workflowContext.put(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS, (Serializable) formParameters);
} }
} }
private static Map<String, String> readParameter(long userId, long workflowTaskId, Object request, String name,
boolean createFileEntry, Map<String, String> formParameters) {
if (name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM)
&& name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) {
String value = null;
switch (name) {
case PARAMETER_BASE64:
case PARAMETER_ESITO:
case PARAMETER_ISTRUTTORE:
value = getString(request, name);
break;
default:
value = StringUtils.join(getParameterValues(request, name), ',');
}
if (value != null) {
if (formParameters == null) {
formParameters = new HashMap<>();
}
String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(),
name.length() - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length());
if (createFileEntry && value.startsWith(BASE64_PDF)) {
String esito;
if (request instanceof PortletRequest) {
esito = ParamUtil.getString((PortletRequest) request, PARAMETER_ESITO);
} else {
esito = ParamUtil.getString((HttpServletRequest) request, PARAMETER_ESITO);
}
long fileEntryId = createPDFEntry(value, userId, workflowTaskId, esito);
if (fileEntryId != 0) {
value = "fileEntryId=" + fileEntryId;
if (request instanceof PortletRequest) {
((PortletRequest) request).getParameterMap().put(name, new String[] { value });
} else {
((HttpServletRequest) request).getParameterMap().put(name, new String[] { value });
}
}
}
formParameters.put(parameterName, value);
}
}
return formParameters;
}
private static long createPDFEntry(String value, long userId, long workflowTaskId, String esito) {
try {
ControlloPratica controllo = getControlloPratica(workflowTaskId);
long companyId = controllo.getCompanyId();
long groupId = controllo.getGroupId();
long classPk = controllo.getDettPraticaId();
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(companyId);
serviceContext.setScopeGroupId(groupId);
serviceContext.setUserId(userId);
byte[] bytes = Base64.decode(value.substring(BASE64_PDF.length()));
long attachmentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId,
ConfigurazioneConstants.ATTACHMENT_FOLDER_ID);
Folder attachmentFolder = DLAppLocalServiceUtil.getFolder(attachmentFolderId);
long repositoryId = attachmentFolder.getRepositoryId();
String folderName = PraticaUtil.getFolderName(classPk);
Folder folder = null;
try {
folder = DLAppLocalServiceUtil.getFolder(repositoryId, attachmentFolder.getFolderId(), folderName);
} catch (NoSuchFolderException e) {
folder = DLAppLocalServiceUtil.addFolder(userId, attachmentFolder.getRepositoryId(),
attachmentFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext);
}
String targetFileName = AvvisoLocalServiceUtil.getFileNameAvviso(classPk, esito, null, "F") + ".pdf";
return DLAppLocalServiceUtil.addFileEntry(userId, repositoryId, folder.getFolderId(), StringPool.BLANK,
ContentTypes.APPLICATION_PDF, targetFileName, targetFileName, StringPool.BLANK, bytes,
serviceContext).getFileEntryId();
} catch (PortalException | SystemException e) {
return 0;
}
}
private static String getString(Object request, String name) {
if (request instanceof PortletRequest) {
return ParamUtil.getString((PortletRequest) request, name);
} else {
return ParamUtil.getString((HttpServletRequest) request, name);
}
}
private static String[] getParameterValues(Object request, String name) {
if (request instanceof PortletRequest) {
return ParamUtil.getParameterValues((PortletRequest) request, name);
} else {
return ParamUtil.getParameterValues((HttpServletRequest) request, name);
}
}
} }

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=Kaleo build.namespace=Kaleo
build.number=63 build.number=64
build.date=1631785877061 build.date=1632132448506
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva