Confronta commit

..

15 Commit

  1. 1
      .gitignore
  2. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  3. 4
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java
  4. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/build.xml
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itext-xtra-5.5.9.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itextpdf-5.5.9.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/velocity.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/xmlworker-5.5.9.jar
  11. 100
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java
  12. 107
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  13. 10
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css
  14. 735
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp
  15. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
  16. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  17. 72
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java
  18. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java
  19. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  20. 213
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  21. 32
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java
  22. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java
  23. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java
  24. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java
  25. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java
  26. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  27. 74
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java
  28. 4
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaUtil.java
  29. 24
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.classpath
  30. 36
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.project
  31. 6
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/build.xml
  32. 3
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/META-INF/MANIFEST.MF
  33. 1
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/.gitignore
  34. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar
  35. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  36. 8
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-display.xml
  37. 14
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  38. 37
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-portlet.xml
  39. 34
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/portlet.xml
  40. 74
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/persistence/PraticaValidator.java
  41. 18
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeConstants.java
  42. 110
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeMessageFactoryUtil.java
  43. 178
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/scheduler/QuarkusBridgeScheduler.java
  44. 2568
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/aui.tld
  45. 538
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld
  46. 158
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-portlet.tld
  47. 106
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-security.tld
  48. 65
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-theme.tld
  49. 4696
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-ui.tld
  50. 141
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-util.tld
  51. 3
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/web.xml
  52. 0
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/css/main.css
  53. BIN
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/icon.png
  54. 0
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/js/main.js
  55. 22
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/view.jsp
  56. 18
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/ivy.xml
  57. 15
      liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/test/integration/arquillian.xml

1
.gitignore vendored

@ -24,3 +24,4 @@ liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.tern-project liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.tern-project
*.MD5 *.MD5
service-classes

BIN
liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar vendored

File binario non mostrato.

4
liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java

@ -76,10 +76,6 @@ public class ClassLoaderComponentConfiguration extends ComponentConfiguration {
public ComponentProperties getProperties() { public ComponentProperties getProperties() {
ComponentProperties componentProperties = _getAvailableProperties(); ComponentProperties componentProperties = _getAvailableProperties();
if(componentProperties == null) {
_log.warn("No properties found for " + _componentName)
}
if (!componentProperties.hasBaseConfiguration()) { if (!componentProperties.hasBaseConfiguration()) {
throw new ConfigurationNotFoundException( throw new ConfigurationNotFoundException(
_componentName, "The base properties file was not found"); _componentName, "The base properties file was not found");

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/build.xml

@ -2,5 +2,6 @@
<!DOCTYPE project> <!DOCTYPE project>
<project name="portos-advanced-operation-portlet" basedir="." default="deploy"> <project name="portos-advanced-operation-portlet" basedir="." default="deploy">
<property name="import.shared" value="portos-report-shared,portos-bo-shared" />
<import file="../build-common-portlet.xml" /> <import file="../build-common-portlet.xml" />
</project> </project>

BIN
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itext-xtra-5.5.9.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itextpdf-5.5.9.jar

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/velocity.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/xmlworker-5.5.9.jar

File binario non mostrato.

100
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java

@ -5,26 +5,30 @@ import com.liferay.portal.kernel.exception.SystemException;
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;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.util.ArrayUtil;
import com.liferay.portal.kernel.util.DateFormatFactoryUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys; import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowConstants;
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;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
import java.util.Date;
import java.util.List;
import it.nextmind.liferay.portos.advanced.operation.util.AdvancedOperationUtil; import it.nextmind.liferay.portos.advanced.operation.util.AdvancedOperationUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
@ -32,20 +36,62 @@ public class AdvancedOperationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationPortlet.class); private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationPortlet.class);
public void cambiaDataInizioLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void deleteControlloPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L);
if (intPraticaId != 0L) {
List<ControlloPratica> controlloPraticaList =
ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
if(_log.isDebugEnabled()){
_log.debug("AdvancedOperationPortlet --- There are " + controlloPraticaList.size() +" ControlloPratica");
}
for(ControlloPratica cp : controlloPraticaList){
if(_log.isDebugEnabled()){
_log.debug("AdvancedOperationPortlet --- Cycling... ControlloPraticaID " + cp.getCompanyId()
+ " Status " + cp.getStatus());
}
if(ArrayUtil.contains(AdvancedOperationUtil.STATUS_ARRAY, cp.getStatus())){
_log.info("AdvancedOperationPortlet --- Deleting ControlloPratica " + cp.getControlloPraticaId() +
" with Status " + cp.getStatus() +" of IntPraticaId " + intPraticaId);
ControlloPraticaLocalServiceUtil.deleteControlloPratica(cp);
}
}
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void reindexPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest);
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L);
if (intPraticaId != 0L) {
_log.info("AdvancedOperationPortlet --- Reindexing fascicolo of IntPraticaId " + intPraticaId);
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId());
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void cambiaDataInizioLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest); _checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
Date dataInizioLavoriOpera = ParamUtil.getDate(actionRequest, "dataInizioLavoriOperaInput", null); Date dataInizioLavoriOpera = ParamUtil.getDate(actionRequest, "dataInizioLavoriOperaInput",
DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd"), null);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
_log.info("AdvancedOperationPortlet --- Changing DataInizioLavori on DettPraticas of IntPraticaId" + intPraticaId);
List<DettPratica> dettPraticaListWithInizioLavori = AdvancedOperationUtil.fetchDettPraticaListWithInizioLavori(intPratica); List<DettPratica> dettPraticaListWithInizioLavori = AdvancedOperationUtil.fetchDettPraticaListWithInizioLavori(intPratica);
for(DettPratica dettPratica : dettPraticaListWithInizioLavori){ for(DettPratica dettPratica : dettPraticaListWithInizioLavori){
dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera); dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera);
dettPratica.setModifiedDate(new Date()); dettPratica.setModifiedDate(new Date());
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void fixNormLavoriInProprio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void fixNormLavoriInProprio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -56,6 +102,7 @@ public class AdvancedOperationPortlet extends MVCPortlet {
boolean normLavoriInProprioFlag = ParamUtil.getBoolean(actionRequest, "normLavoriInProprioFlag"); boolean normLavoriInProprioFlag = ParamUtil.getBoolean(actionRequest, "normLavoriInProprioFlag");
List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
_log.info("AdvancedOperationPortlet --- Fixing NormLavoriInProprio flag of IntPraticaId " + intPraticaId);
for(DettPratica dettPratica : dettPraticaList){ for(DettPratica dettPratica : dettPraticaList){
if(dettPratica.getNormLavoriInProprio() == normLavoriInProprioFlag){ if(dettPratica.getNormLavoriInProprio() == normLavoriInProprioFlag){
dettPratica.setNormLavoriInProprio(!normLavoriInProprioFlag); dettPratica.setNormLavoriInProprio(!normLavoriInProprioFlag);
@ -63,16 +110,18 @@ public class AdvancedOperationPortlet extends MVCPortlet {
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
} }
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void fixCollaudoStatico(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void fixCollaudoStatico(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest); _checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
boolean collaudoStaticoFlag = ParamUtil.getBoolean(actionRequest, "collaudoStaticoFlag"); boolean collaudoStaticoFlag = ParamUtil.getBoolean(actionRequest, "collaudoStaticoFlag");
List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
_log.info("AdvancedOperationPortlet --- Fixing CollaudoStatico flag of IntPraticaId " + intPraticaId);
for(DettPratica dettPratica : dettPraticaList){ for(DettPratica dettPratica : dettPraticaList){
if(dettPratica.getCollaudoStatico() == collaudoStaticoFlag){ if(dettPratica.getCollaudoStatico() == collaudoStaticoFlag){
dettPratica.setCollaudoStatico(!collaudoStaticoFlag); dettPratica.setCollaudoStatico(!collaudoStaticoFlag);
@ -80,20 +129,28 @@ public class AdvancedOperationPortlet extends MVCPortlet {
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
} }
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void fixStatusPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void fixStatusPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest); _checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){ if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){
IntPraticaLocalServiceUtil.updateStatus(intPraticaId, WorkflowConstants.STATUS_PENDING); _log.info("AdvancedOperationPortlet --- Fixing StatusPratica (From DRAFT to PENDING) "
+ "of IntPraticaId " + intPraticaId);
intPratica.setStatus(WorkflowConstants.STATUS_PENDING);
intPratica.setModifiedDate(new Date());
IntPraticaLocalServiceUtil.updateIntPratica(intPratica);
} else { } else {
_log.info("AdvancedOperationPortlet --- Impossible operation: Fixing StatusPratica (From DRAFT to PENDING) "
+ "of IntPraticaId " + intPraticaId);
SessionErrors.add(actionRequest, "operazione-impossibile"); SessionErrors.add(actionRequest, "operazione-impossibile");
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void ripristinaPraticaVidimata(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void ripristinaPraticaVidimata(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -104,11 +161,14 @@ public class AdvancedOperationPortlet extends MVCPortlet {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){ if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
_log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> DRAFT) "
+ "with IntPraticaId " + intPraticaId);
_ripristinaPratica(intPratica, WorkflowConstants.STATUS_DRAFT); _ripristinaPratica(intPratica, WorkflowConstants.STATUS_DRAFT);
} else { } else {
SessionErrors.add(actionRequest, "operazione-impossibile"); SessionErrors.add(actionRequest, "operazione-impossibile");
throw new Exception("This Pratica is not in status=5, action RIPRISTINA is not available"); throw new Exception("This Pratica is not in status=5, action RIPRISTINA is not available");
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void ripristinaPraticaConforme(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void ripristinaPraticaConforme(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -119,11 +179,14 @@ public class AdvancedOperationPortlet extends MVCPortlet {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){ if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
_log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> APPROVED) "
+ "with IntPraticaId " + intPraticaId);
_ripristinaPratica(intPratica, WorkflowConstants.STATUS_APPROVED); _ripristinaPratica(intPratica, WorkflowConstants.STATUS_APPROVED);
} else { } else {
SessionErrors.add(actionRequest, "operazione-impossibile"); SessionErrors.add(actionRequest, "operazione-impossibile");
throw new Exception("This Pratica is not in status=5, action RIPRISTINA is not available"); throw new Exception("This Pratica is not in status=5, action RIPRISTINA is not available");
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void deleteDocPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void deleteDocPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -133,9 +196,14 @@ public class AdvancedOperationPortlet extends MVCPortlet {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
List<DocPratica> docPraticaOrfani = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId); List<DocPratica> docPraticaOrfani = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
_log.info("AdvancedOperationPortlet --- Deleting Documenti Orfani "
+ "of IntPraticaId " + intPraticaId);
for(DocPratica docPratica : docPraticaOrfani){ for(DocPratica docPratica : docPraticaOrfani){
_log.info("AdvancedOperationPortlet --- Deleting Documento Orfan " + docPratica.getDocPraticaId()
+ " of IntPraticaId " + intPraticaId);
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica); DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
} }
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
} }
public void findIntPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ public void findIntPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -158,7 +226,7 @@ public class AdvancedOperationPortlet extends MVCPortlet {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(actionRequest, actionResponse);
} }
} }
private void _checkIfUserIsCompanyAdmin(ActionRequest actionRequest) throws Exception{ private void _checkIfUserIsCompanyAdmin(ActionRequest actionRequest) throws Exception{
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
if(!PortalUtil.isCompanyAdmin(themeDisplay.getUser())){ if(!PortalUtil.isCompanyAdmin(themeDisplay.getUser())){
@ -166,11 +234,11 @@ public class AdvancedOperationPortlet extends MVCPortlet {
throw new Exception("Action permitted to CompanyAdmins only"); throw new Exception("Action permitted to CompanyAdmins only");
} }
} }
private void _ripristinaPratica(IntPratica intPratica, int status) throws PortalException, SystemException{ private void _ripristinaPratica(IntPratica intPratica, int status) throws PortalException, SystemException{
long docPraticaAnnullamentoId = intPratica.getDocPraticaAnnullamentoId(); long docPraticaAnnullamentoId = intPratica.getDocPraticaAnnullamentoId();
IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId); IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId);
IntPraticaLocalServiceUtil.updateStatus(intPratica.getIntPraticaId(), status); IntPraticaLocalServiceUtil.updateStatus(intPratica.getIntPraticaId(), status);
} }
} }

107
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java

@ -1,18 +1,28 @@
package it.nextmind.liferay.portos.advanced.operation.util; package it.nextmind.liferay.portos.advanced.operation.util;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
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;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil;
import com.liferay.portal.model.WorkflowInstanceLink;
import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
@ -20,21 +30,88 @@ import java.util.List;
public class AdvancedOperationUtil { public class AdvancedOperationUtil {
public static final int[] STATUS_ARRAY =
{WorkflowConstants.STATUS_DRAFT, WorkflowConstants.STATUS_INACTIVE, WorkflowConstants.STATUS_PENDING};
public static boolean isNotWorkflowManuallyStarted(IntPratica intPratica){
switch (intPratica.getStatoPratica()) {
case StatoPraticaConstants.VIDIMATA :
case StatoPraticaConstants.AUTORIZZATA:
case StatoPraticaConstants.CONFORME:
return true;
default:
return false;
}
}
public static boolean hasControlloPratica_ProceduraC(IntPratica intPratica){
if(Constants.PROCEDURA_C.equalsIgnoreCase(intPratica.getTipoProcedura())){
try{
long intPraticaId = intPratica.getIntPraticaId();
for(int i : STATUS_ARRAY){
List<ControlloPratica> controlloPraticas =
ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, i);
if(!controlloPraticas.isEmpty()){
return true;
}
}
} catch (SystemException e){
_log.error(e,e);
return false;
}
}
return false;
}
public static List<WorkflowTask> getListaTask(IntPratica intPratica) {
if(Validator.isNull(intPratica)){
return null;
}
try {
ControlloPratica controlloPratica = null;
List<ControlloPratica> controlloPraticaList =
ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPratica.getIntPraticaId(), intPratica.getStatus());
if(controlloPraticaList.size() > 1){
for(ControlloPratica cp : controlloPraticaList){
if(Validator.isNull(controlloPratica) || cp.getCreateDate().after(controlloPratica.getCreateDate())) {
controlloPratica = cp;
}
}
} else if(controlloPraticaList.size() == 1){
controlloPratica = controlloPraticaList.get(0);
} else {
return null;
}
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink(
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),
controlloPratica.getPrimaryKey());
List<WorkflowTask> listaTask = null;
if (workflowInstanceLink == null) {
return null;
} else {
return listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null,
workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
}
} catch (SystemException | PortalException e){
_log.error(e,e);
return null;
}
}
public static boolean isPraticaAnnullata(IntPratica intPratica){ public static boolean isPraticaAnnullata(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){ if(Validator.isNotNull(intPratica)){
return WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus(); return WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus();
} }
return false; return false;
} }
public static List<DocPratica> getDocPraticaOrfani(long intPraticaId){ public static List<DocPratica> getDocPraticaOrfani(long intPraticaId){
List<DocPratica> docPraticaOrfaniList = new ArrayList<DocPratica>(); List<DocPratica> docPraticaOrfaniList = new ArrayList<DocPratica>();
try { try {
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId); List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
for(DocPratica docPratica : docPraticaList){ for(DocPratica docPratica : docPraticaList){
if(Validator.isNull(DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()))){ if(Validator.isNull(DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()))
&& DettPratica.class.getName().equals(docPratica.getClassName())){
docPraticaOrfaniList.add(docPratica); docPraticaOrfaniList.add(docPratica);
} }
} }
@ -43,12 +120,12 @@ public class AdvancedOperationUtil {
} }
return docPraticaOrfaniList; return docPraticaOrfaniList;
} }
public static boolean hasDettPratica(long intPraticaId){ public static boolean hasDettPratica(long intPraticaId){
return !_getDettPraticaList(intPraticaId).isEmpty(); return !_getDettPraticaList(intPraticaId).isEmpty();
} }
public static boolean getNormLavoriInProprioFlag(long intPraticaId){ public static boolean getNormLavoriInProprioFlag(long intPraticaId){
List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId); List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId);
if(!dettPraticaList.isEmpty()){ if(!dettPraticaList.isEmpty()){
@ -56,7 +133,7 @@ public class AdvancedOperationUtil {
} }
return false; return false;
} }
public static boolean getCollaudoStaticoFlag(long intPraticaId){ public static boolean getCollaudoStaticoFlag(long intPraticaId){
List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId); List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId);
if(!dettPraticaList.isEmpty()){ if(!dettPraticaList.isEmpty()){
@ -64,22 +141,22 @@ public class AdvancedOperationUtil {
} }
return false; return false;
} }
public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){ public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){
return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" : "Aggiungi flag normLavoriInProprio"; return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" : "Aggiungi flag normLavoriInProprio";
} }
public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag){ public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag){
return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico" : "Aggiungi flag collaudoStatico"; return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico" : "Aggiungi flag collaudoStatico";
} }
public static boolean isStatoPraticaIN(IntPratica intPratica){ public static boolean isStatoPraticaIN(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){ if(Validator.isNotNull(intPratica)){
return "IN".equals(intPratica.getStatoPratica()); return "IN".equals(intPratica.getStatoPratica());
} }
return false; return false;
} }
public static List<DettPratica> fetchDettPraticaListWithInizioLavori(IntPratica intPratica){ public static List<DettPratica> fetchDettPraticaListWithInizioLavori(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){ if(Validator.isNotNull(intPratica)){
DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil.dynamicQuery(); DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil.dynamicQuery();
@ -94,7 +171,7 @@ public class AdvancedOperationUtil {
} }
return null; return null;
} }
public static Date fetchDataInizioLavoriOpera(IntPratica intPratica){ public static Date fetchDataInizioLavoriOpera(IntPratica intPratica){
List<DettPratica> dettPraticaListWithInizioLavori = fetchDettPraticaListWithInizioLavori(intPratica); List<DettPratica> dettPraticaListWithInizioLavori = fetchDettPraticaListWithInizioLavori(intPratica);
if(!dettPraticaListWithInizioLavori.isEmpty()){ if(!dettPraticaListWithInizioLavori.isEmpty()){
@ -102,18 +179,18 @@ public class AdvancedOperationUtil {
} }
return null; return null;
} }
private static List<DettPratica> _getDettPraticaList(long intPraticaId){ private static List<DettPratica> _getDettPraticaList(long intPraticaId){
List<DettPratica> dettPraticaList = new ArrayList<DettPratica>(); List<DettPratica> dettPraticaList = new ArrayList<DettPratica>();
try { try {
dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
} catch (SystemException e) { } catch (SystemException e) {
_log.error(e,e); _log.error(e,e);
} }
return dettPraticaList; return dettPraticaList;
} }
private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class); private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class);
} }

