Sfoglia il codice sorgente

Merge branch 'paesaggistica' of 149.202.172.180:/home/ubuntu/sicilia/sismica into paesaggistica

master
Mattia Gosetto 4 anni fa
parent
commit
853d47eb59
  1. 20
      liferay-plugins-sdk-6.2/ivy-settings.xml
  2. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
  3. 0
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-csv.jar
  4. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpcore-4.4.6.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpmime-4.5.3.jar
  6. 0
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jettison.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/stax-api.jar
  8. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  9. 120
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SvuotaDatabase.java
  10. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml
  11. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5
  12. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar
  15. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/castor.jar
  16. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/commons-beanutils.jar
  17. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/commons-digester.jar
  18. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar
  19. 0
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jOpenDocument.jar
  20. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-annotations.jar
  21. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-core.jar
  22. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-databind.jar
  23. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar
  24. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar
  25. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jcommon.jar
  26. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jdtcore.jar
  27. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jfreechart.jar
  28. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/xml-apis.jar
  29. 6
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml
  30. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5
  31. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant-launcher.jar
  32. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant.jar
  33. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/antlr2.jar
  34. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/asm.jar
  35. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/avalon-framework-impl.jar
  36. 0
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j.jar
  37. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar
  38. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar
  39. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar
  40. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar
  41. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar
  42. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar
  43. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar
  44. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-js.jar
  45. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar
  46. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar
  47. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar
  48. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-util.jar
  49. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar
  50. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar
  51. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar
  52. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar
  53. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/castor.jar
  54. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar
  55. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-cli.jar
  56. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar
  57. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/groovy-all-2.0.1.jar
  58. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/itext.jar
  59. 0
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument.jar
  60. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-annotations.jar
  61. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-core.jar
  62. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-databind.jar
  63. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar
  64. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports.jar
  65. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jcommon.jar
  66. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jdtcore.jar
  67. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jfreechart.jar
  68. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/junit.jar
  69. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portal-compat-client.jar
  70. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xalan.jar
  71. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xml-apis.jar
  72. 1
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/report/service/persistence/ReportTaskPersistenceImpl.java
  73. 4
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties
  74. 6
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml
  75. 2
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5

20
liferay-plugins-sdk-6.2/ivy-settings.xml

@ -1,14 +1,20 @@
<ivysettings>
<settings defaultResolver="default"/>
<resolvers>
<ibiblio m2compatible="true" name="liferay-public" root="http://repository.liferay.com/nexus/content/groups/public" />
<ibiblio m2compatible="true" name="local-m2" root="file://${user.home}/.m2/repository" />
<chain dual="true" name="default">
<resolver ref="local-m2" />
<ibiblio name="l1" m2compatible="true" root="file://${user.home}/.m2/repository" />
<ibiblio name="r1" m2compatible="true" root="https://repo1.maven.org/maven2/"/>
<ibiblio name="r2" m2compatible="true" root="https://repo.maven.apache.org/maven2/"/>
<ibiblio name="r3" m2compatible="true" root="https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public" />
<ibiblio name="r4" m2compatible="true" root="http://jasperreports.sourceforge.net/maven2/"/>
<ibiblio name="r5" m2compatible="true" root="http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/"/>
<resolver ref="liferay-public" />
<chain name="default" dual="true">
<resolver ref="l1"/>
<resolver ref="r1"/>
<resolver ref="r2"/>
<resolver ref="r3"/>
<resolver ref="r4"/>
<resolver ref="r5"/>
</chain>
</resolvers>
</ivysettings>

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component

@ -9,6 +9,9 @@
<dependent-module archiveName="portos-kaleo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="portos-mail-manager-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="portos-bo-portlet"/>
<property name="java-output-path" value="/portos-bo-portlet/docroot/WEB-INF/classes"/>
</wb-module>

0
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-csv-1.4.jar → liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-csv.jar

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

File binario non mostrato.

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

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jettison-1.3.8.jar → liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jettison.jar

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

