Confronta commit

..

Nessun commit in comune. 'master' e 'feature/portos_bo_portlet' hanno storie completamente diverse.

  1. 18
      .gitignore
  2. 11
      .project
  3. 0
      .scannerwork/.sonar_lock
  4. 11
      iris-axis-client/.project
  5. 1
      liferay-plugins-sdk-6.2/.scannerwork/css-bundle/stylelintconfig.json
  6. 6
      liferay-plugins-sdk-6.2/.scannerwork/report-task.txt
  7. 10
      liferay-plugins-sdk-6.2/build.ebusu.properties
  8. 10
      liferay-plugins-sdk-6.2/build.ture.properties
  9. 2
      liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
  10. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
  11. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
  12. 2
      liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
  13. BIN
      liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar
  14. 2
      liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
  15. 2
      liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
  16. 2
      liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
  17. 2
      liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
  18. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  19. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  20. BIN
      liferay-plugins-sdk-6.2/dist/portos-firma-shared-6.2.0.1.jar
  21. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  22. BIN
      liferay-plugins-sdk-6.2/dist/portos-log-shared-6.2.0.1.jar
  23. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  24. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  25. 2
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath
  26. 0
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/.gitignore
  27. BIN
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar
  28. 7
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath
  29. 12
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project
  30. 7
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs
  31. 4
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
  32. 2
      liferay-plugins-sdk-6.2/ivy.xml.MD5
  33. 7
      liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs
  34. 309
      liferay-plugins-sdk-6.2/liferay-plugins-sdk-6.2.iml
  35. 3
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
  36. 7
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs
  37. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
  38. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  39. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  40. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  41. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml
  42. 34
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java
  43. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java
  44. 10
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java
  45. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp
  46. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp
  47. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp
  48. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp
  49. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp
  50. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp
  51. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp
  52. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp
  53. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp
  54. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp
  55. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp
  56. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp
  57. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp
  58. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp
  59. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp
  60. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml
  61. 7
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jdt.core.prefs
  62. 3
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jst.jsp.core.prefs
  63. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/build.xml
  64. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itext-xtra-5.5.9.jar
  65. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/itextpdf-5.5.9.jar
  66. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  67. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/velocity.jar
  68. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/xmlworker-5.5.9.jar
  69. 147
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java
  70. 156
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java
  71. 262
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  72. 14
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css
  73. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/init.jsp
  74. 41
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/view.jsp
  75. 456
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp
  76. 4
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml
  77. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml.MD5
  78. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath
  79. 7
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs
  80. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  81. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-portlet-service.jar
  82. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  83. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml
  84. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml
  85. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java
  86. 4
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties
  87. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp
  88. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp
  89. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp
  90. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp
  91. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp
  92. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp
  93. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp
  94. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp
  95. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath
  96. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
  97. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
  98. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  99. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/.gitignore
  100. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar
  101. Some files were not shown because too many files have changed in this diff Show More

18
.gitignore vendored

@ -1,8 +1,6 @@
*.class
*.war
!kaleo-web-6.2.0.3.war
portos-*.jar
!portos-kaleo-portlet-service.jar
**/classes/
**/.sass-cache/
**/.ivy/cache/
@ -10,3 +8,19 @@ portos-*.jar
**/build/
.DS_Store
._*
.idea/
.metadata
.shared
.gradle
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/
liferay-plugins-sdk-6.2/.scannerwork/.sonar_lock
liferay-plugins-sdk-6.2/sonar-scanner-4.8.0.2856-windows
.settings
liferay-plugins-sdk-6.2/build.malde.properties
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/.tern-project
*.MD5

11
.project

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sismica</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

0
.scannerwork/.sonar_lock

11
iris-axis-client/.project

@ -28,4 +28,15 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
<filteredResources>
<filter>
<id>1672738248521</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

1
liferay-plugins-sdk-6.2/.scannerwork/css-bundle/stylelintconfig.json

@ -0,0 +1 @@
{"rules":{"block-no-empty":true,"comment-no-empty":true,"string-no-newline":true,"function-linear-gradient-no-nonstandard-direction":true,"media-feature-name-no-unknown":true,"color-no-invalid-hex":true,"font-family-no-duplicate-names":true,"no-duplicate-at-import-rules":true,"no-empty-source":true,"declaration-block-no-duplicate-properties":[true,{"ignore":["consecutive-duplicates-with-different-values"]}],"selector-type-no-unknown":[true,{"ignoreTypes":["/^(mat|md|fa)-/"],"ignore":["custom-elements"]}],"at-rule-no-unknown":[true,{"ignoreAtRules":["value","at-root","content","debug","each","else","error","for","function","if","include","mixin","return","warn","while","extend","use","/^@.*/"]}],"no-duplicate-selectors":true,"font-family-no-missing-generic-family-keyword":true,"no-extra-semicolons":true,"no-invalid-double-slash-comments":true,"selector-pseudo-element-no-unknown":[true,{"ignorePseudoElements":["ng-deep","v-deep"]}],"selector-pseudo-class-no-unknown":[true,{"ignorePseudoClasses":["local","global","export","import"]}],"keyframe-declaration-no-important":true,"property-no-unknown":[true,{"ignoreProperties":["composes","/^mso-/"],"ignoreSelectors":["/^:export.*/","/^:import.*/"]}],"declaration-block-no-shorthand-property-overrides":true,"unit-no-unknown":[true,{"ignoreUnits":["x"]}],"function-calc-no-invalid":true}}

6
liferay-plugins-sdk-6.2/.scannerwork/report-task.txt

@ -0,0 +1,6 @@
projectKey=Sicilia-Sismica
serverUrl=http://sonar.nextmind.it
serverVersion=9.4.0.54424
dashboardUrl=http://sonar.nextmind.it/dashboard?id=Sicilia-Sismica
ceTaskId=AYZekmB9qvn_43R2i7P8
ceTaskUrl=http://sonar.nextmind.it/api/ce/task?id=AYZekmB9qvn_43R2i7P8

10
liferay-plugins-sdk-6.2/build.ebusu.properties

@ -0,0 +1,10 @@
# Managed by Liferay IDE (remove this comment to prevent future updates)
#Managed by Liferay IDE (remove this comment to prevent future updates)
#Tue Jan 03 13:00:53 CET 2023
app.server.tomcat.lib.global.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\lib\\ext
app.server.tomcat.deploy.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps
app.server.parent.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6
app.server.tomcat.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps\\ROOT

10
liferay-plugins-sdk-6.2/build.ture.properties

@ -1,11 +1,11 @@
# Managed by Liferay IDE (remove this comment to prevent future updates)
app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps
app.server.parent.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6
app.server.tomcat.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62
app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps
app.server.parent.dir = /home/ture/liferay/portali/sismica
app.server.tomcat.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/ROOT
app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT
javac.encoding = UTF-8
ext.work.dir = /home/ture/liferay/src/work
app.server.dir = /home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62