10
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css

@ -0,0 +1,10 @@
.title-text{
font-weight: bold;
}
#impersonaSoggettiBtn{
cursor: pointer;
}

735
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp

@ -1,3 +1,25 @@
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="javax.portlet.PortletMode"%>
<%@page import="com.liferay.portal.util.PortletKeys"%>
<%@page import="javax.portlet.PortletRequest"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.model.Group"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.GroupConstants"%>
<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.DateFormatFactoryUtil"%> <%@page import="com.liferay.portal.kernel.util.DateFormatFactoryUtil"%>
<%@page import="java.util.Date"%> <%@page import="java.util.Date"%>
<%@page import="com.liferay.portal.util.PortalUtil"%> <%@page import="com.liferay.portal.util.PortalUtil"%>
@ -66,282 +88,475 @@
<aui:row style="margin-top: 10px" id="praticaAdminDiv"> <aui:row style="margin-top: 10px" id="praticaAdminDiv">
<aui:row id="praticaRecapDiv"> <aui:row id="praticaRecapDiv">
<aui:row> <aui:row>
<liferay-security:doAsURL
doAsUserId="<%= intPratica.getUserId() %>"
var="impersonateUserURL">
</liferay-security:doAsURL>
<aui:col span="3"> <aui:col span="3">
<p style="font-size: 30px; margin: 20px 0;"> <p style="font-size: 30px; margin: 20px 0;">
<b>Pratica:</b> <%= intPraticaId %> <b>Pratica:</b> <%= intPraticaId %>
<liferay-ui:icon
image="impersonate_user"
target="_blank"
url="<%= impersonateUserURL %>">
</liferay-ui:icon>
</p> </p>
</aui:col> </aui:col>
</aui:row> </aui:row>
<aui:row> <aui:row>
<aui:col span="2"> <div class="module-group">
<p><b>Numero Progetto:</b> <%= intPratica.getNumeroProgetto() %></p> <liferay-ui:panel title="DETTAGLI" collapsible="false" extended="true">
</aui:col> <aui:row>
<aui:col span="2"> <aui:col span="2">
<p><b>Username:</b> <%= intPratica.getUserName() %></p> <p><b>Numero Progetto:</b> <%= intPratica.getNumeroProgetto() %></p>
</aui:col> </aui:col>
<aui:col span="2"> <aui:col span="2">
<p><b>Tipo Pratica:</b> <%= intPratica.getTipoPratica() %></p> <p><b>Username:</b> <%= intPratica.getUserName() %></p>
</aui:col> </aui:col>
<aui:col span="2"> <aui:col span="2">
<p><b>ID Territorio:</b> <%= intPratica.getTerritorioId() %></p> <p><b>Tipo Pratica:</b> <%= intPratica.getTipoPratica() %></p>
</aui:col> </aui:col>
</aui:row> <aui:col span="2">
<aui:row> <p><b>ID Territorio:</b> <%= intPratica.getTerritorioId() %></p>
<aui:col span="2"> </aui:col>
<p><b>Tipo Procedura:</b> <%= intPratica.getTipoProcedura() %></p> </aui:row>
</aui:col> <aui:row>
<aui:col span="2"> <aui:col span="2">
<p><b>Stato Pratica:</b> <%= intPratica.getStatoPratica() %></p> <p><b>Tipo Procedura:</b> <%= intPratica.getTipoProcedura() %></p>
</aui:col> </aui:col>
<aui:col span="2"> <aui:col span="2">
<p><b>Validata:</b> <%= intPratica.getValidata() %></p> <p><b>Stato Pratica:</b> <%= intPratica.getStatoPratica() %></p>
</aui:col> </aui:col>
<aui:col span="2"> <aui:col span="2">
<p><b>Esito Controllo:</b> <%= intPratica.getEsitoControllo() %></p> <p><b>Validata:</b> <%= intPratica.getValidata() %></p>
</aui:col> </aui:col>
</aui:row> <aui:col span="2">
<aui:row> <p><b>Esito Controllo:</b> <%= intPratica.getEsitoControllo() %></p>
<aui:col span="2"> </aui:col>
<p><b>Status:</b> <%= intPratica.getStatus() %></p> </aui:row>
</aui:col> <aui:row>
</aui:row> <aui:col span="2">
<% <p><b>Status:</b> <%= intPratica.getStatus() %></p>
Date dataInizioLavoriOpera = AdvancedOperationUtil.fetchDataInizioLavoriOpera(intPratica); </aui:col>
if(Validator.isNotNull(dataInizioLavoriOpera)){ </aui:row>
%> <%
<aui:row> Date dataInizioLavoriOpera = AdvancedOperationUtil.fetchDataInizioLavoriOpera(intPratica);
<liferay-portlet:actionURL if(Validator.isNotNull(dataInizioLavoriOpera)){
name="cambiaDataInizioLavori" %>
var="cambiaDataInizioLavoriURL" > <aui:row>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <liferay-portlet:actionURL
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/> name="cambiaDataInizioLavori"
</liferay-portlet:actionURL> var="cambiaDataInizioLavoriURL" >
<% <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
String functionDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler modificare la DATA di INIZIO LAVORI?')"; <liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
%> </liferay-portlet:actionURL>
<aui:form action="<%= cambiaDataInizioLavoriURL %>" method="post" name="cambiaDataInizioLavori"> <%
<div style="display:flex;"> String functionDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler modificare la DATA di INIZIO LAVORI?')";
<aui:input %>
name="dataInizioLavoriOperaInput" <aui:form action="<%= cambiaDataInizioLavoriURL %>" method="post" name="cambiaDataInizioLavori">
label="Data inizio Lavori Opera" <div style="display:flex;">
inlineLabel="left" <p><b>Data inizio Lavori Opera:</b></p>
type="date" <aui:input
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataInizioLavoriOpera) %>'> name="dataInizioLavoriOperaInput"
</aui:input> label=""
<div> inlineLabel="left"
type="date"
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataInizioLavoriOpera) %>'>
</aui:input>
<div>
<aui:button
name="cambiaDataInizioLavoriBtn"
cssClass="btn-primary"
type="button"
value="Cambia"
onClick='<%= functionDataInizio %>'/>
</div>
</div>
</aui:form>
</aui:row>
<% } %>
<aui:row>
<div style="display:flex;">
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){
boolean normLavoriInProprioFlag = AdvancedOperationUtil.getNormLavoriInProprioFlag(intPraticaId);
%>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="fixNormLavoriInProprio"
var="fixNormLavoriInProprioURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="normLavoriInProprioFlag" value="<%= String.valueOf(normLavoriInProprioFlag) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionLavori = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixLavoriInEconomia','Sei sicuro di voler cambiare i flag LAVORI IN ECONOMIA di questa pratica?')";
%>
<aui:form action="<%= fixNormLavoriInProprioURL %>" method="post" name="fixLavoriInEconomia">
<aui:button
name="normLavoriInProprioBtn"
cssClass="btn-primary"
type="button"
value="<%= AdvancedOperationUtil.getLavoriInEconomiaBtnLabel(normLavoriInProprioFlag) %>"
onClick='<%= functionLavori %>'/>
</aui:form>
</div>
<% } %>
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){
boolean collaudoStaticoFlag = AdvancedOperationUtil.getCollaudoStaticoFlag(intPraticaId);
%>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="fixCollaudoStatico"
var="fixCollaudoStaticoURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="collaudoStaticoFlag" value="<%= String.valueOf(collaudoStaticoFlag) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionCollaudoStatico = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixCollaudoStatico','Sei sicuro di voler cambiare i flag COLLAUDO STATICO di questa pratica?')";
%>
<aui:form action="<%= fixCollaudoStaticoURL %>" method="post" name="fixCollaudoStatico">
<aui:button
name="fixCollaudoStaticoBtn"
cssClass="btn-primary"
type="button"
value="<%= AdvancedOperationUtil.getCollaudoStaticoBtnLabel(collaudoStaticoFlag) %>"
onClick='<%= functionCollaudoStatico %>'/>
</aui:form>
</div>
<% } %>
<% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="fixStatusPratica"
var="fixStatusPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionStatus = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixStatusPratica','Sei sicuro di voler modificare lo status di questa pratica?')";
%>
<aui:form action="<%= fixStatusPraticaURL %>" method="post" name="fixStatusPratica">
<aui:button
type="button"
cssClass="btn-primary"
name="fixStatusPraticaBtn"
onClick='<%= functionStatus %>'
value="Fixa lo STATUS"
>
</aui:button>
</aui:form>
</div>
<% } %>
<% if(AdvancedOperationUtil.hasControlloPratica_ProceduraC(intPratica) &&
AdvancedOperationUtil.isNotWorkflowManuallyStarted(intPratica)){ %>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="deleteControlloPratica"
var="deleteControlloPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionControlloPratica = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteControlloPratica','Sei sicuro di voler eliminare questo ControlloPratica ed il relativo WorkFlow?')";
%>
<aui:form action="<%= deleteControlloPraticaURL %>" method="post" name="deleteControlloPratica">
<aui:button
type="button"
cssClass="btn-primary"
name="deleteControlloPraticaBtn"
onClick='<%= functionControlloPratica %>'
value="Elimina WorkFlow"
>
</aui:button>
</aui:form>
</div>
<% } %>
<% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="ripristinaPraticaVidimata"
var="ripristinaPraticaVidimataURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')";
%>
<aui:form action="<%= ripristinaPraticaVidimataURL %>" method="post" name="ripristinaPraticaVidimata">
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaVidimataBtn"
onClick='<%= functionRipristinaVidimata %>'
value="Ripristina come VIDIMATA"
>
</aui:button>
</aui:form>
</div>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="ripristinaPraticaConforme"
var="ripristinaPraticaConformeURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaConforme = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaConforme','Sei sicuro di voler ripristinare questa pratica come AUTORIZZATA/CONFORME?')";
%>
<aui:form action="<%= ripristinaPraticaConformeURL %>" method="post" name="ripristinaPraticaConforme">
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaConformeBtn"
onClick='<%= functionRipristinaConforme %>'
value="Ripristina come AUTORIZZATA/CONFORME"
>
</aui:button>
</aui:form>
</div>
<% } %>
</div>
</aui:row>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel title="REINDICIZZAZIONE" extended="true" collapsible="false">
<aui:row>
<liferay-portlet:actionURL
name="reindexPratica"
var="reindexPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionReindex = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"reindexPratica','Sei sicuro di voler reindicizzare questa pratica?')";
%>
<aui:form action="<%= reindexPraticaURL %>" method="post" name="reindexPratica">
<aui:button <aui:button
name="cambiaDataInizioLavoriBtn"
cssClass="btn-primary"
type="button" type="button"
value="Cambia" cssClass="btn-primary"
onClick='<%= functionDataInizio %>'/> name="reindexPraticaBtn"
onClick='<%= functionReindex %>'
value="Reindicizza Pratica"
>
</aui:button>
</aui:form>
</aui:row>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel title="IMPERSONAMENTO" extended="true" collapsible="false">
<aui:row>
<div style="display:flex;">
<liferay-security:doAsURL
doAsUserId="<%= intPratica.getUserId() %>"
var="impersonateUserURL">
</liferay-security:doAsURL>
<div style=" margin-right: 15px;">
<p><b>Impersona titolare:</b></p>
</div>
<liferay-ui:icon
image="impersonate_user"
target="_blank"
url="<%= impersonateUserURL %>">
</liferay-ui:icon>
</div> </div>
</div> </aui:row>
</aui:form> <% if(SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) > 1){ %>
</aui:row> <aui:row>
<% } %> <div style="display:flex;">
<aui:row> <div style=" margin-right: 15px;">
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){ <p><b>Impersona soggetti:</b></p>
boolean normLavoriInProprioFlag = AdvancedOperationUtil.getNormLavoriInProprioFlag(intPraticaId); </div>
%> <liferay-ui:icon
<aui:col span="3"> id="impersonaSoggettiBtn"
<liferay-portlet:actionURL image="team_icon"
name="fixNormLavoriInProprio" message="Visualizza Soggetti"
var="fixNormLavoriInProprioURL" > target="_blank"
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> >
<liferay-portlet:param name="normLavoriInProprioFlag" value="<%= String.valueOf(normLavoriInProprioFlag) %>"/> </liferay-ui:icon>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/> </div>
</liferay-portlet:actionURL> </aui:row>
<% <aui:row>
String functionLavori = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixLavoriInEconomia','Sei sicuro di voler cambiare i flag LAVORI IN ECONOMIA di questa pratica?')"; <div id="sc-soggetti-da-impersonare" class="hide">
%> <liferay-ui:search-container emptyResultsMessage="Nessun soggetto disponibile">
<aui:form action="<%= fixNormLavoriInProprioURL %>" method="post" name="fixLavoriInEconomia"> <liferay-ui:search-container-results
<aui:button results="<%= SoggettoLocalServiceUtil.findByIntPratica(intPraticaId) %>"
name="normLavoriInProprioBtn" total="<%= SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) %>"
cssClass="btn-primary" />
type="button" <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Soggetto" modelVar="soggetto">
value="<%= AdvancedOperationUtil.getLavoriInEconomiaBtnLabel(normLavoriInProprioFlag) %>" <liferay-security:doAsURL
onClick='<%= functionLavori %>'/> doAsUserId="<%= soggetto.getUserId() %>"
</aui:form> var="impersonateSoggettoURL">
</aui:col> </liferay-security:doAsURL>
<% } %> <liferay-ui:search-container-column-text name="RUOLO">
<%= soggetto.getFullTipologiaSoggetto() %>
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){ </liferay-ui:search-container-column-text>
boolean collaudoStaticoFlag = AdvancedOperationUtil.getCollaudoStaticoFlag(intPraticaId); <liferay-ui:search-container-column-text name="DENOMINAZIONE">
%> <%= soggetto.getDescrizioneCompleta() %>
<aui:col span="3"> </liferay-ui:search-container-column-text>
<liferay-portlet:actionURL <liferay-ui:search-container-column-text name="AGGIUNTO DA">
name="fixCollaudoStatico" <%
var="fixCollaudoStaticoURL" > DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId());
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> if (adding != null) {
<liferay-portlet:param name="collaudoStaticoFlag" value="<%= String.valueOf(collaudoStaticoFlag) %>"/> out.print(adding.getFullDescription());
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/> }
</liferay-portlet:actionURL> %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="IMPERSONA" cssClass="text-center text-nowrap">
<liferay-ui:icon
image="impersonate_user"
message="Impersona Soggetto"
target="_blank"
url="<%= impersonateSoggettoURL %>"
>
</liferay-ui:icon>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</aui:row>
<% } %>
</liferay-ui:panel>
</div>
<div class="module-group">
<% <%
String functionCollaudoStatico = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixCollaudoStatico','Sei sicuro di voler cambiare i flag COLLAUDO STATICO di questa pratica?')"; List<WorkflowTask> listaTask = AdvancedOperationUtil.getListaTask(intPratica);
if(Validator.isNotNull(listaTask) && !listaTask.isEmpty()){
%> %>
<aui:form action="<%= fixCollaudoStaticoURL %>" method="post" name="fixCollaudoStatico"> <liferay-ui:panel title="GESTIONE ATTIVITÀ" extended="true" collapsible="false">
<aui:button <aui:row>
name="fixCollaudoStaticoBtn" <div style="display:flex;">
cssClass="btn-primary" <div style=" margin-right: 15px;">
type="button" <p><b>Gestisci ultima attività:</b></p>
value="<%= AdvancedOperationUtil.getCollaudoStaticoBtnLabel(collaudoStaticoFlag) %>" </div>
onClick='<%= functionCollaudoStatico %>'/> <%
</aui:form> Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL);
</aui:col> long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true);
<% } %> PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,
controlPanelPlid, PortletRequest.RENDER_PHASE);
<% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %> workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task");
<aui:col span="3"> workflowTaskURL.setParameter("workflowTaskId", String.valueOf(listaTask.get(0).getWorkflowTaskId()));
<liferay-portlet:actionURL workflowTaskURL.setPortletMode(PortletMode.VIEW);
name="fixStatusPratica" workflowTaskURL.setWindowState(LiferayWindowState.POP_UP);
var="fixStatusPraticaURL" > %>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info">
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/> <liferay-ui:icon
</liferay-portlet:actionURL> useDialog="true"
image="action_right"
message="Gestisci Attività"
url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>'
/>
</div>
</div>
</aui:row>
<%
if(intPratica.getStatusByUserId() != 0L ){
User tecnico = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (Validator.isNotNull(tecnico)) {
%>
<aui:row>
<div style="display:flex;">
<liferay-security:doAsURL
doAsUserId="<%= tecnico.getUserId() %>"
var="impersonateIstruttoreURL">
</liferay-security:doAsURL>
<div style=" margin-right: 15px;">
<p><b>Impersona Istruttore:</b></p>
</div>
<liferay-ui:icon
image="impersonate_user"
target="_blank"
message="Impersona Istruttore"
url="<%= impersonateIstruttoreURL %>">
</liferay-ui:icon>
</div>
</aui:row>
<%
}
}
%>
</liferay-ui:panel>
<% <%
String functionStatus = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixStatusPratica','Sei sicuro di voler modificare lo status di questa pratica?')"; }
%> %>
<aui:form action="<%= fixStatusPraticaURL %>" method="post" name="fixStatusPratica"> </div>
<aui:button </aui:row>
type="button" <aui:row id="docPraticaDiv">
cssClass="btn-primary" <div class="module-group">
name="fixStatusPraticaBtn" <liferay-ui:panel title="DOCUMENTI ORFANI" collapsible="false" extended="true">
onClick='<%= functionStatus %>' <%
value="Fixa lo STATUS" List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
>
</aui:button>
</aui:form>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %>
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaVidimata"
var="ripristinaPraticaVidimataURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')";
%> %>
<aui:form action="<%= ripristinaPraticaVidimataURL %>" method="post" name="ripristinaPraticaVidimata"> <h2>Documenti Totali: <%= docPraticaList.size() %></h2>
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaVidimataBtn"
onClick='<%= functionRipristinaVidimata %>'
value="Ripristina come VIDIMATA"
>
</aui:button>
</aui:form>
</aui:col>
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaConforme"
var="ripristinaPraticaConformeURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<% <%
String functionRipristinaConforme = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaConforme','Sei sicuro di voler ripristinare questa pratica come AUTORIZZATA/CONFORME?')"; List<DocPratica> docPraticaOrfaniList = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
if(!docPraticaOrfaniList.isEmpty()){
%> %>
<aui:form action="<%= ripristinaPraticaConformeURL %>" method="post" name="ripristinaPraticaConforme"> <liferay-portlet:actionURL
<aui:button name="deleteDocPratica"
type="button" var="deleteDocPraticaURL" >
cssClass="btn-primary" <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
name="ripristinaPraticaConformeBtn" <liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
onClick='<%= functionRipristinaConforme %>' </liferay-portlet:actionURL>
value="Ripristina come AUTORIZZATA/CONFORME"
>
</aui:button>
</aui:form>
</aui:col>
<% } %>
</aui:row>
</aui:row>
<aui:row id="docPraticaDiv">
<%
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
%>
<h2>Documenti Totali: <%= docPraticaList.size() %></h2>
<%
List<DocPratica> docPraticaOrfaniList = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
if(!docPraticaOrfaniList.isEmpty()){
%>
<liferay-portlet:actionURL
name="deleteDocPratica"
var="deleteDocPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<aui:row>
<h2>Documenti orfani di DettPratica: <%= docPraticaOrfaniList.size() %></h2>
<aui:row>
<aui:col span="2">
<h3>DlFileEntryId</h3>
</aui:col>
<aui:col span="2">
<h3>docPraticaId</h3>
</aui:col>
<aui:col span="2">
<h3>dettPraticaId</h3>
</aui:col>
<aui:col span="6">
<h3>FileName</h3>
</aui:col>
</aui:row>
<%
for(DocPratica docPratica : docPraticaOrfaniList){
if(Validator.isNotNull(docPratica)){
%>
<aui:row> <aui:row>
<aui:col span="2"> <h2>Documenti orfani di DettPratica: <%= docPraticaOrfaniList.size() %></h2>
<p><%= docPratica.getDlFileEntryId() %></p> <aui:row>
</aui:col> <aui:col span="2">
<aui:col span="2"> <h3>DlFileEntryId</h3>
<p><%= docPratica.getDocPraticaId() %></p> </aui:col>
</aui:col> <aui:col span="2">
<aui:col span="2"> <h3>docPraticaId</h3>
<p><%= docPratica.getClassPk() %></p> </aui:col>
</aui:col> <aui:col span="2">
<aui:col span="6"> <h3>dettPraticaId</h3>
<p><%= docPratica.getFileName() %></p> </aui:col>
</aui:col> <aui:col span="6">
<h3>FileName</h3>
</aui:col>
</aui:row>
<%
for(DocPratica docPratica : docPraticaOrfaniList){
if(Validator.isNotNull(docPratica)){
%>
<aui:row>
<aui:col span="2">
<p><%= docPratica.getDlFileEntryId() %></p>
</aui:col>
<aui:col span="2">
<p><%= docPratica.getDocPraticaId() %></p>
</aui:col>
<aui:col span="2">
<p><%= docPratica.getClassPk() %></p>
</aui:col>
<aui:col span="6">
<p><%= docPratica.getFileName() %></p>
</aui:col>
</aui:row>
<%
}
}
%>
<%
String functionEliminaDoc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteDocPratica','Sei sicuro di voler eliminare tutti i documenti?')";
%>
<aui:form action="<%= deleteDocPraticaURL %>" method="post" name="deleteDocPratica">
<aui:button-row>
<aui:button
type="button"
name="deleteDocPraticaBtn"
cssClass="btn-primary"
onClick='<%= functionEliminaDoc %>'
value="Elimina tutti">
</aui:button>
</aui:button-row>
</aui:form>
</aui:row> </aui:row>
</liferay-ui:panel>
</div>
<% <%
}
} }
%> %>
<% </aui:row>
String functionEliminaDoc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteDocPratica','Sei sicuro di voler eliminare tutti i documenti?')";
%>
<aui:form action="<%= deleteDocPraticaURL %>" method="post" name="deleteDocPratica">
<aui:button-row>
<aui:button
type="button"
name="deleteDocPraticaBtn"
cssClass="btn-primary"
onClick='<%= functionEliminaDoc %>'
value="Elimina tutti">
</aui:button>
</aui:button-row>
</aui:form>
</aui:row>
<%
}
%>
</aui:row> </aui:row>
</aui:row> </aui:row>
<% } %> <% } %>
@ -357,6 +572,18 @@
<aui:script use="event-valuechange,aui-modal,aui-io-request"> <aui:script use="event-valuechange,aui-modal,aui-io-request">
<% if(Validator.isNotNull(intPratica)){ %>
A.one('#impersonaSoggettiBtn').on('click', function(){
var soggettoDiv = A.one('#sc-soggetti-da-impersonare');
if(soggettoDiv.hasClass('hide')){
soggettoDiv.show();
} else {
soggettoDiv.hide();
}
});
<% } %>
A.one('#<portlet:namespace />intPraticaId').on('valuechange', function(e){ A.one('#<portlet:namespace />intPraticaId').on('valuechange', function(e){
if(e.newVal <= 0 ){ if(e.newVal <= 0 ){
A.one('#<portlet:namespace />numeroProgetto').attr('disabled', false); A.one('#<portlet:namespace />numeroProgetto').attr('disabled', false);

15
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="portos-bo-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/service"/>
<dependent-module archiveName="portos-kaleo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="portos-mail-manager-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="portos-bo-portlet"/>
<property name="java-output-path" value="/portos-bo-portlet/docroot/WEB-INF/classes"/>
</wb-module>
</project-modules>

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

File binario non mostrato.

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

@ -161,43 +161,37 @@ public class MailUtil {
intPraticaId = parereGeologo.getIntPraticaId(); intPraticaId = parereGeologo.getIntPraticaId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica); User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica);
if(tecnicoIstruttore != null){ _log.info("email tecnico istruttore=" + tecnicoIstruttore.getEmailAddress());
_log.info("email tecnico istruttore=" + tecnicoIstruttore.getEmailAddress()); String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] to = { tecnicoIstruttore.getEmailAddress() }; String[] ccn = new String[0];
String[] cc = new String[0]; // recupero dati
String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK;
// recupero dati if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
String tipoPratica = StringPool.BLANK; tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Risposta a Richiesta Parere Geologo");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologoId;
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables,
null, serviceContext);
} else {
_log.warn("invioNotificaIstruttoreByGeologo - Tecnico istruttore mancante per pratica id="
+ intPraticaId);
} }
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Risposta a Richiesta Parere Geologo");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologoId;
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables,
null, serviceContext);
} catch (Exception e) { } catch (Exception e) {
_log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id=" _log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id="
+ intPraticaId, e); + intPraticaId, e);
@ -254,10 +248,8 @@ public class MailUtil {
User istruttoreUser = null; User istruttoreUser = null;
if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) {
istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
if(istruttoreUser != null){ _log.info("istruttore pratica id=" + intPratica.getIntPraticaId() + ":" + istruttoreUser.getScreenName()
_log.info("istruttore pratica id=" + intPratica.getIntPraticaId() + ":" + istruttoreUser.getScreenName() + " " + istruttoreUser.getEmailAddress());
+ " " + istruttoreUser.getEmailAddress());
}
} }
return istruttoreUser; return istruttoreUser;
} }

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

