Confronta commit

..

28 Commit

Autore SHA1 Messaggio Data
Gabriele Zigurella f86cce86d3 add hook to handle missing filesystems 2 anni fa
Marco Mancini 1bee1e8a90 Merge tag '2023.1' into develop 2 anni fa
Marco Mancini 765d917851 Merge branch 'release/2023.1' 2 anni fa
Marco Mancini 95c0d812a1 fix cancellazione 2 anni fa
E-A d278d79a0b Merge branch 'feature/portos-reportistica' into develop 2 anni fa
E-A d0b5623811 embellisha and overhaul logic - report dashboard 2 anni fa
E-A 9c02afd390 unset logging 2 anni fa
E-A ff9bc36601 add csv report download for queries 2 anni fa
E-A 2353362ac8 set label mappings 2 anni fa
E-A 080a72b133 add row for fields 2 anni fa
E-A 27619f571d use sorted map for codes P and Q and states 2 anni fa
E-A 2eb91b842e build report dashboard 2 anni fa
E-A 64049d16e8 add dates to render url 2 anni fa
E-A f28c672ee4 start feature - report 2 anni fa
E-A 1cec18ed3c solve tickets 2 anni fa
Marco Mancini d9b95d1206 fix jar 2 anni fa
E-A bee6ef4b81 Merge branch 'develop' of https://gitea.lavoripubblici.sicilia.it/bbcc/paesaggistica into develop 2 anni fa
E-A f5998d0724 commenti tag e plugin nuovo 2 anni fa
Marco Mancini 753c925ec6 no message 2 anni fa
Marco Mancini d6bd99aba7 build 2 anni fa
Marco Mancini b73e87df76 fix workspace 2 anni fa
E-A b1e78d9e5c jar servizi e shared 2 anni fa
E-A d533a4e7ff Merge branch 'feature/allineamento-sorgenti' into develop 2 anni fa
E-A 6164317c6e fix workspace 2 anni fa
E-A 99d4757f46 align 2 anni fa
E-A B 696bdb0e8f align 2 anni fa
E-A B 49f693edb5 align 2 anni fa
E-A B 74d61c6113 align 2 anni fa
  1. 4
      .gitignore
  2. 10
      liferay-plugins-sdk-6.2/.idea/.gitignore
  3. 6
      liferay-plugins-sdk-6.2/.idea/ant.xml
  4. 6
      liferay-plugins-sdk-6.2/.idea/jpa-buddy.xml
  5. 9
      liferay-plugins-sdk-6.2/.idea/misc.xml
  6. 6
      liferay-plugins-sdk-6.2/.idea/vcs.xml
  7. 0
      liferay-plugins-sdk-6.2/.scannerwork/.sonar_lock
  8. 6
      liferay-plugins-sdk-6.2/.scannerwork/report-task.txt
  9. 10
      liferay-plugins-sdk-6.2/build.ebusu.properties
  10. 10
      liferay-plugins-sdk-6.2/build.marco.properties
  11. 2
      liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
  12. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
  13. 2
      liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
  14. 2
      liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
  15. BIN
      liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar
  16. 2
      liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
  17. 2
      liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
  18. 2
      liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
  19. 2
      liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
  20. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  21. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  22. BIN
      liferay-plugins-sdk-6.2/dist/portos-firma-shared-6.2.0.1.jar
  23. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  24. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  25. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  26. 22
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/.classpath
  27. 36
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/.project
  28. 6
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/build.xml
  29. 3
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/META-INF/MANIFEST.MF
  30. 5
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/lib/.gitignore
  31. 9
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-hook.xml
  32. 11
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-plugin-package.properties
  33. 9
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-releng.properties
  34. 1
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/META-INF/javadocs-all.xml
  35. 2
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/META-INF/javadocs-rt.xml
  36. 153
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/com/liferay/portlet/documentlibrary/service/FakeDLFileEntryLocalServiceImpl.java
  37. 3
      liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/web.xml
  38. 2
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath
  39. 11
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.project
  40. 7
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs
  41. 2
      liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
  42. 3
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath
  43. 12
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.project
  44. 7
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs
  45. 2
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
  46. 2
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5
  47. 2
      liferay-plugins-sdk-6.2/ivy.xml.MD5
  48. 11
      liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.project
  49. 3
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
  50. 11
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.project
  51. 7
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs
  52. 12
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
  53. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  54. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-accesso-atti-portlet-service.jar
  55. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  56. BIN
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  57. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java
  58. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
  59. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml.MD5
  60. 22
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath
  61. 47
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project
  62. 12
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/.jsdtscope
  63. 7
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jdt.core.prefs
  64. 3
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jst.jsp.core.prefs
  65. 6
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component
  66. 7
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
  67. 11
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  68. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container
  69. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name
  70. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.tern-project
  71. 7
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/build.xml
  72. 3
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/META-INF/MANIFEST.MF
  73. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/.gitignore
  74. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  75. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  76. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  77. 10
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-display.xml
  78. 18
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  79. 32
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-portlet.xml
  80. 35
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/portlet.xml
  81. 145
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java
  82. 121
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  83. 139
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/ControlloPraticaSearch.java
  84. 37
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/IndexField.java
  85. 2568
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/aui.tld
  86. 538
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld
  87. 158
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-portlet.tld
  88. 106
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-security.tld
  89. 65
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-theme.tld
  90. 4696
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-ui.tld
  91. 141
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-util.tld
  92. 3
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/web.xml
  93. 0
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css
  94. 253
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/altri_task.jsp
  95. 36
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/azione_correttiva.jsp
  96. 23
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/init.jsp
  97. 339
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp
  98. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/icon.png
  99. 0
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/js/main.js
  100. 18
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml
  101. Some files were not shown because too many files have changed in this diff Show More

4
.gitignore vendored

