Salvatore La Manna 4 anni fa
parent
commit
d09849ee8c
  1. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar
  2. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar
  3. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  4. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java
  5. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisCommonUtil.java
  6. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisComunicaPosizioniDebitorie.java
  7. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java
  8. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java
  9. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java
  10. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  11. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java
  12. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java
  13. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java
  14. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVImpl.java
  15. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloImpl.java
  16. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java
  17. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java
  18. 22
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioImpl.java
  19. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java
  20. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/UtentePortosImpl.java
  21. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java
  22. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java
  23. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
  24. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/CarichiLavoroPortlet.java
  25. 102
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java
  26. 79
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java
  27. 153
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java
  28. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java
  29. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java
  30. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java
  32. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportSorteggioBeanBuilder.java
  33. 36
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java
  34. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  35. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  36. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  37. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  38. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java
  39. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java
  40. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloLocalServiceImpl.java
  41. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  42. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java
  43. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java
  44. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/KaleoListenereStartupAction.java
  45. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/RoleUpdateAction.java
  46. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/Constants.java
  47. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ContentType.java
  48. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/FestivitaUtil.java
  49. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GenioCivileBaseUtil.java
  50. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java
  51. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/MockAllegato.java
  52. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/OggettoProtocollo.java
  53. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

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

@ -104,8 +104,6 @@ import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentInstanceLoca
import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil;
import com.liferay.portlet.documentlibrary.model.DLFileEntry; import com.liferay.portlet.documentlibrary.model.DLFileEntry;
import com.liferay.portlet.documentlibrary.model.DLFolder; import com.liferay.portlet.documentlibrary.model.DLFolder;
import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil;

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java

@ -1,6 +1,5 @@
package it.tref.liferay.portos.bo.asset; package it.tref.liferay.portos.bo.asset;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;

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