@ -256,11 +256,9 @@ public class WorkflowUtil {
ControlloPratica controlloPratica) throws PortalException, SystemException { ControlloPratica controlloPratica) throws PortalException, SystemException {
WorkflowTask workflowTask = getLastTask(companyId, groupId, null, controlloPratica); WorkflowTask workflowTask = getLastTask(companyId, groupId, null, controlloPratica);
if(workflowTask != null) { Map<String, Serializable> workflowContext = getWorkflowContext(controlloPratica);
Map<String, Serializable> workflowContext = getWorkflowContext(controlloPratica); WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, assegnatoreUserId,
WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, assegnatoreUserId, workflowTask.getWorkflowTaskId(), istruttoreId, StringPool.BLANK, null, workflowContext);
workflowTask.getWorkflowTaskId(), istruttoreId, StringPool.BLANK, null, workflowContext);
}
} }
public static Map<String, Serializable> getWorkflowContext(ControlloPratica controlloPratica) public static Map<String, Serializable> getWorkflowContext(ControlloPratica controlloPratica)

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java

@ -1089,9 +1089,7 @@ public class ManutenzioneDatabase {
try { try {
instance = WorkflowInstanceManagerUtil.getWorkflowInstance(link.getCompanyId(), instance = WorkflowInstanceManagerUtil.getWorkflowInstance(link.getCompanyId(),
link.getWorkflowInstanceId()); link.getWorkflowInstanceId());
} catch (PortalException e) { } catch (PortalException e) {}
_log.error(e, e);
}
if (Validator.isNull(instance)) { if (Validator.isNull(instance)) {
WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(link); WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(link);
} else { } else {

213
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java

@ -726,15 +726,13 @@ public class SismicaUtil {
+ pratica.getNumeroProgetto() + ": " + e2.getMessage()); + pratica.getNumeroProgetto() + ": " + e2.getMessage());
} }
} }
if(controllo != null){ controllo.setStatus(WorkflowConstants.STATUS_APPROVED);
controllo.setStatus(WorkflowConstants.STATUS_APPROVED); AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(),
AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), "Attestazione di deposito progetto", new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
"Attestazione di deposito progetto", new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, fileEntryIdTemplate, dettPratica.getDettPraticaId(),
StatoPraticaConstants.CONFORME, fileEntryIdTemplate, dettPratica.getDettPraticaId(), DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext);
DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext); pratica.setStatoPratica(StatoPraticaConstants.CONFORME);
pratica.setStatoPratica(StatoPraticaConstants.CONFORME); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
IntPraticaLocalServiceUtil.updateIntPratica(pratica);
}
} }
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
@ -960,7 +958,7 @@ public class SismicaUtil {
if (tokens.contains(controllo.getControlloPraticaId())) if (tokens.contains(controllo.getControlloPraticaId()))
tokenCount++; tokenCount++;
} }
if (0 == tokenCount && Validator.isNotNull(last)) { if (0 == tokenCount) {
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(last.getCompanyId()); serviceContext.setCompanyId(last.getCompanyId());
serviceContext.setScopeGroupId(last.getGroupId()); serviceContext.setScopeGroupId(last.getGroupId());
@ -1268,56 +1266,53 @@ public class SismicaUtil {
public static List<String> resetFirme(long companyId, String numeroProgetto) throws SystemException, public static List<String> resetFirme(long companyId, String numeroProgetto) throws SystemException,
PortalException { PortalException {
try{
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
if (Validator.isNull(numeroProgetto)) { if (Validator.isNull(numeroProgetto)) {
esito.addAll(firmeBloccate(companyId)); esito.addAll(firmeBloccate(companyId));
} else { } else {
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
ControlloPratica controllo = getLastControlloPratica(pratica.getIntPraticaId()); ControlloPratica controllo = getLastControlloPratica(pratica.getIntPraticaId());
KaleoInstanceToken instanceToken = findInstanceToken(controllo.getControlloPraticaId()); KaleoInstanceToken instanceToken = findInstanceToken(controllo.getControlloPraticaId());
if (Validator.isNotNull(instanceToken)) { if (Validator.isNotNull(instanceToken)) {
esitoLog(esito, "Trovato KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId() esitoLog(esito, "Trovato KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId()
+ ", currentKaleoNodeName = \"" + instanceToken.getCurrentKaleoNodeName() + StringPool.QUOTE); + ", currentKaleoNodeName = \"" + instanceToken.getCurrentKaleoNodeName() + StringPool.QUOTE);
if (instanceToken.getCurrentKaleoNodeName().equalsIgnoreCase("signal_ff")) { if (instanceToken.getCurrentKaleoNodeName().equalsIgnoreCase("signal_ff")) {
List<KaleoTaskInstanceToken> taskInstanceTokens = findTaskInstanceTokens(instanceToken List<KaleoTaskInstanceToken> taskInstanceTokens = findTaskInstanceTokens(instanceToken
.getKaleoInstanceTokenId()); .getKaleoInstanceTokenId());
esitoLog(esito, "Trovati " + taskInstanceTokens.size() + " KaleoTaskInstanceToken"); esitoLog(esito, "Trovati " + taskInstanceTokens.size() + " KaleoTaskInstanceToken");
List<KaleoTaskAssignmentInstance> taskAssignmentInstances = findTaskAssignmentInstances(instanceToken List<KaleoTaskAssignmentInstance> taskAssignmentInstances = findTaskAssignmentInstances(instanceToken
.getKaleoInstanceId()); .getKaleoInstanceId());
esitoLog(esito, "Trovati " + taskAssignmentInstances.size() + " KaleoTaskAssignmentInstance"); esitoLog(esito, "Trovati " + taskAssignmentInstances.size() + " KaleoTaskAssignmentInstance");
KaleoTaskInstanceToken taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 1); KaleoTaskInstanceToken taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 1);
KaleoTaskAssignmentInstance taskAssignmentInstance = taskAssignmentInstances KaleoTaskAssignmentInstance taskAssignmentInstance = taskAssignmentInstances
.get(taskAssignmentInstances.size() - 1); .get(taskAssignmentInstances.size() - 1);
esitoLog(esito, esitoLog(esito,
"Cancello KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); "Cancello KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId());
KaleoTaskInstanceTokenLocalServiceUtil.deleteKaleoTaskInstanceToken(taskInstanceToken); KaleoTaskInstanceTokenLocalServiceUtil.deleteKaleoTaskInstanceToken(taskInstanceToken);
esitoLog( esitoLog(
esito, esito,
"Cancello KaleoTaskAssignmentInstance " "Cancello KaleoTaskAssignmentInstance "
+ taskAssignmentInstance.getKaleoTaskAssignmentInstanceId()); + taskAssignmentInstance.getKaleoTaskAssignmentInstanceId());
KaleoTaskAssignmentInstanceLocalServiceUtil KaleoTaskAssignmentInstanceLocalServiceUtil
.deleteKaleoTaskAssignmentInstance(taskAssignmentInstance); .deleteKaleoTaskAssignmentInstance(taskAssignmentInstance);
taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 2); taskInstanceToken = taskInstanceTokens.get(taskInstanceTokens.size() - 2);
esitoLog(esito, esitoLog(esito,
"Aggiorno KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId()); "Aggiorno KaleoTaskInstanceToken " + taskInstanceToken.getKaleoTaskInstanceTokenId());
taskInstanceToken.setCompleted(false); taskInstanceToken.setCompleted(false);
taskInstanceToken.setCompletionUserId(0); taskInstanceToken.setCompletionUserId(0);
taskInstanceToken.setCompletionDate(null); taskInstanceToken.setCompletionDate(null);
KaleoTaskInstanceTokenLocalServiceUtil.updateKaleoTaskInstanceToken(taskInstanceToken); KaleoTaskInstanceTokenLocalServiceUtil.updateKaleoTaskInstanceToken(taskInstanceToken);
esitoLog(esito, "Aggiorno KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId()); esitoLog(esito, "Aggiorno KaleoInstanceToken " + instanceToken.getKaleoInstanceTokenId());
instanceToken.setCurrentKaleoNodeId(21639); instanceToken.setCurrentKaleoNodeId(21639);
instanceToken.setCurrentKaleoNodeName("Esito"); instanceToken.setCurrentKaleoNodeName("Esito");
KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken); KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken);
}
} }
} }
}catch(Exception e){
_log.error(e, e);
} }
return esito; return esito;
} }
@ -1457,22 +1452,18 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
_log.error(e,e);
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); // _log.info(e.getClass() + ": " + e.getMessage());
}
if(Validator.isNotNull(fileEntry)){
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1508,14 +1499,10 @@ public class SismicaUtil {
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {}
_log.error(e,e); corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
} + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
if(Validator.isNotNull(fileEntry)){ + StringPool.SPACE + documento.getPrimaryKey());
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
}
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1551,14 +1538,10 @@ public class SismicaUtil {
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase());
} catch (Exception e) { } catch (Exception e) {}
_log.error(e,e); corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
} + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
if(Validator.isNotNull(fileEntry)){ + StringPool.SPACE + documento.getPrimaryKey());
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
}
} }
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) {
@ -1566,28 +1549,20 @@ public class SismicaUtil {
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio());
} catch (Exception e) { } catch (Exception e) {}
_log.error(e,e); corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
} + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
if(Validator.isNotNull(fileEntry)){ + StringPool.SPACE + documento.getPrimaryKey());
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
}
} }
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdProtocollo() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryIdProtocollo() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo());
} catch (Exception e) { } catch (Exception e) {}
_log.error(e,e); corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
} + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
if(Validator.isNotNull(fileEntry)){ + StringPool.SPACE + documento.getPrimaryKey());
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
}
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1624,13 +1599,11 @@ public class SismicaUtil {
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); // _log.info(e.getClass() + ": " + e.getMessage());
}
if(Validator.isNotNull(fileEntry){
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1667,13 +1640,11 @@ public class SismicaUtil {
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getDlFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getDlFileEntryId());
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); // _log.info(e.getClass() + ": " + e.getMessage());
}
if(Validator.isNotNull(fileEntry)){
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1710,13 +1681,11 @@ public class SismicaUtil {
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); // _log.info(e.getClass() + ": " + e.getMessage());
}
if(Validator.isNotNull(fileEntry)){
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
} }
inizio += SLICE; inizio += SLICE;
@ -1753,13 +1722,11 @@ public class SismicaUtil {
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {
_log.error(e,e); // _log.info(e.getClass() + ": " + e.getMessage());
}
if(Validator.isNotNull(fileEntry)){
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey());
} }
} }
inizio += SLICE; inizio += SLICE;

