Confronta commit

..

3 Commit

Autore SHA1 Messaggio Data
Marco Alderighi b9dbb2c7ca Merge branch 'feature/accesso-atti' into feature/pratica-ospedaliera 6 mesi fa
Marco Alderighi 25d90eddeb fix integrazione ospedaliera 6 mesi fa
abianchi7701 0ba3af5eea fix Accesso atti 7 mesi fa
  1. BIN
      jasper/reports-2023/Modello CS.pdf
  2. 3
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.project
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  4. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared-service.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  8. 117
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiBOPortlet.java
  9. 34
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiFEPortlet.java
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-bo-shared-service.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-bo-shared.jar
  12. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-mail-manager-shared.jar
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar
  15. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar
  16. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar
  17. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  18. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar
  19. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  20. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  21. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  22. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  23. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  24. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  25. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar
  26. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar
  27. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar
  28. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar
  29. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java
  30. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  32. 572
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld

BIN
jasper/reports-2023/Modello CS.pdf

File binario non mostrato.

3
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.project

@ -33,6 +33,7 @@
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<<<<<<< Updated upstream
<filteredResources> <filteredResources>
<filter> <filter>
<<<<<<< HEAD <<<<<<< HEAD
@ -48,4 +49,6 @@
</matcher> </matcher>
</filter> </filter>
</filteredResources> </filteredResources>
=======
>>>>>>> Stashed changes
</projectDescription> </projectDescription>

4
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<faceted-project> <faceted-project>
<runtime name="Liferay v6.2 CE (Tomcat 7)"/> <runtime name="Liferay v6.2 CE (Tomcat 7)"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/> <fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.7"/> <installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/> <installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="liferay.portlet" version="6.0"/> <installed facet="liferay.portlet" version="6.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project> </faceted-project>

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared-service.jar

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar

File binario non mostrato.

117
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiBOPortlet.java

@ -14,11 +14,14 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.util.ProtocolloUtil; import it.tref.liferay.portos.bo.util.ProtocolloUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
@ -35,6 +38,8 @@ import javax.servlet.http.HttpServletResponse;
import com.liferay.counter.service.CounterLocalServiceUtil; import com.liferay.counter.service.CounterLocalServiceUtil;
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.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
@ -47,6 +52,8 @@ import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.WebKeys; import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil; import com.liferay.portal.util.PortalUtil;
@ -62,7 +69,12 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
public void accettaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{ public void accettaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ServiceContext serviceContext = null;
try {
serviceContext = ServiceContextFactory.getInstance(actionRequest);
} catch (PortalException e1) {
_log.error(e1,e1);
}
long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId"); long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId");
String testoEmail = ParamUtil.getString(actionRequest, "testoEmail"); String testoEmail = ParamUtil.getString(actionRequest, "testoEmail");
@ -80,7 +92,7 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
richiestaAccessoAtti.setAccessToken(accessToken); richiestaAccessoAtti.setAccessToken(accessToken);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
_log.debug(richiestaAccessoAtti.getAccessToken()+ " token");
try { try {
String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(), String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(),
@ -93,8 +105,30 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
String[] to = { richiestaAccessoAtti.getEmailRicontatto() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("num", richiestaAccessoAtti.getRichiestaAccessoAttiId());
templateVariables.put("praticaNum", richiestaAccessoAtti.getNumeroProgetto());
templateVariables.put("corpo", testoEmail);
templateVariables.put("token", richiestaAccessoAtti.getAccessToken());
List<FileAttachment> fileAttachments = new ArrayList<>();
try {
// MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
// "INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-CONFERMA-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-CONFERMA-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
} catch (Exception e2) {
_log.error(e2,e2);
}
EmailSenderUtil.sendAcceptedEmail(richiestaAccessoAttiId, themeDisplay.getLocale(), testoEmail); // EmailSenderUtil.sendAcceptedEmail(richiestaAccessoAttiId, themeDisplay.getLocale(), testoEmail);
} }
} }
@ -102,6 +136,12 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
public void rifiutaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{ public void rifiutaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ServiceContext serviceContext = null;
try {
serviceContext = ServiceContextFactory.getInstance(actionRequest);
} catch (PortalException e1) {
_log.error(e1,e1);
}
long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId"); long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId");
String motivoRifiuto = ParamUtil.getString(actionRequest, "motivoRifiuto"); String motivoRifiuto = ParamUtil.getString(actionRequest, "motivoRifiuto");
@ -132,7 +172,28 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendDeniedEmail(richiestaAccessoAttiId, themeDisplay.getLocale(), motivoRifiuto); String[] to = { richiestaAccessoAtti.getEmailRicontatto() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("num", richiestaAccessoAtti.getRichiestaAccessoAttiId());
templateVariables.put("praticaNum", richiestaAccessoAtti.getNumeroProgetto());
templateVariables.put("corpo", motivoRifiuto);
List<FileAttachment> fileAttachments = new ArrayList<>();
try {
// MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
// "INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RIFIUTO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RIFIUTO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
} catch (Exception e2) {
_log.error(e2,e2);
}
// EmailSenderUtil.sendDeniedEmail(richiestaAccessoAttiId, themeDisplay.getLocale(), motivoRifiuto);
} }
} }
@ -284,6 +345,12 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
long accessoAttiId = 0L; long accessoAttiId = 0L;
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ServiceContext serviceContext = null;
try {
serviceContext = ServiceContextFactory.getInstance(actionRequest);
} catch (PortalException e1) {
_log.error(e1,e1);
}
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataCheck = sdf.parse("01/01/2015"); Date dataCheck = sdf.parse("01/01/2015");
@ -399,8 +466,27 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
String[] to = { richiestaAccessoAtti.getEmailRicontatto() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("num", richiestaAccessoAtti.getRichiestaAccessoAttiId());
templateVariables.put("praticaNum", richiestaAccessoAtti.getNumeroProgetto());
List<FileAttachment> fileAttachments = new ArrayList<>();
try {
// MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
// "INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale()); } catch (Exception em1) {
_log.error(em1,em1);
}
// EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale());
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp");
@ -500,8 +586,27 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
String[] to = { richiestaAccessoAtti.getEmailRicontatto() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("num", richiestaAccessoAtti.getRichiestaAccessoAttiId());
templateVariables.put("praticaNum", richiestaAccessoAtti.getNumeroProgetto());
List<FileAttachment> fileAttachments = new ArrayList<>();
try {
// MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
// "INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale()); MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
} catch (Exception em2) {
_log.error(em2,em2);
}
// EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale());
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} }