@ -1,8 +1,6 @@
*.class *.class
*.war *.war
!kaleo-web-6.2.0.3.war !kaleo-web-6.2.0.3.war
portos-*.jar
!portos-kaleo-portlet-service.jar
**/classes/ **/classes/
**/.sass-cache/ **/.sass-cache/
**/.ivy/cache/ **/.ivy/cache/
@ -10,3 +8,5 @@ portos-*.jar
**/build/ **/build/
.DS_Store .DS_Store
._* ._*
liferay-plugins-sdk-6.2/sonar-scanner-4.8.0.2856-windows/
.settings

10
liferay-plugins-sdk-6.2/.idea/.gitignore vendored

@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Zeppelin ignored files
/ZeppelinRemoteNotebooks/

6
liferay-plugins-sdk-6.2/.idea/ant.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AntConfiguration">
<buildFile url="file://$PROJECT_DIR$/build.xml" />
</component>
</project>

6
liferay-plugins-sdk-6.2/.idea/jpa-buddy.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JpaBuddyIdeaProjectConfig">
<option name="renamerInitialized" value="true" />
</component>
</project>

9
liferay-plugins-sdk-6.2/.idea/misc.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" default="true">
<output url="file://$PROJECT_DIR$/classes" />
</component>
<component name="ProjectType">
<option name="id" value="jpab" />
</component>
</project>

6
liferay-plugins-sdk-6.2/.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

0
liferay-plugins-sdk-6.2/.scannerwork/.sonar_lock

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

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

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 Feb 07 14:49:02 CET 2023
app.server.tomcat.lib.global.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\lib\\ext
app.server.tomcat.deploy.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps
app.server.parent.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5
app.server.tomcat.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps\\ROOT

10
liferay-plugins-sdk-6.2/build.marco.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)
#Fri Feb 10 15:41:28 CET 2023
app.server.tomcat.lib.global.dir = C:\\liferay-sviluppo\\sicilia\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\lib\\ext
app.server.tomcat.deploy.dir = C:\\liferay-sviluppo\\sicilia\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps
app.server.parent.dir = C:\\liferay-sviluppo\\sicilia\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5
app.server.tomcat.dir = C:\\liferay-sviluppo\\sicilia\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = C:\\liferay-sviluppo\\sicilia\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps\\ROOT

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-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.

22
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/.classpath

@ -0,0 +1,22 @@
<?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">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/hook">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

36
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/.project

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

6
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/build.xml

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="fake-advanced-filesystem-hook" basedir=".">
<import file="C:/liferay-sviluppo/6_2/liferay-plugins-sdk-6.2-ee-sp11/hooks/build-common-hook.xml" />
</project>

3
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/META-INF/MANIFEST.MF

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

5
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/lib/.gitignore vendored

@ -0,0 +1,5 @@
/commons-logging.jar
/log4j.jar
/util-bridges.jar
/util-java.jar
/util-taglib.jar

9
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-hook.xml

@ -0,0 +1,9 @@
<?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>
<service>
<service-type>com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService</service-type>
<service-impl>com.liferay.portlet.documentlibrary.service.FakeDLFileEntryLocalServiceImpl</service-impl>
</service>
</hook>

11
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-plugin-package.properties

@ -0,0 +1,11 @@
name=Sample Wrapper
module-group-id=liferay
module-incremental-version=1
tags=
short-description=This hook shows how to wrap Liferay's core services and models.
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+

9
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/liferay-releng.properties

@ -0,0 +1,9 @@
bundle=false
category=
demo-url=
dependent-apps=
labs=true
marketplace=false
public=true
support-url=
supported=false

1
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/META-INF/javadocs-all.xml

@ -0,0 +1 @@
<?xml version="1.0"?>

2
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/META-INF/javadocs-rt.xml

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<javadocs></javadocs>

153
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/src/com/liferay/portlet/documentlibrary/service/FakeDLFileEntryLocalServiceImpl.java