32
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java

@ -134,23 +134,21 @@ public class SorteggioPraticaUtil {
if (Validator.isNull(dettPratica)) { if (Validator.isNull(dettPratica)) {
dettPratica =DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica =DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId);
} }
if(Validator.isNotNull(dettPratica){ _log.info("Pratica " + pratica.getNumeroProgetto() + " id " + pratica.getIntPraticaId()
_log.info("Pratica " + pratica.getNumeroProgetto() + " id " + pratica.getIntPraticaId() + " dettPratica " + (dettPratica == null ? 0 : dettPratica.getDettPraticaId()));
+ " dettPratica " + (dettPratica == null ? 0 : dettPratica.getDettPraticaId())); ServiceContext serviceContext = new ServiceContext();
ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(dettPratica.getCompanyId());
serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setScopeGroupId(dettPratica.getGroupId());
serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId());
serviceContext.setUserId(dettPratica.getUserId()); if (contatore++ < numeroSorteggiate) {
if (contatore++ < numeroSorteggiate) { sorteggiate.add(pratica);
sorteggiate.add(pratica); esito.add("<li>Sorteggiata: " + pratica.getNumeroProgetto() + " (id " + intPraticaId + ") del "
esito.add("<li>Sorteggiata: " + pratica.getNumeroProgetto() + " (id " + intPraticaId + ") del " + sdf.format(pratica.getDtPratica()) + " (" + m.getKey() + ")</li>");
+ sdf.format(pratica.getDtPratica()) + " (" + m.getKey() + ")</li>"); } else {
} else { pratica.setDtSorteggio(dtSorteggio);
pratica.setDtSorteggio(dtSorteggio); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
IntPraticaLocalServiceUtil.updateIntPratica(pratica); esito.add("<li>Non sorteggiata: " + pratica.getNumeroProgetto() + " (id " + intPraticaId
esito.add("<li>Non sorteggiata: " + pratica.getNumeroProgetto() + " (id " + intPraticaId + ") del " + sdf.format(pratica.getDtPratica()) + " (" + m.getKey() + ")</li>");
+ ") del " + sdf.format(pratica.getDtPratica()) + " (" + m.getKey() + ")</li>");
}
} }
} }
esito.add("</ol>"); esito.add("</ol>");

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java