34
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiFEPortlet.java

@ -55,8 +55,7 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
try { try {
serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext = ServiceContextFactory.getInstance(actionRequest);
} catch (PortalException e1) { } catch (PortalException e1) {
// TODO Auto-generated catch block _log.error(e1,e1);
e1.printStackTrace();
} }
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
@ -176,13 +175,16 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
List<FileAttachment> fileAttachments = new ArrayList<>(); List<FileAttachment> fileAttachments = new ArrayList<>();
try { try {
MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), // MailManagerUtil.sendMailByTemplate(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext); // "INVIO-RICHIESTA-ATTI", to, cc, ccn, null, fileAttachments,true ,true,serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext); "INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
} catch (Exception e) {
// TODO: handle exception } catch (Exception em) {
_log.error(em,em);
} }
// //
@ -281,7 +283,25 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale() ); String[] to = { richiestaAccessoAtti.getEmailRicontatto() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("num", richiestaAccessoAtti.getRichiestaAccessoAttiId());
templateVariables.put("praticaNum", richiestaAccessoAtti.getNumeroProgetto());
List<FileAttachment> fileAttachments = new ArrayList<>();
// EmailSenderUtil.sendAcceptedRequest(accessoAttiId,themeDisplay.getLocale() );
try {
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
MailManagerUtil.sendMailByTemplatName(RichiestaAccessoAtti.class.getName(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
"INVIO-RICHIESTA-ATTI", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
} catch (Exception em) {
_log.error(em,em);
}
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} }

BIN
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-bo-shared-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/lib/portos-mail-manager-shared.jar

File binario non mostrato.

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-logging.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/portos-audit-shared.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.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-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.

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

@ -109,6 +109,9 @@ public class PraticaUtil {
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
statoPraticaCode = StatoPraticaConstants.AUTORIZZATA; statoPraticaCode = StatoPraticaConstants.AUTORIZZATA;
} }
if(intPratica.isPraticaOspedaliera()){
statoPraticaCode = AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA;
}
break; break;
case StatoPraticaConstants.NON_CONFORME: case StatoPraticaConstants.NON_CONFORME:
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {

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

@ -161,9 +161,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
&& !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE); && !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE);
} }
String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica); String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica);
if(intPratica.isPraticaOspedaliera()){
statoPraticaCode = AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA;
}
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode); String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate); propertiesTemplate);

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=2932 build.number=2934
build.date=1705504502052 build.date=1714392791604
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

@ -0,0 +1,572 @@
<?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