@ -0,0 +1,153 @@
package com.liferay.portlet.documentlibrary.service;
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 java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class FakeDLFileEntryLocalServiceImpl extends DLFileEntryLocalServiceWrapper {
@Override
public File getFile(long userId, long fileEntryId, String version,
boolean incrementCounter, int increment) throws PortalException,
SystemException {
File file = null;
try{
file = super.getFile(userId, fileEntryId, version, incrementCounter, increment);
} catch (Exception e){
try {
file = File.createTempFile("fakeFile", ".fake");
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return file;
}
@Override
public File getFile(long userId, long fileEntryId, String version,
boolean incrementCounter) throws PortalException, SystemException {
File file = null;
try{
file = super.getFile(userId, fileEntryId, version, incrementCounter);
} catch (Exception e){
try {
file = File.createTempFile("fakeFile", ".fake");
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return file;
}
@Override
public InputStream getFileAsStream(long userId, long fileEntryId,
String version, boolean incrementCounter, int increment)
throws PortalException, SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(userId, fileEntryId, version, incrementCounter, increment);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
@Override
public InputStream getFileAsStream(long userId, long fileEntryId,
String version, boolean incrementCounter) throws PortalException,
SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(userId, fileEntryId, version, incrementCounter);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
@Override
public InputStream getFileAsStream(long userId, long fileEntryId,
String version) throws PortalException, SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(userId, fileEntryId, version);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
@Override
public InputStream getFileAsStream(long fileEntryId, String version,
boolean incrementCounter, int increment) throws PortalException,
SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(fileEntryId, version, incrementCounter, increment);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
@Override
public InputStream getFileAsStream(long fileEntryId, String version,
boolean incrementCounter) throws PortalException, SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(fileEntryId, version, incrementCounter);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
@Override
public InputStream getFileAsStream(long fileEntryId, String version)
throws PortalException, SystemException {
InputStream stream = null;
try{
stream = super.getFileAsStream(fileEntryId, version);
} catch (Exception e){
try {
stream = new FileInputStream(File.createTempFile("fakeFile", ".fake"));
} catch (IOException io) {
_log.error("Fallback fake advanced filesystem failed to create temporary file");
}
}
return stream;
}
public FakeDLFileEntryLocalServiceImpl(
DLFileEntryLocalService dlFileEntryLocalService) {
super(dlFileEntryLocalService);
}
Log _log = LogFactoryUtil.getLog(this.getClass());
}

3
liferay-plugins-sdk-6.2/hooks/fake-advanced-filesystem-hook/docroot/WEB-INF/web.xml

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
</web-app>

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <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/jre">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>

11
liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.project

@ -33,4 +33,15 @@
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1676466957625</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> </projectDescription>

7
liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs

@ -0,0 +1,7 @@
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/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml

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

3
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <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/jre">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
@ -18,6 +18,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=portos-p7m-preview-hook&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

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

@ -32,6 +32,16 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1676466957750</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> </projectDescription>

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

@ -0,0 +1,7 @@
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/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml

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

2
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5

@ -1 +1 @@
2c267788e15963b22e4e720e12f5611c db650d63ad964c1897f8af97aac0e727

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

@ -1 +1 @@
ae2292c03b059802eec34967b7e85b8a 8e943594b3e1f97e457b967864997dc5

11
liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.project

@ -33,4 +33,15 @@
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1676466957625</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> </projectDescription>

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

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

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

@ -33,4 +33,15 @@
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1676466957641</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> </projectDescription>

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

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

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

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<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>
<property name="context-root" value="portos-accesso-atti-portlet"/>
<property name="java-output-path" value="/portos-accesso-atti-portlet/docroot/WEB-INF/classes"/>
</wb-module>
</project-modules>

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

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

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

File binario non mostrato.

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.

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

@ -43,7 +43,6 @@ import it.tref.liferay.portos.accesso.atti.NoSuchRichiestaAccessoAttiException;
import it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti; import it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti;
import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl; import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl;
import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl; import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl;
import it.tref.liferay.portos.accesso.atti.service.persistence.RichiestaAccessoAttiPersistence;
import java.io.Serializable; import java.io.Serializable;

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_atti build.namespace=portos_atti
build.number=30 build.number=31
build.date=1632921863898 build.date=1675846169523
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

@ -1 +1 @@
987c468ab803b131a7ff0c2ece8911b3 c730f302e3c8f650a807fe624894d9ea

22
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath

@ -0,0 +1,22 @@
<?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/jre">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

47
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>portos-advanced-operation-portlet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
<filteredResources>
<filter>
<id>1677484993608</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>

12
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/.jsdtscope

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="docroot"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

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

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

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

6
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component → liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="portos-firma-portlet"> <wb-module deploy-name="portos-advanced-operation-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/> <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/src"/>
<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"> <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> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>
<property name="context-root" value="portos-firma-portlet"/> <property name="context-root" value="portos-advanced-operation-portlet"/>
<property name="java-output-path" value="/portos-firma-portlet/docroot/WEB-INF/classes"/> <property name="java-output-path" value="/portos-advanced-operation-portlet/docroot/WEB-INF/classes"/>
</wb-module> </wb-module>
</project-modules> </project-modules>

7
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml

@ -0,0 +1,7 @@
<root>
<facet id="liferay.portlet">
<node name="libprov">
<attribute name="provider-id" value="com.liferay.ide.eclipse.plugin.portlet.libraryProvider"/>
</node>
</facet>
</root>

11
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

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

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container

@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name

@ -0,0 +1 @@
Window

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.tern-project

@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}

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

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="portos-advanced-operation-portlet" basedir="." default="deploy">
<property name="import.shared" value="portos-bo-shared,portos-kaleo-shared" />
<import file="../build-common-portlet.xml" />
</project>

3
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/META-INF/MANIFEST.MF

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

1
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/.gitignore vendored

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

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

File binario non mostrato.

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

File binario non mostrato.

10
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-display.xml

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

18
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -0,0 +1,18 @@
name=Portos Advanced Operation
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
long-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
portal-dependency-jars=\
jstl-api.jar,\
jstl-impl.jar
portal-dependency-tlds=\
c.tld
required-deployment-contexts=\
portos-bo-portlet

32
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>1</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-weight>1.6</control-panel-entry-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>portos-advanced-operation-portlet</css-class-wrapper>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>

35
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/portlet.xml

@ -0,0 +1,35 @@
<?xml version="1.0"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet>
<portlet-name>1</portlet-name>
<display-name>Portos Advanced Operation</display-name>
<portlet-class>it.nextmind.liferay.portos.advanced.operation.portlet.AdvancedOperationPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/html/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<portlet-info>
<title>Portos Advanced Operation</title>
<short-title>Portos Advanced Operation</short-title>
<keywords></keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>

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

@ -0,0 +1,145 @@
package it.nextmind.liferay.portos.advanced.operation.portlet;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.servlet.SessionErrors;
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.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet;
import it.nextmind.liferay.portos.advanced.operation.util.AdvancedOperationUtil;
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.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.util.Date;
import java.util.List;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
public class AdvancedOperationPortlet extends MVCPortlet {
private static class Privati {
static void checkIfUserIsCompanyAdmin(ActionRequest actionRequest) throws Exception{
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
if(!PortalUtil.isCompanyAdmin(themeDisplay.getUser())){
SessionErrors.add(actionRequest, "operazione-non-permessa");
throw new Exception("Action permitted to CompanyAdmins only");
}
}
static void ripristinaPratica(IntPratica intPratica, int status) throws PortalException, SystemException{
long docPraticaAnnullamentoId = intPratica.getDocPraticaAnnullamentoId();
IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId);
IntPraticaLocalServiceUtil.updateStatus(intPratica.getIntPraticaId(), status);
}
}
public void fixNormLavoriInProprio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
Privati.checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
boolean normLavoriInProprioFlag = ParamUtil.getBoolean(actionRequest, "normLavoriInProprioFlag");
List<DettPratica> dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
for(DettPratica dettPratica : dettPraticaList){
if(dettPratica.getNormLavoriInProprio() == normLavoriInProprioFlag){
dettPratica.setNormLavoriInProprio(!normLavoriInProprioFlag);
dettPratica.setModifiedDate(new Date());
DettPraticaLocalServiceUtil.updateDettPratica(dettPratica);
}
}
}
public void fixStatusPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
Privati.checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){
IntPraticaLocalServiceUtil.updateStatus(intPraticaId, WorkflowConstants.STATUS_PENDING);
} else {
SessionErrors.add(actionRequest, "operazione-impossibile");
}
}
public void ripristinaPraticaVidimata(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
Privati.checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
Privati.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");
}
}
public void ripristinaPraticaConforme(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
Privati.checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){
Privati.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");
}
}
public void deleteDocPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
Privati.checkIfUserIsCompanyAdmin(actionRequest);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
List<DocPratica> docPraticaOrfani = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
for(DocPratica docPratica : docPraticaOrfani){
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
}
}
public void findIntPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L);
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto", "");
IntPratica intPratica = null;
if(intPraticaId != -1L){
intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
} else {
intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
}
if(Validator.isNotNull(intPratica)){
actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPratica.getIntPraticaId()));
} else {
SessionErrors.add(actionRequest, "nessuna-pratica-trovata");
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
}
}
public void correggiBug(ActionRequest actionRequest, ActionResponse actionResponse) {
}
}

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