@ -99,7 +99,7 @@ public abstract class IrisCommonUtil {
private static TypeDesc getAxisTypeDesc(final Object obj) throws Exception { private static TypeDesc getAxisTypeDesc(final Object obj) throws Exception {
final Class objClass = obj.getClass(); final Class<?> objClass = obj.getClass();
try { try {
final Method methodGetTypeDesc = objClass.getMethod("getTypeDesc", new Class[] {}); final Method methodGetTypeDesc = objClass.getMethod("getTypeDesc", new Class[] {});
final TypeDesc typeDesc = (TypeDesc) methodGetTypeDesc.invoke(obj, new Object[] {}); final TypeDesc typeDesc = (TypeDesc) methodGetTypeDesc.invoke(obj, new Object[] {});

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisComunicaPosizioniDebitorie.java

@ -46,9 +46,6 @@ import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.constants.ReportConstants;
import it.tref.liferay.portos.report.shared.dto.ReportDto; import it.tref.liferay.portos.report.shared.dto.ReportDto;
import it.tref.liferay.portos.report.shared.dto.ReportResultDto;
import it.tref.liferay.portos.report.shared.util.ReportUtil;
import java.io.File; import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
@ -72,7 +69,6 @@ import org.apache.axis.client.Stub;
import org.apache.axis.types.URI; import org.apache.axis.types.URI;
import org.apache.axis.types.URI.MalformedURIException; import org.apache.axis.types.URI.MalformedURIException;
import org.apache.axis.types.Year; import org.apache.axis.types.Year;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import com.liferay.counter.service.CounterLocalServiceUtil; import com.liferay.counter.service.CounterLocalServiceUtil;
@ -80,11 +76,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.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.repository.model.FileEntry;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
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.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.util.portlet.PortletProps; import com.liferay.util.portlet.PortletProps;
public abstract class IrisComunicaPosizioniDebitorie { public abstract class IrisComunicaPosizioniDebitorie {
@ -397,12 +391,12 @@ public abstract class IrisComunicaPosizioniDebitorie {
// reportDto.setShowNumberOfPage(true); // reportDto.setShowNumberOfPage(true);
reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString());
ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, null); // ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, null);
long fileEntryId = result.getFileEntryIds()[0]; // long fileEntryId = result.getFileEntryIds()[0];
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); // FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId);
String sha256 = DigestUtils.sha256Hex(fileEntry.getContentStream()); // String sha256 = DigestUtils.sha256Hex(fileEntry.getContentStream());
// String mbdContent = // String mbdContent =
// "TIPO=01" + StringPool.SEMICOLON + "PROV=" + siglaProvincia + StringPool.SEMICOLON + "HASH=" // "TIPO=01" + StringPool.SEMICOLON + "PROV=" + siglaProvincia + StringPool.SEMICOLON + "HASH="
// + sha256; // + sha256;

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

@ -40,6 +40,7 @@ import com.liferay.portal.kernel.util.Validator;
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class AsseverazioneImpl extends AsseverazioneBaseImpl { public class AsseverazioneImpl extends AsseverazioneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Comune service. Represents a row in the &quot;portos_amm_Comune&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Comune service. Represents a row in
* the &quot;portos_amm_Comune&quot; database table, with each column mapped to
* a property of this class.
* *
* <p> * <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.bo.model.Comune} interface. * 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.bo.model.Comune} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class ComuneImpl extends ComuneBaseImpl { public class ComuneImpl extends ComuneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a comune model instance should use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead. * Never reference this class directly. All methods that expect a comune
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Comune} interface instead.
*/ */
public ComuneImpl() { public ComuneImpl() {
} }

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the ControlloPratica service. Represents a row in the &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the ControlloPratica service.
* Represents a row in the &quot;portos_bo_ControlloPratica&quot; database
* table, with each column mapped to a property of this class.
* *
* <p> * <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.bo.model.ControlloPratica} interface. * 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.bo.model.ControlloPratica} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class ControlloPraticaImpl extends ControlloPraticaBaseImpl { public class ControlloPraticaImpl extends ControlloPraticaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a controllo pratica model instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead. * Never reference this class directly. All methods that expect a controllo
* pratica model instance should use the {@link
* it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
*/ */
public ControlloPraticaImpl() { public ControlloPraticaImpl() {
} }

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

@ -35,6 +35,7 @@ import com.liferay.portal.kernel.util.Validator;
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl { public class DelegaImpl extends DelegaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:

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

@ -21,26 +21,29 @@ import com.liferay.portlet.documentlibrary.model.DLFileEntry;
import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
/** /**
* The extended model implementation for the DocAggiuntiva service. Represents a row in the * The extended model implementation for the DocAggiuntiva service. Represents a
* &quot;portos_bo_DocAggiuntiva&quot; database table, with each column mapped to a property of this * row in the &quot;portos_bo_DocAggiuntiva&quot; database table, with each
* class. * column mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface. * into the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl { public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a doc aggiuntiva model instance * Never reference this class directly. All methods that expect a doc
* should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead. * aggiuntiva model instance should use the {@link
* it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
*/ */
public DocAggiuntivaImpl() {} public DocAggiuntivaImpl() {
}
public String getFileName() throws PortalException, SystemException { public String getFileName() throws PortalException, SystemException {

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

@ -23,26 +23,29 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil; import com.liferay.portlet.documentlibrary.util.DLUtil;
/** /**
* The extended model implementation for the DocPratica service. Represents a row in the * The extended model implementation for the DocPratica service. Represents a
* &quot;portos_bo_DocPratica&quot; database table, with each column mapped to a property of this * row in the &quot;portos_bo_DocPratica&quot; database table, with each column
* class. * mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.DocPratica} interface. * into the {@link it.tref.liferay.portos.bo.model.DocPratica} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class DocPraticaImpl extends DocPraticaBaseImpl { public class DocPraticaImpl extends DocPraticaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a doc pratica model instance * Never reference this class directly. All methods that expect a doc
* should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead. * pratica model instance should use the {@link
* it.tref.liferay.portos.bo.model.DocPratica} interface instead.
*/ */
public DocPraticaImpl() {} public DocPraticaImpl() {
}
@Override @Override
public String getFileName() throws PortalException, SystemException { public String getFileName() throws PortalException, SystemException {

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

@ -15,19 +15,27 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the HistoryWorkflowAction service. Represents a row in the &quot;portos_bo_HistoryWorkflowAction&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the HistoryWorkflowAction service.
* Represents a row in the &quot;portos_bo_HistoryWorkflowAction&quot; database
* table, with each column mapped to a property of this class.
* *
* <p> * <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.bo.model.HistoryWorkflowAction} interface. * 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.bo.model.HistoryWorkflowAction}
* interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class HistoryWorkflowActionImpl extends HistoryWorkflowActionBaseImpl { public class HistoryWorkflowActionImpl extends HistoryWorkflowActionBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a history workflow action model instance should use the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead. * Never reference this class directly. All methods that expect a history
* workflow action model instance should use the {@link
* it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead.
*/ */
public HistoryWorkflowActionImpl() { public HistoryWorkflowActionImpl() {
} }

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the IUV service. Represents a row in the &quot;portos_bo_IUV&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the IUV service. Represents a row in
* the &quot;portos_bo_IUV&quot; database table, with each column mapped to a
* property of this class.
* *
* <p> * <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.bo.model.IUV} interface. * 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.bo.model.IUV} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class IUVImpl extends IUVBaseImpl { public class IUVImpl extends IUVBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a i u v model instance should use the {@link it.tref.liferay.portos.bo.model.IUV} interface instead. * Never reference this class directly. All methods that expect a i u v
* model instance should use the {@link it.tref.liferay.portos.bo.model.IUV}
* interface instead.
*/ */
public IUVImpl() { public IUVImpl() {
} }

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the InfoFascicolo service. Represents a row in the &quot;portos_bo_InfoFascicolo&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the InfoFascicolo service. Represents a
* row in the &quot;portos_bo_InfoFascicolo&quot; database table, with each
* column mapped to a property of this class.
* *
* <p> * <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.bo.model.InfoFascicolo} interface. * 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.bo.model.InfoFascicolo} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class InfoFascicoloImpl extends InfoFascicoloBaseImpl { public class InfoFascicoloImpl extends InfoFascicoloBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a info fascicolo model instance should use the {@link it.tref.liferay.portos.bo.model.InfoFascicolo} interface instead. * Never reference this class directly. All methods that expect a info
* fascicolo model instance should use the {@link
* it.tref.liferay.portos.bo.model.InfoFascicolo} interface instead.
*/ */
public InfoFascicoloImpl() { public InfoFascicoloImpl() {
} }

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Provincia service. Represents a row in the &quot;portos_provincia&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Provincia service. Represents a row
* in the &quot;portos_provincia&quot; database table, with each column mapped
* to a property of this class.
* *
* <p> * <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.bo.model.Provincia} interface. * 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.bo.model.Provincia} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class ProvinciaImpl extends ProvinciaBaseImpl { public class ProvinciaImpl extends ProvinciaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a provincia model instance should use the {@link it.tref.liferay.portos.bo.model.Provincia} interface instead. * Never reference this class directly. All methods that expect a provincia
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Provincia} interface instead.
*/ */
public ProvinciaImpl() { public ProvinciaImpl() {
} }

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

@ -18,23 +18,24 @@ import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Soggetto service. Represents a row in the * The extended model implementation for the Soggetto service. Represents a row
* &quot;portos_bo_Soggetto&quot; database table, with each column mapped to a property of this * in the &quot;portos_bo_Soggetto&quot; database table, with each column mapped
* class. * to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.Soggetto} interface. * into the {@link it.tref.liferay.portos.bo.model.Soggetto} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class SoggettoImpl extends SoggettoBaseImpl { public class SoggettoImpl extends SoggettoBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a soggetto * NOTE FOR DEVELOPERS: Never reference this class directly. All methods
* model instance should use the {@link it.tref.liferay.portos.bo.model.Soggetto} interface * that expect a soggetto model instance should use the {@link
* instead. * it.tref.liferay.portos.bo.model.Soggetto} interface instead.
*/ */
public SoggettoImpl() { public SoggettoImpl() {
@ -44,7 +45,6 @@ public class SoggettoImpl extends SoggettoBaseImpl {
String tipologia = LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + getTipologiaSoggetto()); String tipologia = LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + getTipologiaSoggetto());
String ambito = StringPool.BLANK; String ambito = StringPool.BLANK;
if (Validator.isNotNull(getAmbitoProfessione())) { if (Validator.isNotNull(getAmbitoProfessione())) {
ambito = StringPool.SPACE + StringPool.DASH + StringPool.SPACE; ambito = StringPool.SPACE + StringPool.DASH + StringPool.SPACE;

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

@ -15,27 +15,29 @@ package it.tref.liferay.portos.bo.model.impl;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Sorteggio service. Represents a row in the * The extended model implementation for the Sorteggio service. Represents a row
* &quot;portos_bo_Sorteggio&quot; database table, with each column mapped to a property of this * in the &quot;portos_bo_Sorteggio&quot; database table, with each column
* class. * mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.Sorteggio} interface. * into the {@link it.tref.liferay.portos.bo.model.Sorteggio} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class SorteggioImpl extends SorteggioBaseImpl { public class SorteggioImpl extends SorteggioBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a sorteggio model instance should * Never reference this class directly. All methods that expect a sorteggio
* use the {@link it.tref.liferay.portos.bo.model.Sorteggio} interface instead. * model instance should use the {@link
* it.tref.liferay.portos.bo.model.Sorteggio} interface instead.
*/ */
public SorteggioImpl() {} public SorteggioImpl() {
}
public boolean mesePrecedenteToBoolean() { public boolean mesePrecedenteToBoolean() {
if (Validator.isNull(getMesePrecedente())) { if (Validator.isNull(getMesePrecedente())) {

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

@ -15,19 +15,28 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the StoricoSoggettoPratica service. Represents a row in the &quot;portos_bo_StoricoSoggettoPratica&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the StoricoSoggettoPratica service.
* Represents a row in the &quot;portos_bo_StoricoSoggettoPratica&quot; database
* table, with each column mapped to a property of this class.
* *
* <p> * <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.bo.model.StoricoSoggettoPratica} interface. * 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.bo.model.StoricoSoggettoPratica}
* interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class StoricoSoggettoPraticaImpl extends StoricoSoggettoPraticaBaseImpl { public class StoricoSoggettoPraticaImpl extends StoricoSoggettoPraticaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a storico soggetto pratica model instance should use the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface instead. * Never reference this class directly. All methods that expect a storico
* soggetto pratica model instance should use the {@link
* it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface
* instead.
*/ */
public StoricoSoggettoPraticaImpl() { public StoricoSoggettoPraticaImpl() {
} }

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

@ -15,19 +15,26 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the UtentePortos service. Represents a row in the &quot;portos_bo_UtentePortos&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the UtentePortos service. Represents a
* row in the &quot;portos_bo_UtentePortos&quot; database table, with each
* column mapped to a property of this class.
* *
* <p> * <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.bo.model.UtentePortos} interface. * 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.bo.model.UtentePortos} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
@SuppressWarnings("serial")
public class UtentePortosImpl extends UtentePortosBaseImpl { public class UtentePortosImpl extends UtentePortosBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a utente portos model instance should use the {@link it.tref.liferay.portos.bo.model.UtentePortos} interface instead. * Never reference this class directly. All methods that expect a utente
* portos model instance should use the {@link
* it.tref.liferay.portos.bo.model.UtentePortos} interface instead.
*/ */
public UtentePortosImpl() { public UtentePortosImpl() {
} }

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

@ -35,8 +35,7 @@ public class DettPraticaModelListener extends BaseModelListener<DettPratica> {
} }
if (model.getStatus() == WorkflowConstants.STATUS_APPROVED) { if (model.getStatus() == WorkflowConstants.STATUS_APPROVED) {
IntPratica intPratica = IntPraticaLocalServiceUtil.updateModifiedDate( IntPraticaLocalServiceUtil.updateModifiedDate(model.getIntPraticaId(), new Date());
model.getIntPraticaId(), new Date());
} }
} catch (SearchException | NoSuchIntPraticaException | SystemException e) { } catch (SearchException | NoSuchIntPraticaException | SystemException e) {

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

@ -20,11 +20,8 @@ import com.liferay.portal.kernel.search.Indexer;
import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.search.IndexerRegistryUtil;
import com.liferay.portal.kernel.search.SearchException; import com.liferay.portal.kernel.search.SearchException;
import com.liferay.portal.model.BaseModelListener; import com.liferay.portal.model.BaseModelListener;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.workflow.kaleo.model.KaleoInstance;
import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken;
import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken;
import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil;
import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil;
public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInstanceToken> { public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInstanceToken> {

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

@ -16,8 +16,6 @@ import it.tref.liferay.portos.bo.util.WebKeys;
import java.io.File; import java.io.File;
import java.io.FileReader; import java.io.FileReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.Enumeration; import java.util.Enumeration;
@ -31,7 +29,6 @@ import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.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.upload.UploadPortletRequest; import com.liferay.portal.kernel.upload.UploadPortletRequest;

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

@ -1,13 +1,6 @@
package it.tref.liferay.portos.bo.portlet; package it.tref.liferay.portos.bo.portlet;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
public class CarichiLavoroPortlet extends MVCPortlet { public class CarichiLavoroPortlet extends MVCPortlet {
private Log _log = LogFactoryUtil.getLog(CarichiLavoroPortlet.class);
} }

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

@ -13,12 +13,9 @@ import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.AvvisoServiceUtil; import it.tref.liferay.portos.bo.service.AvvisoServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.util.Constants; import it.tref.liferay.portos.bo.util.Constants;
import it.tref.liferay.portos.bo.util.GestioneFirmeUtil; import it.tref.liferay.portos.bo.util.GestioneFirmeUtil;
import it.tref.liferay.portos.bo.util.TempisticaConstants;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
import javax.portlet.PortletException; import javax.portlet.PortletException;
@ -31,8 +28,6 @@ import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.ServletResponseUtil; import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.util.ArrayUtil; import com.liferay.portal.kernel.util.ArrayUtil;
@ -61,10 +56,8 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
*/ */
public class GestioneFirmePortlet extends MVCPortlet { public class GestioneFirmePortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(GestioneFirmePortlet.class); public void assignaFirma(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
public void assignaFirma(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId());
@ -79,8 +72,8 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
} }
public void rilasciaFirma(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, public void rilasciaFirma(ActionRequest actionRequest, ActionResponse actionResponse)
SystemException { throws PortalException, SystemException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId());
@ -92,9 +85,8 @@ public class GestioneFirmePortlet extends MVCPortlet {
// ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme
@Override @Override
public void serveResource(ResourceRequest resourceRequest, public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
ResourceResponse resourceResponse) throws IOException, throws IOException, PortletException {
PortletException {
String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); String resourceId = GetterUtil.getString(resourceRequest.getResourceID());
@ -106,7 +98,6 @@ public class GestioneFirmePortlet extends MVCPortlet {
Locale locale = themeDisplay.getLocale(); Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
String tabs1 = ParamUtil.getString(resourceRequest, "tabs1"); String tabs1 = ParamUtil.getString(resourceRequest, "tabs1");
try { try {
@ -137,7 +128,6 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
super.serveResource(resourceRequest, resourceResponse); super.serveResource(resourceRequest, resourceResponse);
} }
@ -145,11 +135,10 @@ public class GestioneFirmePortlet extends MVCPortlet {
private String exportToCSVAvvisiFirme(long companyId, String cf, Locale locale) throws Exception { private String exportToCSVAvvisiFirme(long companyId, String cf, Locale locale) throws Exception {
Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); Format dateFormat = FastDateFormatFactoryUtil.getDate(locale);
Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
List<Avviso> lista = AvvisoLocalServiceUtil.getAvvisiFirmatiByCF(companyId, cf, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<Avviso> lista = AvvisoLocalServiceUtil.getAvvisiFirmatiByCF(companyId, cf, QueryUtil.ALL_POS,
QueryUtil.ALL_POS);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
@ -166,7 +155,7 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
for (Iterator iterator = lista.iterator(); iterator.hasNext();) { for (Iterator<Avviso> iterator = lista.iterator(); iterator.hasNext();) {
Avviso avviso = (Avviso) iterator.next(); Avviso avviso = (Avviso) iterator.next();
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk());
@ -178,23 +167,25 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); sb.append(CSVUtil.encode(intPratica.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() : StringPool.BLANK)); sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo()
: StringPool.BLANK));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(avviso.getDescLong())); sb.append(CSVUtil.encode(avviso.getDescLong()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()).getGroupId(); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId())
.getGroupId();
long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId();
String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName();
sb.append(CSVUtil.encode(genio)); sb.append(CSVUtil.encode(genio));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, avviso.translateTipoDocumento()))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
avviso.translateTipoDocumento())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
@ -202,23 +193,25 @@ public class GestioneFirmePortlet extends MVCPortlet {
return sb.toString(); return sb.toString();
} }
// ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme
private String exportToCSVAvvisiAltri(long companyId, User user, Locale locale) throws Exception { private String exportToCSVAvvisiAltri(long companyId, User user, Locale locale) throws Exception {
Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); Format dateFormat = FastDateFormatFactoryUtil.getDate(locale);
Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
long[] gruopIds = new long[0]; long[] gruopIds = new long[0];
List<Organization> organizations = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizations = OrganizationLocalServiceUtil
.getUserOrganizations(user.getUserId());
for (Organization organization : organizations) { for (Organization organization : organizations) {
if(UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)){ if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(),
Constants.ROLE_NAME_FIRMA, true)) {
gruopIds = ArrayUtil.append(gruopIds, organization.getGroupId()); gruopIds = ArrayUtil.append(gruopIds, organization.getGroupId());
} }
} }
List<Avviso> lista = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByNotCF(companyId, gruopIds, user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<Avviso> lista = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByNotCF(companyId, gruopIds,
user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
@ -237,7 +230,7 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
for (Iterator iterator = lista.iterator(); iterator.hasNext();) { for (Iterator<Avviso> iterator = lista.iterator(); iterator.hasNext();) {
Avviso avviso = (Avviso) iterator.next(); Avviso avviso = (Avviso) iterator.next();
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk());
@ -249,23 +242,25 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); sb.append(CSVUtil.encode(intPratica.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() : StringPool.BLANK)); sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo()
: StringPool.BLANK));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(avviso.getDescLong())); sb.append(CSVUtil.encode(avviso.getDescLong()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()).getGroupId(); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId())
.getGroupId();
long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId();
String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName();
sb.append(CSVUtil.encode(genio)); sb.append(CSVUtil.encode(genio));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, avviso.translateTipoDocumento()))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
avviso.translateTipoDocumento())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
String cf = avviso.getUserCodiceFiscalePrimaFirma(); String cf = avviso.getUserCodiceFiscalePrimaFirma();
@ -283,11 +278,10 @@ public class GestioneFirmePortlet extends MVCPortlet {
private String exportToCSVAvvisiDaFirmare(long companyId, User user, Locale locale) throws Exception { private String exportToCSVAvvisiDaFirmare(long companyId, User user, Locale locale) throws Exception {
Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); Format dateFormat = FastDateFormatFactoryUtil.getDate(locale);
Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
List<Avviso> listaLeTueFirme = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByCF(companyId, user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<Avviso> listaLeTueFirme = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByCF(companyId,
user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
sb.append("LE TUE FIRME"); sb.append("LE TUE FIRME");
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
@ -309,7 +303,7 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
for (Iterator iterator = listaLeTueFirme.iterator(); iterator.hasNext();) { for (Iterator<Avviso> iterator = listaLeTueFirme.iterator(); iterator.hasNext();) {
Avviso avviso = (Avviso) iterator.next(); Avviso avviso = (Avviso) iterator.next();
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk());
@ -321,23 +315,25 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); sb.append(CSVUtil.encode(intPratica.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() : StringPool.BLANK)); sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo()
: StringPool.BLANK));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(avviso.getDescLong())); sb.append(CSVUtil.encode(avviso.getDescLong()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()).getGroupId(); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId())
.getGroupId();
long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId();
String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName();
sb.append(CSVUtil.encode(genio)); sb.append(CSVUtil.encode(genio));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, avviso.translateTipoDocumento()))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
avviso.translateTipoDocumento())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
String cf = avviso.getUserCodiceFiscalePrimaFirma(); String cf = avviso.getUserCodiceFiscalePrimaFirma();
@ -351,15 +347,17 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
long[] gruopIds = new long[0]; long[] gruopIds = new long[0];
List<Organization> organizations = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizations = OrganizationLocalServiceUtil
.getUserOrganizations(user.getUserId());
for (Organization organization : organizations) { for (Organization organization : organizations) {
if(UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)){ if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(),
Constants.ROLE_NAME_FIRMA, true)) {
gruopIds = ArrayUtil.append(gruopIds, organization.getGroupId()); gruopIds = ArrayUtil.append(gruopIds, organization.getGroupId());
} }
} }
List<Avviso> listaFirmeAssegnateAlRuolo = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma(companyId, gruopIds, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<Avviso> listaFirmeAssegnateAlRuolo = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma(
companyId, gruopIds, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
sb.append("FIRME ASSEGNATE AL RUOLO"); sb.append("FIRME ASSEGNATE AL RUOLO");
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
@ -379,7 +377,7 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
for (Iterator iterator = listaFirmeAssegnateAlRuolo.iterator(); iterator.hasNext();) { for (Iterator<Avviso> iterator = listaFirmeAssegnateAlRuolo.iterator(); iterator.hasNext();) {
Avviso avviso = (Avviso) iterator.next(); Avviso avviso = (Avviso) iterator.next();
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk());
@ -391,13 +389,15 @@ public class GestioneFirmePortlet extends MVCPortlet {
} }
sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); sb.append(CSVUtil.encode(intPratica.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() : StringPool.BLANK)); sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo()
: StringPool.BLANK));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(avviso.getDescLong())); sb.append(CSVUtil.encode(avviso.getDescLong()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()).getGroupId(); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId())
.getGroupId();
long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId();
String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName();
sb.append(CSVUtil.encode(genio)); sb.append(CSVUtil.encode(genio));
@ -406,7 +406,8 @@ public class GestioneFirmePortlet extends MVCPortlet {
sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, avviso.translateTipoDocumento()))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
avviso.translateTipoDocumento())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
@ -415,4 +416,3 @@ public class GestioneFirmePortlet extends MVCPortlet {
return sb.toString(); return sb.toString();
} }
} }

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