2
liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5

@ -1 +1 @@
45b38289274e4397c600a212c5477afa
b2996cd58c16b53d0e5cba6f59304ace

2
liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5

@ -1 +1 @@
9e586203944d7fe5baccd02ed7bf20c1
edfd9cc2944faf63dd7d39e25283a4b6

2
liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5

@ -1 +1 @@
cf39082434c04fdd3a9563acce7cb551
a7d8aaa34b7d1028a4d449b5ab8f767e

2
liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5

@ -1 +1 @@
6ad0549f4c64b52b40d871393d72f9aa
4b40da73b53b5860b9adbb52cde18473

BIN
liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar

File binario non mostrato.

2
liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5

@ -1 +1 @@
2aae42c5c43b993944b8c0fe9e31d5fb
0b9e4199159f29548166ac11ab8d12c0

2
liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5

@ -1 +1 @@
e1a7d560dfc36faf61c7d7da67bb03df
8f22881d5bfb74c587681be94ad54598

2
liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5

@ -1 +1 @@
f6d028f89713fdbf3004b38da2b16dcf
4102c750f16136e66085045251a34292

2
liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5

@ -1 +1 @@
3325db6f628a33488c6c832368b134e4
f6d022d60b1ed1cc45a21c61c21c8f22

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

2
liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath

@ -1,7 +1,7 @@
<?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_79">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

0
liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/.gitignore → liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/.gitignore vendored

BIN
liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar

File binario non mostrato.

7
liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath

@ -1,7 +1,7 @@
<?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_80">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
@ -18,10 +18,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=sicilia-p7m-preview-hook&amp;ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=%24%7Bliferay_sdk_dir%3Asicilia-p7m-preview-hook%7D%2Fivy-settings.xml&amp;loadSettingsOnDemand=false&amp;ivyUserDir=%24%7Bliferay_sdk_dir%3Asicilia-p7m-preview-hook%7D%2F.ivy&amp;propertyFiles=">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

12
liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project

@ -31,7 +31,17 @@
<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.apache.ivyde.eclipse.ivynature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
<filteredResources>
<filter>
<id>1672831492925</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

7
liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

4
liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml

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

2
liferay-plugins-sdk-6.2/ivy.xml.MD5

@ -1 +1 @@
ae2292c03b059802eec34967b7e85b8a
8e943594b3e1f97e457b967864997dc5

7
liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

309
liferay-plugins-sdk-6.2/liferay-plugins-sdk-6.2.iml

@ -0,0 +1,309 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web27">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-firma-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-firma-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web26">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-audit-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-audit-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web29">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-report-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-report-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web28">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-maintenance-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-maintenance-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web21">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-deploy-alert-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web20">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/webs/elasticray-web/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/webs/elasticray-web/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web23">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-cookies-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-cookies-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web22">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-log-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-log-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web25">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/tools/templates/portlet_jsf_tmpl/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/tools/templates/portlet_jsf_tmpl/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web24">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/tools/templates/ext_tmpl/docroot/WEB-INF/ext-web/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/tools/templates/ext_tmpl/docroot/WEB-INF/ext-web/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web3">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/tools/templates/portlet_icefaces_tmpl/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/tools/templates/portlet_icefaces_tmpl/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web2">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-notification-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-notification-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web16">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-calendar-appointments-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web15">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-report-engine-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-report-engine-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web18">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-accesso-atti-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web17">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-mail-manager-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-mail-manager-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web19">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/webs/portos-kaleo-web/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/webs/portos-kaleo-web/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web5">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-company-configuration-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-company-configuration-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web4">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/hooks/sicilia-p7m-preview-hook/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="javaeeApplication" name="javaEEApplication">
<configuration>
<descriptors>
<deploymentDescriptor name="application.xml" url="file://$MODULE_DIR$/tools/templates/ear_tmpl/modules/META-INF/application.xml" />
</descriptors>
</configuration>
</facet>
<facet type="web" name="Web7">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-kaleo-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-kaleo-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web10">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-bo-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-bo-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web6">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-comunicazioni-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web12">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/hooks/hms-taglib-hook/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/hooks/hms-taglib-hook/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web9">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-fe-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-fe-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web8">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/tools/templates/portlet_richfaces_tmpl/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/tools/templates/portlet_richfaces_tmpl/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web11">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/tools/templates/portlet_spring_mvc_tmpl/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/tools/templates/portlet_spring_mvc_tmpl/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web14">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/webs/resources-importer-web/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/webs/resources-importer-web/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web13">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-kaleo-controller-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="web" name="Web">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/portlets/portos-jbpm-log-task-portlet/docroot" relative="/" />
</webroots>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/bin" />
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="corretto-1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

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

@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

7
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component

@ -2,7 +2,6 @@
<wb-module deploy-name="portos-accesso-atti-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-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>

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

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

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

File binario non mostrato.

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

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
<service-builder package-path="it.tref.liferay.portos.accesso.atti">
<author>3F Consulting</author>

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

