Sfoglia il codice sorgente

Patch librerie

master
Salvatore La Manna 4 anni fa
parent
commit
d7b21f9385
  1. 4
      liferay-plugins-sdk-6.2/build.portos.properties
  2. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar
  3. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-discovery.jar
  4. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar
  12. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar
  15. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  16. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java
  17. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java
  18. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java
  19. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java
  20. 86
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ProtocolloUtil.java
  21. 282
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  22. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java
  23. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  24. 572
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld

4
liferay-plugins-sdk-6.2/build.portos.properties

@ -1,7 +1,3 @@
# Managed by Liferay IDE (remove this comment to prevent future updates)
#Managed by Liferay IDE (remove this comment to prevent future updates)
#Fri Sep 27 09:42:25 CEST 2019
app.server.tomcat.lib.global.dir = /home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps
app.server.parent.dir = /home/portos/bin/liferay-portal-6.2-ce-ga6

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-discovery.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar

File binario non mostrato.

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -10,14 +10,15 @@ author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
portal-dependency-jars=\
axis.jar,\
commons-discovery.jar,\
httpclient.jar,\
jaxrpc.jar,\
jstl-api.jar,\
jstl-impl.jar,\
jaxrpc.jar,\
commons-discovery.jar,\
util-java.jar,\
wsdl4j.jar,\
axis.jar,\
xml-apis.jar,\
httpclient.jar
xml-apis.jar
portal-dependency-tlds=\
c.tld
required-deployment-contexts=\

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