@ -6,28 +6,17 @@ import it.mwg.sismica.bo.util.SorteggioPraticaUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.Sorteggio;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalService;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalService;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistenceImpl;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
@ -46,7 +35,6 @@ import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.kernel.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.DigesterUtil;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
@ -307,73 +295,6 @@ public class SismicaAdministrationPortlet extends MVCPortlet {
} }
private void avvioWorkflowSorteggiate() {
try {
// int count =
// SorteggioLocalServiceUtil.countDettPraticaWorkflowNonAvviato();
// if (count > 0) {
// for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Long> dettPraticaIds = SorteggioLocalServiceUtil.getDettPraticaWorkflowNonAvviato(-1, -1);
for (Long dettPraticaId : dettPraticaIds) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
long intPraticaId = dettPratica.getIntPraticaId();
ServiceContext serviceContext = getServiceContext(dettPratica);
avvioWorkflow(intPraticaId, dettPratica, serviceContext);
}
// }
// }
} catch (Exception e) {
_log.error("error", e);
}
}
private void avvioWorkflow(long intPraticaId, DettPratica dettPratica, ServiceContext serviceContext)
throws Exception {
long userId = dettPratica.getUserId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.addControlloPratica(
territorio.getGroupId(), userId, intPratica.getIntPraticaId(),
dettPratica.getDettPraticaId(), false, serviceContext);
// ADT: bug id=7 gestione workflow
ControlloPraticaLocalServiceUtil.gestioneWFVarianti(controlloPratica);
//
// Date dtInvio = null;
// if(intPratica.getDtSorteggio() != null){
// dtInvio = intPratica.getDtSorteggio();
// } else {
// dtInvio = controlloPratica.getCreateDate();
// }
//
// //Aggiorno il valore nella tabella delle tempistiche
// ServiceContext serviceContextTempistica =
// getServiceContext(controlloPratica);
// TempisticaLocalServiceUtil.addTempistica(intPraticaId,
// dettPratica.getDettPraticaId(), TempisticaConstants.TIPO_PRATICA,
// dtInvio,
// serviceContext);
Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPraticaId);
if (sorteggio != null) {
sorteggio.setStatus(0);
if (controlloPratica != null) {
if (controlloPratica.getStatusByUserId() != 0l) {
sorteggio.setStatusByUserId(controlloPratica.getStatusByUserId());
}
if (controlloPratica.getStatusByUserName() != null
&& !controlloPratica.getStatusByUserName().equals("")) {
sorteggio.setStatusByUserName(controlloPratica.getStatusByUserName());
}
}
SorteggioLocalServiceUtil.updateSorteggio(sorteggio);
}
}
private ServiceContext getServiceContext(ControlloPratica controlloPratica) { private ServiceContext getServiceContext(ControlloPratica controlloPratica) {
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();

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

@ -44,7 +44,6 @@ import com.liferay.portal.kernel.util.CSVUtil;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
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;
@ -61,8 +60,8 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
public class TempistichePortlet extends MVCPortlet { public class TempistichePortlet extends MVCPortlet {
@Override @Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
PortletException { throws IOException, PortletException {
String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); String resourceId = GetterUtil.getString(resourceRequest.getResourceID());
@ -77,7 +76,9 @@ public class TempistichePortlet extends MVCPortlet {
String tipoTempistica = ParamUtil.getString(resourceRequest, "tipoTempistica"); String tipoTempistica = ParamUtil.getString(resourceRequest, "tipoTempistica");
// ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
Integer statoPratica = Validator.isNotNull(resourceRequest.getParameter("statoPratica")) && !"".equals(resourceRequest.getParameter("statoPratica")) ? ParamUtil.getInteger(resourceRequest, "statoPratica") : null; Integer statoPratica = Validator.isNotNull(resourceRequest.getParameter("statoPratica"))
&& !"".equals(resourceRequest.getParameter("statoPratica")) ? ParamUtil.getInteger(
resourceRequest, "statoPratica") : null;
// ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
String tipoPratica = ParamUtil.getString(resourceRequest, "tipoPratica"); String tipoPratica = ParamUtil.getString(resourceRequest, "tipoPratica");
@ -85,7 +86,8 @@ public class TempistichePortlet extends MVCPortlet {
try { try {
// ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
String csv = exportToCSV(companyId, groupId, locale, tipoTempistica, statoPratica, tipoPratica, istruttore, resourceId.equals("exportAllCSV")); String csv = exportToCSV(companyId, groupId, locale, tipoTempistica, statoPratica,
tipoPratica, istruttore, resourceId.equals("exportAllCSV"));
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest);
HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse);
@ -115,7 +117,9 @@ public class TempistichePortlet extends MVCPortlet {
} }
// ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
private String exportToCSV(long companyId, long groupId, Locale locale, String tipoTempistica, Integer statoPratica, String tipoPratica, String istruttore, boolean isBackCompatibility) throws Exception { private String exportToCSV(long companyId, long groupId, Locale locale, String tipoTempistica,
Integer statoPratica, String tipoPratica, String istruttore, boolean isBackCompatibility)
throws Exception {
Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); Format dateFormat = FastDateFormatFactoryUtil.getDate(locale);
Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale); Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale);
@ -124,29 +128,40 @@ public class TempistichePortlet extends MVCPortlet {
if (tipoTempistica.equals(TempisticaConstants.TIPO_PRATICA)) { if (tipoTempistica.equals(TempisticaConstants.TIPO_PRATICA)) {
// ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
List<Object[]> tempistiche = isBackCompatibility ? List<Object[]> tempistiche = isBackCompatibility ? TempisticaLocalServiceUtil
TempisticaLocalServiceUtil.scadenzePraticheForBackwardCompatibility(companyId, groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS) : .scadenzePraticheForBackwardCompatibility(companyId, groupId, QueryUtil.ALL_POS,
TempisticaLocalServiceUtil.getScadenzePratiche(companyId, groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica, tipoPratica, istruttore); QueryUtil.ALL_POS) : TempisticaLocalServiceUtil.getScadenzePratiche(companyId,
groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica, tipoPratica, istruttore);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.provincia"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.provincia")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.tipopratica"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.tipopratica")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.progetto"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.progetto")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.istruttore"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.istruttore")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.datavidimazione"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.datavidimazione")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.datasorteggio"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.datasorteggio")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.start"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.start")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.tempoattivita"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.tempoattivita")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.timerfermo"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.timerfermo")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza")));
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
@ -155,7 +170,6 @@ public class TempistichePortlet extends MVCPortlet {
for (Object[] tempistica : tempistiche) { for (Object[] tempistica : tempistiche) {
Long intPraticaId = (Long) tempistica[0]; Long intPraticaId = (Long) tempistica[0];
Long start = (Long) tempistica[1];
Long stop = (Long) tempistica[2]; Long stop = (Long) tempistica[2];
// Long wait = (Long) tempistica[3]; // Long wait = (Long) tempistica[3];
Long calcoloTempo = (Long) tempistica[4]; Long calcoloTempo = (Long) tempistica[4];
@ -186,28 +200,32 @@ public class TempistichePortlet extends MVCPortlet {
alreadyInserted.add(intPraticaId); alreadyInserted.add(intPraticaId);
} }
// DettPratica dettPratica =
// DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); // DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica
Provincia provincia = .getTerritorioId());
ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
sb.append(CSVUtil.encode(provincia.getProvincia())); sb.append(CSVUtil.encode(provincia.getProvincia()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "tipo-pratica-"+intPratica.getTipoPratica()))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "tipo-pratica-"
+ intPratica.getTipoPratica())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); sb.append(CSVUtil.encode(intPratica.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long statusByUserId = intPratica.getStatusByUserId(); long statusByUserId = intPratica.getStatusByUserId();
if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { if (Validator.isNotNull(statusByUserId)
&& intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) {
try { try {
User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE + StringPool.OPEN_PARENTHESIS sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE
+ istruttoreUser.getScreenName() + StringPool.CLOSE_PARENTHESIS)); + StringPool.OPEN_PARENTHESIS + istruttoreUser.getScreenName()
+ StringPool.CLOSE_PARENTHESIS));
} catch (PortalException e) { } catch (PortalException e) {
} }
} }
@ -232,7 +250,6 @@ public class TempistichePortlet extends MVCPortlet {
Order defaultOrder = OrderFactoryUtil.desc("createDate"); Order defaultOrder = OrderFactoryUtil.desc("createDate");
queryAvv.addOrder(defaultOrder); queryAvv.addOrder(defaultOrder);
List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv);
if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) { if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) {
sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio()))); sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio())));
@ -240,68 +257,83 @@ public class TempistichePortlet extends MVCPortlet {
sb.append(""); sb.append("");
} }
// sb.append(CSVUtil.encode(dateFormat.format(new Date(start)))); // sb.append(CSVUtil.encode(dateFormat.format(new
// Date(start))));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo)))); sb.append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo))));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
if (Validator.isNotNull(stop)) { if (Validator.isNotNull(stop)) {
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.si"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.si")));
sb.append(StringPool.SPACE); sb.append(StringPool.SPACE);
sb.append(CSVUtil.encode(LanguageUtil.format(getPortletConfig(), locale, sb.append(CSVUtil.encode(LanguageUtil.format(getPortletConfig(), locale,
"label.scadenzegeniocivile.timer.dal", dateFormat.format(new Date(stop))))); "label.scadenzegeniocivile.timer.dal", dateFormat.format(new Date(stop)))));
} else { } else {
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.no"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.no")));
} }
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
if (Validator.isNotNull(stop)) { if (Validator.isNotNull(stop)) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.inattesa")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.inattesa"));
} else if (stato.intValue() == TempisticaConstants.STATO_IN_SCADENZA) { } else if (stato.intValue() == TempisticaConstants.STATO_IN_SCADENZA) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.inscadenza")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.inscadenza"));
} else if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) { } else if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.scaduto")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.scaduto"));
} else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) { } else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.attivo")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.attivo"));
} }
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
} }
} else if (tipoTempistica.equals(TempisticaConstants.TIPO_INTEGRAZIONE)) { } else if (tipoTempistica.equals(TempisticaConstants.TIPO_INTEGRAZIONE)) {
List<Object[]> tempistiche = List<Object[]> tempistiche = TempisticaLocalServiceUtil.getScadenzeIntegrazioni(companyId,
TempisticaLocalServiceUtil.getScadenzeIntegrazioni(companyId, groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica); groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.provincia"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.provincia")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.tipopratica"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.tipopratica")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.progetto"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.progetto")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.istruttore"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.istruttore")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.start"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.start")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.tempoattivita"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.tempoattivita")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza")));
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
for (Object[] tempistica : tempistiche) { for (Object[] tempistica : tempistiche) {
Long intPraticaId = (Long) tempistica[0]; Long intPraticaId = (Long) tempistica[0];
Long start = (Long) tempistica[1];
Long calcoloTempo = (Long) tempistica[2]; Long calcoloTempo = (Long) tempistica[2];
Integer stato = (Integer) tempistica[3]; Integer stato = (Integer) tempistica[3];
Long dettPraticaId = (Long) tempistica[4]; Long dettPraticaId = (Long) tempistica[4];
// DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); // DettPratica dettPratica =
// DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica
Provincia provincia = .getTerritorioId());
ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
sb.append(CSVUtil.encode(provincia.getProvincia())); sb.append(CSVUtil.encode(provincia.getProvincia()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
@ -313,19 +345,20 @@ public class TempistichePortlet extends MVCPortlet {
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
long statusByUserId = intPratica.getStatusByUserId(); long statusByUserId = intPratica.getStatusByUserId();
if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { if (Validator.isNotNull(statusByUserId)
&& intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) {
try { try {
User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE + StringPool.OPEN_PARENTHESIS sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE
+ istruttoreUser.getScreenName() + StringPool.CLOSE_PARENTHESIS)); + StringPool.OPEN_PARENTHESIS + istruttoreUser.getScreenName()
+ StringPool.CLOSE_PARENTHESIS));
} catch (PortalException e) { } catch (PortalException e) {
} }
} }
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
List<Avviso> avvisi = AvvisoLocalServiceUtil.findByClassPk_tipoDocumento(dettPraticaId,
List<Avviso> avvisi = StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
AvvisoLocalServiceUtil.findByClassPk_tipoDocumento(dettPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
if (avvisi.size() > 0 && avvisi.get(0).getDtAvviso() != null) { if (avvisi.size() > 0 && avvisi.get(0).getDtAvviso() != null) {
sb.append(CSVUtil.encode(dateFormat.format(avvisi.get(0).getDtInvio()))); sb.append(CSVUtil.encode(dateFormat.format(avvisi.get(0).getDtInvio())));
} else { } else {
@ -338,9 +371,11 @@ public class TempistichePortlet extends MVCPortlet {
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) { if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.scaduto")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.scaduto"));
} else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) { } else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) {
sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.attivo")); sb.append(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.scadenza.attivo"));
} }
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java

