Sfoglia il codice sorgente

Aggiornamento condizioni per terna collaudatori

master
Salvatore La Manna 4 anni fa
parent
commit
f3c6609c64
  1. 84
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java
  2. 47
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  3. 42
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java
  4. 40
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  5. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  6. 38
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  7. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java
  8. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  9. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp
  10. 1
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath
  11. 13
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java
  12. 8
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java
  13. 3
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Fascicolo.java
  14. 2
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java
  15. 56
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java
  16. 4
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/DocumentiPraticaUtil.java
  17. 58
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java

84
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java

@ -56,7 +56,6 @@ public class AsseverazioniUtil {
public final static String ASSEVERAZIONE_DA_ALLEGATO = "AL"; public final static String ASSEVERAZIONE_DA_ALLEGATO = "AL";
public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException { public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException {
return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] { return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] {
STATO_ASSEGNATA, STATO_ESEGUITA }) > 0; STATO_ASSEGNATA, STATO_ESEGUITA }) > 0;
} }
@ -114,16 +113,10 @@ public class AsseverazioniUtil {
Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI));
aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04,
Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI));
// aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06,
// Arrays.asList(TipoSoggettoUtil.PROGETTISTA,
// TipoSoggettoUtil.DIRETTORE_LAVORI));
aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07, aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07,
Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI));
aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08, aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08,
Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI));
// aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09,
// Arrays.asList(TipoSoggettoUtil.PROGETTISTA,
// TipoSoggettoUtil.DIRETTORE_LAVORI));
aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10,
Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI));
aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A13, aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A13,
@ -159,8 +152,6 @@ public class AsseverazioniUtil {
bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays.asList(TipoSoggettoUtil.DITTA)); bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays.asList(TipoSoggettoUtil.DITTA));
bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays.asList(TipoSoggettoUtil.DITTA)); bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays.asList(TipoSoggettoUtil.DITTA));
bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05, Arrays.asList(TipoSoggettoUtil.PROGETTISTA)); bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05, Arrays.asList(TipoSoggettoUtil.PROGETTISTA));
// bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A14,
// Arrays.asList(TipoSoggettoUtil.PROGETTISTA));
recommended = Collections.unmodifiableMap(bMap); recommended = Collections.unmodifiableMap(bMap);
} }
@ -227,12 +218,6 @@ public class AsseverazioniUtil {
return nuoviSoggetti.size() > 0; return nuoviSoggetti.size() > 0;
} else { } else {
// ADT BUG ID = 18
// Se committente e non c'è delega => true
boolean isRiparazioneLocale = dettPratica.getTcRiparazioneInterventoLocale()
&& !dettPratica.getTcNuovaCostruzione() && !dettPratica.getTcAdeguamentoSismico()
&& !dettPratica.getTcMiglioramentoSismico();
boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico() boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico()
|| dettPratica.getLavoriPubblici(); || dettPratica.getLavoriPubblici();
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici();
@ -312,34 +297,6 @@ public class AsseverazioniUtil {
public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException, public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException,
PortalException { PortalException {
// if (!hasAsseverazioniAttive(dettPraticaId)) {
// return false;
// }
// Map<String, Integer> requiredCount = new HashMap<>();
// for (String requiredTipologia : required.get(ASSEVERAZIONI_DOMANDA))
// {
// requiredCount.put(requiredTipologia, 0);
// }
//
// List<Asseverazione> asseverazioniEseguite =
// AsseverazioneLocalServiceUtil.findByDettPratica_InEsito(dettPraticaId,
// new String[] {AsseverazioniUtil.STATO_ESEGUITA}, QueryUtil.ALL_POS,
// QueryUtil.ALL_POS, null);
// for (Asseverazione asseverazione : asseverazioniEseguite) {
// List<Soggetto> soggetti =
// SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(dettPraticaId,
// asseverazione.getCodiceFiscale());
// for (Soggetto soggetto : soggetti) {
// requiredCount.put(soggetto.getTipologiaSoggetto(),
// requiredCount.get(soggetto.getTipologiaSoggetto()) + 1);
// }
// }
//
// for (String tipologiaSoggetto : requiredCount.keySet()) {
//
// }
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
@ -414,9 +371,6 @@ public class AsseverazioniUtil {
TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA,
TipoSoggettoUtil.PROGETTISTA }; TipoSoggettoUtil.PROGETTISTA };
// if
// (SoggettiUtil.isTitolareInCommittenti(intPratica.getIntPraticaId()))
// {
if (ValidazionePraticaUtil.isA98Required(dettPratica)) { if (ValidazionePraticaUtil.isA98Required(dettPratica)) {
tipoSoggetti = (String[]) ArrayUtils.removeElement(tipoSoggetti, tipoSoggetti = (String[]) ArrayUtils.removeElement(tipoSoggetti,
TipoSoggettoUtil.COMMITTENTE); TipoSoggettoUtil.COMMITTENTE);
@ -486,40 +440,10 @@ public class AsseverazioniUtil {
return true; return true;
} }
// public static boolean allRequiredAsseverazioni(List<Soggetto> soggetti, public static boolean isRequiredTerna(String codiceDoc, DettPratica dettPratica) throws SystemException {
// List<Asseverazione> return codiceDoc.equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)
// asseverazioni) { && dettPratica.getNormLavoriInProprio()
// List<Long> soggettiIds = new ArrayList<Long>(); && (dettPratica.getTcInCA() || dettPratica.getTcInAcciaio());
// List<Long> soggettiAsseverazioniIds = new ArrayList<Long>();
//
// for (Soggetto soggetto : soggetti) {
// soggettiIds.add(soggetto.getSoggettoId());
// }
//
// for (Asseverazione asseverazione : asseverazioni) {
// soggettiAsseverazioniIds.add(asseverazione.getUserId());
// }
//
// if (soggettiAsseverazioniIds.containsAll(soggettiIds)) {
// return true;
// }
// return false;
// }
public static boolean isRequiredTerna(String codiceDoc, List<Soggetto> ditte, List<Soggetto> committenti,
DettPratica dettPratica) throws SystemException {
// ADT BUG ID = 16
if (codiceDoc.equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
// return SoggettiUtil.isCommittenteAndDitta(committenti, ditte) ||
// SoggettiUtil.isCollaudatorePresent(dettPraticaId);
if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte)
&& SoggettiUtil.isCollaudatorePresent(dettPratica.getDettPraticaId()))
return true;
else if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte)
&& ValidazionePraticaUtil.isCollaudatoreRequired(dettPratica))
return true;
}
return false;
} }
public static boolean isEnoughOne(String codiceDoc) { public static boolean isEnoughOne(String codiceDoc) {

47
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -27,7 +27,6 @@ import it.tref.liferay.portos.bo.shared.util.GenericUtils;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.AsseverazioniUtil;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
@ -1811,20 +1810,9 @@ public class ValidazionePraticaUtil {
List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica
.getTipoProcedura()); .getTipoProcedura());
List<String> tipologiaSoggettiApp = TipoSoggettoUtil.getAllSubjects(); List<String> tipologiaSoggetti = TipoSoggettoUtil.getAllSubjects();
List<String> tipologiaSoggetti = new ArrayList<String>();
// if(dettPratica.isLavoriPubblici()){
// for(String tip : tipologiaSoggettiApp){
// if(!tip.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)){
// tipologiaSoggetti.add(tip);
// }
// }
// } else {
tipologiaSoggetti = tipologiaSoggettiApp;
// }
List<String> firmeTotali = new ArrayList<>(); List<String> firmeTotali = new ArrayList<>();
for (String codiceDoc : tipologiaAllegati) { for (String codiceDoc : tipologiaAllegati) {
if (isDocPraticaRequired(dettPratica, codiceDoc)) { if (isDocPraticaRequired(dettPratica, codiceDoc)) {
List<DocPratica> docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( List<DocPratica> docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(
@ -1865,46 +1853,26 @@ public class ValidazionePraticaUtil {
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06)) {
if (!isA06Valid(dettPratica, intPraticaId, signatures, doc)) { if (!isA06Valid(dettPratica, intPraticaId, signatures, doc)) {
// Return false if A06 doesn't contain (Progettista
// OR Geologo ) AND Direttore_Lavori
// ADT: bug id=22
notCompleted.add("A06 firme obbligatorie mancanti"); notCompleted.add("A06 firme obbligatorie mancanti");
} }
// } else if
// (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07.equals(codiceDoc)
// // ||
// DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc))
// {
// if (!isA07A15A16Valid(dettPratica, signatures)) {
// notCompleted.add("A07 invalido");
// }
} else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07.equals(codiceDoc)) { } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07.equals(codiceDoc)) {
if (!isA07A15Valid(dettPratica, intPraticaId, signatures, doc)) { if (!isA07A15Valid(dettPratica, intPraticaId, signatures, doc)) {
// Return false if A07 doesn't contain Progettista
// AND Direttore_Lavori
// ADT: bug id=22
notCompleted.add("A07 firme obbligatorie mancanti"); notCompleted.add("A07 firme obbligatorie mancanti");
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) {
if (!isA09Valid(dettPratica, intPraticaId, signatures, doc)) { if (!isA09Valid(dettPratica, intPraticaId, signatures, doc)) {
// Return false if A09 doesn't contain Progettista
// AND Direttore_Lavori
// ADT: bug id=22
notCompleted.add("A09 firme obbligatorie mancanti"); notCompleted.add("A09 firme obbligatorie mancanti");
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15)) {
if (!isA07A15Valid(dettPratica, intPraticaId, signatures, doc)) { if (!isA07A15Valid(dettPratica, intPraticaId, signatures, doc)) {
// ADT: bug id=22
notCompleted.add("A15 firme obbligatorie mancanti"); notCompleted.add("A15 firme obbligatorie mancanti");
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
if (!isA17Valid(dettPratica, signatures)) { if (!isA17Valid(dettPratica, signatures)) {
// ADT: bug id=22
notCompleted.add("A17 firme obbligatorie mancanti"); notCompleted.add("A17 firme obbligatorie mancanti");
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA)) {
if (!isA98Valid(dettPratica, intPraticaId, signatures)) { if (!isA98Valid(dettPratica, intPraticaId, signatures)) {
// ADT: bug id=22
notCompleted.add("Allegato Delega firme obbligatorie mancanti"); notCompleted.add("Allegato Delega firme obbligatorie mancanti");
} }
} else if (isEnoughOne && signatures.isEmpty()) { } else if (isEnoughOne && signatures.isEmpty()) {
@ -1924,8 +1892,7 @@ public class ValidazionePraticaUtil {
} }
// Ogni progettista e direttore dei lavori deve avere apposto almeno una // Ogni progettista e direttore dei lavori deve avere apposto almeno una
// firma sulla totalità // firma sulla totalità degli allegati
// degli allegati
List<Soggetto> progettisti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto( List<Soggetto> progettisti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.PROGETTISTA); intPraticaId, TipoSoggettoUtil.PROGETTISTA);
for (Soggetto progettista : progettisti) { for (Soggetto progettista : progettisti) {
@ -2114,15 +2081,7 @@ public class ValidazionePraticaUtil {
} }
private static boolean isA17Required(DettPratica dettPratica) throws SystemException { private static boolean isA17Required(DettPratica dettPratica) throws SystemException {
return AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, dettPratica);
List<Soggetto> ditte = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(
dettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA);
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(
dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE);
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17,
ditte, committenti, dettPratica);
return isRequired;
} }
// Allegato Delega richiesto se il titolare Digitale pratica non è fra i // Allegato Delega richiesto se il titolare Digitale pratica non è fra i

42
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java

@ -30,22 +30,27 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
_entry = entry; _entry = entry;
} }
@Override
public String getClassName() { public String getClassName() {
return ControlloPratica.class.getName(); return ControlloPratica.class.getName();
} }
@Override
public long getClassPK() { public long getClassPK() {
return _entry.getControlloPraticaId(); return _entry.getControlloPraticaId();
} }
@Override
public long getGroupId() { public long getGroupId() {
return _entry.getGroupId(); return _entry.getGroupId();
} }
@Override
public String getSummary(Locale locale) { public String getSummary(Locale locale) {
return String.valueOf(_entry.getControlloPraticaId()); return String.valueOf(_entry.getControlloPraticaId());
} }
@Override
public String getTitle(Locale locale) { public String getTitle(Locale locale) {
return String.valueOf(_entry.getControlloPraticaId()); return String.valueOf(_entry.getControlloPraticaId());
} }
@ -54,9 +59,9 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) throws Exception { LiferayPortletResponse liferayPortletResponse) throws Exception {
PortletURL portletURL = PortletURL portletURL = liferayPortletResponse.createLiferayPortletURL(
liferayPortletResponse.createLiferayPortletURL(getControlPanelPlid(liferayPortletRequest), getControlPanelPlid(liferayPortletRequest), PortletKeys.FASCICOLO,
PortletKeys.FASCICOLO, PortletRequest.ACTION_PHASE); PortletRequest.ACTION_PHASE);
portletURL.setParameter("name", "viewControlloPratica"); portletURL.setParameter("name", "viewControlloPratica");
portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId())); portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId()));
@ -67,17 +72,6 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
@Override @Override
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception { LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception {
// PortletURL portletURL =
// liferayPortletResponse.createLiferayPortletURL(getPlid(liferayPortletRequest),
// PortletKeys.FASCICOLO,
// PortletRequest.ACTION_PHASE);
//
// portletURL.setWindowState(WindowState.MAXIMIZED);
//
// portletURL.setParameter("name", "viewControlloPratica");
// portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId()));
return FascicoloURLUtil.getFascicoloViewURL(_entry.getCompanyId(), _entry.getIntPraticaId()); return FascicoloURLUtil.getFascicoloViewURL(_entry.getCompanyId(), _entry.getIntPraticaId());
} }
@ -86,14 +80,17 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
return true; return true;
} }
@Override
public long getUserId() { public long getUserId() {
return _entry.getUserId(); return _entry.getUserId();
} }
@Override
public String getUserName() { public String getUserName() {
return _entry.getUserName(); return _entry.getUserName();
} }
@Override
public String getUuid() { public String getUuid() {
return _entry.getUuid(); return _entry.getUuid();
} }
@ -101,7 +98,8 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
@Override @Override
public boolean hasEditPermission(PermissionChecker permissionChecker) { public boolean hasEditPermission(PermissionChecker permissionChecker) {
// try { // try {
// return DettPraticaEntryPermission.contains(permissionChecker, _entry.getDettPraticaId(), // return DettPraticaEntryPermission.contains(permissionChecker,
// _entry.getDettPraticaId(),
// ActionKeys.UPDATE); // ActionKeys.UPDATE);
// } catch (Exception e) { // } catch (Exception e) {
// } // }
@ -111,15 +109,17 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
@Override @Override
public boolean hasViewPermission(PermissionChecker permissionChecker) { public boolean hasViewPermission(PermissionChecker permissionChecker) {
// try { // try {
// return DettPraticaEntryPermission.contains(permissionChecker, _entry.getDettPraticaId(), // return DettPraticaEntryPermission.contains(permissionChecker,
// _entry.getDettPraticaId(),
// ActionKeys.VIEW); // ActionKeys.VIEW);
// } catch (Exception e) { // } catch (Exception e) {
// } // }
return true; return true;
} }
public String render(RenderRequest renderRequest, RenderResponse renderResponse, String template) throws Exception { @Override
public String render(RenderRequest renderRequest, RenderResponse renderResponse, String template)
throws Exception {
renderRequest.setAttribute("controlloPratica", _entry); renderRequest.setAttribute("controlloPratica", _entry);
@ -127,7 +127,8 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
} }
protected long getPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException, SystemException { protected long getPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException,
SystemException {
HttpServletRequest request = liferayPortletRequest.getHttpServletRequest(); HttpServletRequest request = liferayPortletRequest.getHttpServletRequest();
@ -135,7 +136,8 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
Layout layout = themeDisplay.getLayout(); Layout layout = themeDisplay.getLayout();
long plid = PortalUtil.getPlidFromPortletId(layout.getGroupId(), layout.isPrivateLayout(), PortletKeys.FASCICOLO); long plid = PortalUtil.getPlidFromPortletId(layout.getGroupId(), layout.isPrivateLayout(),
PortletKeys.FASCICOLO);
if (plid == LayoutConstants.DEFAULT_PLID) { if (plid == LayoutConstants.DEFAULT_PLID) {
plid = layout.getPlid(); plid = layout.getPlid();

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

@ -50,7 +50,6 @@ import java.util.Scanner;
import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import com.liferay.portal.NoSuchRepositoryEntryException;
import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
@ -64,7 +63,6 @@ import com.liferay.portal.model.User;
import com.liferay.portal.security.permission.ActionKeys; import com.liferay.portal.security.permission.ActionKeys;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
import com.liferay.portlet.documentlibrary.NoSuchFolderException; import com.liferay.portlet.documentlibrary.NoSuchFolderException;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
@ -94,22 +92,26 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
* to access the asseverazione local service. * to access the asseverazione local service.
*/ */
@Override
public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni) public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni)
throws IOException, SystemException, PortalException { throws IOException, SystemException, PortalException {
return testoAsseverazione(tipo, user.getScreenName(), dettPratica, relazioni, true); return testoAsseverazione(tipo, user.getScreenName(), dettPratica, relazioni, true);
} }
@Override
public String testoAsseverazione(String tipo, User user, long dettPraticaId, String relazioni) public String testoAsseverazione(String tipo, User user, long dettPraticaId, String relazioni)
throws SystemException, PortalException, IOException { throws SystemException, PortalException, IOException {
return testoAsseverazione(tipo, user.getScreenName(), dettPraticaId, relazioni); return testoAsseverazione(tipo, user.getScreenName(), dettPraticaId, relazioni);
} }
@Override
public String testoAsseverazione(String tipo, String codiceFiscale, long dettPraticaId, String relazioni) public String testoAsseverazione(String tipo, String codiceFiscale, long dettPraticaId, String relazioni)
throws PortalException, SystemException, IOException { throws PortalException, SystemException, IOException {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni); return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni);
} }
@Override
public String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, public String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica,
String relazioni) throws SystemException, PortalException, IOException { String relazioni) throws SystemException, PortalException, IOException {
return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni, false); return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni, false);
@ -254,6 +256,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return html; return html;
} }
@Override
public Asseverazione addAsseverazione(long userId, long intPraticaId, long dettPraticaId, public Asseverazione addAsseverazione(long userId, long intPraticaId, long dettPraticaId,
String tipologia, String codiceFiscale, ServiceContext serviceContext) throws PortalException, String tipologia, String codiceFiscale, ServiceContext serviceContext) throws PortalException,
SystemException { SystemException {
@ -288,6 +291,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return asseverazione; return asseverazione;
} }
@Override
public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext)
throws SystemException, PortalException { throws SystemException, PortalException {
@ -390,6 +394,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
} }
@Override
public void resetAsseverazione(long asseverazioneId) throws PortalException, SystemException { public void resetAsseverazione(long asseverazioneId) throws PortalException, SystemException {
Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId);
@ -406,11 +411,13 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
asseverazionePersistence.update(asseverazione); asseverazionePersistence.update(asseverazione);
} }
@Override
public void annullaAsseverazioni(long dettPraticaId) throws IOException, SystemException, PortalException { public void annullaAsseverazioni(long dettPraticaId) throws IOException, SystemException, PortalException {
cambioStatoAsseverazioni(dettPraticaId, AsseverazioniUtil.STATO_ANNULLATA); cambioStatoAsseverazioni(dettPraticaId, AsseverazioniUtil.STATO_ANNULLATA);
} }
@Override
public void cambioStatoAsseverazione(long userId, long asseverazioneId, String stato) throws IOException, public void cambioStatoAsseverazione(long userId, long asseverazioneId, String stato) throws IOException,
SystemException, PortalException { SystemException, PortalException {
@ -428,6 +435,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
asseverazione = asseverazionePersistence.update(asseverazione); asseverazione = asseverazionePersistence.update(asseverazione);
} }
@Override
public Asseverazione generateReportAsseverazione(Asseverazione asseverazione, long userId) public Asseverazione generateReportAsseverazione(Asseverazione asseverazione, long userId)
throws IOException, SystemException, PortalException { throws IOException, SystemException, PortalException {
@ -501,6 +509,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return asseverazione; return asseverazione;
} }
@Override
public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException,
SystemException, PortalException { SystemException, PortalException {
@ -510,6 +519,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
} }
} }
@Override
public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException, public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException,
PortalException { PortalException {
@ -522,6 +532,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
} }
} }
@Override
public void rimuoviFileAsseverazione(long asseverazioneId) throws SystemException, PortalException { public void rimuoviFileAsseverazione(long asseverazioneId) throws SystemException, PortalException {
Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId);
@ -554,6 +565,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return deleteAsseverazione(asseverazioneLocalService.getAsseverazione(asseverazioneId)); return deleteAsseverazione(asseverazioneLocalService.getAsseverazione(asseverazioneId));
} }
@Override
public FileEntry allegaFileAsseverazione(long asseverazioneId, byte[] content, String sourceFileName, public FileEntry allegaFileAsseverazione(long asseverazioneId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
@ -602,28 +614,33 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return fileEntry; return fileEntry;
} }
@Override
public List<Asseverazione> findByIntPratica(long intPraticaId, int start, int end, public List<Asseverazione> findByIntPratica(long intPraticaId, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {
return asseverazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); return asseverazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
} }
@Override
public List<Asseverazione> findByDettPratica(long dettPraticaId, int start, int end, public List<Asseverazione> findByDettPratica(long dettPraticaId, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {
return asseverazionePersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator); return asseverazionePersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator);
} }
@Override
public int countByIntPratica(long intPraticaId) throws SystemException { public int countByIntPratica(long intPraticaId) throws SystemException {
return asseverazionePersistence.countByIntPratica(intPraticaId); return asseverazionePersistence.countByIntPratica(intPraticaId);
} }
@Override
public int countByDettPratica(long dettPraticaId) throws SystemException { public int countByDettPratica(long dettPraticaId) throws SystemException {
return asseverazionePersistence.countByDettPratica(dettPraticaId); return asseverazionePersistence.countByDettPratica(dettPraticaId);
} }
@Override
public List<Asseverazione> findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, public List<Asseverazione> findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale,
int start, int end, OrderByComparator orderByComparator) throws SystemException { int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -631,12 +648,14 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
end, orderByComparator); end, orderByComparator);
} }
@Override
public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale)
throws SystemException { throws SystemException {
return asseverazionePersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); return asseverazionePersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale);
} }
@Override
public List<Asseverazione> findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, public List<Asseverazione> findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start,
int end, OrderByComparator orderByComparator) throws SystemException { int end, OrderByComparator orderByComparator) throws SystemException {
@ -644,11 +663,13 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
orderByComparator); orderByComparator);
} }
@Override
public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException {
return asseverazionePersistence.countByCodiceFiscale_InEsito(codiceFiscale, esiti); return asseverazionePersistence.countByCodiceFiscale_InEsito(codiceFiscale, esiti);
} }
@Override
public List<Asseverazione> findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, public List<Asseverazione> findByIntPratica_CodiceFiscale_InEsito(long intPraticaId,
String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator)
throws SystemException { throws SystemException {
@ -657,6 +678,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti, start, end, orderByComparator); esiti, start, end, orderByComparator);
} }
@Override
public List<Asseverazione> findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, public List<Asseverazione> findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId,
String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator)
throws SystemException { throws SystemException {
@ -665,6 +687,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti, start, end, orderByComparator); esiti, start, end, orderByComparator);
} }
@Override
public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti)
throws SystemException { throws SystemException {
@ -672,6 +695,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti); esiti);
} }
@Override
public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale,
String[] esiti) throws SystemException { String[] esiti) throws SystemException {
@ -679,6 +703,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti); esiti);
} }
@Override
public List<Asseverazione> findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, public List<Asseverazione> findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start,
int end, OrderByComparator orderByComparator) throws SystemException { int end, OrderByComparator orderByComparator) throws SystemException {
@ -686,11 +711,13 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
orderByComparator); orderByComparator);
} }
@Override
public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException {
return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esiti); return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esiti);
} }
@Override
public List<Asseverazione> findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, public List<Asseverazione> findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start,
int end, OrderByComparator orderByComparator) throws SystemException { int end, OrderByComparator orderByComparator) throws SystemException {
@ -698,11 +725,13 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
orderByComparator); orderByComparator);
} }
@Override
public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException {
return asseverazionePersistence.countByDettPratica_InEsito(dettPraticaId, esiti); return asseverazionePersistence.countByDettPratica_InEsito(dettPraticaId, esiti);
} }
@Override
public List<Asseverazione> findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, public List<Asseverazione> findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia,
String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -710,6 +739,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti, start, end, orderByComparator); esiti, start, end, orderByComparator);
} }
@Override
public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti)
throws SystemException { throws SystemException {
@ -717,6 +747,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
esiti); esiti);
} }
@Override
public List<Asseverazione> findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, public List<Asseverazione> findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId,
String codiceFiscale, String tipologia, String[] esiti, int start, int end, String codiceFiscale, String tipologia, String[] esiti, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {
@ -725,6 +756,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
codiceFiscale, tipologia, esiti, start, end, orderByComparator); codiceFiscale, tipologia, esiti, start, end, orderByComparator);
} }
@Override
public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale,
String tipologia, String[] esiti) throws SystemException { String tipologia, String[] esiti) throws SystemException {
@ -732,6 +764,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
codiceFiscale, tipologia, esiti); codiceFiscale, tipologia, esiti);
} }
@Override
public List<Asseverazione> findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, public List<Asseverazione> findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia,
String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -739,6 +772,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
start, end, orderByComparator); start, end, orderByComparator);
} }
@Override
public List<Asseverazione> findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, public List<Asseverazione> findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia,
String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -746,12 +780,14 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
start, end, orderByComparator); start, end, orderByComparator);
} }
@Override
public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti)
throws SystemException { throws SystemException {
return asseverazionePersistence.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); return asseverazionePersistence.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti);
} }
@Override
public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti) public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti)
throws SystemException { throws SystemException {

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

@ -40,6 +40,7 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
@ -107,6 +108,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
public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId,
long dettPraticaId, boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) long dettPraticaId, boolean updateFlagControlloObbligatorio, ServiceContext serviceContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -181,6 +183,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return entry; return entry;
} }
@Override
public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException,
SystemException { SystemException {
@ -189,6 +192,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return deleteControlloPratica(entry); return deleteControlloPratica(entry);
} }
@Override
public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException,
PortalException { PortalException {
@ -210,17 +214,20 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return entry; return entry;
} }
@Override
public List<ControlloPratica> findByIntPraticaId_Status(long intPraticaId, int status) public List<ControlloPratica> findByIntPraticaId_Status(long intPraticaId, int status)
throws SystemException { throws SystemException {
return controlloPraticaPersistence.findByIntPraticaId_Status(intPraticaId, status); return controlloPraticaPersistence.findByIntPraticaId_Status(intPraticaId, status);
} }
@Override
public int countByIntPraticaId_Status(long intPraticaId, int status) throws SystemException { public int countByIntPraticaId_Status(long intPraticaId, int status) throws SystemException {
return controlloPraticaPersistence.countByIntPraticaId_Status(intPraticaId, status); return controlloPraticaPersistence.countByIntPraticaId_Status(intPraticaId, status);
} }
@Override
public void updateAsset(long userId, ControlloPratica entry, long[] assetCategoryIds, public void updateAsset(long userId, ControlloPratica entry, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds, Date now) throws PortalException, String[] assetTagNames, long[] assetLinkEntryIds, Date now) throws PortalException,
SystemException { SystemException {
@ -250,11 +257,13 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
AssetLinkConstants.TYPE_RELATED); AssetLinkConstants.TYPE_RELATED);
} }
@Override
public void deleteAsset(ControlloPratica entry) throws PortalException, SystemException { public void deleteAsset(ControlloPratica entry) throws PortalException, SystemException {
assetEntryLocalService.deleteEntry(ControlloPratica.class.getName(), entry.getControlloPraticaId()); assetEntryLocalService.deleteEntry(ControlloPratica.class.getName(), entry.getControlloPraticaId());
} }
@Override
public ControlloPratica updateStatus(long userId, long resourcePrimKey, int status, public ControlloPratica updateStatus(long userId, long resourcePrimKey, int status,
ServiceContext serviceContext, List<ControlloPratica> wfNewListVarianti) throws PortalException, ServiceContext serviceContext, List<ControlloPratica> wfNewListVarianti) throws PortalException,
SystemException { SystemException {
@ -313,6 +322,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return entry; return entry;
} }
@Override
public boolean generazioneDocumento(long controlloPraticaId, String jsonParams, String tipoAvviso, public boolean generazioneDocumento(long controlloPraticaId, String jsonParams, String tipoAvviso,
long userIdFirma, Map<String, Serializable> workflowContext) throws PortalException, long userIdFirma, Map<String, Serializable> workflowContext) throws PortalException,
SystemException { SystemException {
@ -341,6 +351,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return true; return true;
} }
@Override
@Deprecated @Deprecated
public boolean updateStatoPraticaGeneraDocumentoFinale(long controlloPraticaId, String jsonParams, public boolean updateStatoPraticaGeneraDocumentoFinale(long controlloPraticaId, String jsonParams,
long userIdFirma, Map<String, Serializable> workflowContext) throws PortalException, long userIdFirma, Map<String, Serializable> workflowContext) throws PortalException,
@ -349,6 +360,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return generaDocumentoFinale(controlloPraticaId, jsonParams, userIdFirma, workflowContext); return generaDocumentoFinale(controlloPraticaId, jsonParams, userIdFirma, workflowContext);
} }
@Override
public boolean generaDocumentoFinale(long controlloPraticaId, String jsonParams, long userIdFirma, public boolean generaDocumentoFinale(long controlloPraticaId, String jsonParams, long userIdFirma,
Map<String, Serializable> workflowContext) throws PortalException, SystemException { Map<String, Serializable> workflowContext) throws PortalException, SystemException {
@ -385,11 +397,13 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return true; return true;
} }
@Override
public void updateIstruttore(long controlloPraticaId, Map<String, Serializable> workflowContext) public void updateIstruttore(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
ControlloPratica controlloPratica = controlloPraticaLocalService ControlloPratica controlloPratica = controlloPraticaLocalService
.getControlloPratica(controlloPraticaId); .getControlloPratica(controlloPraticaId);
@SuppressWarnings("unchecked")
Map<String, String> parametri = (Map<String, String>) workflowContext Map<String, String> parametri = (Map<String, String>) workflowContext
.get("CONTEXT_TASK_FORM_PARAMETERS"); .get("CONTEXT_TASK_FORM_PARAMETERS");
IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId());
@ -400,6 +414,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override
@Deprecated @Deprecated
public String valutazioneEsitoFinale(long controlloPraticaId, Map<String, Serializable> workflowContext) public String valutazioneEsitoFinale(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -414,6 +429,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
* @throws SystemException * @throws SystemException
* @throws PortalException * @throws PortalException
*/ */
@Override
public String valutazioneEsitoFinaleUpdateStatoPratica(long controlloPraticaId, public String valutazioneEsitoFinaleUpdateStatoPratica(long controlloPraticaId,
Map<String, Serializable> workflowContext) throws PortalException, SystemException { Map<String, Serializable> workflowContext) throws PortalException, SystemException {
@ -483,6 +499,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return esitoScelta; return esitoScelta;
} }
@Override
public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId,
Map<String, Serializable> workflowContext) throws PortalException, SystemException { Map<String, Serializable> workflowContext) throws PortalException, SystemException {
@ -493,6 +510,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
intPraticaLocalService.updateIntPratica(intPratica); intPraticaLocalService.updateIntPratica(intPratica);
} }
@Override
public String getJsonListaIstruttori(long controlloPraticaId, Map<String, Serializable> workflowContext) public String getJsonListaIstruttori(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -518,6 +536,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return jsonObject.toString(); return jsonObject.toString();
} }
@Override
public String getJsonEsitoPratica(long controlloPraticaId, Map<String, Serializable> workflowContext) public String getJsonEsitoPratica(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -577,6 +596,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return jsonObject.toString(); return jsonObject.toString();
} }
@Override
public ControlloPratica addPraticheAlControllo(long controlloPraticaId, long dettPraticaId) public ControlloPratica addPraticheAlControllo(long controlloPraticaId, long dettPraticaId)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -598,6 +618,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
* @throws PortalException * @throws PortalException
* @throws SystemException * @throws SystemException
*/ */
@Override
public ControlloPratica addPraticheAlControlloVarianti(long controlloPraticaId, long dettPraticaId, public ControlloPratica addPraticheAlControlloVarianti(long controlloPraticaId, long dettPraticaId,
ServiceContext serviceContext) throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {
_log.info("start addPraticheAlControlloVarianti per controlloPraticaId=" + controlloPraticaId); _log.info("start addPraticheAlControlloVarianti per controlloPraticaId=" + controlloPraticaId);
@ -642,6 +663,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
* .equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return * .equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return
* "portos1_integrazioni"; } else { return "portos1_esito"; } * "portos1_integrazioni"; } else { return "portos1_esito"; }
*/ */
@Override
public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException, public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException,
SystemException { SystemException {
@ -659,6 +681,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
} }
@Override
public String getTipoEsito(long controlloPraticaId) throws SystemException, PortalException { public String getTipoEsito(long controlloPraticaId) throws SystemException, PortalException {
String tipoEsito = ""; String tipoEsito = "";
@ -740,10 +763,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return tipoEsito; return tipoEsito;
} }
@Override
public List<ControlloPratica> findByIntPratica(long intPraticaId) throws SystemException { public List<ControlloPratica> findByIntPratica(long intPraticaId) throws SystemException {
return controlloPraticaPersistence.findByIntPraticaId(intPraticaId); return controlloPraticaPersistence.findByIntPraticaId(intPraticaId);
} }
@Override
public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException,
PortalException { PortalException {
@ -870,6 +895,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
* @param dettPraticaId * @param dettPraticaId
* @throws Exception * @throws Exception
*/ */
@Override
public void gestioneWFVarianti(ControlloPratica cp) { public void gestioneWFVarianti(ControlloPratica cp) {
try { try {
/* /*

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

@ -33,8 +33,6 @@ import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
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.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -68,18 +66,18 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
* @see it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil * @see it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil
*/ */
public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
private static final Log _log = LogFactoryUtil.getLog(PagamentoLocalServiceImpl.class);
/* /*
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use
* {@link it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil} to * {@link it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil} to
* access the pagamento local service. * access the pagamento local service.
*/ */
@Override
public long createPagamentoId() throws SystemException { public long createPagamentoId() throws SystemException {
return counterLocalService.increment(Pagamento.class.getName()); return counterLocalService.increment(Pagamento.class.getName());
} }
@Override
public Pagamento addPagamento(String codice, String causale, String mezzo, public Pagamento addPagamento(String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata,
long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) long classPk, String className, long oldPagamentoId, ServiceContext serviceContext)
@ -90,6 +88,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
serviceContext); serviceContext);
} }
@Override
public Pagamento addPagamentoAndUpdate(String codice, String causale, String mezzo, public Pagamento addPagamentoAndUpdate(String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata,
long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) long classPk, String className, long oldPagamentoId, ServiceContext serviceContext)
@ -100,6 +99,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
serviceContext); serviceContext);
} }
@Override
public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo, public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata,
long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) long classPk, String className, long oldPagamentoId, ServiceContext serviceContext)
@ -110,6 +110,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
StringPool.BLANK, null, serviceContext); StringPool.BLANK, null, serviceContext);
} }
@Override
public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo, public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoImporto, String importo, String utilizzata, String codiceFiscaleCommittente, String tipoImporto, String importo, String utilizzata,
long classPk, String className, long oldPagamentoId, String url, long classPk, String className, long oldPagamentoId, String url,
@ -241,6 +242,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return pagamento; return pagamento;
} }
@Override
public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException, public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException,
SystemException { SystemException {
@ -249,6 +251,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@Override
public Pagamento updatePagamento(long pagamentoId, String codiceFiscaleCommittente, String importo) public Pagamento updatePagamento(long pagamentoId, String codiceFiscaleCommittente, String importo)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -258,6 +261,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@Override
public Pagamento updatePagamentoUtilizzata(long pagamentoId, String utilizzata) throws PortalException, public Pagamento updatePagamentoUtilizzata(long pagamentoId, String utilizzata) throws PortalException,
SystemException { SystemException {
@ -266,6 +270,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@Override
public Pagamento annullaPagamento(long pagamentoId) throws PortalException, SystemException { public Pagamento annullaPagamento(long pagamentoId) throws PortalException, SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
@ -274,6 +279,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start,
int end) throws SystemException { int end) throws SystemException {
@ -283,6 +289,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override
public int countByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo) throws SystemException { public int countByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente,
@ -290,6 +297,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@Override
public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata, int start, int end) throws SystemException { String utilizzata, int start, int end) throws SystemException {
@ -299,6 +307,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override
public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata) throws SystemException { String utilizzata) throws SystemException {
@ -307,6 +316,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@Override
public List<Pagamento> findByMezzo_Utilizzata(String mezzo, String utilizzata, int start, int end) public List<Pagamento> findByMezzo_Utilizzata(String mezzo, String utilizzata, int start, int end)
throws SystemException { throws SystemException {
@ -314,16 +324,19 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override
public Pagamento findByOldPagamentoId(long oldPagamentoId) throws SystemException { public Pagamento findByOldPagamentoId(long oldPagamentoId) throws SystemException {
return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId); return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId);
} }
@Override
public int countByMezzo_Utilizzata(String mezzo, String utilizzata) throws SystemException { public int countByMezzo_Utilizzata(String mezzo, String utilizzata) throws SystemException {
return pagamentoPersistence.countByMezzo_Utilizzata(mezzo, utilizzata); return pagamentoPersistence.countByMezzo_Utilizzata(mezzo, utilizzata);
} }
@Override
public List<Pagamento> findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date, public List<Pagamento> findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date,
int start, int end) throws SystemException { int start, int end) throws SystemException {
@ -331,6 +344,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override
public int countByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, public int countByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata,
boolean emailPending, Date date) throws SystemException { boolean emailPending, Date date) throws SystemException {
@ -338,6 +352,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
emailPending, date); emailPending, date);
} }
@Override
public List<Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, public List<Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata,
boolean emailPending, Date date, int start, int end) throws SystemException { boolean emailPending, Date date, int start, int end) throws SystemException {
@ -346,6 +361,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override
public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator) public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator)
throws SystemException { throws SystemException {
@ -353,6 +369,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, comparator); return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, comparator);
} }
@Override
public int countInPending(Date date) throws SystemException { public int countInPending(Date date) throws SystemException {
DynamicQuery dynamicQuery = createPendingQuery(date); DynamicQuery dynamicQuery = createPendingQuery(date);
@ -367,6 +384,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@Override
public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date) public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date)
throws SystemException { throws SystemException {
@ -393,6 +411,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return super.deletePagamento(pagamento); return super.deletePagamento(pagamento);
} }
@Override
public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending) public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -428,30 +447,36 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@Override
public int countByClassPk(long classPk) throws SystemException { public int countByClassPk(long classPk) throws SystemException {
return pagamentoPersistence.countByClassPk(classPk); return pagamentoPersistence.countByClassPk(classPk);
} }
@Override
public List<Pagamento> findByClassPk(long classPk) throws SystemException { public List<Pagamento> findByClassPk(long classPk) throws SystemException {
return pagamentoPersistence.findByClassPk(classPk); return pagamentoPersistence.findByClassPk(classPk);
} }
@Override
public List<Pagamento> findByIntPratica(long intPraticaId) throws SystemException { public List<Pagamento> findByIntPratica(long intPraticaId) throws SystemException {
return pagamentoPersistence.findByIntPratica(intPraticaId); return pagamentoPersistence.findByIntPratica(intPraticaId);
} }
@Override
public int countByIntPratica(long intPraticaId) throws SystemException { public int countByIntPratica(long intPraticaId) throws SystemException {
return pagamentoPersistence.countByIntPratica(intPraticaId); return pagamentoPersistence.countByIntPratica(intPraticaId);
} }
@Override
public List<Pagamento> findByIntPratica_Visible(long intPraticaId) throws SystemException { public List<Pagamento> findByIntPratica_Visible(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId); DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery); return pagamentoPersistence.findWithDynamicQuery(dynamicQuery);
} }
@Override
public int countByIntPratica_Visible(long intPraticaId) throws SystemException { public int countByIntPratica_Visible(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId); DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId);
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
@ -467,6 +492,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@Override
public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo,
String url, ServiceContext serviceContext) throws PortalException, SystemException { String url, ServiceContext serviceContext) throws PortalException, SystemException {
@ -561,6 +587,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException { ServiceContext serviceContext) throws IOException, PortalException, SystemException {
@ -624,6 +651,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
} }
@Override
public void updatePagamentoManualeFromImport(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManualeFromImport(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {
@ -670,11 +698,13 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
} }
@Override
public Pagamento fetchByOldPagamentoId(long oldPagamentoId) throws SystemException { public Pagamento fetchByOldPagamentoId(long oldPagamentoId) throws SystemException {
return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId); return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId);
} }
@Override
public Pagamento updateOtf(long pagamentoId, boolean otf) throws PortalException, SystemException { public Pagamento updateOtf(long pagamentoId, boolean otf) throws PortalException, SystemException {
Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId);
pagamento.setOtf(otf); pagamento.setOtf(otf);

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java

@ -29,6 +29,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord; import org.apache.commons.csv.CSVRecord;
@ -37,8 +38,6 @@ import org.apache.commons.io.IOUtils;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONObject;
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.FileEntry;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
@ -53,8 +52,6 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil;
public class ProtocollazioneUtil { public class ProtocollazioneUtil {
private static final Log _log = LogFactoryUtil.getLog(ProtocollazioneUtil.class);
public static String protocollaPartenza(Avviso avviso, Long fileEntryId) throws Exception { public static String protocollaPartenza(Avviso avviso, Long fileEntryId) throws Exception {
String protocollo = null; String protocollo = null;

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2543 build.number=2548
build.date=1611756621243 build.date=1611828850885
build.auto.upgrade=true build.auto.upgrade=true
## ##

4
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp

@ -525,9 +525,7 @@
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17) ){ } else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17) ){
boolean isValid = true; boolean isValid = true;
if(signatures.isEmpty()){ if(signatures.isEmpty()){
List<Soggetto> ditte = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA); boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, dettPratica);
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE);
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica);
if(isRequired) if(isRequired)
isValid = false; isValid = false;
} }