@ -341,8 +341,5 @@ public interface DettPraticaService extends BaseService, InvokableService {
java.io.IOException;
public void sendToVersioning(long dettPraticaId, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException, java.lang.NoSuchFieldException,
java.lang.SecurityException;
throws java.lang.Exception;
}

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

@ -1740,10 +1740,7 @@ public class DettPraticaServiceClp implements DettPraticaService {
@Override
public void sendToVersioning(long dettPraticaId, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException, java.lang.NoSuchFieldException,
java.lang.SecurityException {
throws java.lang.Exception {
try {
_invokableService.invokeMethod(_methodName26,
_methodParameterTypes26,
@ -1752,24 +1749,8 @@ public class DettPraticaServiceClp implements DettPraticaService {
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof java.lang.NoSuchFieldException) {
throw (java.lang.NoSuchFieldException)t;
}
if (t instanceof java.lang.SecurityException) {
throw (java.lang.SecurityException)t;
if (t instanceof java.lang.Exception) {
throw (java.lang.Exception)t;
}
if (t instanceof RuntimeException) {

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

@ -483,10 +483,7 @@ public class DettPraticaServiceUtil {
}
public static void sendToVersioning(long dettPraticaId, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException, java.lang.NoSuchFieldException,
java.lang.SecurityException {
throws java.lang.Exception {
getService().sendToVersioning(dettPraticaId, companyId);
}

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

@ -493,10 +493,7 @@ public class DettPraticaServiceWrapper implements DettPraticaService,
@Override
public void sendToVersioning(long dettPraticaId, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException, java.lang.NoSuchFieldException,
java.lang.SecurityException {
throws java.lang.Exception {
_dettPraticaService.sendToVersioning(dettPraticaId, companyId);
}

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

@ -1,43 +1,26 @@
package it.tref.liferay.portos.bo.util;
import it.mwg.sismica.bo.util.HttpServiceUtil;
import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.protocollo.model.File;
import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo;
import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo.TipoProtocollo;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.codec.digest.DigestUtils;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.Http.Body;
import com.liferay.portal.kernel.util.Http.Options;
import com.liferay.portal.kernel.util.HttpUtil;
import com.liferay.portal.kernel.util.StreamUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
public class ProtocolloUtil {
public static String protocollaPartenzaAccessoAtti(long accessoAttiId, long intPraticaId, long groupId, String className, long companyId, String screenName) throws Exception {
String protocollo = null;
InputStream inputStream = null;
try {
public static String protocollaPartenzaAccessoAtti(long accessoAttiId, long intPraticaId, long groupId,
String className, long companyId, String screenName) throws Exception {
File allegato = new File();
@ -48,9 +31,9 @@ public class ProtocolloUtil {
allegato.setFileId("0");
allegato.setFileSha256(sha256);
// utilizzato anche come discriminate tra la 1a e la 2a chiamata
// 1a recupero numero protocollo -> 1 allegato finto
// 2a aggiorno dati del documento prodotto -> 2 allegati, il 1o giusto e il 2o per recupero
// utilizzato anche come discriminate tra la 1a e la 2a chiamata 1a
// recupero numero protocollo -> 1 allegato finto 2a aggiorno dati del
// documento prodotto -> 2 allegati, il 1o giusto e il 2o per recupero
// num protocollo
Protocollo protocolloBean = new Protocollo();
@ -61,25 +44,12 @@ public class ProtocolloUtil {
protocolloBean.setUfficioId(String.valueOf(groupId));
protocolloBean.setPraticaId(String.valueOf(accessoAttiId));
protocolloBean.setFiles(Collections.singletonList(allegato));
Options options = createCall(companyId, protocolloBean, true);
String responseBody = HttpUtil.URLtoString(options);
if (options.getResponse().getResponseCode() == HttpServletResponse.SC_OK
|| options.getResponse().getResponseCode() == HttpServletResponse.SC_CREATED) {
JSONObject risposta = JSONFactoryUtil.createJSONObject(responseBody);
protocollo = risposta.getString("anno") + String.format("%07d", risposta.getInt("numero"));
} else {
throw new Exception(options.getResponse().getResponseCode() + StringPool.SPACE + responseBody);
}
} finally {
StreamUtil.cleanUp(inputStream);
JSONObject risposta = HttpServiceUtil.postProtocolloBean(companyId, protocolloBean);
return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero"));
}
return protocollo;
}
public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName, long accessoAttiId, String className) throws Exception {
public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName,
long accessoAttiId, String className) throws Exception {
String protocollo = null;
@ -100,19 +70,9 @@ public class ProtocolloUtil {
protocolloBean.setPraticaId(String.valueOf(accessoAttiId));
protocolloBean.setFiles(allegati);
Options options = createCall(companyId, protocolloBean, true);
String responseBody = HttpUtil.URLtoString(options);
if (options.getResponse().getResponseCode() == HttpServletResponse.SC_OK
|| options.getResponse().getResponseCode() == HttpServletResponse.SC_CREATED) {
JSONObject risposta = JSONFactoryUtil.createJSONObject(responseBody);
protocollo = risposta.getString("anno") + String.format("%07d", risposta.getInt("numero"));
} else {
throw new Exception(options.getResponse().getResponseCode() + StringPool.SPACE + responseBody);
}
return protocollo;
JSONObject risposta = HttpServiceUtil.postProtocolloBean(companyId, protocolloBean);
return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero"));
}
public static String generaOggettoProtocollo(String className, long classPk) {
@ -128,26 +88,4 @@ public class ProtocolloUtil {
return "Oggetto: " + className + " " + classPk;
}
private static Options createCall(long companyId, Protocollo protocolloBean, boolean post) throws SystemException {
String url =
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL);
Options options = new Options();
options.setLocation(url);
options.setPost(post);
flexjson.JSONSerializer serialize = new flexjson.JSONSerializer();
serialize.exclude("*.class");
String protocollo = serialize.serialize(protocolloBean);
Body body = new Body(protocollo, ContentTypes.APPLICATION_JSON, "UTF-8");
options.setBody(body);
return options;
}
}

282
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java

@ -106,7 +106,8 @@ public class FascicoloPortlet extends MVCPortlet {
@Override
public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException {
HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(request));
HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil
.getHttpServletRequest(request));
String intPraticaId = httpReq.getParameter("intPraticaId");
if (Validator.isNotNull(intPraticaId) && !intPraticaId.equals("")) {
@ -118,14 +119,13 @@ public class FascicoloPortlet extends MVCPortlet {
public void toggleWorkflow(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
User user = themeDisplay.getUser();
boolean attivare = ParamUtil.getBoolean(actionRequest, "avviare");
boolean sospendere = ParamUtil.getBoolean(actionRequest, "sospendere");
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0);
String stato_pratica= ParamUtil.getString(actionRequest, "seleziona_stato");
String stato_pratica = ParamUtil.getString(actionRequest, "seleziona_stato");
try {
@ -135,16 +135,16 @@ public class FascicoloPortlet extends MVCPortlet {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
if (attivare && !sospendere) {
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(),
dettPratica.getDettPraticaId(), serviceContext, true);
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(),
serviceContext.getUserId(), dettPratica.getDettPraticaId(), serviceContext, true);
addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(),
themeDisplay.getCompanyId(), intPratica.getGroupId(), user, true);
SessionMessages.add(actionRequest, "success-workflow-ripreso");
} else if (!attivare && sospendere) {
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(),
dettPratica.getDettPraticaId(), serviceContext, false);
WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(),
serviceContext.getUserId(), dettPratica.getDettPraticaId(), serviceContext, false);
addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(),
themeDisplay.getCompanyId(), intPratica.getGroupId(), user, false);
@ -159,15 +159,15 @@ public class FascicoloPortlet extends MVCPortlet {
actionResponse.sendRedirect(redirectURL);
}
if(!attivare){
if (!attivare) {
intPratica.setStatoPratica(stato_pratica);
IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, 0, stato_pratica);
} else {
intPratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, 0, StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, 0,
StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
}
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, intPratica.getCompanyId());
} catch (Exception e) {
@ -177,10 +177,12 @@ public class FascicoloPortlet extends MVCPortlet {
}
private void addRowHistoryWorkflowAction(long intPraticaId, long dettPraticaId, long companyId, long groupId, User user, boolean attivato) throws SystemException{
private void addRowHistoryWorkflowAction(long intPraticaId, long dettPraticaId, long companyId,
long groupId, User user, boolean attivato) throws SystemException {
HistoryWorkflowAction historyWorkflowAction = HistoryWorkflowActionLocalServiceUtil.createHistoryWorkflowAction(
CounterLocalServiceUtil.increment(HistoryWorkflowAction.class.getName()));
HistoryWorkflowAction historyWorkflowAction = HistoryWorkflowActionLocalServiceUtil
.createHistoryWorkflowAction(CounterLocalServiceUtil.increment(HistoryWorkflowAction.class
.getName()));
historyWorkflowAction.setAttivato(attivato);
historyWorkflowAction.setCompanyId(companyId);
@ -253,21 +255,21 @@ public class FascicoloPortlet extends MVCPortlet {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0);
long companyId = ParamUtil.getLong(actionRequest, "companyId");
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, nuovoSoggettoCF);
if (Validator.isNotNull(user)) {
if (!ValidazionePraticaUtil.praticaInProgress(intPraticaId)) {
_log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" + intPraticaId);
_log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica"
+ intPraticaId);
IntPraticaServiceUtil.cambiaTitolare(intPraticaId, user.getUserId(), serviceContext);
SessionMessages.add(actionRequest, "success-cambio-titolare");
} else {
SessionErrors.add(actionRequest, "error-cambio-titolare-pratica-in-progress");
}
} else {
_log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company " + companyId
+ " e codice fiscale " + nuovoSoggettoCF);
_log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company "
+ companyId + " e codice fiscale " + nuovoSoggettoCF);
SessionErrors.add(actionRequest, "error-cambio-titolare-no-such-user");
}
} catch (PortalException | SystemException e) {
@ -299,24 +301,23 @@ public class FascicoloPortlet extends MVCPortlet {
if (dataRichiestaInizio != null && !dataRichiestaInizio.equals("")) {
String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split("/");
int mounth = Integer.valueOf(dataRichiestaInizioSplitted[1]) -1;
int mounth = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]);
actionResponse.setRenderParameter("dataRichiestaInizioMonth", mounth+"");
actionResponse.setRenderParameter("dataRichiestaInizioMonth", mounth + "");
actionResponse.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]);
}
if (dataRichiestaFine != null && !dataRichiestaFine.equals("")) {
String[] dataRichiestaFineSplitted = dataRichiestaFine.split("/");
int mounth = Integer.valueOf(dataRichiestaFineSplitted[1]) -1;
int mounth = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1;
actionResponse.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]);
actionResponse.setRenderParameter("dataRichiestaFineMonth", mounth+"");
actionResponse.setRenderParameter("dataRichiestaFineMonth", mounth + "");
actionResponse.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]);
}
String ufficio = actionRequest.getParameter("ufficio");
String ordinaPer = actionRequest.getParameter("ordinaPer");
String ordinaTipo = actionRequest.getParameter("ordinaTipo");
@ -334,11 +335,11 @@ public class FascicoloPortlet extends MVCPortlet {
actionResponse.setRenderParameter("statoPratica", statoPratica);
actionResponse.setRenderParameter("committente", committente);
if(provincia != null && !provincia.equals("")){
if (provincia != null && !provincia.equals("")) {
actionResponse.setRenderParameter("provincia", provincia);
}
if(comune != null && !comune.equals("")){
if (comune != null && !comune.equals("")) {
actionResponse.setRenderParameter("comune", comune);
}
@ -361,7 +362,6 @@ public class FascicoloPortlet extends MVCPortlet {
actionResponse.setRenderParameter("ufficio", -1 + "");
}
actionResponse.setRenderParameter("ordinaPer", ordinaPer);
actionResponse.setRenderParameter("ordinaTipo", ordinaTipo);
@ -372,11 +372,9 @@ public class FascicoloPortlet extends MVCPortlet {
long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId", 0);
long companyId = ParamUtil.getLong(actionRequest, "companyId");
try {
DettPraticaServiceUtil.sendToVersioning(dettPraticaId, companyId);
} catch (PortalException | SystemException | IOException | NoSuchFieldException | SecurityException e) {
} catch (Exception e) {
_log.error("error-versioning", e);
SessionErrors.add(actionRequest, "error-versioning");
}
@ -386,8 +384,8 @@ public class FascicoloPortlet extends MVCPortlet {
}
@Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
PortletException {
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
throws IOException, PortletException {
String id = resourceRequest.getResourceID();
ServiceContext serviceContext;
@ -416,8 +414,8 @@ public class FascicoloPortlet extends MVCPortlet {
} else if ("page_collaudo".equals(comingFrom)) {
tipologieAllegati = DocumentiPraticaUtil.getDocCollaudo();
}
docs =
DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(intPraticaId, classPk, tipologieAllegati);
docs = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(intPraticaId,
classPk, tipologieAllegati);
}
ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter();
@ -430,10 +428,11 @@ public class FascicoloPortlet extends MVCPortlet {
continue;
}
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getDlFileEntryId());
inputStream =
DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion(), false);
inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(),
fileEntry.getVersion(), false);
// String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension();
// String name = fileEntry.getTitle() +
// StringPool.PERIOD + fileEntry.getExtension();
String name = fileEntry.getTitle();
zipWriter.addEntry(name, inputStream);
} finally {
@ -448,8 +447,8 @@ public class FascicoloPortlet extends MVCPortlet {
resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP);
resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate");
resourceResponse
.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + "\"");
resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\""
+ file.getName() + "\"");
resourceResponse.setContentLength(data.length);
resourceResponse.getPortletOutputStream().write(data);
@ -464,40 +463,53 @@ public class FascicoloPortlet extends MVCPortlet {
FilesImporter.importaFile(classPk, className);
// if (DocPratica.class.getName().equalsIgnoreCase(className)) {
// DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(classPk);
// if (docPratica.getDlFileEntryId() == 0L && docPratica.getOldDlFileEntryId() != 0L) {
// DocPratica docPratica =
// DocPraticaLocalServiceUtil.getDocPratica(classPk);
// if (docPratica.getDlFileEntryId() == 0L &&
// docPratica.getOldDlFileEntryId() != 0L) {
// FilesImporter.handleFileImportDocPratica(docPratica);
// }
// } else if (Avviso.class.getName().equalsIgnoreCase(className)) {
// } else if
// (Avviso.class.getName().equalsIgnoreCase(className)) {
// Avviso avviso = AvvisoLocalServiceUtil.getAvviso(classPk);
// if (avviso.getFileEntryIdBase() == 0L && avviso.getOldFileEntryIdBase() != 0L) {
// if (avviso.getFileEntryIdBase() == 0L &&
// avviso.getOldFileEntryIdBase() != 0L) {
// FilesImporter.handleFileImportAvviso(avviso, true);
// }
// if (avviso.getFileEntryIdInvio() == 0L && avviso.getOldFileEntryIdInvio() != 0L) {
// if (avviso.getFileEntryIdInvio() == 0L &&
// avviso.getOldFileEntryIdInvio() != 0L) {
// FilesImporter.handleFileImportAvviso(avviso, false);
// }
// } else if (Pagamento.class.getName().equalsIgnoreCase(className)) {
// Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(classPk);
// if (pagamento.getFileEntryId() == 0L && pagamento.getOldFileEntryId() != 0L) {
// } else if
// (Pagamento.class.getName().equalsIgnoreCase(className)) {
// Pagamento pagamento =
// PagamentoLocalServiceUtil.getPagamento(classPk);
// if (pagamento.getFileEntryId() == 0L &&
// pagamento.getOldFileEntryId() != 0L) {
// FilesImporter.handleFileImportPagamento(pagamento);
// }
// } else if (DocAggiuntiva.class.getName().equalsIgnoreCase(className)) {
// DocAggiuntiva docAggiuntiva = DocAggiuntivaLocalServiceUtil.getDocAggiuntiva(classPk);
// if (docAggiuntiva.getFileEntryId() == 0L && docAggiuntiva.getOldFileEntryId() != 0L) {
// } else if
// (DocAggiuntiva.class.getName().equalsIgnoreCase(className)) {
// DocAggiuntiva docAggiuntiva =
// DocAggiuntivaLocalServiceUtil.getDocAggiuntiva(classPk);
// if (docAggiuntiva.getFileEntryId() == 0L &&
// docAggiuntiva.getOldFileEntryId() != 0L) {
// FilesImporter.handleFileImportDocAggiuntiva(docAggiuntiva);
// }
// } else if (AllegatoManuale.class.getName().equalsIgnoreCase(className)) {
// } else if
// (AllegatoManuale.class.getName().equalsIgnoreCase(className))
// {
// AllegatoManuale allegatoManuale =
// AllegatoManualeLocalServiceUtil.getAllegatoManuale(classPk);
// if (allegatoManuale.getFileEntryId() == 0L && allegatoManuale.getOldFileEntryId() != 0L)
// if (allegatoManuale.getFileEntryId() == 0L &&
// allegatoManuale.getOldFileEntryId() != 0L)
// {
// FilesImporter.handleFileImportAllegatoManuale(allegatoManuale);
// }
// }
PortletResponseUtil
.write(
resourceResponse,
.write(resourceResponse,
"<p style='margin-bottom:20px'><strong>Completato</strong></p><a href='#' class='btn btn-success' onclick=\"Liferay.Portlet.refresh('#p_p_id_"
+ PortletKeys.FASCICOLO + "_')\">Refresh</a>");
@ -510,11 +522,11 @@ public class FascicoloPortlet extends MVCPortlet {
}
String comingFrom = ParamUtil.getString(resourceRequest, "comingFrom", "bo");
InfoFascicolo infoFascicolo = InfoFascicoloLocalServiceUtil.fetchByIntPratica(intPratica.getIntPraticaId());
InfoFascicolo infoFascicolo = InfoFascicoloLocalServiceUtil.fetchByIntPratica(intPratica
.getIntPraticaId());
if (Validator.isNull(infoFascicolo)) {
infoFascicolo =
InfoFascicoloLocalServiceUtil.addInfoFascicolo(intPratica.getIntPraticaId(),
intPratica.getNumeroProgetto(), serviceContext);
infoFascicolo = InfoFascicoloLocalServiceUtil.addInfoFascicolo(
intPratica.getIntPraticaId(), intPratica.getNumeroProgetto(), serviceContext);
} else {
if (infoFascicolo.getAlreadyImported() && comingFrom.equalsIgnoreCase("fe")) {
_log.error("intpratica.import.file.already-clicked with intpraticaid=" + intPraticaId);
@ -524,19 +536,24 @@ public class FascicoloPortlet extends MVCPortlet {
User user = UserLocalServiceUtil.fetchUser(serviceContext.getUserId());
_log.debug("************** START IMPORT FILES FASCICOLO : " + intPraticaId + " by user" + user.getFullName());
_log.debug("************** START IMPORT FILES FASCICOLO : " + intPraticaId + " by user"
+ user.getFullName());
List<DettPratica> listaDet = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
for (DettPratica dettPratica : listaDet) {
FilesImporter.importaFilesFascicolo(dettPratica.getDettPraticaId(), DettPratica.class.getName());
FilesImporter.importaFilesFascicolo(dettPratica.getDettPraticaId(),
DettPratica.class.getName());
}
List<FineLavori> listaFine = FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, -1, -1, null);
List<FineLavori> listaFine = FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, -1,
-1, null);
for (FineLavori fineLavori : listaFine) {
FilesImporter.importaFilesFascicolo(fineLavori.getFineLavoriId(), FineLavori.class.getName());
FilesImporter.importaFilesFascicolo(fineLavori.getFineLavoriId(),
FineLavori.class.getName());
}
List<Collaudo> listaColl = CollaudoLocalServiceUtil.findByIntPraticaId(intPraticaId, -1, -1, null);
List<Collaudo> listaColl = CollaudoLocalServiceUtil.findByIntPraticaId(intPraticaId, -1, -1,
null);
for (Collaudo collaudo : listaColl) {
FilesImporter.importaFilesFascicolo(collaudo.getCollaudoId(), Collaudo.class.getName());
}
@ -547,17 +564,17 @@ public class FascicoloPortlet extends MVCPortlet {
infoFascicolo = InfoFascicoloLocalServiceUtil.updateInfoFascicolo(infoFascicolo);
PortletResponseUtil
.write(
resourceResponse,
.write(resourceResponse,
"<p style='margin-bottom:20px'><strong>Completato</strong></p><a href='#' class='btn btn-success' onclick=\"Liferay.Portlet.refresh('#p_p_id_"
+ PortletKeys.FASCICOLO + "_')\">Refresh</a>");
} else if ("comuni".equals(id)) {
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) {
List<Long> comuniIds = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaId);
List<Long> comuniIds = TerritorioLocalServiceUtil
.getActiveComuniByCodiceProvincia(provinciaId);
//ADT BUG-ID=15 Sezione Ricerca / Ordinamento Filtro
// ADT BUG-ID=15 Sezione Ricerca / Ordinamento Filtro
List<Comune> comumeList = new ArrayList<Comune>();
for (long comuneId : comuniIds) {
Comune comune = ComuneLocalServiceUtil.getComune(comuneId);
@ -581,14 +598,14 @@ public class FascicoloPortlet extends MVCPortlet {
}
writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if("exportRicerca".equals(id)){
} else if ("exportRicerca".equals(id)) {
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest
.getAttribute(WebKeys.THEME_DISPLAY);
Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser();
String csv = StringPool.BLANK;
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest);
@ -596,10 +613,10 @@ public class FascicoloPortlet extends MVCPortlet {
csv = exportSearch(locale, resourceRequest, user);
ServletResponseUtil.sendFile(request, response, "export_ricerca.csv", csv.getBytes(StringPool.UTF8),
ContentTypes.TEXT_CSV_UTF8);
ServletResponseUtil.sendFile(request, response, "export_ricerca.csv",
csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8);
}else {
} else {
super.serveResource(resourceRequest, resourceResponse);
}
} catch (Exception e) {
@ -617,7 +634,7 @@ public class FascicoloPortlet extends MVCPortlet {
List<IntPratica> lista = new ArrayList<IntPratica>();
// try {
// try {
Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(httpRequest, user, -1, -1);
@ -625,55 +642,68 @@ public class FascicoloPortlet extends MVCPortlet {
String intPraticaId = doc.get("intPraticaId");
try {
if (Validator.isNotNull(intPraticaId)) {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId));
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil
.getLong(intPraticaId));
if (Validator.isNotNull(intPratica)) {
lista.add(intPratica);
}
}
} catch(Throwable e){
_log.error(method + " IntPraticaLocalServiceUtil.fetchIntPratica IntPraticaId: " + intPraticaId, e);
} catch (Throwable e) {
_log.error(method + " IntPraticaLocalServiceUtil.fetchIntPratica IntPraticaId: "
+ intPraticaId, e);
}
}
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.sorteggiata")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.sorteggiata")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.pratica")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.pratica")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.titolare")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.titolare")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.committenti")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.committenti")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.istruttore")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.istruttore")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.statoPratica")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.statoPratica")));
sb.append(StringPool.SEMICOLON);
//ADT BUG-ID=15 Sezione Ricerca / Export csv
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.provincia")));
// ADT BUG-ID=15 Sezione Ricerca / Export csv
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.provincia")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.comune")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.comune")));
sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.descrizioneIntervento")));
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.descrizioneIntervento")));
sb.append(StringPool.SEMICOLON);
sb.append(StringPool.NEW_LINE);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
for (IntPratica intPratica : lista) {
try{
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
try {
DettPratica lastDettPratica = DettPraticaLocalServiceUtil
.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica
.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia =
ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
boolean sorteggiata = SorteggioLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()) != null;
boolean sorteggiata = SorteggioLocalServiceUtil
.findByIntPratica(intPratica.getIntPraticaId()) != null;
sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No"));
sb.append(StringPool.SEMICOLON);
@ -682,70 +712,84 @@ public class FascicoloPortlet extends MVCPortlet {
sb.append(StringPool.SEMICOLON);
User titolareUser = UserLocalServiceUtil.getUserById(intPratica.getUserId());
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(lastDettPratica.getIntPraticaId(), lastDettPratica.getCodiceFiscaleDelegatoCommittente());
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
lastDettPratica.getIntPraticaId(),
lastDettPratica.getCodiceFiscaleDelegatoCommittente());
Soggetto titolare = null;
if(!titolari.isEmpty()){
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
if(titolare != null){
sb.append(titolare.getTitle()+ " - " +titolare.getCodiceFiscale());
if (titolare != null) {
sb.append(titolare.getTitle() + " - " + titolare.getCodiceFiscale());
} else {
sb.append("");
}
sb.append(StringPool.SEMICOLON);
StringBuilder builder = new StringBuilder();
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
for(Soggetto committente : committenti){
builder.append(committente.getTitle()+" - "+committente.getCodiceFiscale())
.append(StringPool.COMMA_AND_SPACE);
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(
lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) {
builder.append(committente.getTitle() + " - " + committente.getCodiceFiscale()).append(
StringPool.COMMA_AND_SPACE);
}
if(builder.length()>0)
builder.setLength(builder.length()-12);
if (builder.length() > 0)
builder.setLength(builder.length() - 12);
sb.append(builder.toString());
sb.append(StringPool.SEMICOLON);
User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if(istruttore!=null){
if (istruttore != null) {
sb.append(istruttore.getFullName());
} else {
sb.append("");
}
sb.append(StringPool.SEMICOLON);
sb.append(LanguageUtil.get(locale, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica)));
sb.append(LanguageUtil.get(locale,
PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica)));
sb.append(StringPool.SEMICOLON);
//ADT BUG-ID=15 Sezione Ricerca / Export csv
// ADT BUG-ID=15 Sezione Ricerca / Export csv
sb.append(provincia != null ? provincia.getProvincia() : "");
sb.append(StringPool.SEMICOLON);
sb.append(comune != null ? comune.getDenominazione() : "");
sb.append(StringPool.SEMICOLON);
// sb.append("Territorio: " ).append(comune.getDenominazione()).append(!lastDettPratica.getLocalita().isEmpty() ? "(Loc. "+lastDettPratica.getLocalita()+" ) " : "").append(" - ").append(provincia.getProvincia());
//ADT BUG-ID=15 Sezione Ricerca / Export csv - Max 30 chars
// sb.append("Territorio: "
// ).append(comune.getDenominazione()).append(!lastDettPratica.getLocalita().isEmpty()
// ? "(Loc. "+lastDettPratica.getLocalita()+" ) " :
// "").append(" - ").append(provincia.getProvincia());
// ADT BUG-ID=15 Sezione Ricerca / Export csv - Max 30 chars
int MAX_LENGHT_DESCR_INTERVENTO = 30;
sb.append(lastDettPratica.getDescLongIntervento() == null ? "": lastDettPratica.getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica.getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) : lastDettPratica.getDescLongIntervento());
sb.append(lastDettPratica.getDescLongIntervento() == null ? "" : lastDettPratica
.getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica
.getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) : lastDettPratica
.getDescLongIntervento());
sb.append(StringPool.SEMICOLON);
// Territorio: <strong><%= comune.getDenominazione() %> <%= !lastDettPratica.getLocalita().isEmpty() ? "(Loc. "+lastDettPratica.getLocalita()+" ) " : "" %>- <%= provincia.getProvincia() %></strong><br>
// Localizzazione: <strong><%= lastDettPratica.getVia() %></strong><br><br>
// Territorio: <strong><%= comune.getDenominazione() %> <%=
// !lastDettPratica.getLocalita().isEmpty() ?
// "(Loc. "+lastDettPratica.getLocalita()+" ) " : "" %>- <%=
// provincia.getProvincia() %></strong><br>
// Localizzazione: <strong><%= lastDettPratica.getVia()
// %></strong><br><br>
// <%= lastDettPratica.getDescLongIntervento() %>
} catch(Throwable e){
_log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId() : "", e);
} finally{
} catch (Throwable e) {
_log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId()
: "", e);
} finally {
sb.append(StringPool.NEW_LINE);
}
}
// } catch (PortalException e) {
// _log.error(e, e);
// } catch (SystemException e) {
// _log.error(e, e);
// }
// } catch (PortalException e) {
// _log.error(e, e);
// } catch (SystemException e) {
// _log.error(e, e);
// }
return sb.toString();

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

