|
|
|
@ -7,6 +7,7 @@ import it.tref.liferay.portos.bo.shared.util.Constants;
|
|
|
|
|
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; |
|
|
|
|
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; |
|
|
|
|
|
|
|
|
|
import java.util.Collection; |
|
|
|
|
import java.util.LinkedHashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
@ -14,6 +15,7 @@ import com.liferay.portal.kernel.exception.PortalException;
|
|
|
|
|
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.util.UniqueList; |
|
|
|
|
import com.liferay.portal.kernel.util.Validator; |
|
|
|
|
|
|
|
|
|
public class AvvisoUtil { |
|
|
|
@ -131,8 +133,6 @@ public class AvvisoUtil {
|
|
|
|
|
/*********************************************************************************/ |
|
|
|
|
|
|
|
|
|
allTipoDocumentoFileTemplateProps = new LinkedHashMap<String, String>(); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put(StatoPraticaConstants.VIDIMATA, |
|
|
|
|
"conf.geniocivile.avviso.template.id.vidimata"); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, |
|
|
|
|
"conf.geniocivile.avviso.template.id.variazionesoggetti"); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put(StatoPraticaConstants.FINE_LAVORI, |
|
|
|
@ -188,8 +188,6 @@ public class AvvisoUtil {
|
|
|
|
|
|
|
|
|
|
allTipoDocumentoFileTemplateProps.put("DPB2", "conf.geniocivile.avviso.template.id.deposito.B2"); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put("DPVNS", "conf.geniocivile.avviso.template.id.deposito.VNS"); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put("DPPS", "conf.geniocivile.avviso.template.id.deposito.PS"); |
|
|
|
|
allTipoDocumentoFileTemplateProps.put("DPS", "conf.geniocivile.avviso.template.id.deposito.S"); |
|
|
|
|
/* |
|
|
|
|
* allTipoDocumentoFileTemplateProps.put(StatoPraticaConstants. |
|
|
|
|
* INTEGRAZIONE_RIFIUTATA, |
|
|
|
@ -217,6 +215,14 @@ public class AvvisoUtil {
|
|
|
|
|
return allTipoDocumentoFileTemplateProps; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Collection<String> getUniqueTipoDocumentoFileTemplateProps() { |
|
|
|
|
Collection<String> result = new UniqueList<>(); |
|
|
|
|
for (String value:allTipoDocumentoFileTemplateProps.values()) { |
|
|
|
|
result.add(value); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static String getTipoReport(DettPratica dettPratica, String tipoDocumento) { |
|
|
|
|
|
|
|
|
|
String tipoReport = null; |
|
|
|
|