|
|
@ -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.AsseverazioneLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; |
|
|
|
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.ControlloPraticaLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; |
|
|
|
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.ParereGeologoLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil; |
|
|
|
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.Email; |
|
|
|
import it.tref.liferay.portos.mailmanager.model.EmailAttachment; |
|
|
|
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.EmailAttachmentLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.mailmanager.service.EmailLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.mailmanager.service.EmailLocalServiceUtil; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalServiceUtil; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
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.servlet.DirectServletRegistryUtil; |
|
|
|
import com.liferay.portal.kernel.util.StringUtil; |
|
|
|
import com.liferay.portal.kernel.util.StringUtil; |
|
|
|
import com.liferay.portal.kernel.util.Validator; |
|
|
|
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.Company; |
|
|
|
import com.liferay.portal.model.Contact; |
|
|
|
import com.liferay.portal.model.Contact; |
|
|
|
|
|
|
|
import com.liferay.portal.model.EmailAddress; |
|
|
|
import com.liferay.portal.model.Group; |
|
|
|
import com.liferay.portal.model.Group; |
|
|
|
|
|
|
|
import com.liferay.portal.model.Layout; |
|
|
|
import com.liferay.portal.model.LayoutPrototype; |
|
|
|
import com.liferay.portal.model.LayoutPrototype; |
|
|
|
import com.liferay.portal.model.LayoutSetPrototype; |
|
|
|
import com.liferay.portal.model.LayoutSetPrototype; |
|
|
|
import com.liferay.portal.model.Organization; |
|
|
|
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.User; |
|
|
|
import com.liferay.portal.model.UserPersonalSite; |
|
|
|
import com.liferay.portal.model.UserPersonalSite; |
|
|
|
import com.liferay.portal.service.CompanyLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.CompanyLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.ContactLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.ContactLocalServiceUtil; |
|
|
|
|
|
|
|
import com.liferay.portal.service.EmailAddressLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.GroupLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.GroupLocalServiceUtil; |
|
|
|
|
|
|
|
import com.liferay.portal.service.LayoutLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.LayoutPrototypeLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.LayoutPrototypeLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.LayoutSetPrototypeLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.LayoutSetPrototypeLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.OrganizationLocalServiceUtil; |
|
|
|
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.ServiceContext; |
|
|
|
|
|
|
|
import com.liferay.portal.service.SystemEventLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.UserLocalServiceUtil; |
|
|
|
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.model.DLFolder; |
|
|
|
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; |
|
|
|
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.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 { |
|
|
|
public class SvuotaDatabase { |
|
|
|
private static final Log _log = LogFactoryUtil.getLog(SvuotaDatabase.class); |
|
|
|
private static final Log _log = LogFactoryUtil.getLog(SvuotaDatabase.class); |
|
|
|
private static final int SLICE = 1000; |
|
|
|
private static final int SLICE = 1000; |
|
|
|
|
|
|
|
|
|
|
|
private static int docPraticaCancellati; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static List<String> pulisci(ServiceContext serviceContext) throws SystemException, PortalException { |
|
|
|
public static List<String> pulisci(ServiceContext serviceContext) throws SystemException, PortalException { |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
// esito.addAll(puliziaDocumentLibrary());
|
|
|
|
esito.addAll(puliziaDocumentLibrary()); |
|
|
|
esito.addAll(svuotaDatabase(serviceContext)); |
|
|
|
esito.addAll(svuotaDatabase(serviceContext)); |
|
|
|
|
|
|
|
ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
SingleVMPoolUtil.clear(); |
|
|
|
SingleVMPoolUtil.clear(); |
|
|
@ -91,34 +143,35 @@ public class SvuotaDatabase { |
|
|
|
DirectServletRegistryUtil.clearServlets(); |
|
|
|
DirectServletRegistryUtil.clearServlets(); |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
} |
|
|
|
} |
|
|
|
// configurazioneLocalService.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB,
|
|
|
|
|
|
|
|
// "1", serviceContext);
|
|
|
|
|
|
|
|
return esito; |
|
|
|
return esito; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static List<String> svuotaDatabase(ServiceContext serviceContext) throws SystemException, |
|
|
|
private static List<String> svuotaDatabase(ServiceContext serviceContext) throws SystemException, |
|
|
|
PortalException { |
|
|
|
PortalException { |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
List<String> esito = new ArrayList<>(); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaDettPratica() + " DettPratica"); |
|
|
|
esitoLog(esito, svuotaDettPratica()); |
|
|
|
|
|
|
|
|
|
|
|
esitoLog(esito, "Cancellati " + svuotaAllegatoManuale() + " AllegatoManuale"); |
|
|
|
esitoLog(esito, svuotaAllegatoManuale()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaAsseverazione() + " Asseverazione"); |
|
|
|
esitoLog(esito, svuotaAsseverazione()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaAvviso() + " Avviso"); |
|
|
|
esitoLog(esito, svuotaAvviso()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaCollaudo() + " Collaudo"); |
|
|
|
esitoLog(esito, svuotaCollaudo()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaContact() + " Contacts"); |
|
|
|
esitoLog(esito, svuotaContact()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaControlloPratica() + " ControlloPratica"); |
|
|
|
esitoLog(esito, svuotaControlloPratica()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaDelega() + " Delega"); |
|
|
|
esitoLog(esito, svuotaDelega()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaDocAggiuntiva() + " DocAggiuntiva"); |
|
|
|
esitoLog(esito, svuotaDocAggiuntiva()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaDocPratica() + " DocPratica"); |
|
|
|
esitoLog(esito, svuotaDocPratica()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaEmail() + " Email"); |
|
|
|
esitoLog(esito, svuotaEmail()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaEmailAttachment() + " EmailAttachment"); |
|
|
|
esitoLog(esito, svuotaEmailAttachment()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaFineLavori() + " FineLavori"); |
|
|
|
esitoLog(esito, svuotaFineLavori()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaGroup() + " Group"); |
|
|
|
esitoLog(esito, svuotaGroup()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaPagamento() + " Pagamento"); |
|
|
|
esitoLog(esito, svuotaMBDiscussion()); |
|
|
|
docPraticaCancellati = 0; |
|
|
|
esitoLog(esito, svuotaMBMessage()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaSoggetto() + " Soggetto, cancellati " + docPraticaCancellati |
|
|
|
esitoLog(esito, svuotaMBThread()); |
|
|
|
+ " DocPratica"); |
|
|
|
esitoLog(esito, svuotaPagamento()); |
|
|
|
esitoLog(esito, "Cancellati " + svuotaTempistica() + " Tempistica"); |
|
|
|
esitoLog(esito, svuotaResourcePermission(serviceContext.getCompanyId())); |
|
|
|
|
|
|
|
esitoLog(esito, svuotaSoggetto()); |
|
|
|
|
|
|
|
esitoLog(esito, svuotaSystemEvent()); |
|
|
|
|
|
|
|
esitoLog(esito, svuotaTempistica()); |
|
|
|
return esito; |
|
|
|
return esito; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -163,7 +216,7 @@ public class SvuotaDatabase { |
|
|
|
return esito; |
|
|
|
return esito; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static int svuotaAllegatoManuale() throws SystemException { |
|
|
|
private static String svuotaAllegatoManuale() throws SystemException { |
|
|
|
int start = 0; |
|
|
|
int start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<AllegatoManuale> allegatiManuali = null; |
|
|
|
List<AllegatoManuale> allegatiManuali = null; |
|
|
@ -171,9 +224,9 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE); |
|
|
|
allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE); |
|
|
|
for (AllegatoManuale allegatoManuale : allegatiManuali) { |
|
|
|
for (AllegatoManuale allegatoManuale : allegatiManuali) { |
|
|
|
if (!esiste(IntPratica.class.getName(), allegatoManuale.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, allegatoManuale.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), allegatoManuale.getDettPraticaId()) |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, allegatoManuale.getDettPraticaId()) |
|
|
|
|| !esiste(Avviso.class.getName(), allegatoManuale.getAvvisoId())) { |
|
|
|
|| !esiste(AVVISO_CLASS_NAME, allegatoManuale.getAvvisoId())) { |
|
|
|
deleteFileEntry(allegatoManuale.getFileEntryId()); |
|
|
|
deleteFileEntry(allegatoManuale.getFileEntryId()); |
|
|
|
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale); |
|
|
|
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -182,10 +235,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (allegatiManuali.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Asseverazione> asseverazioni = null; |
|
|
|
List<Asseverazione> asseverazioni = null; |
|
|
@ -193,8 +246,8 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE); |
|
|
|
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE); |
|
|
|
for (Asseverazione asseverazione : asseverazioni) { |
|
|
|
for (Asseverazione asseverazione : asseverazioni) { |
|
|
|
if (!esiste(IntPratica.class.getName(), asseverazione.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, asseverazione.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), asseverazione.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, asseverazione.getDettPraticaId())) { |
|
|
|
deleteFileEntry(asseverazione.getFileEntryId()); |
|
|
|
deleteFileEntry(asseverazione.getFileEntryId()); |
|
|
|
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione); |
|
|
|
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -203,10 +256,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (asseverazioni.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Avviso> avvisi = null; |
|
|
|
List<Avviso> avvisi = null; |
|
|
@ -215,7 +268,7 @@ public class SvuotaDatabase { |
|
|
|
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE); |
|
|
|
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE); |
|
|
|
for (Avviso avviso : avvisi) { |
|
|
|
for (Avviso avviso : avvisi) { |
|
|
|
if (!esiste(avviso.getClassName(), avviso.getClassPk()) |
|
|
|
if (!esiste(avviso.getClassName(), avviso.getClassPk()) |
|
|
|
|| !esiste(IntPratica.class.getName(), avviso.getIntPraticaId())) { |
|
|
|
|| !esiste(INTPRATICA_CLASS_NAME, avviso.getIntPraticaId())) { |
|
|
|
deleteFileEntry(avviso.getFileEntryIdBase()); |
|
|
|
deleteFileEntry(avviso.getFileEntryIdBase()); |
|
|
|
deleteFileEntry(avviso.getFileEntryIdInvio()); |
|
|
|
deleteFileEntry(avviso.getFileEntryIdInvio()); |
|
|
|
deleteFileEntry(avviso.getFileEntryIdProtocollo()); |
|
|
|
deleteFileEntry(avviso.getFileEntryIdProtocollo()); |
|
|
@ -226,10 +279,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (avvisi.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Collaudo> collaudi = null; |
|
|
|
List<Collaudo> collaudi = null; |
|
|
@ -237,7 +290,7 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE); |
|
|
|
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE); |
|
|
|
for (Collaudo collaudo : collaudi) { |
|
|
|
for (Collaudo collaudo : collaudi) { |
|
|
|
if (!esiste(IntPratica.class.getName(), collaudo.getIntPraticaId())) { |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, collaudo.getIntPraticaId())) { |
|
|
|
CollaudoLocalServiceUtil.deleteCollaudo(collaudo); |
|
|
|
CollaudoLocalServiceUtil.deleteCollaudo(collaudo); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -245,10 +298,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (collaudi.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<ControlloPratica> controlliPratiche = null; |
|
|
|
List<ControlloPratica> controlliPratiche = null; |
|
|
@ -256,8 +309,8 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE); |
|
|
|
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE); |
|
|
|
for (ControlloPratica controlloPratica : controlliPratiche) { |
|
|
|
for (ControlloPratica controlloPratica : controlliPratiche) { |
|
|
|
if (!esiste(IntPratica.class.getName(), controlloPratica.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, controlloPratica.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), controlloPratica.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, controlloPratica.getDettPraticaId())) { |
|
|
|
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica); |
|
|
|
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -265,10 +318,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (controlliPratiche.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Delega> deleghe = null; |
|
|
|
List<Delega> deleghe = null; |
|
|
@ -276,8 +329,8 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE); |
|
|
|
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE); |
|
|
|
for (Delega delega : deleghe) { |
|
|
|
for (Delega delega : deleghe) { |
|
|
|
if (!esiste(IntPratica.class.getName(), delega.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, delega.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), delega.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, delega.getDettPraticaId())) { |
|
|
|
DelegaLocalServiceUtil.deleteDelega(delega); |
|
|
|
DelegaLocalServiceUtil.deleteDelega(delega); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -285,10 +338,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (deleghe.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Contact> contacts = null; |
|
|
|
List<Contact> contacts = null; |
|
|
@ -304,7 +357,7 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (contacts.size() > 0); |
|
|
|
} while (contacts.size() > 0); |
|
|
|
return cancellati; |
|
|
|
return "Cancellati " + cancellati + " Contact"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static String svuotaDettPratica() throws SystemException, PortalException { |
|
|
|
private static String svuotaDettPratica() throws SystemException, PortalException { |
|
|
@ -315,7 +368,7 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE); |
|
|
|
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE); |
|
|
|
for (DettPratica dettPratica : dettPratiche) { |
|
|
|
for (DettPratica dettPratica : dettPratiche) { |
|
|
|
if (!esiste(IntPratica.class.getName(), dettPratica.getIntPraticaId())) { |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, dettPratica.getIntPraticaId())) { |
|
|
|
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica); |
|
|
|
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -326,7 +379,7 @@ public class SvuotaDatabase { |
|
|
|
return "Cancellati " + cancellati + " DettPratica"; |
|
|
|
return "Cancellati " + cancellati + " DettPratica"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static int svuotaDocAggiuntiva() throws SystemException, PortalException { |
|
|
|
private static String svuotaDocAggiuntiva() throws SystemException, PortalException { |
|
|
|
int start = 0; |
|
|
|
int start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<DocAggiuntiva> docAggiuntive = null; |
|
|
|
List<DocAggiuntiva> docAggiuntive = null; |
|
|
@ -334,8 +387,8 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE); |
|
|
|
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE); |
|
|
|
for (DocAggiuntiva docAggiuntiva : docAggiuntive) { |
|
|
|
for (DocAggiuntiva docAggiuntiva : docAggiuntive) { |
|
|
|
if (!esiste(IntPratica.class.getName(), docAggiuntiva.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, docAggiuntiva.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), docAggiuntiva.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, docAggiuntiva.getDettPraticaId())) { |
|
|
|
deleteFileEntry(docAggiuntiva.getFileEntryId()); |
|
|
|
deleteFileEntry(docAggiuntiva.getFileEntryId()); |
|
|
|
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva); |
|
|
|
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -344,10 +397,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (docAggiuntive.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<DocPratica> docPratiche = null; |
|
|
|
List<DocPratica> docPratiche = null; |
|
|
@ -355,7 +408,7 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE); |
|
|
|
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE); |
|
|
|
for (DocPratica docPratica : docPratiche) { |
|
|
|
for (DocPratica docPratica : docPratiche) { |
|
|
|
if (!esiste(IntPratica.class.getName(), docPratica.getIntPraticaId())) { |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, docPratica.getIntPraticaId())) { |
|
|
|
deleteFileEntry(docPratica.getDlFileEntryId()); |
|
|
|
deleteFileEntry(docPratica.getDlFileEntryId()); |
|
|
|
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica); |
|
|
|
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -364,10 +417,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (docPratiche.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Email> emails = null; |
|
|
|
List<Email> emails = null; |
|
|
@ -383,10 +436,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (emails.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<EmailAttachment> emailAttachments = null; |
|
|
|
List<EmailAttachment> emailAttachments = null; |
|
|
@ -394,7 +447,7 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE); |
|
|
|
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE); |
|
|
|
for (EmailAttachment emailAttachment : emailAttachments) { |
|
|
|
for (EmailAttachment emailAttachment : emailAttachments) { |
|
|
|
if (!esiste(Email.class.getName(), emailAttachment.getEmailId())) { |
|
|
|
if (!esiste(EMAIL_CLASS_NAME, emailAttachment.getEmailId())) { |
|
|
|
deleteFileEntry(emailAttachment.getFileEntryId()); |
|
|
|
deleteFileEntry(emailAttachment.getFileEntryId()); |
|
|
|
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment); |
|
|
|
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -403,10 +456,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (emailAttachments.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<FineLavori> finiLavori = null; |
|
|
|
List<FineLavori> finiLavori = null; |
|
|
@ -414,7 +467,7 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE); |
|
|
|
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE); |
|
|
|
for (FineLavori fineLavori : finiLavori) { |
|
|
|
for (FineLavori fineLavori : finiLavori) { |
|
|
|
if (!esiste(IntPratica.class.getName(), fineLavori.getIntPraticaId())) { |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, fineLavori.getIntPraticaId())) { |
|
|
|
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori); |
|
|
|
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -422,10 +475,10 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (finiLavori.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Group> groups = null; |
|
|
|
List<Group> groups = null; |
|
|
@ -441,10 +494,69 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (groups.size() > 0); |
|
|
|
} 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 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 int svuotaPagamento() throws SystemException, PortalException { |
|
|
|
private static String svuotaPagamento() throws SystemException, PortalException { |
|
|
|
int start = 0; |
|
|
|
int start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Pagamento> pagamenti = null; |
|
|
|
List<Pagamento> pagamenti = null; |
|
|
@ -453,7 +565,7 @@ public class SvuotaDatabase { |
|
|
|
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE); |
|
|
|
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE); |
|
|
|
for (Pagamento pagamento : pagamenti) { |
|
|
|
for (Pagamento pagamento : pagamenti) { |
|
|
|
if (!esiste(pagamento.getClassName(), pagamento.getClassPk()) |
|
|
|
if (!esiste(pagamento.getClassName(), pagamento.getClassPk()) |
|
|
|
|| !esiste(IntPratica.class.getName(), pagamento.getIntPraticaId())) { |
|
|
|
|| !esiste(INTPRATICA_CLASS_NAME, pagamento.getIntPraticaId())) { |
|
|
|
deleteFileEntry(pagamento.getFileEntryId()); |
|
|
|
deleteFileEntry(pagamento.getFileEntryId()); |
|
|
|
PagamentoLocalServiceUtil.deletePagamento(pagamento); |
|
|
|
PagamentoLocalServiceUtil.deletePagamento(pagamento); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
@ -462,19 +574,48 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (pagamenti.size() > 0); |
|
|
|
} while (pagamenti.size() > 0); |
|
|
|
return cancellati; |
|
|
|
return "Cancellati " + cancellati + " Pagamento"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static int svuotaSoggetto() throws SystemException, PortalException { |
|
|
|
private static String svuotaResourcePermission(long companyId) throws SystemException { |
|
|
|
int start = 0; |
|
|
|
int start = 0; |
|
|
|
int cancellati = 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 String svuotaSoggetto() throws SystemException, PortalException { |
|
|
|
|
|
|
|
int start = 0; |
|
|
|
|
|
|
|
int cancellati = 0; |
|
|
|
|
|
|
|
int docPraticaCancellati = 0; |
|
|
|
List<Soggetto> soggetti = null; |
|
|
|
List<Soggetto> soggetti = null; |
|
|
|
do { |
|
|
|
do { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE); |
|
|
|
soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE); |
|
|
|
for (Soggetto soggetto : soggetti) { |
|
|
|
for (Soggetto soggetto : soggetti) { |
|
|
|
if (!esiste(IntPratica.class.getName(), soggetto.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, soggetto.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), soggetto.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, soggetto.getDettPraticaId())) { |
|
|
|
if (Validator.isNotNull(soggetto.getFileVariazioneId())) { |
|
|
|
if (Validator.isNotNull(soggetto.getFileVariazioneId())) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(soggetto |
|
|
|
DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(soggetto |
|
|
@ -492,10 +633,29 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (soggetti.size() > 0); |
|
|
|
} 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 start = 0; |
|
|
|
int cancellati = 0; |
|
|
|
int cancellati = 0; |
|
|
|
List<Tempistica> tempistiche = null; |
|
|
|
List<Tempistica> tempistiche = null; |
|
|
@ -503,8 +663,8 @@ public class SvuotaDatabase { |
|
|
|
int rimossi = 0; |
|
|
|
int rimossi = 0; |
|
|
|
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE); |
|
|
|
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE); |
|
|
|
for (Tempistica tempistica : tempistiche) { |
|
|
|
for (Tempistica tempistica : tempistiche) { |
|
|
|
if (!esiste(IntPratica.class.getName(), tempistica.getIntPraticaId()) |
|
|
|
if (!esiste(INTPRATICA_CLASS_NAME, tempistica.getIntPraticaId()) |
|
|
|
|| !esiste(DettPratica.class.getName(), tempistica.getDettPraticaId())) { |
|
|
|
|| !esiste(DETTPRATICA_CLASS_NAME, tempistica.getDettPraticaId())) { |
|
|
|
TempisticaLocalServiceUtil.deleteTempistica(tempistica); |
|
|
|
TempisticaLocalServiceUtil.deleteTempistica(tempistica); |
|
|
|
cancellati++; |
|
|
|
cancellati++; |
|
|
|
rimossi++; |
|
|
|
rimossi++; |
|
|
@ -512,48 +672,109 @@ public class SvuotaDatabase { |
|
|
|
} |
|
|
|
} |
|
|
|
start += SLICE - rimossi; |
|
|
|
start += SLICE - rimossi; |
|
|
|
} while (tempistiche.size() > 0); |
|
|
|
} while (tempistiche.size() > 0); |
|
|
|
return cancellati; |
|
|
|
return "Cancellati " + cancellati + " Tempistica"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static boolean esiste(String className, long classPK) throws SystemException { |
|
|
|
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 { |
|
|
|
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); |
|
|
|
AsseverazioneLocalServiceUtil.getAsseverazione(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(Avviso.class.getName())) { |
|
|
|
} else if (AVVISO_CLASS_NAME.equals(className)) { |
|
|
|
AvvisoLocalServiceUtil.getAvviso(classPK); |
|
|
|
AvvisoLocalServiceUtil.getAvviso(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(Collaudo.class.getName())) { |
|
|
|
} else if (COLLAUDO_CLASS_NAME.equals(className)) { |
|
|
|
CollaudoLocalServiceUtil.getCollaudo(classPK); |
|
|
|
CollaudoLocalServiceUtil.getCollaudo(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(Company.class.getName())) { |
|
|
|
} else if (COMPANY_CLASS_NAME.equals(className)) { |
|
|
|
CompanyLocalServiceUtil.getCompany(classPK); |
|
|
|
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); |
|
|
|
DelegaLocalServiceUtil.getDelega(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(DettPratica.class.getName())) { |
|
|
|
} else if (DETTPRATICA_CLASS_NAME.equals(className)) { |
|
|
|
DettPraticaLocalServiceUtil.getDettPratica(classPK); |
|
|
|
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); |
|
|
|
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); |
|
|
|
FineLavoriLocalServiceUtil.getFineLavori(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(Group.class.getName())) { |
|
|
|
} else if (GROUP_CLASS_NAME.equals(className)) { |
|
|
|
GroupLocalServiceUtil.getGroup(classPK); |
|
|
|
GroupLocalServiceUtil.getGroup(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(IntPratica.class.getName())) { |
|
|
|
} else if (INTPRATICA_CLASS_NAME.equals(className)) { |
|
|
|
IntPraticaLocalServiceUtil.getIntPratica(classPK); |
|
|
|
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); |
|
|
|
LayoutPrototypeLocalServiceUtil.getLayoutPrototype(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(LayoutSetPrototype.class.getName())) { |
|
|
|
} else if (LAYOUTSETPROTOTYPE_CLASS_NAME.equals(className)) { |
|
|
|
LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(classPK); |
|
|
|
LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(ParereGeologo.class.getName())) { |
|
|
|
} else if (MBMESSAGE_CLASS_NAME.equals(className)) { |
|
|
|
ParereGeologoLocalServiceUtil.getParereGeologo(classPK); |
|
|
|
MBMessageLocalServiceUtil.getMBMessage(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(Organization.class.getName())) { |
|
|
|
} else if (MBTHREAD_CLASS_NAME.equals(className)) { |
|
|
|
|
|
|
|
MBThreadLocalServiceUtil.getMBThread(classPK); |
|
|
|
|
|
|
|
} else if (ORGANIZATION_CLASS_NAME.equals(className)) { |
|
|
|
OrganizationLocalServiceUtil.getOrganization(classPK); |
|
|
|
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); |
|
|
|
SoggettoLocalServiceUtil.getSoggetto(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(User.class.getName())) { |
|
|
|
} else if (USER_CLASS_NAME.equals(className)) { |
|
|
|
UserLocalServiceUtil.getUser(classPK); |
|
|
|
UserLocalServiceUtil.getUser(classPK); |
|
|
|
} else if (className.equalsIgnoreCase(UserPersonalSite.class.getName())) { |
|
|
|
} else if (USERPERSONALSITE_CLASS_NAME.equals(className)) { |
|
|
|
// Nop
|
|
|
|
// 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 { |
|
|
|
} else { |
|
|
|
|
|
|
|
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); |
|
|
|
_log.info("Classe non supportata: " + className); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} catch (PortalException e) { |
|
|
|
} catch (PortalException e) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -571,4 +792,41 @@ public class SvuotaDatabase { |
|
|
|
_log.info(msg); |
|
|
|
_log.info(msg); |
|
|
|
esito.add(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(); |
|
|
|
} |
|
|
|
} |
|
|
|