@ -0,0 +1,121 @@
package it.nextmind.liferay.portos.advanced.operation.util;
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 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.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.util.ArrayList;
import java.util.List;
public class AdvancedOperationUtil {
private static class P_ {
static boolean e(Exception ex) {
return !nl(ex);
}
static boolean nl(Object o) {
return Validator.isNull(o);
}
static
TupleIntPratica fetchIntPratica(long intPraticaId) {
IntPratica ip = null;
Exception ex = null;
try {
ip = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
} catch (Exception e) {
ex = e;
}
if (e(ex)) handleIntPraticaErr(ex);
return new TupleIntPratica(ip, ex);
}
static void handleIntPraticaErr(Exception ex) {
log.error(ex,ex);
}
static
TupleDocPraticaList findByIntPraticaList(long intPraticaId) {
List<DocPratica> dpl = new ArrayList<DocPratica>();
Exception ex = null;
try {
dpl = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
} catch (Exception e) {
ex = e;
}
if (e(ex)) handleDocPraticaListErr(ex);
return new TupleDocPraticaList(dpl, ex);
}
static void handleDocPraticaListErr(Exception ex) {
log.error(ex,ex);
}
static List<DettPratica> getDettPraticaList(long intPraticaId){
List<DettPratica> dettPraticaList = new ArrayList<DettPratica>();
try {
dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId);
} catch (SystemException e) {
log.error(e,e);
}
return dettPraticaList;
}
static final Log log = LogFactoryUtil.getLog(AdvancedOperationUtil.class);
}
static class TupleIntPratica {
IntPratica rs; Exception er;
TupleIntPratica(IntPratica ip, Exception ex) {rs=ip;er=ex;}
}
static class TupleDocPraticaList {
List<DocPratica> rs; Exception er;
TupleDocPraticaList(List<DocPratica> dpl, Exception ex) {rs=dpl;er=ex;}
}
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) {
TupleIntPratica intPratica = P_.fetchIntPratica(intPraticaId);
if (P_.nl(intPratica.er) && P_.nl(intPratica.rs)) {
TupleDocPraticaList docPraticaList = P_.findByIntPraticaList(intPraticaId);
if (P_.nl(docPraticaList.er))
return docPraticaList.rs;
}
return new ArrayList<DocPratica>();
}
public static boolean hasDettPratica(long intPraticaId){
return !P_.getDettPraticaList(intPraticaId).isEmpty();
}
public static boolean getNormLavoriInProprioFlag(long intPraticaId){
List<DettPratica> dettPraticaList = P_.getDettPraticaList(intPraticaId);
if(!dettPraticaList.isEmpty()){
return dettPraticaList.get(0).getNormLavoriInProprio();
}
return false;
}
public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){
return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" : "Aggiungi flag normLavoriInProprio";
}
public static boolean isStatoPraticaIN(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
return "IN".equals(intPratica.getStatoPratica());
}
return false;
}
}

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