@ -9,7 +9,6 @@ import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.LinkedList;
import com.liferay.counter.service.CounterLocalServiceUtil; import com.liferay.counter.service.CounterLocalServiceUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
@ -155,7 +154,7 @@ public class ZoneSismicheUtil {
private String impostaZona(long companyId, String nomeComune, long valoreZona, String ag) { private String impostaZona(long companyId, String nomeComune, long valoreZona, String ag) {
List<Comune> comuni = new LinkedList<Comune>(); List<Comune> comuni = null;
try { try {
comuni = ComuneLocalServiceUtil.findByCompanyDenominazione(companyId, nomeComune); comuni = ComuneLocalServiceUtil.findByCompanyDenominazione(companyId, nomeComune);
} catch (SystemException e) { } catch (SystemException e) {
@ -165,7 +164,7 @@ public class ZoneSismicheUtil {
return "Errore " + nomeComune + ": la ricerca del comune ha prodotto " + comuni.size() + " risultati"; return "Errore " + nomeComune + ": la ricerca del comune ha prodotto " + comuni.size() + " risultati";
} else { } else {
Comune comune = comuni.get(0); Comune comune = comuni.get(0);
List<Territorio> territori = new LinkedList<Territorio>(); List<Territorio> territori = null;
try { try {
territori = TerritorioLocalServiceUtil.getActiveTerritoriByComune(comune.getComuneId()); territori = TerritorioLocalServiceUtil.getActiveTerritoriByComune(comune.getComuneId());
} catch (SystemException e) {} } catch (SystemException e) {}

30
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java

@ -812,24 +812,22 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
IntPratica intPratica = null; IntPratica intPratica = null;
try { try {
intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId());
if(Validator.isNotNull(intPratica)){ if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { sb.append("Deposito ");
sb.append("Deposito "); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { sb.append("Autorizzazione ");
sb.append("Autorizzazione "); }
} sb.append("n. ");
sb.append("n. "); if (Validator.isNotNull(getProtocollo())) {
if (Validator.isNotNull(getProtocollo())) { sb.append(intPratica.getNumeroProgetto()).append(" del ").append(sdf.format(intPratica.getDtPratica()));
sb.append(intPratica.getNumeroProgetto()).append(" del ").append(sdf.format(intPratica.getDtPratica())); } else {
} else { if (Validator.isNotNull(intPratica.getNumeroProgetto())) {
if (Validator.isNotNull(intPratica.getNumeroProgetto())) { sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH)
sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) .append(StringPool.SPACE);
.append(StringPool.SPACE);
}
sb.append(getDettPraticaId()).append(" (Temporaneo) ");
} }
sb.append(" - id ").append(intPratica.getIntPraticaId()); sb.append(getDettPraticaId()).append(" (Temporaneo) ");
} }
sb.append(" - id ").append(intPratica.getIntPraticaId());
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error("Error on IntPratidaId=" + intPratica.getIntPraticaId(), e); _log.error("Error on IntPratidaId=" + intPratica.getIntPraticaId(), e);
} }

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

@ -188,11 +188,9 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
default: default:
break; break;
} }
if(Validator.isNotNull(role)){ WorkflowTaskManagerUtil.assignWorkflowTaskToRole(controlloPratica.getCompanyId(),
WorkflowTaskManagerUtil.assignWorkflowTaskToRole(controlloPratica.getCompanyId(), serviceContext.getUserId(), workflowTaskId, role.getRoleId(), StringPool.BLANK, null,
serviceContext.getUserId(), workflowTaskId, role.getRoleId(), StringPool.BLANK, null, WorkflowUtil.getWorkflowContext(controlloPratica));
WorkflowUtil.getWorkflowContext(controlloPratica));
}
} else { } else {
throw new SystemException("riassegnare al ruolo non possibile"); throw new SystemException("riassegnare al ruolo non possibile");
} }

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

@ -99,10 +99,7 @@ public class CompanyExpandoStartupAction extends SimpleAction {
ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {} } catch (PortalException e1) {}
} }
ExpandoColumn expandoColumn = null; ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
if(expandoTable != null){
expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
}
if (expandoColumn == null) { if (expandoColumn == null) {
try { try {
// Manifattura Web Group, modifica per rendere possibile la creazione di campi personalizzati di tipo // Manifattura Web Group, modifica per rendere possibile la creazione di campi personalizzati di tipo

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

@ -685,7 +685,6 @@ public class FascicoloFePortlet extends MVCPortlet {
response.sendRedirect(successURL); response.sendRedirect(successURL);
} else if ("domanda".equalsIgnoreCase(cmd)) { } else if ("domanda".equalsIgnoreCase(cmd)) {
saveDatiDettPratica(dettPraticaId, request, response); saveDatiDettPratica(dettPraticaId, request, response);
} else { } else {
throw new SystemException("operazione non gestita (" + cmd + StringPool.CLOSE_PARENTHESIS); throw new SystemException("operazione non gestita (" + cmd + StringPool.CLOSE_PARENTHESIS);
} }

74
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java

@ -62,48 +62,46 @@ public class FirmaPostUtil {
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
} }
if(Validator.isNotNull(company)){ String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false);
String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false); if (Validator.isNotNull(urlPdfExtractor)) {
if (Validator.isNotNull(urlPdfExtractor)) { byte[] fileArray = Base64.decode(token);
byte[] fileArray = Base64.decode(token); List<String> listaCodiciFiscali = FirmaUtil.getCodiceFiscale(fileArray, urlPdfExtractor);
List<String> listaCodiciFiscali = FirmaUtil.getCodiceFiscale(fileArray, urlPdfExtractor); String cf = listaCodiciFiscali.get(0);
String cf = listaCodiciFiscali.get(0); List<RestFile> listaFile = new ArrayList<RestFile>();
List<RestFile> listaFile = new ArrayList<RestFile>(); try {
try { List<Avviso> listaAvvisi = AvvisoLocalServiceUtil.getListaAvvisiPerApplet(cf);
List<Avviso> listaAvvisi = AvvisoLocalServiceUtil.getListaAvvisiPerApplet(cf); if (Validator.isNotNull(listaAvvisi) && listaAvvisi.size() > 0) {
if (Validator.isNotNull(listaAvvisi) && listaAvvisi.size() > 0) { for (Avviso avviso : listaAvvisi) {
for (Avviso avviso : listaAvvisi) { if (Validator.isNotNull(avviso.getFileEntryIdBase())) {
if (Validator.isNotNull(avviso.getFileEntryIdBase())) { DLFileEntry fileEntry = DLFileEntryLocalServiceUtil.fetchDLFileEntry(avviso
DLFileEntry fileEntry = DLFileEntryLocalServiceUtil.fetchDLFileEntry(avviso .getFileEntryIdBase());
.getFileEntryIdBase()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso .getIntPraticaId());
.getIntPraticaId()); if (Validator.isNotNull(fileEntry)) {
if (Validator.isNotNull(fileEntry)) { RestFile restFile = new RestFile();
RestFile restFile = new RestFile(); restFile.setIdFile(GetterUtil.getInteger(avviso.getAvvisoId()));
restFile.setIdFile(GetterUtil.getInteger(avviso.getAvvisoId())); restFile.setDataInvio(new Date());
restFile.setDataInvio(new Date()); String tipoDocumento = avviso.translateTipoDocumento();
String tipoDocumento = avviso.translateTipoDocumento(); restFile.setDocumentiType(avviso.getTipoDocumento()); // TO-VERIFY
restFile.setDocumentiType(avviso.getTipoDocumento()); // TO-VERIFY restFile.setNomeFile(LanguageUtil.get(Locale.ITALIAN, tipoDocumento)
restFile.setNomeFile(LanguageUtil.get(Locale.ITALIAN, tipoDocumento) + StringPool.SPACE + StringPool.DASH + StringPool.SPACE
+ StringPool.SPACE + StringPool.DASH + StringPool.SPACE + intPratica.getTitle(Locale.ITALIAN, true));
+ intPratica.getTitle(Locale.ITALIAN, true)); restFile.setFile("");
restFile.setFile("");
Group group = GroupLocalServiceUtil.getGroup(avviso.getGroupId());
Group group = GroupLocalServiceUtil.getGroup(avviso.getGroupId()); Organization organization = OrganizationLocalServiceUtil.getOrganization(group
Organization organization = OrganizationLocalServiceUtil.getOrganization(group .getOrganizationId());
.getOrganizationId()); restFile.setTipoPratica(organization.getName());
restFile.setTipoPratica(organization.getName()); listaFile.add(restFile);
listaFile.add(restFile);
}
} }
} }
} }
risposta.setObj(listaFile);
risposta.setRisposta(RispostaCostanti.OK);
} catch (Exception e) {
_log.error(e.getMessage(), e);
risposta.setRisposta(RispostaCostanti.ERRORE_APPLICAZIONE);
} }
risposta.setObj(listaFile);
risposta.setRisposta(RispostaCostanti.OK);
} catch (Exception e) {
_log.error(e.getMessage(), e);
risposta.setRisposta(RispostaCostanti.ERRORE_APPLICAZIONE);
} }
} }
} }

4
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaUtil.java

@ -66,9 +66,7 @@ public class FirmaUtil {
} catch (IOException e) { } catch (IOException e) {
_log.error(e.getMessage()); _log.error(e.getMessage());
} finally { } finally {
if(client != null){ client.getConnectionManager().shutdown();
client.getConnectionManager().shutdown();
}
} }
return listaCodiciFiscali; return listaCodiciFiscali;
} }

24
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.classpath

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_75">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-portlet"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-shared"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

36
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/.project

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>quarkus-bridge-portlet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

6
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/build.xml

@ -1,6 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="quarkus-bridge-portlet" basedir="." default="deploy">
<import file="C:\liferay-sviluppo\ide\6_2\sicilia\paesaggistica\liferay-plugins-sdk-6.2\portlets/build-common-portlet.xml" />
</project>

3
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/META-INF/MANIFEST.MF

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Class-Path:

1
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/.gitignore vendored

@ -1 +0,0 @@
/classes/

BIN
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar

File binario non mostrato.

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

File binario non mostrato.

8
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-display.xml

@ -1,8 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.2.0//EN" "http://www.liferay.com/dtd/liferay-display_6_2_0.dtd">
<display>
<category name="category.sample">
<portlet id="quarkus-bridge" />
</category>
</display>

14
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -1,14 +0,0 @@
name=Quarkus Bridge
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
required-deployment-contexts=\
portos-bo-portlet,\
hms-taglib-hook

37
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -1,37 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>quarkus-bridge</portlet-name>
<icon>/icon.png</icon>
<scheduler-entry>
<scheduler-description>quarkus bridge pratiche</scheduler-description>
<scheduler-event-listener-class>portos.nextmind.quarkus.bridge.scheduler.QuarkusBridgeScheduler</scheduler-event-listener-class>
<trigger>
<cron>
<cron-trigger-value>0 */5 * ? * *</cron-trigger-value>
</cron>
</trigger>
</scheduler-entry>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>quarkus-bridge-portlet</css-class-wrapper>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>

34
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/portlet.xml

@ -1,34 +0,0 @@
<?xml version="1.0"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet>
<portlet-name>quarkus-bridge</portlet-name>
<display-name>Quarkus Bridge</display-name>
<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>Quarkus Bridge</title>
<short-title>Quarkus Bridge</short-title>
<keywords>Quarkus Bridge</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>

74
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/liferay/bridge/persistence/PraticaValidator.java

@ -1,74 +0,0 @@
package portos.nextmind.liferay.bridge.persistence;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.RoleConstants;
import com.liferay.portal.model.User;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import java.util.List;
import java.util.Locale;
public class PraticaValidator {
static Log _log = LogFactoryUtil.getLog(PraticaValidator.class);
public static Comune fetchComune(long companyId, String codiceIstat) throws SystemException {
Comune comune = ComuneLocalServiceUtil.fetchByC_CI(companyId, codiceIstat);
if (comune == null) {
_log.warn("#[!]# Nessun Comune trovato con la coppia companyId "+companyId+
" e codiceIstat "+codiceIstat);
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus");
return null;
}
return comune;
}
public static Territorio fetchTerritorio(long comuneId) throws SystemException{
List<Territorio> territori = TerritorioLocalServiceUtil.findByComuneId(comuneId, 0, 1);
if (territori.isEmpty()) {
_log.warn("#[!]# Nessun Territorio trovato per il comuneId "+comuneId);
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus");
return null;
}
return territori.get(0);
}
public static User fetchUser(long companyId, long groupId, String codiceFiscale, String email, String nome, String cognome, long comuneId) throws SystemException, PortalException{
User user = UserLocalServiceUtil.fetchUserByScreenName(companyId,
codiceFiscale.trim().toLowerCase());
if(Validator.isNotNull(user)) {
return user;
}
// Crea utente se assente in database
long admingRoleId = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR).getRoleId();
User admin = UserLocalServiceUtil.getRoleUsers(admingRoleId).get(0);
// Alter serviceContext to bypass Liferay user creation workflow
ServiceContext userServiceContext = new ServiceContext();
userServiceContext.setScopeGroupId(groupId);
userServiceContext.setCompanyId(companyId);
userServiceContext.setUserId(admin.getUserId());
user = UserLocalServiceUtil.addUser(
admin.getUserId(), companyId, true, StringPool.BLANK, StringPool.BLANK,
false, codiceFiscale.trim().toLowerCase(), email, 0l, StringPool.BLANK, Locale.ITALY,
nome, StringPool.BLANK, cognome,
0, 0, true, 1, 1, 1980, StringPool.BLANK,
new long[]{groupId}, new long[]{},
new long[]{}, new long[]{}, false, userServiceContext);
return user;
}
}

18
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeConstants.java

@ -1,18 +0,0 @@
package portos.nextmind.quarkus.bridge.api;
public class QuarkusBridgeConstants {
public final static String HEADER_REQUEST = "HeaderPratica";
public final static String BODY_REQUEST = "SportelloPratica";
public final static String codiceIstat = "cadastralCode";
public final static String codiceFiscale = "digitalHolderTaxCode";
public final static String email = "address";
public final static String nome = "name";
public final static String cognome = "surname";
public final static String tipoProcedura = "proceedingType";
public final static String instanceId = "instanceId";
public final static String correlationId = "correlationId";
public final static String clientId = "clientId";
public final static String recordId = "id"; // The generated id in the external database
}

110
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/src/portos/nextmind/quarkus/bridge/api/QuarkusBridgeMessageFactoryUtil.java

@ -1,110 +0,0 @@
package portos.nextmind.quarkus.bridge.api;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.messaging.Message;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
public class QuarkusBridgeMessageFactoryUtil {
static Log _log = LogFactoryUtil.getLog(QuarkusBridgeMessageFactoryUtil.class);
private static Message INSTANCE_READ(){
Message INSTANCE_READ_MESSAGE = new Message();
INSTANCE_READ_MESSAGE.setPayload(RequestAction.READ);
return INSTANCE_READ_MESSAGE;
}
private static Message INSTANCE_WRITE(){
Message INSTANCE_WRITE_MESSAGE = new Message();
INSTANCE_WRITE_MESSAGE.setPayload(RequestAction.WRITE);
return INSTANCE_WRITE_MESSAGE;
}
private static Message INSTANCE_DELETE(){
Message INSTANCE_DELETE_MESSAGE = new Message();
INSTANCE_DELETE_MESSAGE.setPayload(RequestAction.DELETE);
return INSTANCE_DELETE_MESSAGE;
}
public static Message[] registerMessages(){
Message[] messages = {INSTANCE_READ(), INSTANCE_WRITE(), INSTANCE_DELETE()};
return messages;
}
public enum RequestAction {
READ, WRITE, DELETE
}
public static JSONObject readNewData(String context){
JSONObject responseBody = JSONFactoryUtil.createJSONObject();
HttpURLConnection HttpConnection = null;
try{
URL url = new URL("http://localhost:50000/portos/mw/new/".concat(context));
HttpConnection = (HttpURLConnection) url.openConnection();
// Set MediaType Accepted in Accept Header
HttpConnection.addRequestProperty("Accept", "application/json");
// Set request method
HttpConnection.setRequestMethod("GET");
// Set connection timeout
HttpConnection.setConnectTimeout(5000);
// Enable input/output streams
HttpConnection.setDoInput(true);
HttpConnection.setDoOutput(true);
// Get the response code
StringBuilder response = new StringBuilder();
int responseCode = HttpConnection.getResponseCode();
switch(responseCode){
case 200:
_log.debug("### Quarkus Bridge [Read :: 200 OK]");
// Read the response
BufferedReader reader = new BufferedReader(new InputStreamReader(HttpConnection.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
response.append(line);
}
reader.close();
//TODO Process the response
if(response.charAt(0) == '{'){
JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString());
responseBody = responseBody.put("result", resultSet);
}
if(response.charAt(0) == '['){
JSONArray resultSet = JSONFactoryUtil.createJSONArray(response.toString());
responseBody = responseBody.put("result", resultSet);
}
break;
case 500:
_log.debug("### Quarkus Bridge [Read :: 500 Quarkus Server Error]");
break;
}
}catch(RuntimeException e){
_log.error(e,e);
} catch (MalformedURLException e) {
_log.error(e,e);
} catch (IOException e) {
_log.error(e,e);
} catch (JSONException e) {
_log.error(e,e);
} finally {
// Close the connection
HttpConnection.disconnect();
}
return responseBody;
}
}

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

@ -1,178 +0,0 @@
package portos.nextmind.quarkus.bridge.scheduler;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Company;
import com.liferay.portal.model.User;
import com.liferay.portal.service.CompanyLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.model.ExpandoColumnConstants;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.ArrayList;
import java.util.List;
import portos.nextmind.liferay.bridge.persistence.PraticaValidator;
import portos.nextmind.quarkus.bridge.api.QuarkusBridgeConstants;
import portos.nextmind.quarkus.bridge.api.QuarkusBridgeMessageFactoryUtil;
public class QuarkusBridgeScheduler implements MessageListener {
Log _log = LogFactoryUtil.getLog(QuarkusBridgeScheduler.class);
@Override
public void receive(Message message) throws MessageListenerException {
_log.info("### Quarkus Bridge Scheduler starting . . .");
ArrayList<Company> companies = null;
try {
companies = new ArrayList<>(CompanyLocalServiceUtil.getCompanies());
} catch (SystemException e) {
_log.error(e,e);
}
if(Validator.isNull(companies)){
_log.error("### Quarkus Bridge was unable to create batch beacuse it was unable to find any companyId.");
return;
}
for(Company company : companies){
JSONObject createPayload = prepareCreateBatch(company.getCompanyId());
JSONObject updatePayload = prepareUpdateBatch(company.getCompanyId());
//TODO: persist pratiche
}
_log.info("### Quarkus Bridge Scheduler batch ready.");
}
private JSONObject prepareCreateBatch(long companyId){
final String clientContext = "SISMICA";
JSONObject object = QuarkusBridgeMessageFactoryUtil.readNewData(clientContext);
_log.debug(object.toString());
JSONArray pratiche = object.getJSONArray("result");
for(int i = 0; i < pratiche.length() ; i++){
JSONObject pratica = pratiche.getJSONObject(i);
JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST);
//TODO: check requestAction da Header?
//TODO: check operation da Header?
JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST);
String codiceIstat = Sportello.getString(QuarkusBridgeConstants.codiceIstat);
try {
// Cerca comune di appartenenza
Comune comune = PraticaValidator.fetchComune(companyId, codiceIstat);
if(Validator.isNull(comune)) continue;
// Cerca territorio di appartenenza
long comuneId = comune.getComuneId();
Territorio territorio = PraticaValidator.fetchTerritorio(comuneId);
if(Validator.isNull(territorio)) continue;
// Cerca utente associato alla pratica
long groupId = territorio.getGroupId();
String codiceFiscale = Sportello.getString(QuarkusBridgeConstants.codiceFiscale);
String email = Sportello.getString(QuarkusBridgeConstants.email, StringPool.BLANK);
String nome = Sportello.getString(QuarkusBridgeConstants.nome, StringPool.BLANK);
String cognome = Sportello.getString(QuarkusBridgeConstants.cognome, StringPool.BLANK);
if(Validator.isBlank(email) || Validator.isBlank(nome) || Validator.isBlank(cognome)){
_log.error("#[!]# Missing one or more of the required fields - First Name, Last Name, E-Mail");
continue;
}
User user = PraticaValidator.fetchUser(companyId, groupId,
codiceFiscale, email, nome, cognome, comuneId);
// Recupera la procedura della pratica
String tipoProcedura = Sportello.getString(QuarkusBridgeConstants.tipoProcedura);
ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(groupId);
serviceContext.setCompanyId(companyId);
serviceContext.setUserId(user.getUserId());
//TODO: remove circuit breaker
if(true) continue;
// Aggiungi DettPratica
long territorioId = territorio.getTerritorioId();
//TODO: verifica che la procedura non esista già
if(!Constants.PRATICA_ZONE.containsKey(tipoProcedura)){
_log.error("#[!]# " + tipoProcedura + " is not a Valid TipoPratica");
continue;
}
DettPratica dettPratica = DettPraticaLocalServiceUtil
.addDettPratica(territorioId, tipoProcedura, serviceContext);
// Add custom fields to IntPratica to fetch future updates from Kafka
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId());
ExpandoBridge customFieldsExpando = intPratica.getExpandoBridge();
customFieldsExpando.addAttribute(QuarkusBridgeConstants.instanceId,
ExpandoColumnConstants.STRING);
customFieldsExpando.addAttribute(QuarkusBridgeConstants.correlationId,
ExpandoColumnConstants.STRING);
customFieldsExpando.addAttribute(QuarkusBridgeConstants.clientId,
ExpandoColumnConstants.STRING);
customFieldsExpando.addAttribute("HeaderSportelloId", ExpandoColumnConstants.LONG);
customFieldsExpando.addAttribute("SportelloId", ExpandoColumnConstants.LONG);
String instanceId = Header.getString(QuarkusBridgeConstants.instanceId);
String correlationId = Header.getString(QuarkusBridgeConstants.correlationId);
String clientId = Header.getString(QuarkusBridgeConstants.clientId);
Long headerSportelloId = Header.getLong(QuarkusBridgeConstants.recordId);
Long sportelloId = Sportello.getLong(QuarkusBridgeConstants.recordId);
customFieldsExpando.setAttribute(QuarkusBridgeConstants.correlationId, correlationId);
customFieldsExpando.setAttribute(QuarkusBridgeConstants.instanceId, instanceId);
customFieldsExpando.setAttribute(QuarkusBridgeConstants.clientId, clientId);
customFieldsExpando.setAttribute("HeaderSportelloId", headerSportelloId);
customFieldsExpando.setAttribute("SportelloId", sportelloId);
intPratica.setExpandoBridgeAttributes(customFieldsExpando);
// Persist changes to custom fields
IntPraticaLocalServiceUtil.updateIntPratica(intPratica);
} catch (SystemException e) {
_log.error(e ,e);
} catch (PortalException e) {
_log.error(e, e);
}
}
return object;
}
private JSONObject prepareUpdateBatch(long companyId){
JSONObject payload = JSONFactoryUtil.createJSONObject();
final String clientContext = "SISMICA";
// TODO: capire perché Enrico filtrava solo su queste ScheduledActions
// int ORDER_ScheduledAction = 2;
// payload.put("searchedScheduledAction", ORDER_ScheduledAction);
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery();
query.add(RestrictionsFactoryUtil.eq("companyId", companyId));
//TODO: scoprire in quali stati possono essere le pratiche ed ottimizzare la query
try {
List<IntPratica> praticheDaAggiornare = IntPraticaLocalServiceUtil.dynamicQuery(query);
//TODO: splittare le pratiche da aggiornare in base alle operazioni che devono essere svolte
} catch (SystemException e) {
_log.error(e,e);
}
return payload;
}
}