@ -4,15 +4,10 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
public class ReportAvvisoBean implements Serializable { public class ReportAvvisoBean implements Serializable {
private static final long serialVersionUID = -1229588050032694212L; private static final long serialVersionUID = -1229588050032694212L;
private static final Log _log = LogFactoryUtil.getLog(ReportAvvisoBean.class);
private String tipo; private String tipo;
private String codiceUnivoco; private String codiceUnivoco;
private String lavoriDi; private String lavoriDi;

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java

@ -1,10 +1,8 @@
package it.tref.liferay.portos.bo.report.builder.builder; package it.tref.liferay.portos.bo.report.builder.builder;
import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.TipoDestinatario;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoAllegatoBean; import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoAllegatoBean;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaUtil;
import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil;
import it.tref.liferay.portos.bo.util.FilesImporter; import it.tref.liferay.portos.bo.util.FilesImporter;

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java

@ -44,8 +44,6 @@ import java.util.Map;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.CalendarUtil; import com.liferay.portal.kernel.util.CalendarUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
@ -59,8 +57,6 @@ import com.liferay.portal.service.UserLocalServiceUtil;
public class ReportAvvisoBeanBuilder { public class ReportAvvisoBeanBuilder {
private final static Log _log = LogFactoryUtil.getLog(ReportAvvisoBeanBuilder.class);
private ReportAvvisoBeanBuilder() { private ReportAvvisoBeanBuilder() {
} }

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java

@ -17,7 +17,8 @@ public class ReportAvvisoSoggettoBeanBuilder {
ReportAvvisoSoggettoBean bean = new ReportAvvisoSoggettoBean(); ReportAvvisoSoggettoBean bean = new ReportAvvisoSoggettoBean();
bean.setTipoSoggetto(LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + soggetto.getTipologiaSoggetto())); bean.setTipoSoggetto(LanguageUtil.get(LocaleUtil.ITALIAN,
"gc-soggetto-" + soggetto.getTipologiaSoggetto()));
bean.setDenominazione(soggetto.getTitle()); bean.setDenominazione(soggetto.getTitle());
if (soggetto.getDettPraticaId() == dettPraticaId) { if (soggetto.getDettPraticaId() == dettPraticaId) {
bean.setTipoOperazione("aggiunto"); bean.setTipoOperazione("aggiunto");
@ -32,5 +33,4 @@ public class ReportAvvisoSoggettoBeanBuilder {
return bean; return bean;
} }
} }

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

@ -23,7 +23,8 @@ public class ReportSorteggioBeanBuilder {
ReportSorteggioBean reportSorteggioBOBean = new ReportSorteggioBean(); ReportSorteggioBean reportSorteggioBOBean = new ReportSorteggioBean();
try { try {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(sorteggio.getDettPraticaId()); DettPratica dettPratica = DettPraticaLocalServiceUtil
.getDettPratica(sorteggio.getDettPraticaId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
reportSorteggioBOBean.setFascia(territorio.getFascia()); reportSorteggioBOBean.setFascia(territorio.getFascia());

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

@ -202,21 +202,21 @@ public class ParereGeologoLocalServiceClpInvoker {
_methodParameterTypes219 = new String[] { "long" }; _methodParameterTypes219 = new String[] { "long" };
_methodName221 = "findNotParereByGeologoId"; _methodName220 = "findNotParereByGeologoId";
_methodParameterTypes221 = new String[] { "long", "int", "int" }; _methodParameterTypes220 = new String[] { "long", "int", "int" };
_methodName222 = "findWithParereByGeologoId"; _methodName221 = "findWithParereByGeologoId";
_methodParameterTypes222 = new String[] { "long", "int", "int" }; _methodParameterTypes221 = new String[] { "long", "int", "int" };
_methodName223 = "countFindNotParereByGeologoId"; _methodName222 = "countFindNotParereByGeologoId";
_methodParameterTypes223 = new String[] { "long" }; _methodParameterTypes222 = new String[] { "long" };
_methodName224 = "countFindWithParereByGeologoId"; _methodName223 = "countFindWithParereByGeologoId";
_methodParameterTypes224 = new String[] { "long" }; _methodParameterTypes223 = new String[] { "long" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -436,27 +436,27 @@ public class ParereGeologoLocalServiceClpInvoker {
return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName221.equals(name) && if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName222.equals(name) && if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName223.equals(name) && if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName224.equals(name) && if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue());
} }
@ -537,12 +537,12 @@ public class ParereGeologoLocalServiceClpInvoker {
private String[] _methodParameterTypes218; private String[] _methodParameterTypes218;
private String _methodName219; private String _methodName219;
private String[] _methodParameterTypes219; private String[] _methodParameterTypes219;
private String _methodName220;
private String[] _methodParameterTypes220;
private String _methodName221; private String _methodName221;
private String[] _methodParameterTypes221; private String[] _methodParameterTypes221;
private String _methodName222; private String _methodName222;
private String[] _methodParameterTypes222; private String[] _methodParameterTypes222;
private String _methodName223; private String _methodName223;
private String[] _methodParameterTypes223; private String[] _methodParameterTypes223;
private String _methodName224;
private String[] _methodParameterTypes224;
} }

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

@ -54,8 +54,6 @@ import com.liferay.portal.NoSuchRepositoryEntryException;
import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -96,8 +94,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
* to access the asseverazione local service. * to access the asseverazione local service.
*/ */
private Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class);
public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni) public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni)
throws IOException, SystemException, PortalException { throws IOException, SystemException, PortalException {
return testoAsseverazione(tipo, user.getScreenName(), dettPratica, relazioni, true); return testoAsseverazione(tipo, user.getScreenName(), dettPratica, relazioni, true);

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

@ -983,7 +983,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("fileEntryIdInvio", 0l)); dynamicQuery.add(RestrictionsFactoryUtil.eq("fileEntryIdInvio", 0l));
dynamicQuery.add(RestrictionsFactoryUtil.ne("fileEntryIdBase", 0l)); dynamicQuery.add(RestrictionsFactoryUtil.ne("fileEntryIdBase", 0l));
dynamicQuery.add(RestrictionsFactoryUtil.eq("rifiutato", false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("rifiutato", false));
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery); List<Avviso> avvisi = (List<Avviso>) avvisoPersistence.findWithDynamicQuery(dynamicQuery);
return avvisi; return avvisi;
} }

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

@ -223,7 +223,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
} }
@Override @Override
@SuppressWarnings("unchecked")
public List<Comune> findByKeywords(long companyId, String keywords, int start, int end, public List<Comune> findByKeywords(long companyId, String keywords, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {
@ -333,7 +332,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
return comuni; return comuni;
} }
//ADT BUG BO ID = 1 SEZIONE ATTIVITà //ADT BUG BO ID = 1 SEZIONE ATTIVIT<EFBFBD>
public List<Comune> getComuniForOrganizationByUserIdUfficioId(long userId, long ufficioId) throws SystemException { public List<Comune> getComuniForOrganizationByUserIdUfficioId(long userId, long ufficioId) throws SystemException {
List<Comune> comuni = new ArrayList<Comune>(); List<Comune> comuni = new ArrayList<Comune>();

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

@ -42,9 +42,6 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.Disjunction;
@ -72,7 +69,6 @@ import com.liferay.portal.kernel.search.SearchContext;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.Http.Body;
import com.liferay.portal.kernel.util.Http.Options; import com.liferay.portal.kernel.util.Http.Options;
import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.HttpUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;

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

@ -20,7 +20,6 @@ import it.tref.liferay.portos.bo.service.base.DettPraticaServiceBaseImpl;
import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission;
import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil; import it.tref.liferay.portos.bo.util.DelegheUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;

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

@ -34,8 +34,6 @@ import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -79,8 +77,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
* access the doc pratica local service. * access the doc pratica local service.
*/ */
private Log _log = LogFactoryUtil.getLog(DocPraticaLocalServiceImpl.class);
@Override @Override
public DocPratica deleteDocPratica(DocPratica docPratica) throws SystemException { public DocPratica deleteDocPratica(DocPratica docPratica) throws SystemException {
@ -407,15 +403,12 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
public List<DocPratica> getDocPraticaDaInviareDax(int start, int end) throws SystemException { public List<DocPratica> getDocPraticaDaInviareDax(int start, int end) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryDocPraticaDaInviareDax(); DynamicQuery dynamicQuery = dynamicQueryDocPraticaDaInviareDax();
return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
private DynamicQuery dynamicQueryDocPraticaDaInviareDax() { private DynamicQuery dynamicQueryDocPraticaDaInviareDax() {
DynamicQuery dynamicQuery = docPraticaLocalService.dynamicQuery(); DynamicQuery dynamicQuery = docPraticaLocalService.dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioDax").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioDax").isNull());
dynamicQuery.add(PropertyFactoryUtil.forName("daxId").eq(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("daxId").eq(0L));
@ -425,7 +418,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
} }
public int countByClassPk(long classPk) throws SystemException { public int countByClassPk(long classPk) throws SystemException {
return docPraticaPersistence.countByClassPk(classPk); return docPraticaPersistence.countByClassPk(classPk);
} }

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

@ -20,8 +20,6 @@ import java.util.Date;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
@ -51,8 +49,6 @@ public class InfoFascicoloLocalServiceImpl extends InfoFascicoloLocalServiceBase
* local service. * local service.
*/ */
private static Log _log = LogFactoryUtil.getLog(InfoFascicoloLocalServiceImpl.class.getName());
public InfoFascicolo addInfoFascicolo(long intPraticaId, String numeroProgetto, ServiceContext serviceContext) public InfoFascicolo addInfoFascicolo(long intPraticaId, String numeroProgetto, ServiceContext serviceContext)
throws SystemException, PortalException { throws SystemException, PortalException {
return addInfoFascicolo(intPraticaId, numeroProgetto, false, serviceContext); return addInfoFascicolo(intPraticaId, numeroProgetto, false, serviceContext);

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

@ -231,12 +231,6 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.countByGeologoId(geologoUserId); return parereGeologoPersistence.countByGeologoId(geologoUserId);
} }
private void validate(ParereGeologo parereGeologo) {
// TODO Auto-generated method stub
}
public List<ParereGeologo> findNotParereByGeologoId(long geologoUserId, int start, int end) public List<ParereGeologo> findNotParereByGeologoId(long geologoUserId, int start, int end)
throws SystemException { throws SystemException {

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

@ -172,7 +172,6 @@ public class ProvinciaLocalServiceImpl extends ProvinciaLocalServiceBaseImpl {
return provinciaPersistence.findByC_C(companyId, codiceProvincia); return provinciaPersistence.findByC_C(companyId, codiceProvincia);
} }
@SuppressWarnings("unchecked")
public List<Provincia> findByKeywords(long companyId, String keywords, public List<Provincia> findByKeywords(long companyId, String keywords,
int start, int end, OrderByComparator orderByComparator) int start, int end, OrderByComparator orderByComparator)
throws SystemException { throws SystemException {

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

@ -12,7 +12,6 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.util.SorteggioPraticaUtil;
import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.Sorteggio;
import it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl;

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

@ -24,7 +24,8 @@ public class KaleoListenereStartupAction extends ModelListenerStartupAction {
KaleoTaskInstanceTokenModelListener.class.getName()), KaleoTaskInstanceTokenModelListener.class.getName()),
new ModelListenerWrapper("portos-kaleo-web", KaleoInstanceToken.class.getName(), new ModelListenerWrapper("portos-kaleo-web", KaleoInstanceToken.class.getName(),
KaleoInstanceTokenModelListener.class.getName()), KaleoInstanceTokenModelListener.class.getName()),
new ModelListenerWrapper("portos-kaleo-web", KaleoLog.class.getName(), KaleoLogModelListener.class.getName()) new ModelListenerWrapper("portos-kaleo-web", KaleoLog.class.getName(),
KaleoLogModelListener.class.getName())
}; };
} }

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

@ -33,7 +33,8 @@ public class RoleUpdateAction extends SimpleAction {
for (String companyId : ids) { for (String companyId : ids) {
// TODO aggiunta di tutti i ruoli // TODO aggiunta di tutti i ruoli
try { try {
Role role = RoleLocalServiceUtil.fetchRole(Long.valueOf(companyId), Constants.ROLE_NAME_GEOLOGO); Role role = RoleLocalServiceUtil.fetchRole(Long.valueOf(companyId),
Constants.ROLE_NAME_GEOLOGO);
if (Validator.isNull(role)) { if (Validator.isNull(role)) {
long userId = UserLocalServiceUtil.getDefaultUserId(Long.valueOf(companyId)); long userId = UserLocalServiceUtil.getDefaultUserId(Long.valueOf(companyId));
String className = Role.class.getName(); String className = Role.class.getName();
@ -46,8 +47,8 @@ public class RoleUpdateAction extends SimpleAction {
int type = RoleConstants.TYPE_REGULAR; int type = RoleConstants.TYPE_REGULAR;
String subtype = null; String subtype = null;
ServiceContext serviceContext = null; ServiceContext serviceContext = null;
RoleLocalServiceUtil.addRole(userId, className, classPK, name, titleMap, descriptionMap, type, subtype, RoleLocalServiceUtil.addRole(userId, className, classPK, name, titleMap, descriptionMap,
serviceContext); type, subtype, serviceContext);
_log.info("Aggiunto ruolo " + name); _log.info("Aggiunto ruolo " + name);
} }

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

@ -2,18 +2,19 @@ package it.tref.liferay.portos.bo.util;
public class Constants extends it.tref.liferay.portos.bo.shared.util.Constants { public class Constants extends it.tref.liferay.portos.bo.shared.util.Constants {
public static final String NUMERO_PROGETTO_KEY_DB = "numero.progetto.key.db"; public static final String NUMERO_PROGETTO_KEY_DB = "numero.progetto.key.db";
public static final String[] AMMINISTRAZIONE_CSV_HEADERS_COMUNI = {"Codice Regione", "Codice Città Metropolitana", public static final String[] AMMINISTRAZIONE_CSV_HEADERS_COMUNI = { "Codice Regione",
"Codice Provincia (1)", "Progressivo del Comune (2)", "Codice Comune formato alfanumerico", "Codice Città Metropolitana", "Codice Provincia (1)", "Progressivo del Comune (2)",
"Denominazione in italiano", "Denominazione in tedesco", "Codice Ripartizione Geografica", "Codice Comune formato alfanumerico", "Denominazione in italiano", "Denominazione in tedesco",
"Ripartizione geografica", "Denominazione regione", "Denominazione Città metropolitana", "Codice Ripartizione Geografica", "Ripartizione geografica", "Denominazione regione",
"Denominazione provincia", "Flag Comune capoluogo di provincia", "Sigla automobilistica", "Denominazione Città metropolitana", "Denominazione provincia",
"Codice Comune formato numerico", "Codice Comune numerico con 110 province (dal 2010 al 2016)", "Flag Comune capoluogo di provincia", "Sigla automobilistica", "Codice Comune formato numerico",
"Codice Comune numerico con 110 province (dal 2010 al 2016)",
"Codice Comune numerico con 107 province (dal 2006 al 2009)", "Codice Comune numerico con 107 province (dal 2006 al 2009)",
"Codice Comune numerico con 103 province (dal 1995 al 2005)", "Codice Catastale del comune", "Codice Comune numerico con 103 province (dal 1995 al 2005)", "Codice Catastale del comune",
"Popolazione legale 2011 (09/10/2011)", "Codice NUTS1 2010", "Codice NUTS2 2010 (3) ", "Codice NUTS3 2010", "Popolazione legale 2011 (09/10/2011)", "Codice NUTS1 2010", "Codice NUTS2 2010 (3) ",
"Codice NUTS1 2006", "Codice NUTS2 2006 (3)", "Codice NUTS3 2006"}; "Codice NUTS3 2010", "Codice NUTS1 2006", "Codice NUTS2 2006 (3)", "Codice NUTS3 2006" };
public static final String[] AMMINISTRAZIONE_CSV_HEADERS_PROVINCE = {"codice_provincia", "provincia", "regione", public static final String[] AMMINISTRAZIONE_CSV_HEADERS_PROVINCE = { "codice_provincia", "provincia",
"sigla" }; "regione", "sigla" };
public static final String PORTOS_BO_SITE_NAME = "Portos BackOffice"; public static final String PORTOS_BO_SITE_NAME = "Portos BackOffice";

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

@ -27,5 +27,4 @@ public enum ContentType {
} }
} }

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

@ -6,7 +6,6 @@ import java.util.GregorianCalendar;
import org.apache.commons.lang.time.DateUtils; import org.apache.commons.lang.time.DateUtils;
public class FestivitaUtil { public class FestivitaUtil {
public final static boolean isFestivo(Date date) { public final static boolean isFestivo(Date date) {
@ -36,9 +35,9 @@ public class FestivitaUtil {
boolean isNatale = is(date, 25, 12); boolean isNatale = is(date, 25, 12);
boolean isSantoStefano = is(date, 26, 12); boolean isSantoStefano = is(date, 26, 12);
return isCapodanno || isBefana || isPasqua || isPasquetta || isFestaDellaLiberazione || isFestaDeiLavoratori return isCapodanno || isBefana || isPasqua || isPasquetta || isFestaDellaLiberazione
|| isFestaDellaRepubblica || isFerragosto || isOgnissanti || isImmacolataConcezione || isNatale || isFestaDeiLavoratori || isFestaDellaRepubblica || isFerragosto || isOgnissanti
|| isSantoStefano; || isImmacolataConcezione || isNatale || isSantoStefano;
} }
private final static boolean isPasqua(Date date) { private final static boolean isPasqua(Date date) {
@ -52,7 +51,8 @@ public class FestivitaUtil {
Date pasqua = findPasqua(year); Date pasqua = findPasqua(year);
if (pasqua != null) { if (pasqua != null) {
calendar.setTime(pasqua); calendar.setTime(pasqua);
int pasquaYMD = year * 10000 + calendar.get(Calendar.MONTH) * 100 + calendar.get(Calendar.DAY_OF_MONTH); int pasquaYMD = year * 10000 + calendar.get(Calendar.MONTH) * 100
+ calendar.get(Calendar.DAY_OF_MONTH);
return (pasquaYMD == dateYMD); return (pasquaYMD == dateYMD);
} }

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

@ -66,15 +66,16 @@ public class GenioCivileBaseUtil {
return url; return url;
} }
public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status) public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey,
throws PortletModeException, WindowStateException { int status) throws PortletModeException, WindowStateException {
return getDettPraticaURL(request, plid, resourcePrimKey, status, null); return getDettPraticaURL(request, plid, resourcePrimKey, status, null);
} }
public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status, public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey,
String redirect) throws PortletModeException, WindowStateException { int status, String redirect) throws PortletModeException, WindowStateException {
PortletURL url = PortletURLFactoryUtil.create(request, PortletKeys.FASCICOLO, plid, PortletRequest.RENDER_PHASE); PortletURL url = PortletURLFactoryUtil.create(request, PortletKeys.FASCICOLO, plid,
PortletRequest.RENDER_PHASE);
url.setParameter("mvcPath", "/html/pratichegeniocivile/view.jsp"); url.setParameter("mvcPath", "/html/pratichegeniocivile/view.jsp");
url.setParameter("resourcePrimKey", String.valueOf(resourcePrimKey)); url.setParameter("resourcePrimKey", String.valueOf(resourcePrimKey));
url.setParameter("redirect", redirect); url.setParameter("redirect", redirect);

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

@ -19,6 +19,7 @@ import com.liferay.portal.service.UserLocalServiceUtil;
public class GestioneFirmeUtil { public class GestioneFirmeUtil {
@SuppressWarnings("serial")
private static List<String> tipoDocumentoFirmaBase = new UniqueList<String>() { private static List<String> tipoDocumentoFirmaBase = new UniqueList<String>() {
{ {
add("MA"); add("MA");

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

@ -4,9 +4,7 @@ public class MockAllegato {
public boolean checked; public boolean checked;
public String status, name, tipo, invalidato; public String status, name, tipo, invalidato;
public MockAllegato(boolean checked, String status, String name, String tipo, String invalidato) {
public MockAllegato(boolean checked, String status, String name,
String tipo, String invalidato) {
super(); super();
this.checked = checked; this.checked = checked;
this.status = status; this.status = status;

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

@ -17,8 +17,9 @@ public class OggettoProtocollo {
private final String fascicoloEntityTipo; private final String fascicoloEntityTipo;
public OggettoProtocollo(String protocolloEntityId, String protocolloEntityUtenteId, public OggettoProtocollo(String protocolloEntityId, String protocolloEntityUtenteId,
String protocolloEntityUfficioId, String protocolloEntityOggetto, String protocolloEntityFascicoloNumero, String protocolloEntityUfficioId, String protocolloEntityOggetto,
String dataInserimento, String fascicoloEntityTipo) throws ParseException { String protocolloEntityFascicoloNumero, String dataInserimento, String fascicoloEntityTipo)
throws ParseException {
super(); super();
this.protocolloEntityId = protocolloEntityId; this.protocolloEntityId = protocolloEntityId;
@ -30,8 +31,8 @@ public class OggettoProtocollo {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.setTime(sdf.parse(dataInserimento)); calendar.setTime(sdf.parse(dataInserimento));
this.protocolloEntityFascicoloNumero = this.protocolloEntityFascicoloNumero = calendar.get(Calendar.YEAR)
calendar.get(Calendar.YEAR) + StringUtils.leftPad(protocolloEntityFascicoloNumero, 7).replace(' ', '0'); + StringUtils.leftPad(protocolloEntityFascicoloNumero, 7).replace(' ', '0');
this.fascicoloEntityTipo = fascicoloEntityTipo.equals("1") ? "partenza" : "arrivo"; this.fascicoloEntityTipo = fascicoloEntityTipo.equals("1") ? "partenza" : "arrivo";
} }
@ -71,5 +72,4 @@ public class OggettoProtocollo {
return fascicoloEntityTipo; return fascicoloEntityTipo;
} }
} }

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=2477 build.number=2481
build.date=1602761948702 build.date=1602769488587
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva