Sfoglia il codice sorgente

Svuota Database

master
Salvatore La Manna 4 anni fa
parent
commit
9c60e6ae72
  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. 454
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SvuotaDatabase.java
  4. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
  5. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
  6. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
  7. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
  8. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
  9. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
  10. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
  11. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
  12. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
  13. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
  14. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
  15. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
  16. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  17. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
  18. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java
  19. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
  21. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
  22. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
  23. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
  24. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
  25. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java
  26. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
  27. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java
  28. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
  29. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/UtentePortosPersistenceImpl.java
  30. 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.

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

@ -24,6 +24,7 @@ import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil;
import it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
@ -35,10 +36,13 @@ 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.bo.util.Constants;
import it.tref.liferay.portos.mailmanager.model.Email;
import it.tref.liferay.portos.mailmanager.model.EmailAttachment;
import it.tref.liferay.portos.mailmanager.model.EmailTemplate;
import it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.service.EmailLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalServiceUtil;
import java.util.ArrayList;
import java.util.List;
@ -53,36 +57,84 @@ import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.DirectServletRegistryUtil;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowInstance;
import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil;
import com.liferay.portal.model.Company;
import com.liferay.portal.model.Contact;
import com.liferay.portal.model.EmailAddress;
import com.liferay.portal.model.Group;
import com.liferay.portal.model.Layout;
import com.liferay.portal.model.LayoutPrototype;
import com.liferay.portal.model.LayoutSetPrototype;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.ResourcePermission;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.SystemEvent;
import com.liferay.portal.model.User;
import com.liferay.portal.model.UserPersonalSite;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ContactLocalServiceUtil;
import com.liferay.portal.service.EmailAddressLocalServiceUtil;
import com.liferay.portal.service.GroupLocalServiceUtil;
import com.liferay.portal.service.LayoutLocalServiceUtil;
import com.liferay.portal.service.LayoutPrototypeLocalServiceUtil;
import com.liferay.portal.service.LayoutSetPrototypeLocalServiceUtil;
import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.ResourcePermissionLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.SystemEventLocalServiceUtil;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portlet.asset.model.AssetVocabulary;
import com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil;
import com.liferay.portlet.documentlibrary.model.DLFileEntry;
import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
import com.liferay.portlet.documentlibrary.model.DLFolder;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil;
import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil;
import com.liferay.portlet.expando.model.ExpandoColumn;
import com.liferay.portlet.expando.service.ExpandoColumnLocalServiceUtil;
import com.liferay.portlet.journal.model.JournalArticle;
import com.liferay.portlet.journal.model.JournalFolder;
import com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil;
import com.liferay.portlet.journal.service.JournalFolderLocalServiceUtil;
import com.liferay.portlet.messageboards.model.MBDiscussion;
import com.liferay.portlet.messageboards.model.MBMessage;
import com.liferay.portlet.messageboards.model.MBThread;
import com.liferay.portlet.messageboards.service.MBDiscussionLocalServiceUtil;
import com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil;
import com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil;
import com.liferay.portlet.wiki.model.WikiNode;
import com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil;
/*
*
* Operazioni preliminari sul database, eseguire col portale spento:
*
* UPDATE "portos_bo_territorio" SET "dtini"=NULL WHERE "codiceprovincia"<>'089';
*
* TRUNCATE TABLE "portos_bo_intpratica";
* DELETE FROM "browsertracker" WHERE "browsertrackerid" IN (SELECT "browsertrackerid" FROM "browsertracker" "t" LEFT JOIN "user_" "u" ON "t"."userid"="u"."userid" WHERE "u"."userid" IS NULL);
* DELETE FROM "dlfileversion" WHERE "fileversionid" IN (SELECT "fileversionid" FROM "dlfileversion" "v" LEFT JOIN "dlfileentry" "f" ON "v"."fileentryid"="f"."fileentryid" WHERE "f"."fileentryid" IS NULL);
* DELETE FROM "layoutset" WHERE "layoutsetid" IN (SELECT "layoutsetid" FROM "layoutset" "l" LEFT JOIN "group_" "g" ON "l"."groupid"="g"."groupid" WHERE "g"."groupid" IS NULL);
* DELETE FROM "usernotificationdelivery" WHERE "usernotificationdeliveryid" IN (SELECT "usernotificationdeliveryid" FROM "usernotificationdelivery" "d" LEFT JOIN "user_" "u" ON "d"."userid"="u"."userid" WHERE "u"."userid" IS NULL);
* DELETE FROM "users_groups" WHERE "userid" IN (SELECT DISTINCT "ug"."userid" FROM "users_groups" "ug" LEFT JOIN "user_" "u" ON "ug"."userid"="u"."userid" WHERE "u"."userid" IS NULL);
*
*/
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));
ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext);
try {
SingleVMPoolUtil.clear();
@ -91,34 +143,35 @@ public class SvuotaDatabase {
DirectServletRegistryUtil.clearServlets();
} catch (IllegalStateException e) {
}
// configurazioneLocalService.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB,
// "1", serviceContext);
return esito;
}
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");
esitoLog(esito, "Cancellati " + svuotaCollaudo() + " Collaudo");
esitoLog(esito, "Cancellati " + svuotaContact() + " Contacts");
esitoLog(esito, "Cancellati " + svuotaControlloPratica() + " ControlloPratica");
esitoLog(esito, "Cancellati " + svuotaDelega() + " Delega");
esitoLog(esito, "Cancellati " + svuotaDocAggiuntiva() + " DocAggiuntiva");
esitoLog(esito, "Cancellati " + svuotaDocPratica() + " DocPratica");
esitoLog(esito, "Cancellati " + svuotaEmail() + " Email");
esitoLog(esito, "Cancellati " + svuotaEmailAttachment() + " EmailAttachment");
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");
esitoLog(esito, svuotaDettPratica());
esitoLog(esito, svuotaAllegatoManuale());
esitoLog(esito, svuotaAsseverazione());
esitoLog(esito, svuotaAvviso());
esitoLog(esito, svuotaCollaudo());
esitoLog(esito, svuotaContact());
esitoLog(esito, svuotaControlloPratica());
esitoLog(esito, svuotaDelega());
esitoLog(esito, svuotaDocAggiuntiva());
esitoLog(esito, svuotaDocPratica());
esitoLog(esito, svuotaEmail());
esitoLog(esito, svuotaEmailAttachment());
esitoLog(esito, svuotaFineLavori());
esitoLog(esito, svuotaGroup());
esitoLog(esito, svuotaMBDiscussion());
esitoLog(esito, svuotaMBMessage());
esitoLog(esito, svuotaMBThread());
esitoLog(esito, svuotaPagamento());
esitoLog(esito, svuotaResourcePermission(serviceContext.getCompanyId()));
esitoLog(esito, svuotaSoggetto());
esitoLog(esito, svuotaSystemEvent());
esitoLog(esito, svuotaTempistica());
return esito;
}
@ -163,7 +216,7 @@ public class SvuotaDatabase {
return esito;
}
private static int svuotaAllegatoManuale() throws SystemException {
private static String svuotaAllegatoManuale() throws SystemException {
int start = 0;
int cancellati = 0;
List<AllegatoManuale> allegatiManuali = null;
@ -171,9 +224,9 @@ public class SvuotaDatabase {
int rimossi = 0;
allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE);
for (AllegatoManuale allegatoManuale : allegatiManuali) {
if (!esiste(IntPratica.class.getName(), allegatoManuale.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), allegatoManuale.getDettPraticaId())
|| !esiste(Avviso.class.getName(), allegatoManuale.getAvvisoId())) {
if (!esiste(INTPRATICA_CLASS_NAME, allegatoManuale.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, allegatoManuale.getDettPraticaId())
|| !esiste(AVVISO_CLASS_NAME, allegatoManuale.getAvvisoId())) {
deleteFileEntry(allegatoManuale.getFileEntryId());
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale);
cancellati++;
@ -182,10 +235,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (allegatiManuali.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " AllegatoManuale";
}
private static int svuotaAsseverazione() throws SystemException {
private static String svuotaAsseverazione() throws SystemException {
int start = 0;
int cancellati = 0;
List<Asseverazione> asseverazioni = null;
@ -193,8 +246,8 @@ public class SvuotaDatabase {
int rimossi = 0;
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE);
for (Asseverazione asseverazione : asseverazioni) {
if (!esiste(IntPratica.class.getName(), asseverazione.getIntPraticaId())
|| !esiste(DettPratica.class.getName(), asseverazione.getDettPraticaId())) {
if (!esiste(INTPRATICA_CLASS_NAME, asseverazione.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, asseverazione.getDettPraticaId())) {
deleteFileEntry(asseverazione.getFileEntryId());
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione);
cancellati++;
@ -203,10 +256,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (asseverazioni.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Asseverazione";
}
private static int svuotaAvviso() throws SystemException {
private static String svuotaAvviso() throws SystemException {
int start = 0;
int cancellati = 0;
List<Avviso> avvisi = null;
@ -215,7 +268,7 @@ public class SvuotaDatabase {
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE);
for (Avviso avviso : avvisi) {
if (!esiste(avviso.getClassName(), avviso.getClassPk())
|| !esiste(IntPratica.class.getName(), avviso.getIntPraticaId())) {
|| !esiste(INTPRATICA_CLASS_NAME, avviso.getIntPraticaId())) {
deleteFileEntry(avviso.getFileEntryIdBase());
deleteFileEntry(avviso.getFileEntryIdInvio());
deleteFileEntry(avviso.getFileEntryIdProtocollo());
@ -226,10 +279,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (avvisi.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Avviso";
}
private static int svuotaCollaudo() throws SystemException, PortalException {
private static String svuotaCollaudo() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Collaudo> collaudi = null;
@ -237,7 +290,7 @@ public class SvuotaDatabase {
int rimossi = 0;
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE);
for (Collaudo collaudo : collaudi) {
if (!esiste(IntPratica.class.getName(), collaudo.getIntPraticaId())) {
if (!esiste(INTPRATICA_CLASS_NAME, collaudo.getIntPraticaId())) {
CollaudoLocalServiceUtil.deleteCollaudo(collaudo);
cancellati++;
rimossi++;
@ -245,10 +298,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (collaudi.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Collaudo";
}
private static int svuotaControlloPratica() throws SystemException, PortalException {
private static String svuotaControlloPratica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<ControlloPratica> controlliPratiche = null;
@ -256,8 +309,8 @@ public class SvuotaDatabase {
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())) {
if (!esiste(INTPRATICA_CLASS_NAME, controlloPratica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, controlloPratica.getDettPraticaId())) {
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica);
cancellati++;
rimossi++;
@ -265,10 +318,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (controlliPratiche.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " ControlloPratica";
}
private static int svuotaDelega() throws SystemException, PortalException {
private static String svuotaDelega() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Delega> deleghe = null;
@ -276,8 +329,8 @@ public class SvuotaDatabase {
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())) {
if (!esiste(INTPRATICA_CLASS_NAME, delega.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, delega.getDettPraticaId())) {
DelegaLocalServiceUtil.deleteDelega(delega);
cancellati++;
rimossi++;
@ -285,10 +338,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (deleghe.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Delega";
}
private static int svuotaContact() throws SystemException, PortalException {
private static String svuotaContact() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Contact> contacts = null;
@ -304,7 +357,7 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (contacts.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Contact";
}
private static String svuotaDettPratica() throws SystemException, PortalException {
@ -315,7 +368,7 @@ public class SvuotaDatabase {
int rimossi = 0;
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE);
for (DettPratica dettPratica : dettPratiche) {
if (!esiste(IntPratica.class.getName(), dettPratica.getIntPraticaId())) {
if (!esiste(INTPRATICA_CLASS_NAME, dettPratica.getIntPraticaId())) {
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica);
cancellati++;
rimossi++;
@ -326,7 +379,7 @@ public class SvuotaDatabase {
return "Cancellati " + cancellati + " DettPratica";
}
private static int svuotaDocAggiuntiva() throws SystemException, PortalException {
private static String svuotaDocAggiuntiva() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DocAggiuntiva> docAggiuntive = null;
@ -334,8 +387,8 @@ public class SvuotaDatabase {
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())) {
if (!esiste(INTPRATICA_CLASS_NAME, docAggiuntiva.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, docAggiuntiva.getDettPraticaId())) {
deleteFileEntry(docAggiuntiva.getFileEntryId());
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva);
cancellati++;
@ -344,10 +397,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (docAggiuntive.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " DocAggiuntiva";
}
private static int svuotaDocPratica() throws SystemException, PortalException {
private static String svuotaDocPratica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DocPratica> docPratiche = null;
@ -355,7 +408,7 @@ public class SvuotaDatabase {
int rimossi = 0;
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE);
for (DocPratica docPratica : docPratiche) {
if (!esiste(IntPratica.class.getName(), docPratica.getIntPraticaId())) {
if (!esiste(INTPRATICA_CLASS_NAME, docPratica.getIntPraticaId())) {
deleteFileEntry(docPratica.getDlFileEntryId());
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
cancellati++;
@ -364,10 +417,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (docPratiche.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " DocPratica";
}
private static int svuotaEmail() throws SystemException, PortalException {
private static String svuotaEmail() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Email> emails = null;
@ -383,10 +436,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (emails.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Email";
}
private static int svuotaEmailAttachment() throws SystemException, PortalException {
private static String svuotaEmailAttachment() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<EmailAttachment> emailAttachments = null;
@ -394,7 +447,7 @@ public class SvuotaDatabase {
int rimossi = 0;
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE);
for (EmailAttachment emailAttachment : emailAttachments) {
if (!esiste(Email.class.getName(), emailAttachment.getEmailId())) {
if (!esiste(EMAIL_CLASS_NAME, emailAttachment.getEmailId())) {
deleteFileEntry(emailAttachment.getFileEntryId());
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment);
cancellati++;
@ -403,10 +456,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (emailAttachments.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " EmailAttachment";
}
private static int svuotaFineLavori() throws SystemException, PortalException {
private static String svuotaFineLavori() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<FineLavori> finiLavori = null;
@ -414,7 +467,7 @@ public class SvuotaDatabase {
int rimossi = 0;
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE);
for (FineLavori fineLavori : finiLavori) {
if (!esiste(IntPratica.class.getName(), fineLavori.getIntPraticaId())) {
if (!esiste(INTPRATICA_CLASS_NAME, fineLavori.getIntPraticaId())) {
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori);
cancellati++;
rimossi++;
@ -422,10 +475,10 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (finiLavori.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " FineLavori";
}
private static int svuotaGroup() throws SystemException, PortalException {
private static String svuotaGroup() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Group> groups = null;
@ -441,10 +494,69 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (groups.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Group";
}
private static String svuotaMBDiscussion() throws SystemException {
int start = 0;
int cancellati = 0;
List<MBDiscussion> mbDiscussions = null;
do {
int rimossi = 0;
mbDiscussions = MBDiscussionLocalServiceUtil.getMBDiscussions(start, start + SLICE);
for (MBDiscussion mbDiscussion : mbDiscussions) {
if (!esiste(mbDiscussion.getClassName(), mbDiscussion.getClassPK())
|| !esiste(MBTHREAD_CLASS_NAME, mbDiscussion.getThreadId())) {
MBDiscussionLocalServiceUtil.deleteMBDiscussion(mbDiscussion);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (mbDiscussions.size() > 0);
return "Cancellati " + cancellati + " MBDiscussion";
}
private static String svuotaMBMessage() throws SystemException {
int start = 0;
int cancellati = 0;
List<MBMessage> mbMessages = null;
do {
int rimossi = 0;
mbMessages = MBMessageLocalServiceUtil.getMBMessages(start, start + SLICE);
for (MBMessage mbMessage : mbMessages) {
if (!esiste(mbMessage.getClassName(), mbMessage.getClassPK())
|| !esiste(MBTHREAD_CLASS_NAME, mbMessage.getThreadId())) {
MBMessageLocalServiceUtil.deleteMBMessage(mbMessage);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (mbMessages.size() > 0);
return "Cancellati " + cancellati + " MBMessage";
}
private static int svuotaPagamento() throws SystemException, PortalException {
private static String svuotaMBThread() throws SystemException {
int start = 0;
int cancellati = 0;
List<MBThread> mbThreads = null;
do {
int rimossi = 0;
mbThreads = MBThreadLocalServiceUtil.getMBThreads(start, start + SLICE);
for (MBThread mbThread : mbThreads) {
if (!esiste(MBMESSAGE_CLASS_NAME, mbThread.getRootMessageId())) {
MBThreadLocalServiceUtil.deleteMBThread(mbThread);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (mbThreads.size() > 0);
return "Cancellati " + cancellati + " MBThread";
}
private static String svuotaPagamento() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Pagamento> pagamenti = null;
@ -453,7 +565,7 @@ public class SvuotaDatabase {
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE);
for (Pagamento pagamento : pagamenti) {
if (!esiste(pagamento.getClassName(), pagamento.getClassPk())
|| !esiste(IntPratica.class.getName(), pagamento.getIntPraticaId())) {
|| !esiste(INTPRATICA_CLASS_NAME, pagamento.getIntPraticaId())) {
deleteFileEntry(pagamento.getFileEntryId());
PagamentoLocalServiceUtil.deletePagamento(pagamento);
cancellati++;
@ -462,19 +574,48 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (pagamenti.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Pagamento";
}
private static String svuotaResourcePermission(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<ResourcePermission> resourcePermissions = null;
do {
int rimossi = 0;
resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start
+ SLICE);
for (ResourcePermission resourcePermission : resourcePermissions) {
long classPK = 0;
try {
classPK = Long.parseLong(resourcePermission.getPrimKey());
if (!String.valueOf(classPK).equals(resourcePermission.getPrimKey())) {
classPK = 0;
}
} catch (NumberFormatException e) {
}
if (Validator.isNotNull(classPK) && !esiste(resourcePermission.getName(), classPK)) {
ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (resourcePermissions.size() > 0);
return "Cancellati " + cancellati + " ResourcePermission";
}
private static int svuotaSoggetto() throws SystemException, PortalException {
private static String svuotaSoggetto() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
int docPraticaCancellati = 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 (!esiste(INTPRATICA_CLASS_NAME, soggetto.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, soggetto.getDettPraticaId())) {
if (Validator.isNotNull(soggetto.getFileVariazioneId())) {
try {
DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(soggetto
@ -492,10 +633,29 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (soggetti.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Soggetto, " + docPraticaCancellati + " DocPratica";
}
private static int svuotaTempistica() throws SystemException, PortalException {
private static String svuotaSystemEvent() throws SystemException {
int start = 0;
int cancellati = 0;
List<SystemEvent> systemEvents = null;
do {
int rimossi = 0;
systemEvents = SystemEventLocalServiceUtil.getSystemEvents(start, start + SLICE);
for (SystemEvent systemEvent : systemEvents) {
if (!esiste(systemEvent.getClassName(), systemEvent.getClassPK())) {
SystemEventLocalServiceUtil.deleteSystemEvent(systemEvent);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (systemEvents.size() > 0);
return "Cancellati " + cancellati + " SystemEvent";
}
private static String svuotaTempistica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Tempistica> tempistiche = null;
@ -503,8 +663,8 @@ public class SvuotaDatabase {
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())) {
if (!esiste(INTPRATICA_CLASS_NAME, tempistica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, tempistica.getDettPraticaId())) {
TempisticaLocalServiceUtil.deleteTempistica(tempistica);
cancellati++;
rimossi++;
@ -512,47 +672,108 @@ public class SvuotaDatabase {
}
start += SLICE - rimossi;
} while (tempistiche.size() > 0);
return cancellati;
return "Cancellati " + cancellati + " Tempistica";
}
private static boolean esiste(String className, long classPK) throws SystemException {
return esiste(className, classPK, 0);
}
private static boolean esiste(String className, long classPK, long companyId) throws SystemException {
try {
if (className.equalsIgnoreCase(Asseverazione.class.getName())) {
if (ASSETVOCABULARY_CLASS_NAME.equals(className)) {
AssetVocabularyLocalServiceUtil.getAssetVocabulary(classPK);
} else if (ASSEVERAZIONE_CLASS_NAME.equals(className)) {
AsseverazioneLocalServiceUtil.getAsseverazione(classPK);
} else if (className.equalsIgnoreCase(Avviso.class.getName())) {
} else if (AVVISO_CLASS_NAME.equals(className)) {
AvvisoLocalServiceUtil.getAvviso(classPK);
} else if (className.equalsIgnoreCase(Collaudo.class.getName())) {
} else if (COLLAUDO_CLASS_NAME.equals(className)) {
CollaudoLocalServiceUtil.getCollaudo(classPK);
} else if (className.equalsIgnoreCase(Company.class.getName())) {
} else if (COMPANY_CLASS_NAME.equals(className)) {
CompanyLocalServiceUtil.getCompany(classPK);
} else if (className.equalsIgnoreCase(Delega.class.getName())) {
} else if (CONTROLLOPRATICA_CLASS_NAME.equals(className)) {
ControlloPraticaLocalServiceUtil.getControlloPratica(classPK);
} else if (DDMSTRUCTURE_CLASS_NAME.equals(className)) {
DDMStructureLocalServiceUtil.getDDMStructure(classPK);
} else if (DDMTEMPLATE_CLASS_NAME.equals(className)) {
DDMTemplateLocalServiceUtil.getDDMTemplate(classPK);
} else if (DELEGA_CLASS_NAME.equals(className)) {
DelegaLocalServiceUtil.getDelega(classPK);
} else if (className.equalsIgnoreCase(DettPratica.class.getName())) {
} else if (DETTPRATICA_CLASS_NAME.equals(className)) {
DettPraticaLocalServiceUtil.getDettPratica(classPK);
} else if (className.equalsIgnoreCase(Email.class.getName())) {
} else if (DLFILEENTRY_CLASS_NAME.equals(className)) {
DLAppLocalServiceUtil.getFileEntry(classPK);
} else if (DLFILEENTRYTYPE_CLASS_NAME.equals(className)) {
DLFileEntryTypeLocalServiceUtil.getDLFileEntryType(classPK);
} else if (DLFOLDER_CLASS_NAME.equals(className)) {
DLAppLocalServiceUtil.getFolder(classPK);
} else if (EMAIL_CLASS_NAME.equals(className)) {
EmailLocalServiceUtil.getEmail(classPK);
} else if (className.equalsIgnoreCase(FineLavori.class.getName())) {
} else if (EMAILADDRESS_CLASS_NAME.equals(className)) {
EmailAddressLocalServiceUtil.getEmailAddress(classPK);
} else if (EMAILTEMPLATE_CLASS_NAME.equals(className)) {
EmailTemplateLocalServiceUtil.getEmailTemplate(classPK);
} else if (EXPANDOCOLUMN_CLASS_NAME.equals(className)) {
ExpandoColumnLocalServiceUtil.getExpandoColumn(classPK);
} else if (FINELAVORI_CLASS_NAME.equals(className)) {
FineLavoriLocalServiceUtil.getFineLavori(classPK);
} else if (className.equalsIgnoreCase(Group.class.getName())) {
} else if (GROUP_CLASS_NAME.equals(className)) {
GroupLocalServiceUtil.getGroup(classPK);
} else if (className.equalsIgnoreCase(IntPratica.class.getName())) {
} else if (INTPRATICA_CLASS_NAME.equals(className)) {
IntPraticaLocalServiceUtil.getIntPratica(classPK);
} else if (className.equalsIgnoreCase(LayoutPrototype.class.getName())) {
} else if (JOURNALARTICLE_CLASS_NAME.equals(className)) {
JournalArticleLocalServiceUtil.getArticle(classPK);
} else if (JOURNALFOLDER_CLASS_NAME.equals(className)) {
JournalFolderLocalServiceUtil.getJournalFolder(classPK);
} else if (LAYOUT_CLASS_NAME.equals(className)) {
LayoutLocalServiceUtil.getLayout(classPK);
} else if (LAYOUTPROTOTYPE_CLASS_NAME.equals(className)) {
LayoutPrototypeLocalServiceUtil.getLayoutPrototype(classPK);
} else if (className.equalsIgnoreCase(LayoutSetPrototype.class.getName())) {
} else if (LAYOUTSETPROTOTYPE_CLASS_NAME.equals(className)) {
LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(classPK);
} else if (className.equalsIgnoreCase(ParereGeologo.class.getName())) {
ParereGeologoLocalServiceUtil.getParereGeologo(classPK);
} else if (className.equalsIgnoreCase(Organization.class.getName())) {
} else if (MBMESSAGE_CLASS_NAME.equals(className)) {
MBMessageLocalServiceUtil.getMBMessage(classPK);
} else if (MBTHREAD_CLASS_NAME.equals(className)) {
MBThreadLocalServiceUtil.getMBThread(classPK);
} else if (ORGANIZATION_CLASS_NAME.equals(className)) {
OrganizationLocalServiceUtil.getOrganization(classPK);
} else if (className.equalsIgnoreCase(Soggetto.class.getName())) {
} else if (PAREREGEOLOGO_CLASS_NAME.equals(className)) {
ParereGeologoLocalServiceUtil.getParereGeologo(classPK);
} else if (ROLE_CLASS_NAME.equals(className)) {
RoleLocalServiceUtil.getRole(classPK);
} else if (SOGGETTO_CLASS_NAME.equals(className)) {
SoggettoLocalServiceUtil.getSoggetto(classPK);
} else if (className.equalsIgnoreCase(User.class.getName())) {
} else if (USER_CLASS_NAME.equals(className)) {
UserLocalServiceUtil.getUser(classPK);
} else if (className.equalsIgnoreCase(UserPersonalSite.class.getName())) {
} else if (USERPERSONALSITE_CLASS_NAME.equals(className)) {
// Nop
} else if (WIKINODE_CLASS_NAME.equals(className)) {
WikiNodeLocalServiceUtil.getWikiNode(classPK);
} else if (WORKFLOWINSTANCE_CLASS_NAME.equals(className)) {
if (Validator.isNotNull(companyId)) {
WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, classPK);
}
} else {
_log.info("Classe non supportata: " + className);
if (className.contains(".")) {
switch (className) {
case "com.liferay.portlet.asset":
case "com.liferay.portlet.blogs":
case "com.liferay.portlet.bookmarks":
case "com.liferay.portlet.documentlibrary":
case "com.liferay.portlet.journal":
case "com.liferay.portlet.messageboards":
case "com.liferay.portlet.polls":
case "com.liferay.portlet.wiki":
case "it.tref.liferay.portos.bo.controlloPratica":
case "it.tref.liferay.portos.bo.dettpratica":
case "it.tref.liferay.portos.bo.intpratiche":
case "it.tref.liferay.portos.bo.pending_pagamenti":
case "it.tref.liferay.portos.mailmanager.email":
break;
default:
_log.info("Classe non supportata: " + className);
}
}
}
} catch (PortalException e) {
return false;
@ -571,4 +792,41 @@ public class SvuotaDatabase {
_log.info(msg);
esito.add(msg);
}
private static final String ASSETVOCABULARY_CLASS_NAME = AssetVocabulary.class.getName();
private static final String ASSEVERAZIONE_CLASS_NAME = Asseverazione.class.getName();
private static final String AVVISO_CLASS_NAME = Avviso.class.getName();
private static final String COLLAUDO_CLASS_NAME = Collaudo.class.getName();
private static final String COMPANY_CLASS_NAME = Company.class.getName();
private static final String CONTROLLOPRATICA_CLASS_NAME = ControlloPratica.class.getName();
private static final String DDMSTRUCTURE_CLASS_NAME = DDMStructure.class.getName();
private static final String DDMTEMPLATE_CLASS_NAME = DDMTemplate.class.getName();
private static final String DELEGA_CLASS_NAME = Delega.class.getName();
private static final String DETTPRATICA_CLASS_NAME = DettPratica.class.getName();
private static final String DLFILEENTRY_CLASS_NAME = DLFileEntry.class.getName();
private static final String DLFILEENTRYTYPE_CLASS_NAME = DLFileEntryType.class.getName();
private static final String DLFOLDER_CLASS_NAME = DLFolder.class.getName();
private static final String EMAIL_CLASS_NAME = Email.class.getName();
private static final String EMAILADDRESS_CLASS_NAME = EmailAddress.class.getName();
private static final String EMAILTEMPLATE_CLASS_NAME = EmailTemplate.class.getName();
private static final String EXPANDOCOLUMN_CLASS_NAME = ExpandoColumn.class.getName();
private static final String FINELAVORI_CLASS_NAME = FineLavori.class.getName();
private static final String GROUP_CLASS_NAME = Group.class.getName();
private static final String INTPRATICA_CLASS_NAME = IntPratica.class.getName();
private static final String JOURNALARTICLE_CLASS_NAME = JournalArticle.class.getName();
private static final String JOURNALFOLDER_CLASS_NAME = JournalFolder.class.getName();
private static final String LAYOUT_CLASS_NAME = Layout.class.getName();
private static final String LAYOUTPROTOTYPE_CLASS_NAME = LayoutPrototype.class.getName();
private static final String LAYOUTSETPROTOTYPE_CLASS_NAME = LayoutSetPrototype.class.getName();
private static final String MBDISCUSSION_CLASS_NAME = MBDiscussion.class.getName();
private static final String MBMESSAGE_CLASS_NAME = MBMessage.class.getName();
private static final String MBTHREAD_CLASS_NAME = MBThread.class.getName();
private static final String ORGANIZATION_CLASS_NAME = Organization.class.getName();
private static final String PAREREGEOLOGO_CLASS_NAME = ParereGeologo.class.getName();
private static final String ROLE_CLASS_NAME = Role.class.getName();
private static final String SOGGETTO_CLASS_NAME = Soggetto.class.getName();
private static final String USER_CLASS_NAME = User.class.getName();
private static final String USERPERSONALSITE_CLASS_NAME = UserPersonalSite.class.getName();
private static final String WIKINODE_CLASS_NAME = WikiNode.class.getName();
private static final String WORKFLOWINSTANCE_CLASS_NAME = WorkflowInstance.class.getName();
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchIUVException;
import it.tref.liferay.portos.bo.model.IUV;
import it.tref.liferay.portos.bo.model.impl.IUVImpl;
import it.tref.liferay.portos.bo.model.impl.IUVModelImpl;
import it.tref.liferay.portos.bo.service.persistence.IUVPersistence;
import java.io.Serializable;

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchInfoFascicoloException;
import it.tref.liferay.portos.bo.model.InfoFascicolo;
import it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl;
import it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl;
import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence;
import java.io.Serializable;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -43,6 +43,7 @@ import it.tref.liferay.portos.bo.NoSuchUtentePortosException;
import it.tref.liferay.portos.bo.model.UtentePortos;
import it.tref.liferay.portos.bo.model.impl.UtentePortosImpl;
import it.tref.liferay.portos.bo.model.impl.UtentePortosModelImpl;
import it.tref.liferay.portos.bo.service.persistence.UtentePortosPersistence;
import java.io.Serializable;

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.number=2707
build.date=1604072280422
build.number=2708
build.date=1604325577969
build.auto.upgrade=true
##

Caricamento…
Annulla
Salva