1
liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath

@ -9,5 +9,6 @@
</classpathentry> </classpathentry>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext/portlet.jar"/> <classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext/portlet.jar"/>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/servlet-api.jar"/> <classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/jsp-api.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

13
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java

@ -1,5 +1,9 @@
package it.tref.liferay.portos.bo.modellistener.shared.event; package it.tref.liferay.portos.bo.modellistener.shared.event;
import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerHotDeployListener;
import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerUtil;
import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper;
import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.messaging.DestinationNames; import com.liferay.portal.kernel.messaging.DestinationNames;
@ -7,14 +11,8 @@ import com.liferay.portal.kernel.messaging.MessageBusUtil;
import com.liferay.portal.kernel.servlet.ServletContextPool; import com.liferay.portal.kernel.servlet.ServletContextPool;
import com.liferay.portal.kernel.util.ClassLoaderPool; import com.liferay.portal.kernel.util.ClassLoaderPool;
import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerHotDeployListener;
import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerUtil;
import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper;
public abstract class ModelListenerStartupAction extends SimpleAction { public abstract class ModelListenerStartupAction extends SimpleAction {
// private final static Log _log = LogFactoryUtil.getLog(ModelListenerStartupAction.class);
@Override @Override
public void run(String[] ids) throws ActionException { public void run(String[] ids) throws ActionException {
@ -29,9 +27,6 @@ public abstract class ModelListenerStartupAction extends SimpleAction {
if (ServletContextPool.containsKey(modelListenerWrappers[i].getServletContextName())) { if (ServletContextPool.containsKey(modelListenerWrappers[i].getServletContextName())) {
ModelListenerUtil.registerModelListener(modelListenerWrappers[i]); ModelListenerUtil.registerModelListener(modelListenerWrappers[i]);
// _log.info("Sto registrando il wrapper " + modelListenerWrappers[i].getModelClassName() +
// " - "
// + modelListenerWrappers[i].getServletContextName());
} }
} }

8
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java

@ -8,11 +8,13 @@ public class ModelListenerWrapper implements Serializable {
private String modelClassName; private String modelClassName;
private String[] modelListenerClassNames; private String[] modelListenerClassNames;
public ModelListenerWrapper(String servletContextName, String modelClassName, String modelListenerClassName) { public ModelListenerWrapper(String servletContextName, String modelClassName,
this(servletContextName, modelClassName, new String[] {modelListenerClassName}); String modelListenerClassName) {
this(servletContextName, modelClassName, new String[] { modelListenerClassName });
} }
public ModelListenerWrapper(String servletContextName, String modelClassName, String[] modelListenerClassNames) { public ModelListenerWrapper(String servletContextName, String modelClassName,
String[] modelListenerClassNames) {
this.servletContextName = servletContextName; this.servletContextName = servletContextName;
this.modelClassName = modelClassName; this.modelClassName = modelClassName;
this.modelListenerClassNames = modelListenerClassNames; this.modelListenerClassNames = modelListenerClassNames;

3
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Fascicolo.java

@ -5,7 +5,8 @@ public class Fascicolo {
private int anno; private int anno;
private int numero; private int numero;
public Fascicolo() {} public Fascicolo() {
}
public Fascicolo(int anno, int numero) { public Fascicolo(int anno, int numero) {
this.anno = anno; this.anno = anno;

2
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java

@ -1,6 +1,5 @@
package it.tref.liferay.portos.bo.shared.protocollo.model; package it.tref.liferay.portos.bo.shared.protocollo.model;
public class File { public class File {
private String fileId; private String fileId;
@ -27,5 +26,4 @@ public class File {
this.fileSha256 = fileSha256; this.fileSha256 = fileSha256;
} }
} }

56
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java

@ -1,56 +0,0 @@
package it.tref.liferay.portos.bo.shared.util;
import java.util.LinkedHashMap;
import java.util.Map;
public class ArtLeggeUtil {
public static final String DPR01 = "DPR01";
public static final String DPR02 = "DPR02";
public static final String DPR03 = "DPR03";
public static final String DPR04 = "DPR04";
public static final String DM01 = "DM01";
public static final String DM02 = "DM02";
public static final String DM03 = "DM03";
public static final String DM04 = "DM04";
public static final String DM05 = "DM05";
public static final String ANR = "ANR";
public static final String DPGR01 = "DPGR01";
public static final String DPGR02 = "DPGR02";
public static final String ORD01 = "ORD01";
public static final String LTC01 = "LTC01";
public static final String CI01 = "CI01";
public static final String ART3COM3 = "ART3COM3";
public static final String ART3COM4 = "ART3COM4";
private final static Map<String, String> allArtLegge;
static {
allArtLegge = new LinkedHashMap<String, String>();
allArtLegge.put(DPR01, "D.P.R. 380/01 artt. 93 e 94, L.R. 1/05 art. 105 ter");
allArtLegge.put(DPR02, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 ter");
allArtLegge.put(DPR03, "D.P.R. 380/01 art. 61(art.2 L64/74)");
allArtLegge.put(DPR04, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 bis");
allArtLegge.put(DM01, "D.M. 14/01/2008");
allArtLegge.put(DM02, "D.M. 14/09/2005");
allArtLegge.put(DM03, "D.M. 16/01/1996");
allArtLegge.put(DM04, "D.M. 24/01/1986");
allArtLegge.put(DM05, "D.M. 14/09/1985");
allArtLegge.put(ANR, "Altra normativa di riferimento");
allArtLegge.put(DPGR01, "D.P.G.R. 36/R/1996");
allArtLegge.put(DPGR02, "D.P.G.R. 36/R/1996 ART.6 E 7");
allArtLegge.put(ORD01, "Ordinanza P.C.M n 3274/03 e succ.integrazione");
allArtLegge.put(LTC01, "Lettura tecnica consolidata");
allArtLegge.put(CI01, "Codici Internazionali");
allArtLegge.put(ART3COM3, "Art.3,3");
allArtLegge.put(ART3COM4, "Art.3,4");
}
public static String getLabel(String key) {
return allArtLegge.get(key);
}
}

4
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/DocumentiPraticaUtil.java

@ -1,11 +1,11 @@
package it.tref.liferay.portos.bo.shared.util; package it.tref.liferay.portos.bo.shared.util;
import com.liferay.portal.kernel.language.LanguageUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import com.liferay.portal.kernel.language.LanguageUtil;
import javax.servlet.jsp.PageContext; import javax.servlet.jsp.PageContext;
public class DocumentiPraticaUtil { public class DocumentiPraticaUtil {

58
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java

@ -1,58 +0,0 @@
package it.tref.liferay.portos.bo.shared.util;
import java.util.LinkedHashMap;
import java.util.Map;
public class SistemiCostruttiviUtil {
public static final String IN_CEMENTO_ARMATO = "100";
public static final String IN_OPERA = "101";
public static final String PREFABBRICATO ="102";
public static final String IN_ACCIAIO = "200";
public static final String MISTA_CEMENTO_ARMATO_E_ACCIAIO = "201";
public static final String IN_MURATURA = "300";
public static final String ORDINARIA = "301";
public static final String ARMATA = "302";
public static final String MISTA = "303";
public static final String IN_LEGNO = "400";
public static final String ALTRO = "500";
public static final String CON_DISPOSITIVI_DI_ISOLAMENTO_SISMICO_O_DISSIPAZIONE= "600";
/*
* Tipologia
*/
public static final String TIPOLOGIA_INTERVENTO_NUOVA_COSTRUZIONE = "000";
public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_ADEGUAMENTO_SISMICO = "001";
public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_MIGLIORAMENTO_SISMICO = "010";
public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_RIPARAZIONE = "100";
private static Map<String, String> sistemaCostruttivoLabelsMap;
static {
sistemaCostruttivoLabelsMap = new LinkedHashMap<String, String>();
sistemaCostruttivoLabelsMap.put(IN_CEMENTO_ARMATO, "gc-in-ca");
sistemaCostruttivoLabelsMap.put(IN_OPERA, "gc-in-opera");
sistemaCostruttivoLabelsMap.put(PREFABBRICATO, "gc-prefabbricato");
sistemaCostruttivoLabelsMap.put(IN_ACCIAIO, "gc-in-acciaio");
sistemaCostruttivoLabelsMap.put(MISTA_CEMENTO_ARMATO_E_ACCIAIO, "gc-mista-ca-acciaio");
sistemaCostruttivoLabelsMap.put(IN_MURATURA, "gc-in-muratura");
sistemaCostruttivoLabelsMap.put(ORDINARIA, "gc-ordinaria");
sistemaCostruttivoLabelsMap.put(ARMATA, "gc-armata");
sistemaCostruttivoLabelsMap.put(MISTA, "gc-mista");
sistemaCostruttivoLabelsMap.put(IN_LEGNO, "gc-in-legno");
sistemaCostruttivoLabelsMap.put(ALTRO, "gc-altro");
sistemaCostruttivoLabelsMap.put(CON_DISPOSITIVI_DI_ISOLAMENTO_SISMICO_O_DISSIPAZIONE, "gc-con-dispositivi-isolamento");
}
public static String getLabel(String key) {
return sistemaCostruttivoLabelsMap.get(key);
}
}
Caricamento…
Annulla
Salva