2568
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/aui.tld

File diff soppresso perché troppo grande Load Diff

538
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld

@ -1,538 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>liferay-portlet</short-name>
<uri>http://liferay.com/tld/portlet</uri>
<!--
liferay-portlet:actionURL is similar to portlet:actionURL except it has the
additional attributes plid, portletName, anchor, and encrypt.
Set varImpl to set the PortletURL object. This gives you an object reference
to the underlying URL implementation.
Set plid to the plid of another layout. This allows you to post the URL to
another layout.
Set portletName to the name of a portlet other than the current portlet.
This allows you to post the URL to another portlet.
Set anchor to false if you do not want the page to refresh and anchor to the
current portlet.
Set encrypt to true if you want to encrypt all the parameter values.
Set doAsUserId to process this URL as if it is accessed by the specified
user.
Set portletConfiguration to true if you want to pass the parameters needed
when you are accessing a portlet that is wrapped by the Portlet
Configuration portlet.
-->
<tag>
<name>actionURL</name>
<tag-class>com.liferay.taglib.portlet.ActionURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.ActionURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>allowEmptyParam</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>copyCurrentRenderParameters</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsUserId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>encrypt</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>plid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletConfiguration</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererPlid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>varImpl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>icon-back</name>
<tag-class>com.liferay.taglib.portletext.IconBackTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-close</name>
<tag-class>com.liferay.taglib.portletext.IconCloseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-configuration</name>
<tag-class>com.liferay.taglib.portletext.IconConfigurationTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-edit</name>
<tag-class>com.liferay.taglib.portletext.IconEditTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-edit-defaults</name>
<tag-class>com.liferay.taglib.portletext.IconEditDefaultsTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-edit-guest</name>
<tag-class>com.liferay.taglib.portletext.IconEditGuestTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-export-import</name>
<tag-class>com.liferay.taglib.portletext.IconExportImportTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-help</name>
<tag-class>com.liferay.taglib.portletext.IconHelpTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-maximize</name>
<tag-class>com.liferay.taglib.portletext.IconMaximizeTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-minimize</name>
<tag-class>com.liferay.taglib.portletext.IconMinimizeTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-options</name>
<tag-class>com.liferay.taglib.portletext.IconOptionsTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-portlet</name>
<tag-class>com.liferay.taglib.portletext.IconPortletTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>ariaRole</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>label</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portlet</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>icon-portlet-css</name>
<tag-class>com.liferay.taglib.portletext.IconPortletCssTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-print</name>
<tag-class>com.liferay.taglib.portletext.IconPrintTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>icon-refresh</name>
<tag-class>com.liferay.taglib.portletext.IconRefreshTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>param</name>
<tag-class>com.liferay.taglib.util.ParamTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>preview</name>
<tag-class>com.liferay.taglib.portletext.PreviewTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>portletName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>queryString</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>showBorders</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>width</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!--
liferay-portlet:renderURL is similar to portlet:renderURL except it has the
additional attributes plid, portletName, anchor, and encrypt.
Set varImpl to set the PortletURL object. This gives you an object reference
to the underlying URL implementation.
Set plid to the plid of another layout. This allows you to post the URL to
another layout.
Set portletName to the name of a portlet other than the current portlet.
This allows you to post the URL to another portlet.
Set anchor to false if you do not want the page to refresh and anchor to the
current portlet.
Set encrypt to true if you want to encrypt all the parameter values.
Set doAsUserId to process this URL as if it is accessed by the specified
user.
Set portletConfiguration to true if you want to pass the parameters needed
when you are accessing a portlet that is wrapped by the Portlet
Configuration portlet.
-->
<tag>
<name>renderURL</name>
<tag-class>com.liferay.taglib.portlet.RenderURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.RenderURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>allowEmptyParam</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>copyCurrentRenderParameters</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsUserId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>encrypt</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>plid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletConfiguration</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererPlid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>varImpl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>renderURLParams</name>
<tag-class>com.liferay.taglib.portlet.RenderURLParamsTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>varImpl</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!--
liferay-portlet:resourceURL is similar to portlet:resourceURL except it has
the additional attributes plid, portletName, anchor, and encrypt.
Set varImpl to set the PortletURL object. This gives you an object reference
to the underlying URL implementation.
Set plid to the plid of another layout. This allows you to post the URL to
another layout.
Set portletName to the name of a portlet other than the current portlet.
This allows you to post the URL to another portlet.
Set anchor to false if you do not want the page to refresh and anchor to the
current portlet.
Set encrypt to true if you want to encrypt all the parameter values.
Set doAsUserId to process this URL as if it is accessed by the specified
user.
Set portletConfiguration to true if you want to pass the parameters needed
when you are accessing a portlet that is wrapped by the Portlet
Configuration portlet.
-->
<tag>
<name>resourceURL</name>
<tag-class>com.liferay.taglib.portlet.ResourceURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.ResourceURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>copyCurrentRenderParameters</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>doAsUserId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>encrypt</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>plid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletConfiguration</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>refererPlid</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>varImpl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>runtime</name>
<tag-class>com.liferay.taglib.portletext.RuntimeTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>defaultPreferences</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>queryString</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

158
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-portlet.tld

@ -1,158 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>portlet</short-name>
<uri>http://java.sun.com/portlet</uri>
<tag>
<name>actionURL</name>
<tag-class>com.liferay.taglib.portlet.ActionURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.ActionURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>copyCurrentRenderParameters</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>defineObjects</name>
<tag-class>com.liferay.taglib.portlet.DefineObjectsTag</tag-class>
<tei-class>com.liferay.taglib.portlet.DefineObjectsTei</tei-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>namespace</name>
<tag-class>com.liferay.taglib.portlet.NamespaceTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>param</name>
<tag-class>com.liferay.taglib.util.ParamTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>property</name>
<tag-class>com.liferay.taglib.util.PropertyTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>renderURL</name>
<tag-class>com.liferay.taglib.portlet.RenderURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.RenderURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>copyCurrentRenderParameters</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>resourceURL</name>
<tag-class>com.liferay.taglib.portlet.ResourceURLTag</tag-class>
<tei-class>com.liferay.taglib.portlet.ResourceURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>cacheability</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>secure</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

106
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-security.tld

@ -1,106 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>liferay-security</short-name>
<uri>http://liferay.com/tld/security</uri>
<tag>
<name>doAsURL</name>
<tag-class>com.liferay.taglib.security.DoAsURLTag</tag-class>
<tei-class>com.liferay.taglib.security.DoAsURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>doAsUserId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>encrypt</name>
<tag-class>com.liferay.taglib.security.EncryptTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>className</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>protocol</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>unencryptedParams</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>permissionsURL</name>
<tag-class>com.liferay.taglib.security.PermissionsURLTag</tag-class>
<tei-class>com.liferay.taglib.security.PermissionsURLTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>modelResource</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>modelResourceDescription</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>redirect</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>resourceGroupId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>resourcePrimKey</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>roleTypes</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>windowState</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

65
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-theme.tld

@ -1,65 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>theme</short-name>
<uri>http://liferay.com/tld/theme</uri>
<tag>
<name>defineObjects</name>
<tag-class>com.liferay.taglib.theme.DefineObjectsTag</tag-class>
<tei-class>com.liferay.taglib.theme.DefineObjectsTei</tei-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>include</name>
<tag-class>com.liferay.taglib.theme.IncludeTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>page</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>layout-icon</name>
<tag-class>com.liferay.taglib.theme.LayoutIconTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>layout</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>meta-tags</name>
<tag-class>com.liferay.taglib.theme.MetaTagsTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>param</name>
<tag-class>com.liferay.taglib.util.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>wrap-portlet</name>
<tag-class>com.liferay.taglib.theme.WrapPortletTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>page</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

4696
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-ui.tld

File diff soppresso perché troppo grande Load Diff

141
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/tld/liferay-util.tld

@ -1,141 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.2</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>liferay-util</short-name>
<uri>http://liferay.com/tld/util</uri>
<tag>
<name>body-bottom</name>
<tag-class>com.liferay.taglib.util.BodyBottomTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>outputKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>body-top</name>
<tag-class>com.liferay.taglib.util.BodyTopTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>outputKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>buffer</name>
<tag-class>com.liferay.taglib.util.BufferTag</tag-class>
<tei-class>com.liferay.taglib.util.BufferTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>get-url</name>
<tag-class>com.liferay.taglib.util.GetUrlTag</tag-class>
<tei-class>com.liferay.taglib.util.GetUrlTei</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>expires</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>html-bottom</name>
<tag-class>com.liferay.taglib.util.HtmlBottomTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>outputKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>position</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>html-top</name>
<tag-class>com.liferay.taglib.util.HtmlTopTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>outputKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>position</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>include</name>
<tag-class>com.liferay.taglib.util.IncludeTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>page</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>portletId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>servletContext</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>strict</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>useCustomPage</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>param</name>
<tag-class>com.liferay.taglib.util.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>whitespace-remover</name>
<tag-class>com.liferay.taglib.util.WhitespaceRemoverTag</tag-class>
<body-content>JSP</body-content>
</tag>
</taglib>

3
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/WEB-INF/web.xml

@ -1,3 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" 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-app_2_5.xsd">
</web-app>

0
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/css/main.css

BIN
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/icon.png

File binario non mostrato.

Prima

Larghezza:  |  Altezza:  |  Dimensione: 467 B

0
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/js/main.js

22
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/docroot/view.jsp

@ -1,22 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
This is the <b>Quarkus Bridge</b> portlet.

18
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/ivy.xml

@ -1,18 +0,0 @@
<?xml version="1.0"?>
<ivy-module
version="2.0"
xmlns:m2="http://ant.apache.org/ivy/maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
>
<info module="quarkus-bridge-portlet" organisation="com.liferay">
<extends extendType="configurations,description,info" location="${sdk.dir}/ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" />
</info>
<dependencies defaultconf="default">
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0-SNAPSHOT" />
</dependencies>
</ivy-module>

15
liferay-plugins-sdk-6.2/portlets/quarkus-bridge-portlet/test/integration/arquillian.xml

@ -1,15 +0,0 @@
<?xml version="1.0"?>
<arquillian
xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"
>
<container default="true" qualifier="tomcat">
<configuration>
<property name="jmxPort">8099</property>
<property name="pass">tomcat</property>
<property name="user">tomcat</property>
</configuration>
</container>
</arquillian>
Caricamento…
Annulla
Salva