File binario non mostrato.

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -22,4 +22,5 @@ portal-dependency-tlds=\
c.tld
required-deployment-contexts=\
hms-taglib-hook,\
portos-kaleo-portlet
portos-kaleo-portlet,\
portos-mail-manager-portlet

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

@ -17,6 +17,7 @@ import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.Tempistica;
import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil;
@ -31,6 +32,7 @@ import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.model.Email;
@ -59,7 +61,6 @@ import com.liferay.portal.model.LayoutSetPrototype;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.User;
import com.liferay.portal.model.UserPersonalSite;
import com.liferay.portal.service.ClassNameLocalServiceUtil;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ContactLocalServiceUtil;
import com.liferay.portal.service.GroupLocalServiceUtil;
@ -76,9 +77,11 @@ public class SvuotaDatabase {
private static final Log _log = LogFactoryUtil.getLog(SvuotaDatabase.class);
private static final int SLICE = 1000;
private static int docPraticaCancellati;
public static List<String> pulisci(ServiceContext serviceContext) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
esito.addAll(puliziaDocumentLibrary());
// esito.addAll(puliziaDocumentLibrary());
esito.addAll(svuotaDatabase(serviceContext));
try {
@ -95,6 +98,8 @@ public class SvuotaDatabase {
private static List<String> svuotaDatabase(ServiceContext serviceContext) throws SystemException,
PortalException {
List<String> esito = new ArrayList<>();
esitoLog(esito, "Cancellati " + svuotaDettPratica() + " DettPratica");
esitoLog(esito, "Cancellati " + svuotaAllegatoManuale() + " AllegatoManuale");
esitoLog(esito, "Cancellati " + svuotaAsseverazione() + " Asseverazione");
esitoLog(esito, "Cancellati " + svuotaAvviso() + " Avviso");
@ -102,7 +107,6 @@ public class SvuotaDatabase {
esitoLog(esito, "Cancellati " + svuotaContact() + " Contacts");
esitoLog(esito, "Cancellati " + svuotaControlloPratica() + " ControlloPratica");
esitoLog(esito, "Cancellati " + svuotaDelega() + " Delega");
esitoLog(esito, "Cancellati " + svuotaDettPratica() + " DettPratica");
esitoLog(esito, "Cancellati " + svuotaDocAggiuntiva() + " DocAggiuntiva");
esitoLog(esito, "Cancellati " + svuotaDocPratica() + " DocPratica");
esitoLog(esito, "Cancellati " + svuotaEmail() + " Email");
@ -110,6 +114,9 @@ public class SvuotaDatabase {
esitoLog(esito, "Cancellati " + svuotaFineLavori() + " FineLavori");
esitoLog(esito, "Cancellati " + svuotaGroup() + " Group");
esitoLog(esito, "Cancellati " + svuotaPagamento() + " Pagamento");
docPraticaCancellati = 0;
esitoLog(esito, "Cancellati " + svuotaSoggetto() + " Soggetto, cancellati " + docPraticaCancellati
+ " DocPratica");
esitoLog(esito, "Cancellati " + svuotaTempistica() + " Tempistica");
return esito;
}
@ -168,8 +175,8 @@ public class SvuotaDatabase {
|| !esiste(Avviso.class.getName(), allegatoManuale.getAvvisoId())) {
deleteFileEntry(allegatoManuale.getFileEntryId());
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -186,12 +193,11 @@ public class SvuotaDatabase {
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE);
for (Asseverazione asseverazione : asseverazioni) {
if (!esiste(IntPratica.class.getName(), asseverazione.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), asseverazione.getDettPraticaId())
|| !esiste(Soggetto.class.getName(), asseverazione.getSoggettoId())) {
|| !esiste(DettPratica.class.getName(), asseverazione.getDettPraticaId())) {
deleteFileEntry(asseverazione.getFileEntryId());
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -204,8 +210,8 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Avviso> avvisi = null;
do {
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE);
int rimossi = 0;
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE);
for (Avviso avviso : avvisi) {
if (!esiste(avviso.getClassName(), avviso.getClassPk())
|| !esiste(IntPratica.class.getName(), avviso.getIntPraticaId())) {
@ -213,8 +219,8 @@ public class SvuotaDatabase {
deleteFileEntry(avviso.getFileEntryIdInvio());
deleteFileEntry(avviso.getFileEntryIdProtocollo());
AvvisoLocalServiceUtil.deleteAvviso(avviso);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -227,13 +233,13 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Collaudo> collaudi = null;
do {
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE);
int rimossi = 0;
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE);
for (Collaudo collaudo : collaudi) {
if (!esiste(IntPratica.class.getName(), collaudo.getIntPraticaId())) {
CollaudoLocalServiceUtil.deleteCollaudo(collaudo);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -246,14 +252,14 @@ public class SvuotaDatabase {
int cancellati = 0;
List<ControlloPratica> controlliPratiche = null;
do {
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE);
int rimossi = 0;
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE);
for (ControlloPratica controlloPratica : controlliPratiche) {
if (!esiste(IntPratica.class.getName(), controlloPratica.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), controlloPratica.getDettPraticaId())) {
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -266,14 +272,14 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Delega> deleghe = null;
do {
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE);
int rimossi = 0;
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE);
for (Delega delega : deleghe) {
if (!esiste(IntPratica.class.getName(), delega.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), delega.getDettPraticaId())) {
DelegaLocalServiceUtil.deleteDelega(delega);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -286,13 +292,13 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Contact> contacts = null;
do {
contacts = ContactLocalServiceUtil.getContacts(start, start + SLICE);
int rimossi = 0;
contacts = ContactLocalServiceUtil.getContacts(start, start + SLICE);
for (Contact contact : contacts) {
if (!esiste(contact.getClassName(), contact.getClassPK())) {
ContactLocalServiceUtil.deleteContact(contact);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -300,23 +306,23 @@ public class SvuotaDatabase {
return cancellati;
}
private static int svuotaDettPratica() throws SystemException, PortalException {
private static String svuotaDettPratica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DettPratica> dettPratiche = null;
do {
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE);
int rimossi = 0;
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE);
for (DettPratica dettPratica : dettPratiche) {
if (!esiste(IntPratica.class.getName(), dettPratica.getIntPraticaId())) {
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (dettPratiche.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " DettPratica";
}
private static int svuotaDocAggiuntiva() throws SystemException, PortalException {
@ -324,15 +330,15 @@ public class SvuotaDatabase {
int cancellati = 0;
List<DocAggiuntiva> docAggiuntive = null;
do {
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE);
int rimossi = 0;
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE);
for (DocAggiuntiva docAggiuntiva : docAggiuntive) {
if (!esiste(IntPratica.class.getName(), docAggiuntiva.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), docAggiuntiva.getDettPraticaId())) {
deleteFileEntry(docAggiuntiva.getFileEntryId());
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -345,14 +351,14 @@ public class SvuotaDatabase {
int cancellati = 0;
List<DocPratica> docPratiche = null;
do {
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE);
int rimossi = 0;
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE);
for (DocPratica docPratica : docPratiche) {
if (!esiste(IntPratica.class.getName(), docPratica.getIntPraticaId())) {
deleteFileEntry(docPratica.getDlFileEntryId());
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -365,13 +371,13 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Email> emails = null;
do {
emails = EmailLocalServiceUtil.getEmails(start, start + SLICE);
int rimossi = 0;
emails = EmailLocalServiceUtil.getEmails(start, start + SLICE);
for (Email email : emails) {
if (!esiste(email.getClassName(), email.getClassPK())) {
EmailLocalServiceUtil.deleteEmail(email);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -384,14 +390,14 @@ public class SvuotaDatabase {
int cancellati = 0;
List<EmailAttachment> emailAttachments = null;
do {
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE);
int rimossi = 0;
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE);
for (EmailAttachment emailAttachment : emailAttachments) {
if (!esiste(Email.class.getName(), emailAttachment.getEmailId())) {
deleteFileEntry(emailAttachment.getFileEntryId());
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -404,13 +410,13 @@ public class SvuotaDatabase {
int cancellati = 0;
List<FineLavori> finiLavori = null;
do {
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE);
int rimossi = 0;
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE);
for (FineLavori fineLavori : finiLavori) {
if (!esiste(IntPratica.class.getName(), fineLavori.getIntPraticaId())) {
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -423,13 +429,13 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Group> groups = null;
do {
groups = GroupLocalServiceUtil.getGroups(start, start + SLICE);
int rimossi = 0;
groups = GroupLocalServiceUtil.getGroups(start, start + SLICE);
for (Group group : groups) {
if (!esiste(group.getClassName(), group.getClassPK())) {
GroupLocalServiceUtil.deleteGroup(group);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -442,15 +448,15 @@ public class SvuotaDatabase {
int cancellati = 0;
List<Pagamento> pagamenti = null;
do {
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE);
int rimossi = 0;
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE);
for (Pagamento pagamento : pagamenti) {
if (!esiste(pagamento.getClassName(), pagamento.getClassPk())
|| !esiste(IntPratica.class.getName(), pagamento.getIntPraticaId())) {
deleteFileEntry(pagamento.getFileEntryId());
PagamentoLocalServiceUtil.deletePagamento(pagamento);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -458,19 +464,49 @@ public class SvuotaDatabase {
return cancellati;
}
private static int svuotaSoggetto() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Soggetto> soggetti = null;
do {
int rimossi = 0;
soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE);
for (Soggetto soggetto : soggetti) {
if (!esiste(IntPratica.class.getName(), soggetto.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), soggetto.getDettPraticaId())) {
if (Validator.isNotNull(soggetto.getFileVariazioneId())) {
try {
DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(soggetto
.getFileVariazioneId());
deleteFileEntry(docPratica.getDlFileEntryId());
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
docPraticaCancellati++;
} catch (PortalException e) {
}
}
SoggettoLocalServiceUtil.deleteSoggetto(soggetto);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (soggetti.size() > 0);
return cancellati;
}
private static int svuotaTempistica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Tempistica> tempistiche = null;
do {
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE);
int rimossi = 0;
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE);
for (Tempistica tempistica : tempistiche) {
if (!esiste(IntPratica.class.getName(), tempistica.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), tempistica.getDettPraticaId())) {
TempisticaLocalServiceUtil.deleteTempistica(tempistica);
rimossi++;
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
@ -478,16 +514,14 @@ public class SvuotaDatabase {
return cancellati;
}
private static boolean esiste(long classNameId, long classPK) throws PortalException, SystemException {
return esiste(ClassNameLocalServiceUtil.getClassName(classNameId).getClassName(), classPK);
}
private static boolean esiste(String className, long classPK) throws SystemException {
try {
if (className.equalsIgnoreCase(Asseverazione.class.getName())) {
AsseverazioneLocalServiceUtil.getAsseverazione(classPK);
} else if (className.equalsIgnoreCase(Avviso.class.getName())) {
AvvisoLocalServiceUtil.getAvviso(classPK);
} else if (className.equalsIgnoreCase(Collaudo.class.getName())) {
CollaudoLocalServiceUtil.getCollaudo(classPK);
} else if (className.equalsIgnoreCase(Company.class.getName())) {
CompanyLocalServiceUtil.getCompany(classPK);
} else if (className.equalsIgnoreCase(Delega.class.getName())) {
@ -496,6 +530,8 @@ public class SvuotaDatabase {
DettPraticaLocalServiceUtil.getDettPratica(classPK);
} else if (className.equalsIgnoreCase(Email.class.getName())) {
EmailLocalServiceUtil.getEmail(classPK);
} else if (className.equalsIgnoreCase(FineLavori.class.getName())) {
FineLavoriLocalServiceUtil.getFineLavori(classPK);
} else if (className.equalsIgnoreCase(Group.class.getName())) {
GroupLocalServiceUtil.getGroup(classPK);
} else if (className.equalsIgnoreCase(IntPratica.class.getName())) {
@ -504,6 +540,8 @@ public class SvuotaDatabase {
LayoutPrototypeLocalServiceUtil.getLayoutPrototype(classPK);
} else if (className.equalsIgnoreCase(LayoutSetPrototype.class.getName())) {
LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(classPK);
} else if (className.equalsIgnoreCase(ParereGeologo.class.getName())) {
ParereGeologoLocalServiceUtil.getParereGeologo(classPK);
} else if (className.equalsIgnoreCase(Organization.class.getName())) {
OrganizationLocalServiceUtil.getOrganization(classPK);
} else if (className.equalsIgnoreCase(Soggetto.class.getName())) {

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml

@ -14,5 +14,14 @@
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0" />
<dependency name="commons-codec" org="commons-codec" rev="1.10"/>
<dependency name="commons-csv" org="org.apache.commons" rev="1.4"/>
<dependency name="commons-io" org="commons-io" rev="2.6"/>
<dependency name="commons-lang" org="commons-lang" rev="2.6"/>
<dependency name="flexjson" org="net.sf.flexjson" rev="3.1"/>
<dependency name="httpclient" org="org.apache.httpcomponents" rev="4.5"/>
<dependency name="httpmime" org="org.apache.httpcomponents" rev="4.5"/>
<dependency name="jettison" org="org.codehaus.jettison" rev="1.3.8"/>
</dependencies>
</ivy-module>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5

@ -1 +1 @@
d5b426ffc55beefdfcdf11773539dda8
291fbe4be1f094ebfa7c95b6381ba6af

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/commons-beanutils.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/commons-digester.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/iText-2.1.7.js1.jar → liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jOpenDocument-1.3.jar → liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jOpenDocument.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-annotations.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-core.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jackson-databind.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts-5.0.0.jar → liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-5.0.0.jar → liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/xml-apis.jar

File binario non mostrato.

6
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml

@ -14,5 +14,11 @@
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0" />
<dependency name="httpclient" org="org.apache.httpcomponents" rev="4.5"/>
<dependency name="httpmime" org="org.apache.httpcomponents" rev="4.5"/>
<dependency name="jasperreports" org="net.sf.jasperreports" rev="5.0.4"/>
<dependency name="jasperreports-fonts" org="net.sf.jasperreports" rev="5.0.0"/>
<dependency name="jOpenDocument" org="org.jopendocument" rev="1.3"/>
</dependencies>
</ivy-module>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5

@ -1 +1 @@
e06b82dc0c33b2acbc1b260acdbf8b8c
2b88062fbb293f8650a3e1f7d317db7f

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant-launcher.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/avalon-framework-impl.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j-2.1.jar → liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-js.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-cli.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/groovy-all-2.0.1.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/iText-2.1.7.js1.jar → liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/itext.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument-1.3.jar → liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-annotations.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-core.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-databind.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports-fonts-5.0.0.jar → liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports-5.0.0.jar → liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portal-compat-client.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xml-apis.jar

File binario non mostrato.

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

@ -42,6 +42,7 @@ import it.tref.liferay.portos.report.NoSuchReportTaskException;
import it.tref.liferay.portos.report.model.ReportTask;
import it.tref.liferay.portos.report.model.impl.ReportTaskImpl;
import it.tref.liferay.portos.report.model.impl.ReportTaskModelImpl;
import it.tref.liferay.portos.report.service.persistence.ReportTaskPersistence;
import java.io.Serializable;

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

@ -13,8 +13,8 @@
##
build.namespace=portos_rep
build.number=20
build.date=1601546601661
build.number=22
build.date=1604073335660
build.auto.upgrade=true
##

6
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml

@ -14,5 +14,11 @@
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0" />
<dependency name="barcode4j" org="net.sf.barcode4j" rev="2.1"/>
<dependency name="batik-bridge" org="org.apache.xmlgraphics" rev="1.7"/>
<dependency name="jasperreports" org="net.sf.jasperreports" rev="5.0.4"/>
<dependency name="jasperreports-fonts" org="net.sf.jasperreports" rev="5.0.0"/>
<dependency name="jOpenDocument" org="org.jopendocument" rev="1.3"/>
</dependencies>
</ivy-module>

2
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5

@ -1 +1 @@
21fa9f8b1b5d0cad29c66d9d411fb7a4
3983ec64257638ed926baedf51077cc9

Caricamento…
Annulla
Salva