@ -58,27 +58,27 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
*/
@Override
public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException{
public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException {
return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end);
}
@Override
public List<RichiestaAccessoAtti> findCompletate(String numeroProgetto, String protocollo, String dataDal,
String dataAl, int start, int end) throws SystemException, ParseException{
String dataAl, int start, int end) throws SystemException, ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", true));
if(!numeroProgetto.equals("")){
if (!numeroProgetto.equals("")) {
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
}
if(!protocollo.equals("")){
if (!protocollo.equals("")) {
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo));
disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo));
dq.add(disjunction);
}
if(!dataDal.equals("") && !dataAl.equals("")){
if (!dataDal.equals("") && !dataAl.equals("")) {
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
@ -94,7 +94,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, dateAl));
}
if(!dataDal.equals("") && dataAl.equals("")){
if (!dataDal.equals("") && dataAl.equals("")) {
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
@ -106,7 +106,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
dq.add(createDateProperty.between(dateDal, now));
}
if(dataDal.equals("") && !dataAl.equals("")){
if (dataDal.equals("") && !dataAl.equals("")) {
Date now = new Date("01/01/2018");
Date dateAl = sdf.parse(dataAl);
Calendar calAl = Calendar.getInstance();
@ -122,21 +122,21 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
@Override
public int countCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl)
throws SystemException, ParseException{
throws SystemException, ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", true));
if(!numeroProgetto.equals("")){
if (!numeroProgetto.equals("")) {
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
}
if(!protocollo.equals("")){
if (!protocollo.equals("")) {
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo));
disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo));
dq.add(disjunction);
}
if(!dataDal.equals("") && !dataAl.equals("")){
if (!dataDal.equals("") && !dataAl.equals("")) {
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
@ -152,7 +152,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, dateAl));
}
if(!dataDal.equals("") && dataAl.equals("")){
if (!dataDal.equals("") && dataAl.equals("")) {
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
@ -163,7 +163,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, now));
}
if(dataDal.equals("") && !dataAl.equals("")){
if (dataDal.equals("") && !dataAl.equals("")) {
Date now = new Date("01/01/2018");
Date dateAl = sdf.parse(dataAl);
Calendar calAl = Calendar.getInstance();
@ -179,23 +179,23 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo
}
@Override
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException{
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException {
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken));
List<RichiestaAccessoAtti> lista = richiestaAccessoAttiLocalService.dynamicQuery(dq);
if(lista != null && !lista.isEmpty()){
if (lista != null && !lista.isEmpty()) {
return lista.get(0);
}
return null;
}
@Override
public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException{
public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException {
List<Long> listaLong = new ArrayList<Long>();
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if(organizationList != null && !organizationList.isEmpty()){
if (organizationList != null && !organizationList.isEmpty()) {
for (Organization organization : organizationList) {
listaLong.add(organization.getGroupId());
}

4
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java

@ -11,7 +11,7 @@ public class AccessoAttiAccessTokenUtil {
private static final Log _log = LogFactoryUtil.getLog(AccessoAttiAccessTokenUtil.class);
public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId){
public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId) {
StringBuffer sb = new StringBuffer();
try {
@ -24,7 +24,7 @@ public class AccessoAttiAccessTokenUtil {
sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));
}
} catch (NoSuchAlgorithmException e) {
_log.error(e,e);
_log.error(e, e);
}
return sb.toString();
}

10
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java

@ -30,16 +30,16 @@ public class DocumentLibraryUtil {
long fileEntryId = 0L;
try {
DLFolder folder = getRichiestaAttiFolder(companyGroupId);
if(folder != null){
if (folder != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
if (richiestaAccessoAtti != null) {
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(richiestaAccessoAtti.getCompanyId());
serviceContext.setUserId(richiestaAccessoAtti.getUserId());
String mineType = FileUtil.getExtension(originFileName);
String prefixedFileName = "";
if(pagamento){
if (pagamento) {
prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType;
} else {
prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType;
@ -51,12 +51,12 @@ public class DocumentLibraryUtil {
}
}
} catch (PortalException | SystemException e) {
_log.error(e,e);
_log.error(e, e);
}
return fileEntryId;
}
private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException{
private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException {
DLFolder folder = DLFolderLocalServiceUtil.getFolder(companyGroupId, 0L, RICHIESTA_ATTI_FOLDER_NAME);
return folder;

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@include file="init.jsp" %>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="init.jsp" %>
<div style="width:30%;">

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../init.jsp" %>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.ArrayList"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@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.service.ProvinciaLocalServiceUtil"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="init.jsp" %>
<div id="gestioneRichiestaAccessoAtti">

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="init.jsp" %>
<%

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="init.jsp" %>
<div class="container" style="margin-top: 10%;">

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="init.jsp" %>
<%

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../init.jsp" %>
<div class="container" style="margin-top: 10%;">

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../init.jsp" %>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.text.Format"%>
<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml

@ -13,6 +13,6 @@
<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" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0-SNAPSHOT" />
</dependencies>
</ivy-module>

7
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jdt.core.prefs

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

3
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jst.jsp.core.prefs

@ -1,3 +0,0 @@
eclipse.preferences.version=1
validateFragments=false
validation.use-project-settings=true

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

@ -2,6 +2,5 @@
<!DOCTYPE project>
<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" />
</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-portlet-service.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.

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

@ -5,31 +5,25 @@ 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.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.Validator;
import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil;
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.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica;
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.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.util.Date;
import java.util.List;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
@ -38,78 +32,14 @@ public class AdvancedOperationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationPortlet.class);
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);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
Date dataInizioLavoriOpera = ParamUtil.getDate(actionRequest, "dataInizioLavoriOperaInput", null);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
Date dataInizioLavoriOpera = ParamUtil.getDate(actionRequest, "dataInizioLavoriOperaInput",
DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd"), null);
_log.info("AdvancedOperationPortlet --- Changing DataInizioLavori on DettPraticas of IntPraticaId" + intPraticaId);
_setDataInizioLavori(intPratica, dataInizioLavoriOpera);
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void resetDataInizioLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(AdvancedOperationUtil.hasNoFineLavori(intPratica)){
_log.info("AdvancedOperationPortlet --- Resetting DataInizioLavori on DettPraticas of IntPraticaId" + intPraticaId);
_setDataInizioLavori(intPratica, null);
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
private void _setDataInizioLavori(IntPratica intPratica, Date dataInizioLavoriOpera)
throws SystemException {
List<DettPratica> dettPraticaListWithInizioLavori = AdvancedOperationUtil.fetchDettPraticaListWithInizioLavori(intPratica);
for(DettPratica dettPratica : dettPraticaListWithInizioLavori){
dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera);
@ -126,7 +56,6 @@ public class AdvancedOperationPortlet extends MVCPortlet {
boolean normLavoriInProprioFlag = ParamUtil.getBoolean(actionRequest, "normLavoriInProprioFlag");
List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
_log.info("AdvancedOperationPortlet --- Fixing NormLavoriInProprio flag of IntPraticaId " + intPraticaId);
for(DettPratica dettPratica : dettPraticaList){
if(dettPratica.getNormLavoriInProprio() == normLavoriInProprioFlag){
dettPratica.setNormLavoriInProprio(!normLavoriInProprioFlag);
@ -134,7 +63,6 @@ public class AdvancedOperationPortlet extends MVCPortlet {
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
}
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void fixCollaudoStatico(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -145,7 +73,6 @@ public class AdvancedOperationPortlet extends MVCPortlet {
boolean collaudoStaticoFlag = ParamUtil.getBoolean(actionRequest, "collaudoStaticoFlag");
List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
_log.info("AdvancedOperationPortlet --- Fixing CollaudoStatico flag of IntPraticaId " + intPraticaId);
for(DettPratica dettPratica : dettPraticaList){
if(dettPratica.getCollaudoStatico() == collaudoStaticoFlag){
dettPratica.setCollaudoStatico(!collaudoStaticoFlag);
@ -153,7 +80,6 @@ public class AdvancedOperationPortlet extends MVCPortlet {
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
}
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void fixStatusPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -164,17 +90,10 @@ public class AdvancedOperationPortlet extends MVCPortlet {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){
_log.info("AdvancedOperationPortlet --- Fixing StatusPratica (From DRAFT to PENDING) "
+ "of IntPraticaId " + intPraticaId);
intPratica.setStatus(WorkflowConstants.STATUS_PENDING);
intPratica.setModifiedDate(new Date());
IntPraticaLocalServiceUtil.updateIntPratica(intPratica);
IntPraticaLocalServiceUtil.updateStatus(intPraticaId, WorkflowConstants.STATUS_PENDING);
} else {
_log.info("AdvancedOperationPortlet --- Impossible operation: Fixing StatusPratica (From DRAFT to PENDING) "
+ "of IntPraticaId " + intPraticaId);
SessionErrors.add(actionRequest, "operazione-impossibile");
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void ripristinaPraticaVidimata(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -184,54 +103,12 @@ public class AdvancedOperationPortlet extends MVCPortlet {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus()){
_log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> DRAFT) "
+ "with IntPraticaId " + intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
_ripristinaPratica(intPratica, WorkflowConstants.STATUS_DRAFT);
} else {
SessionErrors.add(actionRequest, "operazione-impossibile");
throw new Exception("This Pratica is not in status=5, action RIPRISTINA is not available");
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void cambiaIstruttore(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
long istruttoreId = ParamUtil.getLong(actionRequest, "istruttoreId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
WorkflowTask lastTask = AdvancedOperationUtil.getLastTask(intPratica);
if (lastTask != null && lastTask.getName().equalsIgnoreCase("Esito")) {
List<ControlloPratica> controlloPraticas = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId());
if(!controlloPraticas.isEmpty()){
for(ControlloPratica controlloPratica : controlloPraticas){
if(controlloPratica.getStatus() == WorkflowConstants.STATUS_PENDING){
WorkflowUtil.assegnaUltimoTask(intPratica.getCompanyId(), intPratica.getGroupId(),
istruttoreId, themeDisplay.getUserId(), controlloPratica);
}
}
}
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void fixUserID(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
_checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(!AdvancedOperationUtil.evalInt_Dett_UserID(intPratica)){
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPratica.getIntPraticaId());
if(Validator.isNotNull(dettPratica)){
long userId = intPratica.getUserId();
dettPratica.setUserId(userId);
dettPratica.setUserName(UserLocalServiceUtil.getUser(userId).getScreenName());
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
}
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void ripristinaPraticaConforme(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -241,15 +118,12 @@ public class AdvancedOperationPortlet extends MVCPortlet {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus()){
_log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> APPROVED) "
+ "with IntPraticaId " + intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
_ripristinaPratica(intPratica, WorkflowConstants.STATUS_APPROVED);
} else {
SessionErrors.add(actionRequest, "operazione-impossibile");
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{
@ -259,14 +133,9 @@ public class AdvancedOperationPortlet extends MVCPortlet {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
List<DocPratica> docPraticaOrfani = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
_log.info("AdvancedOperationPortlet --- Deleting Documenti Orfani "
+ "of IntPraticaId " + intPraticaId);
for(DocPratica docPratica : docPraticaOrfani){
_log.info("AdvancedOperationPortlet --- Deleting Documento Orfan " + docPratica.getDocPraticaId()
+ " of IntPraticaId " + intPraticaId);
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
}
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId));
}
public void findIntPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
@ -300,9 +169,7 @@ public class AdvancedOperationPortlet extends MVCPortlet {
private void _ripristinaPratica(IntPratica intPratica, int status) throws PortalException, SystemException{
long docPraticaAnnullamentoId = intPratica.getDocPraticaAnnullamentoId();
if(Validator.isNotNull(docPraticaAnnullamentoId)){
IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId);
}
IntPraticaLocalServiceUtil.updateStatus(intPratica.getIntPraticaId(), status);
}

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

@ -1,156 +0,0 @@
//package it.nextmind.liferay.portos.advanced.operation.portlet;
//
//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.servlet.ServletResponseUtil;
//import com.liferay.portal.kernel.upload.UploadPortletRequest;
//import com.liferay.portal.kernel.util.ContentTypes;
//import com.liferay.portal.kernel.util.GetterUtil;
//import com.liferay.portal.kernel.util.ParamUtil;
//import com.liferay.portal.kernel.util.StreamUtil;
//import com.liferay.portal.kernel.util.StringPool;
//import com.liferay.portal.kernel.util.Validator;
//import com.liferay.portal.kernel.util.WebKeys;
//import com.liferay.portal.theme.ThemeDisplay;
//import com.liferay.portal.util.PortalUtil;
//import com.liferay.util.bridges.mvc.MVCPortlet;
//
//import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoBean;
//import it.tref.liferay.portos.bo.report.builder.builder.ReportAvvisoBeanBuilder;
//import it.tref.liferay.portos.report.html.core.HtmlToPdfEngine;
//import it.tref.liferay.portos.report.jasper.core.provider.JasperPdfProvider;
//import it.tref.liferay.portos.report.jasper.core.report.BeanReport;
//import it.tref.liferay.portos.report.jasper.core.report.ReportInterface;
//import it.tref.liferay.portos.report.odt.core.OdtToPdfEngine;
//import it.tref.liferay.portos.report.shared.constants.ReportConstants;
//import it.tref.liferay.portos.report.shared.constants.ReportConstants.ReportType;
//import it.tref.liferay.portos.report.shared.dto.ReportDto;
//import it.tref.liferay.portos.report.shared.dto.ReportResultDto;
//import it.tref.liferay.portos.report.shared.util.ReportUtil;
//import it.tref.liferay.portos.report.shared.util.VelocityUtil;
//
//import java.io.ByteArrayOutputStream;
//import java.io.IOException;
//import java.io.InputStream;
//import java.util.HashMap;
//
//import javassist.ClassPool;
//
//import javax.portlet.PortletException;
//import javax.portlet.ResourceRequest;
//import javax.portlet.ResourceResponse;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//public class TemplateTesterPortlet extends MVCPortlet {
//
// @Override
// public void serveResource(ResourceRequest resourceRequest,
// ResourceResponse resourceResponse) throws IOException,
// PortletException {
//
// String resourceID = GetterUtil.getString(resourceRequest
// .getResourceID());
//
// if (resourceID.equals("templateTester")) {
// _processTemplate(resourceRequest, resourceResponse);
// } else {
// super.serveResource(resourceRequest, resourceResponse);
// }
// }
//
// private void _processTemplate(ResourceRequest resourceRequest,
// ResourceResponse resourceResponse){
//
// HttpServletRequest request = PortalUtil
// .getHttpServletRequest(resourceRequest);
// HttpServletResponse response = PortalUtil
// .getHttpServletResponse(resourceResponse);
//
// try {
//
// ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest
// .getAttribute(WebKeys.THEME_DISPLAY);
//
// byte[] bytes = new byte[0];
//
// UploadPortletRequest uploadPortletRequest = PortalUtil
// .getUploadPortletRequest(resourceRequest);
//
// ReportAvvisoBean bean = ReportAvvisoBeanBuilder.build(avviso, parameters);
// String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../")
// .replace(getClass().getSimpleName(), ReportConstants.PATH_LOGO_REGIONE);
// parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(resourcePath).getPath());
// ReportDto reportDto = new ReportDto();
// reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate });
// reportDto.setFolderId(folderId);
// reportDto.setFileName(fileName);
// reportDto.setParameters(parameters);
// reportDto.setShowNumberOfPage(true);
// reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString());
// ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean);
//
// String parametersJSON = ParamUtil.getString(
// uploadPortletRequest, "parametersJSON");
//
// HashMap<String, Object> params = new HashMap<String, Object>();
// if (Validator.isNotNull(parametersJSON)) {
// params = (HashMap<String, Object>) JSONFactoryUtil
// .looseDeserialize(parametersJSON);
// }
//
// String objectJSON = ParamUtil.getString(uploadPortletRequest,
// "objectJSON");
//
// String fileNameTemplate = uploadPortletRequest
// .getFileName("fileTemplate");
//
// ReportInterface reportInterface = null;
//
// if (Validator.isNotNull(objectJSON)) {
//
// JSONObject jsonObject = JSONFactoryUtil
// .createJSONObject(objectJSON);
//
// ClassPool pool = ClassPool.getDefault();
//
// Class<?> clazz = makeClass(pool, jsonObject);
// Object dataSource = clazz.newInstance();
//
// reportInterface = new BeanReport(dataSource);
// }
//
// if (Validator.isNotNull(fileNameTemplate)) {
//
// InputStream inputStream = null;
// try {
// inputStream = uploadPortletRequest
// .getFileAsStream("fileTemplate");
//
// JasperPdfProvider pdfProvider = new JasperPdfProvider();
// pdfProvider.doReport(inputStream, params,
// reportInterface);
//
// bytes = pdfProvider.getBytes();
// } finally {
// StreamUtil.cleanUp(inputStream);
// }
// }
//
// ServletResponseUtil.sendFile(request, response, "test.pdf", bytes,
// ContentTypes.APPLICATION_PDF);
//
// } catch (Exception e) {
// _log.error(e, e);
//
// ServletResponseUtil.sendFile(request, response, "test.html", e
// .toString().getBytes(StringPool.UTF8),
// ContentTypes.TEXT_HTML_UTF8);
// }
//
// }
//
// private final static Log _log = LogFactoryUtil.getLog(TestPdf.class);
//}

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

@ -1,32 +1,18 @@
package it.nextmind.liferay.portos.advanced.operation.util;
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.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.Validator;
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.User;
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.DocPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
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.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.util.ArrayList;
import java.util.Date;
@ -34,280 +20,100 @@ import java.util.List;
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) {
if (Validator.isNotNull(intPratica)) {
public static boolean isPraticaAnnullata(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
return WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus();
}
return false;
}
public static List<DocPratica> getDocPraticaOrfani(long intPraticaId) {
public static List<DocPratica> getDocPraticaOrfani(long intPraticaId){
List<DocPratica> docPraticaOrfaniList = new ArrayList<DocPratica>();
try {
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil
.findByIntPratica(intPraticaId);
for (DocPratica docPratica : docPraticaList) {
if (Validator.isNull(DettPraticaLocalServiceUtil
.fetchDettPratica(docPratica.getClassPk()))
&& DettPratica.class.getName().equals(
docPratica.getClassName())) {
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
for(DocPratica docPratica : docPraticaList){
if(Validator.isNull(DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()))){
docPraticaOrfaniList.add(docPratica);
}
}
} catch (SystemException e) {
_log.error(e, e);
_log.error(e,e);
}
return docPraticaOrfaniList;
}
public static boolean hasDettPratica(long intPraticaId) {
public static boolean hasDettPratica(long intPraticaId){
return !_getDettPraticaList(intPraticaId).isEmpty();
}
public static boolean getNormLavoriInProprioFlag(long intPraticaId) {
public static boolean getNormLavoriInProprioFlag(long intPraticaId){
List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId);
if (!dettPraticaList.isEmpty()) {
if(!dettPraticaList.isEmpty()){
return dettPraticaList.get(0).getNormLavoriInProprio();
}
return false;
}
public static boolean getCollaudoStaticoFlag(long intPraticaId) {
public static boolean getCollaudoStaticoFlag(long intPraticaId){
List<DettPratica> dettPraticaList = _getDettPraticaList(intPraticaId);
if (!dettPraticaList.isEmpty()) {
if(!dettPraticaList.isEmpty()){
return dettPraticaList.get(0).getCollaudoStatico();
}
return false;
}
public static String getLavoriInEconomiaBtnLabel(
boolean normLavoriInProprioFlag) {
return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio"
: "Aggiungi flag normLavoriInProprio";
public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){
return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" : "Aggiungi flag normLavoriInProprio";
}
public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag) {
return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico"
: "Aggiungi flag collaudoStatico";
public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag){
return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico" : "Aggiungi flag collaudoStatico";
}
public static boolean isStatoPraticaIN(IntPratica intPratica) {
if (Validator.isNotNull(intPratica)) {
public static boolean isStatoPraticaIN(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
return "IN".equals(intPratica.getStatoPratica());
}
return false;
}
public static long getCurrentAssignee(IntPratica intPratica) {
long currentAssignee = 0;
WorkflowTask lastTask = getLastTask(intPratica);
if (Validator.isNotNull(lastTask)) {
if (it.tref.liferay.portos.bo.util.WorkflowConstants.WORKFLOW_TASKNAME_ESITO
.equalsIgnoreCase(lastTask.getName())) {
currentAssignee = lastTask.getAssigneeUserId();
}
}
return currentAssignee;
}
public static WorkflowTask getLastTask(IntPratica intPratica) {
if (Validator.isNotNull(intPratica)) {
try {
List<ControlloPratica> controlloPraticas = ControlloPraticaLocalServiceUtil
.findByIntPratica(intPratica.getIntPraticaId());
if (!controlloPraticas.isEmpty()) {
for (ControlloPratica controlloPratica : controlloPraticas) {
if (controlloPratica.getStatus() == WorkflowConstants.STATUS_PENDING) {
return WorkflowUtil.getLastTask(
controlloPratica.getCompanyId(),
controlloPratica.getGroupId(), null,
controlloPratica);
}
}
}
} catch (SystemException | PortalException e) {
_log.error(e, e);
}
}
return null;
}
public static boolean evalCurrentAssignee(IntPratica intPratica,
User tecnico) {
WorkflowTask lastTask = getLastTask(intPratica);
if (Validator.isNotNull(lastTask)
&& lastTask.getName().equalsIgnoreCase("Esito")) {
return tecnico.getUserId() != lastTask.getAssigneeUserId()
|| lastTask.getAssigneeUserId() == 0;
}
return false;
}
public static boolean isWorkFlowCompleted(ControlloPratica controlloPratica) {
try {
WorkflowTask task = WorkflowUtil.getLastTask(
controlloPratica.getCompanyId(),
controlloPratica.getGroupId(), null, controlloPratica);
if(Validator.isNotNull(task)){
return task.isCompleted();
}
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
return false;
}
public static List<DettPratica> fetchDettPraticaListWithInizioLavori(
IntPratica intPratica) {
if (Validator.isNotNull(intPratica)) {
DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil
.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId",
intPratica.getIntPraticaId()));
dynamicQuery.add(RestrictionsFactoryUtil
.isNotNull("dataInizioLavoriOpera"));
try {
return (List<DettPratica>) DettPraticaLocalServiceUtil
.dynamicQuery(dynamicQuery);
} catch (SystemException e) {
_log.error(e, e);
public static List<DettPratica> fetchDettPraticaListWithInizioLavori(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId()));
dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dataInizioLavoriOpera"));
try{
return (List<DettPratica>) DettPraticaLocalServiceUtil.dynamicQuery(dynamicQuery);
} catch (SystemException e){
_log.error(e,e);
return null;
}
}
return null;
}
public static Date fetchDataInizioLavoriOpera(IntPratica intPratica) {
public static Date fetchDataInizioLavoriOpera(IntPratica intPratica){
List<DettPratica> dettPraticaListWithInizioLavori = fetchDettPraticaListWithInizioLavori(intPratica);
if (!dettPraticaListWithInizioLavori.isEmpty()) {
return dettPraticaListWithInizioLavori.get(0)
.getDataInizioLavoriOpera();
if(!dettPraticaListWithInizioLavori.isEmpty()){
return dettPraticaListWithInizioLavori.get(0).getDataInizioLavoriOpera();
}
return null;
}
public static boolean evalInt_Dett_UserID(IntPratica intPratica){
_log.info("lastDettPraticaUserID: "+getLastDettPraticaUserID(intPratica)+" || intPraticaUserID: "+intPratica.getUserId());
return getLastDettPraticaUserID(intPratica) == intPratica.getUserId();
}
public static long getLastDettPraticaUserID(IntPratica intPratica){
try {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPratica.getIntPraticaId());
if(Validator.isNotNull(dettPratica)){
return dettPratica.getUserId();
}
} catch (SystemException e){
_log.error(e,e);
}
return intPratica.getUserId();
}
public static boolean hasNoFineLavori(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
try {
List<FineLavori> fineLavoriList =
FineLavoriLocalServiceUtil.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
return fineLavoriList.isEmpty();
} catch (SystemException e) {
_log.error(e,e);
}
}
return false;
}
private static List<DettPratica> _getDettPraticaList(long intPraticaId) {
private static List<DettPratica> _getDettPraticaList(long intPraticaId){
List<DettPratica> dettPraticaList = new ArrayList<DettPratica>();
try {
dettPraticaList = DettPraticaLocalServiceUtil
.findByIntPraticaId(intPraticaId);
dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
} catch (SystemException e) {
_log.error(e, e);
_log.error(e,e);
}
return dettPraticaList;
}
private static final Log _log = LogFactoryUtil
.getLog(AdvancedOperationUtil.class);
private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class);
}

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

@ -1,14 +0,0 @@
.title-text{
font-weight: bold;
}
#impersonaSoggettiBtn{
cursor: pointer;
}
.aop-ml-5{
margin-left: 5px!important;
}

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/init.jsp

@ -1 +0,0 @@
<%@ include file="/html/init.jsp" %>

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

@ -1,41 +0,0 @@
<%@ include file="/html/template/init.jsp" %>
<liferay-portlet:resourceURL
var="templateTesterURL"
id="templateTester"
>
</liferay-portlet:resourceURL>
<aui:container id="template-tester-portlet">
<aui:row style="margin-top: 10px">
<aui:col span="12">
<aui:row style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">
<h2>Template Tester</h2>
</aui:row>
<aui:form action="<%= templateTesterURL %>" method="post" name="fmTemplateTester">
<aui:input
name="template"
type="file"
label="carica-template-input"
inlineLabel="left">
</aui:input>
<aui:input
name="folderId"
label="Folder ID:"
inlineLabel="left">
<aui:validator name="number" />
</aui:input>
<aui:input
name="avvisoId"
label="Avviso ID:"
inlineLabel="left">
<aui:validator name="number" />
</aui:input>
<aui:button
name="generateTemplateBtn"
type="submit"
value="Genera Template" />
</aui:form>
</aui:col>
</aui:row>
</aui:container>

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

@ -1,27 +1,3 @@
<%@page import="com.liferay.portal.model.Layout"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@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="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="java.util.Date"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
@ -39,7 +15,6 @@
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@ include file="/html/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK);
@ -86,41 +61,26 @@
</aui:form>
</aui:col>
</aui:row>
<%
long ricercaPagePlid = PortalUtil.getPlidFromFriendlyURL(20155, "/group/portos-backoffice/ricerca");
%>
<liferay-portlet:renderURL
plid="<%= ricercaPagePlid %>"
portletName='<%= PortletKeys.FASCICOLO %>'
portletMode="<%= PortletMode.VIEW.toString() %>"
windowState="<%= LiferayWindowState.NORMAL.toString() %>"
var="viewPraticaURL"
>
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value='<%= String.valueOf(intPraticaId) %>' />
</liferay-portlet:renderURL>
<% if(Validator.isNotNull(intPratica)){ %>
<aui:row style="margin-top: 10px" id="praticaAdminDiv">
<aui:row id="praticaRecapDiv">
<aui:row>
<liferay-security:doAsURL
doAsUserId="<%= intPratica.getUserId() %>"
var="impersonateUserURL">
</liferay-security:doAsURL>
<aui:col span="3">
<p style="font-size: 30px; margin: 20px 0;">
<b>Pratica:</b>
<a href="<%= viewPraticaURL %>" target="_blank">
<%= intPraticaId %>
<b>Pratica:</b> <%= intPraticaId %>
<liferay-ui:icon
image="action_right"
image="impersonate_user"
target="_blank"
message="Apri Pratica in Back Office"
url="<%= viewPraticaURL %>">
url="<%= impersonateUserURL %>">
</liferay-ui:icon>
</a>
</p>
</aui:col>
</aui:row>
<aui:row>
<div class="module-group">
<liferay-ui:panel title="DETTAGLI" collapsible="false" extended="true">
<aui:row>
<aui:col span="2">
<p><b>Numero Progetto:</b> <%= intPratica.getNumeroProgetto() %></p>
@ -151,11 +111,7 @@
</aui:row>
<aui:row>
<aui:col span="2">
<p>
<b>Status:</b>
<aui:workflow-status status="<%= intPratica.getStatus() %>"></aui:workflow-status>
(<%= intPratica.getStatus() %>)
</p>
<p><b>Status:</b> <%= intPratica.getStatus() %></p>
</aui:col>
</aui:row>
<%
@ -170,15 +126,13 @@
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionChangeDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler MODIFICARE la DATA di INIZIO LAVORI?')";
String functionDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler modificare la DATA di INIZIO LAVORI?')";
%>
<div style="display:flex;">
<aui:form action="<%= cambiaDataInizioLavoriURL %>" method="post" name="cambiaDataInizioLavori">
<div style="display:flex;">
<p><b>Data inizio Lavori Opera:</b></p>
<aui:input
name="dataInizioLavoriOperaInput"
label=""
label="Data inizio Lavori Opera"
inlineLabel="left"
type="date"
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataInizioLavoriOpera) %>'>
@ -186,43 +140,20 @@
<div>
<aui:button
name="cambiaDataInizioLavoriBtn"
cssClass="btn-primary aop-ml-5"
cssClass="btn-primary"
type="button"
value="Cambia"
onClick='<%= functionChangeDataInizio %>'/>
onClick='<%= functionDataInizio %>'/>
</div>
</div>
</aui:form>
<c:if test="<%= AdvancedOperationUtil.hasNoFineLavori(intPratica) %>">
<liferay-portlet:actionURL
name="resetDataInizioLavori"
var="resetDataInizioLavoriURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionResetDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"resetDataInizioLavori','Sei sicuro di voler RESETTARE la DATA di INIZIO LAVORI?')";
%>
<aui:form action="<%= resetDataInizioLavoriURL %>" method="post" name="resetDataInizioLavori" cssClass="aop-ml-5">
<div>
<aui:button
name="resetDataInizioLavoriBtn"
cssClass="btn-primary"
type="button"
value="Resetta"
onClick='<%= functionResetDataInizio %>'/>
</div>
</aui:form>
</c:if>
</div>
</aui:row>
<% } %>
<aui:row>
<div style="display:flex;">
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){
boolean normLavoriInProprioFlag = AdvancedOperationUtil.getNormLavoriInProprioFlag(intPraticaId);
%>
<div style="margin-right: 50px;">
<aui:col span="3">
<liferay-portlet:actionURL
name="fixNormLavoriInProprio"
var="fixNormLavoriInProprioURL" >
@ -241,13 +172,13 @@
value="<%= AdvancedOperationUtil.getLavoriInEconomiaBtnLabel(normLavoriInProprioFlag) %>"
onClick='<%= functionLavori %>'/>
</aui:form>
</div>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){
boolean collaudoStaticoFlag = AdvancedOperationUtil.getCollaudoStaticoFlag(intPraticaId);
%>
<div style="margin-right: 50px;">
<aui:col span="3">
<liferay-portlet:actionURL
name="fixCollaudoStatico"
var="fixCollaudoStaticoURL" >
@ -266,35 +197,11 @@
value="<%= AdvancedOperationUtil.getCollaudoStaticoBtnLabel(collaudoStaticoFlag) %>"
onClick='<%= functionCollaudoStatico %>'/>
</aui:form>
</div>
<% } %>
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)
&& !AdvancedOperationUtil.evalInt_Dett_UserID(intPratica)){
%>
<div style="margin-right: 50px;">
<liferay-portlet:actionURL
name="fixUserID"
var="fixUserIDURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionFixUserID = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixUserID','Sei sicuro di voler cambiare lo User dell'ultimo dettPratica?')";
%>
<aui:form action="<%= fixUserIDURL %>" method="post" name="fixCollaudoStatico">
<aui:button
name="fixUserIDBtn"
cssClass="btn-primary"
type="button"
value="FIXA User ID"
onClick='<%= functionFixUserID %>'/>
</aui:form>
</div>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %>
<div style="margin-right: 50px;">
<aui:col span="3">
<liferay-portlet:actionURL
name="fixStatusPratica"
var="fixStatusPraticaURL" >
@ -314,36 +221,11 @@
>
</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>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %>
<div style="margin-right: 50px;">
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaVidimata"
var="ripristinaPraticaVidimataURL" >
@ -363,8 +245,8 @@
>
</aui:button>
</aui:form>
</div>
<div style="margin-right: 50px;">
</aui:col>
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaConforme"
var="ripristinaPraticaConformeURL" >
@ -384,241 +266,11 @@
>
</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
type="button"
cssClass="btn-primary"
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"
message="Impersona Titolare Digitale della pratica"
url="<%= impersonateUserURL %>">
</liferay-ui:icon>
</div>
</aui:row>
<% if(SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) > 1){ %>
<aui:row>
<div style="display:flex;">
<div style=" margin-right: 15px;">
<p><b>Impersona soggetti:</b></p>
</div>
<liferay-ui:icon
id="impersonaSoggettiBtn"
image="team_icon"
message="Visualizza Soggetti"
target="_blank"
>
</liferay-ui:icon>
</div>
</aui:row>
<aui:row>
<div id="sc-soggetti-da-impersonare" class="hide">
<liferay-ui:search-container emptyResultsMessage="Nessun soggetto disponibile">
<liferay-ui:search-container-results
results="<%= SoggettoLocalServiceUtil.findByIntPratica(intPraticaId) %>"
total="<%= SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) %>"
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Soggetto" modelVar="soggetto">
<liferay-ui:search-container-column-text name="RUOLO">
<%= soggetto.getFullTipologiaSoggetto() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="DENOMINAZIONE">
<%= soggetto.getDescrizioneCompleta() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="AGGIUNTO DA">
<%
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId());
if (adding != null) {
out.print(adding.getFullDescription());
}
%>
</liferay-ui:search-container-column-text>
<%
User soggettoUser =
UserLocalServiceUtil.fetchUserByScreenName(company.getCompanyId(), soggetto.getCodiceFiscale());
%>
<liferay-ui:search-container-column-text name="IMPERSONA" cssClass="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(soggettoUser) %>">
<liferay-security:doAsURL
doAsUserId="<%= soggettoUser.getUserId() %>"
var="impersonateSoggettoURL">
</liferay-security:doAsURL>
<liferay-ui:icon
image="impersonate_user"
message="Impersona Soggetto"
target="_blank"
url="<%= impersonateSoggettoURL %>"
>
</liferay-ui:icon>
</c:if>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</aui:row>
</aui:col>
<% } %>
</liferay-ui:panel>
</div>
<div class="module-group">
<%
List<WorkflowTask> listaTask = AdvancedOperationUtil.getListaTask(intPratica);
if(Validator.isNotNull(listaTask) && !listaTask.isEmpty()){
long currentAssigneeId = AdvancedOperationUtil.getCurrentAssignee(intPratica);
%>
<liferay-ui:panel title="GESTIONE ATTIVITÀ" extended="true" collapsible="false">
<aui:row>
<div style="display:flex;">
<div style=" margin-right: 15px;">
<p><b>Gestisci ultima attività:</b></p>
</div>
<%
Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL);
long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true);
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,
controlPanelPlid, PortletRequest.RENDER_PHASE);
workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task");
workflowTaskURL.setParameter("workflowTaskId", String.valueOf(listaTask.get(0).getWorkflowTaskId()));
workflowTaskURL.setPortletMode(PortletMode.VIEW);
workflowTaskURL.setWindowState(LiferayWindowState.POP_UP);
%>
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info">
<liferay-ui:icon
useDialog="true"
image="action_right"
message="Gestisci Attività"
url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>'
/>
</div>
</div>
</aui:row>
<c:if test="<%= currentAssigneeId != 0L %>">
<aui:row>
<div style="display:flex;">
<liferay-security:doAsURL
doAsUserId="<%= currentAssigneeId %>"
var="impersonateAssigneeURL">
</liferay-security:doAsURL>
<div style=" margin-right: 15px;">
<p><b>Impersona Assegnatario Workflow:</b></p>
</div>
<liferay-ui:icon
image="team_icon"
target="_blank"
message="Impersona Assegnatario"
url="<%= impersonateAssigneeURL %>">
</liferay-ui:icon>
</div>
</aui:row>
</c:if>
<%
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>
<c:if test="<%= AdvancedOperationUtil.evalCurrentAssignee(intPratica, tecnico) %>">
<%
String currentAssigneeName = StringPool.BLANK;
if(currentAssigneeId != 0L){
currentAssigneeName = UserLocalServiceUtil.getUser(currentAssigneeId).getFullName();
}
String cambiaIstruttoreMsg = currentAssigneeId != 0 ? "Pratica attualmente assegnata a " + currentAssigneeName : "Pratica attualmente senza assegnatario";
String cambiaIstruttoreBtnLabelPrefix = currentAssigneeId != 0 ? "Riassegna" : "Assegna";
%>
<div>
<liferay-portlet:actionURL
name="cambiaIstruttore"
var="cambiaIstruttoreURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="istruttoreId" value="<%= String.valueOf(tecnico.getUserId()) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionCambiaIstruttore = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaIstruttore','Sei sicuro di voler riassegnare la pratica all istruttore?')";
%>
<aui:form action="<%= cambiaIstruttoreURL %>" method="post" name="cambiaIstruttore">
<aui:button
type="button"
cssClass="btn-primary"
name="cambiaIstruttoreBtn"
onClick="<%= functionCambiaIstruttore %>"
value='<%= cambiaIstruttoreBtnLabelPrefix + " Pratica a " + tecnico.getFullName() %>'
>
</aui:button>
<span>
(<%= cambiaIstruttoreMsg %>)
</span>
</aui:form>
</div>
</c:if>
</aui:row>
<%
}
}
%>
</liferay-ui:panel>
<%
}
%>
</div>
</aui:row>
<aui:row id="docPraticaDiv">
<div class="module-group">
<liferay-ui:panel title="DOCUMENTI ORFANI" collapsible="false" extended="true">
<%
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
%>
@ -687,56 +339,10 @@
</aui:button-row>
</aui:form>
</aui:row>
</liferay-ui:panel>
</div>
<%
}
%>
</aui:row>
<c:if test="<%= !ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId).isEmpty() &&
ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId).size() > 1 %>">
<aui:row id="controlloPraticaDiv">
<div class="module-group">
<liferay-ui:panel title="CONTROLLO PRATICA" collapsible="false" extended="true">
<aui:row>
<div id="sc-controllo-pratica">
<liferay-ui:search-container emptyResultsMessage="no-entries">
<liferay-ui:search-container-results
results="<%= ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId) %>"
total="<%= ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId).size() %>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.ControlloPratica"
modelVar="controlloPratica">
<liferay-ui:search-container-column-text name="ID">
<%= controlloPratica.getControlloPraticaId() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="STATUS">
<aui:workflow-status
status="<%= controlloPratica.getStatus() %>">
</aui:workflow-status>
<strong>(<%= controlloPratica.getStatus() %>)</strong>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="STATO WORKFLOW">
<%
String statoWorkflowMsg = StringPool.BLANK;
statoWorkflowMsg = AdvancedOperationUtil.isWorkFlowCompleted(controlloPratica) ?
"COMPLETATO" : "ATTIVO";
%>
<strong>
<liferay-ui:message key="<%= statoWorkflowMsg %>"></liferay-ui:message>
</strong>
</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>
</aui:row>
</c:if>
</aui:row>
</aui:row>
<% } %>
</aui:container>
@ -744,22 +350,12 @@
<div id ='<%= renderResponse.getNamespace()+"confirmationModal" %>'>
</div>
<div id ='<%= renderResponse.getNamespace()+"confirmationModalDiv" %>' class="hide" style="display:block;">
</div>
</div>
<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();
}
});
<% } %>
<aui:script use="event-valuechange,aui-modal,aui-io-request">
A.one('#<portlet:namespace />intPraticaId').on('valuechange', function(e){
if(e.newVal <= 0 ){
@ -826,5 +422,7 @@
modal.show();
}
);
</aui:script>

4
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml

@ -7,12 +7,12 @@
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
>
<info module="portos-advanced-operation-portlet" organisation="com.liferay">
<extends extendType="configurations,description,info" location="../../ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" />
<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" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0-SNAPSHOT" />
</dependencies>
</ivy-module>

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

@ -1 +0,0 @@
da182e61a8d786e000ef56dfa8d9ece4

2
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath

@ -1,7 +1,7 @@
<?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_80">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

7
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

2
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

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

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

File binario non mostrato.

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

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">
<hook>

2
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd">
<service-builder package-path="it.tref.liferay.portos.audit">
<author>Marco</author>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java

@ -43,7 +43,6 @@ import it.tref.liferay.portos.audit.NoSuchAuditEventException;
import it.tref.liferay.portos.audit.model.AuditEvent;
import it.tref.liferay.portos.audit.model.impl.AuditEventImpl;
import it.tref.liferay.portos.audit.model.impl.AuditEventModelImpl;
import it.tref.liferay.portos.audit.service.persistence.AuditEventPersistence;
import java.io.Serializable;

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

@ -13,8 +13,8 @@
##
build.namespace=portos_AUDIT
build.number=16
build.date=1569596657517
build.number=17
build.date=1672849068307
build.auto.upgrade=true
##

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.TextFormatter"%>
<%@page import="com.liferay.portal.kernel.json.JSONArray"%>
<%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.TextFormatter"%>
<%@page import="com.liferay.portal.kernel.json.JSONArray"%>
<%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp

@ -1,4 +1,3 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath

@ -2,9 +2,11 @@
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<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="owner.project.facets" value="java"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</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)">
@ -12,14 +14,10 @@
<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">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=portos-bo-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="src" path="/portos-bo-shared"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project

@ -32,6 +32,16 @@
<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>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
<filteredResources>
<filter>
<id>1672831492376</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

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

@ -3,18 +3,12 @@
<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="hms-taglib-hook-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-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">
<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>
<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>
<property name="context-root" value="portos-bo-portlet"/>
<property name="java-output-path" value="/portos-bo-portlet/docroot/WEB-INF/classes"/>
</wb-module>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -4,8 +4,8 @@
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="liferay.portlet" version="6.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.7"/>
</faceted-project>

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/.gitignore vendored

@ -0,0 +1,10 @@
/.ant-targets-build.xml
/.classpath
/.project
/.settings/
/.tern-project
/build.xml
/docroot/
/ivy.xml
/ivy.xml.MD5
/test/

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

File binario non mostrato.

Some files were not shown because too many files have changed in this diff Show More

Caricamento…
Annulla
Salva