Sfoglia il codice sorgente

index e delete funzioni controllo, dettpratica e intpratica

master
Mattia Gosetto 4 anni fa
parent
commit
57d3b92980
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java
  3. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  4. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  6. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  7. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

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

@ -312,6 +312,7 @@ public interface ControlloPraticaLocalService extends BaseLocalService,
java.lang.String[] parameterTypes, java.lang.Object[] arguments) java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable; throws java.lang.Throwable;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.ControlloPratica addControlloPratica( public it.tref.liferay.portos.bo.model.ControlloPratica addControlloPratica(
long groupId, long userId, long intPraticaId, long dettPraticaId, long groupId, long userId, long intPraticaId, long dettPraticaId,
boolean updateFlagControlloObbligatorio, boolean updateFlagControlloObbligatorio,

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

@ -661,6 +661,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaPagamento( public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaPagamento(
long dettPraticaId, int pagAdeguamentoSismico, int pagAltro, long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione, int pagMiglioramentoSismico, int pagNuovaCostruzione,
@ -701,6 +702,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
public boolean isControlloObbligatorio( public boolean isControlloObbligatorio(
it.tref.liferay.portos.bo.model.DettPratica dettPratica); it.tref.liferay.portos.bo.model.DettPratica dettPratica);
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica updateEsito( public it.tref.liferay.portos.bo.model.DettPratica updateEsito(
long dettPraticaId, int stato) long dettPraticaId, int stato)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -713,6 +715,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException; java.io.IOException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica pagaInvia( public it.tref.liferay.portos.bo.model.DettPratica pagaInvia(
long dettPraticaId, int pagAdeguamentoSismico, int pagAltro, long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione, int pagMiglioramentoSismico, int pagNuovaCostruzione,
@ -838,6 +841,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
long pagamentoId) long pagamentoId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica updatePrincipale( public it.tref.liferay.portos.bo.model.DettPratica updatePrincipale(
long dettPraticaId, java.lang.String codiceFiscale, long dettPraticaId, java.lang.String codiceFiscale,
java.lang.String tipologiaSoggetto) java.lang.String tipologiaSoggetto)

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

@ -338,12 +338,14 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura, long territorioId, java.lang.String tipoProcedura,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long userId, java.lang.String userName, java.lang.String tipoPratica, long userId, java.lang.String userName, java.lang.String tipoPratica,
long territorioId, java.lang.String tipoProcedura, long territorioId, java.lang.String tipoProcedura,
@ -356,6 +358,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
public void clearDb() throws java.lang.Exception; public void clearDb() throws java.lang.Exception;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
public it.tref.liferay.portos.bo.model.IntPratica deleteIntPratica( public it.tref.liferay.portos.bo.model.IntPratica deleteIntPratica(
it.tref.liferay.portos.bo.model.IntPratica intPratica, boolean forced) it.tref.liferay.portos.bo.model.IntPratica intPratica, boolean forced)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -391,12 +394,14 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica cambiaTitolare( public it.tref.liferay.portos.bo.model.IntPratica cambiaTitolare(
long intPraticaId, long soggettoId, long intPraticaId, long soggettoId,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica) long intPraticaId, long dettPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -406,6 +411,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
long intPraticaId, java.util.Date dtSorteggio) long intPraticaId, java.util.Date dtSorteggio)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio(
long intPraticaId, java.util.Date dtSorteggio, long intPraticaId, java.util.Date dtSorteggio,
java.lang.String statoPratica) java.lang.String statoPratica)
@ -418,6 +424,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
public int countByC_UserId(long companyId, long userId) public int countByC_UserId(long companyId, long userId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public void updateStatus(long intPraticaId, int status) public void updateStatus(long intPraticaId, int status)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;

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

@ -56,6 +56,8 @@ import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.json.JSONSerializer; import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.Indexer;
import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.search.IndexerRegistryUtil;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
@ -105,6 +107,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaLocalServiceImpl.class); private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaLocalServiceImpl.class);
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, long dettPraticaId, public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, long dettPraticaId,
boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) throws PortalException, boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) throws PortalException,
SystemException { SystemException {
@ -178,6 +181,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override @Override
@Indexable(type = IndexableType.DELETE)
public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, SystemException { public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, SystemException {
ControlloPratica entry = controlloPraticaPersistence.findByPrimaryKey(controlloPraticaId); ControlloPratica entry = controlloPraticaPersistence.findByPrimaryKey(controlloPraticaId);
@ -186,6 +190,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override @Override
@Indexable(type = IndexableType.DELETE)
public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, PortalException { public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, PortalException {
// Resources // Resources
@ -391,8 +396,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
long istruttore = GetterUtil.getLong(parametri.get("istruttore")); long istruttore = GetterUtil.getLong(parametri.get("istruttore"));
intPratica.setStatusByUserId(istruttore); intPratica.setStatusByUserId(istruttore);
intPratica.setStatusDate(new Date()); intPratica.setStatusDate(new Date());
intPraticaLocalService.updateIntPratica(intPratica); intPraticaLocalService.updateIntPratica(intPratica);
} }
@Override @Override

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

@ -1356,6 +1356,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica; return dettPratica;
} }
@Indexable(type = IndexableType.REINDEX)
public DettPratica updateDettPraticaPagamento(long dettPraticaId, int pagAdeguamentoSismico, public DettPratica updateDettPraticaPagamento(long dettPraticaId, int pagAdeguamentoSismico,
int pagAltro, int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni, int pagAltro, int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni,
boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria, boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria,
@ -1481,6 +1482,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
} }
@Indexable(type = IndexableType.REINDEX)
public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException,
PortalException { PortalException {
@ -1619,6 +1621,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica; return dettPratica;
} }
@Indexable(type = IndexableType.REINDEX)
public DettPratica pagaInvia(long dettPraticaId, int pagAdeguamentoSismico, int pagAltro, public DettPratica pagaInvia(long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni, int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni,
boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria, boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria,
@ -2128,6 +2131,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery); return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery);
} }
@Indexable(type = IndexableType.REINDEX)
public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto)
throws PortalException, SystemException { throws PortalException, SystemException {

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

@ -96,6 +96,8 @@ import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.Indexer;
import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.search.IndexerRegistryUtil;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
@ -242,6 +244,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext)
throws SystemException, PortalException { throws SystemException, PortalException {
@ -277,6 +280,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId, public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId,
String tipoProcedura, Date dtSorteggio, String statoPratica, String numeroProgetto, boolean validata, String tipoProcedura, Date dtSorteggio, String statoPratica, String numeroProgetto, boolean validata,
int esitoControllo, Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException { int esitoControllo, Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException {
@ -371,6 +375,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.DELETE)
public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException { public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException {
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) { if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) {
@ -493,6 +498,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.DELETE)
public IntPratica deleteIntPratica(IntPratica intPratica) throws SystemException, PortalException { public IntPratica deleteIntPratica(IntPratica intPratica) throws SystemException, PortalException {
return deleteIntPratica(intPratica, false); return deleteIntPratica(intPratica, false);
@ -689,6 +695,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext) public IntPratica cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -732,6 +739,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
// TODO rimuovere dettPraticaId // TODO rimuovere dettPraticaId
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica updateStatoPratica(long intPraticaId, long dettPraticaId, String statoPratica) public IntPratica updateStatoPratica(long intPraticaId, long dettPraticaId, String statoPratica)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -757,6 +765,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio, String statoPratica) public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio, String statoPratica)
throws SystemException { throws SystemException {
IntPratica intPratica = intPraticaPersistence.fetchByPrimaryKey(intPraticaId); IntPratica intPratica = intPraticaPersistence.fetchByPrimaryKey(intPraticaId);
@ -780,6 +789,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
@Override @Override
@Indexable(type = IndexableType.REINDEX)
public void updateStatus(long intPraticaId, int status) throws PortalException, SystemException { public void updateStatus(long intPraticaId, int status) throws PortalException, SystemException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2567 build.number=2568
build.date=1616490701197 build.date=1617021183804
build.auto.upgrade=true build.auto.upgrade=true
## ##
@ -38,4 +38,4 @@
\ \
WEB-INF/classes/META-INF/shard-data-source-spring.xml,\ WEB-INF/classes/META-INF/shard-data-source-spring.xml,\
\ \
WEB-INF/classes/META-INF/ext-spring.xml WEB-INF/classes/META-INF/ext-spring.xml
Caricamento…
Annulla
Salva