@ -480,8 +480,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
}
public void sendToVersioning(long dettPraticaId, long companyId) throws PortalException, SystemException,
NoSuchFieldException, SecurityException, IOException {
public void sendToVersioning(long dettPraticaId, long companyId) throws Exception {
Company company = CompanyLocalServiceUtil.getCompany(companyId);
String commitURL = (String) company.getExpandoBridge().getAttribute(

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.number=2409
build.date=1600356327380
build.number=2413
build.date=1600421442524
build.auto.upgrade=true
##

572
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld

@ -1,572 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
<validator>
<description>
Provides core validation features for JSTL tags.
</description>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
</validator>
<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
<name>choose</name>
<tag-class>com.liferay.taglib.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<name>if</name>
<tag-class>com.liferay.taglib.core.IfTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or
not the body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to import.
</description>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
</description>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Character encoding of the content at the input
resource.
</description>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
Collection of items to iterate over.
</description>
<name>items</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step items of
the collection, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
String of tokens to iterate over.
</description>
<name>items</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
The set of delimiters (the characters that
separate the tokens in the string).
</description>
<name>delims</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>
Iteration begins at the token located at the
specified index. First token has index 0.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration ends at the token located at the
specified index (inclusive).
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step tokens
of the string, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters &lt;,&gt;,&amp;,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
<name>otherwise</name>
<tag-class>com.liferay.taglib.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the query string parameter.
</description>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Value of the parameter.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Redirects to a new URL.
</description>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to redirect to.
</description>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Name of the scoped variable to be removed.
</description>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
</description>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the property to be set in the target object.
</description>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Creates a URL with optional query parameters.
</description>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
URL to be processed.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<name>when</name>
<tag-class>com.liferay.taglib.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or not the
body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
</tag>
</taglib>
Caricamento…
Annulla
Salva