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)
throws java.lang.Throwable;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.ControlloPratica addControlloPratica(
long groupId, long userId, long intPraticaId, long dettPraticaId,
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,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaPagamento(
long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione,
@ -701,6 +702,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
public boolean isControlloObbligatorio(
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(
long dettPraticaId, int stato)
throws com.liferay.portal.kernel.exception.PortalException,
@ -713,6 +715,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.DettPratica pagaInvia(
long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione,
@ -838,6 +841,7 @@ public interface DettPraticaLocalService extends BaseLocalService,
long pagamentoId)
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(
long dettPraticaId, java.lang.String codiceFiscale,
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,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long userId, java.lang.String userName, java.lang.String tipoPratica,
long territorioId, java.lang.String tipoProcedura,
@ -356,6 +358,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
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(
it.tref.liferay.portos.bo.model.IntPratica intPratica, boolean forced)
throws com.liferay.portal.kernel.exception.PortalException,
@ -391,12 +394,14 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica cambiaTitolare(
long intPraticaId, long soggettoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException,
@ -406,6 +411,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
long intPraticaId, java.util.Date dtSorteggio)
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(
long intPraticaId, java.util.Date dtSorteggio,
java.lang.String statoPratica)
@ -418,6 +424,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
public int countByC_UserId(long companyId, long userId)
throws com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public void updateStatus(long intPraticaId, int status)
throws com.liferay.portal.kernel.exception.PortalException,
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.log.Log;
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.IndexerRegistryUtil;
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);
@Override
@Indexable(type = IndexableType.REINDEX)
public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, long dettPraticaId,
boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) throws PortalException,
SystemException {
@ -178,6 +181,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
}
@Override
@Indexable(type = IndexableType.DELETE)
public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, SystemException {
ControlloPratica entry = controlloPraticaPersistence.findByPrimaryKey(controlloPraticaId);
@ -186,6 +190,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
}
@Override
@Indexable(type = IndexableType.DELETE)
public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, PortalException {
// Resources
@ -391,8 +396,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
long istruttore = GetterUtil.getLong(parametri.get("istruttore"));
intPratica.setStatusByUserId(istruttore);
intPratica.setStatusDate(new Date());
intPraticaLocalService.updateIntPratica(intPratica);
}
@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;
}
@Indexable(type = IndexableType.REINDEX)
public DettPratica updateDettPraticaPagamento(long dettPraticaId, int pagAdeguamentoSismico,
int pagAltro, int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni,
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,
PortalException {
@ -1619,6 +1621,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica;
}
@Indexable(type = IndexableType.REINDEX)
public DettPratica pagaInvia(long dettPraticaId, int pagAdeguamentoSismico, int pagAltro,
int pagMiglioramentoSismico, int pagNuovaCostruzione, boolean pagNuoveCostruzioni,
boolean pagRiparazioneInterventoLocale, boolean pagVarianti, String importoSpeseIstruttoria,
@ -2128,6 +2131,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery);
}
@Indexable(type = IndexableType.REINDEX)
public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto)
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.repository.model.FileEntry;
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.IndexerRegistryUtil;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
@ -242,6 +244,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext)
throws SystemException, PortalException {
@ -277,6 +280,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId,
String tipoProcedura, Date dtSorteggio, String statoPratica, String numeroProgetto, boolean validata,
int esitoControllo, Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException {
@ -371,6 +375,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.DELETE)
public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException {
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) {
@ -493,6 +498,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.DELETE)
public IntPratica deleteIntPratica(IntPratica intPratica) throws SystemException, PortalException {
return deleteIntPratica(intPratica, false);
@ -689,6 +695,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext)
throws PortalException, SystemException {
@ -732,6 +739,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
// TODO rimuovere dettPraticaId
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica updateStatoPratica(long intPraticaId, long dettPraticaId, String statoPratica)
throws PortalException, SystemException {
@ -757,6 +765,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio, String statoPratica)
throws SystemException {
IntPratica intPratica = intPraticaPersistence.fetchByPrimaryKey(intPraticaId);
@ -780,6 +789,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public void updateStatus(long intPraticaId, int status) throws PortalException, SystemException {
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.number=2567
build.date=1616490701197
build.number=2568
build.date=1617021183804
build.auto.upgrade=true
##
@ -38,4 +38,4 @@
\
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