Sfoglia il codice sorgente

remove intPratica duplication bug

feature/kafka-integrator
Gabriele Zigurella 2 anni fa
parent
commit
f05185f05b
  1. 2
      liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
  2. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
  3. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
  4. 2
      liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
  5. 2
      liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
  6. 2
      liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
  7. 2
      liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
  8. 2
      liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
  9. 2
      liferay-plugins-sdk-6.2/ivy.xml.MD5
  10. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  11. 17
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/scheduler/QuarkusBridgeScheduler.java

2
liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5

@ -1 +1 @@
b2996cd58c16b53d0e5cba6f59304ace
45b38289274e4397c600a212c5477afa

2
liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5

@ -1 +1 @@
edfd9cc2944faf63dd7d39e25283a4b6
9e586203944d7fe5baccd02ed7bf20c1

2
liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5

@ -1 +1 @@
a7d8aaa34b7d1028a4d449b5ab8f767e
cf39082434c04fdd3a9563acce7cb551

2
liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5

@ -1 +1 @@
4b40da73b53b5860b9adbb52cde18473
6ad0549f4c64b52b40d871393d72f9aa

2
liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5

@ -1 +1 @@
0b9e4199159f29548166ac11ab8d12c0
2aae42c5c43b993944b8c0fe9e31d5fb

2
liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5

@ -1 +1 @@
8f22881d5bfb74c587681be94ad54598
e1a7d560dfc36faf61c7d7da67bb03df

2
liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5

@ -1 +1 @@
4102c750f16136e66085045251a34292
f6d028f89713fdbf3004b38da2b16dcf

2
liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5

@ -1 +1 @@
f6d022d60b1ed1cc45a21c61c21c8f22
3325db6f628a33488c6c832368b134e4

2
liferay-plugins-sdk-6.2/ivy.xml.MD5

@ -1 +1 @@
8e943594b3e1f97e457b967864997dc5
ae2292c03b059802eec34967b7e85b8a

BIN
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

17
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/scheduler/QuarkusBridgeScheduler.java

@ -2,6 +2,7 @@ package portos.nextmind.quarkus.bridge.scheduler;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
@ -24,6 +25,7 @@ import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.ArrayList;
import java.util.List;
@ -51,7 +53,6 @@ public class QuarkusBridgeScheduler implements MessageListener {
}
for(Company company : companies){
JSONObject createPayload = prepareCreateBatch(company.getCompanyId());
//TODO: persist pratiche
JSONObject updatePayload = prepareUpdateBatch(company.getCompanyId());
//TODO: persist pratiche
}
@ -93,23 +94,29 @@ public class QuarkusBridgeScheduler implements MessageListener {
// Recupera la procedura della pratica
String tipoProcedura = Sportello.getString(QuarkusBridgeConstants.tipoProcedura);
//TODO: verifica che la procedura non esista già
ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(groupId);
serviceContext.setCompanyId(companyId);
serviceContext.setUserId(user.getUserId());
//TODO: remove circuit breaker
if(true) continue;
// Aggiungi DettPratica
long territorioId = territorio.getTerritorioId();
//TODO: verifica che la procedura non esista già
if(!Constants.PRATICA_ZONE.containsKey(tipoProcedura)){
_log.error("#[!]# " + tipoProcedura + " is not a Valid TipoPratica");
continue;
}
DettPratica dettPratica = DettPraticaLocalServiceUtil
.addDettPratica(territorioId, tipoProcedura, serviceContext);
// Aggiorna IntPratica
IntPraticaLocalServiceUtil.addDatiSuap(dettPratica.getIntPraticaId(), new long[]{});
} catch (SystemException e) {
_log.error(e ,e);
} catch (PortalException e) {
_log.error(e, e);
}
}
return object;

Caricamento…
Annulla
Salva