@ -0,0 +1,139 @@
package it.nextmind.liferay.portos.advanced.operation.util;
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.search.BooleanClauseOccur;
import com.liferay.portal.kernel.search.BooleanQuery;
import com.liferay.portal.kernel.search.BooleanQueryFactoryUtil;
import com.liferay.portal.kernel.search.Field;
import com.liferay.portal.kernel.search.Hits;
import com.liferay.portal.kernel.search.ParseException;
import com.liferay.portal.kernel.search.SearchContext;
import com.liferay.portal.kernel.search.SearchContextFactory;
import com.liferay.portal.kernel.search.SearchEngineUtil;
import com.liferay.portal.kernel.search.SearchException;
import com.liferay.portal.kernel.search.Sort;
import com.liferay.portal.kernel.search.TermQuery;
import com.liferay.portal.kernel.search.TermQueryFactoryUtil;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.PropsKeys;
import com.liferay.portal.kernel.util.PropsUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowConstants;
import it.mwg.sismica.bo.shared.util.IndexField;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import java.text.DateFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
public class ControlloPraticaSearch {
private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaSearch.class);
public static final Format DATE_FORMAT_LUCENE = FastDateFormatFactoryUtil.getSimpleDateFormat("yyyyMMdd");
public static final DateFormat DATE_FORMAT_STRING = new SimpleDateFormat("dd/MM/yyyy");
public static Hits searchFixBug(HttpServletRequest request,int start, int end) {
SearchContext searchContext = SearchContextFactory.getInstance(request);
boolean searchForExport = ParamUtil.getBoolean(request, "searchForExport", false);
if (searchForExport) {
int maxEnd = GetterUtil.getInteger(PropsUtil.get(PropsKeys.INDEX_FILTER_SEARCH_LIMIT));
searchContext.setStart(0);
searchContext.setEnd(maxEnd);
searchContext.setAttribute("paginationType", "none");
} else {
searchContext.setAttribute("paginationType", "more");
searchContext.setStart(start);
searchContext.setEnd(end);
}
// Gestione Ordinamento
searchContext.setSorts(getOrderedQuery(request));
Hits hits = null;
try {
BooleanQuery query = BooleanQueryFactoryUtil.create(searchContext);
// Condizioni necessarie per questa ricerca: entryClassName=ControlloPratica & roleIds non e tra i
// taskAssigneeIds userId non e tra taskAssigneeId
TermQuery term = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME,
ControlloPratica.class.getName());
query.add(term, BooleanClauseOccur.MUST);
BooleanQuery subQuery = BooleanQueryFactoryUtil.create(searchContext);
if (subQuery.clauses().size() > 0) {
query.add(subQuery, BooleanClauseOccur.MUST_NOT);
}
term = TermQueryFactoryUtil.create(searchContext, IndexField.STATUS, WorkflowConstants.STATUS_PENDING);
query.add(term, BooleanClauseOccur.MUST);
// Ricavo i groupId relativi all utente che effettua la ricerca per filtrare
subQuery = BooleanQueryFactoryUtil.create(searchContext);
// Condizioni aggiuntive
query(query, searchContext);
hits = SearchEngineUtil.search(searchContext, query);
logResults(query, hits);
} catch (ParseException | SearchException e) {
_log.error(e, e);
}
return hits;
}
protected static void logResults(BooleanQuery query, Hits hits) {
if (_log.isDebugEnabled()) {
_log.debug(query + " --- " + hits.getLength());
}
}
private static void query(BooleanQuery query, SearchContext searchContext) throws ParseException {
String task = "signal_cittadino";
TermQuery term = TermQueryFactoryUtil.create(searchContext, IndexField.TASK, task);
query.add(term, BooleanClauseOccur.MUST_NOT);
String statoPratica = "IN";
term = TermQueryFactoryUtil.create(searchContext, IndexField.STATO_PRATICA, statoPratica);
query.add(term, BooleanClauseOccur.MUST);
}
public static List<String> getFields() {
return Arrays.asList(IndexField.NUMERO_PROGETTO, IndexField.TIPO_PROCEDURA, IndexField.CODICE_PROVINCIA,
IndexField.COMUNE_ID, IndexField.TITOLARE, IndexField.ISTRUTTORE, IndexField.ISTRUTTORE_ID,
IndexField.COMMITTENTE, IndexField.SOGGETTO, IndexField.UNITA_OPERATIVA, IndexField.GEOLOGO_ID,
IndexField.PARERI_FORNITI, IndexField.TASK, IndexField.DATA_RICHIESTA_DA, IndexField.DATA_RICHIESTA_A,
IndexField.DATA_ESITO_DA, IndexField.DATA_ESITO_A, IndexField.STATO_PRATICA);
}
protected static Sort[] getOrderedQuery(HttpServletRequest request) {
Sort[] sortes = new Sort[1];
String orderField = ParamUtil.getString(request, "orderByCol", "numeroProgetto");
String orderType = ParamUtil.getString(request, "orderByType", "dec");
sortes[0] = new Sort();
if (Validator.isNotNull(orderField)) {
sortes[0].setFieldName(orderField + "_sortable");
}
switch (orderField) {
case IndexField.NUMERO_PROGETTO:
sortes[0].setType(Sort.LONG_TYPE);
break;
default:
sortes[0].setType(Sort.STRING_TYPE);
}
sortes[0].setReverse(!"asc".equals(orderType));
return sortes;
}
}

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

@ -0,0 +1,37 @@
package it.nextmind.liferay.portos.advanced.operation.util;
import java.io.Serializable;
@SuppressWarnings("serial")
public class IndexField implements Serializable {
public static final String CODICE_PROVINCIA = "codiceProvincia";
public static final String COMMITTENTE = "committente";
public static final String COMUNE_ID = "comuneId";
public static final String CONTROLLO_PRATICA_ID = "controlloPraticaId";
public static final String DATA_ESITO = "dataEsito";
public static final String DATA_ESITO_A = "dataEsitoA";
public static final String DATA_ESITO_DA = "dataEsitoDa";
public static final String DATA_RICHIESTA = "dataRichiesta";
public static final String DATA_RICHIESTA_A = "dataRichiestaA";
public static final String DATA_RICHIESTA_DA = "dataRichiestaDa";
public static final String DESCRIZIONE = "descrizione";
public static final String ESITO_PENDENTE = "esitoPendente";
public static final String GEOLOGO_ID = "geologoId";
public static final String IN_LAVORAZIONE_SUE = "inLavorazioneSue";
public static final String INT_PRATICA_ID = "intPraticaId";
public static final String ISTRUTTORE = "istruttore";
public static final String ISTRUTTORE_ID = "istruttoreId";
public static final String NUMERO_PROGETTO = "numeroProgetto";
public static final String PARERI_FORNITI = "pareriForniti";
public static final String PRATICA_APERTA = "praticaAperta";
public static final String SOGGETTO = "soggetto";
public static final String STATO_PRATICA = "statoPratica";
public static final String STATUS = "status";
public static final String TASK = "task";
public static final String TASK_ASSIGNEE_ROLE_IDS = "taskAssigneeRoleIds";
public static final String TASK_ASSIGNEE_USER_ID = "taskAssigneeUserId";
public static final String TIPO_PROCEDURA = "tipoProcedura";
public static final String TITOLARE = "titolare";
public static final String UNITA_OPERATIVA = "unitaOperativa";
}

2568
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/aui.tld

File diff soppresso perché troppo grande Load Diff

538
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld

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

158
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-portlet.tld

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

106
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-security.tld

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

65
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-theme.tld

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

4696
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-ui.tld

File diff soppresso perché troppo grande Load Diff

141
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/tld/liferay-util.tld

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

3
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/web.xml

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
</web-app>

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

253
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/altri_task.jsp

@ -0,0 +1,253 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.kernel.search.Document"%>
<%@page import="com.liferay.portal.kernel.search.Hits"%>
<%@page import="it.nextmind.liferay.portos.advanced.operation.util.IndexField"%>
<%@page import="it.nextmind.liferay.portos.advanced.operation.util.ControlloPraticaSearch"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstance"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants"%>
<%@page import="java.util.List"%>
<%@ include file="/html/init.jsp" %>
<%
PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
//GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER
for (String param : ControlloPraticaSearch.getFields()) {
iteratorURL.setParameter(param, ParamUtil.getString(request, param, StringPool.BLANK));
}
String orderByCol = ParamUtil.getString(request, "orderByCol", IndexField.NUMERO_PROGETTO);
String orderByType = ParamUtil.getString(request, "orderByType", "dec");
request.setAttribute("tabs1", "Tab_AtriTask");
%>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>">
<%
List<ControlloPratica> listaControlloPratica = new ArrayList<ControlloPratica>();
Hits hits = ControlloPraticaSearch.searchFixBug(request, searchContainer.getStart(),
searchContainer.getEnd());
for (Document doc : hits.toList()) {
String controlloPraticaId = doc.get("controlloPraticaId");
if (Validator.isNotNull(controlloPraticaId)) {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.fetchControlloPratica(
GetterUtil.getLong(controlloPraticaId));
if (Validator.isNotNull(controlloPratica)) {
listaControlloPratica.add(controlloPratica);
}
}
}
searchContainer.setTotal(hits.getLength());
%>
<liferay-ui:search-container-results results="<%=listaControlloPratica%>" />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.ControlloPratica"
modelVar="controlloPratica">
<%
//ADT - BUG-12 Aggiunta colonna Data Esito
String currentTab = (String) request.getAttribute("tabs1");
//Informazioni relative alla pratica
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica.getIntPraticaId());
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
%>
<c:if test="<%= Validator.isNotNull(intPratica) %>">
<%
ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(controlloPratica.getControlloPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio
.getCodiceProvincia());
//Informazioni relative al workflow
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink(
controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(),
controlloPratica.getPrimaryKey());
List<WorkflowTask> listaTask = null;
WorkflowInstance workflowInstance = null;
if (workflowInstanceLink != null) {
long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId();
workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(controlloPratica.getCompanyId(),
workflowInstanceId);
listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null,
workflowInstance.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
}
WorkflowTask task = null;
if (listaTask != null && !listaTask.isEmpty()) {
task = listaTask.get(0);
}
%>
<liferay-ui:search-container-column-text name="taskName">
<%
if (task != null) {
out.print(LanguageUtil.get(pageContext,task.getName()));
User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId());
if (userTask != null) {
out.print(" (");
out.print(Generics.capitalizeFull(userTask.getFullName()));
out.print(StringPool.CLOSE_PARENTHESIS);
}
} else if (workflowInstance != null) {
out.print(LanguageUtil.get(pageContext, workflowInstance.getState()));
}
if (lastDettPratica != null) {
if (lastDettPratica.getTipoIntegrazione() != null) {
//BUG BO ID=14: NOME TASK SEZIONE ATTIVITÀ
if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) {
out.print(" - Integrazione #");
out.print(lastDettPratica.getIntegrazione());
} else if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) {
out.print(" - Variante #");
out.print(lastDettPratica.getVarianteNumero());
}
}
}
if (intPratica.hasRichiestaIntegrazioneAttiva()) {
out.print(StringPool.SPACE);
out.print(LanguageUtil.get(pageContext, "in-corso"));
}
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Esito">
<%
out.print(ControlloPraticaLocalServiceUtil.getTipoEsito(controlloPratica.getControlloPraticaId()));
if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) {
out.print(StringPool.SPACE);
out.print(LanguageUtil.get(pageContext, "in-corso"));
}
%>
</liferay-ui:search-container-column-text>
<%-- ADT - BUG-12 Aggiunta colonna Data Esito --%>
<c:if test='<%= "Tab_TaskCompletati".equals(currentTab) %>'>
<liferay-ui:search-container-column-text name="Data Esito" value='<%= controlloPratica
.getStatusDate() != null ? dateFormatDate.format(controlloPratica.getStatusDate())
: StringPool.BLANK %>' >
</liferay-ui:search-container-column-text>
</c:if>
<liferay-ui:search-container-column-text name="Pratica">
<%= intPratica.getTitle(locale, true) %>
<%= Validator.isNull(intPratica.getTipoProcedura()) ? StringPool.BLANK
: "<br><small>" + LanguageUtil.get(pageContext, "label_procedura_" + intPratica.getTipoProcedura())
+ ") " + LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura())
+ "</small>" %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="istruttore">
<c:if test="<%= intPratica.getStatusByUserId() != 0L %>">
<%
User tecnico = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (tecnico != null) {
out.print(tecnico.getFullName());
} else {
out.print(StringPool.OPEN_BRACKET);
out.print(intPratica.getStatusByUserId());
out.print(StringPool.CLOSE_BRACKET);
}
%>
</c:if>
<c:if test="<%= intPratica.getStatusByUserId() == 0L %>">
-
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="unita-operativa">
<%= intPratica.getUnitaOperativa() > 0 ? String.valueOf(intPratica.getUnitaOperativa()) : StringPool.BLANK %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="data-inizio-procedimento"
value="<%= dateFormatDate.format(controlloPratica.getCreateDate()) %>" />
<liferay-ui:search-container-column-text name="provincia" >
<%= provincia.getProvincia() %> - <%= comune.getDenominazione() %>
</liferay-ui:search-container-column-text>
<c:if test='<%= "Tab_MieiTask".equals(currentTab) %>'>
<liferay-ui:search-container-column-text name="pareri-endoprocedimentali">
<%
List<ParereGeologo> tutti = ParereGeologoLocalServiceUtil
.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (tutti.size() > 0) {
List<ParereGeologo> inCorso = ParereGeologoLocalServiceUtil.findByIntPraticaIdInCorso(
intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (inCorso.size() > 0) {
out.print("In attesa di:<ul style=\"list-style:disc inside\">");
for (ParereGeologo parere : inCorso) {
String fullName;
if (parere.getGeologoUserId() != 0) {
fullName = UserLocalServiceUtil.fetchUser(parere.getGeologoUserId()).getFullName();
} else {
fullName = "U.O. " + parere.getUnitaOperativa();
}
%>
<li>
<%= dateFormatDate.format(parere.getCreateDate()) %>:
<%= fullName %>
</li>
<%
}
out.print("</ul>");
}
int espressi = 0;
int annullati = 0;
for (ParereGeologo parere : tutti) {
if (Validator.isNotNull(parere.getDtAnnullamento())) {
annullati++;
} else if (Validator.isNotNull(parere.getDtCompilazione())
&& (parere.getAssegnatoreUserId() == 0 || Validator.isNotNull(parere.getDtApprovazione()))) {
espressi++;
}
}
if (espressi == 1) {
out.print("<i class=\"fa icon-ok text-success\"></i> 1 parere già espresso");
} else if (espressi > 1) {
out.print("<i class=\"fa icon-ok text-success\"></i> " + espressi + " pareri già espressi");
}
if (annullati == 1) {
out.print("<i class=\"fa icon-remove text-error\"></i> 1 richiesta annullata");
} else if (annullati > 1) {
out.print("<i class=\"fa icon-remove text-error\"></i> " + annullati + " richieste annullate");
}
}
%>
</liferay-ui:search-container-column-text>
</c:if>
<liferay-ui:search-container-column-text name="GG*" cssClass="text-center">
<%= ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(controlloPratica
.getControlloPraticaId()) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-jsp path="/html/azione_correttiva.jsp" align="right"
cssClass="text-center"/>
</c:if>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container>

36
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/azione_correttiva.jsp

@ -0,0 +1,36 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp"%>
<%
%>
<liferay-portlet:actionURL
name="correggiBug"
var="correggiBugURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')";
%>
<aui:form action="<%= correggiBugURL %>" method="post" name="correggiBug">
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaVidimataBtn"
onClick='<%= functionRipristinaVidimata %>'
value="Ripristina come VIDIMATA"
>
</aui:button>
</aui:form>
<script type="text/javascript">
YUI().use('aui-tooltip', function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</script>

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

@ -0,0 +1,23 @@
<%@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.TimeZoneUtil"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
<%@taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<liferay-theme:defineObjects />
<portlet:defineObjects />
<%
Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome"));
%>

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

@ -0,0 +1,339 @@
<%@page import="com.liferay.portal.kernel.util.DateFormatFactoryUtil"%>
<%@page import="java.util.Date"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="java.util.List"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="it.nextmind.liferay.portos.advanced.operation.util.AdvancedOperationUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowHandlerUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@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);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
%>
<liferay-portlet:actionURL
name="findIntPratica"
var="findIntPraticaURL" >
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<aui:container id="adv-operation-portlet">
<h1>Problemi pratica</h1>
<aui:row>
<liferay-ui:error key="nessuna-pratica-trovata" message="Nessuna pratica trovata" />
<liferay-ui:error key="operazione-impossibile" message="Impossibile eseguire questa azione su questa Pratica" />
<liferay-ui:error key="operazione-non-permessa" message="Non ha i permessi per effettuare questa operazione" />
<liferay-ui:error key="operazione-non-riuscita" message="Errore imprevisto durante l'operazione" />
</aui:row>
<h1>Gestisci pratica</h1>
<aui:row style="margin-top: 10px">
<aui:col span="12">
<aui:row style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">
Form per trovare una pratica
</aui:row>
<aui:form action="<%= findIntPraticaURL %>" method="post" name="fmFindIntPratica">
<aui:row style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">
<aui:col span="3">
<aui:input name="intPraticaId" label="IntPraticaId:" inlineLabel="left">
<aui:validator name="number" />
</aui:input>
</aui:col>
<aui:col span="3">
<aui:input name="numeroProgetto" label="Numero progetto:" inlineLabel="left">
<aui:validator name="number" />
</aui:input>
</aui:col>
<aui:col span="2">
<aui:button
name="trovaPraticaBtn"
type="submit"
value="Trova Pratica" />
</aui:col>
</aui:row>
</aui:form>
</aui:col>
</aui:row>
<% 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> <%= intPraticaId %>
<liferay-ui:icon
image="impersonate_user"
target="_blank"
url="<%= impersonateUserURL %>">
</liferay-ui:icon>
</p>
</aui:col>
</aui:row>
<aui:row>
<aui:col span="2">
<p><b>Numero Progetto:</b> <%= intPratica.getNumeroProgetto() %></p>
</aui:col>
<aui:col span="2">
<p><b>Username:</b> <%= intPratica.getUserName() %></p>
</aui:col>
<aui:col span="2">
<p><b>Tipo Pratica:</b> <%= intPratica.getTipoPratica() %></p>
</aui:col>
<aui:col span="2">
<p><b>ID Territorio:</b> <%= intPratica.getTerritorioId() %></p>
</aui:col>
</aui:row>
<aui:row>
<aui:col span="2">
<p><b>Tipo Procedura:</b> <%= intPratica.getTipoProcedura() %></p>
</aui:col>
<aui:col span="2">
<p><b>Stato Pratica:</b> <%= intPratica.getStatoPratica() %></p>
</aui:col>
<aui:col span="2">
<p><b>Validata:</b> <%= intPratica.getValidata() %></p>
</aui:col>
<aui:col span="2">
<p><b>Esito Controllo:</b> <%= intPratica.getEsitoControllo() %></p>
</aui:col>
</aui:row>
<aui:row>
<aui:col span="2">
<p><b>Status:</b> <%= intPratica.getStatus() %></p>
</aui:col>
</aui:row>
<aui:row>
<% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){
boolean normLavoriInProprioFlag = AdvancedOperationUtil.getNormLavoriInProprioFlag(intPraticaId);
%>
<aui:col span="3">
<liferay-portlet:actionURL
name="fixNormLavoriInProprio"
var="fixNormLavoriInProprioURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="normLavoriInProprioFlag" value="<%= String.valueOf(normLavoriInProprioFlag) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionLavori = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixLavoriInEconomia','Sei sicuro di voler cambiare i flag LAVORI IN ECONOMIA di questa pratica?')";
%>
<aui:form action="<%= fixNormLavoriInProprioURL %>" method="post" name="fixLavoriInEconomia">
<aui:button
name="normLavoriInProprioBtn"
cssClass="btn-primary"
type="button"
value="<%= AdvancedOperationUtil.getLavoriInEconomiaBtnLabel(normLavoriInProprioFlag) %>"
onClick='<%= functionLavori %>'/>
</aui:form>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %>
<aui:col span="3">
<liferay-portlet:actionURL
name="fixStatusPratica"
var="fixStatusPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionStatus = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixStatusPratica','Sei sicuro di voler modificare lo status di questa pratica?')";
%>
<aui:form action="<%= fixStatusPraticaURL %>" method="post" name="fixStatusPratica">
<aui:button
type="button"
cssClass="btn-primary"
name="fixStatusPraticaBtn"
onClick='<%= functionStatus %>'
value="Fixa lo STATUS"
>
</aui:button>
</aui:form>
</aui:col>
<% } %>
<% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %>
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaVidimata"
var="ripristinaPraticaVidimataURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')";
%>
<aui:form action="<%= ripristinaPraticaVidimataURL %>" method="post" name="ripristinaPraticaVidimata">
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaVidimataBtn"
onClick='<%= functionRipristinaVidimata %>'
value="Ripristina come VIDIMATA"
>
</aui:button>
</aui:form>
</aui:col>
<aui:col span="3">
<liferay-portlet:actionURL
name="ripristinaPraticaConforme"
var="ripristinaPraticaConformeURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionRipristinaConforme = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaConforme','Sei sicuro di voler ripristinare questa pratica come AUTORIZZATA/CONFORME?')";
%>
<aui:form action="<%= ripristinaPraticaConformeURL %>" method="post" name="ripristinaPraticaConforme">
<aui:button
type="button"
cssClass="btn-primary"
name="ripristinaPraticaConformeBtn"
onClick='<%= functionRipristinaConforme %>'
value="Ripristina come AUTORIZZATA/CONFORME"
>
</aui:button>
</aui:form>
</aui:col>
<% } %>
</aui:row>
</aui:row>
<aui:row id="docPraticaDiv">
<h1>Problemi documenti</h1>
<h1>Gestione documenti con IntPratica inestistente</h1>
<%
List<DocPratica> docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId);
%>
<h2>Documenti Totali: <%= docPraticaList.size() %></h2>
<%
List<DocPratica> docPraticaOrfaniList = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId);
if(!docPraticaOrfaniList.isEmpty()){
%>
<liferay-portlet:actionURL
name="deleteDocPratica"
var="deleteDocPraticaURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<aui:row>
<h2>Documenti orfani di DettPratica: <%= docPraticaOrfaniList.size() %></h2>
<%
String functionEliminaDoc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteDocPratica','Sei sicuro di voler eliminare tutti i documenti?')";
%>
<aui:form action="<%= deleteDocPraticaURL %>" method="post" name="deleteDocPratica">
<aui:button-row>
<aui:button
type="button"
name="deleteDocPraticaBtn"
cssClass="btn-primary"
onClick='<%= functionEliminaDoc %>'
value="Elimina tutti">
</aui:button>
</aui:button-row>
</aui:form>
</aui:row>
<%
}
%>
</aui:row>
</aui:row>
<% } %>
</aui:container>
<div id ='<%= renderResponse.getNamespace()+"confirmationModal" %>'>
</div>
<div id ='<%= renderResponse.getNamespace()+"confirmationModalDiv" %>' class="hide" style="display:block;">
</div>
<div id="<portlet:namespace/>gestioneAttivitaId">
<jsp:include page='/html/altri_task.jsp'/>
</div>
<aui:script use="event-valuechange,aui-modal,aui-io-request">
A.one('#<portlet:namespace />intPraticaId').on('valuechange', function(e){
if(e.newVal <= 0 ){
A.one('#<portlet:namespace />numeroProgetto').attr('disabled', false);
} else {
A.one('#<portlet:namespace />numeroProgetto').attr('disabled', true);
A.one('#<portlet:namespace />numeroProgetto').val('');
}
});
A.one('#<portlet:namespace />numeroProgetto').on('valuechange', function(e){
if(e.newVal == "" ){
A.one('#<portlet:namespace />intPraticaId').attr('disabled', false);
} else {
A.one('#<portlet:namespace />intPraticaId').attr('disabled', true);
A.one('#<portlet:namespace />intPraticaId').val('');
}
});
Liferay.provide(
window,
"<portlet:namespace />openConfirmationDialog",
function(formName, text){
A.one('#<portlet:namespace />confirmationModalDiv').html('<p>'+text+'</p>');
var modal = new A.Modal(
{
centered: true,
bodyContent: A.one('#<portlet:namespace />confirmationModalDiv'),
destroyOnHide: false,
headerContent: '<h3>Conferma azione</h3>',
modal: true,
render: '#<portlet:namespace />confirmationModal',
visible: false,
close: false
}
).render();
modal.addToolbar(
[
{
label: 'Annulla e torna indietro',
on: {
click: function() {
A.one('#<portlet:namespace />confirmationModalDiv').hide();
modal.hide();
}
}
},
{
label: 'Conferma azione',
on: {
click: function() {
modal.hide();
var form = Liferay.Form.get(formName).form;
submitForm(form);
}
}
}
]
);
A.one('#<portlet:namespace />confirmationModalDiv').show();
modal.show();
}
);
</aui:script>

BIN
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/icon.png

File binario non mostrato.

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 467 B

0
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/js/main.js

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

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

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

Caricamento…
Annulla
Salva