diff --git a/.gitignore b/.gitignore index 86a181dc..ffe65d4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ *.class *.war !kaleo-web-6.2.0.3.war +portos-*.jar +!portos-kaleo-portlet-service.jar **/classes/ **/.sass-cache/ **/.ivy/cache/ @@ -8,20 +10,3 @@ **/build/ .DS_Store ._* -.idea/ -.metadata -.shared -.gradle -liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/ -liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/ -liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/ -liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/ -liferay-plugins-sdk-6.2/.scannerwork/.sonar_lock -liferay-plugins-sdk-6.2/sonar-scanner-4.8.0.2856-windows -.settings -liferay-plugins-sdk-6.2/build.malde.properties -liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath -liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project -liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.tern-project -*.MD5 -service-classes diff --git a/.project b/.project deleted file mode 100644 index 8fb58024..00000000 --- a/.project +++ /dev/null @@ -1,11 +0,0 @@ - - - sismica - - - - - - - - diff --git a/.scannerwork/.sonar_lock b/.scannerwork/.sonar_lock deleted file mode 100644 index e69de29b..00000000 diff --git a/iris-axis-client/.project b/iris-axis-client/.project index 08842c37..ab9a06a1 100644 --- a/iris-axis-client/.project +++ b/iris-axis-client/.project @@ -28,15 +28,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672738248521 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/.scannerwork/css-bundle/stylelintconfig.json b/liferay-plugins-sdk-6.2/.scannerwork/css-bundle/stylelintconfig.json deleted file mode 100644 index f7d8cbba..00000000 --- a/liferay-plugins-sdk-6.2/.scannerwork/css-bundle/stylelintconfig.json +++ /dev/null @@ -1 +0,0 @@ -{"rules":{"block-no-empty":true,"comment-no-empty":true,"string-no-newline":true,"function-linear-gradient-no-nonstandard-direction":true,"media-feature-name-no-unknown":true,"color-no-invalid-hex":true,"font-family-no-duplicate-names":true,"no-duplicate-at-import-rules":true,"no-empty-source":true,"declaration-block-no-duplicate-properties":[true,{"ignore":["consecutive-duplicates-with-different-values"]}],"selector-type-no-unknown":[true,{"ignoreTypes":["/^(mat|md|fa)-/"],"ignore":["custom-elements"]}],"at-rule-no-unknown":[true,{"ignoreAtRules":["value","at-root","content","debug","each","else","error","for","function","if","include","mixin","return","warn","while","extend","use","/^@.*/"]}],"no-duplicate-selectors":true,"font-family-no-missing-generic-family-keyword":true,"no-extra-semicolons":true,"no-invalid-double-slash-comments":true,"selector-pseudo-element-no-unknown":[true,{"ignorePseudoElements":["ng-deep","v-deep"]}],"selector-pseudo-class-no-unknown":[true,{"ignorePseudoClasses":["local","global","export","import"]}],"keyframe-declaration-no-important":true,"property-no-unknown":[true,{"ignoreProperties":["composes","/^mso-/"],"ignoreSelectors":["/^:export.*/","/^:import.*/"]}],"declaration-block-no-shorthand-property-overrides":true,"unit-no-unknown":[true,{"ignoreUnits":["x"]}],"function-calc-no-invalid":true}} diff --git a/liferay-plugins-sdk-6.2/.scannerwork/report-task.txt b/liferay-plugins-sdk-6.2/.scannerwork/report-task.txt deleted file mode 100644 index 315832ef..00000000 --- a/liferay-plugins-sdk-6.2/.scannerwork/report-task.txt +++ /dev/null @@ -1,6 +0,0 @@ -projectKey=Sicilia-Sismica -serverUrl=http://sonar.nextmind.it -serverVersion=9.4.0.54424 -dashboardUrl=http://sonar.nextmind.it/dashboard?id=Sicilia-Sismica -ceTaskId=AYZekmB9qvn_43R2i7P8 -ceTaskUrl=http://sonar.nextmind.it/api/ce/task?id=AYZekmB9qvn_43R2i7P8 diff --git a/liferay-plugins-sdk-6.2/build.ebusu.properties b/liferay-plugins-sdk-6.2/build.ebusu.properties deleted file mode 100644 index 10e3ca42..00000000 --- a/liferay-plugins-sdk-6.2/build.ebusu.properties +++ /dev/null @@ -1,10 +0,0 @@ -# Managed by Liferay IDE (remove this comment to prevent future updates) - -#Managed by Liferay IDE (remove this comment to prevent future updates) -#Tue Jan 03 13:00:53 CET 2023 -app.server.tomcat.lib.global.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\lib\\ext -app.server.tomcat.deploy.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps -app.server.parent.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6 -app.server.tomcat.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62 -app.server.type = tomcat -app.server.tomcat.portal.dir = C:\\progetti\\sismica\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps\\ROOT diff --git a/liferay-plugins-sdk-6.2/build.ture.properties b/liferay-plugins-sdk-6.2/build.ture.properties index e3b7ca4b..877270f7 100644 --- a/liferay-plugins-sdk-6.2/build.ture.properties +++ b/liferay-plugins-sdk-6.2/build.ture.properties @@ -1,11 +1,11 @@ # Managed by Liferay IDE (remove this comment to prevent future updates) -app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext -app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps -app.server.parent.dir = /home/ture/liferay/portali/sismica -app.server.tomcat.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62 +app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext +app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps +app.server.parent.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6 +app.server.tomcat.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62 app.server.type = tomcat -app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT +app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/ROOT javac.encoding = UTF-8 ext.work.dir = /home/ture/liferay/src/work app.server.dir = /home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62 diff --git a/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5 index ccd674b0..42e42084 100644 --- a/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5 @@ -1 +1 @@ -b2996cd58c16b53d0e5cba6f59304ace +45b38289274e4397c600a212c5477afa diff --git a/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5 index c2efd29f..0bfa3aa2 100644 --- a/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5 @@ -1 +1 @@ -edfd9cc2944faf63dd7d39e25283a4b6 +9e586203944d7fe5baccd02ed7bf20c1 diff --git a/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5 index 158f1a5d..d5ec36d5 100644 --- a/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5 @@ -1 +1 @@ -a7d8aaa34b7d1028a4d449b5ab8f767e +cf39082434c04fdd3a9563acce7cb551 diff --git a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5 index 3cbade7b..e312ada4 100644 --- a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5 @@ -1 +1 @@ -4b40da73b53b5860b9adbb52cde18473 +6ad0549f4c64b52b40d871393d72f9aa diff --git a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar index 90035a4f..00556b11 100644 Binary files a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar and b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar differ diff --git a/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5 index 348d2b3f..eac6c7a9 100644 --- a/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5 @@ -1 +1 @@ -0b9e4199159f29548166ac11ab8d12c0 +2aae42c5c43b993944b8c0fe9e31d5fb diff --git a/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5 index c928e5f7..3c011ccf 100644 --- a/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5 @@ -1 +1 @@ -8f22881d5bfb74c587681be94ad54598 +e1a7d560dfc36faf61c7d7da67bb03df diff --git a/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5 index 81034da7..5dff026e 100644 --- a/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5 @@ -1 +1 @@ -4102c750f16136e66085045251a34292 +f6d028f89713fdbf3004b38da2b16dcf diff --git a/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5 index 7ac73185..6d913802 100644 --- a/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5 @@ -1 +1 @@ -f6d022d60b1ed1cc45a21c61c21c8f22 +3325db6f628a33488c6c832368b134e4 diff --git a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar deleted file mode 100644 index d1c4871f..00000000 Binary files a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar index f8e54d4a..376d4367 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-firma-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-firma-shared-6.2.0.1.jar deleted file mode 100644 index 59edbe88..00000000 Binary files a/liferay-plugins-sdk-6.2/dist/portos-firma-shared-6.2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar deleted file mode 100644 index 9681a05c..00000000 Binary files a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-log-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-log-shared-6.2.0.1.jar deleted file mode 100644 index b96aa8a9..00000000 Binary files a/liferay-plugins-sdk-6.2/dist/portos-log-shared-6.2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar deleted file mode 100644 index e1587c22..00000000 Binary files a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar index 3e51861b..3c9f38e7 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath index bc080147..2b987d2d 100644 --- a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath +++ b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath @@ -1,7 +1,7 @@ - + diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.jdt.core.prefs rename to liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar index ed4689b4..271b49f0 100644 Binary files a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar and b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar differ diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath index 242f6c2c..e3c152b9 100644 --- a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.classpath @@ -1,7 +1,7 @@ - + @@ -18,5 +18,10 @@ + + + + + diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project index 3bcb29e1..bdf6cb46 100644 --- a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.project @@ -31,17 +31,7 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature + org.apache.ivyde.eclipse.ivynature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492925 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-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 diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml index 7f7fd8d7..02ccc82b 100644 --- a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,9 @@ - - + + diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/META-INF/MANIFEST.MF index 5e949512..254272e1 100644 --- a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/META-INF/MANIFEST.MF +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/META-INF/MANIFEST.MF @@ -1,3 +1,3 @@ -Manifest-Version: 1.0 -Class-Path: - +Manifest-Version: 1.0 +Class-Path: + diff --git a/liferay-plugins-sdk-6.2/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/ivy.xml.MD5 index d88ae605..feae7b2a 100644 --- a/liferay-plugins-sdk-6.2/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/ivy.xml.MD5 @@ -1 +1 @@ -8e943594b3e1f97e457b967864997dc5 +ae2292c03b059802eec34967b7e85b8a diff --git a/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.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 diff --git a/liferay-plugins-sdk-6.2/liferay-plugins-sdk-6.2.iml b/liferay-plugins-sdk-6.2/liferay-plugins-sdk-6.2.iml deleted file mode 100644 index d2671f81..00000000 --- a/liferay-plugins-sdk-6.2/liferay-plugins-sdk-6.2.iml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath index 47d0a747..6de1aafe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath @@ -1,7 +1,8 @@ - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/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 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component index 49dfc4a9..f8d0fffc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,7 @@ + uses diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index df14a23d..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,11 @@ + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/liferay-portlet.xml index 87c6ea06..72ff1047 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -2,7 +2,7 @@ - + 1 /icon.png diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/portlet.xml index 8855464d..6ae9c6ef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + 1 Accesso Atti FE diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml index 9f6f2fe6..bcc9061c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml @@ -1,14 +1,14 @@ - + 3F Consulting portos_atti - + - + - + @@ -16,7 +16,7 @@ - + @@ -38,12 +38,12 @@ - + - + @@ -51,9 +51,9 @@ - + - - - + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java index 080da7c6..7f4a5150 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java @@ -58,27 +58,27 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo */ @Override - public List findByGestita(boolean gestita, int start, int end) throws SystemException { + public List findByGestita(boolean gestita, int start, int end) throws SystemException{ return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end); } @Override public List findCompletate(String numeroProgetto, String protocollo, String dataDal, - String dataAl, int start, int end) throws SystemException, ParseException { + String dataAl, int start, int end) throws SystemException, ParseException{ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); dq.add(RestrictionsFactoryUtil.eq("gestita", true)); - if (!numeroProgetto.equals("")) { + if(!numeroProgetto.equals("")){ dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); } - if (!protocollo.equals("")) { + if(!protocollo.equals("")){ Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo)); disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo)); dq.add(disjunction); } - if (!dataDal.equals("") && !dataAl.equals("")) { + if(!dataDal.equals("") && !dataAl.equals("")){ Date dateDal = sdf.parse(dataDal); Calendar calDal = Calendar.getInstance(); calDal.setTime(dateDal); @@ -94,7 +94,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione"); dq.add(createDateProperty.between(dateDal, dateAl)); } - if (!dataDal.equals("") && dataAl.equals("")) { + if(!dataDal.equals("") && dataAl.equals("")){ Date dateDal = sdf.parse(dataDal); Calendar calDal = Calendar.getInstance(); calDal.setTime(dateDal); @@ -106,7 +106,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo dq.add(createDateProperty.between(dateDal, now)); } - if (dataDal.equals("") && !dataAl.equals("")) { + if(dataDal.equals("") && !dataAl.equals("")){ Date now = new Date("01/01/2018"); Date dateAl = sdf.parse(dataAl); Calendar calAl = Calendar.getInstance(); @@ -117,26 +117,26 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione"); dq.add(createDateProperty.between(now, dateAl)); } - return richiestaAccessoAttiLocalService.dynamicQuery(dq, start, end); + return richiestaAccessoAttiLocalService.dynamicQuery(dq, start, end); } @Override public int countCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl) - throws SystemException, ParseException { + throws SystemException, ParseException{ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); dq.add(RestrictionsFactoryUtil.eq("gestita", true)); - if (!numeroProgetto.equals("")) { + if(!numeroProgetto.equals("")){ dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); } - if (!protocollo.equals("")) { + if(!protocollo.equals("")){ Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo)); disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo)); dq.add(disjunction); } - if (!dataDal.equals("") && !dataAl.equals("")) { + if(!dataDal.equals("") && !dataAl.equals("")){ Date dateDal = sdf.parse(dataDal); Calendar calDal = Calendar.getInstance(); calDal.setTime(dateDal); @@ -152,7 +152,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione"); dq.add(createDateProperty.between(dateDal, dateAl)); } - if (!dataDal.equals("") && dataAl.equals("")) { + if(!dataDal.equals("") && dataAl.equals("")){ Date dateDal = sdf.parse(dataDal); Calendar calDal = Calendar.getInstance(); calDal.setTime(dateDal); @@ -163,7 +163,7 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione"); dq.add(createDateProperty.between(dateDal, now)); } - if (dataDal.equals("") && !dataAl.equals("")) { + if(dataDal.equals("") && !dataAl.equals("")){ Date now = new Date("01/01/2018"); Date dateAl = sdf.parse(dataAl); Calendar calAl = Calendar.getInstance(); @@ -179,23 +179,23 @@ public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLo } @Override - public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException { + public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException{ DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken)); List lista = richiestaAccessoAttiLocalService.dynamicQuery(dq); - if (lista != null && !lista.isEmpty()) { + if(lista != null && !lista.isEmpty()){ return lista.get(0); } return null; } @Override - public List findRichiesteByGroup(long userId, int start, int end) throws SystemException { + public List findRichiesteByGroup(long userId, int start, int end) throws SystemException{ List listaLong = new ArrayList(); List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); - if (organizationList != null && !organizationList.isEmpty()) { + if(organizationList != null && !organizationList.isEmpty()){ for (Organization organization : organizationList) { listaLong.add(organization.getGroupId()); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java index 9f1bf01c..452d4eb9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java @@ -8,23 +8,23 @@ import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.StringPool; public class AccessoAttiAccessTokenUtil { - + private static final Log _log = LogFactoryUtil.getLog(AccessoAttiAccessTokenUtil.class); - - public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId) { - + + public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId){ + StringBuffer sb = new StringBuffer(); try { String concatString = String.valueOf(richiestaAccessoAttiId) + StringPool.UNDERLINE + numeroProgetto + StringPool.UNDERLINE + richiedenteUserId; MessageDigest md = MessageDigest.getInstance("MD5"); md.update(concatString.getBytes()); - byte byteData[] = md.digest(); - for (int i = 0; i < byteData.length; i++) { - sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1)); - } + byte byteData[] = md.digest(); + for (int i = 0; i < byteData.length; i++) { + sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1)); + } } catch (NoSuchAlgorithmException e) { - _log.error(e, e); + _log.error(e,e); } return sb.toString(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java index f9e80da6..eeb15d45 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java @@ -17,29 +17,29 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; public class DocumentLibraryUtil { - + public static Log _log = LogFactoryUtil.getLog(DocumentLibraryUtil.class); public static final String RICHIESTA_ATTI_FOLDER_NAME = "RICHIESTA_ATTI"; public static final String PAGAMENTO_CODEC_FILENAME = "PAGAMENTO_"; public static final String DOCUMENTO_CODEC_FILENAME = "DOCUMENTO_"; - + public static long saveFileEntryAccessoAtti(long companyGroupId, long richiestaAccessoAttiId, String originFileName, File file, boolean pagamento) { - + long fileEntryId = 0L; try { DLFolder folder = getRichiestaAttiFolder(companyGroupId); - if (folder != null) { + if(folder != null){ RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil .fetchRichiestaAccessoAtti(richiestaAccessoAttiId); - if (richiestaAccessoAtti != null) { + if(richiestaAccessoAtti != null){ ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(richiestaAccessoAtti.getCompanyId()); serviceContext.setUserId(richiestaAccessoAtti.getUserId()); String mineType = FileUtil.getExtension(originFileName); String prefixedFileName = ""; - if (pagamento) { + if(pagamento){ prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType; } else { prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType; @@ -51,13 +51,13 @@ public class DocumentLibraryUtil { } } } catch (PortalException | SystemException e) { - _log.error(e, e); + _log.error(e,e); } return fileEntryId; } - - private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException { - + + private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException{ + DLFolder folder = DLFolderLocalServiceUtil.getFolder(companyGroupId, 0L, RICHIESTA_ATTI_FOLDER_NAME); return folder; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp index b6e680b7..66343e7c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/action_button.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@include file="init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp index 8cf3c7de..c10be4dd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp index 1cea714d..07568df7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="../init.jsp" %> <%@page import="javax.portlet.PortletURL"%> <%@page import="java.util.ArrayList"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp index e30ed433..0f46630b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_completed_request.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.model.User"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp index f58c558b..c19b360e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/show_richieste.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp index e6acbac2..a6b6232a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp index d16f9b34..0da26304 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/view_richiesta_popup.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp index 69d433f3..5e1eafd9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="javax.portlet.PortletURL"%> <%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp index 4670abc8..d6ce6dcc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp index ba036176..8fdf5c93 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiesta-inviata-success.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp index f015186a..ea877692 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp index 27d4ec6b..b6d6f3ec 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp index d841c51c..481185a6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/success.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="../init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp index fb91975b..b78222b5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/creazione_account/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="../init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp index f3db762d..11c883c0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.Format"%> <%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%> diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath similarity index 64% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.classpath rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath index 714ef228..a87fe340 100644 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath @@ -1,7 +1,7 @@ - + @@ -13,10 +13,15 @@ - + + + + + + diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.project b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project similarity index 86% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.project rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project index 0b1f363a..ada198f3 100644 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project @@ -1,6 +1,6 @@ - provatema-theme + portos-advanced-operation-portlet @@ -10,11 +10,6 @@ - - com.liferay.ide.eclipse.theme.core.cssBuilder - - - org.eclipse.jdt.core.javabuilder @@ -37,5 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/.jsdtscope b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/.jsdtscope similarity index 100% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/.jsdtscope rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/.jsdtscope diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/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 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jst.jsp.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.jst.jsp.core.prefs new file mode 100644 index 00000000..3a5c98db --- /dev/null +++ b/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 diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component similarity index 54% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.component rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component index 03ede77c..84aea89d 100644 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component @@ -1,8 +1,8 @@ - + - - + + diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml similarity index 65% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml index dc62c6dc..500dfccb 100644 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml @@ -1,7 +1,7 @@ - + - + diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml similarity index 86% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.xml rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index 9bbc4736..b0264dbc 100644 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ - + - + diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.jsdt.ui.superType.container b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container similarity index 100% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.jsdt.ui.superType.container rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.jsdt.ui.superType.name b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name similarity index 100% rename from liferay-plugins-sdk-6.2/themes/provatema-theme/.settings/org.eclipse.wst.jsdt.ui.superType.name rename to liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index f8e54d4a..376d4367 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index 3e51861b..3c9f38e7 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java index 7f38ad90..01bc9989 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java @@ -11,6 +11,8 @@ import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.WebKeys; import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; @@ -24,8 +26,8 @@ import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.util.WorkflowUtil; -import java.util.Arrays; import java.util.Date; import java.util.List; @@ -35,11 +37,11 @@ import javax.portlet.ActionResponse; public class AdvancedOperationPortlet extends MVCPortlet { private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationPortlet.class); - + public void deleteControlloPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ _checkIfUserIsCompanyAdmin(actionRequest); - + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); if (intPraticaId != 0L) { List controlloPraticaList = @@ -50,24 +52,24 @@ public class AdvancedOperationPortlet extends MVCPortlet { for(ControlloPratica cp : controlloPraticaList){ if(_log.isDebugEnabled()){ _log.debug("AdvancedOperationPortlet --- Cycling... ControlloPraticaID " + cp.getCompanyId() - + " Status " + cp.getStatus()); + + " Status " + cp.getStatus()); } if(ArrayUtil.contains(AdvancedOperationUtil.STATUS_ARRAY, cp.getStatus())){ _log.info("AdvancedOperationPortlet --- Deleting ControlloPratica " + cp.getControlloPraticaId() + - " with Status " + cp.getStatus() +" of IntPraticaId " + intPraticaId); + " with Status " + cp.getStatus() +" of IntPraticaId " + intPraticaId); ControlloPraticaLocalServiceUtil.deleteControlloPratica(cp); } } } actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); } - + public void reindexPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ _checkIfUserIsCompanyAdmin(actionRequest); - + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); if (intPraticaId != 0L) { _log.info("AdvancedOperationPortlet --- Reindexing fascicolo of IntPraticaId " + intPraticaId); @@ -75,23 +77,45 @@ public class AdvancedOperationPortlet extends MVCPortlet { } actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); } - + public void cambiaDataInizioLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ _checkIfUserIsCompanyAdmin(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + Date dataInizioLavoriOpera = ParamUtil.getDate(actionRequest, "dataInizioLavoriOperaInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd"), null); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + _log.info("AdvancedOperationPortlet --- Changing DataInizioLavori on DettPraticas of IntPraticaId" + intPraticaId); + _setDataInizioLavori(intPratica, dataInizioLavoriOpera); + + actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); + } + + public void resetDataInizioLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ + + _checkIfUserIsCompanyAdmin(actionRequest); + + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + + if(AdvancedOperationUtil.hasNoFineLavori(intPratica)){ + _log.info("AdvancedOperationPortlet --- Resetting DataInizioLavori on DettPraticas of IntPraticaId" + intPraticaId); + _setDataInizioLavori(intPratica, null); + } + actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); + } + + private void _setDataInizioLavori(IntPratica intPratica, Date dataInizioLavoriOpera) + throws SystemException { List dettPraticaListWithInizioLavori = AdvancedOperationUtil.fetchDettPraticaListWithInizioLavori(intPratica); for(DettPratica dettPratica : dettPraticaListWithInizioLavori){ dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera); dettPratica.setModifiedDate(new Date()); DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); } - actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); } public void fixNormLavoriInProprio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ @@ -160,7 +184,7 @@ public class AdvancedOperationPortlet extends MVCPortlet { long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){ + if(WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus()){ _log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> DRAFT) " + "with IntPraticaId " + intPraticaId); _ripristinaPratica(intPratica, WorkflowConstants.STATUS_DRAFT); @@ -171,14 +195,53 @@ public class AdvancedOperationPortlet extends MVCPortlet { actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); } + public void cambiaIstruttore(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); + long istruttoreId = ParamUtil.getLong(actionRequest, "istruttoreId", -1L); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + WorkflowTask lastTask = AdvancedOperationUtil.getLastTask(intPratica); + if (lastTask != null && lastTask.getName().equalsIgnoreCase("Esito")) { + List controlloPraticas = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); + if(!controlloPraticas.isEmpty()){ + for(ControlloPratica controlloPratica : controlloPraticas){ + if(controlloPratica.getStatus() == WorkflowConstants.STATUS_PENDING){ + WorkflowUtil.assegnaUltimoTask(intPratica.getCompanyId(), intPratica.getGroupId(), + istruttoreId, themeDisplay.getUserId(), controlloPratica); + } + } + } + } + actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); + } + + public void fixUserID(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ + + _checkIfUserIsCompanyAdmin(actionRequest); + + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + + if(!AdvancedOperationUtil.evalInt_Dett_UserID(intPratica)){ + DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPratica.getIntPraticaId()); + if(Validator.isNotNull(dettPratica)){ + long userId = intPratica.getUserId(); + dettPratica.setUserId(userId); + dettPratica.setUserName(UserLocalServiceUtil.getUser(userId).getScreenName()); + DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); + } + } + actionResponse.setRenderParameter("intPraticaId", String.valueOf(intPraticaId)); + } + public void ripristinaPraticaConforme(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ _checkIfUserIsCompanyAdmin(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - - if(WorkflowConstants.STATUS_INCOMPLETE == intPratica.getStatus()){ + + if(WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus()){ _log.info("AdvancedOperationPortlet --- Recovering Pratica Vidimata (INCOMPLETE ==> APPROVED) " + "with IntPraticaId " + intPraticaId); _ripristinaPratica(intPratica, WorkflowConstants.STATUS_APPROVED); @@ -237,7 +300,9 @@ public class AdvancedOperationPortlet extends MVCPortlet { private void _ripristinaPratica(IntPratica intPratica, int status) throws PortalException, SystemException{ long docPraticaAnnullamentoId = intPratica.getDocPraticaAnnullamentoId(); - IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId); + if(Validator.isNotNull(docPraticaAnnullamentoId)){ + IntPraticaLocalServiceUtil.deleteFileAnnullamento(docPraticaAnnullamentoId); + } IntPraticaLocalServiceUtil.updateStatus(intPratica.getIntPraticaId(), status); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java new file mode 100644 index 00000000..1f7d71ce --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java @@ -0,0 +1,156 @@ +//package it.nextmind.liferay.portos.advanced.operation.portlet; +// +//import com.liferay.portal.kernel.json.JSONFactoryUtil; +//import com.liferay.portal.kernel.json.JSONObject; +//import com.liferay.portal.kernel.log.Log; +//import com.liferay.portal.kernel.log.LogFactoryUtil; +//import com.liferay.portal.kernel.servlet.ServletResponseUtil; +//import com.liferay.portal.kernel.upload.UploadPortletRequest; +//import com.liferay.portal.kernel.util.ContentTypes; +//import com.liferay.portal.kernel.util.GetterUtil; +//import com.liferay.portal.kernel.util.ParamUtil; +//import com.liferay.portal.kernel.util.StreamUtil; +//import com.liferay.portal.kernel.util.StringPool; +//import com.liferay.portal.kernel.util.Validator; +//import com.liferay.portal.kernel.util.WebKeys; +//import com.liferay.portal.theme.ThemeDisplay; +//import com.liferay.portal.util.PortalUtil; +//import com.liferay.util.bridges.mvc.MVCPortlet; +// +//import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoBean; +//import it.tref.liferay.portos.bo.report.builder.builder.ReportAvvisoBeanBuilder; +//import it.tref.liferay.portos.report.html.core.HtmlToPdfEngine; +//import it.tref.liferay.portos.report.jasper.core.provider.JasperPdfProvider; +//import it.tref.liferay.portos.report.jasper.core.report.BeanReport; +//import it.tref.liferay.portos.report.jasper.core.report.ReportInterface; +//import it.tref.liferay.portos.report.odt.core.OdtToPdfEngine; +//import it.tref.liferay.portos.report.shared.constants.ReportConstants; +//import it.tref.liferay.portos.report.shared.constants.ReportConstants.ReportType; +//import it.tref.liferay.portos.report.shared.dto.ReportDto; +//import it.tref.liferay.portos.report.shared.dto.ReportResultDto; +//import it.tref.liferay.portos.report.shared.util.ReportUtil; +//import it.tref.liferay.portos.report.shared.util.VelocityUtil; +// +//import java.io.ByteArrayOutputStream; +//import java.io.IOException; +//import java.io.InputStream; +//import java.util.HashMap; +// +//import javassist.ClassPool; +// +//import javax.portlet.PortletException; +//import javax.portlet.ResourceRequest; +//import javax.portlet.ResourceResponse; +//import javax.servlet.http.HttpServletRequest; +//import javax.servlet.http.HttpServletResponse; +// +//public class TemplateTesterPortlet extends MVCPortlet { +// +// @Override +// public void serveResource(ResourceRequest resourceRequest, +// ResourceResponse resourceResponse) throws IOException, +// PortletException { +// +// String resourceID = GetterUtil.getString(resourceRequest +// .getResourceID()); +// +// if (resourceID.equals("templateTester")) { +// _processTemplate(resourceRequest, resourceResponse); +// } else { +// super.serveResource(resourceRequest, resourceResponse); +// } +// } +// +// private void _processTemplate(ResourceRequest resourceRequest, +// ResourceResponse resourceResponse){ +// +// HttpServletRequest request = PortalUtil +// .getHttpServletRequest(resourceRequest); +// HttpServletResponse response = PortalUtil +// .getHttpServletResponse(resourceResponse); +// +// try { +// +// ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest +// .getAttribute(WebKeys.THEME_DISPLAY); +// +// byte[] bytes = new byte[0]; +// +// UploadPortletRequest uploadPortletRequest = PortalUtil +// .getUploadPortletRequest(resourceRequest); +// +// ReportAvvisoBean bean = ReportAvvisoBeanBuilder.build(avviso, parameters); +// String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../") +// .replace(getClass().getSimpleName(), ReportConstants.PATH_LOGO_REGIONE); +// parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(resourcePath).getPath()); +// ReportDto reportDto = new ReportDto(); +// reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); +// reportDto.setFolderId(folderId); +// reportDto.setFileName(fileName); +// reportDto.setParameters(parameters); +// reportDto.setShowNumberOfPage(true); +// reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); +// ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean); +// +// String parametersJSON = ParamUtil.getString( +// uploadPortletRequest, "parametersJSON"); +// +// HashMap params = new HashMap(); +// if (Validator.isNotNull(parametersJSON)) { +// params = (HashMap) JSONFactoryUtil +// .looseDeserialize(parametersJSON); +// } +// +// String objectJSON = ParamUtil.getString(uploadPortletRequest, +// "objectJSON"); +// +// String fileNameTemplate = uploadPortletRequest +// .getFileName("fileTemplate"); +// +// ReportInterface reportInterface = null; +// +// if (Validator.isNotNull(objectJSON)) { +// +// JSONObject jsonObject = JSONFactoryUtil +// .createJSONObject(objectJSON); +// +// ClassPool pool = ClassPool.getDefault(); +// +// Class clazz = makeClass(pool, jsonObject); +// Object dataSource = clazz.newInstance(); +// +// reportInterface = new BeanReport(dataSource); +// } +// +// if (Validator.isNotNull(fileNameTemplate)) { +// +// InputStream inputStream = null; +// try { +// inputStream = uploadPortletRequest +// .getFileAsStream("fileTemplate"); +// +// JasperPdfProvider pdfProvider = new JasperPdfProvider(); +// pdfProvider.doReport(inputStream, params, +// reportInterface); +// +// bytes = pdfProvider.getBytes(); +// } finally { +// StreamUtil.cleanUp(inputStream); +// } +// } +// +// ServletResponseUtil.sendFile(request, response, "test.pdf", bytes, +// ContentTypes.APPLICATION_PDF); +// +// } catch (Exception e) { +// _log.error(e, e); +// +// ServletResponseUtil.sendFile(request, response, "test.html", e +// .toString().getBytes(StringPool.UTF8), +// ContentTypes.TEXT_HTML_UTF8); +// } +// +// } +// +// private final static Log _log = LogFactoryUtil.getLog(TestPdf.class); +//} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java index 0a2bc33b..e20005c5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java @@ -11,186 +11,303 @@ import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowTask; import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; +import com.liferay.portal.model.User; import com.liferay.portal.model.WorkflowInstanceLink; import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; +import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; +import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.util.ArrayList; import java.util.Date; import java.util.List; public class AdvancedOperationUtil { - - public static final int[] STATUS_ARRAY = - {WorkflowConstants.STATUS_DRAFT, WorkflowConstants.STATUS_INACTIVE, WorkflowConstants.STATUS_PENDING}; - - public static boolean isNotWorkflowManuallyStarted(IntPratica intPratica){ + + public static final int[] STATUS_ARRAY = { WorkflowConstants.STATUS_DRAFT, + WorkflowConstants.STATUS_INACTIVE, WorkflowConstants.STATUS_PENDING }; + + public static boolean isNotWorkflowManuallyStarted(IntPratica intPratica) { switch (intPratica.getStatoPratica()) { - case StatoPraticaConstants.VIDIMATA : + case StatoPraticaConstants.VIDIMATA: case StatoPraticaConstants.AUTORIZZATA: - case StatoPraticaConstants.CONFORME: + case StatoPraticaConstants.CONFORME: return true; default: return false; } } - public static boolean hasControlloPratica_ProceduraC(IntPratica intPratica){ - if(Constants.PROCEDURA_C.equalsIgnoreCase(intPratica.getTipoProcedura())){ - try{ + public static boolean hasControlloPratica_ProceduraC(IntPratica intPratica) { + if (Constants.PROCEDURA_C.equalsIgnoreCase(intPratica + .getTipoProcedura())) { + try { long intPraticaId = intPratica.getIntPraticaId(); - for(int i : STATUS_ARRAY){ - List controlloPraticas = - ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, i); - if(!controlloPraticas.isEmpty()){ + for (int i : STATUS_ARRAY) { + List controlloPraticas = ControlloPraticaLocalServiceUtil + .findByIntPraticaId_Status(intPraticaId, i); + if (!controlloPraticas.isEmpty()) { return true; } } - } catch (SystemException e){ - _log.error(e,e); + } catch (SystemException e) { + _log.error(e, e); return false; } } return false; } - + public static List getListaTask(IntPratica intPratica) { - if(Validator.isNull(intPratica)){ + if (Validator.isNull(intPratica)) { return null; } try { ControlloPratica controlloPratica = null; - List controlloPraticaList = - ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPratica.getIntPraticaId(), intPratica.getStatus()); - if(controlloPraticaList.size() > 1){ - for(ControlloPratica cp : controlloPraticaList){ - if(Validator.isNull(controlloPratica) || cp.getCreateDate().after(controlloPratica.getCreateDate())) { + List controlloPraticaList = ControlloPraticaLocalServiceUtil + .findByIntPraticaId_Status(intPratica.getIntPraticaId(), + intPratica.getStatus()); + if (controlloPraticaList.size() > 1) { + for (ControlloPratica cp : controlloPraticaList) { + if (Validator.isNull(controlloPratica) + || cp.getCreateDate().after( + controlloPratica.getCreateDate())) { controlloPratica = cp; } } - } else if(controlloPraticaList.size() == 1){ + } else if (controlloPraticaList.size() == 1) { controlloPratica = controlloPraticaList.get(0); } else { return null; } - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( - controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(), - controlloPratica.getPrimaryKey()); + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil + .fetchWorkflowInstanceLink(controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), + ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); List listaTask = null; if (workflowInstanceLink == null) { return null; } else { - return listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, - workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + return listaTask = WorkflowTaskManagerUtil + .getWorkflowTasksByWorkflowInstance( + controlloPratica.getCompanyId(), null, + workflowInstanceLink.getWorkflowInstanceId(), + false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, + null); } - } catch (SystemException | PortalException e){ - _log.error(e,e); + } catch (SystemException | PortalException e) { + _log.error(e, e); return null; } } - public static boolean isPraticaAnnullata(IntPratica intPratica){ - if(Validator.isNotNull(intPratica)){ + public static boolean isPraticaAnnullata(IntPratica intPratica) { + if (Validator.isNotNull(intPratica)) { return WorkflowConstants.STATUS_INACTIVE == intPratica.getStatus(); } return false; } - public static List getDocPraticaOrfani(long intPraticaId){ + public static List getDocPraticaOrfani(long intPraticaId) { List docPraticaOrfaniList = new ArrayList(); try { - List docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId); - for(DocPratica docPratica : docPraticaList){ - if(Validator.isNull(DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk())) - && DettPratica.class.getName().equals(docPratica.getClassName())){ + List docPraticaList = DocPraticaLocalServiceUtil + .findByIntPratica(intPraticaId); + for (DocPratica docPratica : docPraticaList) { + if (Validator.isNull(DettPraticaLocalServiceUtil + .fetchDettPratica(docPratica.getClassPk())) + && DettPratica.class.getName().equals( + docPratica.getClassName())) { docPraticaOrfaniList.add(docPratica); } } } catch (SystemException e) { - _log.error(e,e); + _log.error(e, e); } return docPraticaOrfaniList; } - public static boolean hasDettPratica(long intPraticaId){ + public static boolean hasDettPratica(long intPraticaId) { return !_getDettPraticaList(intPraticaId).isEmpty(); } - public static boolean getNormLavoriInProprioFlag(long intPraticaId){ + public static boolean getNormLavoriInProprioFlag(long intPraticaId) { List dettPraticaList = _getDettPraticaList(intPraticaId); - if(!dettPraticaList.isEmpty()){ + if (!dettPraticaList.isEmpty()) { return dettPraticaList.get(0).getNormLavoriInProprio(); } return false; } - public static boolean getCollaudoStaticoFlag(long intPraticaId){ + public static boolean getCollaudoStaticoFlag(long intPraticaId) { List dettPraticaList = _getDettPraticaList(intPraticaId); - if(!dettPraticaList.isEmpty()){ + if (!dettPraticaList.isEmpty()) { return dettPraticaList.get(0).getCollaudoStatico(); } return false; } - public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){ - return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" : "Aggiungi flag normLavoriInProprio"; + public static String getLavoriInEconomiaBtnLabel( + boolean normLavoriInProprioFlag) { + return normLavoriInProprioFlag ? "Rimuovi flag normLavoriInProprio" + : "Aggiungi flag normLavoriInProprio"; } - public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag){ - return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico" : "Aggiungi flag collaudoStatico"; + public static String getCollaudoStaticoBtnLabel(boolean collaudoStaticoFlag) { + return collaudoStaticoFlag ? "Rimuovi flag collaudoStatico" + : "Aggiungi flag collaudoStatico"; } - public static boolean isStatoPraticaIN(IntPratica intPratica){ - if(Validator.isNotNull(intPratica)){ + public static boolean isStatoPraticaIN(IntPratica intPratica) { + if (Validator.isNotNull(intPratica)) { return "IN".equals(intPratica.getStatoPratica()); } return false; } - public static List fetchDettPraticaListWithInizioLavori(IntPratica intPratica){ - if(Validator.isNotNull(intPratica)){ - DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dataInizioLavoriOpera")); - try{ - return (List) DettPraticaLocalServiceUtil.dynamicQuery(dynamicQuery); - } catch (SystemException e){ - _log.error(e,e); + public static long getCurrentAssignee(IntPratica intPratica) { + long currentAssignee = 0; + WorkflowTask lastTask = getLastTask(intPratica); + if (Validator.isNotNull(lastTask)) { + if (it.tref.liferay.portos.bo.util.WorkflowConstants.WORKFLOW_TASKNAME_ESITO + .equalsIgnoreCase(lastTask.getName())) { + currentAssignee = lastTask.getAssigneeUserId(); + } + } + return currentAssignee; + } + + public static WorkflowTask getLastTask(IntPratica intPratica) { + if (Validator.isNotNull(intPratica)) { + try { + List controlloPraticas = ControlloPraticaLocalServiceUtil + .findByIntPratica(intPratica.getIntPraticaId()); + if (!controlloPraticas.isEmpty()) { + for (ControlloPratica controlloPratica : controlloPraticas) { + if (controlloPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { + return WorkflowUtil.getLastTask( + controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), null, + controlloPratica); + } + } + } + } catch (SystemException | PortalException e) { + _log.error(e, e); + } + } + return null; + } + + public static boolean evalCurrentAssignee(IntPratica intPratica, + User tecnico) { + WorkflowTask lastTask = getLastTask(intPratica); + if (Validator.isNotNull(lastTask) + && lastTask.getName().equalsIgnoreCase("Esito")) { + return tecnico.getUserId() != lastTask.getAssigneeUserId() + || lastTask.getAssigneeUserId() == 0; + } + return false; + } + + public static boolean isWorkFlowCompleted(ControlloPratica controlloPratica) { + try { + WorkflowTask task = WorkflowUtil.getLastTask( + controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), null, controlloPratica); + if(Validator.isNotNull(task)){ + return task.isCompleted(); + } + } catch (PortalException | SystemException e) { + _log.error(e, e); + } + return false; + } + + public static List fetchDettPraticaListWithInizioLavori( + IntPratica intPratica) { + if (Validator.isNotNull(intPratica)) { + DynamicQuery dynamicQuery = DettPraticaLocalServiceUtil + .dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", + intPratica.getIntPraticaId())); + dynamicQuery.add(RestrictionsFactoryUtil + .isNotNull("dataInizioLavoriOpera")); + try { + return (List) DettPraticaLocalServiceUtil + .dynamicQuery(dynamicQuery); + } catch (SystemException e) { + _log.error(e, e); return null; } } return null; } - public static Date fetchDataInizioLavoriOpera(IntPratica intPratica){ + public static Date fetchDataInizioLavoriOpera(IntPratica intPratica) { List dettPraticaListWithInizioLavori = fetchDettPraticaListWithInizioLavori(intPratica); - if(!dettPraticaListWithInizioLavori.isEmpty()){ - return dettPraticaListWithInizioLavori.get(0).getDataInizioLavoriOpera(); + if (!dettPraticaListWithInizioLavori.isEmpty()) { + return dettPraticaListWithInizioLavori.get(0) + .getDataInizioLavoriOpera(); } return null; } + + public static boolean evalInt_Dett_UserID(IntPratica intPratica){ + _log.info("lastDettPraticaUserID: "+getLastDettPraticaUserID(intPratica)+" || intPraticaUserID: "+intPratica.getUserId()); + return getLastDettPraticaUserID(intPratica) == intPratica.getUserId(); + } + + public static long getLastDettPraticaUserID(IntPratica intPratica){ + try { + DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPratica.getIntPraticaId()); + if(Validator.isNotNull(dettPratica)){ + return dettPratica.getUserId(); + } + } catch (SystemException e){ + _log.error(e,e); + } + return intPratica.getUserId(); + } + + public static boolean hasNoFineLavori(IntPratica intPratica){ + if(Validator.isNotNull(intPratica)){ + try { + List fineLavoriList = + FineLavoriLocalServiceUtil.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + return fineLavoriList.isEmpty(); + } catch (SystemException e) { + _log.error(e,e); + } + } + return false; + } - private static List _getDettPraticaList(long intPraticaId){ + private static List _getDettPraticaList(long intPraticaId) { List dettPraticaList = new ArrayList(); try { - dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); + dettPraticaList = DettPraticaLocalServiceUtil + .findByIntPraticaId(intPraticaId); } catch (SystemException e) { - _log.error(e,e); + _log.error(e, e); } return dettPraticaList; } - private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class); + private static final Log _log = LogFactoryUtil + .getLog(AdvancedOperationUtil.class); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css index fc1d01e6..e61e395a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css @@ -7,4 +7,8 @@ #impersonaSoggettiBtn{ cursor: pointer; +} + +.aop-ml-5{ + margin-left: 5px!important; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/init.jsp new file mode 100644 index 00000000..de8ca25e --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/init.jsp @@ -0,0 +1 @@ +<%@ include file="/html/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/view.jsp new file mode 100644 index 00000000..2fe46735 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/template/view.jsp @@ -0,0 +1,41 @@ +<%@ include file="/html/template/init.jsp" %> + + + + + + + + +

Template Tester

+
+ + + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp index 579a1c9f..b1256164 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp @@ -1,8 +1,10 @@ +<%@page import="com.liferay.portal.model.Layout"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> +<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="javax.portlet.PortletMode"%> -<%@page import="com.liferay.portal.util.PortletKeys"%> <%@page import="javax.portlet.PortletRequest"%> <%@page import="javax.portlet.PortletURL"%> <%@page import="com.liferay.portal.model.Group"%> @@ -37,6 +39,7 @@ <%@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); @@ -83,14 +86,35 @@ - + <% + long ricercaPagePlid = PortalUtil.getPlidFromFriendlyURL(20155, "/group/portos-backoffice/ricerca"); + %> + + + + <% if(Validator.isNotNull(intPratica)){ %>

- Pratica: <%= intPraticaId %> + Pratica: + + <%= intPraticaId %> + + +

@@ -127,7 +151,11 @@
-

Status: <%= intPratica.getStatus() %>

+

+ Status: + + (<%= intPratica.getStatus() %>) +

<% @@ -142,28 +170,51 @@ <% - String functionDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler modificare la DATA di INIZIO LAVORI?')"; + String functionChangeDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler MODIFICARE la DATA di INIZIO LAVORI?')"; %> - -
+
+ +

Data inizio Lavori Opera:

- - -
- + + +
+ +
-
-
+ + + + + + + <% + String functionResetDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"resetDataInizioLavori','Sei sicuro di voler RESETTARE la DATA di INIZIO LAVORI?')"; + %> + +
+ +
+
+
+
<% } %> @@ -218,6 +269,30 @@
<% } %> + <% if(AdvancedOperationUtil.hasDettPratica(intPraticaId) + && !AdvancedOperationUtil.evalInt_Dett_UserID(intPratica)){ + %> +
+ + + + + <% + String functionFixUserID = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixUserID','Sei sicuro di voler cambiare lo User dell'ultimo dettPratica?')"; + %> + + + +
+ <% } %> + <% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %>
@@ -381,10 +457,6 @@ total="<%= SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) %>" /> - - <%= soggetto.getFullTipologiaSoggetto() %> @@ -399,14 +471,24 @@ } %> + <% + User soggettoUser = + UserLocalServiceUtil.fetchUserByScreenName(company.getCompanyId(), soggetto.getCodiceFiscale()); + %> - - + + + + + + @@ -420,12 +502,13 @@ <% List listaTask = AdvancedOperationUtil.getListaTask(intPratica); if(Validator.isNotNull(listaTask) && !listaTask.isEmpty()){ + long currentAssigneeId = AdvancedOperationUtil.getCurrentAssignee(intPratica); %> - +
-

Gestisci ultima attività:

+

Gestisci ultima attività:

<% Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); @@ -441,17 +524,35 @@
+ + +
+ + +
+

Impersona Assegnatario Workflow:

+
+ + +
+
+
<% if(intPratica.getStatusByUserId() != 0L ){ User tecnico = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (Validator.isNotNull(tecnico)) { - %>
@@ -469,6 +570,41 @@ url="<%= impersonateIstruttoreURL %>">
+ + <% + String currentAssigneeName = StringPool.BLANK; + if(currentAssigneeId != 0L){ + currentAssigneeName = UserLocalServiceUtil.getUser(currentAssigneeId).getFullName(); + } + String cambiaIstruttoreMsg = currentAssigneeId != 0 ? "Pratica attualmente assegnata a " + currentAssigneeName : "Pratica attualmente senza assegnatario"; + String cambiaIstruttoreBtnLabelPrefix = currentAssigneeId != 0 ? "Riassegna" : "Assegna"; + %> +
+ + + + + + <% + String functionCambiaIstruttore = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaIstruttore','Sei sicuro di voler riassegnare la pratica all istruttore?')"; + %> + + + + + (<%= cambiaIstruttoreMsg %>) + + +
+
<% } @@ -557,6 +693,49 @@ } %> + + +
+ + +
+ + + + + <%= controlloPratica.getControlloPraticaId() %> + + + + + (<%= controlloPratica.getStatus() %>) + + + <% + String statoWorkflowMsg = StringPool.BLANK; + statoWorkflowMsg = AdvancedOperationUtil.isWorkFlowCompleted(controlloPratica) ? + "COMPLETATO" : "ATTIVO"; + %> + + + + + + + +
+
+
+
+
+
<% } %> @@ -565,11 +744,9 @@
-
- <% if(Validator.isNotNull(intPratica)){ %> @@ -649,7 +826,5 @@ modal.show(); } ); - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml index 4feea605..b3ac7ad6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml @@ -7,7 +7,7 @@ xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" > - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml.MD5 new file mode 100644 index 00000000..5e77ca8e --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml.MD5 @@ -0,0 +1 @@ +da182e61a8d786e000ef56dfa8d9ece4 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath index 47d0a747..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath @@ -1,7 +1,7 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-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 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index 62fdb9a9..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,8 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-portlet-service.jar deleted file mode 100644 index 78d2f82e..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar deleted file mode 100644 index 5e7fa267..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml index d7167b8e..a7be6d90 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml index 3b654a43..26746469 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + Marco diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java index 14a029f4..8436cb5b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.audit.NoSuchAuditEventException; import it.tref.liferay.portos.audit.model.AuditEvent; import it.tref.liferay.portos.audit.model.impl.AuditEventImpl; import it.tref.liferay.portos.audit.model.impl.AuditEventModelImpl; +import it.tref.liferay.portos.audit.service.persistence.AuditEventPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties index 6245dac9..6f96bc90 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_AUDIT - build.number=17 - build.date=1672849068307 + build.number=16 + build.date=1569596657517 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp index 851b5a30..3b091aab 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.TextFormatter"%> <%@page import="com.liferay.portal.kernel.json.JSONArray"%> <%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp index f5287023..72b2cb90 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.TextFormatter"%> <%@page import="com.liferay.portal.kernel.json.JSONArray"%> <%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp index ffc929c3..94e694cc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%> <%@page import="com.liferay.portal.security.permission.ActionKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp index 3d6b7058..3c18f252 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%> <%@page import="com.liferay.portal.security.permission.ActionKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp index f77b3e2e..ff21f2e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%> <%@page import="com.liferay.portal.security.permission.ActionKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp index f6d6d4c6..71379d79 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp index cb89ae81..646951b9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp index 8447c350..ff47f72b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath index bc2c439b..98a15bfe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath @@ -2,11 +2,9 @@ - - - + - + @@ -14,10 +12,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project index 3f54558e..43d3ec29 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492376 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component new file mode 100644 index 00000000..d6d32bc0 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component @@ -0,0 +1,21 @@ + + + + + + + uses + + + uses + + + uses + + + uses + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..f4beb943 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -4,8 +4,8 @@ + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/.gitignore deleted file mode 100644 index 98f66096..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/bin/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -/.ant-targets-build.xml -/.classpath -/.project -/.settings/ -/.tern-project -/build.xml -/docroot/ -/ivy.xml -/ivy.xml.MD5 -/test/ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar deleted file mode 100644 index d1c4871f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 8b81cf20..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar deleted file mode 100644 index 9681a05c..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar deleted file mode 100644 index a2f8cfcc..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar deleted file mode 100644 index e1587c22..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar deleted file mode 100644 index 3e51861b..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml index 9ec14628..02365b66 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml @@ -2,7 +2,7 @@ - + @@ -14,8 +14,9 @@ + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml index 5dc0d86c..8234053b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml index 2039d4cb..c01bb451 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -6,7 +6,7 @@ /icon.png it.tref.liferay.portos.bo.indexer.IntPraticaIndexer it.tref.liferay.portos.bo.indexer.ControlloPraticaIndexer - + Estrazione Firme it.tref.liferay.portos.bo.scheduler.SchedulerEstrazioneFirme @@ -36,7 +36,7 @@ - + Sorteggio Pratiche it.mwg.sismica.bo.scheduler.SchedulerSorteggio @@ -75,7 +75,7 @@ - it.tref.liferay.portos.bo.asset.ControlloPraticaAssetRendererFactory + it.tref.liferay.portos.bo.asset.ControlloPraticaAssetRendererFactory it.tref.liferay.portos.bo.workflow.ControlloPraticaWorkflowHandler /css/main.css?v=4 /js/main.js?v=4 @@ -203,6 +203,13 @@ /js/main.js?v=4 13-portlet + + 14 + /icon.png + /css/main.css?v=4 + /js/main.js?v=4 + 14-portlet + administrator Administrator diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml index e43cbf95..6f73e64f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + 1 Fascicolo @@ -47,14 +47,14 @@ 0 text/html - view + view - content.Language + content.Language Tabelle di Sistema Tabelle di Sistema - + administrator @@ -79,14 +79,14 @@ 0 text/html - view + view - content.Language + content.Language Sorteggio Sorteggio - + administrator @@ -111,14 +111,14 @@ 0 text/html - view + view - content.Language + content.Language Gestione Firme Gestione Firme - + administrator @@ -351,7 +351,7 @@ text/html view - content.Language + content.Language Generate Protocollo Csv 11 @@ -381,14 +381,14 @@ 0 text/html - view + view - content.Language + content.Language Pagamenti in Pending Pagamenti in Pending - + administrator @@ -565,4 +565,36 @@ user + + 14 + Pannello Controllo Fine Lavori/Collaudo + it.tref.liferay.portos.bo.portlet.FineLavoriCollaudoPanel + + view-template + /html/flcollaudopanel/view.jsp + + 0 + + text/html + view + + content.Language + + Pannello Controllo Fine Lavori/Collaudo + 14 + + + + administrator + + + guest + + + power-user + + + user + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 15447af1..3418e33a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. @@ -37,7 +37,7 @@ + uuid="true"> @@ -57,6 +57,7 @@ + @@ -87,12 +88,12 @@ + case-sensitive="false" /> + uuid="true"> @@ -159,7 +160,7 @@ + remote-service="true" uuid="true" table="portos_bo_ParereGeo"> @@ -200,11 +201,11 @@ + entity="DLApp" /> + local-service="true" remote-service="true" uuid="true"> @@ -218,14 +219,14 @@ + db-index="true"> + uuid="true"> @@ -268,7 +269,7 @@ + uuid="true"> @@ -346,11 +347,11 @@ + entity="DLApp" /> + remote-service="true" uuid="false"> @@ -382,7 +383,7 @@ + uuid="true"> @@ -412,11 +413,11 @@ + mapping-key="dettPraticaId" /> + mapping-key="dettPraticaId" /> + mapping-key="dettPraticaId" /> @@ -430,12 +431,12 @@ - + - + @@ -465,6 +466,8 @@ + + @@ -655,14 +658,14 @@ + db-index="true"> + db-index="true"> @@ -672,13 +675,13 @@ + entity="ExpandoValue" /> + entity="DLApp" /> + uuid="true"> @@ -692,7 +695,7 @@ + mapping-key="fineLavoriId" /> @@ -756,7 +759,7 @@ + uuid="true"> @@ -770,7 +773,7 @@ + mapping-key="collaudoId" /> @@ -822,7 +825,7 @@ + uuid="true"> @@ -896,7 +899,7 @@ + arrayable-operator="OR" /> @@ -926,11 +929,11 @@ + entity="DLApp" /> + uuid="true"> @@ -969,17 +972,18 @@ + + mapping-key="intPraticaId" /> + mapping-key="intPraticaId" /> + mapping-key="intPraticaId" /> - + mapping-key="intPraticaId" /> + - + @@ -998,11 +1002,11 @@ + entity="DLApp" /> + uuid="true"> @@ -1102,7 +1106,7 @@ + name="DettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"> @@ -1114,13 +1118,13 @@ + name="IntPratica_TipologiaSoggetto_DettPraticaIdRimozione"> + name="IntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"> @@ -1131,7 +1135,7 @@ + name="DettPratica_TipologiaSoggetto_CodiceFiscale"> @@ -1164,7 +1168,7 @@ + entity="DLApp" /> @@ -1187,9 +1191,9 @@ + mapping-key="territorioId" /> + mapping-key="territorioId" /> @@ -1203,7 +1207,7 @@ + db-index="true"> @@ -1226,7 +1230,7 @@ + remote-service="true" uuid="true"> @@ -1269,7 +1273,7 @@ + uuid="true"> @@ -1303,6 +1307,7 @@ + @@ -1342,11 +1347,11 @@ + entity="DLApp" /> + remote-service="true" uuid="true"> @@ -1358,7 +1363,7 @@ - @@ -1374,7 +1379,7 @@ + remote-service="true" uuid="true"> @@ -1414,11 +1419,11 @@ + entity="DLApp" /> + remote-service="true" uuid="true"> @@ -1449,11 +1454,11 @@ + entity="DLApp" /> + uuid="true"> @@ -1513,7 +1518,7 @@ + name="DettPratica_CodiceFiscale_Tipologia_InEsito"> @@ -1540,7 +1545,7 @@ + name="IntPratica_CodiceFiscale_Tipologia_InEsito"> @@ -1548,12 +1553,12 @@ + entity="DLApp" /> + remote-service="true" uuid="true"> @@ -1632,7 +1637,7 @@ + name="IntPratica_CodiceFiscale_Tipologia_InEsito"> @@ -1642,7 +1647,7 @@ + remote-service="true"> @@ -1670,6 +1675,27 @@ + + + + + + + + + + + + + + + + + + + + + DuplicateProvincia CodiceProvincia diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchPraticaAttenzionataException.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchPraticaAttenzionataException.java new file mode 100644 index 00000000..43e83bcf --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchPraticaAttenzionataException.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo; + +import com.liferay.portal.NoSuchModelException; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + */ +public class NoSuchPraticaAttenzionataException extends NoSuchModelException { + + public NoSuchPraticaAttenzionataException() { + super(); + } + + public NoSuchPraticaAttenzionataException(String msg) { + super(msg); + } + + public NoSuchPraticaAttenzionataException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchPraticaAttenzionataException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java index 3df3c946..7e28f949 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java @@ -92,6 +92,7 @@ public class ComuneClp extends BaseModelImpl implements Comune { attributes.put("disabilitato", getDisabilitato()); attributes.put("mailSuap", getMailSuap()); attributes.put("mailSue", getMailSue()); + attributes.put("praticaOspedali", getPraticaOspedali()); return attributes; } @@ -199,6 +200,12 @@ public class ComuneClp extends BaseModelImpl implements Comune { if (mailSue != null) { setMailSue(mailSue); } + + Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali"); + + if (praticaOspedali != null) { + setPraticaOspedali(praticaOspedali); + } } @Override @@ -619,6 +626,35 @@ public class ComuneClp extends BaseModelImpl implements Comune { } } + @Override + public boolean getPraticaOspedali() { + return _praticaOspedali; + } + + @Override + public boolean isPraticaOspedali() { + return _praticaOspedali; + } + + @Override + public void setPraticaOspedali(boolean praticaOspedali) { + _praticaOspedali = praticaOspedali; + + if (_comuneRemoteModel != null) { + try { + Class clazz = _comuneRemoteModel.getClass(); + + Method method = clazz.getMethod("setPraticaOspedali", + boolean.class); + + method.invoke(_comuneRemoteModel, praticaOspedali); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -711,6 +747,7 @@ public class ComuneClp extends BaseModelImpl implements Comune { clone.setDisabilitato(getDisabilitato()); clone.setMailSuap(getMailSuap()); clone.setMailSue(getMailSue()); + clone.setPraticaOspedali(getPraticaOspedali()); return clone; } @@ -761,7 +798,7 @@ public class ComuneClp extends BaseModelImpl implements Comune { @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(37); sb.append("{uuid="); sb.append(getUuid()); @@ -797,6 +834,8 @@ public class ComuneClp extends BaseModelImpl implements Comune { sb.append(getMailSuap()); sb.append(", mailSue="); sb.append(getMailSue()); + sb.append(", praticaOspedali="); + sb.append(getPraticaOspedali()); sb.append("}"); return sb.toString(); @@ -804,7 +843,7 @@ public class ComuneClp extends BaseModelImpl implements Comune { @Override public String toXmlString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(58); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Comune"); @@ -878,6 +917,10 @@ public class ComuneClp extends BaseModelImpl implements Comune { "mailSue"); + sb.append( + "praticaOspedali"); sb.append(""); @@ -902,6 +945,7 @@ public class ComuneClp extends BaseModelImpl implements Comune { private boolean _disabilitato; private String _mailSuap; private String _mailSue; + private boolean _praticaOspedali; private BaseModel _comuneRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java index 7c2de1fc..d9b5d446 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java @@ -358,6 +358,27 @@ public interface ComuneModel extends BaseModel, StagedAuditedModel { */ public void setMailSue(String mailSue); + /** + * Returns the pratica ospedali of this comune. + * + * @return the pratica ospedali of this comune + */ + public boolean getPraticaOspedali(); + + /** + * Returns true if this comune is pratica ospedali. + * + * @return true if this comune is pratica ospedali; false otherwise + */ + public boolean isPraticaOspedali(); + + /** + * Sets whether this comune is pratica ospedali. + * + * @param praticaOspedali the pratica ospedali of this comune + */ + public void setPraticaOspedali(boolean praticaOspedali); + @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java index 25267fd6..3682bcb0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java @@ -48,6 +48,7 @@ public class ComuneSoap implements Serializable { soapModel.setDisabilitato(model.getDisabilitato()); soapModel.setMailSuap(model.getMailSuap()); soapModel.setMailSue(model.getMailSue()); + soapModel.setPraticaOspedali(model.getPraticaOspedali()); return soapModel; } @@ -248,6 +249,18 @@ public class ComuneSoap implements Serializable { _mailSue = mailSue; } + public boolean getPraticaOspedali() { + return _praticaOspedali; + } + + public boolean isPraticaOspedali() { + return _praticaOspedali; + } + + public void setPraticaOspedali(boolean praticaOspedali) { + _praticaOspedali = praticaOspedali; + } + private String _uuid; private long _comuneId; private long _companyId; @@ -265,4 +278,5 @@ public class ComuneSoap implements Serializable { private boolean _disabilitato; private String _mailSuap; private String _mailSue; + private boolean _praticaOspedali; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java index 1606ecd1..5ec5693d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java @@ -67,6 +67,7 @@ public class ComuneWrapper implements Comune, ModelWrapper { attributes.put("disabilitato", getDisabilitato()); attributes.put("mailSuap", getMailSuap()); attributes.put("mailSue", getMailSue()); + attributes.put("praticaOspedali", getPraticaOspedali()); return attributes; } @@ -174,6 +175,12 @@ public class ComuneWrapper implements Comune, ModelWrapper { if (mailSue != null) { setMailSue(mailSue); } + + Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali"); + + if (praticaOspedali != null) { + setPraticaOspedali(praticaOspedali); + } } /** @@ -588,6 +595,36 @@ public class ComuneWrapper implements Comune, ModelWrapper { _comune.setMailSue(mailSue); } + /** + * Returns the pratica ospedali of this comune. + * + * @return the pratica ospedali of this comune + */ + @Override + public boolean getPraticaOspedali() { + return _comune.getPraticaOspedali(); + } + + /** + * Returns true if this comune is pratica ospedali. + * + * @return true if this comune is pratica ospedali; false otherwise + */ + @Override + public boolean isPraticaOspedali() { + return _comune.isPraticaOspedali(); + } + + /** + * Sets whether this comune is pratica ospedali. + * + * @param praticaOspedali the pratica ospedali of this comune + */ + @Override + public void setPraticaOspedali(boolean praticaOspedali) { + _comune.setPraticaOspedali(praticaOspedali); + } + @Override public boolean isNew() { return _comune.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java index 3d7cb8d0..9c368e95 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java @@ -156,6 +156,8 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); + attributes.put("dataInserimentoInizioLavoriOpera", + getDataInserimentoInizioLavoriOpera()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", @@ -803,6 +805,13 @@ public class DettPraticaClp extends BaseModelImpl setLavoriPubblici(lavoriPubblici); } + Date dataInserimentoInizioLavoriOpera = (Date)attributes.get( + "dataInserimentoInizioLavoriOpera"); + + if (dataInserimentoInizioLavoriOpera != null) { + setDataInserimentoInizioLavoriOpera(dataInserimentoInizioLavoriOpera); + } + Long pagamentoIdOneri = (Long)attributes.get("pagamentoIdOneri"); if (pagamentoIdOneri != null) { @@ -3597,6 +3606,32 @@ public class DettPraticaClp extends BaseModelImpl } } + @Override + public Date getDataInserimentoInizioLavoriOpera() { + return _dataInserimentoInizioLavoriOpera; + } + + @Override + public void setDataInserimentoInizioLavoriOpera( + Date dataInserimentoInizioLavoriOpera) { + _dataInserimentoInizioLavoriOpera = dataInserimentoInizioLavoriOpera; + + if (_dettPraticaRemoteModel != null) { + try { + Class clazz = _dettPraticaRemoteModel.getClass(); + + Method method = clazz.getMethod("setDataInserimentoInizioLavoriOpera", + Date.class); + + method.invoke(_dettPraticaRemoteModel, + dataInserimentoInizioLavoriOpera); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public long getPagamentoIdOneri() { return _pagamentoIdOneri; @@ -8652,6 +8687,7 @@ public class DettPraticaClp extends BaseModelImpl clone.setDataFineEsecuzioneOpera(getDataFineEsecuzioneOpera()); clone.setMetratura(getMetratura()); clone.setLavoriPubblici(getLavoriPubblici()); + clone.setDataInserimentoInizioLavoriOpera(getDataInserimentoInizioLavoriOpera()); clone.setPagamentoIdOneri(getPagamentoIdOneri()); clone.setPagamentoIdBolli(getPagamentoIdBolli()); clone.setLavoriPubbliciPercentuale(getLavoriPubbliciPercentuale()); @@ -8875,7 +8911,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(477); + StringBundler sb = new StringBundler(479); sb.append("{uuid="); sb.append(getUuid()); @@ -9011,6 +9047,8 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getMetratura()); sb.append(", lavoriPubblici="); sb.append(getLavoriPubblici()); + sb.append(", dataInserimentoInizioLavoriOpera="); + sb.append(getDataInserimentoInizioLavoriOpera()); sb.append(", pagamentoIdOneri="); sb.append(getPagamentoIdOneri()); sb.append(", pagamentoIdBolli="); @@ -9360,7 +9398,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(718); + StringBundler sb = new StringBundler(721); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -9634,6 +9672,10 @@ public class DettPraticaClp extends BaseModelImpl "lavoriPubblici"); + sb.append( + "dataInserimentoInizioLavoriOpera"); sb.append( "pagamentoIdOneri private Date _dataFineEsecuzioneOpera; private String _metratura; private boolean _lavoriPubblici; + private Date _dataInserimentoInizioLavoriOpera; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java index a4b09b7b..06df9c8b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java @@ -1173,6 +1173,21 @@ public interface DettPraticaModel extends BaseModel, */ public void setLavoriPubblici(boolean lavoriPubblici); + /** + * Returns the data inserimento inizio lavori opera of this dett pratica. + * + * @return the data inserimento inizio lavori opera of this dett pratica + */ + public Date getDataInserimentoInizioLavoriOpera(); + + /** + * Sets the data inserimento inizio lavori opera of this dett pratica. + * + * @param dataInserimentoInizioLavoriOpera the data inserimento inizio lavori opera of this dett pratica + */ + public void setDataInserimentoInizioLavoriOpera( + Date dataInserimentoInizioLavoriOpera); + /** * Returns the pagamento ID oneri of this dett pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java index 0fa2de2d..052098fe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java @@ -98,6 +98,7 @@ public class DettPraticaSoap implements Serializable { soapModel.setDataFineEsecuzioneOpera(model.getDataFineEsecuzioneOpera()); soapModel.setMetratura(model.getMetratura()); soapModel.setLavoriPubblici(model.getLavoriPubblici()); + soapModel.setDataInserimentoInizioLavoriOpera(model.getDataInserimentoInizioLavoriOpera()); soapModel.setPagamentoIdOneri(model.getPagamentoIdOneri()); soapModel.setPagamentoIdBolli(model.getPagamentoIdBolli()); soapModel.setLavoriPubbliciPercentuale(model.getLavoriPubbliciPercentuale()); @@ -908,6 +909,15 @@ public class DettPraticaSoap implements Serializable { _lavoriPubblici = lavoriPubblici; } + public Date getDataInserimentoInizioLavoriOpera() { + return _dataInserimentoInizioLavoriOpera; + } + + public void setDataInserimentoInizioLavoriOpera( + Date dataInserimentoInizioLavoriOpera) { + _dataInserimentoInizioLavoriOpera = dataInserimentoInizioLavoriOpera; + } + public long getPagamentoIdOneri() { return _pagamentoIdOneri; } @@ -2778,6 +2788,7 @@ public class DettPraticaSoap implements Serializable { private Date _dataFineEsecuzioneOpera; private String _metratura; private boolean _lavoriPubblici; + private Date _dataInserimentoInizioLavoriOpera; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java index 58aef916..9e937db7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java @@ -130,6 +130,8 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); + attributes.put("dataInserimentoInizioLavoriOpera", + getDataInserimentoInizioLavoriOpera()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", @@ -777,6 +779,13 @@ public class DettPraticaWrapper implements DettPratica, setLavoriPubblici(lavoriPubblici); } + Date dataInserimentoInizioLavoriOpera = (Date)attributes.get( + "dataInserimentoInizioLavoriOpera"); + + if (dataInserimentoInizioLavoriOpera != null) { + setDataInserimentoInizioLavoriOpera(dataInserimentoInizioLavoriOpera); + } + Long pagamentoIdOneri = (Long)attributes.get("pagamentoIdOneri"); if (pagamentoIdOneri != null) { @@ -3418,6 +3427,27 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setLavoriPubblici(lavoriPubblici); } + /** + * Returns the data inserimento inizio lavori opera of this dett pratica. + * + * @return the data inserimento inizio lavori opera of this dett pratica + */ + @Override + public java.util.Date getDataInserimentoInizioLavoriOpera() { + return _dettPratica.getDataInserimentoInizioLavoriOpera(); + } + + /** + * Sets the data inserimento inizio lavori opera of this dett pratica. + * + * @param dataInserimentoInizioLavoriOpera the data inserimento inizio lavori opera of this dett pratica + */ + @Override + public void setDataInserimentoInizioLavoriOpera( + java.util.Date dataInserimentoInizioLavoriOpera) { + _dettPratica.setDataInserimentoInizioLavoriOpera(dataInserimentoInizioLavoriOpera); + } + /** * Returns the pagamento ID oneri of this dett pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java index 10023836..795c83ba 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java @@ -109,6 +109,7 @@ public class IntPraticaClp extends BaseModelImpl attributes.put("collaudoParziale", getCollaudoParziale()); attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("controlloObbligatorio", getControlloObbligatorio()); + attributes.put("praticaOspedaliera", getPraticaOspedaliera()); attributes.put("inLavorazioneSue", getInLavorazioneSue()); return attributes; @@ -307,6 +308,13 @@ public class IntPraticaClp extends BaseModelImpl setControlloObbligatorio(controlloObbligatorio); } + Boolean praticaOspedaliera = (Boolean)attributes.get( + "praticaOspedaliera"); + + if (praticaOspedaliera != null) { + setPraticaOspedaliera(praticaOspedaliera); + } + Boolean inLavorazioneSue = (Boolean)attributes.get("inLavorazioneSue"); if (inLavorazioneSue != null) { @@ -1096,6 +1104,35 @@ public class IntPraticaClp extends BaseModelImpl } } + @Override + public boolean getPraticaOspedaliera() { + return _praticaOspedaliera; + } + + @Override + public boolean isPraticaOspedaliera() { + return _praticaOspedaliera; + } + + @Override + public void setPraticaOspedaliera(boolean praticaOspedaliera) { + _praticaOspedaliera = praticaOspedaliera; + + if (_intPraticaRemoteModel != null) { + try { + Class clazz = _intPraticaRemoteModel.getClass(); + + Method method = clazz.getMethod("setPraticaOspedaliera", + boolean.class); + + method.invoke(_intPraticaRemoteModel, praticaOspedaliera); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public boolean getInLavorazioneSue() { return _inLavorazioneSue; @@ -1309,6 +1346,7 @@ public class IntPraticaClp extends BaseModelImpl clone.setCollaudoParziale(getCollaudoParziale()); clone.setCollaudoTotale(getCollaudoTotale()); clone.setControlloObbligatorio(getControlloObbligatorio()); + clone.setPraticaOspedaliera(getPraticaOspedaliera()); clone.setInLavorazioneSue(getInLavorazioneSue()); return clone; @@ -1362,7 +1400,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(65); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(getUuid()); @@ -1426,6 +1464,8 @@ public class IntPraticaClp extends BaseModelImpl sb.append(getCollaudoTotale()); sb.append(", controlloObbligatorio="); sb.append(getControlloObbligatorio()); + sb.append(", praticaOspedaliera="); + sb.append(getPraticaOspedaliera()); sb.append(", inLavorazioneSue="); sb.append(getInLavorazioneSue()); sb.append("}"); @@ -1435,7 +1475,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(100); + StringBundler sb = new StringBundler(103); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1565,6 +1605,10 @@ public class IntPraticaClp extends BaseModelImpl "controlloObbligatorio"); + sb.append( + "praticaOspedaliera"); sb.append( "inLavorazioneSue private boolean _collaudoParziale; private boolean _collaudoTotale; private boolean _controlloObbligatorio; + private boolean _praticaOspedaliera; private boolean _inLavorazioneSue; private BaseModel _intPraticaRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java index 7c54b82d..35046e55 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java @@ -601,6 +601,27 @@ public interface IntPraticaModel extends BaseModel, */ public void setControlloObbligatorio(boolean controlloObbligatorio); + /** + * Returns the pratica ospedaliera of this int pratica. + * + * @return the pratica ospedaliera of this int pratica + */ + public boolean getPraticaOspedaliera(); + + /** + * Returns true if this int pratica is pratica ospedaliera. + * + * @return true if this int pratica is pratica ospedaliera; false otherwise + */ + public boolean isPraticaOspedaliera(); + + /** + * Sets whether this int pratica is pratica ospedaliera. + * + * @param praticaOspedaliera the pratica ospedaliera of this int pratica + */ + public void setPraticaOspedaliera(boolean praticaOspedaliera); + /** * Returns the in lavorazione sue of this int pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java index 2f65c90c..89391aa6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java @@ -62,6 +62,7 @@ public class IntPraticaSoap implements Serializable { soapModel.setCollaudoParziale(model.getCollaudoParziale()); soapModel.setCollaudoTotale(model.getCollaudoTotale()); soapModel.setControlloObbligatorio(model.getControlloObbligatorio()); + soapModel.setPraticaOspedaliera(model.getPraticaOspedaliera()); soapModel.setInLavorazioneSue(model.getInLavorazioneSue()); return soapModel; @@ -393,6 +394,18 @@ public class IntPraticaSoap implements Serializable { _controlloObbligatorio = controlloObbligatorio; } + public boolean getPraticaOspedaliera() { + return _praticaOspedaliera; + } + + public boolean isPraticaOspedaliera() { + return _praticaOspedaliera; + } + + public void setPraticaOspedaliera(boolean praticaOspedaliera) { + _praticaOspedaliera = praticaOspedaliera; + } + public boolean getInLavorazioneSue() { return _inLavorazioneSue; } @@ -436,5 +449,6 @@ public class IntPraticaSoap implements Serializable { private boolean _collaudoParziale; private boolean _collaudoTotale; private boolean _controlloObbligatorio; + private boolean _praticaOspedaliera; private boolean _inLavorazioneSue; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java index 10be971b..28fd9768 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java @@ -83,6 +83,7 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { attributes.put("collaudoParziale", getCollaudoParziale()); attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("controlloObbligatorio", getControlloObbligatorio()); + attributes.put("praticaOspedaliera", getPraticaOspedaliera()); attributes.put("inLavorazioneSue", getInLavorazioneSue()); return attributes; @@ -281,6 +282,13 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { setControlloObbligatorio(controlloObbligatorio); } + Boolean praticaOspedaliera = (Boolean)attributes.get( + "praticaOspedaliera"); + + if (praticaOspedaliera != null) { + setPraticaOspedaliera(praticaOspedaliera); + } + Boolean inLavorazioneSue = (Boolean)attributes.get("inLavorazioneSue"); if (inLavorazioneSue != null) { @@ -1044,6 +1052,36 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { _intPratica.setControlloObbligatorio(controlloObbligatorio); } + /** + * Returns the pratica ospedaliera of this int pratica. + * + * @return the pratica ospedaliera of this int pratica + */ + @Override + public boolean getPraticaOspedaliera() { + return _intPratica.getPraticaOspedaliera(); + } + + /** + * Returns true if this int pratica is pratica ospedaliera. + * + * @return true if this int pratica is pratica ospedaliera; false otherwise + */ + @Override + public boolean isPraticaOspedaliera() { + return _intPratica.isPraticaOspedaliera(); + } + + /** + * Sets whether this int pratica is pratica ospedaliera. + * + * @param praticaOspedaliera the pratica ospedaliera of this int pratica + */ + @Override + public void setPraticaOspedaliera(boolean praticaOspedaliera) { + _intPratica.setPraticaOspedaliera(praticaOspedaliera); + } + /** * Returns the in lavorazione sue of this int pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java index d7c59b3d..41aa5b97 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java @@ -100,6 +100,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento attributes.put("otf", getOtf()); attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); + attributes.put("numeroBollettino", getNumeroBollettino()); attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; @@ -259,6 +260,12 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento setEmailPending(emailPending); } + String numeroBollettino = (String)attributes.get("numeroBollettino"); + + if (numeroBollettino != null) { + setNumeroBollettino(numeroBollettino); + } + Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); if (oldPagamentoId != null) { @@ -863,6 +870,30 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento } } + @Override + public String getNumeroBollettino() { + return _numeroBollettino; + } + + @Override + public void setNumeroBollettino(String numeroBollettino) { + _numeroBollettino = numeroBollettino; + + if (_pagamentoRemoteModel != null) { + try { + Class clazz = _pagamentoRemoteModel.getClass(); + + Method method = clazz.getMethod("setNumeroBollettino", + String.class); + + method.invoke(_pagamentoRemoteModel, numeroBollettino); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public long getOldPagamentoId() { return _oldPagamentoId; @@ -1027,6 +1058,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento clone.setOtf(getOtf()); clone.setOtfCreateDate(getOtfCreateDate()); clone.setEmailPending(getEmailPending()); + clone.setNumeroBollettino(getNumeroBollettino()); clone.setOldPagamentoId(getOldPagamentoId()); return clone; @@ -1080,7 +1112,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(getUuid()); @@ -1132,6 +1164,8 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento sb.append(getOtfCreateDate()); sb.append(", emailPending="); sb.append(getEmailPending()); + sb.append(", numeroBollettino="); + sb.append(getNumeroBollettino()); sb.append(", oldPagamentoId="); sb.append(getOldPagamentoId()); sb.append("}"); @@ -1141,7 +1175,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(85); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Pagamento"); @@ -1247,6 +1281,10 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento "emailPending"); + sb.append( + "numeroBollettino"); sb.append( "oldPagamentoId implements Pagamento private boolean _otf; private Date _otfCreateDate; private boolean _emailPending; + private String _numeroBollettino; private long _oldPagamentoId; private BaseModel _pagamentoRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java index a384e116..f0b902c6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java @@ -468,6 +468,21 @@ public interface PagamentoModel extends BaseModel, StagedGroupedModel */ public void setEmailPending(boolean emailPending); + /** + * Returns the numero bollettino of this pagamento. + * + * @return the numero bollettino of this pagamento + */ + @AutoEscape + public String getNumeroBollettino(); + + /** + * Sets the numero bollettino of this pagamento. + * + * @param numeroBollettino the numero bollettino of this pagamento + */ + public void setNumeroBollettino(String numeroBollettino); + /** * Returns the old pagamento ID of this pagamento. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java index 37ded0d5..0c89b11a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java @@ -56,6 +56,7 @@ public class PagamentoSoap implements Serializable { soapModel.setOtf(model.getOtf()); soapModel.setOtfCreateDate(model.getOtfCreateDate()); soapModel.setEmailPending(model.getEmailPending()); + soapModel.setNumeroBollettino(model.getNumeroBollettino()); soapModel.setOldPagamentoId(model.getOldPagamentoId()); return soapModel; @@ -317,6 +318,14 @@ public class PagamentoSoap implements Serializable { _emailPending = emailPending; } + public String getNumeroBollettino() { + return _numeroBollettino; + } + + public void setNumeroBollettino(String numeroBollettino) { + _numeroBollettino = numeroBollettino; + } + public long getOldPagamentoId() { return _oldPagamentoId; } @@ -350,5 +359,6 @@ public class PagamentoSoap implements Serializable { private boolean _otf; private Date _otfCreateDate; private boolean _emailPending; + private String _numeroBollettino; private long _oldPagamentoId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java index 89b38a7e..a841f12f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java @@ -75,6 +75,7 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { attributes.put("otf", getOtf()); attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); + attributes.put("numeroBollettino", getNumeroBollettino()); attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; @@ -234,6 +235,12 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { setEmailPending(emailPending); } + String numeroBollettino = (String)attributes.get("numeroBollettino"); + + if (numeroBollettino != null) { + setNumeroBollettino(numeroBollettino); + } + Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); if (oldPagamentoId != null) { @@ -804,6 +811,26 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { _pagamento.setEmailPending(emailPending); } + /** + * Returns the numero bollettino of this pagamento. + * + * @return the numero bollettino of this pagamento + */ + @Override + public java.lang.String getNumeroBollettino() { + return _pagamento.getNumeroBollettino(); + } + + /** + * Sets the numero bollettino of this pagamento. + * + * @param numeroBollettino the numero bollettino of this pagamento + */ + @Override + public void setNumeroBollettino(java.lang.String numeroBollettino) { + _pagamento.setNumeroBollettino(numeroBollettino); + } + /** * Returns the old pagamento ID of this pagamento. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionata.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionata.java new file mode 100644 index 00000000..75608735 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionata.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model; + +import com.liferay.portal.model.PersistedModel; + +/** + * The extended model interface for the PraticaAttenzionata service. Represents a row in the "portos_bo_PraticaAttenzionata" database table, with each column mapped to a property of this class. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataModel + * @see it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl + * @see it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl + * @generated + */ +public interface PraticaAttenzionata extends PraticaAttenzionataModel, + PersistedModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java new file mode 100644 index 00000000..bab7e841 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java @@ -0,0 +1,835 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model; + +import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.lar.StagedModelType; +import com.liferay.portal.kernel.util.ProxyUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.model.BaseModel; +import com.liferay.portal.model.impl.BaseModelImpl; +import com.liferay.portal.util.PortalUtil; + +import it.tref.liferay.portos.bo.service.ClpSerializer; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; + +import java.io.Serializable; + +import java.lang.reflect.Method; + +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + */ +public class PraticaAttenzionataClp extends BaseModelImpl + implements PraticaAttenzionata { + public PraticaAttenzionataClp() { + } + + @Override + public Class getModelClass() { + return PraticaAttenzionata.class; + } + + @Override + public String getModelClassName() { + return PraticaAttenzionata.class.getName(); + } + + @Override + public long getPrimaryKey() { + return _praticaAttenzionataId; + } + + @Override + public void setPrimaryKey(long primaryKey) { + setPraticaAttenzionataId(primaryKey); + } + + @Override + public Serializable getPrimaryKeyObj() { + return _praticaAttenzionataId; + } + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj) { + setPrimaryKey(((Long)primaryKeyObj).longValue()); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("uuid", getUuid()); + attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); + attributes.put("companyId", getCompanyId()); + attributes.put("userId", getUserId()); + attributes.put("userName", getUserName()); + attributes.put("createDate", getCreateDate()); + attributes.put("modifiedDate", getModifiedDate()); + attributes.put("groupId", getGroupId()); + attributes.put("intPraticaId", getIntPraticaId()); + attributes.put("fineLavoriId", getFineLavoriId()); + attributes.put("numeroProgetto", getNumeroProgetto()); + attributes.put("dataFineLavoriTotale", getDataFineLavoriTotale()); + attributes.put("dataRelazioneFineLavoriTotale", + getDataRelazioneFineLavoriTotale()); + attributes.put("verificata", getVerificata()); + attributes.put("dataVerifica", getDataVerifica()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + + Long praticaAttenzionataId = (Long)attributes.get( + "praticaAttenzionataId"); + + if (praticaAttenzionataId != null) { + setPraticaAttenzionataId(praticaAttenzionataId); + } + + Long companyId = (Long)attributes.get("companyId"); + + if (companyId != null) { + setCompanyId(companyId); + } + + Long userId = (Long)attributes.get("userId"); + + if (userId != null) { + setUserId(userId); + } + + String userName = (String)attributes.get("userName"); + + if (userName != null) { + setUserName(userName); + } + + Date createDate = (Date)attributes.get("createDate"); + + if (createDate != null) { + setCreateDate(createDate); + } + + Date modifiedDate = (Date)attributes.get("modifiedDate"); + + if (modifiedDate != null) { + setModifiedDate(modifiedDate); + } + + Long groupId = (Long)attributes.get("groupId"); + + if (groupId != null) { + setGroupId(groupId); + } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } + + Long fineLavoriId = (Long)attributes.get("fineLavoriId"); + + if (fineLavoriId != null) { + setFineLavoriId(fineLavoriId); + } + + String numeroProgetto = (String)attributes.get("numeroProgetto"); + + if (numeroProgetto != null) { + setNumeroProgetto(numeroProgetto); + } + + Date dataFineLavoriTotale = (Date)attributes.get("dataFineLavoriTotale"); + + if (dataFineLavoriTotale != null) { + setDataFineLavoriTotale(dataFineLavoriTotale); + } + + Date dataRelazioneFineLavoriTotale = (Date)attributes.get( + "dataRelazioneFineLavoriTotale"); + + if (dataRelazioneFineLavoriTotale != null) { + setDataRelazioneFineLavoriTotale(dataRelazioneFineLavoriTotale); + } + + Boolean verificata = (Boolean)attributes.get("verificata"); + + if (verificata != null) { + setVerificata(verificata); + } + + Date dataVerifica = (Date)attributes.get("dataVerifica"); + + if (dataVerifica != null) { + setDataVerifica(dataVerifica); + } + } + + @Override + public String getUuid() { + return _uuid; + } + + @Override + public void setUuid(String uuid) { + _uuid = uuid; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setUuid", String.class); + + method.invoke(_praticaAttenzionataRemoteModel, uuid); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getPraticaAttenzionataId() { + return _praticaAttenzionataId; + } + + @Override + public void setPraticaAttenzionataId(long praticaAttenzionataId) { + _praticaAttenzionataId = praticaAttenzionataId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setPraticaAttenzionataId", + long.class); + + method.invoke(_praticaAttenzionataRemoteModel, + praticaAttenzionataId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getCompanyId() { + return _companyId; + } + + @Override + public void setCompanyId(long companyId) { + _companyId = companyId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setCompanyId", long.class); + + method.invoke(_praticaAttenzionataRemoteModel, companyId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getUserId() { + return _userId; + } + + @Override + public void setUserId(long userId) { + _userId = userId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setUserId", long.class); + + method.invoke(_praticaAttenzionataRemoteModel, userId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public String getUserUuid() throws SystemException { + return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); + } + + @Override + public void setUserUuid(String userUuid) { + _userUuid = userUuid; + } + + @Override + public String getUserName() { + return _userName; + } + + @Override + public void setUserName(String userName) { + _userName = userName; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setUserName", String.class); + + method.invoke(_praticaAttenzionataRemoteModel, userName); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public Date getCreateDate() { + return _createDate; + } + + @Override + public void setCreateDate(Date createDate) { + _createDate = createDate; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setCreateDate", Date.class); + + method.invoke(_praticaAttenzionataRemoteModel, createDate); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public Date getModifiedDate() { + return _modifiedDate; + } + + @Override + public void setModifiedDate(Date modifiedDate) { + _modifiedDate = modifiedDate; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setModifiedDate", Date.class); + + method.invoke(_praticaAttenzionataRemoteModel, modifiedDate); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getGroupId() { + return _groupId; + } + + @Override + public void setGroupId(long groupId) { + _groupId = groupId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setGroupId", long.class); + + method.invoke(_praticaAttenzionataRemoteModel, groupId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getIntPraticaId() { + return _intPraticaId; + } + + @Override + public void setIntPraticaId(long intPraticaId) { + _intPraticaId = intPraticaId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setIntPraticaId", long.class); + + method.invoke(_praticaAttenzionataRemoteModel, intPraticaId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getFineLavoriId() { + return _fineLavoriId; + } + + @Override + public void setFineLavoriId(long fineLavoriId) { + _fineLavoriId = fineLavoriId; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setFineLavoriId", long.class); + + method.invoke(_praticaAttenzionataRemoteModel, fineLavoriId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public String getNumeroProgetto() { + return _numeroProgetto; + } + + @Override + public void setNumeroProgetto(String numeroProgetto) { + _numeroProgetto = numeroProgetto; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setNumeroProgetto", + String.class); + + method.invoke(_praticaAttenzionataRemoteModel, numeroProgetto); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public Date getDataFineLavoriTotale() { + return _dataFineLavoriTotale; + } + + @Override + public void setDataFineLavoriTotale(Date dataFineLavoriTotale) { + _dataFineLavoriTotale = dataFineLavoriTotale; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setDataFineLavoriTotale", + Date.class); + + method.invoke(_praticaAttenzionataRemoteModel, + dataFineLavoriTotale); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public Date getDataRelazioneFineLavoriTotale() { + return _dataRelazioneFineLavoriTotale; + } + + @Override + public void setDataRelazioneFineLavoriTotale( + Date dataRelazioneFineLavoriTotale) { + _dataRelazioneFineLavoriTotale = dataRelazioneFineLavoriTotale; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setDataRelazioneFineLavoriTotale", + Date.class); + + method.invoke(_praticaAttenzionataRemoteModel, + dataRelazioneFineLavoriTotale); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public boolean getVerificata() { + return _verificata; + } + + @Override + public boolean isVerificata() { + return _verificata; + } + + @Override + public void setVerificata(boolean verificata) { + _verificata = verificata; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setVerificata", boolean.class); + + method.invoke(_praticaAttenzionataRemoteModel, verificata); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public Date getDataVerifica() { + return _dataVerifica; + } + + @Override + public void setDataVerifica(Date dataVerifica) { + _dataVerifica = dataVerifica; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setDataVerifica", Date.class); + + method.invoke(_praticaAttenzionataRemoteModel, dataVerifica); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public StagedModelType getStagedModelType() { + return new StagedModelType(PortalUtil.getClassNameId( + PraticaAttenzionata.class.getName())); + } + + public BaseModel getPraticaAttenzionataRemoteModel() { + return _praticaAttenzionataRemoteModel; + } + + public void setPraticaAttenzionataRemoteModel( + BaseModel praticaAttenzionataRemoteModel) { + _praticaAttenzionataRemoteModel = praticaAttenzionataRemoteModel; + } + + public Object invokeOnRemoteModel(String methodName, + Class[] parameterTypes, Object[] parameterValues) + throws Exception { + Object[] remoteParameterValues = new Object[parameterValues.length]; + + for (int i = 0; i < parameterValues.length; i++) { + if (parameterValues[i] != null) { + remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); + } + } + + Class remoteModelClass = _praticaAttenzionataRemoteModel.getClass(); + + ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); + + Class[] remoteParameterTypes = new Class[parameterTypes.length]; + + for (int i = 0; i < parameterTypes.length; i++) { + if (parameterTypes[i].isPrimitive()) { + remoteParameterTypes[i] = parameterTypes[i]; + } + else { + String parameterTypeName = parameterTypes[i].getName(); + + remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); + } + } + + Method method = remoteModelClass.getMethod(methodName, + remoteParameterTypes); + + Object returnValue = method.invoke(_praticaAttenzionataRemoteModel, + remoteParameterValues); + + if (returnValue != null) { + returnValue = ClpSerializer.translateOutput(returnValue); + } + + return returnValue; + } + + @Override + public void persist() throws SystemException { + if (this.isNew()) { + PraticaAttenzionataLocalServiceUtil.addPraticaAttenzionata(this); + } + else { + PraticaAttenzionataLocalServiceUtil.updatePraticaAttenzionata(this); + } + } + + @Override + public PraticaAttenzionata toEscapedModel() { + return (PraticaAttenzionata)ProxyUtil.newProxyInstance(PraticaAttenzionata.class.getClassLoader(), + new Class[] { PraticaAttenzionata.class }, + new AutoEscapeBeanHandler(this)); + } + + @Override + public Object clone() { + PraticaAttenzionataClp clone = new PraticaAttenzionataClp(); + + clone.setUuid(getUuid()); + clone.setPraticaAttenzionataId(getPraticaAttenzionataId()); + clone.setCompanyId(getCompanyId()); + clone.setUserId(getUserId()); + clone.setUserName(getUserName()); + clone.setCreateDate(getCreateDate()); + clone.setModifiedDate(getModifiedDate()); + clone.setGroupId(getGroupId()); + clone.setIntPraticaId(getIntPraticaId()); + clone.setFineLavoriId(getFineLavoriId()); + clone.setNumeroProgetto(getNumeroProgetto()); + clone.setDataFineLavoriTotale(getDataFineLavoriTotale()); + clone.setDataRelazioneFineLavoriTotale(getDataRelazioneFineLavoriTotale()); + clone.setVerificata(getVerificata()); + clone.setDataVerifica(getDataVerifica()); + + return clone; + } + + @Override + public int compareTo(PraticaAttenzionata praticaAttenzionata) { + long primaryKey = praticaAttenzionata.getPrimaryKey(); + + if (getPrimaryKey() < primaryKey) { + return -1; + } + else if (getPrimaryKey() > primaryKey) { + return 1; + } + else { + return 0; + } + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof PraticaAttenzionataClp)) { + return false; + } + + PraticaAttenzionataClp praticaAttenzionata = (PraticaAttenzionataClp)obj; + + long primaryKey = praticaAttenzionata.getPrimaryKey(); + + if (getPrimaryKey() == primaryKey) { + return true; + } + else { + return false; + } + } + + public Class getClpSerializerClass() { + return _clpSerializerClass; + } + + @Override + public int hashCode() { + return (int)getPrimaryKey(); + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(31); + + sb.append("{uuid="); + sb.append(getUuid()); + sb.append(", praticaAttenzionataId="); + sb.append(getPraticaAttenzionataId()); + sb.append(", companyId="); + sb.append(getCompanyId()); + sb.append(", userId="); + sb.append(getUserId()); + sb.append(", userName="); + sb.append(getUserName()); + sb.append(", createDate="); + sb.append(getCreateDate()); + sb.append(", modifiedDate="); + sb.append(getModifiedDate()); + sb.append(", groupId="); + sb.append(getGroupId()); + sb.append(", intPraticaId="); + sb.append(getIntPraticaId()); + sb.append(", fineLavoriId="); + sb.append(getFineLavoriId()); + sb.append(", numeroProgetto="); + sb.append(getNumeroProgetto()); + sb.append(", dataFineLavoriTotale="); + sb.append(getDataFineLavoriTotale()); + sb.append(", dataRelazioneFineLavoriTotale="); + sb.append(getDataRelazioneFineLavoriTotale()); + sb.append(", verificata="); + sb.append(getVerificata()); + sb.append(", dataVerifica="); + sb.append(getDataVerifica()); + sb.append("}"); + + return sb.toString(); + } + + @Override + public String toXmlString() { + StringBundler sb = new StringBundler(49); + + sb.append(""); + sb.append("it.tref.liferay.portos.bo.model.PraticaAttenzionata"); + sb.append(""); + + sb.append( + "uuid"); + sb.append( + "praticaAttenzionataId"); + sb.append( + "companyId"); + sb.append( + "userId"); + sb.append( + "userName"); + sb.append( + "createDate"); + sb.append( + "modifiedDate"); + sb.append( + "groupId"); + sb.append( + "intPraticaId"); + sb.append( + "fineLavoriId"); + sb.append( + "numeroProgetto"); + sb.append( + "dataFineLavoriTotale"); + sb.append( + "dataRelazioneFineLavoriTotale"); + sb.append( + "verificata"); + sb.append( + "dataVerifica"); + + sb.append(""); + + return sb.toString(); + } + + private String _uuid; + private long _praticaAttenzionataId; + private long _companyId; + private long _userId; + private String _userUuid; + private String _userName; + private Date _createDate; + private Date _modifiedDate; + private long _groupId; + private long _intPraticaId; + private long _fineLavoriId; + private String _numeroProgetto; + private Date _dataFineLavoriTotale; + private Date _dataRelazioneFineLavoriTotale; + private boolean _verificata; + private Date _dataVerifica; + private BaseModel _praticaAttenzionataRemoteModel; + private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java new file mode 100644 index 00000000..d2483732 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model; + +import com.liferay.portal.kernel.bean.AutoEscape; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.BaseModel; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.StagedGroupedModel; +import com.liferay.portal.service.ServiceContext; + +import com.liferay.portlet.expando.model.ExpandoBridge; + +import java.io.Serializable; + +import java.util.Date; + +/** + * The base model interface for the PraticaAttenzionata service. Represents a row in the "portos_bo_PraticaAttenzionata" database table, with each column mapped to a property of this class. + * + *

+ * This interface and its corresponding implementation {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionata + * @see it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl + * @see it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl + * @generated + */ +public interface PraticaAttenzionataModel extends BaseModel, + StagedGroupedModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. All methods that expect a pratica attenzionata model instance should use the {@link PraticaAttenzionata} interface instead. + */ + + /** + * Returns the primary key of this pratica attenzionata. + * + * @return the primary key of this pratica attenzionata + */ + public long getPrimaryKey(); + + /** + * Sets the primary key of this pratica attenzionata. + * + * @param primaryKey the primary key of this pratica attenzionata + */ + public void setPrimaryKey(long primaryKey); + + /** + * Returns the uuid of this pratica attenzionata. + * + * @return the uuid of this pratica attenzionata + */ + @AutoEscape + @Override + public String getUuid(); + + /** + * Sets the uuid of this pratica attenzionata. + * + * @param uuid the uuid of this pratica attenzionata + */ + @Override + public void setUuid(String uuid); + + /** + * Returns the pratica attenzionata ID of this pratica attenzionata. + * + * @return the pratica attenzionata ID of this pratica attenzionata + */ + public long getPraticaAttenzionataId(); + + /** + * Sets the pratica attenzionata ID of this pratica attenzionata. + * + * @param praticaAttenzionataId the pratica attenzionata ID of this pratica attenzionata + */ + public void setPraticaAttenzionataId(long praticaAttenzionataId); + + /** + * Returns the company ID of this pratica attenzionata. + * + * @return the company ID of this pratica attenzionata + */ + @Override + public long getCompanyId(); + + /** + * Sets the company ID of this pratica attenzionata. + * + * @param companyId the company ID of this pratica attenzionata + */ + @Override + public void setCompanyId(long companyId); + + /** + * Returns the user ID of this pratica attenzionata. + * + * @return the user ID of this pratica attenzionata + */ + @Override + public long getUserId(); + + /** + * Sets the user ID of this pratica attenzionata. + * + * @param userId the user ID of this pratica attenzionata + */ + @Override + public void setUserId(long userId); + + /** + * Returns the user uuid of this pratica attenzionata. + * + * @return the user uuid of this pratica attenzionata + * @throws SystemException if a system exception occurred + */ + @Override + public String getUserUuid() throws SystemException; + + /** + * Sets the user uuid of this pratica attenzionata. + * + * @param userUuid the user uuid of this pratica attenzionata + */ + @Override + public void setUserUuid(String userUuid); + + /** + * Returns the user name of this pratica attenzionata. + * + * @return the user name of this pratica attenzionata + */ + @AutoEscape + @Override + public String getUserName(); + + /** + * Sets the user name of this pratica attenzionata. + * + * @param userName the user name of this pratica attenzionata + */ + @Override + public void setUserName(String userName); + + /** + * Returns the create date of this pratica attenzionata. + * + * @return the create date of this pratica attenzionata + */ + @Override + public Date getCreateDate(); + + /** + * Sets the create date of this pratica attenzionata. + * + * @param createDate the create date of this pratica attenzionata + */ + @Override + public void setCreateDate(Date createDate); + + /** + * Returns the modified date of this pratica attenzionata. + * + * @return the modified date of this pratica attenzionata + */ + @Override + public Date getModifiedDate(); + + /** + * Sets the modified date of this pratica attenzionata. + * + * @param modifiedDate the modified date of this pratica attenzionata + */ + @Override + public void setModifiedDate(Date modifiedDate); + + /** + * Returns the group ID of this pratica attenzionata. + * + * @return the group ID of this pratica attenzionata + */ + @Override + public long getGroupId(); + + /** + * Sets the group ID of this pratica attenzionata. + * + * @param groupId the group ID of this pratica attenzionata + */ + @Override + public void setGroupId(long groupId); + + /** + * Returns the int pratica ID of this pratica attenzionata. + * + * @return the int pratica ID of this pratica attenzionata + */ + public long getIntPraticaId(); + + /** + * Sets the int pratica ID of this pratica attenzionata. + * + * @param intPraticaId the int pratica ID of this pratica attenzionata + */ + public void setIntPraticaId(long intPraticaId); + + /** + * Returns the fine lavori ID of this pratica attenzionata. + * + * @return the fine lavori ID of this pratica attenzionata + */ + public long getFineLavoriId(); + + /** + * Sets the fine lavori ID of this pratica attenzionata. + * + * @param fineLavoriId the fine lavori ID of this pratica attenzionata + */ + public void setFineLavoriId(long fineLavoriId); + + /** + * Returns the numero progetto of this pratica attenzionata. + * + * @return the numero progetto of this pratica attenzionata + */ + @AutoEscape + public String getNumeroProgetto(); + + /** + * Sets the numero progetto of this pratica attenzionata. + * + * @param numeroProgetto the numero progetto of this pratica attenzionata + */ + public void setNumeroProgetto(String numeroProgetto); + + /** + * Returns the data fine lavori totale of this pratica attenzionata. + * + * @return the data fine lavori totale of this pratica attenzionata + */ + public Date getDataFineLavoriTotale(); + + /** + * Sets the data fine lavori totale of this pratica attenzionata. + * + * @param dataFineLavoriTotale the data fine lavori totale of this pratica attenzionata + */ + public void setDataFineLavoriTotale(Date dataFineLavoriTotale); + + /** + * Returns the data relazione fine lavori totale of this pratica attenzionata. + * + * @return the data relazione fine lavori totale of this pratica attenzionata + */ + public Date getDataRelazioneFineLavoriTotale(); + + /** + * Sets the data relazione fine lavori totale of this pratica attenzionata. + * + * @param dataRelazioneFineLavoriTotale the data relazione fine lavori totale of this pratica attenzionata + */ + public void setDataRelazioneFineLavoriTotale( + Date dataRelazioneFineLavoriTotale); + + /** + * Returns the verificata of this pratica attenzionata. + * + * @return the verificata of this pratica attenzionata + */ + public boolean getVerificata(); + + /** + * Returns true if this pratica attenzionata is verificata. + * + * @return true if this pratica attenzionata is verificata; false otherwise + */ + public boolean isVerificata(); + + /** + * Sets whether this pratica attenzionata is verificata. + * + * @param verificata the verificata of this pratica attenzionata + */ + public void setVerificata(boolean verificata); + + /** + * Returns the data verifica of this pratica attenzionata. + * + * @return the data verifica of this pratica attenzionata + */ + public Date getDataVerifica(); + + /** + * Sets the data verifica of this pratica attenzionata. + * + * @param dataVerifica the data verifica of this pratica attenzionata + */ + public void setDataVerifica(Date dataVerifica); + + @Override + public boolean isNew(); + + @Override + public void setNew(boolean n); + + @Override + public boolean isCachedModel(); + + @Override + public void setCachedModel(boolean cachedModel); + + @Override + public boolean isEscapedModel(); + + @Override + public Serializable getPrimaryKeyObj(); + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj); + + @Override + public ExpandoBridge getExpandoBridge(); + + @Override + public void setExpandoBridgeAttributes(BaseModel baseModel); + + @Override + public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); + + @Override + public void setExpandoBridgeAttributes(ServiceContext serviceContext); + + @Override + public Object clone(); + + @Override + public int compareTo( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata); + + @Override + public int hashCode(); + + @Override + public CacheModel toCacheModel(); + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata toEscapedModel(); + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata toUnescapedModel(); + + @Override + public String toString(); + + @Override + public String toXmlString(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java new file mode 100644 index 00000000..90a79385 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * This class is used by SOAP remote services, specifically {@link it.tref.liferay.portos.bo.service.http.PraticaAttenzionataServiceSoap}. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see it.tref.liferay.portos.bo.service.http.PraticaAttenzionataServiceSoap + * @generated + */ +public class PraticaAttenzionataSoap implements Serializable { + public static PraticaAttenzionataSoap toSoapModel(PraticaAttenzionata model) { + PraticaAttenzionataSoap soapModel = new PraticaAttenzionataSoap(); + + soapModel.setUuid(model.getUuid()); + soapModel.setPraticaAttenzionataId(model.getPraticaAttenzionataId()); + soapModel.setCompanyId(model.getCompanyId()); + soapModel.setUserId(model.getUserId()); + soapModel.setUserName(model.getUserName()); + soapModel.setCreateDate(model.getCreateDate()); + soapModel.setModifiedDate(model.getModifiedDate()); + soapModel.setGroupId(model.getGroupId()); + soapModel.setIntPraticaId(model.getIntPraticaId()); + soapModel.setFineLavoriId(model.getFineLavoriId()); + soapModel.setNumeroProgetto(model.getNumeroProgetto()); + soapModel.setDataFineLavoriTotale(model.getDataFineLavoriTotale()); + soapModel.setDataRelazioneFineLavoriTotale(model.getDataRelazioneFineLavoriTotale()); + soapModel.setVerificata(model.getVerificata()); + soapModel.setDataVerifica(model.getDataVerifica()); + + return soapModel; + } + + public static PraticaAttenzionataSoap[] toSoapModels( + PraticaAttenzionata[] models) { + PraticaAttenzionataSoap[] soapModels = new PraticaAttenzionataSoap[models.length]; + + for (int i = 0; i < models.length; i++) { + soapModels[i] = toSoapModel(models[i]); + } + + return soapModels; + } + + public static PraticaAttenzionataSoap[][] toSoapModels( + PraticaAttenzionata[][] models) { + PraticaAttenzionataSoap[][] soapModels = null; + + if (models.length > 0) { + soapModels = new PraticaAttenzionataSoap[models.length][models[0].length]; + } + else { + soapModels = new PraticaAttenzionataSoap[0][0]; + } + + for (int i = 0; i < models.length; i++) { + soapModels[i] = toSoapModels(models[i]); + } + + return soapModels; + } + + public static PraticaAttenzionataSoap[] toSoapModels( + List models) { + List soapModels = new ArrayList(models.size()); + + for (PraticaAttenzionata model : models) { + soapModels.add(toSoapModel(model)); + } + + return soapModels.toArray(new PraticaAttenzionataSoap[soapModels.size()]); + } + + public PraticaAttenzionataSoap() { + } + + public long getPrimaryKey() { + return _praticaAttenzionataId; + } + + public void setPrimaryKey(long pk) { + setPraticaAttenzionataId(pk); + } + + public String getUuid() { + return _uuid; + } + + public void setUuid(String uuid) { + _uuid = uuid; + } + + public long getPraticaAttenzionataId() { + return _praticaAttenzionataId; + } + + public void setPraticaAttenzionataId(long praticaAttenzionataId) { + _praticaAttenzionataId = praticaAttenzionataId; + } + + public long getCompanyId() { + return _companyId; + } + + public void setCompanyId(long companyId) { + _companyId = companyId; + } + + public long getUserId() { + return _userId; + } + + public void setUserId(long userId) { + _userId = userId; + } + + public String getUserName() { + return _userName; + } + + public void setUserName(String userName) { + _userName = userName; + } + + public Date getCreateDate() { + return _createDate; + } + + public void setCreateDate(Date createDate) { + _createDate = createDate; + } + + public Date getModifiedDate() { + return _modifiedDate; + } + + public void setModifiedDate(Date modifiedDate) { + _modifiedDate = modifiedDate; + } + + public long getGroupId() { + return _groupId; + } + + public void setGroupId(long groupId) { + _groupId = groupId; + } + + public long getIntPraticaId() { + return _intPraticaId; + } + + public void setIntPraticaId(long intPraticaId) { + _intPraticaId = intPraticaId; + } + + public long getFineLavoriId() { + return _fineLavoriId; + } + + public void setFineLavoriId(long fineLavoriId) { + _fineLavoriId = fineLavoriId; + } + + public String getNumeroProgetto() { + return _numeroProgetto; + } + + public void setNumeroProgetto(String numeroProgetto) { + _numeroProgetto = numeroProgetto; + } + + public Date getDataFineLavoriTotale() { + return _dataFineLavoriTotale; + } + + public void setDataFineLavoriTotale(Date dataFineLavoriTotale) { + _dataFineLavoriTotale = dataFineLavoriTotale; + } + + public Date getDataRelazioneFineLavoriTotale() { + return _dataRelazioneFineLavoriTotale; + } + + public void setDataRelazioneFineLavoriTotale( + Date dataRelazioneFineLavoriTotale) { + _dataRelazioneFineLavoriTotale = dataRelazioneFineLavoriTotale; + } + + public boolean getVerificata() { + return _verificata; + } + + public boolean isVerificata() { + return _verificata; + } + + public void setVerificata(boolean verificata) { + _verificata = verificata; + } + + public Date getDataVerifica() { + return _dataVerifica; + } + + public void setDataVerifica(Date dataVerifica) { + _dataVerifica = dataVerifica; + } + + private String _uuid; + private long _praticaAttenzionataId; + private long _companyId; + private long _userId; + private String _userName; + private Date _createDate; + private Date _modifiedDate; + private long _groupId; + private long _intPraticaId; + private long _fineLavoriId; + private String _numeroProgetto; + private Date _dataFineLavoriTotale; + private Date _dataRelazioneFineLavoriTotale; + private boolean _verificata; + private Date _dataVerifica; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java new file mode 100644 index 00000000..62ac75de --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java @@ -0,0 +1,670 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model; + +import com.liferay.portal.kernel.lar.StagedModelType; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.ModelWrapper; + +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + *

+ * This class is a wrapper for {@link PraticaAttenzionata}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionata + * @generated + */ +public class PraticaAttenzionataWrapper implements PraticaAttenzionata, + ModelWrapper { + public PraticaAttenzionataWrapper(PraticaAttenzionata praticaAttenzionata) { + _praticaAttenzionata = praticaAttenzionata; + } + + @Override + public Class getModelClass() { + return PraticaAttenzionata.class; + } + + @Override + public String getModelClassName() { + return PraticaAttenzionata.class.getName(); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("uuid", getUuid()); + attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); + attributes.put("companyId", getCompanyId()); + attributes.put("userId", getUserId()); + attributes.put("userName", getUserName()); + attributes.put("createDate", getCreateDate()); + attributes.put("modifiedDate", getModifiedDate()); + attributes.put("groupId", getGroupId()); + attributes.put("intPraticaId", getIntPraticaId()); + attributes.put("fineLavoriId", getFineLavoriId()); + attributes.put("numeroProgetto", getNumeroProgetto()); + attributes.put("dataFineLavoriTotale", getDataFineLavoriTotale()); + attributes.put("dataRelazioneFineLavoriTotale", + getDataRelazioneFineLavoriTotale()); + attributes.put("verificata", getVerificata()); + attributes.put("dataVerifica", getDataVerifica()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + + Long praticaAttenzionataId = (Long)attributes.get( + "praticaAttenzionataId"); + + if (praticaAttenzionataId != null) { + setPraticaAttenzionataId(praticaAttenzionataId); + } + + Long companyId = (Long)attributes.get("companyId"); + + if (companyId != null) { + setCompanyId(companyId); + } + + Long userId = (Long)attributes.get("userId"); + + if (userId != null) { + setUserId(userId); + } + + String userName = (String)attributes.get("userName"); + + if (userName != null) { + setUserName(userName); + } + + Date createDate = (Date)attributes.get("createDate"); + + if (createDate != null) { + setCreateDate(createDate); + } + + Date modifiedDate = (Date)attributes.get("modifiedDate"); + + if (modifiedDate != null) { + setModifiedDate(modifiedDate); + } + + Long groupId = (Long)attributes.get("groupId"); + + if (groupId != null) { + setGroupId(groupId); + } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } + + Long fineLavoriId = (Long)attributes.get("fineLavoriId"); + + if (fineLavoriId != null) { + setFineLavoriId(fineLavoriId); + } + + String numeroProgetto = (String)attributes.get("numeroProgetto"); + + if (numeroProgetto != null) { + setNumeroProgetto(numeroProgetto); + } + + Date dataFineLavoriTotale = (Date)attributes.get("dataFineLavoriTotale"); + + if (dataFineLavoriTotale != null) { + setDataFineLavoriTotale(dataFineLavoriTotale); + } + + Date dataRelazioneFineLavoriTotale = (Date)attributes.get( + "dataRelazioneFineLavoriTotale"); + + if (dataRelazioneFineLavoriTotale != null) { + setDataRelazioneFineLavoriTotale(dataRelazioneFineLavoriTotale); + } + + Boolean verificata = (Boolean)attributes.get("verificata"); + + if (verificata != null) { + setVerificata(verificata); + } + + Date dataVerifica = (Date)attributes.get("dataVerifica"); + + if (dataVerifica != null) { + setDataVerifica(dataVerifica); + } + } + + /** + * Returns the primary key of this pratica attenzionata. + * + * @return the primary key of this pratica attenzionata + */ + @Override + public long getPrimaryKey() { + return _praticaAttenzionata.getPrimaryKey(); + } + + /** + * Sets the primary key of this pratica attenzionata. + * + * @param primaryKey the primary key of this pratica attenzionata + */ + @Override + public void setPrimaryKey(long primaryKey) { + _praticaAttenzionata.setPrimaryKey(primaryKey); + } + + /** + * Returns the uuid of this pratica attenzionata. + * + * @return the uuid of this pratica attenzionata + */ + @Override + public java.lang.String getUuid() { + return _praticaAttenzionata.getUuid(); + } + + /** + * Sets the uuid of this pratica attenzionata. + * + * @param uuid the uuid of this pratica attenzionata + */ + @Override + public void setUuid(java.lang.String uuid) { + _praticaAttenzionata.setUuid(uuid); + } + + /** + * Returns the pratica attenzionata ID of this pratica attenzionata. + * + * @return the pratica attenzionata ID of this pratica attenzionata + */ + @Override + public long getPraticaAttenzionataId() { + return _praticaAttenzionata.getPraticaAttenzionataId(); + } + + /** + * Sets the pratica attenzionata ID of this pratica attenzionata. + * + * @param praticaAttenzionataId the pratica attenzionata ID of this pratica attenzionata + */ + @Override + public void setPraticaAttenzionataId(long praticaAttenzionataId) { + _praticaAttenzionata.setPraticaAttenzionataId(praticaAttenzionataId); + } + + /** + * Returns the company ID of this pratica attenzionata. + * + * @return the company ID of this pratica attenzionata + */ + @Override + public long getCompanyId() { + return _praticaAttenzionata.getCompanyId(); + } + + /** + * Sets the company ID of this pratica attenzionata. + * + * @param companyId the company ID of this pratica attenzionata + */ + @Override + public void setCompanyId(long companyId) { + _praticaAttenzionata.setCompanyId(companyId); + } + + /** + * Returns the user ID of this pratica attenzionata. + * + * @return the user ID of this pratica attenzionata + */ + @Override + public long getUserId() { + return _praticaAttenzionata.getUserId(); + } + + /** + * Sets the user ID of this pratica attenzionata. + * + * @param userId the user ID of this pratica attenzionata + */ + @Override + public void setUserId(long userId) { + _praticaAttenzionata.setUserId(userId); + } + + /** + * Returns the user uuid of this pratica attenzionata. + * + * @return the user uuid of this pratica attenzionata + * @throws SystemException if a system exception occurred + */ + @Override + public java.lang.String getUserUuid() + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionata.getUserUuid(); + } + + /** + * Sets the user uuid of this pratica attenzionata. + * + * @param userUuid the user uuid of this pratica attenzionata + */ + @Override + public void setUserUuid(java.lang.String userUuid) { + _praticaAttenzionata.setUserUuid(userUuid); + } + + /** + * Returns the user name of this pratica attenzionata. + * + * @return the user name of this pratica attenzionata + */ + @Override + public java.lang.String getUserName() { + return _praticaAttenzionata.getUserName(); + } + + /** + * Sets the user name of this pratica attenzionata. + * + * @param userName the user name of this pratica attenzionata + */ + @Override + public void setUserName(java.lang.String userName) { + _praticaAttenzionata.setUserName(userName); + } + + /** + * Returns the create date of this pratica attenzionata. + * + * @return the create date of this pratica attenzionata + */ + @Override + public java.util.Date getCreateDate() { + return _praticaAttenzionata.getCreateDate(); + } + + /** + * Sets the create date of this pratica attenzionata. + * + * @param createDate the create date of this pratica attenzionata + */ + @Override + public void setCreateDate(java.util.Date createDate) { + _praticaAttenzionata.setCreateDate(createDate); + } + + /** + * Returns the modified date of this pratica attenzionata. + * + * @return the modified date of this pratica attenzionata + */ + @Override + public java.util.Date getModifiedDate() { + return _praticaAttenzionata.getModifiedDate(); + } + + /** + * Sets the modified date of this pratica attenzionata. + * + * @param modifiedDate the modified date of this pratica attenzionata + */ + @Override + public void setModifiedDate(java.util.Date modifiedDate) { + _praticaAttenzionata.setModifiedDate(modifiedDate); + } + + /** + * Returns the group ID of this pratica attenzionata. + * + * @return the group ID of this pratica attenzionata + */ + @Override + public long getGroupId() { + return _praticaAttenzionata.getGroupId(); + } + + /** + * Sets the group ID of this pratica attenzionata. + * + * @param groupId the group ID of this pratica attenzionata + */ + @Override + public void setGroupId(long groupId) { + _praticaAttenzionata.setGroupId(groupId); + } + + /** + * Returns the int pratica ID of this pratica attenzionata. + * + * @return the int pratica ID of this pratica attenzionata + */ + @Override + public long getIntPraticaId() { + return _praticaAttenzionata.getIntPraticaId(); + } + + /** + * Sets the int pratica ID of this pratica attenzionata. + * + * @param intPraticaId the int pratica ID of this pratica attenzionata + */ + @Override + public void setIntPraticaId(long intPraticaId) { + _praticaAttenzionata.setIntPraticaId(intPraticaId); + } + + /** + * Returns the fine lavori ID of this pratica attenzionata. + * + * @return the fine lavori ID of this pratica attenzionata + */ + @Override + public long getFineLavoriId() { + return _praticaAttenzionata.getFineLavoriId(); + } + + /** + * Sets the fine lavori ID of this pratica attenzionata. + * + * @param fineLavoriId the fine lavori ID of this pratica attenzionata + */ + @Override + public void setFineLavoriId(long fineLavoriId) { + _praticaAttenzionata.setFineLavoriId(fineLavoriId); + } + + /** + * Returns the numero progetto of this pratica attenzionata. + * + * @return the numero progetto of this pratica attenzionata + */ + @Override + public java.lang.String getNumeroProgetto() { + return _praticaAttenzionata.getNumeroProgetto(); + } + + /** + * Sets the numero progetto of this pratica attenzionata. + * + * @param numeroProgetto the numero progetto of this pratica attenzionata + */ + @Override + public void setNumeroProgetto(java.lang.String numeroProgetto) { + _praticaAttenzionata.setNumeroProgetto(numeroProgetto); + } + + /** + * Returns the data fine lavori totale of this pratica attenzionata. + * + * @return the data fine lavori totale of this pratica attenzionata + */ + @Override + public java.util.Date getDataFineLavoriTotale() { + return _praticaAttenzionata.getDataFineLavoriTotale(); + } + + /** + * Sets the data fine lavori totale of this pratica attenzionata. + * + * @param dataFineLavoriTotale the data fine lavori totale of this pratica attenzionata + */ + @Override + public void setDataFineLavoriTotale(java.util.Date dataFineLavoriTotale) { + _praticaAttenzionata.setDataFineLavoriTotale(dataFineLavoriTotale); + } + + /** + * Returns the data relazione fine lavori totale of this pratica attenzionata. + * + * @return the data relazione fine lavori totale of this pratica attenzionata + */ + @Override + public java.util.Date getDataRelazioneFineLavoriTotale() { + return _praticaAttenzionata.getDataRelazioneFineLavoriTotale(); + } + + /** + * Sets the data relazione fine lavori totale of this pratica attenzionata. + * + * @param dataRelazioneFineLavoriTotale the data relazione fine lavori totale of this pratica attenzionata + */ + @Override + public void setDataRelazioneFineLavoriTotale( + java.util.Date dataRelazioneFineLavoriTotale) { + _praticaAttenzionata.setDataRelazioneFineLavoriTotale(dataRelazioneFineLavoriTotale); + } + + /** + * Returns the verificata of this pratica attenzionata. + * + * @return the verificata of this pratica attenzionata + */ + @Override + public boolean getVerificata() { + return _praticaAttenzionata.getVerificata(); + } + + /** + * Returns true if this pratica attenzionata is verificata. + * + * @return true if this pratica attenzionata is verificata; false otherwise + */ + @Override + public boolean isVerificata() { + return _praticaAttenzionata.isVerificata(); + } + + /** + * Sets whether this pratica attenzionata is verificata. + * + * @param verificata the verificata of this pratica attenzionata + */ + @Override + public void setVerificata(boolean verificata) { + _praticaAttenzionata.setVerificata(verificata); + } + + /** + * Returns the data verifica of this pratica attenzionata. + * + * @return the data verifica of this pratica attenzionata + */ + @Override + public java.util.Date getDataVerifica() { + return _praticaAttenzionata.getDataVerifica(); + } + + /** + * Sets the data verifica of this pratica attenzionata. + * + * @param dataVerifica the data verifica of this pratica attenzionata + */ + @Override + public void setDataVerifica(java.util.Date dataVerifica) { + _praticaAttenzionata.setDataVerifica(dataVerifica); + } + + @Override + public boolean isNew() { + return _praticaAttenzionata.isNew(); + } + + @Override + public void setNew(boolean n) { + _praticaAttenzionata.setNew(n); + } + + @Override + public boolean isCachedModel() { + return _praticaAttenzionata.isCachedModel(); + } + + @Override + public void setCachedModel(boolean cachedModel) { + _praticaAttenzionata.setCachedModel(cachedModel); + } + + @Override + public boolean isEscapedModel() { + return _praticaAttenzionata.isEscapedModel(); + } + + @Override + public java.io.Serializable getPrimaryKeyObj() { + return _praticaAttenzionata.getPrimaryKeyObj(); + } + + @Override + public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { + _praticaAttenzionata.setPrimaryKeyObj(primaryKeyObj); + } + + @Override + public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { + return _praticaAttenzionata.getExpandoBridge(); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portal.model.BaseModel baseModel) { + _praticaAttenzionata.setExpandoBridgeAttributes(baseModel); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { + _praticaAttenzionata.setExpandoBridgeAttributes(expandoBridge); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portal.service.ServiceContext serviceContext) { + _praticaAttenzionata.setExpandoBridgeAttributes(serviceContext); + } + + @Override + public java.lang.Object clone() { + return new PraticaAttenzionataWrapper((PraticaAttenzionata)_praticaAttenzionata.clone()); + } + + @Override + public int compareTo( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) { + return _praticaAttenzionata.compareTo(praticaAttenzionata); + } + + @Override + public int hashCode() { + return _praticaAttenzionata.hashCode(); + } + + @Override + public com.liferay.portal.model.CacheModel toCacheModel() { + return _praticaAttenzionata.toCacheModel(); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata toEscapedModel() { + return new PraticaAttenzionataWrapper(_praticaAttenzionata.toEscapedModel()); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata toUnescapedModel() { + return new PraticaAttenzionataWrapper(_praticaAttenzionata.toUnescapedModel()); + } + + @Override + public java.lang.String toString() { + return _praticaAttenzionata.toString(); + } + + @Override + public java.lang.String toXmlString() { + return _praticaAttenzionata.toXmlString(); + } + + @Override + public void persist() + throws com.liferay.portal.kernel.exception.SystemException { + _praticaAttenzionata.persist(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof PraticaAttenzionataWrapper)) { + return false; + } + + PraticaAttenzionataWrapper praticaAttenzionataWrapper = (PraticaAttenzionataWrapper)obj; + + if (Validator.equals(_praticaAttenzionata, + praticaAttenzionataWrapper._praticaAttenzionata)) { + return true; + } + + return false; + } + + @Override + public StagedModelType getStagedModelType() { + return _praticaAttenzionata.getStagedModelType(); + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} + */ + public PraticaAttenzionata getWrappedPraticaAttenzionata() { + return _praticaAttenzionata; + } + + @Override + public PraticaAttenzionata getWrappedModel() { + return _praticaAttenzionata; + } + + @Override + public void resetOriginalValues() { + _praticaAttenzionata.resetOriginalValues(); + } + + private PraticaAttenzionata _praticaAttenzionata; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java index 02c377b4..c70f72a5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java @@ -13,6 +13,7 @@ import java.util.List; import java.util.Properties; import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequestWrapper; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; @@ -91,7 +92,7 @@ public class IntPraticaAdvancedSearch { } public static Hits searchAltriProgetti(HttpServletRequest request, User user, int start, int end) { - + SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); searchContext.setAttribute("paginationType", "more"); @@ -516,11 +517,23 @@ public class IntPraticaAdvancedSearch { private static void queryTipoProcedura(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { String tipoProcedura = ParamUtil.getString(request, PortosIndexField.TIPO_PROCEDURA); + // EVOLUTIVA per filtro ospedaliera +// Boolean praticaOspedaliera = ParamUtil.getBoolean(request, "praticaospedaliera"); if (Validator.isNotNull(tipoProcedura)) { - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PROCEDURA, - tipoProcedura); - if (Validator.isNotNull(termQuery)) { - booleanQuery.add(termQuery, BooleanClauseOccur.MUST); + if("H".equals(tipoProcedura)){ + _log.debug("tipoProcedura: "+tipoProcedura); + tipoProcedura = "B"; + TermQuery ospedalieraTermQuery = TermQueryFactoryUtil.create(searchContext, "praticaospedaliera", + "true"); + if (Validator.isNotNull(ospedalieraTermQuery)) { + booleanQuery.add(ospedalieraTermQuery, BooleanClauseOccur.MUST); + } + }else{ + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PROCEDURA, + tipoProcedura); + if (Validator.isNotNull(termQuery)) { + booleanQuery.add(termQuery, BooleanClauseOccur.MUST); + } } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java index 956a1296..fe8c232f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java @@ -726,6 +726,11 @@ public interface AvvisoLocalService extends BaseLocalService, long intPraticaId, long dettPraticaID) throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.Avviso getAvvisoPraticaOspedaliera( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java index 023f3d0e..11586df8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java @@ -558,9 +558,13 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { _methodParameterTypes110 = new String[] { "long", "long" }; - _methodName111 = "getLastAvvisoIntegrazione"; + _methodName111 = "getAvvisoPraticaOspedaliera"; _methodParameterTypes111 = new String[] { "long" }; + + _methodName112 = "getLastAvvisoIntegrazione"; + + _methodParameterTypes112 = new String[] { "long" }; } @Override @@ -4278,7 +4282,7 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { } @Override - public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( + public it.tref.liferay.portos.bo.model.Avviso getAvvisoPraticaOspedaliera( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -4306,6 +4310,35 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { return (it.tref.liferay.portos.bo.model.Avviso)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName112, + _methodParameterTypes112, new Object[] { intPraticaId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.Avviso)ClpSerializer.translateOutput(returnObj); + } + private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -4529,4 +4562,6 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { private String[] _methodParameterTypes110; private String _methodName111; private String[] _methodParameterTypes111; + private String _methodName112; + private String[] _methodParameterTypes112; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java index 72c816f9..ebb2efc1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java @@ -960,6 +960,12 @@ public class AvvisoLocalServiceUtil { return getService().getAvvisoVidimazione(intPraticaId, dettPraticaID); } + public static it.tref.liferay.portos.bo.model.Avviso getAvvisoPraticaOspedaliera( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getAvvisoPraticaOspedaliera(intPraticaId); + } + public static it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java index be28987e..48923b3e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java @@ -1050,6 +1050,13 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, dettPraticaID); } + @Override + public it.tref.liferay.portos.bo.model.Avviso getAvvisoPraticaOspedaliera( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _avvisoLocalService.getAvvisoPraticaOspedaliera(intPraticaId); + } + @Override public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java index 798d494b..a312f989 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.model.HistoryWorkflowActionClp; import it.tref.liferay.portos.bo.model.IntPraticaClp; import it.tref.liferay.portos.bo.model.PagamentoClp; import it.tref.liferay.portos.bo.model.ParereGeologoClp; +import it.tref.liferay.portos.bo.model.PraticaAttenzionataClp; import it.tref.liferay.portos.bo.model.ProvinciaClp; import it.tref.liferay.portos.bo.model.SoggettoClp; import it.tref.liferay.portos.bo.model.SorteggioClp; @@ -192,6 +193,10 @@ public class ClpSerializer { return translateInputParereGeologo(oldModel); } + if (oldModelClassName.equals(PraticaAttenzionataClp.class.getName())) { + return translateInputPraticaAttenzionata(oldModel); + } + if (oldModelClassName.equals(ProvinciaClp.class.getName())) { return translateInputProvincia(oldModel); } @@ -402,6 +407,17 @@ public class ClpSerializer { return newModel; } + public static Object translateInputPraticaAttenzionata( + BaseModel oldModel) { + PraticaAttenzionataClp oldClpModel = (PraticaAttenzionataClp)oldModel; + + BaseModel newModel = oldClpModel.getPraticaAttenzionataRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + public static Object translateInputProvincia(BaseModel oldModel) { ProvinciaClp oldClpModel = (ProvinciaClp)oldModel; @@ -1109,6 +1125,43 @@ public class ClpSerializer { } } + if (oldModelClassName.equals( + "it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl")) { + return translateOutputPraticaAttenzionata(oldModel); + } + else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod( + "getClpSerializerClass"); + + Class oldClpSerializerClass = (Class)getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", + BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = oldModelClass.getMethod("get" + + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel)translateOutputMethod.invoke(null, + oldRemoteModel); + + return newModel; + } + catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + if (oldModelClassName.equals( "it.tref.liferay.portos.bo.model.impl.ProvinciaImpl")) { return translateOutputProvincia(oldModel); @@ -1547,6 +1600,11 @@ public class ClpSerializer { return new it.tref.liferay.portos.bo.NoSuchParereGeologoException(); } + if (className.equals( + "it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException")) { + return new it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException(); + } + if (className.equals( "it.tref.liferay.portos.bo.NoSuchProvinciaException")) { return new it.tref.liferay.portos.bo.NoSuchProvinciaException(); @@ -1751,6 +1809,17 @@ public class ClpSerializer { return newModel; } + public static Object translateOutputPraticaAttenzionata( + BaseModel oldModel) { + PraticaAttenzionataClp newModel = new PraticaAttenzionataClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setPraticaAttenzionataRemoteModel(oldModel); + + return newModel; + } + public static Object translateOutputProvincia(BaseModel oldModel) { ProvinciaClp newModel = new ProvinciaClp(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java index a1b51a62..82c44c5c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java @@ -283,6 +283,7 @@ public interface ComuneLocalService extends BaseLocalService, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -292,6 +293,7 @@ public interface ComuneLocalService extends BaseLocalService, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -355,11 +357,17 @@ public interface ComuneLocalService extends BaseLocalService, long companyId) throws com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera( + long comuneId, boolean isPraticaOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.Comune updateComune(long userId, long comuneId, java.lang.String codiceProvincia, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -369,6 +377,7 @@ public interface ComuneLocalService extends BaseLocalService, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java index b77cecca..00c9b9a2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java @@ -128,7 +128,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", - "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName22 = "addComune"; @@ -136,7 +136,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService { _methodParameterTypes22 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "java.lang.String", "java.lang.String", + "boolean", "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; @@ -205,31 +205,37 @@ public class ComuneLocalServiceClp implements ComuneLocalService { _methodParameterTypes36 = new String[] { "long" }; - _methodName37 = "updateComune"; + _methodName37 = "setPraticaOspedaliera"; _methodParameterTypes37 = new String[] { + "long", "boolean", "com.liferay.portal.service.ServiceContext" + }; + + _methodName38 = "updateComune"; + + _methodParameterTypes38 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", - "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName38 = "updateComune"; + _methodName39 = "updateComune"; - _methodParameterTypes38 = new String[] { + _methodParameterTypes39 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", - "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName39 = "getComuniForOrganizationByUserId"; + _methodName40 = "getComuniForOrganizationByUserId"; - _methodParameterTypes39 = new String[] { "long" }; + _methodParameterTypes40 = new String[] { "long" }; - _methodName40 = "getComuniForOrganizationByUserIdUfficioId"; + _methodName41 = "getComuniForOrganizationByUserIdUfficioId"; - _methodParameterTypes40 = new String[] { "long", "long" }; + _methodParameterTypes41 = new String[] { "long", "long" }; } @Override @@ -849,6 +855,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService { java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -878,6 +885,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { ClpSerializer.translateInput(mailSue), + praticaOspedaliera, + ClpSerializer.translateInput(serviceContext) }); } @@ -910,6 +919,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService { java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -937,6 +947,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { ClpSerializer.translateInput(mailSue), + praticaOspedaliera, + ClpSerializer.translateInput(serviceContext) }); } @@ -1427,20 +1439,58 @@ public class ComuneLocalServiceClp implements ComuneLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera( + long comuneId, boolean isPraticaOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, + new Object[] { + comuneId, + + isPraticaOspedaliera, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.Comune)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.Comune updateComune(long userId, long comuneId, java.lang.String codiceProvincia, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { userId, @@ -1462,6 +1512,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { ClpSerializer.translateInput(mailSue), + praticaOspedaliera, + ClpSerializer.translateInput(serviceContext) }); } @@ -1494,14 +1546,15 @@ public class ComuneLocalServiceClp implements ComuneLocalService { java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { userId, @@ -1521,6 +1574,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { ClpSerializer.translateInput(mailSue), + praticaOspedaliera, + ClpSerializer.translateInput(serviceContext) }); } @@ -1553,8 +1608,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1582,8 +1637,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { userId, ufficioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { userId, ufficioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1685,4 +1740,6 @@ public class ComuneLocalServiceClp implements ComuneLocalService { private String[] _methodParameterTypes39; private String _methodName40; private String[] _methodParameterTypes40; + private String _methodName41; + private String[] _methodParameterTypes41; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java index 2f39b388..ed6c335f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java @@ -310,14 +310,14 @@ public class ComuneLocalServiceUtil { java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, - java.lang.String mailSue, + java.lang.String mailSue, boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addComune(userId, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, provincia, stato, - mailSuap, mailSue, serviceContext); + mailSuap, mailSue, praticaOspedaliera, serviceContext); } public static it.tref.liferay.portos.bo.model.Comune addComune( @@ -325,13 +325,14 @@ public class ComuneLocalServiceUtil { java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addComune(userId, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, provincia, mailSuap, - mailSue, serviceContext); + mailSue, praticaOspedaliera, serviceContext); } public static int countByCompanyId(long companyId) @@ -424,18 +425,28 @@ public class ComuneLocalServiceUtil { return getService().getStatiEsteri(companyId); } + public static it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera( + long comuneId, boolean isPraticaOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .setPraticaOspedaliera(comuneId, isPraticaOspedaliera, + serviceContext); + } + public static it.tref.liferay.portos.bo.model.Comune updateComune( long userId, long comuneId, java.lang.String codiceProvincia, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, denominazione, provincia, stato, - mailSuap, mailSue, serviceContext); + mailSuap, mailSue, praticaOspedaliera, serviceContext); } public static it.tref.liferay.portos.bo.model.Comune updateComune( @@ -443,13 +454,14 @@ public class ComuneLocalServiceUtil { java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, denominazione, provincia, mailSuap, - mailSue, serviceContext); + mailSue, praticaOspedaliera, serviceContext); } public static java.util.List getComuniForOrganizationByUserId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java index e952f5b2..33c860ef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java @@ -318,12 +318,14 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _comuneLocalService.addComune(userId, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, - provincia, stato, mailSuap, mailSue, serviceContext); + provincia, stato, mailSuap, mailSue, praticaOspedaliera, + serviceContext); } @Override @@ -332,12 +334,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService, java.lang.String codiceIstat, java.lang.String codiceBelfiore, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _comuneLocalService.addComune(userId, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, - provincia, mailSuap, mailSue, serviceContext); + provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext); } @Override @@ -443,18 +446,29 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService, return _comuneLocalService.getStatiEsteri(companyId); } + @Override + public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera( + long comuneId, boolean isPraticaOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return _comuneLocalService.setPraticaOspedaliera(comuneId, + isPraticaOspedaliera, serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.Comune updateComune(long userId, long comuneId, java.lang.String codiceProvincia, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, boolean stato, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _comuneLocalService.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, denominazione, - provincia, stato, mailSuap, mailSue, serviceContext); + provincia, stato, mailSuap, mailSue, praticaOspedaliera, + serviceContext); } @Override @@ -463,12 +477,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService, java.lang.String codiceComune, java.lang.String codiceIstat, java.lang.String denominazione, boolean provincia, java.lang.String mailSuap, java.lang.String mailSue, + boolean praticaOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _comuneLocalService.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, denominazione, - provincia, mailSuap, mailSue, serviceContext); + provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java index dd38ed75..03b1c43f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java @@ -426,6 +426,9 @@ public interface ControlloPraticaLocalService extends BaseLocalService, long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; + public int countByIntPratica(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + public java.lang.Long calculateDateAvvioProcedimento( long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java index 0e9c01af..abd45b54 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java @@ -232,9 +232,13 @@ public class ControlloPraticaLocalServiceClp _methodParameterTypes42 = new String[] { "long" }; - _methodName43 = "calculateDateAvvioProcedimento"; + _methodName43 = "countByIntPratica"; _methodParameterTypes43 = new String[] { "long" }; + + _methodName44 = "calculateDateAvvioProcedimento"; + + _methodParameterTypes44 = new String[] { "long" }; } @Override @@ -1691,6 +1695,34 @@ public class ControlloPraticaLocalServiceClp return (java.util.List)ClpSerializer.translateOutput(returnObj); } + @Override + public int countByIntPratica(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + @Override public java.lang.Long calculateDateAvvioProcedimento( long controlloPraticaId) @@ -1699,8 +1731,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, new Object[] { controlloPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1812,4 +1844,6 @@ public class ControlloPraticaLocalServiceClp private String[] _methodParameterTypes42; private String _methodName43; private String[] _methodParameterTypes43; + private String _methodName44; + private String[] _methodParameterTypes44; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java index 4dcd469a..1f15ddb1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java @@ -512,6 +512,11 @@ public class ControlloPraticaLocalServiceUtil { return getService().findByIntPratica(intPraticaId); } + public static int countByIntPratica(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().countByIntPratica(intPraticaId); + } + public static java.lang.Long calculateDateAvvioProcedimento( long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java index 50a6403a..a483187c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java @@ -543,6 +543,12 @@ public class ControlloPraticaLocalServiceWrapper return _controlloPraticaLocalService.findByIntPratica(intPraticaId); } + @Override + public int countByIntPratica(long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _controlloPraticaLocalService.countByIntPratica(intPraticaId); + } + @Override public java.lang.Long calculateDateAvvioProcedimento( long controlloPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java index 4dce10a0..483177b2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java @@ -319,6 +319,14 @@ public interface FineLavoriLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( long userId, long fineLavoriId, long intPraticaId, boolean parziale, @@ -330,6 +338,14 @@ public interface FineLavoriLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchFineLavoriException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.FineLavori getLastEditable( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java index 3d9dee36..21adcd23 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java @@ -137,166 +137,180 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName24 = "updateFineLavori"; + _methodName24 = "addFineLavori"; _methodParameterTypes24 = new String[] { + "long", "boolean", "boolean", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName25 = "updateFineLavori"; + + _methodParameterTypes25 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean" }; - _methodName25 = "getLastEditable"; + _methodName26 = "updateFineLavori"; + + _methodParameterTypes26 = new String[] { + "it.tref.liferay.portos.bo.model.FineLavori", "boolean", + "com.liferay.portal.service.ServiceContext" + }; - _methodParameterTypes25 = new String[] { "long" }; + _methodName27 = "getLastEditable"; - _methodName26 = "getLastCompleted"; + _methodParameterTypes27 = new String[] { "long" }; - _methodParameterTypes26 = new String[] { "long" }; + _methodName28 = "getLastCompleted"; - _methodName27 = "pagaInvia"; + _methodParameterTypes28 = new String[] { "long" }; - _methodParameterTypes27 = new String[] { + _methodName29 = "pagaInvia"; + + _methodParameterTypes29 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName28 = "updateEsitoPagamento"; + _methodName30 = "updateEsitoPagamento"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes30 = new String[] { "long", "long", "java.lang.String" }; - _methodName29 = "updateEsitoPagamento"; + _methodName31 = "updateEsitoPagamento"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes31 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName30 = "updateEsito"; + _methodName32 = "updateEsito"; - _methodParameterTypes30 = new String[] { "long", "int" }; + _methodParameterTypes32 = new String[] { "long", "int" }; - _methodName31 = "updateFineLavoriProtocollo"; + _methodName33 = "updateFineLavoriProtocollo"; - _methodParameterTypes31 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes33 = new String[] { "long", "java.lang.String" }; - _methodName32 = "findByProtocollo"; + _methodName34 = "findByProtocollo"; - _methodParameterTypes32 = new String[] { + _methodParameterTypes34 = new String[] { "long", "long", "java.lang.String" }; - _methodName33 = "fetchByProtocollo"; + _methodName35 = "fetchByProtocollo"; - _methodParameterTypes33 = new String[] { + _methodParameterTypes35 = new String[] { "long", "long", "java.lang.String" }; - _methodName34 = "fetchByProtocollo"; + _methodName36 = "fetchByProtocollo"; - _methodParameterTypes34 = new String[] { "java.lang.String" }; + _methodParameterTypes36 = new String[] { "java.lang.String" }; - _methodName35 = "findByIntPraticaId"; + _methodName37 = "findByIntPraticaId"; - _methodParameterTypes35 = new String[] { + _methodParameterTypes37 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName36 = "countByIntPraticaId"; + _methodName38 = "countByIntPraticaId"; - _methodParameterTypes36 = new String[] { "long" }; + _methodParameterTypes38 = new String[] { "long" }; - _methodName37 = "findByIntPraticaId_Parziale"; + _methodName39 = "findByIntPraticaId_Parziale"; - _methodParameterTypes37 = new String[] { + _methodParameterTypes39 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName38 = "countByIntPraticaId_Parziale"; + _methodName40 = "countByIntPraticaId_Parziale"; - _methodParameterTypes38 = new String[] { "long", "boolean" }; + _methodParameterTypes40 = new String[] { "long", "boolean" }; - _methodName39 = "findByIntPraticaId_Completata"; + _methodName41 = "findByIntPraticaId_Completata"; - _methodParameterTypes39 = new String[] { + _methodParameterTypes41 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName40 = "countByIntPraticaId_Completata"; + _methodName42 = "countByIntPraticaId_Completata"; - _methodParameterTypes40 = new String[] { "long", "boolean" }; + _methodParameterTypes42 = new String[] { "long", "boolean" }; - _methodName41 = "findByIntPraticaId_CodiceFiscale"; + _methodName43 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes41 = new String[] { + _methodParameterTypes43 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName42 = "countByIntPraticaId_CodiceFiscale"; + _methodName44 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes44 = new String[] { "long", "java.lang.String" }; - _methodName43 = "findByCodiceFiscale_Completata"; + _methodName45 = "findByCodiceFiscale_Completata"; - _methodParameterTypes43 = new String[] { + _methodParameterTypes45 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName44 = "countByCodiceFiscale_Completata"; + _methodName46 = "countByCodiceFiscale_Completata"; - _methodParameterTypes44 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes46 = new String[] { "java.lang.String", "boolean" }; - _methodName45 = "findByIntPraticaId_Parziale_Completata"; + _methodName47 = "findByIntPraticaId_Parziale_Completata"; - _methodParameterTypes45 = new String[] { + _methodParameterTypes47 = new String[] { "long", "boolean", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName46 = "countByIntPraticaId_Parziale_Completata"; + _methodName48 = "countByIntPraticaId_Parziale_Completata"; - _methodParameterTypes46 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes48 = new String[] { "long", "boolean", "boolean" }; - _methodName47 = "findByIntPraticaId_Parziale_leFineLavoriId"; + _methodName49 = "findByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes47 = new String[] { + _methodParameterTypes49 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName48 = "countByIntPraticaId_Parziale_leFineLavoriId"; + _methodName50 = "countByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes48 = new String[] { "long", "long", "boolean" }; + _methodParameterTypes50 = new String[] { "long", "long", "boolean" }; - _methodName49 = "findFineLavoriCompleteNotProtocollo"; + _methodName51 = "findFineLavoriCompleteNotProtocollo"; - _methodParameterTypes49 = new String[] { "int", "int" }; + _methodParameterTypes51 = new String[] { "int", "int" }; - _methodName50 = "countFineLavoriCompleteNotProtocollo"; + _methodName52 = "countFineLavoriCompleteNotProtocollo"; - _methodParameterTypes50 = new String[] { }; + _methodParameterTypes52 = new String[] { }; - _methodName51 = "findFineLavoriCompleteNotGestite"; + _methodName53 = "findFineLavoriCompleteNotGestite"; - _methodParameterTypes51 = new String[] { "int", "int" }; + _methodParameterTypes53 = new String[] { "int", "int" }; - _methodName52 = "countFineLavoriCompleteNotGestite"; + _methodName54 = "countFineLavoriCompleteNotGestite"; - _methodParameterTypes52 = new String[] { }; + _methodParameterTypes54 = new String[] { }; - _methodName53 = "findIntPraticaByFineLavori"; + _methodName55 = "findIntPraticaByFineLavori"; - _methodParameterTypes53 = new String[] { }; + _methodParameterTypes55 = new String[] { }; - _methodName54 = "findIntPraticaByFineLavori"; + _methodName56 = "findIntPraticaByFineLavori"; - _methodParameterTypes54 = new String[] { "java.lang.String" }; + _methodParameterTypes56 = new String[] { "java.lang.String" }; } @Override @@ -1024,6 +1038,51 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, + new Object[] { + intPraticaId, + + richiestaAttestazione, + + normEsenteCollaudo, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( long userId, long fineLavoriId, long intPraticaId, boolean parziale, @@ -1037,8 +1096,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { userId, @@ -1088,6 +1147,49 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, + new Object[] { + ClpSerializer.translateInput(fineLavori), + + parziale, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori getLastEditable( long intPraticaId) @@ -1095,8 +1197,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1124,8 +1226,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1157,8 +1259,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { fineLavoriId, @@ -1202,8 +1304,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { pagamentoId, @@ -1239,8 +1341,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { pagamentoId, @@ -1280,8 +1382,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { fineLavoriId, stato }); } catch (Throwable t) { @@ -1315,8 +1417,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { fineLavoriId, @@ -1354,8 +1456,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { companyId, @@ -1395,8 +1497,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { companyId, @@ -1436,8 +1538,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { ClpSerializer.translateInput(protocollo) }); } catch (Throwable t) { @@ -1471,8 +1573,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1508,8 +1610,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1538,8 +1640,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -1577,8 +1679,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { intPraticaId, parziale }); } catch (Throwable t) { @@ -1608,8 +1710,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { intPraticaId, @@ -1648,8 +1750,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { intPraticaId, completata }); } catch (Throwable t) { @@ -1680,8 +1782,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId, @@ -1720,8 +1822,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { intPraticaId, @@ -1756,8 +1858,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { ClpSerializer.translateInput(codiceFiscaleDelegato), @@ -1796,8 +1898,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { ClpSerializer.translateInput(codiceFiscaleDelegato), @@ -1832,8 +1934,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { intPraticaId, @@ -1874,8 +1976,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { intPraticaId, parziale, completata }); } catch (Throwable t) { @@ -1906,8 +2008,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { fineLavoriId, @@ -1948,8 +2050,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { fineLavoriId, intPraticaId, parziale }); } catch (Throwable t) { @@ -1978,8 +2080,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2006,8 +2108,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2035,8 +2137,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2063,8 +2165,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2092,8 +2194,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2126,8 +2228,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput( codiceFiscaleDelegatoCollaudo) @@ -2265,4 +2367,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { private String[] _methodParameterTypes53; private String _methodName54; private String[] _methodParameterTypes54; + private String _methodName55; + private String[] _methodParameterTypes55; + private String _methodName56; + private String[] _methodParameterTypes56; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java index 61bc6330..08102965 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java @@ -345,6 +345,17 @@ public class FineLavoriLocalServiceUtil { return getService().addFineLavori(intPraticaId, serviceContext); } + public static it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .addFineLavori(intPraticaId, richiestaAttestazione, + normEsenteCollaudo, serviceContext); + } + public static it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( long userId, long fineLavoriId, long intPraticaId, boolean parziale, boolean completata, java.util.Date dataFineLavori, @@ -361,6 +372,16 @@ public class FineLavoriLocalServiceUtil { comunicazioneDirettoreLavori, richiestaAttestazione); } + public static it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .updateFineLavori(fineLavori, parziale, serviceContext); + } + public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java index c7a6a24c..f1c94a16 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java @@ -367,6 +367,17 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService, serviceContext); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavoriLocalService.addFineLavori(intPraticaId, + richiestaAttestazione, normEsenteCollaudo, serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( long userId, long fineLavoriId, long intPraticaId, boolean parziale, @@ -384,6 +395,17 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService, richiestaAttestazione); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavoriLocalService.updateFineLavori(fineLavori, parziale, + serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori getLastEditable( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java index f6c24139..7295c624 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java @@ -77,6 +77,13 @@ public interface FineLavoriService extends BaseService, InvokableService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.FineLavori deleteFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) throws com.liferay.portal.kernel.exception.PortalException, @@ -87,6 +94,13 @@ public interface FineLavoriService extends BaseService, InvokableService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java index beffc256..cb396c1b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java @@ -42,82 +42,96 @@ public class FineLavoriServiceClp implements FineLavoriService { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName5 = "deleteFineLavori"; + _methodName5 = "addFineLavori"; _methodParameterTypes5 = new String[] { - "it.tref.liferay.portos.bo.model.FineLavori" + "long", "boolean", "boolean", + "com.liferay.portal.service.ServiceContext" }; _methodName6 = "deleteFineLavori"; - _methodParameterTypes6 = new String[] { "long" }; - - _methodName7 = "updateFineLavori"; - - _methodParameterTypes7 = new String[] { + _methodParameterTypes6 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; + _methodName7 = "deleteFineLavori"; + + _methodParameterTypes7 = new String[] { "long" }; + _methodName8 = "updateFineLavori"; _methodParameterTypes8 = new String[] { + "it.tref.liferay.portos.bo.model.FineLavori", "boolean", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName9 = "updateFineLavori"; + + _methodParameterTypes9 = new String[] { + "it.tref.liferay.portos.bo.model.FineLavori" + }; + + _methodName10 = "updateFineLavori"; + + _methodParameterTypes10 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean" }; - _methodName9 = "getLastEditable"; + _methodName11 = "getLastEditable"; - _methodParameterTypes9 = new String[] { "long" }; + _methodParameterTypes11 = new String[] { "long" }; - _methodName10 = "getLastCompleted"; + _methodName12 = "getLastCompleted"; - _methodParameterTypes10 = new String[] { "long" }; + _methodParameterTypes12 = new String[] { "long" }; - _methodName11 = "findByIntPraticaId_Parziale"; + _methodName13 = "findByIntPraticaId_Parziale"; - _methodParameterTypes11 = new String[] { + _methodParameterTypes13 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName12 = "countByIntPraticaId_Parziale"; + _methodName14 = "countByIntPraticaId_Parziale"; - _methodParameterTypes12 = new String[] { "long", "boolean" }; + _methodParameterTypes14 = new String[] { "long", "boolean" }; - _methodName13 = "pagaInvia"; + _methodName15 = "pagaInvia"; - _methodParameterTypes13 = new String[] { + _methodParameterTypes15 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName14 = "updateEsito"; + _methodName16 = "updateEsito"; - _methodParameterTypes14 = new String[] { "long", "int" }; + _methodParameterTypes16 = new String[] { "long", "int" }; - _methodName15 = "findByIntPraticaId_CodiceFiscale"; + _methodName17 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes15 = new String[] { + _methodParameterTypes17 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName16 = "countByIntPraticaId_CodiceFiscale"; + _methodName18 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes16 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes18 = new String[] { "long", "java.lang.String" }; - _methodName17 = "findByCodiceFiscale_Completata"; + _methodName19 = "findByCodiceFiscale_Completata"; - _methodParameterTypes17 = new String[] { + _methodParameterTypes19 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName18 = "countByCodiceFiscale_Completata"; + _methodName20 = "countByCodiceFiscale_Completata"; - _methodParameterTypes18 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes20 = new String[] { "java.lang.String", "boolean" }; } @Override @@ -245,8 +259,10 @@ public class FineLavoriServiceClp implements FineLavoriService { } @Override - public it.tref.liferay.portos.bo.model.FineLavori deleteFineLavori( - it.tref.liferay.portos.bo.model.FineLavori fineLavori) + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -254,6 +270,49 @@ public class FineLavoriServiceClp implements FineLavoriService { try { returnObj = _invokableService.invokeMethod(_methodName5, _methodParameterTypes5, + new Object[] { + intPraticaId, + + richiestaAttestazione, + + normEsenteCollaudo, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.FineLavori deleteFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableService.invokeMethod(_methodName6, + _methodParameterTypes6, new Object[] { ClpSerializer.translateInput(fineLavori) }); } catch (Throwable t) { @@ -287,8 +346,51 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName6, - _methodParameterTypes6, new Object[] { fineLavoriId }); + returnObj = _invokableService.invokeMethod(_methodName7, + _methodParameterTypes7, new Object[] { fineLavoriId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableService.invokeMethod(_methodName8, + _methodParameterTypes8, + new Object[] { + ClpSerializer.translateInput(fineLavori), + + parziale, + + ClpSerializer.translateInput(serviceContext) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -320,8 +422,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName7, - _methodParameterTypes7, + returnObj = _invokableService.invokeMethod(_methodName9, + _methodParameterTypes9, new Object[] { ClpSerializer.translateInput(fineLavori) }); } catch (Throwable t) { @@ -356,8 +458,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName8, - _methodParameterTypes8, + returnObj = _invokableService.invokeMethod(_methodName10, + _methodParameterTypes10, new Object[] { userId, @@ -414,8 +516,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName9, - _methodParameterTypes9, new Object[] { intPraticaId }); + returnObj = _invokableService.invokeMethod(_methodName11, + _methodParameterTypes11, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -443,8 +545,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName10, - _methodParameterTypes10, new Object[] { intPraticaId }); + returnObj = _invokableService.invokeMethod(_methodName12, + _methodParameterTypes12, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -473,8 +575,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName11, - _methodParameterTypes11, + returnObj = _invokableService.invokeMethod(_methodName13, + _methodParameterTypes13, new Object[] { intPraticaId, @@ -512,8 +614,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName12, - _methodParameterTypes12, + returnObj = _invokableService.invokeMethod(_methodName14, + _methodParameterTypes14, new Object[] { intPraticaId, parziale }); } catch (Throwable t) { @@ -546,8 +648,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName13, - _methodParameterTypes13, + returnObj = _invokableService.invokeMethod(_methodName15, + _methodParameterTypes15, new Object[] { fineLavoriId, @@ -593,8 +695,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName14, - _methodParameterTypes14, + returnObj = _invokableService.invokeMethod(_methodName16, + _methodParameterTypes16, new Object[] { fineLavoriId, stato }); } catch (Throwable t) { @@ -629,8 +731,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName15, - _methodParameterTypes15, + returnObj = _invokableService.invokeMethod(_methodName17, + _methodParameterTypes17, new Object[] { intPraticaId, @@ -669,8 +771,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName16, - _methodParameterTypes16, + returnObj = _invokableService.invokeMethod(_methodName18, + _methodParameterTypes18, new Object[] { intPraticaId, @@ -705,8 +807,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName17, - _methodParameterTypes17, + returnObj = _invokableService.invokeMethod(_methodName19, + _methodParameterTypes19, new Object[] { ClpSerializer.translateInput(codiceFiscaleDelegato), @@ -745,8 +847,8 @@ public class FineLavoriServiceClp implements FineLavoriService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName18, - _methodParameterTypes18, + returnObj = _invokableService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { ClpSerializer.translateInput(codiceFiscaleDelegato), @@ -809,4 +911,8 @@ public class FineLavoriServiceClp implements FineLavoriService { private String[] _methodParameterTypes17; private String _methodName18; private String[] _methodParameterTypes18; + private String _methodName19; + private String[] _methodParameterTypes19; + private String _methodName20; + private String[] _methodParameterTypes20; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java index be2b22e8..238f375f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java @@ -78,6 +78,17 @@ public class FineLavoriServiceUtil { return getService().addFineLavori(intPraticaId, serviceContext); } + public static it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .addFineLavori(intPraticaId, richiestaAttestazione, + normEsenteCollaudo, serviceContext); + } + public static it.tref.liferay.portos.bo.model.FineLavori deleteFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) throws com.liferay.portal.kernel.exception.PortalException, @@ -92,6 +103,16 @@ public class FineLavoriServiceUtil { return getService().deleteFineLavori(fineLavoriId); } + public static it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .updateFineLavori(fineLavori, parziale, serviceContext); + } + public static it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java index ad906439..2ec78aee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java @@ -73,6 +73,17 @@ public class FineLavoriServiceWrapper implements FineLavoriService, return _fineLavoriService.addFineLavori(intPraticaId, serviceContext); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavoriService.addFineLavori(intPraticaId, + richiestaAttestazione, normEsenteCollaudo, serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori deleteFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) @@ -89,6 +100,17 @@ public class FineLavoriServiceWrapper implements FineLavoriService, return _fineLavoriService.deleteFineLavori(fineLavoriId); } + @Override + public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavori fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavoriService.updateFineLavori(fineLavori, parziale, + serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.FineLavori updateFineLavori( it.tref.liferay.portos.bo.model.FineLavori fineLavori) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index dcba1c08..f59fa701 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -341,6 +341,14 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index 8fcb7d8b..7e5267fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -146,308 +146,315 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodName26 = "addIntPratica"; _methodParameterTypes26 = new String[] { - "long", "java.lang.String", + "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName27 = "addIntPratica"; _methodParameterTypes27 = new String[] { + "long", "java.lang.String", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName28 = "addIntPratica"; + + _methodParameterTypes28 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName28 = "deleteIntPratica"; + _methodName29 = "deleteIntPratica"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes29 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName29 = "cloneIntPratica"; + _methodName30 = "cloneIntPratica"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes30 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName30 = "updateDelegati"; + _methodName31 = "updateDelegati"; - _methodParameterTypes30 = new String[] { + _methodParameterTypes31 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName31 = "findFascicoliNotProgetto"; + _methodName32 = "findFascicoliNotProgetto"; - _methodParameterTypes31 = new String[] { "int", "int" }; + _methodParameterTypes32 = new String[] { "int", "int" }; - _methodName32 = "countFascicoliNotProgetto"; + _methodName33 = "countFascicoliNotProgetto"; - _methodParameterTypes32 = new String[] { }; + _methodParameterTypes33 = new String[] { }; - _methodName33 = "addNumeroProgetto"; + _methodName34 = "addNumeroProgetto"; - _methodParameterTypes33 = new String[] { "long" }; + _methodParameterTypes34 = new String[] { "long" }; - _methodName34 = "sospendiPratica"; + _methodName35 = "sospendiPratica"; - _methodParameterTypes34 = new String[] { "long", "boolean" }; + _methodParameterTypes35 = new String[] { "long", "boolean" }; - _methodName35 = "cambiaTitolare"; + _methodName36 = "cambiaTitolare"; - _methodParameterTypes35 = new String[] { + _methodParameterTypes36 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName36 = "updateStatoPratica"; + _methodName37 = "updateStatoPratica"; - _methodParameterTypes36 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes37 = new String[] { "long", "java.lang.String" }; - _methodName37 = "updateIntPraticaSorteggio"; + _methodName38 = "updateIntPraticaSorteggio"; - _methodParameterTypes37 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes38 = new String[] { "long", "java.util.Date" }; - _methodName38 = "updateIntPraticaSorteggio"; + _methodName39 = "updateIntPraticaSorteggio"; - _methodParameterTypes38 = new String[] { + _methodParameterTypes39 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName39 = "findByC_UserId"; + _methodName40 = "findByC_UserId"; - _methodParameterTypes39 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes40 = new String[] { "long", "long", "int", "int" }; - _methodName40 = "countByC_UserId"; + _methodName41 = "countByC_UserId"; - _methodParameterTypes40 = new String[] { "long", "long" }; + _methodParameterTypes41 = new String[] { "long", "long" }; - _methodName41 = "updateStatus"; + _methodName42 = "updateStatus"; - _methodParameterTypes41 = new String[] { "long", "int" }; + _methodParameterTypes42 = new String[] { "long", "int" }; - _methodName42 = "findByCompanyIdSoggettoProgetti"; - - _methodParameterTypes42 = new String[] { "long", "long" }; - - _methodName43 = "countByCompanyIdSoggettoProgetti"; + _methodName43 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes43 = new String[] { "long", "long" }; - _methodName44 = "findByCompanyIdSoggettoArchivio"; + _methodName44 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "countByCompanyIdSoggettoArchivio"; + _methodName45 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName46 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName46 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes46 = new String[] { "long", "long" }; + + _methodName47 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes46 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes47 = new String[] { "long", "long", "int", "int" }; - _methodName47 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName48 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes47 = new String[] { "long", "long" }; + _methodParameterTypes48 = new String[] { "long", "long" }; - _methodName48 = "findByCanAddFineLavori"; + _methodName49 = "findByCanAddFineLavori"; - _methodParameterTypes48 = new String[] { + _methodParameterTypes49 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName49 = "countByCanAddFineLavori"; + _methodName50 = "countByCanAddFineLavori"; - _methodParameterTypes49 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes50 = new String[] { "long", "java.lang.String" }; - _methodName50 = "findByCanAddCollaudo"; + _methodName51 = "findByCanAddCollaudo"; - _methodParameterTypes50 = new String[] { + _methodParameterTypes51 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName51 = "countByCanAddCollaudo"; + _methodName52 = "countByCanAddCollaudo"; - _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; - _methodName52 = "search"; + _methodName53 = "search"; - _methodParameterTypes52 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes53 = new String[] { "java.util.List", "int", "int" }; - _methodName53 = "countSearch"; + _methodName54 = "countSearch"; - _methodParameterTypes53 = new String[] { "java.util.List" }; + _methodParameterTypes54 = new String[] { "java.util.List" }; - _methodName54 = "searchWithIntPraticaId"; + _methodName55 = "searchWithIntPraticaId"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes55 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName55 = "countSearchWithIntPraticaId"; + _methodName56 = "countSearchWithIntPraticaId"; - _methodParameterTypes55 = new String[] { "java.util.List", "long" }; + _methodParameterTypes56 = new String[] { "java.util.List", "long" }; - _methodName56 = "allegaFileAnnullamento"; + _methodName57 = "allegaFileAnnullamento"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes57 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName57 = "generateFileAnnullamento"; + _methodName58 = "generateFileAnnullamento"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes58 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName58 = "deleteFileAnnullamento"; + _methodName59 = "deleteFileAnnullamento"; - _methodParameterTypes58 = new String[] { "long" }; + _methodParameterTypes59 = new String[] { "long" }; - _methodName59 = "completeAnnullamento"; + _methodName60 = "completeAnnullamento"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes60 = new String[] { "long" }; - _methodName60 = "cambiaIstruttore"; + _methodName61 = "cambiaIstruttore"; - _methodParameterTypes60 = new String[] { "long", "long", "long" }; + _methodParameterTypes61 = new String[] { "long", "long", "long" }; - _methodName61 = "countCaricoLavoroCF"; + _methodName62 = "countCaricoLavoroCF"; - _methodParameterTypes61 = new String[] { + _methodParameterTypes62 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName62 = "countCaricoLavoroIstruttore"; + _methodName63 = "countCaricoLavoroIstruttore"; - _methodParameterTypes62 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName63 = "generateReportPratica"; + _methodName64 = "generateReportPratica"; - _methodParameterTypes63 = new String[] { + _methodParameterTypes64 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName64 = "updateModifiedDate"; + _methodName65 = "updateModifiedDate"; - _methodParameterTypes64 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes65 = new String[] { "long", "java.util.Date" }; - _methodName65 = "countAutorizzazione"; + _methodName66 = "countAutorizzazione"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes66 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName66 = "countSanatorie"; + _methodName67 = "countSanatorie"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName67 = "countOpereMinoreImportanza"; + _methodName68 = "countOpereMinoreImportanza"; - _methodParameterTypes67 = new String[] { + _methodParameterTypes68 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName68 = "countDeposito"; + _methodName69 = "countDeposito"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes69 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName69 = "countVidimate"; + _methodName70 = "countVidimate"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes70 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName70 = "countControllo"; + _methodName71 = "countControllo"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes71 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName71 = "findIntPraticaNotExist"; + _methodName72 = "findIntPraticaNotExist"; - _methodParameterTypes71 = new String[] { }; + _methodParameterTypes72 = new String[] { }; - _methodName72 = "riparaWorkflow"; + _methodName73 = "riparaWorkflow"; - _methodParameterTypes72 = new String[] { }; + _methodParameterTypes73 = new String[] { }; - _methodName73 = "reIndexFascicolo"; + _methodName74 = "reIndexFascicolo"; - _methodParameterTypes73 = new String[] { + _methodParameterTypes74 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName74 = "reIndexFasciolo"; - - _methodParameterTypes74 = new String[] { "java.lang.String", "long" }; - _methodName75 = "reIndexFasciolo"; - _methodParameterTypes75 = new String[] { "long", "long" }; + _methodParameterTypes75 = new String[] { "java.lang.String", "long" }; - _methodName76 = "trovaDoppioni"; + _methodName76 = "reIndexFasciolo"; - _methodParameterTypes76 = new String[] { }; + _methodParameterTypes76 = new String[] { "long", "long" }; - _methodName77 = "findByNumeroProgetto"; + _methodName77 = "trovaDoppioni"; - _methodParameterTypes77 = new String[] { "java.lang.String" }; + _methodParameterTypes77 = new String[] { }; - _methodName78 = "findByTerritorioId"; + _methodName78 = "findByNumeroProgetto"; - _methodParameterTypes78 = new String[] { "long" }; + _methodParameterTypes78 = new String[] { "java.lang.String" }; - _methodName79 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName79 = "findByTerritorioId"; - _methodParameterTypes79 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes79 = new String[] { "long" }; - _methodName80 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName80 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes80 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName81 = "reportPraticheVidimate"; + _methodName81 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes81 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName82 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName82 = "reportPraticheVidimate"; _methodParameterTypes82 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName83 = "countIngressiAutorizzazioni"; + _methodName83 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes83 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName84 = "countIngressiDepositi"; + _methodName84 = "countIngressiAutorizzazioni"; _methodParameterTypes84 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "countIngressiCO"; + _methodName85 = "countIngressiDepositi"; _methodParameterTypes85 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName86 = "countIngressiCO"; + + _methodParameterTypes86 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } @Override @@ -1254,6 +1261,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1267,6 +1275,50 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(tipoProcedura), + isOspedaliera, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, + new Object[] { + territorioId, + + ClpSerializer.translateInput(tipoProcedura), + ClpSerializer.translateInput(serviceContext) }); } @@ -1306,8 +1358,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { userId, @@ -1365,8 +1417,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1405,8 +1457,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId, @@ -1446,8 +1498,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { intPraticaId, @@ -1489,8 +1541,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1517,8 +1569,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1547,8 +1599,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1581,8 +1633,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1617,8 +1669,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1658,8 +1710,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1696,8 +1748,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -1731,8 +1783,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -1767,8 +1819,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1796,8 +1848,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1823,8 +1875,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1855,8 +1907,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1889,8 +1941,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1924,8 +1976,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1958,8 +2010,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1993,8 +2045,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2028,8 +2080,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2063,8 +2115,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, @@ -2106,8 +2158,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, @@ -2145,8 +2197,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, @@ -2188,8 +2240,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, @@ -2226,8 +2278,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2261,8 +2313,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2291,8 +2343,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2329,8 +2381,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2367,8 +2419,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId, @@ -2418,8 +2470,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, @@ -2458,8 +2510,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2488,8 +2540,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2518,8 +2570,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2552,8 +2604,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { ispettoreId, @@ -2594,8 +2646,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ispettoreId, @@ -2631,8 +2683,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2670,8 +2722,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { intPraticaId, @@ -2708,8 +2760,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2744,8 +2796,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2780,8 +2832,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2816,8 +2868,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2854,8 +2906,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2895,8 +2947,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2934,8 +2986,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2962,8 +3014,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2988,8 +3040,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, + _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3009,8 +3061,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, + _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3039,8 +3091,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, + _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3070,8 +3122,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3099,8 +3151,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3129,8 +3181,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3159,8 +3211,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3197,8 +3249,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3234,8 +3286,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3272,8 +3324,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3308,8 +3360,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3344,8 +3396,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3380,8 +3432,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3580,4 +3632,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes84; private String _methodName85; private String[] _methodParameterTypes85; + private String _methodName86; + private String[] _methodParameterTypes86; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index f4d400b7..cbfeabab 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -371,6 +371,17 @@ public class IntPraticaLocalServiceUtil { return getService().findSorteggiabili(companyId, dtSorteggio); } + public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .addIntPratica(territorioId, tipoProcedura, isOspedaliera, + serviceContext); + } + public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, com.liferay.portal.service.ServiceContext serviceContext) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index eb9ec52a..b0c1b718 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -395,6 +395,17 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.findSorteggiabili(companyId, dtSorteggio); } + @Override + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPraticaLocalService.addIntPratica(territorioId, + tipoProcedura, isOspedaliera, serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java index 48316926..a28be8e2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java @@ -456,7 +456,8 @@ public interface PagamentoLocalService extends BaseLocalService, public int countByIntPratica_Visible(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - public void updatePagamentoManuale(long pagamentoId, byte[] content, + public void updatePagamentoManuale(long pagamentoId, + java.lang.String numeroBollettino, byte[] content, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java index 9bf5e0ea..b7a7a79f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java @@ -296,7 +296,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { _methodName51 = "updatePagamentoManuale"; _methodParameterTypes51 = new String[] { - "long", "byte[][]", "java.lang.String", + "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -2092,7 +2092,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { } @Override - public void updatePagamentoManuale(long pagamentoId, byte[] content, + public void updatePagamentoManuale(long pagamentoId, + java.lang.String numeroBollettino, byte[] content, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -2104,6 +2105,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { new Object[] { pagamentoId, + ClpSerializer.translateInput(numeroBollettino), + ClpSerializer.translateInput(content), ClpSerializer.translateInput(sourceFileName), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java index 3437d960..65ecd3d9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java @@ -566,15 +566,16 @@ public class PagamentoLocalServiceUtil { return getService().countByIntPratica_Visible(intPraticaId); } - public static void updatePagamentoManuale(long pagamentoId, byte[] content, + public static void updatePagamentoManuale(long pagamentoId, + java.lang.String numeroBollettino, byte[] content, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { getService() - .updatePagamentoManuale(pagamentoId, content, sourceFileName, - serviceContext); + .updatePagamentoManuale(pagamentoId, numeroBollettino, content, + sourceFileName, serviceContext); } public static void updatePagamentoManualeFromImport(long pagamentoId, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java index 780b6834..a2e2c125 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java @@ -606,14 +606,15 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, } @Override - public void updatePagamentoManuale(long pagamentoId, byte[] content, + public void updatePagamentoManuale(long pagamentoId, + java.lang.String numeroBollettino, byte[] content, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { - _pagamentoLocalService.updatePagamentoManuale(pagamentoId, content, - sourceFileName, serviceContext); + _pagamentoLocalService.updatePagamentoManuale(pagamentoId, + numeroBollettino, content, sourceFileName, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java index 24f4158b..7ebd7876 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java @@ -65,7 +65,7 @@ public interface PagamentoService extends BaseService, InvokableService { throws java.lang.Throwable; public void updatePagamentoManuale(long pagamentoId, byte[] content, - java.lang.String sourceFileName, + java.lang.String numeroBollettino, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java index 163aa272..fab45546 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java @@ -35,7 +35,7 @@ public class PagamentoServiceClp implements PagamentoService { _methodName3 = "updatePagamentoManuale"; _methodParameterTypes3 = new String[] { - "long", "byte[][]", "java.lang.String", + "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; } @@ -92,7 +92,7 @@ public class PagamentoServiceClp implements PagamentoService { @Override public void updatePagamentoManuale(long pagamentoId, byte[] content, - java.lang.String sourceFileName, + java.lang.String numeroBollettino, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, @@ -105,6 +105,8 @@ public class PagamentoServiceClp implements PagamentoService { ClpSerializer.translateInput(content), + ClpSerializer.translateInput(numeroBollettino), + ClpSerializer.translateInput(sourceFileName), ClpSerializer.translateInput(serviceContext) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java index b3f155ae..2e536bd3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java @@ -64,14 +64,14 @@ public class PagamentoServiceUtil { } public static void updatePagamentoManuale(long pagamentoId, byte[] content, - java.lang.String sourceFileName, + java.lang.String numeroBollettino, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { getService() - .updatePagamentoManuale(pagamentoId, content, sourceFileName, - serviceContext); + .updatePagamentoManuale(pagamentoId, content, numeroBollettino, + sourceFileName, serviceContext); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java index 7cffc0fd..d30a6293 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java @@ -58,13 +58,13 @@ public class PagamentoServiceWrapper implements PagamentoService, @Override public void updatePagamentoManuale(long pagamentoId, byte[] content, - java.lang.String sourceFileName, + java.lang.String numeroBollettino, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { _pagamentoService.updatePagamentoManuale(pagamentoId, content, - sourceFileName, serviceContext); + numeroBollettino, sourceFileName, serviceContext); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java new file mode 100644 index 00000000..70b52110 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java @@ -0,0 +1,341 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.service.BaseLocalService; +import com.liferay.portal.service.InvokableLocalService; +import com.liferay.portal.service.PersistedModelLocalService; + +/** + * Provides the local service interface for PraticaAttenzionata. Methods of this + * service will not have security checks based on the propagated JAAS + * credentials because this service can only be accessed from within the same + * VM. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataLocalServiceUtil + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataLocalServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl + * @generated + */ +@Transactional(isolation = Isolation.PORTAL, rollbackFor = { + PortalException.class, SystemException.class}) +public interface PraticaAttenzionataLocalService extends BaseLocalService, + InvokableLocalService, PersistedModelLocalService { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link PraticaAttenzionataLocalServiceUtil} to access the pratica attenzionata local service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ + + /** + * Adds the pratica attenzionata to the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was added + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata createPraticaAttenzionata( + long praticaAttenzionataId); + + /** + * Deletes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Deletes the pratica attenzionata from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException; + + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata with the primary key. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + @Override + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getPraticaAttenzionatas( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public int getPraticaAttenzionatasCount() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Updates the pratica attenzionata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was updated + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata updatePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public java.lang.String getBeanIdentifier(); + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public void setBeanIdentifier(java.lang.String beanIdentifier); + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable; + + public it.tref.liferay.portos.bo.model.PraticaAttenzionata evalAndEventuallyAddPraticaAttenzionata( + long intPraticaId, long fineLavoriId, java.lang.String numeroProgetto, + java.util.Date dataFineLavoriTotale, + java.util.Date dataRelazioneFineLavoriTotale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException; + + public int countPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getPraticheVerificate() + throws com.liferay.portal.kernel.exception.SystemException; + + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + long praticaAttenzionataId, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException; + + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java new file mode 100644 index 00000000..24379a37 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java @@ -0,0 +1,1119 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.service.InvokableLocalService; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataLocalServiceClp + implements PraticaAttenzionataLocalService { + public PraticaAttenzionataLocalServiceClp( + InvokableLocalService invokableLocalService) { + _invokableLocalService = invokableLocalService; + + _methodName0 = "addPraticaAttenzionata"; + + _methodParameterTypes0 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName1 = "createPraticaAttenzionata"; + + _methodParameterTypes1 = new String[] { "long" }; + + _methodName2 = "deletePraticaAttenzionata"; + + _methodParameterTypes2 = new String[] { "long" }; + + _methodName3 = "deletePraticaAttenzionata"; + + _methodParameterTypes3 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName4 = "dynamicQuery"; + + _methodParameterTypes4 = new String[] { }; + + _methodName5 = "dynamicQuery"; + + _methodParameterTypes5 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName6 = "dynamicQuery"; + + _methodParameterTypes6 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" + }; + + _methodName7 = "dynamicQuery"; + + _methodParameterTypes7 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", + "com.liferay.portal.kernel.util.OrderByComparator" + }; + + _methodName8 = "dynamicQueryCount"; + + _methodParameterTypes8 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName9 = "dynamicQueryCount"; + + _methodParameterTypes9 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", + "com.liferay.portal.kernel.dao.orm.Projection" + }; + + _methodName10 = "fetchPraticaAttenzionata"; + + _methodParameterTypes10 = new String[] { "long" }; + + _methodName11 = "fetchPraticaAttenzionataByUuidAndCompanyId"; + + _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; + + _methodName12 = "fetchPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; + + _methodName13 = "getPraticaAttenzionata"; + + _methodParameterTypes13 = new String[] { "long" }; + + _methodName14 = "getPersistedModel"; + + _methodParameterTypes14 = new String[] { "java.io.Serializable" }; + + _methodName15 = "getPraticaAttenzionataByUuidAndCompanyId"; + + _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; + + _methodName16 = "getPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; + + _methodName17 = "getPraticaAttenzionatas"; + + _methodParameterTypes17 = new String[] { "int", "int" }; + + _methodName18 = "getPraticaAttenzionatasCount"; + + _methodParameterTypes18 = new String[] { }; + + _methodName19 = "updatePraticaAttenzionata"; + + _methodParameterTypes19 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName20 = "getBeanIdentifier"; + + _methodParameterTypes20 = new String[] { }; + + _methodName21 = "setBeanIdentifier"; + + _methodParameterTypes21 = new String[] { "java.lang.String" }; + + _methodName23 = "evalAndEventuallyAddPraticaAttenzionata"; + + _methodParameterTypes23 = new String[] { + "long", "long", "java.lang.String", "java.util.Date", + "java.util.Date", "com.liferay.portal.service.ServiceContext" + }; + + _methodName24 = "getPraticheDaVerificare"; + + _methodParameterTypes24 = new String[] { }; + + _methodName25 = "countPraticheDaVerificare"; + + _methodParameterTypes25 = new String[] { }; + + _methodName26 = "getPraticheVerificate"; + + _methodParameterTypes26 = new String[] { }; + + _methodName27 = "verificaPraticaAttenzionata"; + + _methodParameterTypes27 = new String[] { + "long", "com.liferay.portal.service.ServiceContext" + }; + + _methodName28 = "verificaPraticaAttenzionata"; + + _methodParameterTypes28 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata", + "com.liferay.portal.service.ServiceContext" + }; + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName0, + _methodParameterTypes0, + new Object[] { + ClpSerializer.translateInput(praticaAttenzionata) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata createPraticaAttenzionata( + long praticaAttenzionataId) { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName1, + _methodParameterTypes1, + new Object[] { praticaAttenzionataId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName2, + _methodParameterTypes2, + new Object[] { praticaAttenzionataId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName3, + _methodParameterTypes3, + new Object[] { + ClpSerializer.translateInput(praticaAttenzionata) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName4, + _methodParameterTypes4, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName5, + _methodParameterTypes5, + new Object[] { ClpSerializer.translateInput(dynamicQuery) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName6, + _methodParameterTypes6, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + start, + + end + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName7, + _methodParameterTypes7, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + start, + + end, + + ClpSerializer.translateInput(orderByComparator) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName8, + _methodParameterTypes8, + new Object[] { ClpSerializer.translateInput(dynamicQuery) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Long)returnObj).longValue(); + } + + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName9, + _methodParameterTypes9, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + ClpSerializer.translateInput(projection) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Long)returnObj).longValue(); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName10, + _methodParameterTypes10, + new Object[] { praticaAttenzionataId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName11, + _methodParameterTypes11, + new Object[] { ClpSerializer.translateInput(uuid), companyId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName12, + _methodParameterTypes12, + new Object[] { ClpSerializer.translateInput(uuid), groupId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName13, + _methodParameterTypes13, + new Object[] { praticaAttenzionataId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName14, + _methodParameterTypes14, + new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName15, + _methodParameterTypes15, + new Object[] { ClpSerializer.translateInput(uuid), companyId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName16, + _methodParameterTypes16, + new Object[] { ClpSerializer.translateInput(uuid), groupId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.List getPraticaAttenzionatas( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName17, + _methodParameterTypes17, new Object[] { start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int getPraticaAttenzionatasCount() + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName18, + _methodParameterTypes18, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata updatePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName19, + _methodParameterTypes19, + new Object[] { + ClpSerializer.translateInput(praticaAttenzionata) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.lang.String getBeanIdentifier() { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.lang.String)ClpSerializer.translateOutput(returnObj); + } + + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + try { + _invokableLocalService.invokeMethod(_methodName21, + _methodParameterTypes21, + new Object[] { ClpSerializer.translateInput(beanIdentifier) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + throw new UnsupportedOperationException(); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata evalAndEventuallyAddPraticaAttenzionata( + long intPraticaId, long fineLavoriId, java.lang.String numeroProgetto, + java.util.Date dataFineLavoriTotale, + java.util.Date dataRelazioneFineLavoriTotale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName23, + _methodParameterTypes23, + new Object[] { + intPraticaId, + + fineLavoriId, + + ClpSerializer.translateInput(numeroProgetto), + + ClpSerializer.translateInput(dataFineLavoriTotale), + + ClpSerializer.translateInput(dataRelazioneFineLavoriTotale), + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.List getPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int countPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public java.util.List getPraticheVerificate() + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + long praticaAttenzionataId, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, + new Object[] { + praticaAttenzionataId, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, + new Object[] { + ClpSerializer.translateInput(praticaAttenzionata), + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + private InvokableLocalService _invokableLocalService; + private String _methodName0; + private String[] _methodParameterTypes0; + private String _methodName1; + private String[] _methodParameterTypes1; + private String _methodName2; + private String[] _methodParameterTypes2; + private String _methodName3; + private String[] _methodParameterTypes3; + private String _methodName4; + private String[] _methodParameterTypes4; + private String _methodName5; + private String[] _methodParameterTypes5; + private String _methodName6; + private String[] _methodParameterTypes6; + private String _methodName7; + private String[] _methodParameterTypes7; + private String _methodName8; + private String[] _methodParameterTypes8; + private String _methodName9; + private String[] _methodParameterTypes9; + private String _methodName10; + private String[] _methodParameterTypes10; + private String _methodName11; + private String[] _methodParameterTypes11; + private String _methodName12; + private String[] _methodParameterTypes12; + private String _methodName13; + private String[] _methodParameterTypes13; + private String _methodName14; + private String[] _methodParameterTypes14; + private String _methodName15; + private String[] _methodParameterTypes15; + private String _methodName16; + private String[] _methodParameterTypes16; + private String _methodName17; + private String[] _methodParameterTypes17; + private String _methodName18; + private String[] _methodParameterTypes18; + private String _methodName19; + private String[] _methodParameterTypes19; + private String _methodName20; + private String[] _methodParameterTypes20; + private String _methodName21; + private String[] _methodParameterTypes21; + private String _methodName23; + private String[] _methodParameterTypes23; + private String _methodName24; + private String[] _methodParameterTypes24; + private String _methodName25; + private String[] _methodParameterTypes25; + private String _methodName26; + private String[] _methodParameterTypes26; + private String _methodName27; + private String[] _methodParameterTypes27; + private String _methodName28; + private String[] _methodParameterTypes28; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java new file mode 100644 index 00000000..d58b110d --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java @@ -0,0 +1,417 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.util.ReferenceRegistry; +import com.liferay.portal.service.InvokableLocalService; + +/** + * Provides the local service utility for PraticaAttenzionata. This utility wraps + * {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl} and is the + * primary access point for service operations in application layer code running + * on the local server. Methods of this service will not have security checks + * based on the propagated JAAS credentials because this service can only be + * accessed from within the same VM. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataLocalService + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataLocalServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl + * @generated + */ +public class PraticaAttenzionataLocalServiceUtil { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. + */ + + /** + * Adds the pratica attenzionata to the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was added + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().addPraticaAttenzionata(praticaAttenzionata); + } + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata createPraticaAttenzionata( + long praticaAttenzionataId) { + return getService().createPraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().deletePraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().deletePraticaAttenzionata(praticaAttenzionata); + } + + public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + return getService().dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQuery(dynamicQuery, start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public static long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public static long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQueryCount(dynamicQuery, projection); + } + + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().fetchPraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .fetchPraticaAttenzionataByUuidAndCompanyId(uuid, companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .fetchPraticaAttenzionataByUuidAndGroupId(uuid, groupId); + } + + /** + * Returns the pratica attenzionata with the primary key. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticaAttenzionata(praticaAttenzionataId); + } + + public static com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getPersistedModel(primaryKeyObj); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .getPraticaAttenzionataByUuidAndCompanyId(uuid, companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticaAttenzionataByUuidAndGroupId(uuid, groupId); + } + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List getPraticaAttenzionatas( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticaAttenzionatas(start, end); + } + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int getPraticaAttenzionatasCount() + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticaAttenzionatasCount(); + } + + /** + * Updates the pratica attenzionata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was updated + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata updatePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().updatePraticaAttenzionata(praticaAttenzionata); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public static java.lang.String getBeanIdentifier() { + return getService().getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public static void setBeanIdentifier(java.lang.String beanIdentifier) { + getService().setBeanIdentifier(beanIdentifier); + } + + public static java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return getService().invokeMethod(name, parameterTypes, arguments); + } + + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata evalAndEventuallyAddPraticaAttenzionata( + long intPraticaId, long fineLavoriId, java.lang.String numeroProgetto, + java.util.Date dataFineLavoriTotale, + java.util.Date dataRelazioneFineLavoriTotale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .evalAndEventuallyAddPraticaAttenzionata(intPraticaId, + fineLavoriId, numeroProgetto, dataFineLavoriTotale, + dataRelazioneFineLavoriTotale, serviceContext); + } + + public static java.util.List getPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticheDaVerificare(); + } + + public static int countPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + return getService().countPraticheDaVerificare(); + } + + public static java.util.List getPraticheVerificate() + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticheVerificate(); + } + + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + long praticaAttenzionataId, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .verificaPraticaAttenzionata(praticaAttenzionataId, + serviceContext); + } + + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .verificaPraticaAttenzionata(praticaAttenzionata, + serviceContext); + } + + public static void clearService() { + _service = null; + } + + public static PraticaAttenzionataLocalService getService() { + if (_service == null) { + InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), + PraticaAttenzionataLocalService.class.getName()); + + if (invokableLocalService instanceof PraticaAttenzionataLocalService) { + _service = (PraticaAttenzionataLocalService)invokableLocalService; + } + else { + _service = new PraticaAttenzionataLocalServiceClp(invokableLocalService); + } + + ReferenceRegistry.registerReference(PraticaAttenzionataLocalServiceUtil.class, + "_service"); + } + + return _service; + } + + /** + * @deprecated As of 6.2.0 + */ + public void setService(PraticaAttenzionataLocalService service) { + } + + private static PraticaAttenzionataLocalService _service; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java new file mode 100644 index 00000000..6408a3f3 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java @@ -0,0 +1,437 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.service.ServiceWrapper; + +/** + * Provides a wrapper for {@link PraticaAttenzionataLocalService}. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataLocalService + * @generated + */ +public class PraticaAttenzionataLocalServiceWrapper + implements PraticaAttenzionataLocalService, + ServiceWrapper { + public PraticaAttenzionataLocalServiceWrapper( + PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + _praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Adds the pratica attenzionata to the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was added + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.addPraticaAttenzionata(praticaAttenzionata); + } + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata createPraticaAttenzionata( + long praticaAttenzionataId) { + return _praticaAttenzionataLocalService.createPraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.deletePraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata deletePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.deletePraticaAttenzionata(praticaAttenzionata); + } + + @Override + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + return _praticaAttenzionataLocalService.dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.dynamicQuery(dynamicQuery, + start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.dynamicQuery(dynamicQuery, + start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.dynamicQueryCount(dynamicQuery, + projection); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.fetchPraticaAttenzionata(praticaAttenzionataId); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.fetchPraticaAttenzionataByUuidAndCompanyId(uuid, + companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.fetchPraticaAttenzionataByUuidAndGroupId(uuid, + groupId); + } + + /** + * Returns the pratica attenzionata with the primary key. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionata( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionata(praticaAttenzionataId); + } + + @Override + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPersistedModel(primaryKeyObj); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionataByUuidAndCompanyId(uuid, + companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionataByUuidAndGroupId(uuid, + groupId); + } + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public java.util.List getPraticaAttenzionatas( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionatas(start, + end); + } + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int getPraticaAttenzionatasCount() + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionatasCount(); + } + + /** + * Updates the pratica attenzionata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was updated + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata updatePraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.updatePraticaAttenzionata(praticaAttenzionata); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public java.lang.String getBeanIdentifier() { + return _praticaAttenzionataLocalService.getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + _praticaAttenzionataLocalService.setBeanIdentifier(beanIdentifier); + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return _praticaAttenzionataLocalService.invokeMethod(name, + parameterTypes, arguments); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata evalAndEventuallyAddPraticaAttenzionata( + long intPraticaId, long fineLavoriId, java.lang.String numeroProgetto, + java.util.Date dataFineLavoriTotale, + java.util.Date dataRelazioneFineLavoriTotale, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.evalAndEventuallyAddPraticaAttenzionata(intPraticaId, + fineLavoriId, numeroProgetto, dataFineLavoriTotale, + dataRelazioneFineLavoriTotale, serviceContext); + } + + @Override + public java.util.List getPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticheDaVerificare(); + } + + @Override + public int countPraticheDaVerificare() + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.countPraticheDaVerificare(); + } + + @Override + public java.util.List getPraticheVerificate() + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticheVerificate(); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + long praticaAttenzionataId, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.verificaPraticaAttenzionata(praticaAttenzionataId, + serviceContext); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata verificaPraticaAttenzionata( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.verificaPraticaAttenzionata(praticaAttenzionata, + serviceContext); + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} + */ + public PraticaAttenzionataLocalService getWrappedPraticaAttenzionataLocalService() { + return _praticaAttenzionataLocalService; + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} + */ + public void setWrappedPraticaAttenzionataLocalService( + PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + _praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + @Override + public PraticaAttenzionataLocalService getWrappedService() { + return _praticaAttenzionataLocalService; + } + + @Override + public void setWrappedService( + PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + _praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + private PraticaAttenzionataLocalService _praticaAttenzionataLocalService; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataService.java new file mode 100644 index 00000000..d07b02c5 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataService.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.jsonwebservice.JSONWebService; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.security.ac.AccessControlled; +import com.liferay.portal.service.BaseService; +import com.liferay.portal.service.InvokableService; + +/** + * Provides the remote service interface for PraticaAttenzionata. Methods of this + * service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataServiceUtil + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl + * @generated + */ +@AccessControlled +@JSONWebService +@Transactional(isolation = Isolation.PORTAL, rollbackFor = { + PortalException.class, SystemException.class}) +public interface PraticaAttenzionataService extends BaseService, InvokableService { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link PraticaAttenzionataServiceUtil} to access the pratica attenzionata remote service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public java.lang.String getBeanIdentifier(); + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public void setBeanIdentifier(java.lang.String beanIdentifier); + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceClp.java new file mode 100644 index 00000000..30d7c43a --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceClp.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.service.InvokableService; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataServiceClp implements PraticaAttenzionataService { + public PraticaAttenzionataServiceClp(InvokableService invokableService) { + _invokableService = invokableService; + + _methodName0 = "getBeanIdentifier"; + + _methodParameterTypes0 = new String[] { }; + + _methodName1 = "setBeanIdentifier"; + + _methodParameterTypes1 = new String[] { "java.lang.String" }; + } + + @Override + public java.lang.String getBeanIdentifier() { + Object returnObj = null; + + try { + returnObj = _invokableService.invokeMethod(_methodName0, + _methodParameterTypes0, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.lang.String)ClpSerializer.translateOutput(returnObj); + } + + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + try { + _invokableService.invokeMethod(_methodName1, + _methodParameterTypes1, + new Object[] { ClpSerializer.translateInput(beanIdentifier) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + throw new UnsupportedOperationException(); + } + + private InvokableService _invokableService; + private String _methodName0; + private String[] _methodParameterTypes0; + private String _methodName1; + private String[] _methodParameterTypes1; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceUtil.java new file mode 100644 index 00000000..d5d72bb6 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceUtil.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.util.ReferenceRegistry; +import com.liferay.portal.service.InvokableService; + +/** + * Provides the remote service utility for PraticaAttenzionata. This utility wraps + * {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl} and is the + * primary access point for service operations in application layer code running + * on a remote server. Methods of this service are expected to have security + * checks based on the propagated JAAS credentials because this service can be + * accessed remotely. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataService + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl + * @generated + */ +public class PraticaAttenzionataServiceUtil { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl} and rerun ServiceBuilder to regenerate this class. + */ + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public static java.lang.String getBeanIdentifier() { + return getService().getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public static void setBeanIdentifier(java.lang.String beanIdentifier) { + getService().setBeanIdentifier(beanIdentifier); + } + + public static java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return getService().invokeMethod(name, parameterTypes, arguments); + } + + public static void clearService() { + _service = null; + } + + public static PraticaAttenzionataService getService() { + if (_service == null) { + InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), + PraticaAttenzionataService.class.getName()); + + if (invokableService instanceof PraticaAttenzionataService) { + _service = (PraticaAttenzionataService)invokableService; + } + else { + _service = new PraticaAttenzionataServiceClp(invokableService); + } + + ReferenceRegistry.registerReference(PraticaAttenzionataServiceUtil.class, + "_service"); + } + + return _service; + } + + /** + * @deprecated As of 6.2.0 + */ + public void setService(PraticaAttenzionataService service) { + } + + private static PraticaAttenzionataService _service; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceWrapper.java new file mode 100644 index 00000000..19839de3 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataServiceWrapper.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service; + +import com.liferay.portal.service.ServiceWrapper; + +/** + * Provides a wrapper for {@link PraticaAttenzionataService}. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataService + * @generated + */ +public class PraticaAttenzionataServiceWrapper + implements PraticaAttenzionataService, + ServiceWrapper { + public PraticaAttenzionataServiceWrapper( + PraticaAttenzionataService praticaAttenzionataService) { + _praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public java.lang.String getBeanIdentifier() { + return _praticaAttenzionataService.getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + _praticaAttenzionataService.setBeanIdentifier(beanIdentifier); + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return _praticaAttenzionataService.invokeMethod(name, parameterTypes, + arguments); + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} + */ + public PraticaAttenzionataService getWrappedPraticaAttenzionataService() { + return _praticaAttenzionataService; + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} + */ + public void setWrappedPraticaAttenzionataService( + PraticaAttenzionataService praticaAttenzionataService) { + _praticaAttenzionataService = praticaAttenzionataService; + } + + @Override + public PraticaAttenzionataService getWrappedService() { + return _praticaAttenzionataService; + } + + @Override + public void setWrappedService( + PraticaAttenzionataService praticaAttenzionataService) { + _praticaAttenzionataService = praticaAttenzionataService; + } + + private PraticaAttenzionataService _praticaAttenzionataService; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java index bf233d47..621a30fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java @@ -817,12 +817,14 @@ public interface SoggettoLocalService extends BaseLocalService, @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public byte[] getPdfDelega(javax.portlet.PortletRequest request) throws com.itextpdf.text.DocumentException, + com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException; @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.lang.String getAnteprimaDelega( javax.portlet.PortletRequest request) - throws com.liferay.portal.kernel.exception.SystemException, + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException, java.io.IOException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java index bf976d81..36b96bea 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java @@ -4655,6 +4655,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { @Override public byte[] getPdfDelega(javax.portlet.PortletRequest request) throws com.itextpdf.text.DocumentException, + com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { Object returnObj = null; @@ -4671,6 +4672,10 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { throw (com.itextpdf.text.DocumentException)t; } + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } @@ -4694,7 +4699,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { @Override public java.lang.String getAnteprimaDelega( javax.portlet.PortletRequest request) - throws com.liferay.portal.kernel.exception.SystemException, + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException, java.io.IOException { Object returnObj = null; @@ -4706,6 +4712,10 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { catch (Throwable t) { t = ClpSerializer.translateThrowable(t); + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java index 9581627b..a6a27275 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java @@ -1120,6 +1120,7 @@ public class SoggettoLocalServiceUtil { public static byte[] getPdfDelega(javax.portlet.PortletRequest request) throws com.itextpdf.text.DocumentException, + com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { return getService().getPdfDelega(request); @@ -1127,7 +1128,8 @@ public class SoggettoLocalServiceUtil { public static java.lang.String getAnteprimaDelega( javax.portlet.PortletRequest request) - throws com.liferay.portal.kernel.exception.SystemException, + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException, java.io.IOException { return getService().getAnteprimaDelega(request); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java index f9a9227b..8f514890 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java @@ -1174,6 +1174,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, @Override public byte[] getPdfDelega(javax.portlet.PortletRequest request) throws com.itextpdf.text.DocumentException, + com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { return _soggettoLocalService.getPdfDelega(request); @@ -1182,7 +1183,8 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, @Override public java.lang.String getAnteprimaDelega( javax.portlet.PortletRequest request) - throws com.liferay.portal.kernel.exception.SystemException, + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException, java.io.IOException { return _soggettoLocalService.getAnteprimaDelega(request); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java index 7aa55b2d..83b56609 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java @@ -297,6 +297,11 @@ public interface TerritorioLocalService extends BaseLocalService, java.lang.String codiceProvincia) throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera( + java.lang.String codiceProvincia) + throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List getActiveTerritoriByComune( long comuneId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java index a41b0efc..86d2a9e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java @@ -157,38 +157,42 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { _methodParameterTypes26 = new String[] { "java.lang.String" }; - _methodName27 = "getActiveTerritoriByComune"; + _methodName27 = "getActiveComuniByCodiceProvincia_Ospedaliera"; - _methodParameterTypes27 = new String[] { "long" }; + _methodParameterTypes27 = new String[] { "java.lang.String" }; - _methodName28 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + _methodName28 = "getActiveTerritoriByComune"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes28 = new String[] { "long" }; + + _methodName29 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + + _methodParameterTypes29 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName29 = "fetchByOldTerriotioId"; + _methodName30 = "fetchByOldTerriotioId"; - _methodParameterTypes29 = new String[] { "long" }; + _methodParameterTypes30 = new String[] { "long" }; - _methodName30 = "getTerritoriByGroupAndZona"; + _methodName31 = "getTerritoriByGroupAndZona"; - _methodParameterTypes30 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes31 = new String[] { "long", "java.lang.String" }; - _methodName31 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName32 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes31 = new String[] { + _methodParameterTypes32 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName32 = "getAllTerritorioGroup"; + _methodName33 = "getAllTerritorioGroup"; - _methodParameterTypes32 = new String[] { }; + _methodParameterTypes33 = new String[] { }; - _methodName33 = "verifyTerritorioConstraintAlreadyExist"; + _methodName34 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes33 = new String[] { + _methodParameterTypes34 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -1045,6 +1049,36 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } + @Override + public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera( + java.lang.String codiceProvincia) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, + new Object[] { ClpSerializer.translateInput(codiceProvincia) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + @Override public java.util.List getActiveTerritoriByComune( long comuneId) @@ -1052,8 +1086,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, new Object[] { comuneId }); + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { comuneId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1083,8 +1117,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { comuneId, @@ -1128,8 +1162,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, new Object[] { oldTerritorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { oldTerritorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1161,8 +1195,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { groupId, ClpSerializer.translateInput(zona) }); } catch (Throwable t) { @@ -1191,8 +1225,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { groupId, @@ -1226,8 +1260,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1256,8 +1290,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { comuneId, @@ -1356,4 +1390,6 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { private String[] _methodParameterTypes32; private String _methodName33; private String[] _methodParameterTypes33; + private String _methodName34; + private String[] _methodParameterTypes34; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java index e246467c..3c23fca6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java @@ -337,6 +337,13 @@ public class TerritorioLocalServiceUtil { return getService().getActiveComuniByCodiceProvincia(codiceProvincia); } + public static java.util.List getActiveComuniByCodiceProvincia_Ospedaliera( + java.lang.String codiceProvincia) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia); + } + public static java.util.List getActiveTerritoriByComune( long comuneId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java index b81568a6..df40d376 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java @@ -356,6 +356,13 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService, return _territorioLocalService.getActiveComuniByCodiceProvincia(codiceProvincia); } + @Override + public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera( + java.lang.String codiceProvincia) + throws com.liferay.portal.kernel.exception.SystemException { + return _territorioLocalService.getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia); + } + @Override public java.util.List getActiveTerritoriByComune( long comuneId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java index 6e8c3056..f256fff3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java @@ -52,6 +52,8 @@ import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; @@ -131,6 +133,9 @@ public class ClpMessageListener extends BaseMessageListener { ParereGeologoLocalServiceUtil.clearService(); ParereGeologoServiceUtil.clearService(); + PraticaAttenzionataLocalServiceUtil.clearService(); + + PraticaAttenzionataServiceUtil.clearService(); ProvinciaLocalServiceUtil.clearService(); ProvinciaServiceUtil.clearService(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataActionableDynamicQuery.java new file mode 100644 index 00000000..1dbc1e30 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataActionableDynamicQuery.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; +import com.liferay.portal.kernel.exception.SystemException; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public abstract class PraticaAttenzionataActionableDynamicQuery + extends BaseActionableDynamicQuery { + public PraticaAttenzionataActionableDynamicQuery() + throws SystemException { + setBaseLocalService(PraticaAttenzionataLocalServiceUtil.getService()); + setClass(PraticaAttenzionata.class); + + setClassLoader(it.tref.liferay.portos.bo.service.ClpSerializer.class.getClassLoader()); + + setPrimaryKeyPropertyName("praticaAttenzionataId"); + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java new file mode 100644 index 00000000..2b29c751 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.lar.ExportImportHelperUtil; +import com.liferay.portal.kernel.lar.ManifestSummary; +import com.liferay.portal.kernel.lar.PortletDataContext; +import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; +import com.liferay.portal.kernel.lar.StagedModelType; +import com.liferay.portal.util.PortalUtil; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataExportActionableDynamicQuery + extends PraticaAttenzionataActionableDynamicQuery { + public PraticaAttenzionataExportActionableDynamicQuery( + PortletDataContext portletDataContext) throws SystemException { + _portletDataContext = portletDataContext; + + setCompanyId(_portletDataContext.getCompanyId()); + + setGroupId(_portletDataContext.getScopeGroupId()); + } + + @Override + public long performCount() throws PortalException, SystemException { + ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); + + StagedModelType stagedModelType = getStagedModelType(); + + long modelAdditionCount = super.performCount(); + + manifestSummary.addModelAdditionCount(stagedModelType.toString(), + modelAdditionCount); + + long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, + stagedModelType); + + manifestSummary.addModelDeletionCount(stagedModelType.toString(), + modelDeletionCount); + + return modelAdditionCount; + } + + @Override + protected void addCriteria(DynamicQuery dynamicQuery) { + _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate"); + } + + protected StagedModelType getStagedModelType() { + return new StagedModelType(PortalUtil.getClassNameId( + PraticaAttenzionata.class.getName())); + } + + @Override + @SuppressWarnings("unused") + protected void performAction(Object object) + throws PortalException, SystemException { + PraticaAttenzionata stagedModel = (PraticaAttenzionata)object; + + StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, + stagedModel); + } + + private PortletDataContext _portletDataContext; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java new file mode 100644 index 00000000..0019474b --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java @@ -0,0 +1,652 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.service.persistence.BasePersistence; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; + +/** + * The persistence interface for the pratica attenzionata service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataPersistenceImpl + * @see PraticaAttenzionataUtil + * @generated + */ +public interface PraticaAttenzionataPersistence extends BasePersistence { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link PraticaAttenzionataUtil} to access the pratica attenzionata persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. + */ + + /** + * Returns all the pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + public void removeByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata removeByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUUID_G(java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + public void removeByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns all the pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByVerificata( + boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByVerificata( + boolean verificata, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByVerificata( + boolean verificata, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByVerificata_First( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByVerificata_First( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByVerificata_Last( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByVerificata_Last( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where verificata = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByVerificata_PrevAndNext( + long praticaAttenzionataId, boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Removes all the pratica attenzionatas where verificata = ? from the database. + * + * @param verificata the verificata + * @throws SystemException if a system exception occurred + */ + public void removeByVerificata(boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByVerificata(boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Caches the pratica attenzionata in the entity cache if it is enabled. + * + * @param praticaAttenzionata the pratica attenzionata + */ + public void cacheResult( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata); + + /** + * Caches the pratica attenzionatas in the entity cache if it is enabled. + * + * @param praticaAttenzionatas the pratica attenzionatas + */ + public void cacheResult( + java.util.List praticaAttenzionatas); + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata create( + long praticaAttenzionataId); + + /** + * Removes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata remove( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + public it.tref.liferay.portos.bo.model.PraticaAttenzionata updateImpl( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByPrimaryKey( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the pratica attenzionata with the primary key or returns null if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata, or null if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByPrimaryKey( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns all the pratica attenzionatas. + * + * @return the pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes all the pratica attenzionatas from the database. + * + * @throws SystemException if a system exception occurred + */ + public void removeAll() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countAll() + throws com.liferay.portal.kernel.exception.SystemException; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java new file mode 100644 index 00000000..d4817c6e --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java @@ -0,0 +1,856 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.ReferenceRegistry; +import com.liferay.portal.service.ServiceContext; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; + +import java.util.List; + +/** + * The persistence utility for the pratica attenzionata service. This utility wraps {@link PraticaAttenzionataPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataPersistence + * @see PraticaAttenzionataPersistenceImpl + * @generated + */ +public class PraticaAttenzionataUtil { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() + */ + public static void clearCache() { + getPersistence().clearCache(); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) + */ + public static void clearCache(PraticaAttenzionata praticaAttenzionata) { + getPersistence().clearCache(praticaAttenzionata); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) + */ + public static long countWithDynamicQuery(DynamicQuery dynamicQuery) + throws SystemException { + return getPersistence().countWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery) throws SystemException { + return getPersistence().findWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end) + throws SystemException { + return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + return getPersistence() + .findWithDynamicQuery(dynamicQuery, start, end, + orderByComparator); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) + */ + public static PraticaAttenzionata update( + PraticaAttenzionata praticaAttenzionata) throws SystemException { + return getPersistence().update(praticaAttenzionata); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) + */ + public static PraticaAttenzionata update( + PraticaAttenzionata praticaAttenzionata, ServiceContext serviceContext) + throws SystemException { + return getPersistence().update(praticaAttenzionata, serviceContext); + } + + /** + * Returns all the pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid, start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid, start, end, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUuid_First(uuid, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUuid_First(uuid, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUuid_Last(uuid, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUuid_Last(uuid, orderByComparator); + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_PrevAndNext(praticaAttenzionataId, uuid, + orderByComparator); + } + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + public static void removeByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByUuid(uuid); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUuid(uuid); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUUID_G(uuid, groupId); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUUID_G(uuid, groupId); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); + } + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata removeByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().removeByUUID_G(uuid, groupId); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUUID_G(java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUUID_G(uuid, groupId); + } + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid_C(uuid, companyId); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid_C(uuid, companyId, start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByUuid_C(uuid, companyId, start, end, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_First(uuid, companyId, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByUuid_C_First(uuid, companyId, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_Last(uuid, companyId, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByUuid_C_Last(uuid, companyId, orderByComparator); + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_PrevAndNext(praticaAttenzionataId, uuid, + companyId, orderByComparator); + } + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + public static void removeByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByUuid_C(uuid, companyId); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUuid_C(uuid, companyId); + } + + /** + * Returns all the pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByVerificata( + boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByVerificata(verificata); + } + + /** + * Returns a range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByVerificata( + boolean verificata, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByVerificata(verificata, start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByVerificata( + boolean verificata, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByVerificata(verificata, start, end, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByVerificata_First( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByVerificata_First(verificata, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByVerificata_First( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByVerificata_First(verificata, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByVerificata_Last( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByVerificata_Last(verificata, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByVerificata_Last( + boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByVerificata_Last(verificata, orderByComparator); + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where verificata = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByVerificata_PrevAndNext( + long praticaAttenzionataId, boolean verificata, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByVerificata_PrevAndNext(praticaAttenzionataId, + verificata, orderByComparator); + } + + /** + * Removes all the pratica attenzionatas where verificata = ? from the database. + * + * @param verificata the verificata + * @throws SystemException if a system exception occurred + */ + public static void removeByVerificata(boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByVerificata(verificata); + } + + /** + * Returns the number of pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByVerificata(boolean verificata) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByVerificata(verificata); + } + + /** + * Caches the pratica attenzionata in the entity cache if it is enabled. + * + * @param praticaAttenzionata the pratica attenzionata + */ + public static void cacheResult( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) { + getPersistence().cacheResult(praticaAttenzionata); + } + + /** + * Caches the pratica attenzionatas in the entity cache if it is enabled. + * + * @param praticaAttenzionatas the pratica attenzionatas + */ + public static void cacheResult( + java.util.List praticaAttenzionatas) { + getPersistence().cacheResult(praticaAttenzionatas); + } + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata create( + long praticaAttenzionataId) { + return getPersistence().create(praticaAttenzionataId); + } + + /** + * Removes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata remove( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().remove(praticaAttenzionataId); + } + + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata updateImpl( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().updateImpl(praticaAttenzionata); + } + + /** + * Returns the pratica attenzionata with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByPrimaryKey( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByPrimaryKey(praticaAttenzionataId); + } + + /** + * Returns the pratica attenzionata with the primary key or returns null if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata, or null if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByPrimaryKey( + long praticaAttenzionataId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByPrimaryKey(praticaAttenzionataId); + } + + /** + * Returns all the pratica attenzionatas. + * + * @return the pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll() + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(); + } + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(start, end, orderByComparator); + } + + /** + * Removes all the pratica attenzionatas from the database. + * + * @throws SystemException if a system exception occurred + */ + public static void removeAll() + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeAll(); + } + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countAll() + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countAll(); + } + + public static PraticaAttenzionataPersistence getPersistence() { + if (_persistence == null) { + _persistence = (PraticaAttenzionataPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), + PraticaAttenzionataPersistence.class.getName()); + + ReferenceRegistry.registerReference(PraticaAttenzionataUtil.class, + "_persistence"); + } + + return _persistence; + } + + /** + * @deprecated As of 6.2.0 + */ + public void setPersistence(PraticaAttenzionataPersistence persistence) { + } + + private static PraticaAttenzionataPersistence _persistence; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java index 99c866af..48da31dc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java @@ -139,7 +139,7 @@ public class AsseverazioniUtil { put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29, Arrays.asList(TipoSoggettoUtil.DIRETTORE_LAVORI)); // Domanda put(ASSEVERAZIONI_DOMANDA, Arrays.asList(TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DIRETTORE_LAVORI, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.COLLAUDATORE)); + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.COLLAUDATORE)); // Variante put(ASSEVERAZIONI_VARIANTE, new ArrayList()); // Integrazioni @@ -147,6 +147,8 @@ public class AsseverazioniUtil { // Fine Lavori put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI, Arrays.asList(TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DICHIARAZIONE_DIRETTORE_LAVORI, + Arrays.asList(TipoSoggettoUtil.DIRETTORE_LAVORI)); // Collaudo put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO, Arrays.asList(TipoSoggettoUtil.COLLAUDATORE)); @@ -209,9 +211,9 @@ public class AsseverazioniUtil { } return nuoviSoggetti.size() > 0; } else { - boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico() || dettPratica.getLavoriPubblici(); - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); - boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); + boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()); + boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera(); + boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()); if (TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) && direttoreLavoriNotRequired) { // ADT:se DL presente fra i soggetti deve ritornare true return checkAsseverazioniRichiestaOriginaria(tipoSoggetto, dettPraticaId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java index 9d9f6cdf..2861c353 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.util; +import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; @@ -14,6 +15,7 @@ import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; public class AvvisoUtil { @@ -25,6 +27,13 @@ public class AvvisoUtil { public final static String TIPO_AVVISO_DIRETTO = "D"; public final static String TIPO_AVVISO_FIRMA = "S"; + + public final static String FINE_LAVORI_AVVISO_INIZIO_LAVORI = "FL1"; + public final static String FINE_LAVORI_AVVISO_FINE_LAVORI = "FL2"; + + /* Pratiche Ospedaliere */ + public static final String PRATICA_OSPEDALIERA_DEPOSITO = "PO_DEPO"; + public static final String PRATICA_OSPEDALIERA_CONFORMITA = "PO_CONF"; @SuppressWarnings("serial") private final static Map allTipoAvviso = new LinkedHashMap(2) { @@ -53,6 +62,10 @@ public class AvvisoUtil { put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, "label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata"); put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore"); + put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoInizioLavori"); + put(FINE_LAVORI_AVVISO_FINE_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoFineLavori"); + put(PRATICA_OSPEDALIERA_DEPOSITO, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita"); } }; @@ -76,6 +89,10 @@ public class AvvisoUtil { put("MA", "conf.geniocivile.avviso.folder.id.manuale"); put("PG", "conf.geniocivile.avviso.folder.id.doc_pagamento"); put("DOM", "conf.geniocivile.avviso.folder.id.domanda_pdf"); + put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL1"); + put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL2"); + put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita"); } }; @@ -111,6 +128,12 @@ public class AvvisoUtil { put("DPC", "conf.geniocivile.avviso.template.id.deposito.C"); put("DPPS", "conf.geniocivile.avviso.template.id.deposito.PS"); put("DPS", "conf.geniocivile.avviso.template.id.deposito.S"); + + put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL1"); + put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL2"); + + put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.template.id.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.template.id.praticaospedaliera.conformita"); } }; @@ -137,6 +160,15 @@ public class AvvisoUtil { return allTipoDocumentoFileTemplateProps; } + + public static String getAvvisoDescription(Avviso avviso){ + if(!"MA".equals(avviso.getTipoDocumento())){ + if(Validator.isNotNull(avviso.getDescLong())){ + return "
" + StringPool.OPEN_PARENTHESIS + avviso.getDescLong() + StringPool.CLOSE_PARENTHESIS; + } + } + return StringPool.BLANK; + } public static String getTipoReport(DettPratica dettPratica, String tipoDocumento) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java index 4715e525..ab315614 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java @@ -329,6 +329,28 @@ public class DelegheUtil { } return geologi; } + + // fix 13/11/2023 + public static boolean hasDelegaPagamento(User user, long praticaUserId , long intPraticaId) + throws PortalException, SystemException { + + boolean controllo = false; + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaId, + DelegheUtil.TIPO_PAGAMENTO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + if (deleghe.isEmpty()) { + controllo = (user.getUserId() == praticaUserId); + } else { + controllo = false; + for (Delega delega : deleghe) { + if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { + controllo = true; + break; + } + } + } + return controllo; + } public static boolean hasDelegaPagamento(long userId, long dettPraticaId) throws PortalException, SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java index 660046c3..0a310518 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java @@ -126,6 +126,7 @@ public abstract class PagamentiCommonUtil { boolean normEsenteSpese = false; boolean normEsenteBollo = false; + boolean richiestaAttestazione = false; long pagamentoIdSpese = 0L; long pagamentoIdBolli = 0L; if (DettPratica.class.getName().equals(className)) { @@ -140,6 +141,7 @@ public abstract class PagamentiCommonUtil { normEsenteBollo = fineLavori.isNormEsenteBollo(); pagamentoIdSpese = fineLavori.getPagamentoSpeseId(); pagamentoIdBolli = fineLavori.getPagamentoId(); + richiestaAttestazione = fineLavori.isRichiestaAttestazione(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); normEsenteSpese = true; @@ -147,12 +149,14 @@ public abstract class PagamentiCommonUtil { pagamentoIdSpese = 0L; pagamentoIdBolli = collaudo.getPagamentoId(); } - if (!normEsenteBollo && !normEsenteSpese) { - return Validator.isNotNull(pagamentoIdBolli) || Validator.isNotNull(pagamentoIdSpese); - } else if (normEsenteBollo) { - return Validator.isNotNull(pagamentoIdSpese); - } else if (normEsenteSpese) { - return Validator.isNotNull(pagamentoIdBolli); + if(!richiestaAttestazione){ + if (!normEsenteBollo && !normEsenteSpese) { + return Validator.isNotNull(pagamentoIdBolli) || Validator.isNotNull(pagamentoIdSpese); + } else if (normEsenteBollo) { + return Validator.isNotNull(pagamentoIdSpese); + } else if (normEsenteSpese) { + return Validator.isNotNull(pagamentoIdBolli); + } } return false; } @@ -161,6 +165,7 @@ public abstract class PagamentiCommonUtil { boolean esenteSpese = false; boolean esenteBollo = false; + boolean richiestaAttestazione = false; long pagamentoIdSpese = 0L; long pagamentoIdBolli = 0L; if (DettPratica.class.getName().equals(className)) { @@ -175,6 +180,7 @@ public abstract class PagamentiCommonUtil { esenteBollo = fineLavori.isNormEsenteBollo(); pagamentoIdSpese = fineLavori.getPagamentoSpeseId(); pagamentoIdBolli = fineLavori.getPagamentoId(); + richiestaAttestazione = fineLavori.isRichiestaAttestazione(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); esenteSpese = true; @@ -183,6 +189,9 @@ public abstract class PagamentiCommonUtil { pagamentoIdBolli = collaudo.getPagamentoId(); } boolean completed = false; + if(richiestaAttestazione){ + return true; + } if (!esenteBollo && !esenteSpese) { if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) { return false; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java index e05ad290..82fa756c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java @@ -109,6 +109,9 @@ public class PraticaUtil { } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { statoPraticaCode = StatoPraticaConstants.AUTORIZZATA; } + if(intPratica.isPraticaOspedaliera()){ + statoPraticaCode = AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA; + } break; case StatoPraticaConstants.NON_CONFORME: if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java index 133dc485..a6461bbe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java @@ -110,7 +110,7 @@ public class ValidazionePraticaUtil { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) - && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId) + && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriDateDefined(intPraticaId) && !praticaHasCollaudoInProgress(intPraticaId); } @@ -203,7 +203,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaHasRichiestaIntegrazioneAttiva(long intPraticaId) throws SystemException, - PortalException { + PortalException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); return intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE); @@ -223,7 +223,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaCanAddFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -233,8 +233,17 @@ public class ValidazionePraticaUtil { && !praticaHasIntegrazioneInProgress(intPraticaId); } + public static boolean praticaCanAddFineLavoriDate(long intPraticaId, String userScreenName) throws SystemException, + PortalException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) + && praticaHasFineLavoriDateToSet(intPraticaId); + } + public static boolean praticaCanEditFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -243,20 +252,35 @@ public class ValidazionePraticaUtil { } public static boolean praticaCanDeleteFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) && praticaHasFineLavoriPaymentPending(intPraticaId); } + + public static boolean praticaHasFineLavoriDateToSet(long intPraticaId) throws SystemException, PortalException { + + FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); + if(Validator.isNotNull(fineLavori)){ + return Validator.isNull(fineLavori.getDataFineLavori()); + } + return false; + } public static boolean praticaHasFineLavoriInProgress(long intPraticaId) throws SystemException, PortalException { FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); return Validator.isNotNull(fineLavori); } + + public static boolean praticaHasFineLavoriDateDefined(long intPraticaId) throws SystemException, PortalException { + FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); + return Validator.isNotNull(fineLavori) && fineLavori.isCompletata() && fineLavori.isParziale(); + } + public static boolean praticaHasFineLavoriPaymentPending(long intPraticaId) throws SystemException, PortalException { FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); @@ -267,7 +291,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaCanAddCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -279,7 +303,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaCanEditCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -288,7 +312,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaCanDeleteCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -316,8 +340,8 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); return AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId) || (dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT - && SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 - && praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)); + && SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 + && praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)); } public static boolean pagamentoIsEnable(long dettPraticaId) throws SystemException, PortalException { @@ -350,7 +374,7 @@ public class ValidazionePraticaUtil { && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE) || dettPratica .getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) - && dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED; + && dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED; } public static boolean praticaCanAbort(long intPraticaId, long userId) throws SystemException, PortalException { @@ -393,21 +417,21 @@ public class ValidazionePraticaUtil { } public static List notCompletedSection(String section, long dettPraticaId) throws PortalException, - SystemException { + SystemException { switch (section) { - case SezioniUtil.SEZIONE_DETTAGLI_PRINCIPALI: - return notCompletedDettagliPrincipali(dettPraticaId); - case SezioniUtil.SEZIONE_ANAGRAFE_SOGGETTI: - return notCompletedAnagrafeSoggetti(dettPraticaId); - case SezioniUtil.SEZIONE_DESCRIZIONE_EDIFICIO: - return notCompletedDescrizioneEdificio(dettPraticaId); - case SezioniUtil.SEZIONE_GEOLOGICA: - return notCompletedSezioneGeologica(dettPraticaId); - case SezioniUtil.SEZIONE_ALLEGATI: - return notCompletedSezioniAllegati(dettPraticaId); - default: - return new ArrayList<>(); + case SezioniUtil.SEZIONE_DETTAGLI_PRINCIPALI: + return notCompletedDettagliPrincipali(dettPraticaId); + case SezioniUtil.SEZIONE_ANAGRAFE_SOGGETTI: + return notCompletedAnagrafeSoggetti(dettPraticaId); + case SezioniUtil.SEZIONE_DESCRIZIONE_EDIFICIO: + return notCompletedDescrizioneEdificio(dettPraticaId); + case SezioniUtil.SEZIONE_GEOLOGICA: + return notCompletedSezioneGeologica(dettPraticaId); + case SezioniUtil.SEZIONE_ALLEGATI: + return notCompletedSezioniAllegati(dettPraticaId); + default: + return new ArrayList<>(); } } @@ -417,7 +441,7 @@ public class ValidazionePraticaUtil { } private static List notCompletedDettagliPrincipali(long dettPraticaId) throws PortalException, - SystemException { + SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); @@ -428,50 +452,50 @@ public class ValidazionePraticaUtil { } boolean aiSensi = AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId()) ? (dettPratica.getNormDpr01Dep() || dettPratica.getNormDpr02Dep()) - : (dettPratica.getNormDpr01Aut() || dettPratica.getNormDpr02Aut()); - if (!aiSensi) { - notCompleted.add("at-least-aiSensi"); - } - boolean nelRispetto = dettPratica.getNormDm01() || dettPratica.getNormDm02() || dettPratica.getNormDm2018(); - if (!nelRispetto) { - notCompleted.add("at-least-nelRispetto"); - } - if (dettPratica.getNormSismaBonus() && Validator.isNull(dettPratica.getClRischioPreInt()) - && Validator.isNull(dettPratica.getClRischioPostInt())) { - if (Validator.isNull(dettPratica.getClRischioPreInt())) { - notCompleted.add("cl-rischio-pre-int"); - } - if (Validator.isNull(dettPratica.getClRischioPostInt())) { - notCompleted.add("cl-rischio-post-int"); - } - } - if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) { - notCompleted.add("interv-fin-pub-desc"); - } - if (Validator.isNull(dettPratica.getDescLongIntervento())) { - notCompleted.add("desc-long-intervento"); - } - if (!(dettPratica.getTcNuovaCostruzione() || dettPratica.getTcMiglioramentoSismico() - || dettPratica.getTcAdeguamentoSismico() || dettPratica.getTcRiparazioneInterventoLocale())) { - notCompleted.add("fascicolo_title_intervento"); - } - if (Validator.isNull(dettPratica.getDestinazione())) { - notCompleted.add("destinazione"); - } - if (Validator.isNull(dettPratica.getVia())) { - notCompleted.add("via"); - } - if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) - || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { - notCompleted.add("Localizzazione geografica mancante"); - } - boolean tipologiaCostruttiva = intPratica.getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_C) - || dettPratica.getTcInCA() || dettPratica.getTcInAcciaio() || dettPratica.getTcInMuratura() - || dettPratica.getTcInLegno() || dettPratica.getTcAltro(); - if (!tipologiaCostruttiva) { - notCompleted.add("Tipologia Costruttiva Mancante"); - } - return notCompleted; + : (dettPratica.getNormDpr01Aut() || dettPratica.getNormDpr02Aut()); + if (!aiSensi) { + notCompleted.add("at-least-aiSensi"); + } + boolean nelRispetto = dettPratica.getNormDm01() || dettPratica.getNormDm02() || dettPratica.getNormDm2018(); + if (!nelRispetto) { + notCompleted.add("at-least-nelRispetto"); + } + if (dettPratica.getNormSismaBonus() && Validator.isNull(dettPratica.getClRischioPreInt()) + && Validator.isNull(dettPratica.getClRischioPostInt())) { + if (Validator.isNull(dettPratica.getClRischioPreInt())) { + notCompleted.add("cl-rischio-pre-int"); + } + if (Validator.isNull(dettPratica.getClRischioPostInt())) { + notCompleted.add("cl-rischio-post-int"); + } + } + if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) { + notCompleted.add("interv-fin-pub-desc"); + } + if (Validator.isNull(dettPratica.getDescLongIntervento())) { + notCompleted.add("desc-long-intervento"); + } + if (!(dettPratica.getTcNuovaCostruzione() || dettPratica.getTcMiglioramentoSismico() + || dettPratica.getTcAdeguamentoSismico() || dettPratica.getTcRiparazioneInterventoLocale())) { + notCompleted.add("fascicolo_title_intervento"); + } + if (Validator.isNull(dettPratica.getDestinazione()) && !intPratica.isPraticaOspedaliera()) { + notCompleted.add("destinazione"); + } + if (Validator.isNull(dettPratica.getVia())) { + notCompleted.add("via"); + } + if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) + || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { + notCompleted.add("Localizzazione geografica mancante"); + } + boolean tipologiaCostruttiva = intPratica.getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_C) + || dettPratica.getTcInCA() || dettPratica.getTcInAcciaio() || dettPratica.getTcInMuratura() + || dettPratica.getTcInLegno() || dettPratica.getTcAltro(); + if (!tipologiaCostruttiva) { + notCompleted.add("Tipologia Costruttiva Mancante"); + } + return notCompleted; } // ADT @@ -486,12 +510,12 @@ public class ValidazionePraticaUtil { // ADT public static boolean isCollaudatoreRequired(DettPratica dettPratica) { - return !dettPratica.getCollaudoStatico() && !dettPratica.getLavoriPubblici() + return !dettPratica.getCollaudoStatico() && !dettPratica.getLavoriPubblici() && !isRiparazioneLocale(dettPratica); } private static List notCompletedAnagrafeSoggetti(long dettPraticaId) throws PortalException, - SystemException { + SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); @@ -504,10 +528,10 @@ public class ValidazionePraticaUtil { boolean isRiparazioneLocale = dettPratica.getTcRiparazioneInterventoLocale() && !dettPratica.getTcNuovaCostruzione() && !dettPratica.getTcAdeguamentoSismico() && !dettPratica.getTcMiglioramentoSismico(); - boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico() || dettPratica.getLavoriPubblici() + boolean collaudatoreNotRequired = dettPratica.getCollaudoStatico() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()) || isRiparazioneLocale; - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); - boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); + boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera(); + boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()); boolean collaudatore = false; int numeroCollaudatori = 0; boolean ditta = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); @@ -524,27 +548,27 @@ public class ValidazionePraticaUtil { tipoSoggetto)); } switch (soggetto.getTipologiaSoggetto()) { - case TipoSoggettoUtil.COLLAUDATORE: - collaudatore = true; - numeroCollaudatori++; - break; - case TipoSoggettoUtil.COMMITTENTE: - committente = true; - break; - case TipoSoggettoUtil.DIRETTORE_LAVORI: - direttore = true; - break; - case TipoSoggettoUtil.DITTA: - ditta = true; - break; - case TipoSoggettoUtil.GEOLOGO: - geologo = true; - break; - case TipoSoggettoUtil.PROGETTISTA: - progettista = true; - break; - default: - break; + case TipoSoggettoUtil.COLLAUDATORE: + collaudatore = true; + numeroCollaudatori++; + break; + case TipoSoggettoUtil.COMMITTENTE: + committente = true; + break; + case TipoSoggettoUtil.DIRETTORE_LAVORI: + direttore = true; + break; + case TipoSoggettoUtil.DITTA: + ditta = true; + break; + case TipoSoggettoUtil.GEOLOGO: + geologo = true; + break; + case TipoSoggettoUtil.PROGETTISTA: + progettista = true; + break; + default: + break; } } boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId) @@ -614,7 +638,7 @@ public class ValidazionePraticaUtil { } private static List notCompletedDescrizioneEdificio(long dettPraticaId) throws PortalException, - SystemException { + SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); @@ -671,17 +695,17 @@ public class ValidazionePraticaUtil { boolean elevazioni = (Validator.isNotNull(dettPratica.getDccStruttureEleMuraturePietrame()) || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureLaterizio()) || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureMisto()) || Validator - .isNotNull(dettPratica.getDccStruttureEleMuratureStoriche())) + .isNotNull(dettPratica.getDccStruttureEleMuratureStoriche())) || Validator.isNotNull(dettPratica.getDccStruttureEleAcciaio()) || Validator.isNotNull(dettPratica.getDccStruttureEleCA()) || Validator.isNotNull(dettPratica.getDccStruttureEleLegno()) || (Validator.isNotNull(dettPratica.getDccStruttureEleMistoCA()) || Validator.isNotNull(dettPratica.getDccStruttureEleMistoAcciaio()) || Validator.isNotNull(dettPratica.getDccStruttureEleMistoMuratura()) || Validator - .isNotNull(dettPratica.getDccStruttureEleMistoLegno())) - || Validator.isNotNull(dettPratica.getDccStruttureElePrefabbricato()) - || (Validator.isNotNull(dettPratica.getDccStruttureEleAltro()) && Validator.isNotNull(dettPratica - .getDccStruttureEleAltroDescrizione())); + .isNotNull(dettPratica.getDccStruttureEleMistoLegno())) + || Validator.isNotNull(dettPratica.getDccStruttureElePrefabbricato()) + || (Validator.isNotNull(dettPratica.getDccStruttureEleAltro()) && Validator.isNotNull(dettPratica + .getDccStruttureEleAltroDescrizione())); if (!elevazioni) { notCompleted.add("dcc-strutture-ele"); } @@ -794,10 +818,11 @@ public class ValidazionePraticaUtil { DLPresente = true; } } - if (!DLPresente || !dettPratica.isLavoriPubblici()) { + if (!DLPresente || !dettPratica.isLavoriPubblici() || IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()) { firmeFiltrate.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); } - if (!isAllRequiredValid(doc.getTipologia(), dettPratica.getIntPraticaId(), signatures, firmeFiltrate, + if (dettPratica.getNormArt3com3() || + !isAllRequiredValid(doc.getTipologia(), dettPratica.getIntPraticaId(), signatures, firmeFiltrate, doc)) { notCompleted.add(doc.getTipologia() + " firme obbligatorie mancanti"); } @@ -842,7 +867,7 @@ public class ValidazionePraticaUtil { } private static List notCompletedDatiSezionGeologica(long dettPraticaId) throws PortalException, - SystemException { + SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); @@ -1028,38 +1053,38 @@ public class ValidazionePraticaUtil { } private static boolean isDocPraticaRequired(DettPratica dettPratica, String codiceDoc) throws SystemException, - PortalException { + PortalException { boolean required = true; switch (codiceDoc) { - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A00: - if (isRiparazioneLocale(dettPratica)) { - return false; - } - return !dettPratica.getNormEsenteSpese(); - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05: - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06: - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07: - return !dettPratica.getNormArt3com3(); - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15: - // nell'ultima version A15 non è più obbligatorio, ma se c'è deve essere firmato da GEOLOGO E DIRETTORE - // dei LAVORI + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A00: + if (isRiparazioneLocale(dettPratica)) { return false; - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09: - return !dettPratica.getNormArt3com4(); - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17: - return isA17Required(dettPratica); - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29: - return dettPratica.getNormLavoriInProprio(); - case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA: - return isA98Required(dettPratica); - default: - return required; + } + return !dettPratica.getNormEsenteSpese(); + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05: + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06: + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07: + return !dettPratica.getNormArt3com3(); + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15: + // nell'ultima version A15 non è più obbligatorio, ma se c'è deve essere firmato da GEOLOGO E DIRETTORE + // dei LAVORI + return false; + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09: + return !dettPratica.getNormArt3com4(); + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17: + return isA17Required(dettPratica); + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29: + return dettPratica.getNormLavoriInProprio(); + case DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA: + return isA98Required(dettPratica); + default: + return required; } } public static boolean isA06Valid(DettPratica dettPratica, long intPraticaId, List signatures, - DocPratica docPratica) throws SystemException { + DocPratica docPratica) throws SystemException, PortalException { boolean isProgettista = false; boolean isGeologo = false; @@ -1081,7 +1106,7 @@ public class ValidazionePraticaUtil { } } } - if (!isDirettoreLavori && !dettPratica.isLavoriPubblici()) { + if (!isDirettoreLavori && dettPratica.isLavoriPubblici() && !IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()) { isDirettoreLavori = true; } return isDirettoreLavori && (isProgettista || isGeologo); @@ -1101,7 +1126,7 @@ public class ValidazionePraticaUtil { List requiredSubjectsApp = AsseverazioniUtil.getRequiredSubjectsByCodiceDoc(doc.getTipologia()); List requiredSubjects = new ArrayList(); - if (dettPratica.getLavoriPubblici()) { + if (dettPratica.getLavoriPubblici() && !IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()) { for (String tip : requiredSubjectsApp) { if (!tip.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) { requiredSubjects.add(tip); @@ -1116,13 +1141,13 @@ public class ValidazionePraticaUtil { } public static boolean isA09Valid(DettPratica dettPratica, long intPraticaId, List signatures, - DocPratica docPratica) throws SystemException { + DocPratica docPratica) throws SystemException, PortalException { if (dettPratica.getNormArt3com4()) { return true; } List tipoSoggetti = new ArrayList<>(); - if (dettPratica.getLavoriPubblici()) { + if (dettPratica.getLavoriPubblici() && !IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()) { tipoSoggetti = Arrays.asList(TipoSoggettoUtil.PROGETTISTA); } else { tipoSoggetti = Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI); @@ -1172,9 +1197,10 @@ public class ValidazionePraticaUtil { boolean dittaNotRequired = true; if (docPratica.getClassName().equals(DettPratica.class.getName())) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(docPratica.getClassPk()); - collaudatoreNotRequired = dettPratica.getCollaudoStatico() || dettPratica.getLavoriPubblici(); - direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); - dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + collaudatoreNotRequired = dettPratica.getCollaudoStatico() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()); + direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera(); + dittaNotRequired = dettPratica.getNormLavoriInProprio() || (dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera()); } for (String tipoSoggetto : tipologiaSoggetti) { @@ -1226,17 +1252,19 @@ public class ValidazionePraticaUtil { if (Validator.isNull(fineLavori.getParziale())) { notCompleted.add("fl-tipo"); } - if (fineLavori.getParziale() - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(fineLavori.getIntPraticaId(), false) > 0) { - notCompleted.add("fl-parziale-not-possibile"); - } + // if (fineLavori.getParziale() + // && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(fineLavori.getIntPraticaId(), false) > 0) { + // notCompleted.add("fl-parziale-not-possibile"); + // } if (Validator.isNull(fineLavori.getDataFineLavori())) { notCompleted.add("fl-data-fine"); } IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(fineLavori.getIntPraticaId()); - if (Validator.isNull(fineLavori.getDataFineLavori()) - || fineLavori.getDataFineLavori().before(intPratica.getDtPratica())) { - notCompleted.add("fl-data-fine-early"); + if(!intPratica.isPraticaOspedaliera()){ + if (Validator.isNull(fineLavori.getDataFineLavori()) + || fineLavori.getDataFineLavori().before(intPratica.getDtPratica())) { + notCompleted.add("fl-data-fine-early"); + } } if (Validator.isNull(fineLavori.getCodiceFiscaleDelegato())) { notCompleted.add("fl-dir-lav"); @@ -1244,11 +1272,45 @@ public class ValidazionePraticaUtil { return notCompleted; } + public static List getDocObbligatoriFineLavori(long intPraticaId) throws PortalException, SystemException{ + List tipologiaAllegati = new ArrayList<>(); + DettPratica dettPratica = _getAvailableDettPratica(intPraticaId); + if(Validator.isNotNull(dettPratica)) { + if(dettPratica.isLavoriPubblici() && !IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){ + tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); + } else { + tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavoriNonPubblici(); + } + } + return tipologiaAllegati; + } + + public static List getDocFineLavori(long intPraticaId) throws PortalException, SystemException{ + List tipologiaAllegati = new ArrayList<>(); + DettPratica dettPratica = _getAvailableDettPratica(intPraticaId); + if(Validator.isNotNull(dettPratica)) { + if(dettPratica.isLavoriPubblici() && !IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){ + tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); + } else { + tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavoriNonPubblici(); + } + } + return tipologiaAllegati; + } + + private static DettPratica _getAvailableDettPratica(long intPraticaId) throws SystemException, PortalException{ + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); + if (Validator.isNull(dettPratica)) { + dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); + } + return dettPratica; + } + private static boolean isFineLavoriAllegatiCompleted(long fineLavoriId) throws PortalException, SystemException { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); long intPraticaId = fineLavori.getIntPraticaId(); - List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); + List tipologiaAllegati = getDocObbligatoriFineLavori(intPraticaId); for (String codiceDoc : tipologiaAllegati) { List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(fineLavoriId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); @@ -1306,7 +1368,7 @@ public class ValidazionePraticaUtil { codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docs.isEmpty()) { return false; // Ci dev'essere almeno un allegato per tipo - // obbligatorio + // obbligatorio } for (DocPratica doc : docs) { FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); @@ -1383,7 +1445,7 @@ public class ValidazionePraticaUtil { } private static List extractSigns(long companyId, String fileName, byte[] fileBytes) throws IOException, - PortalException, SystemException { + PortalException, SystemException { Company company = CompanyLocalServiceUtil.getCompany(companyId); String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java index 5cb14586..0faba452 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java @@ -144,7 +144,9 @@ public class WorkflowUtil { } IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + if(intPratica.isPraticaOspedaliera()){ + return true; + } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione()) && !dettPratica.getVarianteSostanziale()) { return false; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties index 78da40f8..0e605aff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties @@ -185,6 +185,11 @@ IX_635441BE=portos_bo_ParereGeo.UUID_G IX_24A66C6C=portos_bo_ParereGeo.Uuid IX_A5C9DC3C=portos_bo_ParereGeo.Uuid_C +IX_7EBBE38C=portos_bo_PraticaAttenzionata.UUID_G +IX_18E0EADE=portos_bo_PraticaAttenzionata.Uuid +IX_85D0428A=portos_bo_PraticaAttenzionata.Uuid_C +IX_CBCCC5BE=portos_bo_PraticaAttenzionata.Verificata + IX_360E605D=portos_bo_Provincia.C_C IX_BDDB41C9=portos_bo_Provincia.C_S IX_A81834CD=portos_bo_Provincia.CompanyId diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql index e130c47a..a71e456c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql @@ -181,6 +181,11 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); +create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); + create index IX_A81834CD on portos_bo_Provincia (companyId); create unique index IX_360E605D on portos_bo_Provincia (companyId, codiceProvincia); create unique index IX_BDDB41C9 on portos_bo_Provincia (companyId, sigla); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql index dc992a69..bbb0eb43 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato BOOLEAN, disabilitato BOOLEAN, mailSuap VARCHAR(75) null, - mailSue VARCHAR(75) null + mailSue VARCHAR(75) null, + praticaOspedali BOOLEAN ); create table portos_bo_Comunicazione ( @@ -262,6 +263,7 @@ create table portos_bo_DettPratica ( dataFineEsecuzioneOpera DATE null, metratura VARCHAR(75) null, lavoriPubblici BOOLEAN, + dataInserimentoInizioLavoriOpera DATE null, pagamentoIdOneri LONG, pagamentoIdBolli LONG, lavoriPubbliciPercentuale INTEGER, @@ -604,6 +606,7 @@ create table portos_bo_IntPratica ( collaudoParziale BOOLEAN, collaudoTotale BOOLEAN, controlloObbligatorio BOOLEAN, + praticaOspedaliera BOOLEAN, inLavorazioneSue BOOLEAN ); @@ -633,6 +636,7 @@ create table portos_bo_Pagamento ( otf BOOLEAN, otfCreateDate DATE null, emailPending BOOLEAN, + numeroBollettino VARCHAR(250) null, oldPagamentoId LONG ); @@ -655,6 +659,24 @@ create table portos_bo_ParereGeo ( status INTEGER ); +create table portos_bo_PraticaAttenzionata ( + uuid_ VARCHAR(75) null, + praticaAttenzionataId LONG not null primary key, + companyId LONG, + userId LONG, + userName VARCHAR(75) null, + createDate DATE null, + modifiedDate DATE null, + groupId LONG, + intPraticaId LONG, + fineLavoriId LONG, + numeroProgetto VARCHAR(75) null, + dataFineLavoriTotale DATE null, + dataRelazioneFineLavoriTotale DATE null, + verificata BOOLEAN, + dataVerifica DATE null +); + create table portos_bo_Provincia ( provinciaId LONG not null primary key, companyId LONG, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml index 0b01cf48..137cca11 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml @@ -19,6 +19,7 @@
@@ -312,6 +313,7 @@ + @@ -673,6 +675,7 @@ + @@ -703,6 +706,9 @@ + + 250 + @@ -725,6 +731,23 @@ + + + + + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml index 9127926e..7ac95062 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml @@ -210,6 +210,7 @@ + @@ -420,6 +421,9 @@ + + TIMESTAMP + @@ -796,6 +800,7 @@ + @@ -839,6 +844,7 @@ TIMESTAMP + @@ -881,6 +887,41 @@ + + + + + + + + + + + TIMESTAMP + + + TIMESTAMP + + + + + + + TIMESTAMP + + + TIMESTAMP + + + + TIMESTAMP + + + + + + + @@ -1193,6 +1234,10 @@ + +
+ +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml index 241920cb..8edb7ea2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml @@ -53,6 +53,9 @@ + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties index bcad1604..159a3f0c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties @@ -152,6 +152,8 @@ conf.geniocivile.avviso.folder.id.manuale = Cartella Avvisi Manuali conf.geniocivile.avviso.folder.id.doc_annullamento = Cartella File Annullamento Fascicolo conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda +conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito = Cartella Deposito Pratica Ospedaliera +conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita = Cartella Conformità Pratica Ospedaliera #Configurazione Templates conf.geniocivile.template.folder.id = Cartella Template @@ -159,7 +161,8 @@ conf.geniocivile.avviso.template.id.conforme = Template Avviso Conforme conf.geniocivile.avviso.template.id.nonconforme = Template Avviso Non Conforme conf.geniocivile.avviso.template.id.vidimata = Template Avviso Vidimata conf.geniocivile.avviso.template.id.variazionesoggetti = Template Avviso Vidimazione Variazione Soggetti -conf.geniocivile.avviso.template.id.vidimata.finelavori = Template Avviso Vidimazione Fine Lavori +#conf.geniocivile.avviso.template.id.vidimata.finelavori = Template Avviso Vidimazione Fine Lavori +conf.geniocivile.avviso.template.id.vidimata.finelavori = Template Avviso Vidimazione Fine Lavori o Attestazione Deposito Fine Lavori conf.geniocivile.avviso.template.id.vidimata.collaudo = Template Avviso Vidimazione Collaudo conf.geniocivile.avviso.template.id.autorizzata = Template Avviso Autorizzazione conf.geniocivile.avviso.template.id.non_autorizzata = Template Avviso Autorizzazione Negata @@ -183,6 +186,10 @@ conf.geniocivile.avviso.template.id.deposito.B2 = Template Ricevuta deposito mod conf.geniocivile.avviso.template.id.deposito.VNS = Template Ricevuta variante non sostanziale conf.geniocivile.avviso.template.id.deposito.PS = Template Avvisio avvio di procedimento dopo sorteggio conf.geniocivile.avviso.template.id.deposito.S = Template Avviso di sorteggio +conf.geniocivile.avviso.template.id.finelavori.FL1 = Template Avviso di Inizio Lavori +conf.geniocivile.avviso.template.id.finelavori.FL2 = Template Avviso di Fine Lavori +conf.geniocivile.avviso.template.id.praticaospedaliera.deposito = Template Deposito Pratica Ospedaliera +conf.geniocivile.avviso.template.id.praticaospedaliera.conformita = Template Conformità  Pratica Ospedaliera #Configurazione Allegati conf.geniocivile.attachment.folder.id = Folder Allegati @@ -359,4 +366,9 @@ invia-avviso-progetto-inesistente = Numero di progetto non trovato invia-avviso-progetto-obbligatorio = È obbligatorio specificare il numero del progetto invia-avviso-tipo-obbligatorio = È obbligatorio specificare il tipo di avviso invia-avviso-tipo-pratica-non-deposito = La pratica indicata non è un deposito -invia-avviso-variante-non-trovato = Variante non trovata \ No newline at end of file +invia-avviso-variante-non-trovato = Variante non trovata + +#Portlet pannello Pratiche da Attenzionare +errore-impossibile-verificare = Impossibile concludere l'operazione, la pratica rimane da verificare. +data-fine-lavori-totale = Data di fine lavori +data-relazione-fine-lavori-totale = Data inserimento relazione fine lavori \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties index 0beb06b9..a73560d3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties @@ -863,6 +863,7 @@ label-documenti-tipologia-ACL = Certificato Legno label-documenti-tipologia-ACLAT = Certificato Laterizio label-documenti-tipologia-AFL = Altri Certificati label-documenti-tipologia-DFL = Altra Documentazione +label-documenti-tipologia-DDL = Dichiarazione del Direttore dei Lavori ai sensi dell'art. 31 comma 3, della L.R. n. 23/2021 label-documenti-tipologia-ARC = Relazione Collaudo label-documenti-tipologia-AAC = Altra Documentazione @@ -883,6 +884,7 @@ label-integrazione-13 = Variante campo-richiesto = Campo Obbligatorio campo-non-valido = I dati immessi non sono validi + ## Pagamenti ## mezzo-pagamento = Mezzo Pagamento mezzo-pagamento-oneri = Mezzo Pagamento Spese Istruttoria @@ -896,6 +898,9 @@ causale-pagamento-oneri = Causale Pagamento Spese Istruttoria causale-pagamento-bolli = Causale Pagamento Bolli importo-bolli = Importo Bolli importo-spese-istruttoria = Importo Spese Istruttoria +numero-bollettino =Numero Marca da Bollo e Data +label-codice-bollettino =Codice bollettino +errore-lenght-bollettino = Il limite massimo di 250 caratteri è stato superato pag-nuove-costruzioni = Pagamento Nuove Costruzioni pag-adeguamento-sismico = Pagamento Adeguamento Sismico @@ -932,7 +937,7 @@ label-pagamenti-importo-calcolato = Importo calcolato label-pagamenti-importo-effettivo = Importo effettivo label-pagamenti-aiuto-effettivo = Se necessario, è possibile modificare il valore dell'importo. Sarà necessario fornire una breve spiegazione del motivo nella sezione note. label-confirm-payment-iris = Proseguendo con il pagamento IRIS la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica all'ufficio del Settore Sismica di riferimento. Conferma di voler proseguire con l'operazione di pagamento? -label-confirm-payment-manual = Proseguendo con il pagamento MANUALE la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica all'ufficio del Settore Sismica di riferimento. Conferma di voler proseguire con l'operazione di pagamento? +label-confirm-payment-manual = Il pagamento dei “Diritti Fissi†potrà essere effettuato solo tramite la piattaforma regionale.
Proseguendo con il pagamento MANUALE la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica all'ufficio del Settore Sismica di riferimento. Conferma di voler proseguire con l'operazione di pagamento? label-confirm-payment-otf = Il pagamento è IMMEDIATO.
Procedendo si dovrà necessariamente portare a termine la transazione.


ATTENZIONE:
Assicurarsi di abilitare i popup su questa pagina.
label-payment-otf-initialized = Pagamento in corso di verifica....
Qualora non sia stato effettivamente completato il sistema renderà disponibile automaticamente la rigenerazione del pagamento dopo circa 20 min. Se il problema persiste contattare il supporto al numero 800232330 qualora non sia stato effettivamente completato label-payment-otf-rigeneration = Solo nel caso in cui si è sicuri che il pagamento non sia andato a buon fine è possibile rigenerare il pagamento in autonomia. @@ -986,7 +991,7 @@ fl-commit = Committente/i fl-dir-lav = Direttore Lavori fl-tipo-dom = Tipo di domanda fl-data-fine = Data effettuazione fine lavori -fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di inizio lavori +fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di presentazione della pratica fl-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i. fl-dichiaraz-direttore = Il sottoscritto {0} {1}, in qualità di Direttore dei lavori principale dichiara che in data sopra indicata sono state ultimate le opere relative al progetto in oggetto.
Le opere sono state realizzate secondo il progetto autorizzato / depositato ed i materiali utilizzati sono conformi a quanto dichiarato
Con la presente si certifica altresì che le opere realizzate sono conformi alle prescrizioni antisismiche della vigente normativa nonchè, laddove previsto, alle prescrizioni relative alle opere di conglomerato cementizio armato, normale e precompresso, ed a struttura metallica di cui alla parte II, capo II, del D.P.R. 380/01. fl-firma-direttore = Relazione di Fine Lavori e Certificato di Rispondenza, ai sensi dell''art. 93 del D.P.R. 380/2001 sottoscritti dal Direttore dei Lavori {0} {1} - {2} ai sensi del D.Lgs. 82/2005. @@ -1003,9 +1008,12 @@ fl-parziale-not-possibile = Fine Lavori Parziale non possibile no-varianti-integrazioni = Nessuna Variante o Integrazione presentata al momento no-fine-lavori-parziali = Nessuna Fine Lavori Parziale presentata al momento fl-attestazione = Si chiede il rilascio dell’attestazione di deposito degli atti -fl-attestazione-note = Il rilascio dell’attestazione non deve essere richiesto per interventi e nuove costruzioni con \ - struttura diversa da cemento armato e acciaio che richiedono il deposito del collaudo.
Ove non è richiesta \ - l’attestazione di deposito del fine lavori inserire una dichiarazione ai sensi del DPR 445 del 2020. +fl-attestazione-note-1 = Il rilascio dell’attestazione non deve essere richiesto per interventi e nuove costruzioni con \ + struttura diversa da cemento armato e acciaio che richiedono il deposito del collaudo. +fl-attestazione-note-2= Può non essere richiesto per tipologie strutturali in muratura o in legno nel caso sia \ + previsto il collaudo delle opere. (nuove costruzioni, interventi di adeguamento, interventi di miglioramento) +fl-attestazione-note-3= Ove non è richiesta l’attestazione di deposito del fine lavori inserire una dichiarazione \ + ai sensi del DPR 445 del 2020. ## Collaudo ## col = Collaudo @@ -1056,6 +1064,9 @@ label.admingeniocivile.statopratica.approvazione = Approvazione label.admingeniocivile.statopratica.finelavorianomalia = Anomalia Fine Lavori label.admingeniocivile.statopratica.variante = Variante label.admingeniocivile.statopratica.sospesa = Sospesa +label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito = Avviso di deposito Pratica Ospedaliera +label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita = Avviso di conformità Pratica Ospedaliera + label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005 label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo @@ -1120,6 +1131,7 @@ label.error.file.annullamento.already.exist = Impossibile generare il file di an error.geniocivilefe.pratica.allegato.ext.valid = Estensione Allegato non valida error.geniocivilefe.pratica.allegato.length.valid = Lunghezza massima nome file superata +error.geniocivilefe.pagamento.bollettino = Numero marca da bollo non inserito # Manifattura Web Group, mofidica per rendere la dimensione massima degli allegati configurabile # da pannello di controllo. In origine era hardcoded a 20971520 byte. @@ -1169,6 +1181,10 @@ label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata = Avviso di vi label.admingeniocivile.avviso.tipoDocumento.avvisomanuale = Avviso generico label.admingeniocivile.avviso.tipoDocumento.cambioistruttore = Avviso di cambio istruttore label.admingeniocivile.avviso.tipoDocumento.variazioneSoggetto = Avviso di variazione soggetto +label.admingeniocivile.avviso.tipoDocumento.avvisoInizioLavori = Avviso di Inizio Lavori +label.admingeniocivile.avviso.tipoDocumento.avvisoFineLavori = Avviso di Fine Lavori +label.admingeniocivile.avviso.tipoDocumento.praticaOspedaliera = Avviso Pratica Ospedaliera + label.admingeniocivile.avviso.documento.conforme = Conformità/Autorizzazione label.admingeniocivile.avviso.documento.nonconforme = Conformità negata @@ -1238,6 +1254,9 @@ tipo-procedura-A = A - Interventi “rilevanti†da realizzare previo rilascio tipo-procedura-B = B - Interventi di “minore rilevanza†D.D.G. 344/20 all. A - lettera B tipo-procedura-B1 = B1 - Interventi di “minore rilevanza†zone 1-2 ed interventi in abitati da consolidare, art.61 (zone 3-4) tipo-procedura-C = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C +tipo-procedura-OSPEDALIERA = - Interventi per il potenziamento della rete ospedaliera della Regione Siciliana, emergenza COVID-19 ex ordinanza 25/20 mappe-bbcc = Mappe BBCC mappe-openstreetmap = OpenStreetmap + +pratica-ospedali = P.R. Ospedaliera diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index ec6b529e..8dab2c05 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -37,6 +37,7 @@ import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.Constants; +import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.io.Serializable; @@ -344,13 +345,17 @@ public class SismicaUtil { List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, WorkflowConstants.STATUS_PENDING); if (0 == controlli.size()) { - esitoLog(esito, "Aggiungo controllo pratica numero " + numeroProgetto); - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(dettPraticaId); - serviceContext.setUserId(userId); - ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true, - serviceContext); + if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ + _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + numeroProgetto); + } else { + esitoLog(esito, "Aggiungo controllo pratica numero " + numeroProgetto); + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(dettPraticaId); + serviceContext.setUserId(userId); + ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true, + serviceContext); + } } else { esitoLog(esito, "Controllo pratica già presente"); } @@ -717,10 +722,14 @@ public class SismicaUtil { controllo = controlli.get(controlli.size() - 1); } catch (Exception e1) { try { - esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); - controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( - dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), - dettPratica.getDettPraticaId(), false, serviceContext); + if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ + _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + pratica.getNumeroProgetto()); + } else { + esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); + controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( + dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), + dettPratica.getDettPraticaId(), false, serviceContext); + } } catch (PortalException | SystemException e2) { esitoLog(esito, "Errore durante la creazione di un controllo pratica per progetto " + pratica.getNumeroProgetto() + ": " + e2.getMessage()); @@ -795,45 +804,49 @@ public class SismicaUtil { dettPratica = null; } if (Validator.isNotNull(dettPratica)) { - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(dettPratica.getCompanyId()); - serviceContext.setScopeGroupId(dettPratica.getGroupId()); - serviceContext.setUserId(dettPratica.getUserId()); - ControlloPratica controllo; - try { - esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); - controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( - dettPratica.getGroupId(), dettPratica.getUserId(), - pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, - serviceContext); - } catch (PortalException | SystemException e) { - controllo = null; - } - if (Validator.isNotNull(controllo)) { - controllo.setStatus(WorkflowConstants.STATUS_APPROVED); - try { - ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); - } catch (SystemException e) {} - long fileEntryIdTemplate; + if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ + _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + pratica.getNumeroProgetto()); + } else { + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(dettPratica.getCompanyId()); + serviceContext.setScopeGroupId(dettPratica.getGroupId()); + serviceContext.setUserId(dettPratica.getUserId()); + ControlloPratica controllo; try { - fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( - companyId, "conf.geniocivile.avviso.template.id.deposito.B2"); - } catch (SystemException e) { - fileEntryIdTemplate = 0L; + esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); + controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( + dettPratica.getGroupId(), dettPratica.getUserId(), + pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, + serviceContext); + } catch (PortalException | SystemException e) { + controllo = null; } - if (Validator.isNotNull(fileEntryIdTemplate)) { + if (Validator.isNotNull(controllo)) { + controllo.setStatus(WorkflowConstants.STATUS_APPROVED); + try { + ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); + } catch (SystemException e) {} + long fileEntryIdTemplate; try { - if (!pratica.getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_C)) { - AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), - "Attestazione di deposito progetto", new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, - fileEntryIdTemplate, dettPratica.getDettPraticaId(), - DettPratica.class.getName(), controllo.getControlloPraticaId(), - serviceContext); - } - pratica.setStatoPratica(StatoPraticaConstants.CONFORME); - IntPraticaLocalServiceUtil.updateIntPratica(pratica); - } catch (PortalException | SystemException e) {} + fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( + companyId, "conf.geniocivile.avviso.template.id.deposito.B2"); + } catch (SystemException e) { + fileEntryIdTemplate = 0L; + } + if (Validator.isNotNull(fileEntryIdTemplate)) { + try { + if (!pratica.getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_C)) { + AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), + "Attestazione di deposito progetto", new Date(), + AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, + fileEntryIdTemplate, dettPratica.getDettPraticaId(), + DettPratica.class.getName(), controllo.getControlloPraticaId(), + serviceContext); + } + pratica.setStatoPratica(StatoPraticaConstants.CONFORME); + IntPraticaLocalServiceUtil.updateIntPratica(pratica); + } catch (PortalException | SystemException e) {} + } } } } @@ -1006,198 +1019,198 @@ public class SismicaUtil { private static Map templateIdByKey; private static final Date inizio = stringToDate("2019-12-31"); - private static List riparaDocumenti(long companyId) throws SystemException, PortalException { - - List esito = new ArrayList(); - esitoLog(esito, "Riparazione generazione documenti"); - initTemplate(companyId); - List intPratiche = null; - int index = 0; - do { - try { - intPratiche = IntPraticaLocalServiceUtil.getIntPraticas(index, index + SLICE); - } catch (SystemException e) { - esitoLog(esito, "Errore caricamento intPratiche: " + e.getMessage()); - } - for (IntPratica intPratica : intPratiche) { - esito.addAll(verificaAvvisi(intPratica)); - } - index += SLICE; - } while (intPratiche.size() > 0); - return esito; - } - - private static void initTemplate(long companyId) throws SystemException, PortalException { - - templateById = new LinkedHashMap<>(); - templateByKey = new LinkedHashMap<>(); - templateIdByKey = new LinkedHashMap<>(); - Map elenco = AvvisoUtil.getAllTipoDocumentoFileTemplateProps(); - for (Entry template : elenco.entrySet()) { - long fileEntryId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, template.getValue()); - if (fileEntryId != 0) { - FileEntry fileEntry = DLAppServiceUtil.getFileEntry(fileEntryId); - templateById.put(fileEntryId, fileEntry.getTitle()); - templateByKey.put(template.getKey(), fileEntry.getTitle()); - templateIdByKey.put(template.getKey(), fileEntryId); - } - } - } - - private static List verificaAvvisi(IntPratica intPratica) { - - List esito = new ArrayList(); - if (Validator.isNotNull(intPratica.getStatoPratica()) - && !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { - long intPraticaId = intPratica.getIntPraticaId(); - List controlli = null; - try { - controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId); - } catch (SystemException e) { - controlli = new ArrayList(); - } - ControlloPratica controllo = null; - ServiceContext serviceContext = null; - if (controlli.size() > 0) { - controllo = controlli.get(controlli.size() - 1); - serviceContext = new ServiceContext(); - serviceContext.setCompanyId(controllo.getCompanyId()); - serviceContext.setScopeGroupId(controllo.getGroupId()); - serviceContext.setUserId(controllo.getUserId()); - } else { - serviceContext = new ServiceContext(); - serviceContext.setCompanyId(intPratica.getCompanyId()); - try { - serviceContext.setScopeGroupId(TerritorioLocalServiceUtil.getTerritorio( - intPratica.getTerritorioId()).getGroupId()); - } catch (PortalException | SystemException e) {} - serviceContext.setUserId(intPratica.getUserId()); - } - List avvisi = getAvvisiPratica(intPraticaId); - List avvisiFermi = new ArrayList<>(); - List avvisiInviati = new ArrayList<>(); - Date ultimaData = null; - for (Avviso avviso : avvisi) { - if ((ultimaData == null) || avviso.getModifiedDate().after(ultimaData)) { - ultimaData = avviso.getModifiedDate(); - } - if (!avviso.getAnnullato()) { - String template = templateById.get(avviso.getFileEntryIdTemplate()); - if (avviso.getDtAvviso().after(inizio) && !avviso.getAnnullato() - && (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_NON_INVIATO))) { - avvisiFermi.add(avviso); - if (template == null) - template = templateByKey.get(avviso.getTipoDocumento()); - } else if (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO)) { - avvisiInviati.add(template); - } - } - } - if ((ultimaData != null) && (new Date().getTime() - ultimaData.getTime() > 7200000)) { - for (Avviso avviso : avvisiFermi) { - long templateId = avviso.getFileEntryIdTemplate(); - String template = templateById.get(templateId); - if (Validator.isNull(template) && templateByKey.containsKey(avviso.getTipoDocumento())) { - template = templateByKey.get(avviso.getTipoDocumento()); - templateId = templateIdByKey.get(avviso.getTipoDocumento()); - } - if (!avvisiInviati.contains(template)) { - switch (avviso.getTipoDocumento()) { - case "MA": - case StatoPraticaConstants.NON_CONFORME: - case StatoPraticaConstants.INTEGRAZIONE: - break; - case StatoPraticaConstants.AUTORIZZATA: - case StatoPraticaConstants.CONFORME: - case StatoPraticaConstants.SOTTOPOSTA_A_PARERE: - case StatoPraticaConstants.VIDIMATA: - if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { - esito.addAll(addStoricoAvvisi(intPratica, avvisi)); - esitoLog(esito, "Invio " + template + " (" + controlli.size() + " controlli)"); - try { - if (Validator.isNull(controllo)) { - controllo = aggiungiControlloPratica(intPratica); - esitoLog(esito, intPratica.getNumeroProgetto() - + " aggiunto ControlloPratica " + controllo.getControlloPraticaId()); - } - AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK, - avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO, - avviso.getTipoDocumento(), templateId, controllo.getDettPraticaId(), - DettPratica.class.getName(), controllo.getControlloPraticaId(), - serviceContext); - } catch (Exception e) { - esitoLog(esito, "Errore durante l'invio: " + e.getMessage()); - } - } - break; - default: - if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { - esito.addAll(addStoricoAvvisi(intPratica, avvisi)); - esitoLog(esito, "Procederei all'invio di avviso " + template); - } - break; - } - } - } - } - } - return esito; - } - - private static ControlloPratica aggiungiControlloPratica(IntPratica intPratica) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaLocalServiceUtil - .getLastCompletedByIntPratica(intPratica.getIntPraticaId()); - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(dettPratica.getCompanyId()); - serviceContext.setScopeGroupId(dettPratica.getGroupId()); - serviceContext.setUserId(dettPratica.getUserId()); - _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); - ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(intPratica.getGroupId(), - intPratica.getUserId(), intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, - serviceContext); - return controllo; - } - - private static List getAvvisiPratica(long intPraticaId) { - - List avvisi = null; - try { - avvisi = AvvisoLocalServiceUtil.findByIntPratica( - intPraticaId, - QueryUtil.ALL_POS, - QueryUtil.ALL_POS, - OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", "dtAvviso", - true)); - } catch (SystemException e) { - _log.error("Errore recupero avvisi" + e.getMessage()); - avvisi = new ArrayList(); - } - return avvisi; - } - - private static List addStoricoAvvisi(IntPratica intPratica, List avvisi) { - - List esito = new ArrayList(); - String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-" + intPratica.getTipoPratica()); - esitoLog(esito, - "* intPraticaId=" + intPratica.getIntPraticaId() + ", numeroProgetto=" + intPratica.getNumeroProgetto() - + ", procedura=" + intPratica.getTipoProcedura() + ", stato=" + intPratica.getStatoPratica() - + ", tipo=" + tipoPratica + ", data=" + dfmt.format(intPratica.getCreateDate()) - + ", modificata=" + dfmt.format(intPratica.getModifiedDate())); - for (Avviso avviso : avvisi) { - String template = templateById.get(avviso.getFileEntryIdTemplate()); - if (template == null) - template = templateByKey.get(avviso.getTipoDocumento()); - ; - boolean inviato = avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO); - esitoLog(esito, dfmt.format(avviso.getDtAvviso()) + " Avviso " + template + StringPool.SPACE - + (inviato ? "inviato " + dfmt.format(avviso.getDtInvio()) : "non inviato") + " - tipo avviso " - + avviso.getTipoAvviso() + " - tipo documento " + avviso.getTipoDocumento()); - } - return esito; - } +// private static List riparaDocumenti(long companyId) throws SystemException, PortalException { +// +// List esito = new ArrayList(); +// esitoLog(esito, "Riparazione generazione documenti"); +// initTemplate(companyId); +// List intPratiche = null; +// int index = 0; +// do { +// try { +// intPratiche = IntPraticaLocalServiceUtil.getIntPraticas(index, index + SLICE); +// } catch (SystemException e) { +// esitoLog(esito, "Errore caricamento intPratiche: " + e.getMessage()); +// } +// for (IntPratica intPratica : intPratiche) { +// esito.addAll(verificaAvvisi(intPratica)); +// } +// index += SLICE; +// } while (intPratiche.size() > 0); +// return esito; +// } + +// private static void initTemplate(long companyId) throws SystemException, PortalException { +// +// templateById = new LinkedHashMap<>(); +// templateByKey = new LinkedHashMap<>(); +// templateIdByKey = new LinkedHashMap<>(); +// Map elenco = AvvisoUtil.getAllTipoDocumentoFileTemplateProps(); +// for (Entry template : elenco.entrySet()) { +// long fileEntryId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, template.getValue()); +// if (fileEntryId != 0) { +// FileEntry fileEntry = DLAppServiceUtil.getFileEntry(fileEntryId); +// templateById.put(fileEntryId, fileEntry.getTitle()); +// templateByKey.put(template.getKey(), fileEntry.getTitle()); +// templateIdByKey.put(template.getKey(), fileEntryId); +// } +// } +// } + +// private static List verificaAvvisi(IntPratica intPratica) { +// +// List esito = new ArrayList(); +// if (Validator.isNotNull(intPratica.getStatoPratica()) +// && !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { +// long intPraticaId = intPratica.getIntPraticaId(); +// List controlli = null; +// try { +// controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId); +// } catch (SystemException e) { +// controlli = new ArrayList(); +// } +// ControlloPratica controllo = null; +// ServiceContext serviceContext = null; +// if (controlli.size() > 0) { +// controllo = controlli.get(controlli.size() - 1); +// serviceContext = new ServiceContext(); +// serviceContext.setCompanyId(controllo.getCompanyId()); +// serviceContext.setScopeGroupId(controllo.getGroupId()); +// serviceContext.setUserId(controllo.getUserId()); +// } else { +// serviceContext = new ServiceContext(); +// serviceContext.setCompanyId(intPratica.getCompanyId()); +// try { +// serviceContext.setScopeGroupId(TerritorioLocalServiceUtil.getTerritorio( +// intPratica.getTerritorioId()).getGroupId()); +// } catch (PortalException | SystemException e) {} +// serviceContext.setUserId(intPratica.getUserId()); +// } +// List avvisi = getAvvisiPratica(intPraticaId); +// List avvisiFermi = new ArrayList<>(); +// List avvisiInviati = new ArrayList<>(); +// Date ultimaData = null; +// for (Avviso avviso : avvisi) { +// if ((ultimaData == null) || avviso.getModifiedDate().after(ultimaData)) { +// ultimaData = avviso.getModifiedDate(); +// } +// if (!avviso.getAnnullato()) { +// String template = templateById.get(avviso.getFileEntryIdTemplate()); +// if (avviso.getDtAvviso().after(inizio) && !avviso.getAnnullato() +// && (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_NON_INVIATO))) { +// avvisiFermi.add(avviso); +// if (template == null) +// template = templateByKey.get(avviso.getTipoDocumento()); +// } else if (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO)) { +// avvisiInviati.add(template); +// } +// } +// } +// if ((ultimaData != null) && (new Date().getTime() - ultimaData.getTime() > 7200000)) { +// for (Avviso avviso : avvisiFermi) { +// long templateId = avviso.getFileEntryIdTemplate(); +// String template = templateById.get(templateId); +// if (Validator.isNull(template) && templateByKey.containsKey(avviso.getTipoDocumento())) { +// template = templateByKey.get(avviso.getTipoDocumento()); +// templateId = templateIdByKey.get(avviso.getTipoDocumento()); +// } +// if (!avvisiInviati.contains(template)) { +// switch (avviso.getTipoDocumento()) { +// case "MA": +// case StatoPraticaConstants.NON_CONFORME: +// case StatoPraticaConstants.INTEGRAZIONE: +// break; +// case StatoPraticaConstants.AUTORIZZATA: +// case StatoPraticaConstants.CONFORME: +// case StatoPraticaConstants.SOTTOPOSTA_A_PARERE: +// case StatoPraticaConstants.VIDIMATA: +// if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { +// esito.addAll(addStoricoAvvisi(intPratica, avvisi)); +// esitoLog(esito, "Invio " + template + " (" + controlli.size() + " controlli)"); +// try { +// if (Validator.isNull(controllo)) { +// controllo = aggiungiControlloPratica(intPratica); +// esitoLog(esito, intPratica.getNumeroProgetto() +// + " aggiunto ControlloPratica " + controllo.getControlloPraticaId()); +// } +// AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK, +// avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO, +// avviso.getTipoDocumento(), templateId, controllo.getDettPraticaId(), +// DettPratica.class.getName(), controllo.getControlloPraticaId(), +// serviceContext); +// } catch (Exception e) { +// esitoLog(esito, "Errore durante l'invio: " + e.getMessage()); +// } +// } +// break; +// default: +// if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { +// esito.addAll(addStoricoAvvisi(intPratica, avvisi)); +// esitoLog(esito, "Procederei all'invio di avviso " + template); +// } +// break; +// } +// } +// } +// } +// } +// return esito; +// } + +// private static ControlloPratica aggiungiControlloPratica(IntPratica intPratica) throws PortalException, +// SystemException { +// +// DettPratica dettPratica = DettPraticaLocalServiceUtil +// .getLastCompletedByIntPratica(intPratica.getIntPraticaId()); +// ServiceContext serviceContext = new ServiceContext(); +// serviceContext.setCompanyId(dettPratica.getCompanyId()); +// serviceContext.setScopeGroupId(dettPratica.getGroupId()); +// serviceContext.setUserId(dettPratica.getUserId()); +// _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); +// ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(intPratica.getGroupId(), +// intPratica.getUserId(), intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, +// serviceContext); +// return controllo; +// } + +// private static List getAvvisiPratica(long intPraticaId) { +// +// List avvisi = null; +// try { +// avvisi = AvvisoLocalServiceUtil.findByIntPratica( +// intPraticaId, +// QueryUtil.ALL_POS, +// QueryUtil.ALL_POS, +// OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", "dtAvviso", +// true)); +// } catch (SystemException e) { +// _log.error("Errore recupero avvisi" + e.getMessage()); +// avvisi = new ArrayList(); +// } +// return avvisi; +// } +// +// private static List addStoricoAvvisi(IntPratica intPratica, List avvisi) { +// +// List esito = new ArrayList(); +// String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-" + intPratica.getTipoPratica()); +// esitoLog(esito, +// "* intPraticaId=" + intPratica.getIntPraticaId() + ", numeroProgetto=" + intPratica.getNumeroProgetto() +// + ", procedura=" + intPratica.getTipoProcedura() + ", stato=" + intPratica.getStatoPratica() +// + ", tipo=" + tipoPratica + ", data=" + dfmt.format(intPratica.getCreateDate()) +// + ", modificata=" + dfmt.format(intPratica.getModifiedDate())); +// for (Avviso avviso : avvisi) { +// String template = templateById.get(avviso.getFileEntryIdTemplate()); +// if (template == null) +// template = templateByKey.get(avviso.getTipoDocumento()); +// ; +// boolean inviato = avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO); +// esitoLog(esito, dfmt.format(avviso.getDtAvviso()) + " Avviso " + template + StringPool.SPACE +// + (inviato ? "inviato " + dfmt.format(avviso.getDtInvio()) : "non inviato") + " - tipo avviso " +// + avviso.getTipoAvviso() + " - tipo documento " + avviso.getTipoDocumento()); +// } +// return esito; +// } public static List trasformaFLC(long companyId, String numeroPratica, String tipoDaRiaprire) throws SystemException, PortalException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java index 0e185e8e..4fa38156 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java @@ -41,7 +41,7 @@ public class ZoneSismicheUtil { public List aggiornaComuni(long companyId) throws PortalException, SystemException { List ret = new ArrayList<>(); - ret.add(aggiungiComune(companyId, "Misiliscemi", "081", "025", "081025", "M432", false, "", "", serviceContext)); + ret.add(aggiungiComune(companyId, "Misiliscemi", "081", "025", "081025", "M432", false, "", "", false, serviceContext)); ret.add(impostaZona(companyId, "MENFI", 1, "0,1659")); ret.add(impostaZona(companyId, "MONTEVAGO", 1, "0,1629")); @@ -141,12 +141,12 @@ public class ZoneSismicheUtil { private String aggiungiComune(long companyId, String denominazione, String codiceProvincia, String codiceComune, String codiceIstat, String codiceBelfiore, boolean provincia, String mailSuap, String mailSue, - ServiceContext serviceContext) throws PortalException, SystemException { + boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException { Comune comune = ComuneLocalServiceUtil.fetchByC_CB(companyId, codiceBelfiore); if (Validator.isNull(comune)) { ComuneLocalServiceUtil.addComune(serviceContext.getUserId(), codiceProvincia, codiceComune, codiceIstat, - codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext); + codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext); return "Aggiunto il comune \"" + denominazione + "\""; } return "Comune \"" + denominazione + "\" già presente"; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java index 8a0ce843..29f7c130 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java @@ -162,6 +162,10 @@ public class IntPraticaIndexer extends BaseIndexer { if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_B1)) tipoProcedura = Constants.PROCEDURA_B; document.addKeyword(PortosIndexField.TIPO_PROCEDURA, tipoProcedura); + if(intPratica.isPraticaOspedaliera()){ + _log.debug("Adding praticaOspedaliera Index on intpratica " + intPratica.getIntPraticaId()); + document.addKeyword("praticaospedaliera", intPratica.isPraticaOspedaliera()); + } } // Gestione pratica aperta/chiusa fine lavori if (intPraticaFromDB.getCollaudoTotale()) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java index 23c25713..39f2db01 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java @@ -37,7 +37,7 @@ import java.util.Date; public class ComuneCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(37); sb.append("{uuid="); sb.append(uuid); @@ -73,6 +73,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable { sb.append(mailSuap); sb.append(", mailSue="); sb.append(mailSue); + sb.append(", praticaOspedali="); + sb.append(praticaOspedali); sb.append("}"); return sb.toString(); @@ -167,6 +169,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable { comuneImpl.setMailSue(mailSue); } + comuneImpl.setPraticaOspedali(praticaOspedali); + comuneImpl.resetOriginalValues(); return comuneImpl; @@ -191,6 +195,7 @@ public class ComuneCacheModel implements CacheModel, Externalizable { disabilitato = objectInput.readBoolean(); mailSuap = objectInput.readUTF(); mailSue = objectInput.readUTF(); + praticaOspedali = objectInput.readBoolean(); } @Override @@ -269,6 +274,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable { else { objectOutput.writeUTF(mailSue); } + + objectOutput.writeBoolean(praticaOspedali); } public String uuid; @@ -288,4 +295,5 @@ public class ComuneCacheModel implements CacheModel, Externalizable { public boolean disabilitato; public String mailSuap; public String mailSue; + public boolean praticaOspedali; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java index c534a868..0b09d59d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java @@ -83,9 +83,10 @@ public class ComuneModelImpl extends BaseModelImpl { "stato", Types.BOOLEAN }, { "disabilitato", Types.BOOLEAN }, { "mailSuap", Types.VARCHAR }, - { "mailSue", Types.VARCHAR } + { "mailSue", Types.VARCHAR }, + { "praticaOspedali", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null,praticaOspedali BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Comune"; public static final String ORDER_BY_JPQL = " ORDER BY comune.denominazione ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Comune.denominazione ASC"; @@ -139,6 +140,7 @@ public class ComuneModelImpl extends BaseModelImpl model.setDisabilitato(soapModel.getDisabilitato()); model.setMailSuap(soapModel.getMailSuap()); model.setMailSue(soapModel.getMailSue()); + model.setPraticaOspedali(soapModel.getPraticaOspedali()); return model; } @@ -220,6 +222,7 @@ public class ComuneModelImpl extends BaseModelImpl attributes.put("disabilitato", getDisabilitato()); attributes.put("mailSuap", getMailSuap()); attributes.put("mailSue", getMailSue()); + attributes.put("praticaOspedali", getPraticaOspedali()); return attributes; } @@ -327,6 +330,12 @@ public class ComuneModelImpl extends BaseModelImpl if (mailSue != null) { setMailSue(mailSue); } + + Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali"); + + if (praticaOspedali != null) { + setPraticaOspedali(praticaOspedali); + } } @JSON @@ -658,6 +667,22 @@ public class ComuneModelImpl extends BaseModelImpl _mailSue = mailSue; } + @JSON + @Override + public boolean getPraticaOspedali() { + return _praticaOspedali; + } + + @Override + public boolean isPraticaOspedali() { + return _praticaOspedali; + } + + @Override + public void setPraticaOspedali(boolean praticaOspedali) { + _praticaOspedali = praticaOspedali; + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -712,6 +737,7 @@ public class ComuneModelImpl extends BaseModelImpl comuneImpl.setDisabilitato(getDisabilitato()); comuneImpl.setMailSuap(getMailSuap()); comuneImpl.setMailSue(getMailSue()); + comuneImpl.setPraticaOspedali(getPraticaOspedali()); comuneImpl.resetOriginalValues(); @@ -889,12 +915,14 @@ public class ComuneModelImpl extends BaseModelImpl comuneCacheModel.mailSue = null; } + comuneCacheModel.praticaOspedali = getPraticaOspedali(); + return comuneCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(37); sb.append("{uuid="); sb.append(getUuid()); @@ -930,6 +958,8 @@ public class ComuneModelImpl extends BaseModelImpl sb.append(getMailSuap()); sb.append(", mailSue="); sb.append(getMailSue()); + sb.append(", praticaOspedali="); + sb.append(getPraticaOspedali()); sb.append("}"); return sb.toString(); @@ -937,7 +967,7 @@ public class ComuneModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(58); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Comune"); @@ -1011,6 +1041,10 @@ public class ComuneModelImpl extends BaseModelImpl "mailSue"); + sb.append( + "praticaOspedali"); sb.append(""); @@ -1046,6 +1080,7 @@ public class ComuneModelImpl extends BaseModelImpl private boolean _disabilitato; private String _mailSuap; private String _mailSue; + private boolean _praticaOspedali; private long _columnBitmask; private Comune _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java index 462ba0c9..7cbb4ac3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java @@ -38,7 +38,7 @@ public class DettPraticaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(477); + StringBundler sb = new StringBundler(479); sb.append("{uuid="); sb.append(uuid); @@ -174,6 +174,8 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(metratura); sb.append(", lavoriPubblici="); sb.append(lavoriPubblici); + sb.append(", dataInserimentoInizioLavoriOpera="); + sb.append(dataInserimentoInizioLavoriOpera); sb.append(", pagamentoIdOneri="); sb.append(pagamentoIdOneri); sb.append(", pagamentoIdBolli="); @@ -866,6 +868,15 @@ public class DettPraticaCacheModel implements CacheModel, } dettPraticaImpl.setLavoriPubblici(lavoriPubblici); + + if (dataInserimentoInizioLavoriOpera == Long.MIN_VALUE) { + dettPraticaImpl.setDataInserimentoInizioLavoriOpera(null); + } + else { + dettPraticaImpl.setDataInserimentoInizioLavoriOpera(new Date( + dataInserimentoInizioLavoriOpera)); + } + dettPraticaImpl.setPagamentoIdOneri(pagamentoIdOneri); dettPraticaImpl.setPagamentoIdBolli(pagamentoIdBolli); dettPraticaImpl.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); @@ -1514,6 +1525,7 @@ public class DettPraticaCacheModel implements CacheModel, dataFineEsecuzioneOpera = objectInput.readLong(); metratura = objectInput.readUTF(); lavoriPubblici = objectInput.readBoolean(); + dataInserimentoInizioLavoriOpera = objectInput.readLong(); pagamentoIdOneri = objectInput.readLong(); pagamentoIdBolli = objectInput.readLong(); lavoriPubbliciPercentuale = objectInput.readInt(); @@ -1975,6 +1987,7 @@ public class DettPraticaCacheModel implements CacheModel, } objectOutput.writeBoolean(lavoriPubblici); + objectOutput.writeLong(dataInserimentoInizioLavoriOpera); objectOutput.writeLong(pagamentoIdOneri); objectOutput.writeLong(pagamentoIdBolli); objectOutput.writeInt(lavoriPubbliciPercentuale); @@ -2611,6 +2624,7 @@ public class DettPraticaCacheModel implements CacheModel, public long dataFineEsecuzioneOpera; public String metratura; public boolean lavoriPubblici; + public long dataInserimentoInizioLavoriOpera; public long pagamentoIdOneri; public long pagamentoIdBolli; public int lavoriPubbliciPercentuale; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java index 7eb1b988..5a67d9e6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java @@ -724,7 +724,7 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { List titolareDigitali = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( getIntPraticaId(), titolaredigitaleUser.getScreenName(), 0); for (Soggetto titolareDigitale : titolareDigitali) { - soggettiAsseveranti.add(titolareDigitale); + soggettiAsseveranti.add(titolareDigitale); } } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { String[] tipoSoggetti = new String[] { TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DIRETTORE_LAVORI, @@ -767,6 +767,7 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { || TipoSoggettoUtil.DITTA.equalsIgnoreCase(tipologia) || TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipologia) || TipoSoggettoUtil.PROGETTISTA.equalsIgnoreCase(tipologia) + || TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipologia) || (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipologia) && !collaudatoreInserito)) { soggettiAsseveranti.add(soggetto); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java index dbe03c1f..18647ecc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java @@ -135,6 +135,7 @@ public class DettPraticaModelImpl extends BaseModelImpl { "dataFineEsecuzioneOpera", Types.TIMESTAMP }, { "metratura", Types.VARCHAR }, { "lavoriPubblici", Types.BOOLEAN }, + { "dataInserimentoInizioLavoriOpera", Types.TIMESTAMP }, { "pagamentoIdOneri", Types.BIGINT }, { "pagamentoIdBolli", Types.BIGINT }, { "lavoriPubbliciPercentuale", Types.INTEGER }, @@ -307,7 +308,7 @@ public class DettPraticaModelImpl extends BaseModelImpl { "intervFinPubDesc", Types.VARCHAR }, { "suap", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_DettPratica (uuid_ VARCHAR(75) null,dettPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,integrazione LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,tipoIntegrazione VARCHAR(10) null,completa BOOLEAN,gestita BOOLEAN,importoSpeseIstruttoria VARCHAR(75) null,codicePagamentoOneri VARCHAR(75) null,causalePagamentoOneri VARCHAR(75) null,mezzoPagamentoOneri VARCHAR(75) null,importoBolli VARCHAR(75) null,codicePagamentoBolli VARCHAR(75) null,causalePagamentoBolli VARCHAR(75) null,mezzoPagamentoBolli VARCHAR(75) null,dataEffettuazione DATE null,version INTEGER,versionata BOOLEAN,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,statusTask INTEGER,workflowForzato BOOLEAN,soggettoSostituitoId LONG,dtInvioSignal DATE null,destinazione VARCHAR(10) null,ag VARCHAR(10) null,descLongIntervento STRING null,via VARCHAR(75) null,localita VARCHAR(75) null,estremiCatastali STRING null,estremiPratCom STRING null,contestoPaesaggistico STRING null,livelloDiTutela STRING null,vincoli STRING null,variataDa LONG,varianteNumero LONG,varianteSostanziale BOOLEAN,operaConforme BOOLEAN,collaudoStatico BOOLEAN,codiceFiscaleDelegato VARCHAR(16) null,codiceRuoloDelegato VARCHAR(75) null,codiceFiscaleDelegatoCommittente VARCHAR(75) null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,codiceFiscalePrincipaleCommittente VARCHAR(75) null,codiceFiscalePrincipaleCollaudatore VARCHAR(75) null,codiceFiscalePrincipaleProgettista VARCHAR(75) null,codiceFiscalePrincipaleDirettoreLavori VARCHAR(75) null,codiceFiscalePrincipaleDitta VARCHAR(75) null,codiceFiscalePrincipaleGeologo VARCHAR(75) null,lavoriInEconomiaCommittente BOOLEAN,inizioLavoriContestualeOpera BOOLEAN,dataInizioLavoriOpera DATE null,dataInizioEsecuzioneOpera DATE null,dataFineEsecuzioneOpera DATE null,metratura VARCHAR(75) null,lavoriPubblici BOOLEAN,pagamentoIdOneri LONG,pagamentoIdBolli LONG,lavoriPubbliciPercentuale INTEGER,numeroCivico VARCHAR(75) null,dcParticelle VARCHAR(75) null,dcFoglio VARCHAR(75) null,dcAllegato VARCHAR(75) null,dePiani VARCHAR(75) null,deAltezza VARCHAR(75) null,deInterrati VARCHAR(75) null,deSuperficie VARCHAR(75) null,deCostruzione VARCHAR(75) null,deRistrutturazione VARCHAR(75) null,deUso VARCHAR(75) null,dePubblica VARCHAR(75) null,dePrivata VARCHAR(75) null,deUtilizzazione VARCHAR(75) null,dePosizioneEdificio VARCHAR(75) null,deInfStradalePonte BOOLEAN,deInfStradaleStrada BOOLEAN,deInfStradaleAltro BOOLEAN,deInfIdraulicaLong BOOLEAN,deInfIdraulicaTrasv BOOLEAN,deInfIdraulicaAltro BOOLEAN,deInfOperaAccStradale BOOLEAN,deInfOperaAccIdraulica BOOLEAN,deInfOperaAccAltro BOOLEAN,deInfAltraInfrastruttura BOOLEAN,deInfAltro BOOLEAN,deInfAltroDesc STRING null,dccFondazioni VARCHAR(75) null,dccStruttureEleMuraturePietrame BOOLEAN,dccStruttureEleMuratureLaterizio BOOLEAN,dccStruttureEleMuratureMisto BOOLEAN,dccStruttureEleMuratureStoriche BOOLEAN,dccStruttureEleAcciaio VARCHAR(75) null,dccStruttureEleCA VARCHAR(75) null,dccStruttureEleLegno VARCHAR(75) null,dccStruttureEleMistoCA BOOLEAN,dccStruttureEleMistoAcciaio BOOLEAN,dccStruttureEleMistoMuratura BOOLEAN,dccStruttureEleMistoLegno BOOLEAN,dccStruttureElePrefabbricato BOOLEAN,dccStruttureEleAltro BOOLEAN,dccStruttureEleAltroDescrizione STRING null,dccOrizzontamentiCAAcciaio BOOLEAN,dccOrizzontamentiLegno BOOLEAN,dccOrizzontamentiLegnoCA BOOLEAN,dccOrizzontamentiLamieraGrecata BOOLEAN,dccOrizzontamentiVolte BOOLEAN,dccOrizzontamentiAltro BOOLEAN,dccOrizzontamentiAltroDescrizione STRING null,dccCopertura VARCHAR(75) null,dccCoperturaCAAcciaio BOOLEAN,dccCoperturaLegno BOOLEAN,dccCoperturaLegnoCA BOOLEAN,dccCoperturaLamieraGrecata BOOLEAN,dccCoperturaPannelli BOOLEAN,dccCoperturaPVCTelonati BOOLEAN,dccCoperturaLeggere BOOLEAN,dccCoperturaAltro BOOLEAN,dccCoperturaAltroDesrizione STRING null,dccElemNonStrutLaterizio BOOLEAN,dccElemNonStrutCartongesso BOOLEAN,dccElemNonStrutCalcestruzzo BOOLEAN,dccElemNonStrutLegno BOOLEAN,dccElemNonStrutAltro BOOLEAN,dccElemNonStrutAltroDescrizione STRING null,dccOpereDiRinforzoInsCatene BOOLEAN,dccOpereDiRinforzoInsCordoli BOOLEAN,dccOpereDiRinforzoIniArmate BOOLEAN,dccOpereDiRinforzoPlaccaggi BOOLEAN,dccOpereDiRinforzoIrrSolai BOOLEAN,dccOpereDiRinforzoRinforziFRP BOOLEAN,dccOpereDiRinforzoTelaiECerchiature BOOLEAN,dccOpereDiRinforzoInsRompitratta BOOLEAN,dccOpereDiRinforzoAltro BOOLEAN,dccOpereDiRinforzoAltroDescrizione STRING null,geoClasseIndagine VARCHAR(75) null,geoCategoriaSottosuolo VARCHAR(75) null,geoCategoriaTopografica VARCHAR(75) null,geoConsolidamento VARCHAR(75) null,geoPericolositaGeologica VARCHAR(75) null,geoPericolositaSismica VARCHAR(75) null,geoPericolositaIdraulica VARCHAR(75) null,geoPericolositaGeomorfica VARCHAR(75) null,geoRischioGeomorfologicoPai VARCHAR(75) null,geoPericolositaIdraulicaPai VARCHAR(75) null,geoRischioIdraulicoPai VARCHAR(75) null,geoFattibilitaGeologica VARCHAR(75) null,geoFattibilitaSismica VARCHAR(75) null,geoFattibilitaIdraulica VARCHAR(75) null,geoOperaRilevante VARCHAR(75) null,geoOpereDiSostegno VARCHAR(75) null,geoOpereInSotterranea VARCHAR(75) null,geoPresenzaPrescrizioni VARCHAR(75) null,geoNotePrescrizioni STRING null,geoNoteIndagini STRING null,geoEvidenzeGeomorfiche VARCHAR(75) null,geoEvidenzeGeologiche VARCHAR(75) null,geoDtRelazione DATE null,pagNuoveCostruzioni BOOLEAN,pagAdeguamentoSismico INTEGER,pagMiglioramentoSismico INTEGER,pagMiglioramentoSismicoSicilia BOOLEAN,pagRiparazioneInterventoLocale BOOLEAN,pagOperaNonQuantificabile BOOLEAN,pagNuovaCostruzione INTEGER,pagVarianti BOOLEAN,pagAltro INTEGER,pagCalcolatoAdeguamentoSismico VARCHAR(75) null,pagCalcolatoMiglioramentoSismico VARCHAR(75) null,pagCalcolatoRiparazioneInterventoLocale VARCHAR(75) null,pagCalcolatoOperaNonQuantificabile VARCHAR(75) null,pagEffettivoAdeguamentoSismico VARCHAR(75) null,pagEffettivoMiglioramentoSismico VARCHAR(75) null,pagEffettivoRiparazioneInterventoLocale VARCHAR(75) null,pagEffettivoOperaNonQuantificabile VARCHAR(75) null,pagNoteUtente TEXT null,note STRING null,noteUfficio STRING null,localizzazioneGeografica VARCHAR(75) null,tcNuovaCostruzione BOOLEAN,tcNuovaCostruzioneComplessa BOOLEAN,tcAdeguamentoSismico BOOLEAN,tcMiglioramentoSismico BOOLEAN,tcRiparazioneInterventoLocale BOOLEAN,tcInCA BOOLEAN,tcInOpera BOOLEAN,tcPrefabbricato BOOLEAN,tcInAcciaio BOOLEAN,tcMista BOOLEAN,tcInMuratura BOOLEAN,tcInMuraturaOrdinaria BOOLEAN,tcInMuraturaArmata BOOLEAN,tcInMuraturaMista BOOLEAN,tcInLegno BOOLEAN,tcAltro BOOLEAN,tcAltroDescrizione STRING null,tcConDispositivi BOOLEAN,normLavoriInProprio BOOLEAN,normEsenteBollo BOOLEAN,normEsenteSpese BOOLEAN,normDpr01Dep BOOLEAN,normDpr02Dep BOOLEAN,normDpr01Aut BOOLEAN,normDpr02Aut BOOLEAN,normDpr03 BOOLEAN,normDpr04 BOOLEAN,normDpr05 BOOLEAN,normDm01 BOOLEAN,normDm02 BOOLEAN,normDm03 BOOLEAN,normDm2018 BOOLEAN,normDm04 BOOLEAN,normDm05 BOOLEAN,normDprg01 BOOLEAN,normDprg02 BOOLEAN,normAnr BOOLEAN,normOrd01 BOOLEAN,normCI01 BOOLEAN,normLTC01 BOOLEAN,normArt3com3 BOOLEAN,normArt3com4 BOOLEAN,dpdc BOOLEAN,normSismaBonus BOOLEAN,clRischioPreInt VARCHAR(75) null,clRischioPostInt VARCHAR(75) null,intervFinPub BOOLEAN,intervFinPubDesc STRING null,suap BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_DettPratica (uuid_ VARCHAR(75) null,dettPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,integrazione LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,tipoIntegrazione VARCHAR(10) null,completa BOOLEAN,gestita BOOLEAN,importoSpeseIstruttoria VARCHAR(75) null,codicePagamentoOneri VARCHAR(75) null,causalePagamentoOneri VARCHAR(75) null,mezzoPagamentoOneri VARCHAR(75) null,importoBolli VARCHAR(75) null,codicePagamentoBolli VARCHAR(75) null,causalePagamentoBolli VARCHAR(75) null,mezzoPagamentoBolli VARCHAR(75) null,dataEffettuazione DATE null,version INTEGER,versionata BOOLEAN,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,statusTask INTEGER,workflowForzato BOOLEAN,soggettoSostituitoId LONG,dtInvioSignal DATE null,destinazione VARCHAR(10) null,ag VARCHAR(10) null,descLongIntervento STRING null,via VARCHAR(75) null,localita VARCHAR(75) null,estremiCatastali STRING null,estremiPratCom STRING null,contestoPaesaggistico STRING null,livelloDiTutela STRING null,vincoli STRING null,variataDa LONG,varianteNumero LONG,varianteSostanziale BOOLEAN,operaConforme BOOLEAN,collaudoStatico BOOLEAN,codiceFiscaleDelegato VARCHAR(16) null,codiceRuoloDelegato VARCHAR(75) null,codiceFiscaleDelegatoCommittente VARCHAR(75) null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,codiceFiscalePrincipaleCommittente VARCHAR(75) null,codiceFiscalePrincipaleCollaudatore VARCHAR(75) null,codiceFiscalePrincipaleProgettista VARCHAR(75) null,codiceFiscalePrincipaleDirettoreLavori VARCHAR(75) null,codiceFiscalePrincipaleDitta VARCHAR(75) null,codiceFiscalePrincipaleGeologo VARCHAR(75) null,lavoriInEconomiaCommittente BOOLEAN,inizioLavoriContestualeOpera BOOLEAN,dataInizioLavoriOpera DATE null,dataInizioEsecuzioneOpera DATE null,dataFineEsecuzioneOpera DATE null,metratura VARCHAR(75) null,lavoriPubblici BOOLEAN,dataInserimentoInizioLavoriOpera DATE null,pagamentoIdOneri LONG,pagamentoIdBolli LONG,lavoriPubbliciPercentuale INTEGER,numeroCivico VARCHAR(75) null,dcParticelle VARCHAR(75) null,dcFoglio VARCHAR(75) null,dcAllegato VARCHAR(75) null,dePiani VARCHAR(75) null,deAltezza VARCHAR(75) null,deInterrati VARCHAR(75) null,deSuperficie VARCHAR(75) null,deCostruzione VARCHAR(75) null,deRistrutturazione VARCHAR(75) null,deUso VARCHAR(75) null,dePubblica VARCHAR(75) null,dePrivata VARCHAR(75) null,deUtilizzazione VARCHAR(75) null,dePosizioneEdificio VARCHAR(75) null,deInfStradalePonte BOOLEAN,deInfStradaleStrada BOOLEAN,deInfStradaleAltro BOOLEAN,deInfIdraulicaLong BOOLEAN,deInfIdraulicaTrasv BOOLEAN,deInfIdraulicaAltro BOOLEAN,deInfOperaAccStradale BOOLEAN,deInfOperaAccIdraulica BOOLEAN,deInfOperaAccAltro BOOLEAN,deInfAltraInfrastruttura BOOLEAN,deInfAltro BOOLEAN,deInfAltroDesc STRING null,dccFondazioni VARCHAR(75) null,dccStruttureEleMuraturePietrame BOOLEAN,dccStruttureEleMuratureLaterizio BOOLEAN,dccStruttureEleMuratureMisto BOOLEAN,dccStruttureEleMuratureStoriche BOOLEAN,dccStruttureEleAcciaio VARCHAR(75) null,dccStruttureEleCA VARCHAR(75) null,dccStruttureEleLegno VARCHAR(75) null,dccStruttureEleMistoCA BOOLEAN,dccStruttureEleMistoAcciaio BOOLEAN,dccStruttureEleMistoMuratura BOOLEAN,dccStruttureEleMistoLegno BOOLEAN,dccStruttureElePrefabbricato BOOLEAN,dccStruttureEleAltro BOOLEAN,dccStruttureEleAltroDescrizione STRING null,dccOrizzontamentiCAAcciaio BOOLEAN,dccOrizzontamentiLegno BOOLEAN,dccOrizzontamentiLegnoCA BOOLEAN,dccOrizzontamentiLamieraGrecata BOOLEAN,dccOrizzontamentiVolte BOOLEAN,dccOrizzontamentiAltro BOOLEAN,dccOrizzontamentiAltroDescrizione STRING null,dccCopertura VARCHAR(75) null,dccCoperturaCAAcciaio BOOLEAN,dccCoperturaLegno BOOLEAN,dccCoperturaLegnoCA BOOLEAN,dccCoperturaLamieraGrecata BOOLEAN,dccCoperturaPannelli BOOLEAN,dccCoperturaPVCTelonati BOOLEAN,dccCoperturaLeggere BOOLEAN,dccCoperturaAltro BOOLEAN,dccCoperturaAltroDesrizione STRING null,dccElemNonStrutLaterizio BOOLEAN,dccElemNonStrutCartongesso BOOLEAN,dccElemNonStrutCalcestruzzo BOOLEAN,dccElemNonStrutLegno BOOLEAN,dccElemNonStrutAltro BOOLEAN,dccElemNonStrutAltroDescrizione STRING null,dccOpereDiRinforzoInsCatene BOOLEAN,dccOpereDiRinforzoInsCordoli BOOLEAN,dccOpereDiRinforzoIniArmate BOOLEAN,dccOpereDiRinforzoPlaccaggi BOOLEAN,dccOpereDiRinforzoIrrSolai BOOLEAN,dccOpereDiRinforzoRinforziFRP BOOLEAN,dccOpereDiRinforzoTelaiECerchiature BOOLEAN,dccOpereDiRinforzoInsRompitratta BOOLEAN,dccOpereDiRinforzoAltro BOOLEAN,dccOpereDiRinforzoAltroDescrizione STRING null,geoClasseIndagine VARCHAR(75) null,geoCategoriaSottosuolo VARCHAR(75) null,geoCategoriaTopografica VARCHAR(75) null,geoConsolidamento VARCHAR(75) null,geoPericolositaGeologica VARCHAR(75) null,geoPericolositaSismica VARCHAR(75) null,geoPericolositaIdraulica VARCHAR(75) null,geoPericolositaGeomorfica VARCHAR(75) null,geoRischioGeomorfologicoPai VARCHAR(75) null,geoPericolositaIdraulicaPai VARCHAR(75) null,geoRischioIdraulicoPai VARCHAR(75) null,geoFattibilitaGeologica VARCHAR(75) null,geoFattibilitaSismica VARCHAR(75) null,geoFattibilitaIdraulica VARCHAR(75) null,geoOperaRilevante VARCHAR(75) null,geoOpereDiSostegno VARCHAR(75) null,geoOpereInSotterranea VARCHAR(75) null,geoPresenzaPrescrizioni VARCHAR(75) null,geoNotePrescrizioni STRING null,geoNoteIndagini STRING null,geoEvidenzeGeomorfiche VARCHAR(75) null,geoEvidenzeGeologiche VARCHAR(75) null,geoDtRelazione DATE null,pagNuoveCostruzioni BOOLEAN,pagAdeguamentoSismico INTEGER,pagMiglioramentoSismico INTEGER,pagMiglioramentoSismicoSicilia BOOLEAN,pagRiparazioneInterventoLocale BOOLEAN,pagOperaNonQuantificabile BOOLEAN,pagNuovaCostruzione INTEGER,pagVarianti BOOLEAN,pagAltro INTEGER,pagCalcolatoAdeguamentoSismico VARCHAR(75) null,pagCalcolatoMiglioramentoSismico VARCHAR(75) null,pagCalcolatoRiparazioneInterventoLocale VARCHAR(75) null,pagCalcolatoOperaNonQuantificabile VARCHAR(75) null,pagEffettivoAdeguamentoSismico VARCHAR(75) null,pagEffettivoMiglioramentoSismico VARCHAR(75) null,pagEffettivoRiparazioneInterventoLocale VARCHAR(75) null,pagEffettivoOperaNonQuantificabile VARCHAR(75) null,pagNoteUtente TEXT null,note STRING null,noteUfficio STRING null,localizzazioneGeografica VARCHAR(75) null,tcNuovaCostruzione BOOLEAN,tcNuovaCostruzioneComplessa BOOLEAN,tcAdeguamentoSismico BOOLEAN,tcMiglioramentoSismico BOOLEAN,tcRiparazioneInterventoLocale BOOLEAN,tcInCA BOOLEAN,tcInOpera BOOLEAN,tcPrefabbricato BOOLEAN,tcInAcciaio BOOLEAN,tcMista BOOLEAN,tcInMuratura BOOLEAN,tcInMuraturaOrdinaria BOOLEAN,tcInMuraturaArmata BOOLEAN,tcInMuraturaMista BOOLEAN,tcInLegno BOOLEAN,tcAltro BOOLEAN,tcAltroDescrizione STRING null,tcConDispositivi BOOLEAN,normLavoriInProprio BOOLEAN,normEsenteBollo BOOLEAN,normEsenteSpese BOOLEAN,normDpr01Dep BOOLEAN,normDpr02Dep BOOLEAN,normDpr01Aut BOOLEAN,normDpr02Aut BOOLEAN,normDpr03 BOOLEAN,normDpr04 BOOLEAN,normDpr05 BOOLEAN,normDm01 BOOLEAN,normDm02 BOOLEAN,normDm03 BOOLEAN,normDm2018 BOOLEAN,normDm04 BOOLEAN,normDm05 BOOLEAN,normDprg01 BOOLEAN,normDprg02 BOOLEAN,normAnr BOOLEAN,normOrd01 BOOLEAN,normCI01 BOOLEAN,normLTC01 BOOLEAN,normArt3com3 BOOLEAN,normArt3com4 BOOLEAN,dpdc BOOLEAN,normSismaBonus BOOLEAN,clRischioPreInt VARCHAR(75) null,clRischioPostInt VARCHAR(75) null,intervFinPub BOOLEAN,intervFinPubDesc STRING null,suap BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_DettPratica"; public static final String ORDER_BY_JPQL = " ORDER BY dettPratica.dettPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_DettPratica.dettPraticaId ASC"; @@ -412,6 +413,7 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setDataFineEsecuzioneOpera(soapModel.getDataFineEsecuzioneOpera()); model.setMetratura(soapModel.getMetratura()); model.setLavoriPubblici(soapModel.getLavoriPubblici()); + model.setDataInserimentoInizioLavoriOpera(soapModel.getDataInserimentoInizioLavoriOpera()); model.setPagamentoIdOneri(soapModel.getPagamentoIdOneri()); model.setPagamentoIdBolli(soapModel.getPagamentoIdBolli()); model.setLavoriPubbliciPercentuale(soapModel.getLavoriPubbliciPercentuale()); @@ -726,6 +728,8 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); + attributes.put("dataInserimentoInizioLavoriOpera", + getDataInserimentoInizioLavoriOpera()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", @@ -1373,6 +1377,13 @@ public class DettPraticaModelImpl extends BaseModelImpl setLavoriPubblici(lavoriPubblici); } + Date dataInserimentoInizioLavoriOpera = (Date)attributes.get( + "dataInserimentoInizioLavoriOpera"); + + if (dataInserimentoInizioLavoriOpera != null) { + setDataInserimentoInizioLavoriOpera(dataInserimentoInizioLavoriOpera); + } + Long pagamentoIdOneri = (Long)attributes.get("pagamentoIdOneri"); if (pagamentoIdOneri != null) { @@ -3566,6 +3577,18 @@ public class DettPraticaModelImpl extends BaseModelImpl _lavoriPubblici = lavoriPubblici; } + @JSON + @Override + public Date getDataInserimentoInizioLavoriOpera() { + return _dataInserimentoInizioLavoriOpera; + } + + @Override + public void setDataInserimentoInizioLavoriOpera( + Date dataInserimentoInizioLavoriOpera) { + _dataInserimentoInizioLavoriOpera = dataInserimentoInizioLavoriOpera; + } + @JSON @Override public long getPagamentoIdOneri() { @@ -6493,6 +6516,7 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setDataFineEsecuzioneOpera(getDataFineEsecuzioneOpera()); dettPraticaImpl.setMetratura(getMetratura()); dettPraticaImpl.setLavoriPubblici(getLavoriPubblici()); + dettPraticaImpl.setDataInserimentoInizioLavoriOpera(getDataInserimentoInizioLavoriOpera()); dettPraticaImpl.setPagamentoIdOneri(getPagamentoIdOneri()); dettPraticaImpl.setPagamentoIdBolli(getPagamentoIdBolli()); dettPraticaImpl.setLavoriPubbliciPercentuale(getLavoriPubbliciPercentuale()); @@ -7171,6 +7195,15 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.lavoriPubblici = getLavoriPubblici(); + Date dataInserimentoInizioLavoriOpera = getDataInserimentoInizioLavoriOpera(); + + if (dataInserimentoInizioLavoriOpera != null) { + dettPraticaCacheModel.dataInserimentoInizioLavoriOpera = dataInserimentoInizioLavoriOpera.getTime(); + } + else { + dettPraticaCacheModel.dataInserimentoInizioLavoriOpera = Long.MIN_VALUE; + } + dettPraticaCacheModel.pagamentoIdOneri = getPagamentoIdOneri(); dettPraticaCacheModel.pagamentoIdBolli = getPagamentoIdBolli(); @@ -7943,7 +7976,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(477); + StringBundler sb = new StringBundler(479); sb.append("{uuid="); sb.append(getUuid()); @@ -8079,6 +8112,8 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getMetratura()); sb.append(", lavoriPubblici="); sb.append(getLavoriPubblici()); + sb.append(", dataInserimentoInizioLavoriOpera="); + sb.append(getDataInserimentoInizioLavoriOpera()); sb.append(", pagamentoIdOneri="); sb.append(getPagamentoIdOneri()); sb.append(", pagamentoIdBolli="); @@ -8428,7 +8463,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(718); + StringBundler sb = new StringBundler(721); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -8702,6 +8737,10 @@ public class DettPraticaModelImpl extends BaseModelImpl "lavoriPubblici"); + sb.append( + "dataInserimentoInizioLavoriOpera"); sb.append( "pagamentoIdOneri private Date _dataFineEsecuzioneOpera; private String _metratura; private boolean _lavoriPubblici; + private Date _dataInserimentoInizioLavoriOpera; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java index ab88b92c..cdb4829d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java @@ -38,7 +38,7 @@ public class IntPraticaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(65); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(uuid); @@ -102,6 +102,8 @@ public class IntPraticaCacheModel implements CacheModel, sb.append(collaudoTotale); sb.append(", controlloObbligatorio="); sb.append(controlloObbligatorio); + sb.append(", praticaOspedaliera="); + sb.append(praticaOspedaliera); sb.append(", inLavorazioneSue="); sb.append(inLavorazioneSue); sb.append("}"); @@ -241,6 +243,7 @@ public class IntPraticaCacheModel implements CacheModel, intPraticaImpl.setCollaudoParziale(collaudoParziale); intPraticaImpl.setCollaudoTotale(collaudoTotale); intPraticaImpl.setControlloObbligatorio(controlloObbligatorio); + intPraticaImpl.setPraticaOspedaliera(praticaOspedaliera); intPraticaImpl.setInLavorazioneSue(inLavorazioneSue); intPraticaImpl.resetOriginalValues(); @@ -281,6 +284,7 @@ public class IntPraticaCacheModel implements CacheModel, collaudoParziale = objectInput.readBoolean(); collaudoTotale = objectInput.readBoolean(); controlloObbligatorio = objectInput.readBoolean(); + praticaOspedaliera = objectInput.readBoolean(); inLavorazioneSue = objectInput.readBoolean(); } @@ -371,6 +375,7 @@ public class IntPraticaCacheModel implements CacheModel, objectOutput.writeBoolean(collaudoParziale); objectOutput.writeBoolean(collaudoTotale); objectOutput.writeBoolean(controlloObbligatorio); + objectOutput.writeBoolean(praticaOspedaliera); objectOutput.writeBoolean(inLavorazioneSue); } @@ -405,5 +410,6 @@ public class IntPraticaCacheModel implements CacheModel, public boolean collaudoParziale; public boolean collaudoTotale; public boolean controlloObbligatorio; + public boolean praticaOspedaliera; public boolean inLavorazioneSue; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java index 5748cb26..21283320 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java @@ -98,9 +98,10 @@ public class IntPraticaModelImpl extends BaseModelImpl { "collaudoParziale", Types.BOOLEAN }, { "collaudoTotale", Types.BOOLEAN }, { "controlloObbligatorio", Types.BOOLEAN }, + { "praticaOspedaliera", Types.BOOLEAN }, { "inLavorazioneSue", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,dtSorteggio DATE null,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,inLavorazioneSue BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,dtSorteggio DATE null,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,praticaOspedaliera BOOLEAN,inLavorazioneSue BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_IntPratica"; public static final String ORDER_BY_JPQL = " ORDER BY intPratica.intPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IntPratica.intPraticaId ASC"; @@ -169,6 +170,7 @@ public class IntPraticaModelImpl extends BaseModelImpl model.setCollaudoParziale(soapModel.getCollaudoParziale()); model.setCollaudoTotale(soapModel.getCollaudoTotale()); model.setControlloObbligatorio(soapModel.getControlloObbligatorio()); + model.setPraticaOspedaliera(soapModel.getPraticaOspedaliera()); model.setInLavorazioneSue(soapModel.getInLavorazioneSue()); return model; @@ -267,6 +269,7 @@ public class IntPraticaModelImpl extends BaseModelImpl attributes.put("collaudoParziale", getCollaudoParziale()); attributes.put("collaudoTotale", getCollaudoTotale()); attributes.put("controlloObbligatorio", getControlloObbligatorio()); + attributes.put("praticaOspedaliera", getPraticaOspedaliera()); attributes.put("inLavorazioneSue", getInLavorazioneSue()); return attributes; @@ -465,6 +468,13 @@ public class IntPraticaModelImpl extends BaseModelImpl setControlloObbligatorio(controlloObbligatorio); } + Boolean praticaOspedaliera = (Boolean)attributes.get( + "praticaOspedaliera"); + + if (praticaOspedaliera != null) { + setPraticaOspedaliera(praticaOspedaliera); + } + Boolean inLavorazioneSue = (Boolean)attributes.get("inLavorazioneSue"); if (inLavorazioneSue != null) { @@ -989,6 +999,22 @@ public class IntPraticaModelImpl extends BaseModelImpl _controlloObbligatorio = controlloObbligatorio; } + @JSON + @Override + public boolean getPraticaOspedaliera() { + return _praticaOspedaliera; + } + + @Override + public boolean isPraticaOspedaliera() { + return _praticaOspedaliera; + } + + @Override + public void setPraticaOspedaliera(boolean praticaOspedaliera) { + _praticaOspedaliera = praticaOspedaliera; + } + @JSON @Override public boolean getInLavorazioneSue() { @@ -1073,6 +1099,7 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaImpl.setCollaudoParziale(getCollaudoParziale()); intPraticaImpl.setCollaudoTotale(getCollaudoTotale()); intPraticaImpl.setControlloObbligatorio(getControlloObbligatorio()); + intPraticaImpl.setPraticaOspedaliera(getPraticaOspedaliera()); intPraticaImpl.setInLavorazioneSue(getInLavorazioneSue()); intPraticaImpl.resetOriginalValues(); @@ -1318,6 +1345,8 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaCacheModel.controlloObbligatorio = getControlloObbligatorio(); + intPraticaCacheModel.praticaOspedaliera = getPraticaOspedaliera(); + intPraticaCacheModel.inLavorazioneSue = getInLavorazioneSue(); return intPraticaCacheModel; @@ -1325,7 +1354,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(65); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(getUuid()); @@ -1389,6 +1418,8 @@ public class IntPraticaModelImpl extends BaseModelImpl sb.append(getCollaudoTotale()); sb.append(", controlloObbligatorio="); sb.append(getControlloObbligatorio()); + sb.append(", praticaOspedaliera="); + sb.append(getPraticaOspedaliera()); sb.append(", inLavorazioneSue="); sb.append(getInLavorazioneSue()); sb.append("}"); @@ -1398,7 +1429,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(100); + StringBundler sb = new StringBundler(103); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1528,6 +1559,10 @@ public class IntPraticaModelImpl extends BaseModelImpl "controlloObbligatorio"); + sb.append( + "praticaOspedaliera"); sb.append( "inLavorazioneSue private boolean _collaudoParziale; private boolean _collaudoTotale; private boolean _controlloObbligatorio; + private boolean _praticaOspedaliera; private boolean _inLavorazioneSue; private long _columnBitmask; private IntPratica _escapedModel; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java index e2ed4bdf..8648648f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java @@ -38,7 +38,7 @@ public class PagamentoCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(uuid); @@ -90,6 +90,8 @@ public class PagamentoCacheModel implements CacheModel, sb.append(otfCreateDate); sb.append(", emailPending="); sb.append(emailPending); + sb.append(", numeroBollettino="); + sb.append(numeroBollettino); sb.append(", oldPagamentoId="); sb.append(oldPagamentoId); sb.append("}"); @@ -220,6 +222,14 @@ public class PagamentoCacheModel implements CacheModel, } pagamentoImpl.setEmailPending(emailPending); + + if (numeroBollettino == null) { + pagamentoImpl.setNumeroBollettino(StringPool.BLANK); + } + else { + pagamentoImpl.setNumeroBollettino(numeroBollettino); + } + pagamentoImpl.setOldPagamentoId(oldPagamentoId); pagamentoImpl.resetOriginalValues(); @@ -254,6 +264,7 @@ public class PagamentoCacheModel implements CacheModel, otf = objectInput.readBoolean(); otfCreateDate = objectInput.readLong(); emailPending = objectInput.readBoolean(); + numeroBollettino = objectInput.readUTF(); oldPagamentoId = objectInput.readLong(); } @@ -360,6 +371,14 @@ public class PagamentoCacheModel implements CacheModel, objectOutput.writeBoolean(otf); objectOutput.writeLong(otfCreateDate); objectOutput.writeBoolean(emailPending); + + if (numeroBollettino == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(numeroBollettino); + } + objectOutput.writeLong(oldPagamentoId); } @@ -388,5 +407,6 @@ public class PagamentoCacheModel implements CacheModel, public boolean otf; public long otfCreateDate; public boolean emailPending; + public String numeroBollettino; public long oldPagamentoId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java index 2c385422..8d07858e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java @@ -92,9 +92,10 @@ public class PagamentoModelImpl extends BaseModelImpl { "otf", Types.BOOLEAN }, { "otfCreateDate", Types.TIMESTAMP }, { "emailPending", Types.BOOLEAN }, + { "numeroBollettino", Types.VARCHAR }, { "oldPagamentoId", Types.BIGINT } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,oldFileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,oldPagamentoId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,oldFileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,numeroBollettino VARCHAR(250) null,oldPagamentoId LONG)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Pagamento"; public static final String ORDER_BY_JPQL = " ORDER BY pagamento.pagamentoId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Pagamento.pagamentoId ASC"; @@ -160,6 +161,7 @@ public class PagamentoModelImpl extends BaseModelImpl model.setOtf(soapModel.getOtf()); model.setOtfCreateDate(soapModel.getOtfCreateDate()); model.setEmailPending(soapModel.getEmailPending()); + model.setNumeroBollettino(soapModel.getNumeroBollettino()); model.setOldPagamentoId(soapModel.getOldPagamentoId()); return model; @@ -250,6 +252,7 @@ public class PagamentoModelImpl extends BaseModelImpl attributes.put("otf", getOtf()); attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); + attributes.put("numeroBollettino", getNumeroBollettino()); attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; @@ -409,6 +412,12 @@ public class PagamentoModelImpl extends BaseModelImpl setEmailPending(emailPending); } + String numeroBollettino = (String)attributes.get("numeroBollettino"); + + if (numeroBollettino != null) { + setNumeroBollettino(numeroBollettino); + } + Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); if (oldPagamentoId != null) { @@ -869,6 +878,22 @@ public class PagamentoModelImpl extends BaseModelImpl return _originalEmailPending; } + @JSON + @Override + public String getNumeroBollettino() { + if (_numeroBollettino == null) { + return StringPool.BLANK; + } + else { + return _numeroBollettino; + } + } + + @Override + public void setNumeroBollettino(String numeroBollettino) { + _numeroBollettino = numeroBollettino; + } + @JSON @Override public long getOldPagamentoId() { @@ -954,6 +979,7 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoImpl.setOtf(getOtf()); pagamentoImpl.setOtfCreateDate(getOtfCreateDate()); pagamentoImpl.setEmailPending(getEmailPending()); + pagamentoImpl.setNumeroBollettino(getNumeroBollettino()); pagamentoImpl.setOldPagamentoId(getOldPagamentoId()); pagamentoImpl.resetOriginalValues(); @@ -1191,6 +1217,14 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoCacheModel.emailPending = getEmailPending(); + pagamentoCacheModel.numeroBollettino = getNumeroBollettino(); + + String numeroBollettino = pagamentoCacheModel.numeroBollettino; + + if ((numeroBollettino != null) && (numeroBollettino.length() == 0)) { + pagamentoCacheModel.numeroBollettino = null; + } + pagamentoCacheModel.oldPagamentoId = getOldPagamentoId(); return pagamentoCacheModel; @@ -1198,7 +1232,7 @@ public class PagamentoModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(55); sb.append("{uuid="); sb.append(getUuid()); @@ -1250,6 +1284,8 @@ public class PagamentoModelImpl extends BaseModelImpl sb.append(getOtfCreateDate()); sb.append(", emailPending="); sb.append(getEmailPending()); + sb.append(", numeroBollettino="); + sb.append(getNumeroBollettino()); sb.append(", oldPagamentoId="); sb.append(getOldPagamentoId()); sb.append("}"); @@ -1259,7 +1295,7 @@ public class PagamentoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(85); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Pagamento"); @@ -1365,6 +1401,10 @@ public class PagamentoModelImpl extends BaseModelImpl "emailPending"); + sb.append( + "numeroBollettino"); sb.append( "oldPagamentoId private boolean _emailPending; private boolean _originalEmailPending; private boolean _setOriginalEmailPending; + private String _numeroBollettino; private long _oldPagamentoId; private long _originalOldPagamentoId; private boolean _setOriginalOldPagamentoId; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataBaseImpl.java new file mode 100644 index 00000000..d7f0d783 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataBaseImpl.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model.impl; + +import com.liferay.portal.kernel.exception.SystemException; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; + +/** + * The extended model base implementation for the PraticaAttenzionata service. Represents a row in the "portos_bo_PraticaAttenzionata" database table, with each column mapped to a property of this class. + * + *

+ * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PraticaAttenzionataImpl}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataImpl + * @see it.tref.liferay.portos.bo.model.PraticaAttenzionata + * @generated + */ +public abstract class PraticaAttenzionataBaseImpl + extends PraticaAttenzionataModelImpl implements PraticaAttenzionata { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a pratica attenzionata model instance should use the {@link PraticaAttenzionata} interface instead. + */ + @Override + public void persist() throws SystemException { + if (this.isNew()) { + PraticaAttenzionataLocalServiceUtil.addPraticaAttenzionata(this); + } + else { + PraticaAttenzionataLocalServiceUtil.updatePraticaAttenzionata(this); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java new file mode 100644 index 00000000..ab288dd1 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model.impl; + +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.model.CacheModel; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +import java.util.Date; + +/** + * The cache model class for representing PraticaAttenzionata in entity cache. + * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionata + * @generated + */ +public class PraticaAttenzionataCacheModel implements CacheModel, + Externalizable { + @Override + public String toString() { + StringBundler sb = new StringBundler(31); + + sb.append("{uuid="); + sb.append(uuid); + sb.append(", praticaAttenzionataId="); + sb.append(praticaAttenzionataId); + sb.append(", companyId="); + sb.append(companyId); + sb.append(", userId="); + sb.append(userId); + sb.append(", userName="); + sb.append(userName); + sb.append(", createDate="); + sb.append(createDate); + sb.append(", modifiedDate="); + sb.append(modifiedDate); + sb.append(", groupId="); + sb.append(groupId); + sb.append(", intPraticaId="); + sb.append(intPraticaId); + sb.append(", fineLavoriId="); + sb.append(fineLavoriId); + sb.append(", numeroProgetto="); + sb.append(numeroProgetto); + sb.append(", dataFineLavoriTotale="); + sb.append(dataFineLavoriTotale); + sb.append(", dataRelazioneFineLavoriTotale="); + sb.append(dataRelazioneFineLavoriTotale); + sb.append(", verificata="); + sb.append(verificata); + sb.append(", dataVerifica="); + sb.append(dataVerifica); + sb.append("}"); + + return sb.toString(); + } + + @Override + public PraticaAttenzionata toEntityModel() { + PraticaAttenzionataImpl praticaAttenzionataImpl = new PraticaAttenzionataImpl(); + + if (uuid == null) { + praticaAttenzionataImpl.setUuid(StringPool.BLANK); + } + else { + praticaAttenzionataImpl.setUuid(uuid); + } + + praticaAttenzionataImpl.setPraticaAttenzionataId(praticaAttenzionataId); + praticaAttenzionataImpl.setCompanyId(companyId); + praticaAttenzionataImpl.setUserId(userId); + + if (userName == null) { + praticaAttenzionataImpl.setUserName(StringPool.BLANK); + } + else { + praticaAttenzionataImpl.setUserName(userName); + } + + if (createDate == Long.MIN_VALUE) { + praticaAttenzionataImpl.setCreateDate(null); + } + else { + praticaAttenzionataImpl.setCreateDate(new Date(createDate)); + } + + if (modifiedDate == Long.MIN_VALUE) { + praticaAttenzionataImpl.setModifiedDate(null); + } + else { + praticaAttenzionataImpl.setModifiedDate(new Date(modifiedDate)); + } + + praticaAttenzionataImpl.setGroupId(groupId); + praticaAttenzionataImpl.setIntPraticaId(intPraticaId); + praticaAttenzionataImpl.setFineLavoriId(fineLavoriId); + + if (numeroProgetto == null) { + praticaAttenzionataImpl.setNumeroProgetto(StringPool.BLANK); + } + else { + praticaAttenzionataImpl.setNumeroProgetto(numeroProgetto); + } + + if (dataFineLavoriTotale == Long.MIN_VALUE) { + praticaAttenzionataImpl.setDataFineLavoriTotale(null); + } + else { + praticaAttenzionataImpl.setDataFineLavoriTotale(new Date( + dataFineLavoriTotale)); + } + + if (dataRelazioneFineLavoriTotale == Long.MIN_VALUE) { + praticaAttenzionataImpl.setDataRelazioneFineLavoriTotale(null); + } + else { + praticaAttenzionataImpl.setDataRelazioneFineLavoriTotale(new Date( + dataRelazioneFineLavoriTotale)); + } + + praticaAttenzionataImpl.setVerificata(verificata); + + if (dataVerifica == Long.MIN_VALUE) { + praticaAttenzionataImpl.setDataVerifica(null); + } + else { + praticaAttenzionataImpl.setDataVerifica(new Date(dataVerifica)); + } + + praticaAttenzionataImpl.resetOriginalValues(); + + return praticaAttenzionataImpl; + } + + @Override + public void readExternal(ObjectInput objectInput) throws IOException { + uuid = objectInput.readUTF(); + praticaAttenzionataId = objectInput.readLong(); + companyId = objectInput.readLong(); + userId = objectInput.readLong(); + userName = objectInput.readUTF(); + createDate = objectInput.readLong(); + modifiedDate = objectInput.readLong(); + groupId = objectInput.readLong(); + intPraticaId = objectInput.readLong(); + fineLavoriId = objectInput.readLong(); + numeroProgetto = objectInput.readUTF(); + dataFineLavoriTotale = objectInput.readLong(); + dataRelazioneFineLavoriTotale = objectInput.readLong(); + verificata = objectInput.readBoolean(); + dataVerifica = objectInput.readLong(); + } + + @Override + public void writeExternal(ObjectOutput objectOutput) + throws IOException { + if (uuid == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(uuid); + } + + objectOutput.writeLong(praticaAttenzionataId); + objectOutput.writeLong(companyId); + objectOutput.writeLong(userId); + + if (userName == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(userName); + } + + objectOutput.writeLong(createDate); + objectOutput.writeLong(modifiedDate); + objectOutput.writeLong(groupId); + objectOutput.writeLong(intPraticaId); + objectOutput.writeLong(fineLavoriId); + + if (numeroProgetto == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(numeroProgetto); + } + + objectOutput.writeLong(dataFineLavoriTotale); + objectOutput.writeLong(dataRelazioneFineLavoriTotale); + objectOutput.writeBoolean(verificata); + objectOutput.writeLong(dataVerifica); + } + + public String uuid; + public long praticaAttenzionataId; + public long companyId; + public long userId; + public String userName; + public long createDate; + public long modifiedDate; + public long groupId; + public long intPraticaId; + public long fineLavoriId; + public String numeroProgetto; + public long dataFineLavoriTotale; + public long dataRelazioneFineLavoriTotale; + public boolean verificata; + public long dataVerifica; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataImpl.java new file mode 100644 index 00000000..32f3c612 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataImpl.java @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model.impl; + +/** + * The extended model implementation for the PraticaAttenzionata service. Represents a row in the "portos_bo_PraticaAttenzionata" database table, with each column mapped to a property of this class. + * + *

+ * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.PraticaAttenzionata} interface. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + */ +public class PraticaAttenzionataImpl extends PraticaAttenzionataBaseImpl { + /* + * NOTE FOR DEVELOPERS: + * + * Never reference this class directly. All methods that expect a pratica attenzionata model instance should use the {@link it.tref.liferay.portos.bo.model.PraticaAttenzionata} interface instead. + */ + public PraticaAttenzionataImpl() { + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataModelImpl.java new file mode 100644 index 00000000..65affdb8 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataModelImpl.java @@ -0,0 +1,909 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.model.impl; + +import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSON; +import com.liferay.portal.kernel.lar.StagedModelType; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.ProxyUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.impl.BaseModelImpl; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.util.PortalUtil; + +import com.liferay.portlet.expando.model.ExpandoBridge; +import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.model.PraticaAttenzionataModel; +import it.tref.liferay.portos.bo.model.PraticaAttenzionataSoap; + +import java.io.Serializable; + +import java.sql.Types; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The base model implementation for the PraticaAttenzionata service. Represents a row in the "portos_bo_PraticaAttenzionata" database table, with each column mapped to a property of this class. + * + *

+ * This implementation and its corresponding interface {@link it.tref.liferay.portos.bo.model.PraticaAttenzionataModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PraticaAttenzionataImpl}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataImpl + * @see it.tref.liferay.portos.bo.model.PraticaAttenzionata + * @see it.tref.liferay.portos.bo.model.PraticaAttenzionataModel + * @generated + */ +@JSON(strict = true) +public class PraticaAttenzionataModelImpl extends BaseModelImpl + implements PraticaAttenzionataModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a pratica attenzionata model instance should use the {@link it.tref.liferay.portos.bo.model.PraticaAttenzionata} interface instead. + */ + public static final String TABLE_NAME = "portos_bo_PraticaAttenzionata"; + public static final Object[][] TABLE_COLUMNS = { + { "uuid_", Types.VARCHAR }, + { "praticaAttenzionataId", Types.BIGINT }, + { "companyId", Types.BIGINT }, + { "userId", Types.BIGINT }, + { "userName", Types.VARCHAR }, + { "createDate", Types.TIMESTAMP }, + { "modifiedDate", Types.TIMESTAMP }, + { "groupId", Types.BIGINT }, + { "intPraticaId", Types.BIGINT }, + { "fineLavoriId", Types.BIGINT }, + { "numeroProgetto", Types.VARCHAR }, + { "dataFineLavoriTotale", Types.TIMESTAMP }, + { "dataRelazioneFineLavoriTotale", Types.TIMESTAMP }, + { "verificata", Types.BOOLEAN }, + { "dataVerifica", Types.TIMESTAMP } + }; + public static final String TABLE_SQL_CREATE = "create table portos_bo_PraticaAttenzionata (uuid_ VARCHAR(75) null,praticaAttenzionataId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,fineLavoriId LONG,numeroProgetto VARCHAR(75) null,dataFineLavoriTotale DATE null,dataRelazioneFineLavoriTotale DATE null,verificata BOOLEAN,dataVerifica DATE null)"; + public static final String TABLE_SQL_DROP = "drop table portos_bo_PraticaAttenzionata"; + public static final String ORDER_BY_JPQL = " ORDER BY praticaAttenzionata.praticaAttenzionataId ASC"; + public static final String ORDER_BY_SQL = " ORDER BY portos_bo_PraticaAttenzionata.praticaAttenzionataId ASC"; + public static final String DATA_SOURCE = "liferayDataSource"; + public static final String SESSION_FACTORY = "liferaySessionFactory"; + public static final String TX_MANAGER = "liferayTransactionManager"; + public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.entity.cache.enabled.it.tref.liferay.portos.bo.model.PraticaAttenzionata"), + true); + public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.finder.cache.enabled.it.tref.liferay.portos.bo.model.PraticaAttenzionata"), + true); + public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.PraticaAttenzionata"), + true); + public static long COMPANYID_COLUMN_BITMASK = 1L; + public static long GROUPID_COLUMN_BITMASK = 2L; + public static long UUID_COLUMN_BITMASK = 4L; + public static long VERIFICATA_COLUMN_BITMASK = 8L; + public static long PRATICAATTENZIONATAID_COLUMN_BITMASK = 16L; + + /** + * Converts the soap model instance into a normal model instance. + * + * @param soapModel the soap model instance to convert + * @return the normal model instance + */ + public static PraticaAttenzionata toModel(PraticaAttenzionataSoap soapModel) { + if (soapModel == null) { + return null; + } + + PraticaAttenzionata model = new PraticaAttenzionataImpl(); + + model.setUuid(soapModel.getUuid()); + model.setPraticaAttenzionataId(soapModel.getPraticaAttenzionataId()); + model.setCompanyId(soapModel.getCompanyId()); + model.setUserId(soapModel.getUserId()); + model.setUserName(soapModel.getUserName()); + model.setCreateDate(soapModel.getCreateDate()); + model.setModifiedDate(soapModel.getModifiedDate()); + model.setGroupId(soapModel.getGroupId()); + model.setIntPraticaId(soapModel.getIntPraticaId()); + model.setFineLavoriId(soapModel.getFineLavoriId()); + model.setNumeroProgetto(soapModel.getNumeroProgetto()); + model.setDataFineLavoriTotale(soapModel.getDataFineLavoriTotale()); + model.setDataRelazioneFineLavoriTotale(soapModel.getDataRelazioneFineLavoriTotale()); + model.setVerificata(soapModel.getVerificata()); + model.setDataVerifica(soapModel.getDataVerifica()); + + return model; + } + + /** + * Converts the soap model instances into normal model instances. + * + * @param soapModels the soap model instances to convert + * @return the normal model instances + */ + public static List toModels( + PraticaAttenzionataSoap[] soapModels) { + if (soapModels == null) { + return null; + } + + List models = new ArrayList(soapModels.length); + + for (PraticaAttenzionataSoap soapModel : soapModels) { + models.add(toModel(soapModel)); + } + + return models; + } + + public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( + "lock.expiration.time.it.tref.liferay.portos.bo.model.PraticaAttenzionata")); + + public PraticaAttenzionataModelImpl() { + } + + @Override + public long getPrimaryKey() { + return _praticaAttenzionataId; + } + + @Override + public void setPrimaryKey(long primaryKey) { + setPraticaAttenzionataId(primaryKey); + } + + @Override + public Serializable getPrimaryKeyObj() { + return _praticaAttenzionataId; + } + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj) { + setPrimaryKey(((Long)primaryKeyObj).longValue()); + } + + @Override + public Class getModelClass() { + return PraticaAttenzionata.class; + } + + @Override + public String getModelClassName() { + return PraticaAttenzionata.class.getName(); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("uuid", getUuid()); + attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); + attributes.put("companyId", getCompanyId()); + attributes.put("userId", getUserId()); + attributes.put("userName", getUserName()); + attributes.put("createDate", getCreateDate()); + attributes.put("modifiedDate", getModifiedDate()); + attributes.put("groupId", getGroupId()); + attributes.put("intPraticaId", getIntPraticaId()); + attributes.put("fineLavoriId", getFineLavoriId()); + attributes.put("numeroProgetto", getNumeroProgetto()); + attributes.put("dataFineLavoriTotale", getDataFineLavoriTotale()); + attributes.put("dataRelazioneFineLavoriTotale", + getDataRelazioneFineLavoriTotale()); + attributes.put("verificata", getVerificata()); + attributes.put("dataVerifica", getDataVerifica()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + + Long praticaAttenzionataId = (Long)attributes.get( + "praticaAttenzionataId"); + + if (praticaAttenzionataId != null) { + setPraticaAttenzionataId(praticaAttenzionataId); + } + + Long companyId = (Long)attributes.get("companyId"); + + if (companyId != null) { + setCompanyId(companyId); + } + + Long userId = (Long)attributes.get("userId"); + + if (userId != null) { + setUserId(userId); + } + + String userName = (String)attributes.get("userName"); + + if (userName != null) { + setUserName(userName); + } + + Date createDate = (Date)attributes.get("createDate"); + + if (createDate != null) { + setCreateDate(createDate); + } + + Date modifiedDate = (Date)attributes.get("modifiedDate"); + + if (modifiedDate != null) { + setModifiedDate(modifiedDate); + } + + Long groupId = (Long)attributes.get("groupId"); + + if (groupId != null) { + setGroupId(groupId); + } + + Long intPraticaId = (Long)attributes.get("intPraticaId"); + + if (intPraticaId != null) { + setIntPraticaId(intPraticaId); + } + + Long fineLavoriId = (Long)attributes.get("fineLavoriId"); + + if (fineLavoriId != null) { + setFineLavoriId(fineLavoriId); + } + + String numeroProgetto = (String)attributes.get("numeroProgetto"); + + if (numeroProgetto != null) { + setNumeroProgetto(numeroProgetto); + } + + Date dataFineLavoriTotale = (Date)attributes.get("dataFineLavoriTotale"); + + if (dataFineLavoriTotale != null) { + setDataFineLavoriTotale(dataFineLavoriTotale); + } + + Date dataRelazioneFineLavoriTotale = (Date)attributes.get( + "dataRelazioneFineLavoriTotale"); + + if (dataRelazioneFineLavoriTotale != null) { + setDataRelazioneFineLavoriTotale(dataRelazioneFineLavoriTotale); + } + + Boolean verificata = (Boolean)attributes.get("verificata"); + + if (verificata != null) { + setVerificata(verificata); + } + + Date dataVerifica = (Date)attributes.get("dataVerifica"); + + if (dataVerifica != null) { + setDataVerifica(dataVerifica); + } + } + + @JSON + @Override + public String getUuid() { + if (_uuid == null) { + return StringPool.BLANK; + } + else { + return _uuid; + } + } + + @Override + public void setUuid(String uuid) { + if (_originalUuid == null) { + _originalUuid = _uuid; + } + + _uuid = uuid; + } + + public String getOriginalUuid() { + return GetterUtil.getString(_originalUuid); + } + + @JSON + @Override + public long getPraticaAttenzionataId() { + return _praticaAttenzionataId; + } + + @Override + public void setPraticaAttenzionataId(long praticaAttenzionataId) { + _praticaAttenzionataId = praticaAttenzionataId; + } + + @JSON + @Override + public long getCompanyId() { + return _companyId; + } + + @Override + public void setCompanyId(long companyId) { + _columnBitmask |= COMPANYID_COLUMN_BITMASK; + + if (!_setOriginalCompanyId) { + _setOriginalCompanyId = true; + + _originalCompanyId = _companyId; + } + + _companyId = companyId; + } + + public long getOriginalCompanyId() { + return _originalCompanyId; + } + + @JSON + @Override + public long getUserId() { + return _userId; + } + + @Override + public void setUserId(long userId) { + _userId = userId; + } + + @Override + public String getUserUuid() throws SystemException { + return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); + } + + @Override + public void setUserUuid(String userUuid) { + _userUuid = userUuid; + } + + @JSON + @Override + public String getUserName() { + if (_userName == null) { + return StringPool.BLANK; + } + else { + return _userName; + } + } + + @Override + public void setUserName(String userName) { + _userName = userName; + } + + @JSON + @Override + public Date getCreateDate() { + return _createDate; + } + + @Override + public void setCreateDate(Date createDate) { + _createDate = createDate; + } + + @JSON + @Override + public Date getModifiedDate() { + return _modifiedDate; + } + + @Override + public void setModifiedDate(Date modifiedDate) { + _modifiedDate = modifiedDate; + } + + @JSON + @Override + public long getGroupId() { + return _groupId; + } + + @Override + public void setGroupId(long groupId) { + _columnBitmask |= GROUPID_COLUMN_BITMASK; + + if (!_setOriginalGroupId) { + _setOriginalGroupId = true; + + _originalGroupId = _groupId; + } + + _groupId = groupId; + } + + public long getOriginalGroupId() { + return _originalGroupId; + } + + @JSON + @Override + public long getIntPraticaId() { + return _intPraticaId; + } + + @Override + public void setIntPraticaId(long intPraticaId) { + _intPraticaId = intPraticaId; + } + + @JSON + @Override + public long getFineLavoriId() { + return _fineLavoriId; + } + + @Override + public void setFineLavoriId(long fineLavoriId) { + _fineLavoriId = fineLavoriId; + } + + @JSON + @Override + public String getNumeroProgetto() { + if (_numeroProgetto == null) { + return StringPool.BLANK; + } + else { + return _numeroProgetto; + } + } + + @Override + public void setNumeroProgetto(String numeroProgetto) { + _numeroProgetto = numeroProgetto; + } + + @JSON + @Override + public Date getDataFineLavoriTotale() { + return _dataFineLavoriTotale; + } + + @Override + public void setDataFineLavoriTotale(Date dataFineLavoriTotale) { + _dataFineLavoriTotale = dataFineLavoriTotale; + } + + @JSON + @Override + public Date getDataRelazioneFineLavoriTotale() { + return _dataRelazioneFineLavoriTotale; + } + + @Override + public void setDataRelazioneFineLavoriTotale( + Date dataRelazioneFineLavoriTotale) { + _dataRelazioneFineLavoriTotale = dataRelazioneFineLavoriTotale; + } + + @JSON + @Override + public boolean getVerificata() { + return _verificata; + } + + @Override + public boolean isVerificata() { + return _verificata; + } + + @Override + public void setVerificata(boolean verificata) { + _columnBitmask |= VERIFICATA_COLUMN_BITMASK; + + if (!_setOriginalVerificata) { + _setOriginalVerificata = true; + + _originalVerificata = _verificata; + } + + _verificata = verificata; + } + + public boolean getOriginalVerificata() { + return _originalVerificata; + } + + @JSON + @Override + public Date getDataVerifica() { + return _dataVerifica; + } + + @Override + public void setDataVerifica(Date dataVerifica) { + _dataVerifica = dataVerifica; + } + + @Override + public StagedModelType getStagedModelType() { + return new StagedModelType(PortalUtil.getClassNameId( + PraticaAttenzionata.class.getName())); + } + + public long getColumnBitmask() { + return _columnBitmask; + } + + @Override + public ExpandoBridge getExpandoBridge() { + return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(), + PraticaAttenzionata.class.getName(), getPrimaryKey()); + } + + @Override + public void setExpandoBridgeAttributes(ServiceContext serviceContext) { + ExpandoBridge expandoBridge = getExpandoBridge(); + + expandoBridge.setAttributes(serviceContext); + } + + @Override + public PraticaAttenzionata toEscapedModel() { + if (_escapedModel == null) { + _escapedModel = (PraticaAttenzionata)ProxyUtil.newProxyInstance(_classLoader, + _escapedModelInterfaces, new AutoEscapeBeanHandler(this)); + } + + return _escapedModel; + } + + @Override + public Object clone() { + PraticaAttenzionataImpl praticaAttenzionataImpl = new PraticaAttenzionataImpl(); + + praticaAttenzionataImpl.setUuid(getUuid()); + praticaAttenzionataImpl.setPraticaAttenzionataId(getPraticaAttenzionataId()); + praticaAttenzionataImpl.setCompanyId(getCompanyId()); + praticaAttenzionataImpl.setUserId(getUserId()); + praticaAttenzionataImpl.setUserName(getUserName()); + praticaAttenzionataImpl.setCreateDate(getCreateDate()); + praticaAttenzionataImpl.setModifiedDate(getModifiedDate()); + praticaAttenzionataImpl.setGroupId(getGroupId()); + praticaAttenzionataImpl.setIntPraticaId(getIntPraticaId()); + praticaAttenzionataImpl.setFineLavoriId(getFineLavoriId()); + praticaAttenzionataImpl.setNumeroProgetto(getNumeroProgetto()); + praticaAttenzionataImpl.setDataFineLavoriTotale(getDataFineLavoriTotale()); + praticaAttenzionataImpl.setDataRelazioneFineLavoriTotale(getDataRelazioneFineLavoriTotale()); + praticaAttenzionataImpl.setVerificata(getVerificata()); + praticaAttenzionataImpl.setDataVerifica(getDataVerifica()); + + praticaAttenzionataImpl.resetOriginalValues(); + + return praticaAttenzionataImpl; + } + + @Override + public int compareTo(PraticaAttenzionata praticaAttenzionata) { + long primaryKey = praticaAttenzionata.getPrimaryKey(); + + if (getPrimaryKey() < primaryKey) { + return -1; + } + else if (getPrimaryKey() > primaryKey) { + return 1; + } + else { + return 0; + } + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof PraticaAttenzionata)) { + return false; + } + + PraticaAttenzionata praticaAttenzionata = (PraticaAttenzionata)obj; + + long primaryKey = praticaAttenzionata.getPrimaryKey(); + + if (getPrimaryKey() == primaryKey) { + return true; + } + else { + return false; + } + } + + @Override + public int hashCode() { + return (int)getPrimaryKey(); + } + + @Override + public void resetOriginalValues() { + PraticaAttenzionataModelImpl praticaAttenzionataModelImpl = this; + + praticaAttenzionataModelImpl._originalUuid = praticaAttenzionataModelImpl._uuid; + + praticaAttenzionataModelImpl._originalCompanyId = praticaAttenzionataModelImpl._companyId; + + praticaAttenzionataModelImpl._setOriginalCompanyId = false; + + praticaAttenzionataModelImpl._originalGroupId = praticaAttenzionataModelImpl._groupId; + + praticaAttenzionataModelImpl._setOriginalGroupId = false; + + praticaAttenzionataModelImpl._originalVerificata = praticaAttenzionataModelImpl._verificata; + + praticaAttenzionataModelImpl._setOriginalVerificata = false; + + praticaAttenzionataModelImpl._columnBitmask = 0; + } + + @Override + public CacheModel toCacheModel() { + PraticaAttenzionataCacheModel praticaAttenzionataCacheModel = new PraticaAttenzionataCacheModel(); + + praticaAttenzionataCacheModel.uuid = getUuid(); + + String uuid = praticaAttenzionataCacheModel.uuid; + + if ((uuid != null) && (uuid.length() == 0)) { + praticaAttenzionataCacheModel.uuid = null; + } + + praticaAttenzionataCacheModel.praticaAttenzionataId = getPraticaAttenzionataId(); + + praticaAttenzionataCacheModel.companyId = getCompanyId(); + + praticaAttenzionataCacheModel.userId = getUserId(); + + praticaAttenzionataCacheModel.userName = getUserName(); + + String userName = praticaAttenzionataCacheModel.userName; + + if ((userName != null) && (userName.length() == 0)) { + praticaAttenzionataCacheModel.userName = null; + } + + Date createDate = getCreateDate(); + + if (createDate != null) { + praticaAttenzionataCacheModel.createDate = createDate.getTime(); + } + else { + praticaAttenzionataCacheModel.createDate = Long.MIN_VALUE; + } + + Date modifiedDate = getModifiedDate(); + + if (modifiedDate != null) { + praticaAttenzionataCacheModel.modifiedDate = modifiedDate.getTime(); + } + else { + praticaAttenzionataCacheModel.modifiedDate = Long.MIN_VALUE; + } + + praticaAttenzionataCacheModel.groupId = getGroupId(); + + praticaAttenzionataCacheModel.intPraticaId = getIntPraticaId(); + + praticaAttenzionataCacheModel.fineLavoriId = getFineLavoriId(); + + praticaAttenzionataCacheModel.numeroProgetto = getNumeroProgetto(); + + String numeroProgetto = praticaAttenzionataCacheModel.numeroProgetto; + + if ((numeroProgetto != null) && (numeroProgetto.length() == 0)) { + praticaAttenzionataCacheModel.numeroProgetto = null; + } + + Date dataFineLavoriTotale = getDataFineLavoriTotale(); + + if (dataFineLavoriTotale != null) { + praticaAttenzionataCacheModel.dataFineLavoriTotale = dataFineLavoriTotale.getTime(); + } + else { + praticaAttenzionataCacheModel.dataFineLavoriTotale = Long.MIN_VALUE; + } + + Date dataRelazioneFineLavoriTotale = getDataRelazioneFineLavoriTotale(); + + if (dataRelazioneFineLavoriTotale != null) { + praticaAttenzionataCacheModel.dataRelazioneFineLavoriTotale = dataRelazioneFineLavoriTotale.getTime(); + } + else { + praticaAttenzionataCacheModel.dataRelazioneFineLavoriTotale = Long.MIN_VALUE; + } + + praticaAttenzionataCacheModel.verificata = getVerificata(); + + Date dataVerifica = getDataVerifica(); + + if (dataVerifica != null) { + praticaAttenzionataCacheModel.dataVerifica = dataVerifica.getTime(); + } + else { + praticaAttenzionataCacheModel.dataVerifica = Long.MIN_VALUE; + } + + return praticaAttenzionataCacheModel; + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(31); + + sb.append("{uuid="); + sb.append(getUuid()); + sb.append(", praticaAttenzionataId="); + sb.append(getPraticaAttenzionataId()); + sb.append(", companyId="); + sb.append(getCompanyId()); + sb.append(", userId="); + sb.append(getUserId()); + sb.append(", userName="); + sb.append(getUserName()); + sb.append(", createDate="); + sb.append(getCreateDate()); + sb.append(", modifiedDate="); + sb.append(getModifiedDate()); + sb.append(", groupId="); + sb.append(getGroupId()); + sb.append(", intPraticaId="); + sb.append(getIntPraticaId()); + sb.append(", fineLavoriId="); + sb.append(getFineLavoriId()); + sb.append(", numeroProgetto="); + sb.append(getNumeroProgetto()); + sb.append(", dataFineLavoriTotale="); + sb.append(getDataFineLavoriTotale()); + sb.append(", dataRelazioneFineLavoriTotale="); + sb.append(getDataRelazioneFineLavoriTotale()); + sb.append(", verificata="); + sb.append(getVerificata()); + sb.append(", dataVerifica="); + sb.append(getDataVerifica()); + sb.append("}"); + + return sb.toString(); + } + + @Override + public String toXmlString() { + StringBundler sb = new StringBundler(49); + + sb.append(""); + sb.append("it.tref.liferay.portos.bo.model.PraticaAttenzionata"); + sb.append(""); + + sb.append( + "uuid"); + sb.append( + "praticaAttenzionataId"); + sb.append( + "companyId"); + sb.append( + "userId"); + sb.append( + "userName"); + sb.append( + "createDate"); + sb.append( + "modifiedDate"); + sb.append( + "groupId"); + sb.append( + "intPraticaId"); + sb.append( + "fineLavoriId"); + sb.append( + "numeroProgetto"); + sb.append( + "dataFineLavoriTotale"); + sb.append( + "dataRelazioneFineLavoriTotale"); + sb.append( + "verificata"); + sb.append( + "dataVerifica"); + + sb.append(""); + + return sb.toString(); + } + + private static ClassLoader _classLoader = PraticaAttenzionata.class.getClassLoader(); + private static Class[] _escapedModelInterfaces = new Class[] { + PraticaAttenzionata.class + }; + private String _uuid; + private String _originalUuid; + private long _praticaAttenzionataId; + private long _companyId; + private long _originalCompanyId; + private boolean _setOriginalCompanyId; + private long _userId; + private String _userUuid; + private String _userName; + private Date _createDate; + private Date _modifiedDate; + private long _groupId; + private long _originalGroupId; + private boolean _setOriginalGroupId; + private long _intPraticaId; + private long _fineLavoriId; + private String _numeroProgetto; + private Date _dataFineLavoriTotale; + private Date _dataRelazioneFineLavoriTotale; + private boolean _verificata; + private boolean _originalVerificata; + private boolean _setOriginalVerificata; + private Date _dataVerifica; + private long _columnBitmask; + private PraticaAttenzionata _escapedModel; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java index c07a7f3a..30cad0d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java @@ -180,6 +180,7 @@ public class AmministrazionePortlet extends MVCPortlet { String denominazione = ParamUtil.getString(actionRequest, "denominazione"); String mailSuap = ParamUtil.getString(actionRequest, "mailSuap"); String mailSue = ParamUtil.getString(actionRequest, "mailSue"); + boolean praticaOspedaliera = ParamUtil.getBoolean(actionRequest, "praticaOspedali"); boolean provincia = ParamUtil.getBoolean(actionRequest, "provincia"); ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), actionRequest); long userId = PortalUtil.getUserId(actionRequest); @@ -188,10 +189,10 @@ public class AmministrazionePortlet extends MVCPortlet { if (comuneId == 0) { // ADD codiceComune = codiceIstat.substring(0, 3); comune = ComuneLocalServiceUtil.addComune(userId, codiceProvincia, codiceComune, codiceIstat, - codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext); + codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext); } else { // EDIT ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, - denominazione, provincia, mailSuap, mailSue, serviceContext); + denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext); } String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { @@ -374,17 +375,17 @@ public class AmministrazionePortlet extends MVCPortlet { if (nazioneEstera) { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, false, true, - StringPool.BLANK, StringPool.BLANK, serviceContext); + StringPool.BLANK, StringPool.BLANK, false, serviceContext); } else { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, isProvincia, false, - StringPool.BLANK, StringPool.BLANK, serviceContext); + StringPool.BLANK, StringPool.BLANK, false, serviceContext); } } else { _log.debug("Il comune esiste e verra' aggiornato: " + csvRecord); ComuneLocalServiceUtil.updateComune(themeDisplay.getUserId(), comuneO.getPrimaryKey(), codiceProvincia, codiceComune, codiceIstat, denominazione, isProvincia, - nazioneEstera, StringPool.BLANK, StringPool.BLANK, serviceContext); + nazioneEstera, StringPool.BLANK, StringPool.BLANK, false, serviceContext); } } } catch (PortalException e) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java index 544ec2cf..9acf3523 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java @@ -240,6 +240,7 @@ public class FascicoloPortlet extends MVCPortlet { String protocollo = actionRequest.getParameter("protocollo"); // String tipoPratica = actionRequest.getParameter("tipoPratica"); String tipoProcedura = actionRequest.getParameter("tipoProcedura"); +// String praticaospedaliera = String.valueOf(ParamUtil.getBoolean(actionRequest, "praticaospedaliera")); String statoPratica = actionRequest.getParameter("statoPratica"); String committente = actionRequest.getParameter("committente"); String descInterventoSearch = actionRequest.getParameter("descIntervento"); @@ -277,7 +278,7 @@ public class FascicoloPortlet extends MVCPortlet { actionResponse.setRenderParameter("praticaAperta", praticaAperta); actionResponse.setRenderParameter("descIntervento", descInterventoSearch); actionResponse.setRenderParameter("protocollo", protocollo); - // actionResponse.setRenderParameter("tipoPratica", tipoPratica); +// actionResponse.setRenderParameter("praticaospedaliera", praticaospedaliera); actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); actionResponse.setRenderParameter("statoPratica", statoPratica); actionResponse.setRenderParameter("committente", committente); @@ -325,7 +326,7 @@ public class FascicoloPortlet extends MVCPortlet { } else if ("page_allegati".equals(comingFrom)) { tipologieAllegati = DocumentiPraticaUtil.getDocDomanda(); } else if ("page_fine_lavori".equals(comingFrom)) { - tipologieAllegati = DocumentiPraticaUtil.getDocFineLavori(); + tipologieAllegati = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); } else if ("page_collaudo".equals(comingFrom)) { tipologieAllegati = DocumentiPraticaUtil.getDocCollaudo(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FineLavoriCollaudoPanel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FineLavoriCollaudoPanel.java new file mode 100644 index 00000000..860eeb88 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FineLavoriCollaudoPanel.java @@ -0,0 +1,37 @@ +package it.tref.liferay.portos.bo.portlet; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.servlet.SessionErrors; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.util.bridges.mvc.MVCPortlet; + +import it.tref.liferay.portos.bo.model.Provincia; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.ParamUtil; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; + +public class FineLavoriCollaudoPanel extends MVCPortlet { + + public void verificaPratica(ActionRequest actionRequest, ActionResponse actionResponse) { + + long praticaAttenzionataId = ParamUtil.getLong(actionRequest, "praticaAttenzionataId"); + + try{ + ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); + + PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata(praticaAttenzionataId, serviceContext); + } catch (PortalException | SystemException e){ + _log.error(e,e); + SessionErrors.add(actionRequest, "errore-impossibile-verificare"); + } + + } + + private Log _log = LogFactoryUtil.getLog(FineLavoriCollaudoPanel.class); +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java index a7ff08bb..d746d05d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java @@ -48,6 +48,42 @@ public class ReportAvvisoBean implements Serializable { private String elencoNumeriProtocolloIntegrazione; private Boolean parziale; private String parzialeNumero; + private boolean richiestaAttestazione; + private String dataPraticaString; + private String dataFineLavoriString; + private String dataInizioLavoriString; + + public String getDataInizioLavoriString() { + return dataInizioLavoriString; + } + + public void setDataInizioLavoriString(String dataInizioLavoriString) { + this.dataInizioLavoriString = dataInizioLavoriString; + } + + public String getDataFineLavoriString() { + return dataFineLavoriString; + } + + public void setDataFineLavoriString(String dataFineLavoriString) { + this.dataFineLavoriString = dataFineLavoriString; + } + + public String getDataPraticaString() { + return dataPraticaString; + } + + public void setDataPraticaString(String dataPraticaString) { + this.dataPraticaString = dataPraticaString; + } + + public boolean isRichiestaAttestazione() { + return richiestaAttestazione; + } + + public void setRichiestaAttestazione(boolean richiestaAttestazione) { + this.richiestaAttestazione = richiestaAttestazione; + } public String getTipo() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java index 2835da7b..e17409c3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java @@ -82,6 +82,9 @@ public class ReportAvvisoBeanBuilder { dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk()); bean.setNumeroProtocollo(dettPratica.getProtocollo()); bean.setVarianteNumero(dettPratica.getVarianteNumero()); + bean.setDataInizioLavoriString( + Validator.isNull(dettPratica.getDataInizioLavoriOpera()) ? + StringPool.BLANK : new SimpleDateFormat("dd/MM/yyy").format(dettPratica.getDataInizioLavoriOpera())); // DATI PER INTEGRAZIONE if (dettPratica.getIntegrazione() > 0) { numeroIntegrazione = dettPratica.getIntegrazione(); @@ -144,6 +147,7 @@ public class ReportAvvisoBeanBuilder { bean.setNumeroProtocollo(fineLavori.getProtocollo()); bean.setParziale(fineLavori.isParziale()); bean.setParzialeNumero(String.valueOf(fineLavori.getNumero())); + bean.setRichiestaAttestazione(fineLavori.isRichiestaAttestazione()); } else if (Collaudo.class.getName().equalsIgnoreCase(avviso.getClassName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(avviso.getClassPk()); dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); @@ -178,11 +182,21 @@ public class ReportAvvisoBeanBuilder { if (FineLavori.class.getName().equalsIgnoreCase(avviso.getClassName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(avviso.getClassPk()); bean.setDataPratica(fineLavori.getDtProtocollo()); + bean.setDataFineLavoriString(new SimpleDateFormat("dd/MM/yyy").format(fineLavori.getDataFineLavori())); + if(Validator.isNotNull(fineLavori.getDtProtocollo())){ + bean.setDataPraticaString(new SimpleDateFormat("dd/MM/yyy").format(fineLavori.getDtProtocollo())); + } } else if (Collaudo.class.getName().equalsIgnoreCase(avviso.getClassName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(avviso.getClassPk()); bean.setDataPratica(collaudo.getDtProtocollo()); + if(Validator.isNotNull(collaudo.getDtProtocollo())){ + bean.setDataPraticaString(new SimpleDateFormat("dd/MM/yyy").format(collaudo.getDtProtocollo())); + } } else { bean.setDataPratica(intPratica.getDtPratica()); + if(Validator.isNotNull(intPratica.getDtPratica())){ + bean.setDataPraticaString(new SimpleDateFormat("dd/MM/yyy").format(intPratica.getDtPratica())); + } } bean.setDataAvviso(avviso.getModifiedDate()); bean.setTipoPratica(intPratica.getTipoPratica()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java index 26b431e4..4b5e140e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java @@ -52,7 +52,9 @@ public class SchedulerGeneraDocumento implements MessageListener { @Override public void receive(Message message) throws MessageListenerException { - + if(_log.isDebugEnabled()){ + _log.debug("SchedulerGeneraDocumento is running"); + } if (lock.tryLock()) { try { // campo abilitazione scheduler @@ -66,12 +68,14 @@ public class SchedulerGeneraDocumento implements MessageListener { List avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor + SIZE); for (Avviso avviso : avvisi) { + _log.info("SchedulerGeneraDocumento - avviso "+avviso.getAvvisoId()); try { FileEntry fileEntryTemplate = null; try { fileEntryTemplate = DLAppLocalServiceUtil.getFileEntry(avviso .getFileEntryIdTemplate()); } catch (PortalException e) { + _log.error(e,e); // bloccato, non esiste file di template AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), true); } @@ -86,7 +90,9 @@ public class SchedulerGeneraDocumento implements MessageListener { } } } - _log.debug("SchedulerGeneraDocumento - fine"); + if(_log.isDebugEnabled()){ + _log.debug("SchedulerGeneraDocumento - fine"); + } } catch (SystemException e) { _log.error("Error", e); } finally { @@ -96,7 +102,9 @@ public class SchedulerGeneraDocumento implements MessageListener { } private Long generaDocumento(Avviso avviso, long fileEntryIdTemplate) throws SystemException { - + if(_log.isDebugEnabled()){ + _log.debug("SchedulerGeneraDocumento - json avviso " + JSONFactoryUtil.looseSerialize(avviso)); + } Long idFileEntry = null; try { long companyId = avviso.getCompanyId(); @@ -139,7 +147,13 @@ public class SchedulerGeneraDocumento implements MessageListener { reportDto.setParameters(parameters); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); + if(_log.isDebugEnabled()){ + _log.debug("SchedulerGeneraDocumento - json reportDto" + JSONFactoryUtil.looseSerialize(reportDto)); + } ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean); + if(_log.isDebugEnabled()){ + _log.debug("SchedulerGeneraDocumento - json reportDto" + JSONFactoryUtil.looseSerialize(result)); + } idFileEntry = result.getFileEntryIds()[0]; if (Validator.isNotNull(idFileEntry)) { if (avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java index 4d0bf1b3..e5ed489f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java @@ -1,5 +1,16 @@ package it.tref.liferay.portos.bo.scheduler; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.messaging.MessageListener; +import com.liferay.portal.kernel.messaging.MessageListenerException; +import com.liferay.portal.kernel.repository.model.FileEntry; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; + import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; @@ -16,17 +27,6 @@ import java.util.Map; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageListener; -import com.liferay.portal.kernel.messaging.MessageListenerException; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; - public class SchedulerGeneraProtocollo implements MessageListener { private static final Log _log = LogFactoryUtil.getLog(SchedulerGeneraProtocollo.class); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java index 0ec55e1d..50fd7765 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java @@ -1,5 +1,33 @@ package it.tref.liferay.portos.bo.scheduler; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.language.LanguageUtil; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.messaging.MessageListener; +import com.liferay.portal.kernel.messaging.MessageListenerException; +import com.liferay.portal.kernel.repository.model.FileEntry; +import com.liferay.portal.kernel.util.ArrayUtil; +import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; +import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowInstance; +import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; +import com.liferay.portal.model.Company; +import com.liferay.portal.service.CompanyLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; +import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; + import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; @@ -47,34 +75,6 @@ import java.util.Set; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.json.JSONSerializer; -import com.liferay.portal.kernel.language.LanguageUtil; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageListener; -import com.liferay.portal.kernel.messaging.MessageListenerException; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.util.ArrayUtil; -import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; -import com.liferay.portal.kernel.util.LocaleUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowInstance; -import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; -import com.liferay.portal.model.Company; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; - public class SchedulerInvioDocumento implements MessageListener { private static final Log _log = LogFactoryUtil.getLog(SchedulerInvioDocumento.class); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java index caccb78f..3e082fa2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java @@ -13,6 +13,7 @@ import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; @@ -133,11 +134,15 @@ public class SchedulerPratiche implements MessageListener { PrincipalThreadLocal.setName(user.getUserId()); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionThreadLocal.setPermissionChecker(permissionChecker); - if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) { + // EVOLUTIVE 2023 + // COMMENTATO L'IF PER POTER CREARE AVVISO IN OGNI CASO. + // VALUTARE SE NECESSARIO DIFFERENZIARE GLI AVVISI VIDIMAZIONE/ATTESTAZIONE +// if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) { +// if (fineLavori.isRichiestaAttestazione()) { creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), fineLavori.getUserId(), fineLavori.getIntPraticaId(), fineLavori.getFineLavoriId(), FineLavori.class.getName()); - } +// } fineLavori.setGestita(true); FineLavoriLocalServiceUtil.updateFineLavori(fineLavori); } catch (Exception e) { @@ -229,6 +234,11 @@ public class SchedulerPratiche implements MessageListener { private void creaAvvisoVidimazione(long companyId, long groupId, long userId, long intPraticaId, long classPk, String className) throws SystemException, PortalException { + + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(groupId); + serviceContext.setUserId(userId); String descLong = StringPool.BLANK; Date dtAvviso = new Date(); @@ -237,6 +247,13 @@ public class SchedulerPratiche implements MessageListener { String propertiesTemplateType = StatoPraticaConstants.VIDIMATA; if (FineLavori.class.getName().equals(className)) { propertiesTemplateType = StatoPraticaConstants.FINE_LAVORI; + FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk); + if(!fineLavori.isParziale()){ + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + PraticaAttenzionataLocalServiceUtil.evalAndEventuallyAddPraticaAttenzionata(intPraticaId, + fineLavori.getFineLavoriId(), intPratica.getNumeroProgetto(), fineLavori.getDataFineLavori(), + new Date(), serviceContext); + } } else if (Collaudo.class.getName().equals(className)) { propertiesTemplateType = StatoPraticaConstants.COLLAUDO; } else if (DettPratica.class.getName().equals(className)) { @@ -248,10 +265,21 @@ public class SchedulerPratiche implements MessageListener { String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); long controlloPraticaId = 0L; - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(groupId); - serviceContext.setUserId(userId); + _log.debug("creaAvvisoVidimazione: Pratica.isPraticaOspedaliera() ? " + IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()); +// if(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){ +// _log.debug("creaAvvisoVidimazione: Pratica is Ospedaliera - Creating PRATICA_OSPEDALIERA_DEPOSITO"); +// tipoDocumento = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO; +// propertiesTemplateType = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO; +// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); +// fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); +// if(Validator.isNull(AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(intPraticaId))){ +// AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, +// dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, +// className, controlloPraticaId, serviceContext); +// } +// return; +// } + _log.debug("creaAvvisoVidimazione: tipoDocumento -> "+tipoDocumento); AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, className, controlloPraticaId, serviceContext); } @@ -273,7 +301,7 @@ public class SchedulerPratiche implements MessageListener { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); intPratica = assegnaNumeroProgetto(intPratica); String tipoIntegrazione = dettPratica.getTipoIntegrazione(); - // 1º Avviso di ricezione corretta o in errore della pratica + // 1° Avviso di ricezione corretta o in errore della pratica int count = AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(dettPratica.getDettPraticaId(), DettPratica.class.getName()); // in caso di errore non genere un nuovo avviso @@ -283,6 +311,7 @@ public class SchedulerPratiche implements MessageListener { if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(tipoIntegrazione)) { // avviso pilotato per integrazioni String stato = StatoPraticaConstants.INTEGRAZIONE_ACCETTATA; + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato); AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L); @@ -294,6 +323,7 @@ public class SchedulerPratiche implements MessageListener { } else { stato = intPratica.getStatoPratica(); } + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato); AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L); @@ -303,6 +333,7 @@ public class SchedulerPratiche implements MessageListener { propertiesTemplateType); long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | propertiesTemplate -> "+propertiesTemplate); AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, fileEntryIdTemplate, dettPratica.getDettPraticaId(), DettPratica.class.getName(), 0L, serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java index ed3a354e..c71472ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1348,6 +1349,63 @@ public abstract class AllegatoManualeLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2043,6 +2101,12 @@ public abstract class AllegatoManualeLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java index 29008a40..11e13dd4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java @@ -122,60 +122,60 @@ public class AllegatoManualeLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "findByIntPratica"; + _methodName192 = "findByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName187 = "findByIntPratica"; + _methodName193 = "findByIntPratica"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName188 = "countByIntPratica"; + _methodName194 = "countByIntPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName189 = "findByDettPratica"; + _methodName195 = "findByDettPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName190 = "findByDettPratica"; + _methodName196 = "findByDettPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "countByDettPratica"; + _methodName197 = "countByDettPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName192 = "addAllegatoManuale"; + _methodName198 = "addAllegatoManuale"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName193 = "deleteAllegatoManuale"; + _methodName199 = "deleteAllegatoManuale"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName194 = "deleteAllegatoManuale"; + _methodName200 = "deleteAllegatoManuale"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -291,56 +291,56 @@ public class AllegatoManualeLocalServiceClpInvoker { return AllegatoManualeLocalServiceUtil.updateAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AllegatoManualeLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { AllegatoManualeLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return AllegatoManualeLocalServiceUtil.addAllegatoManuale(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -349,13 +349,13 @@ public class AllegatoManualeLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AllegatoManualeLocalServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(((Long)arguments[0]).longValue()); } @@ -402,26 +402,26 @@ public class AllegatoManualeLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; private String _methodName194; private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java index 9c536a99..191ce41e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java index d609a2b7..d5878a0d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java @@ -24,114 +24,114 @@ import java.util.Arrays; */ public class AllegatoManualeServiceClpInvoker { public AllegatoManualeServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "findByIntPratica"; + _methodName172 = "findByIntPratica"; - _methodParameterTypes166 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName167 = "findByIntPratica"; + _methodName173 = "findByIntPratica"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes173 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName168 = "countByIntPratica"; + _methodName174 = "countByIntPratica"; - _methodParameterTypes168 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName169 = "findByDettPratica"; + _methodName175 = "findByDettPratica"; - _methodParameterTypes169 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName170 = "findByDettPratica"; + _methodName176 = "findByDettPratica"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes176 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName171 = "countByDettPratica"; + _methodName177 = "countByDettPratica"; - _methodParameterTypes171 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName172 = "addAllegatoManuale"; + _methodName178 = "addAllegatoManuale"; - _methodParameterTypes172 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName173 = "deleteAllegatoManuale"; + _methodName179 = "deleteAllegatoManuale"; - _methodParameterTypes173 = new String[] { + _methodParameterTypes179 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName174 = "deleteAllegatoManuale"; + _methodName180 = "deleteAllegatoManuale"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AllegatoManualeServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { AllegatoManualeServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AllegatoManualeServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return AllegatoManualeServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return AllegatoManualeServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return AllegatoManualeServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return AllegatoManualeServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return AllegatoManualeServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AllegatoManualeServiceUtil.addAllegatoManuale(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -140,39 +140,39 @@ public class AllegatoManualeServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; private String[] _methodParameterTypes173; private String _methodName174; private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java index bc022f6f..b6066baf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1347,6 +1348,63 @@ public abstract class AsseverazioneLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2042,6 +2100,12 @@ public abstract class AsseverazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java index 16702744..eac7be75 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java @@ -122,230 +122,230 @@ public class AsseverazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "anteprimaAsseverazione"; + _methodName192 = "anteprimaAsseverazione"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName187 = "anteprimaAsseverazioneGeologo"; + _methodName193 = "anteprimaAsseverazioneGeologo"; - _methodParameterTypes187 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes193 = new String[] { "java.lang.String", "long" }; - _methodName188 = "testoAsseverazioneGeologo"; + _methodName194 = "testoAsseverazioneGeologo"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "java.lang.String", "long", "java.lang.String" }; - _methodName193 = "richiediAsseverazioni"; + _methodName199 = "richiediAsseverazioni"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName194 = "resetAsseverazione"; + _methodName200 = "resetAsseverazione"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName195 = "annullaAsseverazioni"; + _methodName201 = "annullaAsseverazioni"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName196 = "cambioStatoAsseverazione"; + _methodName202 = "cambioStatoAsseverazione"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "long", "long", "java.lang.String" }; - _methodName197 = "generateReportAsseverazione"; + _methodName203 = "generateReportAsseverazione"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes203 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione", "long" }; - _methodName198 = "cambioStatoAsseverazioni"; + _methodName204 = "cambioStatoAsseverazioni"; - _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; - _methodName199 = "concludiAsseverazioniExpired"; + _methodName205 = "concludiAsseverazioniExpired"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long" }; - _methodName200 = "rimuoviFileAsseverazione"; + _methodName206 = "rimuoviFileAsseverazione"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes206 = new String[] { "long" }; - _methodName201 = "deleteAsseverazione"; + _methodName207 = "deleteAsseverazione"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes207 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName202 = "deleteAsseverazione"; + _methodName208 = "deleteAsseverazione"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName203 = "allegaFileAsseverazione"; + _methodName209 = "allegaFileAsseverazione"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes209 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName204 = "findByIntPratica"; + _methodName210 = "findByIntPratica"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName205 = "findByDettPratica"; + _methodName211 = "findByDettPratica"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes211 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "countByIntPratica"; + _methodName212 = "countByIntPratica"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes212 = new String[] { "long" }; - _methodName207 = "countByDettPratica"; + _methodName213 = "countByDettPratica"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName208 = "findByIntPratica_CodiceFiscale"; + _methodName214 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName209 = "countByIntPratica_CodiceFiscale"; + _methodName215 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes209 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; - _methodName210 = "findByCodiceFiscale_InEsito"; + _methodName216 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName211 = "countByCodiceFiscale_InEsito"; + _methodName217 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes217 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName212 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName218 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes218 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName213 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName219 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes219 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName214 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName220 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes220 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName215 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName221 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName216 = "findByIntPratica_InEsito"; + _methodName222 = "findByIntPratica_InEsito"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes222 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "countByIntPratica_InEsito"; + _methodName223 = "countByIntPratica_InEsito"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes223 = new String[] { "long", "java.lang.String[][]" }; - _methodName218 = "findByDettPratica_InEsito"; + _methodName224 = "findByDettPratica_InEsito"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes224 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "countByDettPratica_InEsito"; + _methodName225 = "countByDettPratica_InEsito"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes225 = new String[] { "long", "java.lang.String[][]" }; - _methodName220 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName226 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes226 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName221 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName227 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes227 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName222 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName228 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes228 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName223 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName229 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName224 = "findByIntPratica_Tipologia_InEsito"; + _methodName230 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes230 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName225 = "findByDettPratica_Tipologia_InEsito"; + _methodName231 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes231 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName226 = "countByIntPratica_Tipologia_InEsito"; + _methodName232 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes232 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName227 = "countByDettPratica_Tipologia_InEsito"; + _methodName233 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes233 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } @@ -463,138 +463,138 @@ public class AsseverazioneLocalServiceClpInvoker { return AsseverazioneLocalServiceUtil.updateAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AsseverazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { AsseverazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return AsseverazioneLocalServiceUtil.anteprimaAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AsseverazioneLocalServiceUtil.anteprimaAsseverazioneGeologo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AsseverazioneLocalServiceUtil.testoAsseverazioneGeologo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { AsseverazioneLocalServiceUtil.richiediAsseverazioni(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { AsseverazioneLocalServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { AsseverazioneLocalServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { AsseverazioneLocalServiceUtil.cambioStatoAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return AsseverazioneLocalServiceUtil.generateReportAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { AsseverazioneLocalServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { AsseverazioneLocalServiceUtil.concludiAsseverazioniExpired(((Long)arguments[0]).longValue()); return null; } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { AsseverazioneLocalServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return AsseverazioneLocalServiceUtil.allegaFileAsseverazione(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -602,14 +602,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -617,14 +617,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -633,8 +633,8 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -643,20 +643,20 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -664,14 +664,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -679,14 +679,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -695,14 +695,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -711,15 +711,15 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -728,8 +728,8 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -738,14 +738,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -793,28 +793,16 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; + private String _methodName192; + private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; private String _methodName194; private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; @@ -873,4 +861,16 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes226; private String _methodName227; private String[] _methodParameterTypes227; + private String _methodName228; + private String[] _methodParameterTypes228; + private String _methodName229; + private String[] _methodParameterTypes229; + private String _methodName230; + private String[] _methodParameterTypes230; + private String _methodName231; + private String[] _methodParameterTypes231; + private String _methodName232; + private String[] _methodParameterTypes232; + private String _methodName233; + private String[] _methodParameterTypes233; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java index 081e513b..5bdf30a0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java index 7b7edb6f..826c8136 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java @@ -24,291 +24,291 @@ import java.util.Arrays; */ public class AsseverazioneServiceClpInvoker { public AsseverazioneServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "cambioStatoAsseverazione"; + _methodName172 = "cambioStatoAsseverazione"; - _methodParameterTypes166 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes172 = new String[] { "long", "java.lang.String" }; - _methodName167 = "cambioStatoAsseverazioni"; + _methodName173 = "cambioStatoAsseverazioni"; - _methodParameterTypes167 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes173 = new String[] { "long", "java.lang.String" }; - _methodName168 = "richiediAsseverazioni"; + _methodName174 = "richiediAsseverazioni"; - _methodParameterTypes168 = new String[] { + _methodParameterTypes174 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName169 = "resetAsseverazione"; + _methodName175 = "resetAsseverazione"; - _methodParameterTypes169 = new String[] { "long", "long" }; + _methodParameterTypes175 = new String[] { "long", "long" }; - _methodName170 = "annullaAsseverazioni"; + _methodName176 = "annullaAsseverazioni"; - _methodParameterTypes170 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName171 = "rimuoviFileAsseverazione"; + _methodName177 = "rimuoviFileAsseverazione"; - _methodParameterTypes171 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName172 = "allegaFileAsseverazione"; + _methodName178 = "allegaFileAsseverazione"; - _methodParameterTypes172 = new String[] { + _methodParameterTypes178 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName173 = "findByIntPratica"; + _methodName179 = "findByIntPratica"; - _methodParameterTypes173 = new String[] { + _methodParameterTypes179 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName174 = "findByDettPratica"; + _methodName180 = "findByDettPratica"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes180 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName175 = "countByIntPratica"; + _methodName181 = "countByIntPratica"; - _methodParameterTypes175 = new String[] { "long" }; + _methodParameterTypes181 = new String[] { "long" }; - _methodName176 = "countByDettPratica"; + _methodName182 = "countByDettPratica"; - _methodParameterTypes176 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName177 = "findByIntPratica_CodiceFiscale"; + _methodName183 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes177 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName178 = "countByIntPratica_CodiceFiscale"; + _methodName184 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes184 = new String[] { "long", "java.lang.String" }; - _methodName179 = "findByCodiceFiscale_InEsito"; + _methodName185 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByCodiceFiscale_InEsito"; + _methodName186 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes186 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName181 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName187 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName182 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName188 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName189 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName184 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName190 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName185 = "findByIntPratica_InEsito"; + _methodName191 = "findByIntPratica_InEsito"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes191 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPratica_InEsito"; + _methodName192 = "countByIntPratica_InEsito"; - _methodParameterTypes186 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes192 = new String[] { "long", "java.lang.String[][]" }; - _methodName187 = "findByDettPratica_InEsito"; + _methodName193 = "findByDettPratica_InEsito"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName188 = "countByDettPratica_InEsito"; + _methodName194 = "countByDettPratica_InEsito"; - _methodParameterTypes188 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String[][]" }; - _methodName189 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName195 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName190 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName196 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName191 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName197 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName192 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName198 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName193 = "findByIntPratica_Tipologia_InEsito"; + _methodName199 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName194 = "findByDettPratica_Tipologia_InEsito"; + _methodName200 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes200 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByIntPratica_Tipologia_InEsito"; + _methodName201 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName196 = "countByDettPratica_Tipologia_InEsito"; + _methodName202 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AsseverazioneServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { AsseverazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { AsseverazioneServiceUtil.richiediAsseverazioni(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); return null; } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { AsseverazioneServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { AsseverazioneServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { AsseverazioneServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AsseverazioneServiceUtil.allegaFileAsseverazione(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -316,14 +316,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return AsseverazioneServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -331,14 +331,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AsseverazioneServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -347,8 +347,8 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -357,20 +357,20 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -378,14 +378,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -393,14 +393,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return AsseverazioneServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -409,14 +409,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return AsseverazioneServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -425,15 +425,15 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -442,8 +442,8 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -452,14 +452,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -467,22 +467,10 @@ public class AsseverazioneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -533,4 +521,16 @@ public class AsseverazioneServiceClpInvoker { private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java index c73d9aef..1e986330 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1339,6 +1340,63 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2034,6 +2092,12 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java index b385aa7f..718fe2f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java @@ -122,461 +122,465 @@ public class AvvisoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "createStandardAvvisoPratica"; + _methodName192 = "createStandardAvvisoPratica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName187 = "createStandardAvvisoPratica"; + _methodName193 = "createStandardAvvisoPratica"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "java.lang.String", "long" }; - _methodName188 = "createStandardAvvisoPratica"; + _methodName194 = "createStandardAvvisoPratica"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName189 = "createStandardAvvisoPratica"; + _methodName195 = "createStandardAvvisoPratica"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName190 = "addAvviso"; + _methodName196 = "addAvviso"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "addAvviso"; + _methodName197 = "addAvviso"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "addAvviso"; + _methodName198 = "addAvviso"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "java.lang.Long", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName193 = "addAvvisoForImport"; + _methodName199 = "addAvvisoForImport"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName194 = "addAvviso"; + _methodName200 = "addAvviso"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes200 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName195 = "search"; + _methodName201 = "search"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long[][]", "java.lang.Long", "java.lang.String", "int", "int" }; - _methodName196 = "countSearch"; + _methodName202 = "countSearch"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "long[][]", "java.lang.Long", "java.lang.String" }; - _methodName198 = "getAvvisiFirmatiByCF"; + _methodName204 = "getAvvisiFirmatiByCF"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes204 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName199 = "countAvvisiFirmatiByCF"; + _methodName205 = "countAvvisiFirmatiByCF"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; - _methodName201 = "getAvvisiDaFirmarePrimaFirmaByCF"; + _methodName207 = "getAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName202 = "countAvvisiDaFirmarePrimaFirmaByCF"; + _methodName208 = "countAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; - _methodName203 = "deleteAvviso"; + _methodName209 = "deleteAvviso"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes209 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName204 = "deleteAvviso"; + _methodName210 = "deleteAvviso"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName206 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName212 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes212 = new String[] { "long", "long[][]", "java.lang.String", "int", "int" }; - _methodName207 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName213 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes213 = new String[] { "long", "long[][]", "java.lang.String" }; - _methodName209 = "getAvvisiDaFirmarePrimaFirma"; + _methodName215 = "getAvvisiDaFirmarePrimaFirma"; - _methodParameterTypes209 = new String[] { "long", "long[][]", "int", "int" }; + _methodParameterTypes215 = new String[] { "long", "long[][]", "int", "int" }; - _methodName210 = "countAvvisiDaFirmarePrimaFirma"; + _methodName216 = "countAvvisiDaFirmarePrimaFirma"; - _methodParameterTypes210 = new String[] { "long", "long[][]" }; + _methodParameterTypes216 = new String[] { "long", "long[][]" }; - _methodName212 = "countAvvisiGenerazioneDocumento"; + _methodName218 = "countAvvisiGenerazioneDocumento"; - _methodParameterTypes212 = new String[] { }; + _methodParameterTypes218 = new String[] { }; - _methodName213 = "getAvvisiGenerazioneDocumento"; + _methodName219 = "getAvvisiGenerazioneDocumento"; - _methodParameterTypes213 = new String[] { "int", "int" }; + _methodParameterTypes219 = new String[] { "int", "int" }; - _methodName214 = "dynamicQueryAvvisiGenerazioneDocumento"; + _methodName220 = "dynamicQueryAvvisiGenerazioneDocumento"; - _methodParameterTypes214 = new String[] { }; + _methodParameterTypes220 = new String[] { }; - _methodName215 = "countAvvisiFirmaDocumento"; + _methodName221 = "countAvvisiFirmaDocumento"; - _methodParameterTypes215 = new String[] { }; + _methodParameterTypes221 = new String[] { }; - _methodName216 = "getAvvisiFirmaDocumento"; + _methodName222 = "getAvvisiFirmaDocumento"; - _methodParameterTypes216 = new String[] { "int", "int" }; + _methodParameterTypes222 = new String[] { "int", "int" }; - _methodName217 = "dynamicQueryAvvisiFirmaDocumento"; + _methodName223 = "dynamicQueryAvvisiFirmaDocumento"; - _methodParameterTypes217 = new String[] { }; + _methodParameterTypes223 = new String[] { }; - _methodName218 = "countAvvisiInvioDocumento"; + _methodName224 = "countAvvisiInvioDocumento"; - _methodParameterTypes218 = new String[] { }; + _methodParameterTypes224 = new String[] { }; - _methodName219 = "getAvvisiInvioDocumento"; + _methodName225 = "getAvvisiInvioDocumento"; - _methodParameterTypes219 = new String[] { "int", "int" }; + _methodParameterTypes225 = new String[] { "int", "int" }; - _methodName220 = "dynamicQueryAvvisiInvioDocumento"; + _methodName226 = "dynamicQueryAvvisiInvioDocumento"; - _methodParameterTypes220 = new String[] { }; + _methodParameterTypes226 = new String[] { }; - _methodName221 = "countAvvisiInvioSignal"; + _methodName227 = "countAvvisiInvioSignal"; - _methodParameterTypes221 = new String[] { }; + _methodParameterTypes227 = new String[] { }; - _methodName222 = "getAvvisoInvioSignal"; + _methodName228 = "getAvvisoInvioSignal"; - _methodParameterTypes222 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName223 = "getAvvisiInvioSignal"; + _methodName229 = "getAvvisiInvioSignal"; - _methodParameterTypes223 = new String[] { "int", "int" }; + _methodParameterTypes229 = new String[] { "int", "int" }; - _methodName224 = "dynamicQueryAvvisiInvioSignal"; + _methodName230 = "dynamicQueryAvvisiInvioSignal"; - _methodParameterTypes224 = new String[] { "java.lang.Long" }; + _methodParameterTypes230 = new String[] { "java.lang.Long" }; - _methodName225 = "countAvvisiTempistica"; + _methodName231 = "countAvvisiTempistica"; - _methodParameterTypes225 = new String[] { }; + _methodParameterTypes231 = new String[] { }; - _methodName226 = "getAvvisoTempistica"; + _methodName232 = "getAvvisoTempistica"; - _methodParameterTypes226 = new String[] { "long" }; + _methodParameterTypes232 = new String[] { "long" }; - _methodName227 = "getAvvisiTempistica"; + _methodName233 = "getAvvisiTempistica"; - _methodParameterTypes227 = new String[] { "int", "int" }; + _methodParameterTypes233 = new String[] { "int", "int" }; - _methodName228 = "dynamicQueryAvvisiTempistica"; + _methodName234 = "dynamicQueryAvvisiTempistica"; - _methodParameterTypes228 = new String[] { "java.lang.Long" }; + _methodParameterTypes234 = new String[] { "java.lang.Long" }; - _methodName229 = "updateAvvisoDlFileEntryFirma"; + _methodName235 = "updateAvvisoDlFileEntryFirma"; - _methodParameterTypes229 = new String[] { "long", "long" }; + _methodParameterTypes235 = new String[] { "long", "long" }; - _methodName230 = "updateAvvisoPrimaFirma"; + _methodName236 = "updateAvvisoPrimaFirma"; - _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes236 = new String[] { "long", "java.lang.String" }; - _methodName231 = "updateAvvisoRollbackPrimaFirma"; + _methodName237 = "updateAvvisoRollbackPrimaFirma"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName232 = "updateAvvisoDlFileEntryIdBase"; + _methodName238 = "updateAvvisoDlFileEntryIdBase"; - _methodParameterTypes232 = new String[] { "long", "long" }; + _methodParameterTypes238 = new String[] { "long", "long" }; - _methodName233 = "updateAvvisoDlFileEntryIdBaseSingola"; + _methodName239 = "updateAvvisoDlFileEntryIdBaseSingola"; - _methodParameterTypes233 = new String[] { "long", "long" }; + _methodParameterTypes239 = new String[] { "long", "long" }; - _methodName234 = "updateAvvisoDlFileEntryIdBaseAndInvio"; + _methodName240 = "updateAvvisoDlFileEntryIdBaseAndInvio"; - _methodParameterTypes234 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes240 = new String[] { "long", "long", "java.util.Date" }; - _methodName235 = "updateAvvisoDlFileEntryIdInvio"; + _methodName241 = "updateAvvisoDlFileEntryIdInvio"; - _methodParameterTypes235 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes241 = new String[] { "long", "long", "java.util.Date" }; - _methodName236 = "updateAvvisoInvio"; + _methodName242 = "updateAvvisoInvio"; - _methodParameterTypes236 = new String[] { "long" }; + _methodParameterTypes242 = new String[] { "long" }; - _methodName237 = "updateAvvisoErrore"; + _methodName243 = "updateAvvisoErrore"; - _methodParameterTypes237 = new String[] { "long", "boolean" }; + _methodParameterTypes243 = new String[] { "long", "boolean" }; - _methodName238 = "updateAvvisoAnnullato"; + _methodName244 = "updateAvvisoAnnullato"; - _methodParameterTypes238 = new String[] { "long", "boolean" }; + _methodParameterTypes244 = new String[] { "long", "boolean" }; - _methodName239 = "updateAvvisoSignal"; + _methodName245 = "updateAvvisoSignal"; - _methodParameterTypes239 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes245 = new String[] { "long", "java.util.Date" }; - _methodName240 = "updateAvvisoSignal"; + _methodName246 = "updateAvvisoSignal"; - _methodParameterTypes240 = new String[] { "long", "boolean" }; + _methodParameterTypes246 = new String[] { "long", "boolean" }; - _methodName241 = "updateAvvisoTempistica"; + _methodName247 = "updateAvvisoTempistica"; - _methodParameterTypes241 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes247 = new String[] { "long", "java.util.Date" }; - _methodName242 = "updateAvvisoTempistica"; + _methodName248 = "updateAvvisoTempistica"; - _methodParameterTypes242 = new String[] { "long", "boolean" }; + _methodParameterTypes248 = new String[] { "long", "boolean" }; - _methodName243 = "updateAvvisoProtocollo"; + _methodName249 = "updateAvvisoProtocollo"; - _methodParameterTypes243 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes249 = new String[] { "long", "java.lang.String" }; - _methodName244 = "getAvvisoInvioTecnico"; + _methodName250 = "getAvvisoInvioTecnico"; - _methodParameterTypes244 = new String[] { "long" }; + _methodParameterTypes250 = new String[] { "long" }; - _methodName245 = "countAvvisiInvioTecnico"; + _methodName251 = "countAvvisiInvioTecnico"; - _methodParameterTypes245 = new String[] { }; + _methodParameterTypes251 = new String[] { }; - _methodName246 = "getAvvisiInvioTecnico"; + _methodName252 = "getAvvisiInvioTecnico"; - _methodParameterTypes246 = new String[] { "int", "int" }; + _methodParameterTypes252 = new String[] { "int", "int" }; - _methodName248 = "fetchAvvisoByOldAvvisoId"; + _methodName254 = "fetchAvvisoByOldAvvisoId"; - _methodParameterTypes248 = new String[] { "long" }; + _methodParameterTypes254 = new String[] { "long" }; - _methodName249 = "updateAvvisoInviatoTecnico"; + _methodName255 = "updateAvvisoInviatoTecnico"; - _methodParameterTypes249 = new String[] { "long", "boolean" }; + _methodParameterTypes255 = new String[] { "long", "boolean" }; - _methodName250 = "findByClassPk_tipoDocumento"; + _methodName256 = "findByClassPk_tipoDocumento"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes256 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName251 = "findByIntPraticaId_tipoDocumento"; + _methodName257 = "findByIntPraticaId_tipoDocumento"; - _methodParameterTypes251 = new String[] { + _methodParameterTypes257 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName252 = "findByIntPraticaIds_tipoDocumento"; + _methodName258 = "findByIntPraticaIds_tipoDocumento"; - _methodParameterTypes252 = new String[] { "long[][]", "java.lang.String" }; + _methodParameterTypes258 = new String[] { "long[][]", "java.lang.String" }; - _methodName253 = "findByClassPk_ExcludeTipoDocumento"; + _methodName259 = "findByClassPk_ExcludeTipoDocumento"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes259 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName254 = "findByIntPratica"; + _methodName260 = "findByIntPratica"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes260 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName255 = "findByIntPratica_Inviato"; + _methodName261 = "findByIntPratica_Inviato"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes261 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName256 = "countByIntPratica"; + _methodName262 = "countByIntPratica"; - _methodParameterTypes256 = new String[] { "long" }; + _methodParameterTypes262 = new String[] { "long" }; - _methodName257 = "containsFileEntry"; + _methodName263 = "containsFileEntry"; - _methodParameterTypes257 = new String[] { "long", "long[][]", "long" }; + _methodParameterTypes263 = new String[] { "long", "long[][]", "long" }; - _methodName258 = "findByUUID"; + _methodName264 = "findByUUID"; - _methodParameterTypes258 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes264 = new String[] { "java.lang.String", "int", "int" }; - _methodName259 = "countAvvisoByClassPk"; + _methodName265 = "countAvvisoByClassPk"; - _methodParameterTypes259 = new String[] { "long" }; + _methodParameterTypes265 = new String[] { "long" }; - _methodName260 = "countAvvisoByClassPk_ClassName"; + _methodName266 = "countAvvisoByClassPk_ClassName"; - _methodParameterTypes260 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes266 = new String[] { "long", "java.lang.String" }; - _methodName261 = "findByProtocollo"; + _methodName267 = "findByProtocollo"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes267 = new String[] { "long", "long", "java.lang.String" }; - _methodName262 = "fetchByProtocollo"; + _methodName268 = "fetchByProtocollo"; - _methodParameterTypes262 = new String[] { + _methodParameterTypes268 = new String[] { "long", "long", "java.lang.String" }; - _methodName263 = "fetchByProtocollo"; + _methodName269 = "fetchByProtocollo"; - _methodParameterTypes263 = new String[] { "java.lang.String" }; + _methodParameterTypes269 = new String[] { "java.lang.String" }; - _methodName265 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; + _methodName271 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; - _methodParameterTypes265 = new String[] { "long" }; + _methodParameterTypes271 = new String[] { "long" }; - _methodName266 = "getListaAvvisiPerApplet"; + _methodName272 = "getListaAvvisiPerApplet"; - _methodParameterTypes266 = new String[] { "java.lang.String" }; + _methodParameterTypes272 = new String[] { "java.lang.String" }; - _methodName267 = "getAllTipoDocumentoFolderProps"; + _methodName273 = "getAllTipoDocumentoFolderProps"; - _methodParameterTypes267 = new String[] { }; + _methodParameterTypes273 = new String[] { }; - _methodName268 = "getFileNameAvviso"; + _methodName274 = "getFileNameAvviso"; - _methodParameterTypes268 = new String[] { + _methodParameterTypes274 = new String[] { "long", "java.lang.String", "java.lang.Long", "java.lang.String" }; - _methodName269 = "rilasciaFirma"; + _methodName275 = "rilasciaFirma"; - _methodParameterTypes269 = new String[] { "long" }; + _methodParameterTypes275 = new String[] { "long" }; - _methodName270 = "assegnaFirma"; + _methodName276 = "assegnaFirma"; - _methodParameterTypes270 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes276 = new String[] { "long", "java.lang.String" }; - _methodName271 = "getAvvisiWithOldFileEntryIdInvio"; + _methodName277 = "getAvvisiWithOldFileEntryIdInvio"; - _methodParameterTypes271 = new String[] { "int", "int" }; + _methodParameterTypes277 = new String[] { "int", "int" }; - _methodName272 = "getAvvisiWithOldFileEntryIdBase"; + _methodName278 = "getAvvisiWithOldFileEntryIdBase"; - _methodParameterTypes272 = new String[] { "int", "int" }; + _methodParameterTypes278 = new String[] { "int", "int" }; - _methodName273 = "getAvvisiRifiutatiByControlloPraticaId"; + _methodName279 = "getAvvisiRifiutatiByControlloPraticaId"; - _methodParameterTypes273 = new String[] { "long" }; + _methodParameterTypes279 = new String[] { "long" }; - _methodName274 = "addFileFirmato"; + _methodName280 = "addFileFirmato"; - _methodParameterTypes274 = new String[] { + _methodParameterTypes280 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName275 = "simulaFirma"; + _methodName281 = "simulaFirma"; - _methodParameterTypes275 = new String[] { + _methodParameterTypes281 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName276 = "protocolliSearch"; + _methodName282 = "protocolliSearch"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes282 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName277 = "countProtocolliSearch"; + _methodName283 = "countProtocolliSearch"; - _methodParameterTypes277 = new String[] { + _methodParameterTypes283 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName278 = "getAvvisiPerAggiuntaProtocollo"; + _methodName284 = "getAvvisiPerAggiuntaProtocollo"; - _methodParameterTypes278 = new String[] { "int", "int" }; + _methodParameterTypes284 = new String[] { "int", "int" }; + + _methodName285 = "dynamicQueryAggiuntaProtocollo"; - _methodName279 = "dynamicQueryAggiuntaProtocollo"; + _methodParameterTypes285 = new String[] { }; - _methodParameterTypes279 = new String[] { }; + _methodName286 = "findByClassPk"; - _methodName280 = "findByClassPk"; + _methodParameterTypes286 = new String[] { "long" }; - _methodParameterTypes280 = new String[] { "long" }; + _methodName287 = "countAvvisiInvioTecnicoNew"; - _methodName281 = "countAvvisiInvioTecnicoNew"; + _methodParameterTypes287 = new String[] { }; - _methodParameterTypes281 = new String[] { }; + _methodName288 = "getAvvisiInvioTecnicoNew"; - _methodName282 = "getAvvisiInvioTecnicoNew"; + _methodParameterTypes288 = new String[] { "int", "int" }; - _methodParameterTypes282 = new String[] { "int", "int" }; + _methodName290 = "getAvvisoVidimazione"; - _methodName284 = "getAvvisoVidimazione"; + _methodParameterTypes290 = new String[] { "long", "long" }; - _methodParameterTypes284 = new String[] { "long", "long" }; + _methodName291 = "getAvvisoPraticaOspedaliera"; - _methodName285 = "getLastAvvisoIntegrazione"; + _methodParameterTypes291 = new String[] { "long" }; - _methodParameterTypes285 = new String[] { "long" }; + _methodName292 = "getLastAvvisoIntegrazione"; + + _methodParameterTypes292 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -692,20 +696,20 @@ public class AvvisoLocalServiceClpInvoker { return AvvisoLocalServiceUtil.updateAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AvvisoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { AvvisoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -714,8 +718,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[6]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -724,8 +728,8 @@ public class AvvisoLocalServiceClpInvoker { (java.lang.String)arguments[6], ((Long)arguments[7]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -735,8 +739,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[8]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -746,8 +750,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[7]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -758,8 +762,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -771,8 +775,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -786,8 +790,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[13]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AvvisoLocalServiceUtil.addAvvisoForImport((java.lang.String)arguments[0], (java.util.Date)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -802,329 +806,329 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[13]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return AvvisoLocalServiceUtil.search((long[])arguments[0], (java.lang.Long)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return AvvisoLocalServiceUtil.countSearch((long[])arguments[0], (java.lang.Long)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiFirmatiByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmatiByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByNotCF(((Long)arguments[0]).longValue(), (long[])arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByNotCF(((Long)arguments[0]).longValue(), (long[])arguments[1], (java.lang.String)arguments[2]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma(((Long)arguments[0]).longValue(), (long[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirma(((Long)arguments[0]).longValue(), (long[])arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento(); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiGenerazioneDocumento(); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmaDocumento(); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiFirmaDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiFirmaDocumento(); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioDocumento(); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioDocumento(); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioSignal(); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiTempistica(); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoTempistica(((Long)arguments[0]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiTempistica(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiTempistica((java.lang.Long)arguments[0]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryFirma(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoPrimaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoRollbackPrimaFirma(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBase(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBaseSingola(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBaseAndInvio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.Date)arguments[2]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdInvio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.Date)arguments[2]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInvio(((Long)arguments[0]).longValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoErrore(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoAnnullato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioTecnico(((Long)arguments[0]).longValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnico(); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioTecnico(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return AvvisoLocalServiceUtil.fetchAvvisoByOldAvvisoId(((Long)arguments[0]).longValue()); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaIds_tipoDocumento((long[])arguments[0], (java.lang.String)arguments[1]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_ExcludeTipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPratica_Inviato(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -1132,165 +1136,170 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return AvvisoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return AvvisoLocalServiceUtil.containsFileEntry(((Long)arguments[0]).longValue(), (long[])arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return AvvisoLocalServiceUtil.findByUUID((java.lang.String)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return AvvisoLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { return AvvisoLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { return AvvisoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { return AvvisoLocalServiceUtil.fetchLastAvvisoByIntPraticaPerStatoFinale(((Long)arguments[0]).longValue()); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return AvvisoLocalServiceUtil.getListaAvvisiPerApplet((java.lang.String)arguments[0]); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return AvvisoLocalServiceUtil.getAllTipoDocumentoFolderProps(); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return AvvisoLocalServiceUtil.getFileNameAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Long)arguments[2], (java.lang.String)arguments[3]); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { return AvvisoLocalServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return AvvisoLocalServiceUtil.assegnaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiWithOldFileEntryIdInvio(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiWithOldFileEntryIdBase(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiRifiutatiByControlloPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName280.equals(name) && + Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { return AvvisoLocalServiceUtil.addFileFirmato(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName281.equals(name) && + Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { return AvvisoLocalServiceUtil.simulaFirma(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName282.equals(name) && + Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { return AvvisoLocalServiceUtil.protocolliSearch((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName283.equals(name) && + Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { return AvvisoLocalServiceUtil.countProtocolliSearch((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName284.equals(name) && + Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiPerAggiuntaProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName285.equals(name) && + Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAggiuntaProtocollo(); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName286.equals(name) && + Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName287.equals(name) && + Arrays.deepEquals(_methodParameterTypes287, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName288.equals(name) && + Arrays.deepEquals(_methodParameterTypes288, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioTecnicoNew(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName284.equals(name) && - Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { + if (_methodName290.equals(name) && + Arrays.deepEquals(_methodParameterTypes290, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoVidimazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { + if (_methodName291.equals(name) && + Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { + return AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(((Long)arguments[0]).longValue()); + } + + if (_methodName292.equals(name) && + Arrays.deepEquals(_methodParameterTypes292, parameterTypes)) { return AvvisoLocalServiceUtil.getLastAvvisoIntegrazione(((Long)arguments[0]).longValue()); } @@ -1337,22 +1346,10 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -1363,22 +1360,26 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; private String _methodName202; private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; - private String _methodName206; - private String[] _methodParameterTypes206; + private String _methodName205; + private String[] _methodParameterTypes205; private String _methodName207; private String[] _methodParameterTypes207; + private String _methodName208; + private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; private String _methodName210; @@ -1387,14 +1388,10 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; private String _methodName215; private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; private String _methodName219; @@ -1453,6 +1450,8 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes245; private String _methodName246; private String[] _methodParameterTypes246; + private String _methodName247; + private String[] _methodParameterTypes247; private String _methodName248; private String[] _methodParameterTypes248; private String _methodName249; @@ -1463,8 +1462,6 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes251; private String _methodName252; private String[] _methodParameterTypes252; - private String _methodName253; - private String[] _methodParameterTypes253; private String _methodName254; private String[] _methodParameterTypes254; private String _methodName255; @@ -1485,6 +1482,8 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes262; private String _methodName263; private String[] _methodParameterTypes263; + private String _methodName264; + private String[] _methodParameterTypes264; private String _methodName265; private String[] _methodParameterTypes265; private String _methodName266; @@ -1495,8 +1494,6 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes268; private String _methodName269; private String[] _methodParameterTypes269; - private String _methodName270; - private String[] _methodParameterTypes270; private String _methodName271; private String[] _methodParameterTypes271; private String _methodName272; @@ -1521,8 +1518,22 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes281; private String _methodName282; private String[] _methodParameterTypes282; + private String _methodName283; + private String[] _methodParameterTypes283; private String _methodName284; private String[] _methodParameterTypes284; private String _methodName285; private String[] _methodParameterTypes285; + private String _methodName286; + private String[] _methodParameterTypes286; + private String _methodName287; + private String[] _methodParameterTypes287; + private String _methodName288; + private String[] _methodParameterTypes288; + private String _methodName290; + private String[] _methodParameterTypes290; + private String _methodName291; + private String[] _methodParameterTypes291; + private String _methodName292; + private String[] _methodParameterTypes292; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java index 2fcffd0c..5b646241 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java index 66dda734..18ba767e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java @@ -24,45 +24,45 @@ import java.util.Arrays; */ public class AvvisoServiceClpInvoker { public AvvisoServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "rilasciaFirma"; + _methodName172 = "rilasciaFirma"; - _methodParameterTypes166 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes172 = new String[] { "long", "java.lang.String" }; - _methodName167 = "assegnaFirma"; + _methodName173 = "assegnaFirma"; - _methodParameterTypes167 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes173 = new String[] { "long", "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AvvisoServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { AvvisoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AvvisoServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return AvvisoServiceUtil.assegnaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } @@ -70,12 +70,12 @@ public class AvvisoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java index 35cd6450..413e2b3f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1342,6 +1343,63 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1999,6 +2057,12 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java index 2c605d45..bdf64b03 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java @@ -122,152 +122,152 @@ public class CollaudoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName183 = "addCollaudo"; + _methodName189 = "addCollaudo"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName184 = "deleteCollaudo"; + _methodName190 = "deleteCollaudo"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes190 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName185 = "deleteCollaudo"; + _methodName191 = "deleteCollaudo"; - _methodParameterTypes185 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName186 = "updateCollaudo"; + _methodName192 = "updateCollaudo"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName187 = "getLastEditable"; + _methodName193 = "getLastEditable"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName188 = "getLastCompleted"; + _methodName194 = "getLastCompleted"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName189 = "updateEsitoPagamento"; + _methodName195 = "updateEsitoPagamento"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "long", "java.lang.String" }; - _methodName190 = "updateEsitoPagamento"; + _methodName196 = "updateEsitoPagamento"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName191 = "updateEsito"; + _methodName197 = "updateEsito"; - _methodParameterTypes191 = new String[] { "long", "int" }; + _methodParameterTypes197 = new String[] { "long", "int" }; - _methodName194 = "updateCollaudoProtocollo"; + _methodName200 = "updateCollaudoProtocollo"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName195 = "findByProtocollo"; + _methodName201 = "findByProtocollo"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "long", "java.lang.String" }; - _methodName196 = "fetchByProtocollo"; + _methodName202 = "fetchByProtocollo"; - _methodParameterTypes196 = new String[] { "java.lang.String" }; + _methodParameterTypes202 = new String[] { "java.lang.String" }; - _methodName197 = "pagaInvia"; + _methodName203 = "pagaInvia"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName198 = "findByIntPraticaId"; + _methodName204 = "findByIntPraticaId"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes204 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName199 = "countByIntPraticaId"; + _methodName205 = "countByIntPraticaId"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long" }; - _methodName200 = "findByIntPraticaId_Parziale"; + _methodName206 = "findByIntPraticaId_Parziale"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes206 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "countByIntPraticaId_Parziale"; + _methodName207 = "countByIntPraticaId_Parziale"; - _methodParameterTypes201 = new String[] { "long", "boolean" }; + _methodParameterTypes207 = new String[] { "long", "boolean" }; - _methodName202 = "findByIntPraticaId_Completata"; + _methodName208 = "findByIntPraticaId_Completata"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByIntPraticaId_Completata"; + _methodName209 = "countByIntPraticaId_Completata"; - _methodParameterTypes203 = new String[] { "long", "boolean" }; + _methodParameterTypes209 = new String[] { "long", "boolean" }; - _methodName204 = "findByCodiceFiscale_Completata"; + _methodName210 = "findByCodiceFiscale_Completata"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName205 = "countByCodiceFiscale_Completata"; + _methodName211 = "countByCodiceFiscale_Completata"; - _methodParameterTypes205 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes211 = new String[] { "java.lang.String", "boolean" }; - _methodName206 = "findByIntPraticaId_Parziale_leCollaudoId"; + _methodName212 = "findByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes212 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "countByIntPraticaId_Parziale_leCollaudoId"; + _methodName213 = "countByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes207 = new String[] { "long", "long", "boolean" }; + _methodParameterTypes213 = new String[] { "long", "long", "boolean" }; - _methodName208 = "findCollaudiCompletiNotProtocollo"; + _methodName214 = "findCollaudiCompletiNotProtocollo"; - _methodParameterTypes208 = new String[] { "int", "int" }; + _methodParameterTypes214 = new String[] { "int", "int" }; - _methodName209 = "countCollaudiCompletiNotProtocollo"; + _methodName215 = "countCollaudiCompletiNotProtocollo"; - _methodParameterTypes209 = new String[] { }; + _methodParameterTypes215 = new String[] { }; - _methodName211 = "findCollaudiCompletiNotGestiti"; + _methodName217 = "findCollaudiCompletiNotGestiti"; - _methodParameterTypes211 = new String[] { "int", "int" }; + _methodParameterTypes217 = new String[] { "int", "int" }; - _methodName212 = "countCollaudiCompletiNotGestiti"; + _methodName218 = "countCollaudiCompletiNotGestiti"; - _methodParameterTypes212 = new String[] { }; + _methodParameterTypes218 = new String[] { }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -383,36 +383,36 @@ public class CollaudoLocalServiceClpInvoker { return CollaudoLocalServiceUtil.updateCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return CollaudoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { CollaudoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return CollaudoLocalServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -423,26 +423,26 @@ public class CollaudoLocalServiceClpInvoker { (java.lang.String)arguments[8]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return CollaudoLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return CollaudoLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { CollaudoLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { CollaudoLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -450,51 +450,51 @@ public class CollaudoLocalServiceClpInvoker { return null; } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return CollaudoLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return CollaudoLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return CollaudoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return CollaudoLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -502,14 +502,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -517,14 +517,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return CollaudoLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -532,14 +532,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return CollaudoLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -548,32 +548,32 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotProtocollo(); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotGestiti(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotGestiti(); } @@ -620,28 +620,20 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; + private String _methodName182; + private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; private String _methodName190; private String[] _methodParameterTypes190; private String _methodName191; private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; private String _methodName194; private String[] _methodParameterTypes194; private String _methodName195; @@ -650,10 +642,6 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes196; private String _methodName197; private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; private String _methodName201; @@ -674,8 +662,20 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; + private String _methodName213; + private String[] _methodParameterTypes213; + private String _methodName214; + private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; + private String _methodName217; + private String[] _methodParameterTypes217; + private String _methodName218; + private String[] _methodParameterTypes218; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java index 9e4a8b12..2c92d55a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java index b9adb3d0..578239a8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java @@ -24,105 +24,105 @@ import java.util.Arrays; */ public class CollaudoServiceClpInvoker { public CollaudoServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "getCollaudo"; + _methodName168 = "getCollaudo"; - _methodParameterTypes162 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName163 = "addCollaudo"; + _methodName169 = "addCollaudo"; - _methodParameterTypes163 = new String[] { + _methodParameterTypes169 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName164 = "deleteCollaudo"; + _methodName170 = "deleteCollaudo"; - _methodParameterTypes164 = new String[] { + _methodParameterTypes170 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName165 = "deleteCollaudo"; + _methodName171 = "deleteCollaudo"; - _methodParameterTypes165 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long" }; - _methodName166 = "updateCollaudo"; + _methodName172 = "updateCollaudo"; - _methodParameterTypes166 = new String[] { + _methodParameterTypes172 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName167 = "findByCodiceFiscale_Completata"; + _methodName173 = "findByCodiceFiscale_Completata"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes173 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName168 = "countByCodiceFiscale_Completata"; + _methodName174 = "countByCodiceFiscale_Completata"; - _methodParameterTypes168 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes174 = new String[] { "java.lang.String", "boolean" }; - _methodName169 = "getLastEditable"; + _methodName175 = "getLastEditable"; - _methodParameterTypes169 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName170 = "pagaInvia"; + _methodName176 = "pagaInvia"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName171 = "updateEsito"; + _methodName177 = "updateEsito"; - _methodParameterTypes171 = new String[] { "long", "int" }; + _methodParameterTypes177 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return CollaudoServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { CollaudoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return CollaudoServiceUtil.getCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return CollaudoServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName164.equals(name) && - Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName165.equals(name) && - Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return CollaudoServiceUtil.updateCollaudo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -133,8 +133,8 @@ public class CollaudoServiceClpInvoker { (java.lang.String)arguments[8]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return CollaudoServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -142,26 +142,26 @@ public class CollaudoServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return CollaudoServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return CollaudoServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return CollaudoServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return CollaudoServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -169,22 +169,10 @@ public class CollaudoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; - private String _methodName164; - private String[] _methodParameterTypes164; - private String _methodName165; - private String[] _methodParameterTypes165; - private String _methodName166; - private String[] _methodParameterTypes166; - private String _methodName167; - private String[] _methodParameterTypes167; private String _methodName168; private String[] _methodParameterTypes168; private String _methodName169; @@ -193,4 +181,16 @@ public class CollaudoServiceClpInvoker { private String[] _methodParameterTypes170; private String _methodName171; private String[] _methodParameterTypes171; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java index a4f85630..ee5ed86a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1310,6 +1311,63 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1967,6 +2025,12 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java index bc69c3ea..492df201 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java @@ -114,132 +114,138 @@ public class ComuneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Comune" }; - _methodName174 = "getBeanIdentifier"; + _methodName180 = "getBeanIdentifier"; - _methodParameterTypes174 = new String[] { }; + _methodParameterTypes180 = new String[] { }; - _methodName175 = "setBeanIdentifier"; + _methodName181 = "setBeanIdentifier"; - _methodParameterTypes175 = new String[] { "java.lang.String" }; + _methodParameterTypes181 = new String[] { "java.lang.String" }; - _methodName180 = "addComune"; + _methodName186 = "addComune"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes186 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", - "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "addComune"; + _methodName187 = "addComune"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "java.lang.String", "java.lang.String", + "boolean", "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName182 = "countByCompanyId"; + _methodName188 = "countByCompanyId"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName183 = "countByKeywords"; + _methodName189 = "countByKeywords"; - _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName184 = "deleteByCompanyId"; + _methodName190 = "deleteByCompanyId"; - _methodParameterTypes184 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName185 = "deleteComune"; + _methodName191 = "deleteComune"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes191 = new String[] { "it.tref.liferay.portos.bo.model.Comune" }; - _methodName186 = "deleteComune"; + _methodName192 = "deleteComune"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName187 = "fetchByC_CB"; + _methodName193 = "fetchByC_CB"; - _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName188 = "fetchByC_CI"; + _methodName194 = "fetchByC_CI"; - _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; - _methodName189 = "findByC_CP"; + _methodName195 = "findByC_CP"; - _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; - _methodName190 = "findByCompanyDenominazione"; + _methodName196 = "findByCompanyDenominazione"; - _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; - _methodName191 = "findByCompanyId"; + _methodName197 = "findByCompanyId"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName192 = "findByCompanyId"; + _methodName198 = "findByCompanyId"; - _methodParameterTypes192 = new String[] { "long", "int", "int" }; + _methodParameterTypes198 = new String[] { "long", "int", "int" }; - _methodName193 = "findByCompanyId"; + _methodName199 = "findByCompanyId"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName194 = "findByCompanyIdCodiceProvincia"; + _methodName200 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName195 = "findByCompanyIdCodiceProvincia"; + _methodName201 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName196 = "findByKeywords"; + _methodName202 = "findByKeywords"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName197 = "getStatiEsteri"; + _methodName203 = "getStatiEsteri"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes203 = new String[] { "long" }; + + _methodName204 = "setPraticaOspedaliera"; - _methodName198 = "updateComune"; + _methodParameterTypes204 = new String[] { + "long", "boolean", "com.liferay.portal.service.ServiceContext" + }; + + _methodName205 = "updateComune"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes205 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", - "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "updateComune"; + _methodName206 = "updateComune"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes206 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", - "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "getComuniForOrganizationByUserId"; + _methodName207 = "getComuniForOrganizationByUserId"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes207 = new String[] { "long" }; - _methodName201 = "getComuniForOrganizationByUserIdUfficioId"; + _methodName208 = "getComuniForOrganizationByUserIdUfficioId"; - _methodParameterTypes201 = new String[] { "long", "long" }; + _methodParameterTypes208 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -343,20 +349,20 @@ public class ComuneLocalServiceClpInvoker { return ComuneLocalServiceUtil.updateComune((it.tref.liferay.portos.bo.model.Comune)arguments[0]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ComuneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { ComuneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ComuneLocalServiceUtil.addComune(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -364,100 +370,102 @@ public class ComuneLocalServiceClpInvoker { ((Boolean)arguments[6]).booleanValue(), ((Boolean)arguments[7]).booleanValue(), (java.lang.String)arguments[8], (java.lang.String)arguments[9], - (com.liferay.portal.service.ServiceContext)arguments[10]); + ((Boolean)arguments[10]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ComuneLocalServiceUtil.addComune(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[5], ((Boolean)arguments[6]).booleanValue(), (java.lang.String)arguments[7], (java.lang.String)arguments[8], - (com.liferay.portal.service.ServiceContext)arguments[9]); + ((Boolean)arguments[9]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ComuneLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ComuneLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { ComuneLocalServiceUtil.deleteByCompanyId(((Long)arguments[0]).longValue()); return null; } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune((it.tref.liferay.portos.bo.model.Comune)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CB(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CI(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ComuneLocalServiceUtil.findByC_CP(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyDenominazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -465,8 +473,8 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return ComuneLocalServiceUtil.findByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -474,13 +482,20 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return ComuneLocalServiceUtil.getStatiEsteri(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + return ComuneLocalServiceUtil.setPraticaOspedaliera(((Long)arguments[0]).longValue(), + ((Boolean)arguments[1]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[2]); + } + + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -488,27 +503,29 @@ public class ComuneLocalServiceClpInvoker { ((Boolean)arguments[6]).booleanValue(), ((Boolean)arguments[7]).booleanValue(), (java.lang.String)arguments[8], (java.lang.String)arguments[9], - (com.liferay.portal.service.ServiceContext)arguments[10]); + ((Boolean)arguments[10]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[5], ((Boolean)arguments[6]).booleanValue(), (java.lang.String)arguments[7], (java.lang.String)arguments[8], - (com.liferay.portal.service.ServiceContext)arguments[9]); + ((Boolean)arguments[9]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserId(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -552,22 +569,10 @@ public class ComuneLocalServiceClpInvoker { private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; private String _methodName180; private String[] _methodParameterTypes180; private String _methodName181; private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; @@ -600,4 +605,18 @@ public class ComuneLocalServiceClpInvoker { private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; + private String _methodName204; + private String[] _methodParameterTypes204; + private String _methodName205; + private String[] _methodParameterTypes205; + private String _methodName206; + private String[] _methodParameterTypes206; + private String _methodName207; + private String[] _methodParameterTypes207; + private String _methodName208; + private String[] _methodParameterTypes208; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java index 67bdb02d..557535b9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java index 1a5a01fa..0bcf9a09 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java @@ -24,44 +24,44 @@ import java.util.Arrays; */ public class ComuneServiceClpInvoker { public ComuneServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "getComune"; + _methodName168 = "getComune"; - _methodParameterTypes162 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName163 = "getComunes"; + _methodName169 = "getComunes"; - _methodParameterTypes163 = new String[] { "int", "int" }; + _methodParameterTypes169 = new String[] { "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return ComuneServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { ComuneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return ComuneServiceUtil.getComune(((Long)arguments[0]).longValue()); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return ComuneServiceUtil.getComunes(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } @@ -69,12 +69,12 @@ public class ComuneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java index 61935649..25ec754e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1347,6 +1348,63 @@ public abstract class ComunicazioneLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2004,6 +2062,12 @@ public abstract class ComunicazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java index e5aeb26c..4016cd2b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java @@ -122,43 +122,43 @@ public class ComunicazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Comunicazione" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName182 = "addComunicazione"; + _methodName188 = "addComunicazione"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "updateComunicazione"; + _methodName189 = "updateComunicazione"; - _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName184 = "findByIntPratica"; + _methodName190 = "findByIntPratica"; - _methodParameterTypes184 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName185 = "findByIntPratica"; + _methodName191 = "findByIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes191 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPratica"; + _methodName192 = "countByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName187 = "countNotAnsweredByIntPratica"; + _methodName193 = "countNotAnsweredByIntPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -274,52 +274,52 @@ public class ComunicazioneLocalServiceClpInvoker { return ComunicazioneLocalServiceUtil.updateComunicazione((it.tref.liferay.portos.bo.model.Comunicazione)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ComunicazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { ComunicazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ComunicazioneLocalServiceUtil.addComunicazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ComunicazioneLocalServiceUtil.updateComunicazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ComunicazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ComunicazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ComunicazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ComunicazioneLocalServiceUtil.countNotAnsweredByIntPratica(((Long)arguments[0]).longValue()); } @@ -366,20 +366,20 @@ public class ComunicazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; private String _methodName182; private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java index 5c0289ec..a889e40b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java index 6c83797d..96d18ae2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java @@ -24,50 +24,50 @@ import java.util.Arrays; */ public class ComunicazioneServiceClpInvoker { public ComunicazioneServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "addComunicazione"; + _methodName168 = "addComunicazione"; - _methodParameterTypes162 = new String[] { + _methodParameterTypes168 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName163 = "updateComunicazione"; + _methodName169 = "updateComunicazione"; - _methodParameterTypes163 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes169 = new String[] { "long", "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return ComunicazioneServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { ComunicazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return ComunicazioneServiceUtil.addComunicazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return ComunicazioneServiceUtil.updateComunicazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } @@ -75,12 +75,12 @@ public class ComunicazioneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java index f9ccfabb..c35136e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1348,6 +1349,63 @@ public abstract class ConfigurazioneLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2005,6 +2063,12 @@ public abstract class ConfigurazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java index fa66ea4c..48e323ff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java @@ -122,52 +122,52 @@ public class ConfigurazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Configurazione" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName182 = "findByC_ChiaveList"; + _methodName188 = "findByC_ChiaveList"; - _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; - _methodName183 = "findByC_ChiaveLong"; + _methodName189 = "findByC_ChiaveLong"; - _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName184 = "findByC_ChiaveString"; + _methodName190 = "findByC_ChiaveString"; - _methodParameterTypes184 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; - _methodName185 = "getAndIncrement"; + _methodName191 = "getAndIncrement"; - _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String" }; - _methodName186 = "isDeveloper"; + _methodName192 = "isDeveloper"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName187 = "isDeveloper"; + _methodName193 = "isDeveloper"; - _methodParameterTypes187 = new String[] { "com.liferay.portal.model.User" }; + _methodParameterTypes193 = new String[] { "com.liferay.portal.model.User" }; - _methodName188 = "isProduction"; + _methodName194 = "isProduction"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes194 = new String[] { }; - _methodName189 = "storeConfig"; + _methodName195 = "storeConfig"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "java.lang.String", "java.util.List", "com.liferay.portal.service.ServiceContext" }; - _methodName190 = "storeConfig"; + _methodName196 = "storeConfig"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -286,66 +286,66 @@ public class ConfigurazioneLocalServiceClpInvoker { return ConfigurazioneLocalServiceUtil.updateConfigurazione((it.tref.liferay.portos.bo.model.Configurazione)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ConfigurazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { ConfigurazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveList(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ConfigurazioneLocalServiceUtil.getAndIncrement(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ConfigurazioneLocalServiceUtil.isDeveloper(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ConfigurazioneLocalServiceUtil.isDeveloper((com.liferay.portal.model.User)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ConfigurazioneLocalServiceUtil.isProduction(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ConfigurazioneLocalServiceUtil.storeConfig((java.lang.String)arguments[0], (java.util.List)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return ConfigurazioneLocalServiceUtil.storeConfig((java.lang.String)arguments[0], (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -394,26 +394,26 @@ public class ConfigurazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; private String _methodName182; private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; private String _methodName190; private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java index 88f7b796..81e0d496 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java index 17898265..4e78e2d1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java @@ -24,25 +24,25 @@ import java.util.Arrays; */ public class ConfigurazioneServiceClpInvoker { public ConfigurazioneServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "findByC_ChiaveLong"; + _methodName168 = "findByC_ChiaveLong"; - _methodParameterTypes162 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes168 = new String[] { "long", "java.lang.String" }; - _methodName163 = "findByC_ChiaveString"; + _methodName169 = "findByC_ChiaveString"; - _methodParameterTypes163 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes169 = new String[] { "long", "java.lang.String" }; - _methodName164 = "storeConfig"; + _methodName170 = "storeConfig"; - _methodParameterTypes164 = new String[] { + _methodParameterTypes170 = new String[] { "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -50,32 +50,32 @@ public class ConfigurazioneServiceClpInvoker { public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return ConfigurazioneServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { ConfigurazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName164.equals(name) && - Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { ConfigurazioneServiceUtil.storeConfig((java.lang.String)arguments[0], (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -86,14 +86,14 @@ public class ConfigurazioneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; - private String _methodName164; - private String[] _methodParameterTypes164; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java index 097dee4b..cf3f7eb3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java @@ -57,6 +57,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1356,6 +1357,63 @@ public abstract class ControlloPraticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2260,6 +2318,12 @@ public abstract class ControlloPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java index 8cd07fd8..b1d91068 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java @@ -122,127 +122,131 @@ public class ControlloPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName202 = "getBeanIdentifier"; + _methodName208 = "getBeanIdentifier"; - _methodParameterTypes202 = new String[] { }; + _methodParameterTypes208 = new String[] { }; - _methodName203 = "setBeanIdentifier"; + _methodName209 = "setBeanIdentifier"; - _methodParameterTypes203 = new String[] { "java.lang.String" }; + _methodParameterTypes209 = new String[] { "java.lang.String" }; - _methodName208 = "addControlloPratica"; + _methodName214 = "addControlloPratica"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes214 = new String[] { "long", "long", "long", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName209 = "deleteControlloPratica"; + _methodName215 = "deleteControlloPratica"; - _methodParameterTypes209 = new String[] { "long" }; + _methodParameterTypes215 = new String[] { "long" }; - _methodName210 = "deleteControlloPratica"; + _methodName216 = "deleteControlloPratica"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName211 = "findByIntPraticaId_Status"; + _methodName217 = "findByIntPraticaId_Status"; - _methodParameterTypes211 = new String[] { "long", "int" }; + _methodParameterTypes217 = new String[] { "long", "int" }; - _methodName212 = "countByIntPraticaId_Status"; + _methodName218 = "countByIntPraticaId_Status"; - _methodParameterTypes212 = new String[] { "long", "int" }; + _methodParameterTypes218 = new String[] { "long", "int" }; - _methodName213 = "updateAsset"; + _methodName219 = "updateAsset"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes219 = new String[] { "long", "it.tref.liferay.portos.bo.model.ControlloPratica", "long[][]", "java.lang.String[][]", "long[][]", "java.util.Date" }; - _methodName214 = "deleteAsset"; + _methodName220 = "deleteAsset"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes220 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName215 = "updateStatus"; + _methodName221 = "updateStatus"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes221 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext", "java.util.List" }; - _methodName216 = "generazioneDocumento"; + _methodName222 = "generazioneDocumento"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes222 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.util.Map" }; - _methodName217 = "updateStatoPraticaGeneraDocumentoFinale"; + _methodName223 = "updateStatoPraticaGeneraDocumentoFinale"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes223 = new String[] { "long", "java.lang.String", "long", "java.util.Map" }; - _methodName218 = "generaDocumentoFinale"; + _methodName224 = "generaDocumentoFinale"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes224 = new String[] { "long", "java.lang.String", "long", "java.util.Map" }; - _methodName219 = "updateIstruttore"; + _methodName225 = "updateIstruttore"; - _methodParameterTypes219 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes225 = new String[] { "long", "java.util.Map" }; - _methodName220 = "valutazioneEsitoFinale"; + _methodName226 = "valutazioneEsitoFinale"; - _methodParameterTypes220 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes226 = new String[] { "long", "java.util.Map" }; - _methodName221 = "valutazioneEsitoFinaleUpdateStatoPratica"; + _methodName227 = "valutazioneEsitoFinaleUpdateStatoPratica"; - _methodParameterTypes221 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes227 = new String[] { "long", "java.util.Map" }; - _methodName223 = "aggiornaStatoPerRichiestaIntegrazione"; + _methodName229 = "aggiornaStatoPerRichiestaIntegrazione"; - _methodParameterTypes223 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes229 = new String[] { "long", "java.util.Map" }; - _methodName224 = "getJsonListaIstruttori"; + _methodName230 = "getJsonListaIstruttori"; - _methodParameterTypes224 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes230 = new String[] { "long", "java.util.Map" }; - _methodName225 = "getJsonEsitoPratica"; + _methodName231 = "getJsonEsitoPratica"; - _methodParameterTypes225 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes231 = new String[] { "long", "java.util.Map" }; - _methodName226 = "addPraticheAlControllo"; + _methodName232 = "addPraticheAlControllo"; - _methodParameterTypes226 = new String[] { "long", "long" }; + _methodParameterTypes232 = new String[] { "long", "long" }; - _methodName227 = "addPraticheAlControlloVarianti"; + _methodName233 = "addPraticheAlControlloVarianti"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes233 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName228 = "getReturnValueScriptIniziale"; + _methodName234 = "getReturnValueScriptIniziale"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes234 = new String[] { "long" }; - _methodName229 = "getTipoEsito"; + _methodName235 = "getTipoEsito"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes235 = new String[] { "long" }; - _methodName230 = "findByIntPratica"; + _methodName236 = "findByIntPratica"; - _methodParameterTypes230 = new String[] { "long" }; + _methodParameterTypes236 = new String[] { "long" }; - _methodName231 = "calculateDateAvvioProcedimento"; + _methodName237 = "countByIntPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; + + _methodName238 = "calculateDateAvvioProcedimento"; + + _methodParameterTypes238 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -358,20 +362,20 @@ public class ControlloPraticaLocalServiceClpInvoker { return ControlloPraticaLocalServiceUtil.updateControlloPratica((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { ControlloPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addControlloPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -380,30 +384,30 @@ public class ControlloPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return ControlloPraticaLocalServiceUtil.countByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateAsset(((Long)arguments[0]).longValue(), (it.tref.liferay.portos.bo.model.ControlloPratica)arguments[1], (long[])arguments[2], (java.lang.String[])arguments[3], @@ -412,15 +416,15 @@ public class ControlloPraticaLocalServiceClpInvoker { return null; } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { ControlloPraticaLocalServiceUtil.deleteAsset((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); return null; } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return ControlloPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -428,100 +432,105 @@ public class ControlloPraticaLocalServiceClpInvoker { (java.util.List)arguments[4]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return ControlloPraticaLocalServiceUtil.generazioneDocumento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), (java.util.Map)arguments[4]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return ControlloPraticaLocalServiceUtil.updateStatoPraticaGeneraDocumentoFinale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), (java.util.Map)arguments[3]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return ControlloPraticaLocalServiceUtil.generaDocumentoFinale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), (java.util.Map)arguments[3]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateIstruttore(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return ControlloPraticaLocalServiceUtil.valutazioneEsitoFinale(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return ControlloPraticaLocalServiceUtil.valutazioneEsitoFinaleUpdateStatoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { ControlloPraticaLocalServiceUtil.aggiornaStatoPerRichiestaIntegrazione(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonListaIstruttori(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonEsitoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addPraticheAlControllo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getReturnValueScriptIniziale(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getTipoEsito(((Long)arguments[0]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + return ControlloPraticaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); + } + + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue()); } @@ -568,22 +577,10 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; @@ -600,6 +597,8 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; + private String _methodName222; + private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; private String _methodName224; @@ -610,12 +609,24 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes226; private String _methodName227; private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; private String _methodName229; private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; private String _methodName231; private String[] _methodParameterTypes231; + private String _methodName232; + private String[] _methodParameterTypes232; + private String _methodName233; + private String[] _methodParameterTypes233; + private String _methodName234; + private String[] _methodParameterTypes234; + private String _methodName235; + private String[] _methodParameterTypes235; + private String _methodName236; + private String[] _methodParameterTypes236; + private String _methodName237; + private String[] _methodParameterTypes237; + private String _methodName238; + private String[] _methodParameterTypes238; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java index 2056149d..f1d7dcd8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java @@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1062,6 +1063,63 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1961,6 +2019,12 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java index 4666fa42..67e99a1e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class ControlloPraticaServiceClpInvoker { public ControlloPraticaServiceClpInvoker() { - _methodName182 = "getBeanIdentifier"; + _methodName188 = "getBeanIdentifier"; - _methodParameterTypes182 = new String[] { }; + _methodParameterTypes188 = new String[] { }; - _methodName183 = "setBeanIdentifier"; + _methodName189 = "setBeanIdentifier"; - _methodParameterTypes183 = new String[] { "java.lang.String" }; + _methodParameterTypes189 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ControlloPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { ControlloPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class ControlloPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java index efad90f5..0db4a3e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1339,6 +1340,63 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2034,6 +2092,12 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java index 2b138097..5aec599a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java @@ -122,236 +122,236 @@ public class DelegaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "addDelega"; + _methodName192 = "addDelega"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName187 = "cambioStato"; + _methodName193 = "cambioStato"; - _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName188 = "concludiDeleghePagamento"; + _methodName194 = "concludiDeleghePagamento"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName189 = "deleteDelega"; + _methodName195 = "deleteDelega"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName190 = "deleteDelega"; + _methodName196 = "deleteDelega"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName191 = "findByIntPratica"; + _methodName197 = "findByIntPratica"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName192 = "findByDettPratica"; + _methodName198 = "findByDettPratica"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByIntPratica"; + _methodName199 = "countByIntPratica"; - _methodParameterTypes193 = new String[] { "long" }; + _methodParameterTypes199 = new String[] { "long" }; - _methodName194 = "countByDettPratica"; + _methodName200 = "countByDettPratica"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName195 = "findByIntPratica_CodiceFiscale"; + _methodName201 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName196 = "findByCodiceFiscale"; + _methodName202 = "findByCodiceFiscale"; - _methodParameterTypes196 = new String[] { "java.lang.String" }; + _methodParameterTypes202 = new String[] { "java.lang.String" }; - _methodName197 = "countByIntPratica_CodiceFiscale"; + _methodName203 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes203 = new String[] { "long", "java.lang.String" }; - _methodName198 = "findByCodiceFiscale_InEsito"; + _methodName204 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes204 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName199 = "countByCodiceFiscale_InEsito"; + _methodName205 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes205 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName200 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName206 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName207 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName202 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName208 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName209 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes209 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName204 = "findByIntPratica_InEsito"; + _methodName210 = "findByIntPratica_InEsito"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName205 = "countByIntPratica_InEsito"; + _methodName211 = "countByIntPratica_InEsito"; - _methodParameterTypes205 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String[][]" }; - _methodName206 = "findByDettPratica_InEsito"; + _methodName212 = "findByDettPratica_InEsito"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "findCfByDettPratica_InEsito"; + _methodName213 = "findCfByDettPratica_InEsito"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes213 = new String[] { "long", "java.lang.String[][]" }; - _methodName208 = "findByDettPratica_InEsito"; + _methodName214 = "findByDettPratica_InEsito"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes214 = new String[] { "long", "java.lang.String[][]" }; - _methodName209 = "findCfByDettPratica_Tipologia_InEsito"; + _methodName215 = "findCfByDettPratica_Tipologia_InEsito"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName210 = "findByDettPratica_Tipologia_InEsito"; + _methodName216 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName212 = "countByDettPratica_InEsito"; + _methodName218 = "countByDettPratica_InEsito"; - _methodParameterTypes212 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes218 = new String[] { "long", "java.lang.String[][]" }; - _methodName213 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName219 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes219 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName214 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName220 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes220 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName215 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName221 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName216 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName222 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes222 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName217 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName223 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes223 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByDettPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName224 = "countByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes224 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName219 = "findByIntPratica_Tipologia_InEsito"; + _methodName225 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes225 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName220 = "findByDettPratica_Tipologia_InEsito"; + _methodName226 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes226 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName221 = "countByIntPratica_Tipologia_InEsito"; + _methodName227 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName222 = "findByDettPratica_Tipologia_InEsito"; + _methodName228 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes228 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName223 = "countByDettPratica_Tipologia_InEsito"; + _methodName229 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName224 = "generaDocumentoConcludiDelegaGeologo"; + _methodName230 = "generaDocumentoConcludiDelegaGeologo"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes230 = new String[] { "long", "it.tref.liferay.portos.bo.model.Delega", "com.liferay.portal.service.ServiceContext" }; @@ -470,20 +470,20 @@ public class DelegaLocalServiceClpInvoker { return DelegaLocalServiceUtil.updateDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DelegaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { DelegaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DelegaLocalServiceUtil.addDelega(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -491,57 +491,57 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DelegaLocalServiceUtil.cambioStato(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { DelegaLocalServiceUtil.concludiDeleghePagamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -549,19 +549,19 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale((java.lang.String)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -569,14 +569,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DelegaLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -585,14 +585,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -601,14 +601,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -616,14 +616,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -631,40 +631,40 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DelegaLocalServiceUtil.findCfByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -673,14 +673,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DelegaLocalServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -689,15 +689,15 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -707,16 +707,16 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -725,8 +725,8 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -735,14 +735,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2], @@ -751,15 +751,15 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { DelegaLocalServiceUtil.generaDocumentoConcludiDelegaGeologo(((Long)arguments[0]).longValue(), (it.tref.liferay.portos.bo.model.Delega)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -810,22 +810,10 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -864,6 +852,8 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; + private String _methodName211; + private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; private String _methodName213; @@ -874,8 +864,6 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; private String _methodName219; @@ -890,4 +878,16 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; + private String _methodName225; + private String[] _methodParameterTypes225; + private String _methodName226; + private String[] _methodParameterTypes226; + private String _methodName227; + private String[] _methodParameterTypes227; + private String _methodName228; + private String[] _methodParameterTypes228; + private String _methodName229; + private String[] _methodParameterTypes229; + private String _methodName230; + private String[] _methodParameterTypes230; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java index 6588e459..11ce90a6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java index 51f1350a..72cfdf3c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java @@ -24,193 +24,193 @@ import java.util.Arrays; */ public class DelegaServiceClpInvoker { public DelegaServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "addDelega"; + _methodName172 = "addDelega"; - _methodParameterTypes166 = new String[] { + _methodParameterTypes172 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName167 = "annullaDelega"; + _methodName173 = "annullaDelega"; - _methodParameterTypes167 = new String[] { "long" }; + _methodParameterTypes173 = new String[] { "long" }; - _methodName168 = "annullaDelega"; + _methodName174 = "annullaDelega"; - _methodParameterTypes168 = new String[] { + _methodParameterTypes174 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName169 = "deleteDelega"; + _methodName175 = "deleteDelega"; - _methodParameterTypes169 = new String[] { + _methodParameterTypes175 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName170 = "deleteDelega"; + _methodName176 = "deleteDelega"; - _methodParameterTypes170 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName171 = "cambioStato"; + _methodName177 = "cambioStato"; - _methodParameterTypes171 = new String[] { + _methodParameterTypes177 = new String[] { "long", "long", "java.lang.String" }; - _methodName172 = "findByIntPratica"; + _methodName178 = "findByIntPratica"; - _methodParameterTypes172 = new String[] { + _methodParameterTypes178 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName173 = "findByDettPratica"; + _methodName179 = "findByDettPratica"; - _methodParameterTypes173 = new String[] { + _methodParameterTypes179 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName174 = "countByIntPratica"; + _methodName180 = "countByIntPratica"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName175 = "countByDettPratica"; + _methodName181 = "countByDettPratica"; - _methodParameterTypes175 = new String[] { "long" }; + _methodParameterTypes181 = new String[] { "long" }; - _methodName176 = "findByIntPratica_CodiceFiscale"; + _methodName182 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName177 = "countByIntPratica_CodiceFiscale"; + _methodName183 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes177 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; - _methodName178 = "findByCodiceFiscale_InEsito"; + _methodName184 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes184 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName179 = "countByCodiceFiscale_InEsito"; + _methodName185 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName180 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName186 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes186 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName181 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName187 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName182 = "findByIntPratica_InEsito"; + _methodName188 = "findByIntPratica_InEsito"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByIntPratica_InEsito"; + _methodName189 = "countByIntPratica_InEsito"; - _methodParameterTypes183 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String[][]" }; - _methodName184 = "findByDettPratica_InEsito"; + _methodName190 = "findByDettPratica_InEsito"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName185 = "countByDettPratica_InEsito"; + _methodName191 = "countByDettPratica_InEsito"; - _methodParameterTypes185 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String[][]" }; - _methodName186 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName192 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName187 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName193 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName188 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName194 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName189 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName195 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName190 = "findByIntPratica_Tipologia_InEsito"; + _methodName196 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "findByDettPratica_Tipologia_InEsito"; + _methodName197 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName192 = "countByIntPratica_Tipologia_InEsito"; + _methodName198 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DelegaServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { DelegaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DelegaServiceUtil.addDelega(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -218,60 +218,60 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return DelegaServiceUtil.annullaDelega(((Long)arguments[0]).longValue()); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return DelegaServiceUtil.annullaDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DelegaServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return DelegaServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return DelegaServiceUtil.cambioStato(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DelegaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DelegaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DelegaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DelegaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -279,14 +279,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DelegaServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -294,14 +294,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DelegaServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -310,14 +310,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -325,14 +325,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DelegaServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -340,14 +340,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return DelegaServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DelegaServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -356,14 +356,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DelegaServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -372,15 +372,15 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -389,8 +389,8 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DelegaServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -399,8 +399,8 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -408,22 +408,10 @@ public class DelegaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -466,4 +454,16 @@ public class DelegaServiceClpInvoker { private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java index 964e62a1..a4c082f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java @@ -57,6 +57,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1353,6 +1354,63 @@ public abstract class DettPraticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2314,6 +2372,12 @@ public abstract class DettPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java index 54395f7f..83ec00e9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java @@ -122,112 +122,112 @@ public class DettPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName208 = "getBeanIdentifier"; + _methodName214 = "getBeanIdentifier"; - _methodParameterTypes208 = new String[] { }; + _methodParameterTypes214 = new String[] { }; - _methodName209 = "setBeanIdentifier"; + _methodName215 = "setBeanIdentifier"; - _methodParameterTypes209 = new String[] { "java.lang.String" }; + _methodParameterTypes215 = new String[] { "java.lang.String" }; - _methodName215 = "addDettPratica"; + _methodName221 = "addDettPratica"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName216 = "addDettPraticaToIntPratica"; + _methodName222 = "addDettPraticaToIntPratica"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes222 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName217 = "addDettPraticaClonedToIntPratica"; + _methodName223 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes223 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName219 = "cloneDettagliSoggetti"; + _methodName225 = "cloneDettagliSoggetti"; - _methodParameterTypes219 = new String[] { "long", "long" }; + _methodParameterTypes225 = new String[] { "long", "long" }; - _methodName220 = "addDettPraticaForImport"; + _methodName226 = "addDettPraticaForImport"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes226 = new String[] { "com.liferay.portal.service.ServiceContext" }; - _methodName221 = "getLastEditableByIntPratica"; + _methodName227 = "getLastEditableByIntPratica"; - _methodParameterTypes221 = new String[] { "long" }; + _methodParameterTypes227 = new String[] { "long" }; - _methodName222 = "getLastCompletedByIntPratica"; + _methodName228 = "getLastCompletedByIntPratica"; - _methodParameterTypes222 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName223 = "getLastCompletedBeforeDettPraticaByIntPratica"; + _methodName229 = "getLastCompletedBeforeDettPraticaByIntPratica"; - _methodParameterTypes223 = new String[] { "long", "long" }; + _methodParameterTypes229 = new String[] { "long", "long" }; - _methodName224 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; + _methodName230 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; - _methodParameterTypes224 = new String[] { "long" }; + _methodParameterTypes230 = new String[] { "long" }; - _methodName225 = "getLastdByIntPraticaAndTipoPratica"; + _methodName231 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes225 = new String[] { "long", "java.util.List" }; + _methodParameterTypes231 = new String[] { "long", "java.util.List" }; - _methodName226 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName232 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes226 = new String[] { "long", "java.util.List" }; + _methodParameterTypes232 = new String[] { "long", "java.util.List" }; - _methodName227 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName233 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes227 = new String[] { "long", "java.util.List" }; + _methodParameterTypes233 = new String[] { "long", "java.util.List" }; - _methodName228 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName234 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes228 = new String[] { "long", "java.util.List" }; + _methodParameterTypes234 = new String[] { "long", "java.util.List" }; - _methodName229 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; + _methodName235 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; - _methodParameterTypes229 = new String[] { "long", "long" }; + _methodParameterTypes235 = new String[] { "long", "long" }; - _methodName230 = "deleteDettPratica"; + _methodName236 = "deleteDettPratica"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes236 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName231 = "deleteDettPratica"; + _methodName237 = "deleteDettPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName232 = "search"; + _methodName238 = "search"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes238 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName233 = "searchCount"; + _methodName239 = "searchCount"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes239 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName234 = "updateDettPraticaSoggetti"; + _methodName240 = "updateDettPraticaSoggetti"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes240 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName235 = "updateDettPratica"; + _methodName241 = "updateDettPratica"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes241 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -281,9 +281,9 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName236 = "updateDettPraticaDatiDomanda"; + _methodName242 = "updateDettPraticaDatiDomanda"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes242 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -319,9 +319,9 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName237 = "updateDettPraticaGeologo"; + _methodName243 = "updateDettPraticaGeologo"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes243 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -333,9 +333,9 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName238 = "updateDettPraticaPagamento"; + _methodName244 = "updateDettPraticaPagamento"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes244 = new String[] { "long", "int", "int", "int", "int", "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -344,43 +344,43 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName239 = "updateCheckPagamenti"; + _methodName245 = "updateCheckPagamenti"; - _methodParameterTypes239 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes245 = new String[] { "long", "boolean", "boolean" }; - _methodName240 = "updateEsitoPagamento"; + _methodName246 = "updateEsitoPagamento"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes246 = new String[] { "long", "long", "java.lang.String" }; - _methodName241 = "updateEsitoPagamento"; + _methodName247 = "updateEsitoPagamento"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes247 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName242 = "concludiPagamento"; + _methodName248 = "concludiPagamento"; - _methodParameterTypes242 = new String[] { "long" }; + _methodParameterTypes248 = new String[] { "long" }; - _methodName243 = "isControlloObbligatorio"; + _methodName249 = "isControlloObbligatorio"; - _methodParameterTypes243 = new String[] { + _methodParameterTypes249 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName244 = "updateEsito"; + _methodName250 = "updateEsito"; - _methodParameterTypes244 = new String[] { "long", "int" }; + _methodParameterTypes250 = new String[] { "long", "int" }; - _methodName246 = "updateEsitoIntegrazione"; + _methodName252 = "updateEsitoIntegrazione"; - _methodParameterTypes246 = new String[] { "long", "int" }; + _methodParameterTypes252 = new String[] { "long", "int" }; - _methodName247 = "pagaInvia"; + _methodName253 = "pagaInvia"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes253 = new String[] { "long", "int", "int", "int", "int", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -389,151 +389,151 @@ public class DettPraticaLocalServiceClpInvoker { "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName248 = "updateStatus"; + _methodName254 = "updateStatus"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes254 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext" }; - _methodName251 = "updateDettPraticaProtocollo"; + _methodName257 = "updateDettPraticaProtocollo"; - _methodParameterTypes251 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes257 = new String[] { "long", "java.lang.String" }; - _methodName252 = "findByProtocollo"; + _methodName258 = "findByProtocollo"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes258 = new String[] { "long", "long", "java.lang.String" }; - _methodName253 = "fetchByProtocollo"; + _methodName259 = "fetchByProtocollo"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes259 = new String[] { "long", "long", "java.lang.String" }; - _methodName254 = "fetchByProtocollo"; + _methodName260 = "fetchByProtocollo"; - _methodParameterTypes254 = new String[] { "java.lang.String" }; + _methodParameterTypes260 = new String[] { "java.lang.String" }; - _methodName255 = "findByIntPraticaId"; + _methodName261 = "findByIntPraticaId"; - _methodParameterTypes255 = new String[] { "long" }; + _methodParameterTypes261 = new String[] { "long" }; - _methodName256 = "findByIntPraticaIdInviate"; + _methodName262 = "findByIntPraticaIdInviate"; - _methodParameterTypes256 = new String[] { "long", "int", "int" }; + _methodParameterTypes262 = new String[] { "long", "int", "int" }; - _methodName257 = "findPraticheCompleteNotProtocollo"; + _methodName263 = "findPraticheCompleteNotProtocollo"; - _methodParameterTypes257 = new String[] { "int", "int" }; + _methodParameterTypes263 = new String[] { "int", "int" }; - _methodName258 = "countPraticheCompleteNotProtocollo"; + _methodName264 = "countPraticheCompleteNotProtocollo"; - _methodParameterTypes258 = new String[] { }; + _methodParameterTypes264 = new String[] { }; - _methodName260 = "findPraticheCompleteNotGestite"; + _methodName266 = "findPraticheCompleteNotGestite"; - _methodParameterTypes260 = new String[] { "int", "int" }; + _methodParameterTypes266 = new String[] { "int", "int" }; - _methodName261 = "countPraticheCompleteNotGestite"; + _methodName267 = "countPraticheCompleteNotGestite"; - _methodParameterTypes261 = new String[] { }; + _methodParameterTypes267 = new String[] { }; - _methodName263 = "findByIntPraticaId_TipoIntegrazione_Completa"; + _methodName269 = "findByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes263 = new String[] { + _methodParameterTypes269 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName264 = "countByIntPraticaId_TipoIntegrazione_Completa"; + _methodName270 = "countByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes264 = new String[] { + _methodParameterTypes270 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName265 = "findPraticheCompletateNonVersionate"; + _methodName271 = "findPraticheCompletateNonVersionate"; - _methodParameterTypes265 = new String[] { "int", "int" }; + _methodParameterTypes271 = new String[] { "int", "int" }; - _methodName266 = "countPraticheCompletateNonversionate"; + _methodName272 = "countPraticheCompletateNonversionate"; - _methodParameterTypes266 = new String[] { }; + _methodParameterTypes272 = new String[] { }; - _methodName268 = "updateDettPraticaGestita"; + _methodName274 = "updateDettPraticaGestita"; - _methodParameterTypes268 = new String[] { "long", "boolean" }; + _methodParameterTypes274 = new String[] { "long", "boolean" }; - _methodName269 = "updateAsset"; + _methodName275 = "updateAsset"; - _methodParameterTypes269 = new String[] { + _methodParameterTypes275 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica", "long[][]", "boolean" }; - _methodName270 = "updateStatus"; + _methodName276 = "updateStatus"; - _methodParameterTypes270 = new String[] { "long", "int" }; + _methodParameterTypes276 = new String[] { "long", "int" }; - _methodName271 = "updateSignal"; + _methodName277 = "updateSignal"; - _methodParameterTypes271 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes277 = new String[] { "long", "java.util.Date" }; - _methodName272 = "countInvioSignal"; + _methodName278 = "countInvioSignal"; - _methodParameterTypes272 = new String[] { }; + _methodParameterTypes278 = new String[] { }; - _methodName273 = "getInvioSignal"; + _methodName279 = "getInvioSignal"; - _methodParameterTypes273 = new String[] { "long" }; + _methodParameterTypes279 = new String[] { "long" }; - _methodName274 = "getInviiSignal"; + _methodName280 = "getInviiSignal"; - _methodParameterTypes274 = new String[] { "int", "int" }; + _methodParameterTypes280 = new String[] { "int", "int" }; - _methodName275 = "dynamicQueryInvioSignal"; + _methodName281 = "dynamicQueryInvioSignal"; - _methodParameterTypes275 = new String[] { "java.lang.Long" }; + _methodParameterTypes281 = new String[] { "java.lang.Long" }; - _methodName276 = "findByPagamentoId"; + _methodName282 = "findByPagamentoId"; - _methodParameterTypes276 = new String[] { "long" }; + _methodParameterTypes282 = new String[] { "long" }; - _methodName277 = "updatePrincipale"; + _methodName283 = "updatePrincipale"; - _methodParameterTypes277 = new String[] { + _methodParameterTypes283 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName278 = "getDettPraticaFields"; + _methodName284 = "getDettPraticaFields"; - _methodParameterTypes278 = new String[] { }; + _methodParameterTypes284 = new String[] { }; - _methodName279 = "getVersioni"; + _methodName285 = "getVersioni"; - _methodParameterTypes279 = new String[] { "long" }; + _methodParameterTypes285 = new String[] { "long" }; - _methodName280 = "callForChanges"; + _methodName286 = "callForChanges"; - _methodParameterTypes280 = new String[] { "long" }; + _methodParameterTypes286 = new String[] { "long" }; - _methodName281 = "isNumber"; + _methodName287 = "isNumber"; - _methodParameterTypes281 = new String[] { "java.lang.String" }; + _methodParameterTypes287 = new String[] { "java.lang.String" }; - _methodName282 = "format"; + _methodName288 = "format"; - _methodParameterTypes282 = new String[] { + _methodParameterTypes288 = new String[] { "java.lang.String", "java.io.Serializable" }; - _methodName283 = "countVariateByIntPratica"; + _methodName289 = "countVariateByIntPratica"; - _methodParameterTypes283 = new String[] { "long" }; + _methodParameterTypes289 = new String[] { "long" }; - _methodName285 = "getFirstCompletedByIntPratica"; + _methodName291 = "getFirstCompletedByIntPratica"; - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes291 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -649,123 +649,123 @@ public class DettPraticaLocalServiceClpInvoker { return DettPraticaLocalServiceUtil.updateDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DettPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { DettPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaClonedToIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DettPraticaLocalServiceUtil.cloneDettagliSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaForImport((com.liferay.portal.service.ServiceContext)arguments[0]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedBeforeDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPraticaAndProtocolloNotEmpty(((Long)arguments[0]).longValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndSuccessivoDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return DettPraticaLocalServiceUtil.search((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return DettPraticaLocalServiceUtil.searchCount((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -774,8 +774,8 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -983,8 +983,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[209]).booleanValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaDatiDomanda(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1131,8 +1131,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[146]).booleanValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1159,8 +1159,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[27]).booleanValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaPagamento(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), @@ -1183,23 +1183,23 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[20]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return DettPraticaLocalServiceUtil.updateCheckPagamenti(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -1207,32 +1207,32 @@ public class DettPraticaLocalServiceClpInvoker { return null; } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { DettPraticaLocalServiceUtil.concludiPagamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return DettPraticaLocalServiceUtil.isControlloObbligatorio((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return DettPraticaLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), @@ -1257,189 +1257,189 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[21]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return DettPraticaLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaIdInviate(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotProtocollo(); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotGestite(); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { return DettPraticaLocalServiceUtil.countByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompletateNonVersionate(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompletateNonversionate(); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGestita(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { DettPraticaLocalServiceUtil.updateAsset((it.tref.liferay.portos.bo.model.DettPratica)arguments[0], (long[])arguments[1], ((Boolean)arguments[2]).booleanValue()); return null; } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return DettPraticaLocalServiceUtil.updateSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return DettPraticaLocalServiceUtil.countInvioSignal(); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return DettPraticaLocalServiceUtil.getInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName280.equals(name) && + Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { return DettPraticaLocalServiceUtil.getInviiSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName281.equals(name) && + Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { return DettPraticaLocalServiceUtil.dynamicQueryInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName282.equals(name) && + Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { return DettPraticaLocalServiceUtil.findByPagamentoId(((Long)arguments[0]).longValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName283.equals(name) && + Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { return DettPraticaLocalServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName284.equals(name) && + Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { return DettPraticaLocalServiceUtil.getDettPraticaFields(); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName285.equals(name) && + Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { return DettPraticaLocalServiceUtil.getVersioni(((Long)arguments[0]).longValue()); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName286.equals(name) && + Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { return DettPraticaLocalServiceUtil.callForChanges(((Long)arguments[0]).longValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName287.equals(name) && + Arrays.deepEquals(_methodParameterTypes287, parameterTypes)) { return DettPraticaLocalServiceUtil.isNumber((java.lang.String)arguments[0]); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName288.equals(name) && + Arrays.deepEquals(_methodParameterTypes288, parameterTypes)) { return DettPraticaLocalServiceUtil.format((java.lang.String)arguments[0], (java.io.Serializable)arguments[1]); } - if (_methodName283.equals(name) && - Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { + if (_methodName289.equals(name) && + Arrays.deepEquals(_methodParameterTypes289, parameterTypes)) { return DettPraticaLocalServiceUtil.countVariateByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { + if (_methodName291.equals(name) && + Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { return DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(((Long)arguments[0]).longValue()); } @@ -1486,28 +1486,16 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; + private String _methodName214; + private String[] _methodParameterTypes214; private String _methodName215; private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; private String _methodName222; private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; private String _methodName225; private String[] _methodParameterTypes225; private String _methodName226; @@ -1548,42 +1536,44 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes243; private String _methodName244; private String[] _methodParameterTypes244; + private String _methodName245; + private String[] _methodParameterTypes245; private String _methodName246; private String[] _methodParameterTypes246; private String _methodName247; private String[] _methodParameterTypes247; private String _methodName248; private String[] _methodParameterTypes248; - private String _methodName251; - private String[] _methodParameterTypes251; + private String _methodName249; + private String[] _methodParameterTypes249; + private String _methodName250; + private String[] _methodParameterTypes250; private String _methodName252; private String[] _methodParameterTypes252; private String _methodName253; private String[] _methodParameterTypes253; private String _methodName254; private String[] _methodParameterTypes254; - private String _methodName255; - private String[] _methodParameterTypes255; - private String _methodName256; - private String[] _methodParameterTypes256; private String _methodName257; private String[] _methodParameterTypes257; private String _methodName258; private String[] _methodParameterTypes258; + private String _methodName259; + private String[] _methodParameterTypes259; private String _methodName260; private String[] _methodParameterTypes260; private String _methodName261; private String[] _methodParameterTypes261; + private String _methodName262; + private String[] _methodParameterTypes262; private String _methodName263; private String[] _methodParameterTypes263; private String _methodName264; private String[] _methodParameterTypes264; - private String _methodName265; - private String[] _methodParameterTypes265; private String _methodName266; private String[] _methodParameterTypes266; - private String _methodName268; - private String[] _methodParameterTypes268; + private String _methodName267; + private String[] _methodParameterTypes267; private String _methodName269; private String[] _methodParameterTypes269; private String _methodName270; @@ -1592,8 +1582,6 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes271; private String _methodName272; private String[] _methodParameterTypes272; - private String _methodName273; - private String[] _methodParameterTypes273; private String _methodName274; private String[] _methodParameterTypes274; private String _methodName275; @@ -1614,6 +1602,18 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes282; private String _methodName283; private String[] _methodParameterTypes283; + private String _methodName284; + private String[] _methodParameterTypes284; private String _methodName285; private String[] _methodParameterTypes285; + private String _methodName286; + private String[] _methodParameterTypes286; + private String _methodName287; + private String[] _methodParameterTypes287; + private String _methodName288; + private String[] _methodParameterTypes288; + private String _methodName289; + private String[] _methodParameterTypes289; + private String _methodName291; + private String[] _methodParameterTypes291; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java index a3c68217..a9a5f750 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java @@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1062,6 +1063,63 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2018,6 +2076,12 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java index a34043ab..90814aed 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java @@ -24,62 +24,62 @@ import java.util.Arrays; */ public class DettPraticaServiceClpInvoker { public DettPraticaServiceClpInvoker() { - _methodName188 = "getBeanIdentifier"; + _methodName194 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes194 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName195 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes195 = new String[] { "java.lang.String" }; - _methodName194 = "getDettPratica"; + _methodName200 = "getDettPratica"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName195 = "addDettPratica"; + _methodName201 = "addDettPratica"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "addDettPraticaToIntPratica"; + _methodName202 = "addDettPraticaToIntPratica"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName197 = "addDettPraticaClonedToIntPratica"; + _methodName203 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes203 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName198 = "getLastEditableByIntPratica"; + _methodName204 = "getLastEditableByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName199 = "deleteDettPratica"; + _methodName205 = "deleteDettPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes205 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName200 = "deleteDettPratica"; + _methodName206 = "deleteDettPratica"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes206 = new String[] { "long" }; - _methodName201 = "updateDettPraticaSoggetti"; + _methodName207 = "updateDettPraticaSoggetti"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes207 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "updateDettPratica"; + _methodName208 = "updateDettPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -134,33 +134,33 @@ public class DettPraticaServiceClpInvoker { "boolean", "boolean" }; - _methodName203 = "fetchDettPratica"; + _methodName209 = "fetchDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName204 = "getLastCompletedByIntPratica"; + _methodName210 = "getLastCompletedByIntPratica"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName205 = "getLastdByIntPraticaAndTipoPratica"; + _methodName211 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes205 = new String[] { "long", "java.util.List" }; + _methodParameterTypes211 = new String[] { "long", "java.util.List" }; - _methodName206 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName212 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes206 = new String[] { "long", "java.util.List" }; + _methodParameterTypes212 = new String[] { "long", "java.util.List" }; - _methodName207 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName213 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes207 = new String[] { "long", "java.util.List" }; + _methodParameterTypes213 = new String[] { "long", "java.util.List" }; - _methodName208 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName214 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes208 = new String[] { "long", "java.util.List" }; + _methodParameterTypes214 = new String[] { "long", "java.util.List" }; - _methodName209 = "pagaInvia"; + _methodName215 = "pagaInvia"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes215 = new String[] { "long", "int", "int", "int", "int", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -169,104 +169,104 @@ public class DettPraticaServiceClpInvoker { "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "updateCheckPagamenti"; + _methodName216 = "updateCheckPagamenti"; - _methodParameterTypes210 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes216 = new String[] { "long", "boolean", "boolean" }; - _methodName211 = "updateEsito"; + _methodName217 = "updateEsito"; - _methodParameterTypes211 = new String[] { "long", "int" }; + _methodParameterTypes217 = new String[] { "long", "int" }; - _methodName212 = "updateEsitoIntegrazione"; + _methodName218 = "updateEsitoIntegrazione"; - _methodParameterTypes212 = new String[] { "long", "int" }; + _methodParameterTypes218 = new String[] { "long", "int" }; - _methodName213 = "updatePrincipale"; + _methodName219 = "updatePrincipale"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes219 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName214 = "getDettPraticaFields"; + _methodName220 = "getDettPraticaFields"; - _methodParameterTypes214 = new String[] { }; + _methodParameterTypes220 = new String[] { }; - _methodName215 = "getVersioni"; + _methodName221 = "getVersioni"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes221 = new String[] { "long" }; - _methodName216 = "callForChanges"; + _methodName222 = "callForChanges"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName217 = "isNumber"; + _methodName223 = "isNumber"; - _methodParameterTypes217 = new String[] { "java.lang.String" }; + _methodParameterTypes223 = new String[] { "java.lang.String" }; - _methodName218 = "format"; + _methodName224 = "format"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes224 = new String[] { "java.lang.String", "java.io.Serializable" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DettPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { DettPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DettPraticaServiceUtil.getDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DettPraticaServiceUtil.addDettPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DettPraticaServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DettPraticaServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DettPraticaServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -275,8 +275,8 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DettPraticaServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -486,42 +486,42 @@ public class DettPraticaServiceClpInvoker { ((Boolean)arguments[211]).booleanValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DettPraticaServiceUtil.fetchDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DettPraticaServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DettPraticaServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DettPraticaServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), @@ -546,53 +546,53 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[21]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return DettPraticaServiceUtil.updateCheckPagamenti(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DettPraticaServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DettPraticaServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DettPraticaServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DettPraticaServiceUtil.getDettPraticaFields(); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DettPraticaServiceUtil.getVersioni(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DettPraticaServiceUtil.isNumber((java.lang.String)arguments[0]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DettPraticaServiceUtil.format((java.lang.String)arguments[0], (java.io.Serializable)arguments[1]); } @@ -600,22 +600,10 @@ public class DettPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; private String _methodName194; private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; private String _methodName201; @@ -654,4 +642,16 @@ public class DettPraticaServiceClpInvoker { private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; + private String _methodName219; + private String[] _methodParameterTypes219; + private String _methodName220; + private String[] _methodParameterTypes220; + private String _methodName221; + private String[] _methodParameterTypes221; + private String _methodName222; + private String[] _methodParameterTypes222; + private String _methodName223; + private String[] _methodParameterTypes223; + private String _methodName224; + private String[] _methodParameterTypes224; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java index 76648ace..8178bb57 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1347,6 +1348,63 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2042,6 +2100,12 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java index aa541205..018c71bd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java @@ -122,80 +122,80 @@ public class DocAggiuntivaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "findByIntPratica"; + _methodName192 = "findByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName187 = "findByIntPratica"; + _methodName193 = "findByIntPratica"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName188 = "countByIntPratica"; + _methodName194 = "countByIntPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName189 = "findByDettPratica"; + _methodName195 = "findByDettPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName190 = "findByDettPratica"; + _methodName196 = "findByDettPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "countByDettPratica"; + _methodName197 = "countByDettPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName192 = "findByIntPraticaFeVisible"; + _methodName198 = "findByIntPraticaFeVisible"; - _methodParameterTypes192 = new String[] { "long", "boolean" }; + _methodParameterTypes198 = new String[] { "long", "boolean" }; - _methodName193 = "findByIntPraticaFeVisible"; + _methodName199 = "findByIntPraticaFeVisible"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName194 = "countByIntPraticaFeVisible"; + _methodName200 = "countByIntPraticaFeVisible"; - _methodParameterTypes194 = new String[] { "long", "boolean" }; + _methodParameterTypes200 = new String[] { "long", "boolean" }; - _methodName195 = "addDocAggiuntiva"; + _methodName201 = "addDocAggiuntiva"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "deleteDocAggiuntiva"; + _methodName202 = "deleteDocAggiuntiva"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName197 = "deleteDocAggiuntiva"; + _methodName203 = "deleteDocAggiuntiva"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes203 = new String[] { "long" }; - _methodName198 = "fetchByOldFileEntryId"; + _methodName204 = "fetchByOldFileEntryId"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -311,62 +311,62 @@ public class DocAggiuntivaLocalServiceClpInvoker { return DocAggiuntivaLocalServiceUtil.updateDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { DocAggiuntivaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -374,14 +374,14 @@ public class DocAggiuntivaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -391,18 +391,18 @@ public class DocAggiuntivaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[7]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.fetchByOldFileEntryId(((Long)arguments[0]).longValue()); } @@ -449,22 +449,10 @@ public class DocAggiuntivaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -479,4 +467,16 @@ public class DocAggiuntivaLocalServiceClpInvoker { private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; + private String _methodName204; + private String[] _methodParameterTypes204; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java index 7f2e01b4..823714f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java index 405d223b..eafe14be 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java @@ -24,136 +24,136 @@ import java.util.Arrays; */ public class DocAggiuntivaServiceClpInvoker { public DocAggiuntivaServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "findByIntPratica"; + _methodName172 = "findByIntPratica"; - _methodParameterTypes166 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName167 = "findByIntPratica"; + _methodName173 = "findByIntPratica"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes173 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName168 = "countByIntPratica"; + _methodName174 = "countByIntPratica"; - _methodParameterTypes168 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName169 = "findByDettPratica"; + _methodName175 = "findByDettPratica"; - _methodParameterTypes169 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName170 = "findByDettPratica"; + _methodName176 = "findByDettPratica"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes176 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName171 = "countByDettPratica"; + _methodName177 = "countByDettPratica"; - _methodParameterTypes171 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName172 = "findByIntPraticaFeVisible"; + _methodName178 = "findByIntPraticaFeVisible"; - _methodParameterTypes172 = new String[] { "long", "boolean" }; + _methodParameterTypes178 = new String[] { "long", "boolean" }; - _methodName173 = "findByIntPratica"; + _methodName179 = "findByIntPratica"; - _methodParameterTypes173 = new String[] { + _methodParameterTypes179 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName174 = "countByIntPraticaFeVisible"; + _methodName180 = "countByIntPraticaFeVisible"; - _methodParameterTypes174 = new String[] { "long", "boolean" }; + _methodParameterTypes180 = new String[] { "long", "boolean" }; - _methodName175 = "addDocAggiuntiva"; + _methodName181 = "addDocAggiuntiva"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes181 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "deleteDocAggiuntiva"; + _methodName182 = "deleteDocAggiuntiva"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes182 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName177 = "deleteDocAggiuntiva"; + _methodName183 = "deleteDocAggiuntiva"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocAggiuntivaServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { DocAggiuntivaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DocAggiuntivaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return DocAggiuntivaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return DocAggiuntivaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -161,14 +161,14 @@ public class DocAggiuntivaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DocAggiuntivaServiceUtil.addDocAggiuntiva(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -178,35 +178,23 @@ public class DocAggiuntivaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[7]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -219,4 +207,16 @@ public class DocAggiuntivaServiceClpInvoker { private String[] _methodParameterTypes176; private String _methodName177; private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java index eca15d0a..27fb8b4e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1346,6 +1347,63 @@ public abstract class DocPraticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2041,6 +2099,12 @@ public abstract class DocPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java index 652a542d..313b3953 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java @@ -122,27 +122,27 @@ public class DocPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "deleteDocPratica"; + _methodName192 = "deleteDocPratica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName187 = "deleteDocPratica"; + _methodName193 = "deleteDocPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName188 = "addDocPratica"; + _methodName194 = "addDocPratica"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -150,25 +150,25 @@ public class DocPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName189 = "addDocPratica"; + _methodName195 = "addDocPratica"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName190 = "addDocPratica"; + _methodName196 = "addDocPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "addDocPraticaForImport"; + _methodName197 = "addDocPraticaForImport"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -176,191 +176,191 @@ public class DocPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "addAttachment"; + _methodName198 = "addAttachment"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String" }; - _methodName193 = "getAttachment"; + _methodName199 = "getAttachment"; - _methodParameterTypes193 = new String[] { "long" }; + _methodParameterTypes199 = new String[] { "long" }; - _methodName194 = "addFirma"; + _methodName200 = "addFirma"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName195 = "addFirmeAndApprova"; + _methodName201 = "addFirmeAndApprova"; - _methodParameterTypes195 = new String[] { "long", "java.util.List" }; + _methodParameterTypes201 = new String[] { "long", "java.util.List" }; - _methodName196 = "addErrorAndApprova"; + _methodName202 = "addErrorAndApprova"; - _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; - _methodName197 = "removeFirma"; + _methodName203 = "removeFirma"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes203 = new String[] { "long", "java.lang.String" }; - _methodName198 = "updateDocPraticaAggiornato"; + _methodName204 = "updateDocPraticaAggiornato"; - _methodParameterTypes198 = new String[] { "long", "boolean" }; + _methodParameterTypes204 = new String[] { "long", "boolean" }; - _methodName199 = "countDocPraticaDaInviareDax"; + _methodName205 = "countDocPraticaDaInviareDax"; - _methodParameterTypes199 = new String[] { }; + _methodParameterTypes205 = new String[] { }; - _methodName200 = "getDocPraticaDaInviareDax"; + _methodName206 = "getDocPraticaDaInviareDax"; - _methodParameterTypes200 = new String[] { "int", "int" }; + _methodParameterTypes206 = new String[] { "int", "int" }; - _methodName202 = "countByClassPk"; + _methodName208 = "countByClassPk"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName203 = "findByClassPk"; + _methodName209 = "findByClassPk"; - _methodParameterTypes203 = new String[] { "long", "int", "int" }; + _methodParameterTypes209 = new String[] { "long", "int", "int" }; - _methodName204 = "findByIntPratica"; + _methodName210 = "findByIntPratica"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName205 = "findByClassPk"; + _methodName211 = "findByClassPk"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes211 = new String[] { "long" }; - _methodName206 = "findByStaus"; + _methodName212 = "findByStaus"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes212 = new String[] { "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "countByStatus"; + _methodName213 = "countByStatus"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName208 = "countByClassPk_Tipologia"; + _methodName214 = "countByClassPk_Tipologia"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; - _methodName209 = "findByClassPk_Tipologia"; + _methodName215 = "findByClassPk_Tipologia"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName210 = "findByIntPratica_Tipologia"; + _methodName216 = "findByIntPratica_Tipologia"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName211 = "findByIntPratica_ClassPk_Tipologia"; + _methodName217 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes217 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName212 = "findByIntPratica_ClassPk_Tipologie"; + _methodName218 = "findByIntPratica_ClassPk_Tipologie"; - _methodParameterTypes212 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes218 = new String[] { "long", "long", "java.util.List" }; - _methodName213 = "findByIntPratica_ClassPkEqual_Tipologie"; + _methodName219 = "findByIntPratica_ClassPkEqual_Tipologie"; - _methodParameterTypes213 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes219 = new String[] { "long", "long", "java.util.List" }; - _methodName214 = "fetchByC_Group_DlFileEntry_Version"; + _methodName220 = "fetchByC_Group_DlFileEntry_Version"; - _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; - _methodName215 = "fetchByOldDocPraticaId"; + _methodName221 = "fetchByOldDocPraticaId"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes221 = new String[] { "long" }; - _methodName216 = "findDistinctDlFileEntryId"; + _methodName222 = "findDistinctDlFileEntryId"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes222 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName217 = "findDistinctDlFileEntryId"; + _methodName223 = "findDistinctDlFileEntryId"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes223 = new String[] { "long[][]", "java.lang.String", "int", "int" }; - _methodName218 = "getValidByIntPratica"; + _methodName224 = "getValidByIntPratica"; - _methodParameterTypes218 = new String[] { "long" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName219 = "getValidByIntPratica_Tipologia"; + _methodName225 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes225 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName220 = "countValidTmpByIntPratica_Tipologia"; + _methodName226 = "countValidTmpByIntPratica_Tipologia"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes226 = new String[] { "long", "java.lang.String" }; - _methodName221 = "getValidTmpByIntPratica_Tipologia"; + _methodName227 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName222 = "getValidTmpByIntPratica_DettPratica_Tipologia"; + _methodName228 = "getValidTmpByIntPratica_DettPratica_Tipologia"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes228 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName223 = "getValidTmpByIntPratica_Tipologie"; + _methodName229 = "getValidTmpByIntPratica_Tipologie"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String[][]", "int", "int" }; - _methodName224 = "countValidTmpByIntPratica_Tipologie"; + _methodName230 = "countValidTmpByIntPratica_Tipologie"; - _methodParameterTypes224 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes230 = new String[] { "long", "java.lang.String[][]" }; - _methodName226 = "getInvalidByIntPratica"; + _methodName232 = "getInvalidByIntPratica"; - _methodParameterTypes226 = new String[] { "long" }; + _methodParameterTypes232 = new String[] { "long" }; - _methodName227 = "getInvalidTmpByIntPratica"; + _methodName233 = "getInvalidTmpByIntPratica"; - _methodParameterTypes227 = new String[] { "long" }; + _methodParameterTypes233 = new String[] { "long" }; - _methodName228 = "getValidUntilClassPkByIntPratica"; + _methodName234 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes234 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName229 = "completeInvalidation"; + _methodName235 = "completeInvalidation"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes235 = new String[] { "long" }; - _methodName230 = "getDocPraticaWithOldFileEntryId"; + _methodName236 = "getDocPraticaWithOldFileEntryId"; - _methodParameterTypes230 = new String[] { "int", "int" }; + _methodParameterTypes236 = new String[] { "int", "int" }; - _methodName231 = "addDocPraticaAnnullamento"; + _methodName237 = "addDocPraticaAnnullamento"; - _methodParameterTypes231 = new String[] { + _methodParameterTypes237 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName232 = "findByIntPratica_ClassPk_TipologiaNew"; + _methodName238 = "findByIntPratica_ClassPk_TipologiaNew"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes238 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } @@ -478,30 +478,30 @@ public class DocPraticaLocalServiceClpInvoker { return DocPraticaLocalServiceUtil.updateDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DocPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { DocPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -517,8 +517,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[15]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -528,8 +528,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -540,8 +540,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPraticaForImport(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -558,8 +558,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[16]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DocPraticaLocalServiceUtil.addAttachment(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -567,119 +567,119 @@ public class DocPraticaLocalServiceClpInvoker { (java.lang.String)arguments[5]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DocPraticaLocalServiceUtil.getAttachment(((Long)arguments[0]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { DocPraticaLocalServiceUtil.addFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { DocPraticaLocalServiceUtil.addFirmeAndApprova(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); return null; } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { DocPraticaLocalServiceUtil.addErrorAndApprova(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { DocPraticaLocalServiceUtil.removeFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DocPraticaLocalServiceUtil.updateDocPraticaAggiornato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DocPraticaLocalServiceUtil.countDocPraticaDaInviareDax(); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DocPraticaLocalServiceUtil.getDocPraticaDaInviareDax(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DocPraticaLocalServiceUtil.findByStaus(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DocPraticaLocalServiceUtil.countByStatus(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -687,76 +687,76 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPkEqual_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DocPraticaLocalServiceUtil.fetchByC_Group_DlFileEntry_Version(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DocPraticaLocalServiceUtil.fetchByOldDocPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId((long[])arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_DettPratica_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -764,32 +764,32 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologie(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologie(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidUntilClassPkByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -797,21 +797,21 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { DocPraticaLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return DocPraticaLocalServiceUtil.getDocPraticaWithOldFileEntryId(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPraticaAnnullamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -822,8 +822,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_TipologiaNew(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -874,22 +874,10 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -908,6 +896,8 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; private String _methodName202; private String[] _methodParameterTypes202; private String _methodName203; @@ -918,8 +908,6 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes205; private String _methodName206; private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; @@ -954,6 +942,8 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; + private String _methodName225; + private String[] _methodParameterTypes225; private String _methodName226; private String[] _methodParameterTypes226; private String _methodName227; @@ -964,8 +954,18 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; private String _methodName232; private String[] _methodParameterTypes232; + private String _methodName233; + private String[] _methodParameterTypes233; + private String _methodName234; + private String[] _methodParameterTypes234; + private String _methodName235; + private String[] _methodParameterTypes235; + private String _methodName236; + private String[] _methodParameterTypes236; + private String _methodName237; + private String[] _methodParameterTypes237; + private String _methodName238; + private String[] _methodParameterTypes238; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java index 6bb36cf8..7a4402fa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java index cf46b262..f91606f3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java @@ -24,17 +24,17 @@ import java.util.Arrays; */ public class DocPraticaServiceClpInvoker { public DocPraticaServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "addDocPratica"; + _methodName172 = "addDocPratica"; - _methodParameterTypes166 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -42,89 +42,89 @@ public class DocPraticaServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName167 = "getDocPratica"; + _methodName173 = "getDocPratica"; - _methodParameterTypes167 = new String[] { "long" }; + _methodParameterTypes173 = new String[] { "long" }; - _methodName168 = "countByClassPk_Tipologia"; + _methodName174 = "countByClassPk_Tipologia"; - _methodParameterTypes168 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; - _methodName169 = "findByClassPk_Tipologia"; + _methodName175 = "findByClassPk_Tipologia"; - _methodParameterTypes169 = new String[] { + _methodParameterTypes175 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName170 = "findByIntPratica_Tipologia"; + _methodName176 = "findByIntPratica_Tipologia"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName171 = "findByIntPratica_ClassPk_Tipologia"; + _methodName177 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes171 = new String[] { + _methodParameterTypes177 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName172 = "deleteDocPratica"; + _methodName178 = "deleteDocPratica"; - _methodParameterTypes172 = new String[] { + _methodParameterTypes178 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName173 = "deleteDocPratica"; + _methodName179 = "deleteDocPratica"; - _methodParameterTypes173 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; - _methodName174 = "getValidByIntPratica"; + _methodName180 = "getValidByIntPratica"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName175 = "getValidByIntPratica_Tipologia"; + _methodName181 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName176 = "getValidTmpByIntPratica_Tipologia"; + _methodName182 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName177 = "getInvalidByIntPratica"; + _methodName183 = "getInvalidByIntPratica"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName178 = "getInvalidTmpByIntPratica"; + _methodName184 = "getInvalidTmpByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName179 = "getValidUntilClassPkByIntPratica"; + _methodName185 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { DocPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocPraticaServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -141,35 +141,35 @@ public class DocPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[16]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return DocPraticaServiceUtil.getDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return DocPraticaServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DocPraticaServiceUtil.findByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return DocPraticaServiceUtil.findByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -177,49 +177,49 @@ public class DocPraticaServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DocPraticaServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DocPraticaServiceUtil.getValidByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DocPraticaServiceUtil.getValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DocPraticaServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DocPraticaServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DocPraticaServiceUtil.getValidUntilClassPkByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -230,22 +230,10 @@ public class DocPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -262,4 +250,16 @@ public class DocPraticaServiceClpInvoker { private String[] _methodParameterTypes178; private String _methodName179; private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java index 7e678b33..b4163d59 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1347,6 +1348,63 @@ public abstract class FineLavoriLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2004,6 +2062,12 @@ public abstract class FineLavoriLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java index d315e5af..d6b50ee8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java @@ -122,190 +122,204 @@ public class FineLavoriLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName183 = "addFineLavori"; + _methodName189 = "addFineLavori"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName184 = "deleteFineLavori"; + _methodName190 = "addFineLavori"; + + _methodParameterTypes190 = new String[] { + "long", "boolean", "boolean", + "com.liferay.portal.service.ServiceContext" + }; - _methodParameterTypes184 = new String[] { + _methodName191 = "deleteFineLavori"; + + _methodParameterTypes191 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName185 = "deleteFineLavori"; + _methodName192 = "deleteFineLavori"; - _methodParameterTypes185 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName186 = "updateFineLavori"; + _methodName193 = "updateFineLavori"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean" }; - _methodName187 = "getLastEditable"; + _methodName194 = "updateFineLavori"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { + "it.tref.liferay.portos.bo.model.FineLavori", "boolean", + "com.liferay.portal.service.ServiceContext" + }; - _methodName188 = "getLastCompleted"; + _methodName196 = "getLastEditable"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName189 = "pagaInvia"; + _methodName197 = "getLastCompleted"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes197 = new String[] { "long" }; + + _methodName198 = "pagaInvia"; + + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName190 = "updateEsitoPagamento"; + _methodName199 = "updateEsitoPagamento"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long", "java.lang.String" }; - _methodName191 = "updateEsitoPagamento"; + _methodName200 = "updateEsitoPagamento"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes200 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName192 = "updateEsito"; + _methodName201 = "updateEsito"; - _methodParameterTypes192 = new String[] { "long", "int" }; + _methodParameterTypes201 = new String[] { "long", "int" }; - _methodName195 = "updateFineLavoriProtocollo"; + _methodName204 = "updateFineLavoriProtocollo"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; - _methodName196 = "findByProtocollo"; + _methodName205 = "findByProtocollo"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes205 = new String[] { "long", "long", "java.lang.String" }; - _methodName197 = "fetchByProtocollo"; + _methodName206 = "fetchByProtocollo"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes206 = new String[] { "long", "long", "java.lang.String" }; - _methodName198 = "fetchByProtocollo"; + _methodName207 = "fetchByProtocollo"; - _methodParameterTypes198 = new String[] { "java.lang.String" }; + _methodParameterTypes207 = new String[] { "java.lang.String" }; - _methodName199 = "findByIntPraticaId"; + _methodName208 = "findByIntPraticaId"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes208 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByIntPraticaId"; + _methodName209 = "countByIntPraticaId"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName201 = "findByIntPraticaId_Parziale"; + _methodName210 = "findByIntPraticaId_Parziale"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes210 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName202 = "countByIntPraticaId_Parziale"; + _methodName211 = "countByIntPraticaId_Parziale"; - _methodParameterTypes202 = new String[] { "long", "boolean" }; + _methodParameterTypes211 = new String[] { "long", "boolean" }; - _methodName203 = "findByIntPraticaId_Completata"; + _methodName212 = "findByIntPraticaId_Completata"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes212 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "countByIntPraticaId_Completata"; + _methodName213 = "countByIntPraticaId_Completata"; - _methodParameterTypes204 = new String[] { "long", "boolean" }; + _methodParameterTypes213 = new String[] { "long", "boolean" }; - _methodName205 = "findByIntPraticaId_CodiceFiscale"; + _methodName214 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "countByIntPraticaId_CodiceFiscale"; + _methodName215 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; - _methodName207 = "findByCodiceFiscale_Completata"; + _methodName216 = "findByCodiceFiscale_Completata"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes216 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName208 = "countByCodiceFiscale_Completata"; + _methodName217 = "countByCodiceFiscale_Completata"; - _methodParameterTypes208 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes217 = new String[] { "java.lang.String", "boolean" }; - _methodName209 = "findByIntPraticaId_Parziale_Completata"; + _methodName218 = "findByIntPraticaId_Parziale_Completata"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes218 = new String[] { "long", "boolean", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName210 = "countByIntPraticaId_Parziale_Completata"; + _methodName219 = "countByIntPraticaId_Parziale_Completata"; - _methodParameterTypes210 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes219 = new String[] { "long", "boolean", "boolean" }; - _methodName211 = "findByIntPraticaId_Parziale_leFineLavoriId"; + _methodName220 = "findByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes220 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName212 = "countByIntPraticaId_Parziale_leFineLavoriId"; + _methodName221 = "countByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes212 = new String[] { "long", "long", "boolean" }; + _methodParameterTypes221 = new String[] { "long", "long", "boolean" }; - _methodName213 = "findFineLavoriCompleteNotProtocollo"; + _methodName222 = "findFineLavoriCompleteNotProtocollo"; - _methodParameterTypes213 = new String[] { "int", "int" }; + _methodParameterTypes222 = new String[] { "int", "int" }; - _methodName214 = "countFineLavoriCompleteNotProtocollo"; + _methodName223 = "countFineLavoriCompleteNotProtocollo"; - _methodParameterTypes214 = new String[] { }; + _methodParameterTypes223 = new String[] { }; - _methodName216 = "findFineLavoriCompleteNotGestite"; + _methodName225 = "findFineLavoriCompleteNotGestite"; - _methodParameterTypes216 = new String[] { "int", "int" }; + _methodParameterTypes225 = new String[] { "int", "int" }; - _methodName217 = "countFineLavoriCompleteNotGestite"; + _methodName226 = "countFineLavoriCompleteNotGestite"; - _methodParameterTypes217 = new String[] { }; + _methodParameterTypes226 = new String[] { }; - _methodName219 = "findIntPraticaByFineLavori"; + _methodName228 = "findIntPraticaByFineLavori"; - _methodParameterTypes219 = new String[] { }; + _methodParameterTypes228 = new String[] { }; - _methodName220 = "findIntPraticaByFineLavori"; + _methodName229 = "findIntPraticaByFineLavori"; - _methodParameterTypes220 = new String[] { "java.lang.String" }; + _methodParameterTypes229 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -421,36 +435,44 @@ public class FineLavoriLocalServiceClpInvoker { return FineLavoriLocalServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return FineLavoriLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { FineLavoriLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return FineLavoriLocalServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + return FineLavoriLocalServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), + ((Boolean)arguments[1]).booleanValue(), + ((Boolean)arguments[2]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[3]); + } + + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -464,34 +486,41 @@ public class FineLavoriLocalServiceClpInvoker { ((Boolean)arguments[11]).booleanValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + return FineLavoriLocalServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0], + ((Boolean)arguments[1]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[2]); + } + + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return FineLavoriLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { FineLavoriLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { FineLavoriLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -499,50 +528,50 @@ public class FineLavoriLocalServiceClpInvoker { return null; } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return FineLavoriLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavoriProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return FineLavoriLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return FineLavoriLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return FineLavoriLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -550,14 +579,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -565,14 +594,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -580,14 +609,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return FineLavoriLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -595,14 +624,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return FineLavoriLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue(), @@ -611,15 +640,15 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_leFineLavoriId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -628,42 +657,42 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_leFineLavoriId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotProtocollo(); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotGestite(); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori(); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori((java.lang.String)arguments[0]); } @@ -710,22 +739,10 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; + private String _methodName182; + private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; private String _methodName190; @@ -734,8 +751,10 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; - private String _methodName195; - private String[] _methodParameterTypes195; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; private String _methodName196; private String[] _methodParameterTypes196; private String _methodName197; @@ -748,10 +767,6 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; @@ -774,12 +789,30 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; + private String _methodName218; + private String[] _methodParameterTypes218; private String _methodName219; private String[] _methodParameterTypes219; private String _methodName220; private String[] _methodParameterTypes220; + private String _methodName221; + private String[] _methodParameterTypes221; + private String _methodName222; + private String[] _methodParameterTypes222; + private String _methodName223; + private String[] _methodParameterTypes223; + private String _methodName225; + private String[] _methodParameterTypes225; + private String _methodName226; + private String[] _methodParameterTypes226; + private String _methodName228; + private String[] _methodParameterTypes228; + private String _methodName229; + private String[] _methodParameterTypes229; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java index 12dff425..9c04a5fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java index 6c5f58a6..a924fe87 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java @@ -24,144 +24,173 @@ import java.util.Arrays; */ public class FineLavoriServiceClpInvoker { public FineLavoriServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "getFineLavori"; + _methodName168 = "getFineLavori"; - _methodParameterTypes162 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName163 = "addFineLavori"; + _methodName169 = "addFineLavori"; - _methodParameterTypes163 = new String[] { + _methodParameterTypes169 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName164 = "deleteFineLavori"; + _methodName170 = "addFineLavori"; + + _methodParameterTypes170 = new String[] { + "long", "boolean", "boolean", + "com.liferay.portal.service.ServiceContext" + }; - _methodParameterTypes164 = new String[] { + _methodName171 = "deleteFineLavori"; + + _methodParameterTypes171 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName165 = "deleteFineLavori"; + _methodName172 = "deleteFineLavori"; + + _methodParameterTypes172 = new String[] { "long" }; - _methodParameterTypes165 = new String[] { "long" }; + _methodName173 = "updateFineLavori"; + + _methodParameterTypes173 = new String[] { + "it.tref.liferay.portos.bo.model.FineLavori", "boolean", + "com.liferay.portal.service.ServiceContext" + }; - _methodName166 = "updateFineLavori"; + _methodName174 = "updateFineLavori"; - _methodParameterTypes166 = new String[] { + _methodParameterTypes174 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName167 = "updateFineLavori"; + _methodName175 = "updateFineLavori"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes175 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean" }; - _methodName168 = "getLastEditable"; + _methodName176 = "getLastEditable"; - _methodParameterTypes168 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName169 = "getLastCompleted"; + _methodName177 = "getLastCompleted"; - _methodParameterTypes169 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName170 = "findByIntPraticaId_Parziale"; + _methodName178 = "findByIntPraticaId_Parziale"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes178 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName171 = "countByIntPraticaId_Parziale"; + _methodName179 = "countByIntPraticaId_Parziale"; - _methodParameterTypes171 = new String[] { "long", "boolean" }; + _methodParameterTypes179 = new String[] { "long", "boolean" }; - _methodName172 = "pagaInvia"; + _methodName180 = "pagaInvia"; - _methodParameterTypes172 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName173 = "updateEsito"; + _methodName181 = "updateEsito"; - _methodParameterTypes173 = new String[] { "long", "int" }; + _methodParameterTypes181 = new String[] { "long", "int" }; - _methodName174 = "findByIntPraticaId_CodiceFiscale"; + _methodName182 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName175 = "countByIntPraticaId_CodiceFiscale"; + _methodName183 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; - _methodName176 = "findByCodiceFiscale_Completata"; + _methodName184 = "findByCodiceFiscale_Completata"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes184 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName177 = "countByCodiceFiscale_Completata"; + _methodName185 = "countByCodiceFiscale_Completata"; - _methodParameterTypes177 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes185 = new String[] { "java.lang.String", "boolean" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return FineLavoriServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { FineLavoriServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return FineLavoriServiceUtil.getFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return FineLavoriServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName164.equals(name) && - Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + return FineLavoriServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), + ((Boolean)arguments[1]).booleanValue(), + ((Boolean)arguments[2]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[3]); + } + + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName165.equals(name) && - Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + return FineLavoriServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0], + ((Boolean)arguments[1]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[2]); + } + + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return FineLavoriServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return FineLavoriServiceUtil.updateFineLavori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -175,18 +204,18 @@ public class FineLavoriServiceClpInvoker { ((Boolean)arguments[11]).booleanValue()); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return FineLavoriServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return FineLavoriServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return FineLavoriServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -194,28 +223,28 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return FineLavoriServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return FineLavoriServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return FineLavoriServiceUtil.findByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -223,14 +252,14 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return FineLavoriServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -238,8 +267,8 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return FineLavoriServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } @@ -247,22 +276,10 @@ public class FineLavoriServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; - private String _methodName164; - private String[] _methodParameterTypes164; - private String _methodName165; - private String[] _methodParameterTypes165; - private String _methodName166; - private String[] _methodParameterTypes166; - private String _methodName167; - private String[] _methodParameterTypes167; private String _methodName168; private String[] _methodParameterTypes168; private String _methodName169; @@ -283,4 +300,20 @@ public class FineLavoriServiceClpInvoker { private String[] _methodParameterTypes176; private String _methodName177; private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java index e18a53d7..e9cfceba 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1289,6 +1290,63 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1946,6 +2004,12 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java index ab84a9c2..160dfe21 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java @@ -106,21 +106,21 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.HistoryWorkflowAction" }; - _methodName172 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName178 = "findByIntPratica"; + _methodName184 = "findByIntPratica"; - _methodParameterTypes178 = new String[] { "long", "int" }; + _methodParameterTypes184 = new String[] { "long", "int" }; - _methodName179 = "findByIntPratica"; + _methodName185 = "findByIntPratica"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -212,26 +212,26 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { return HistoryWorkflowActionLocalServiceUtil.updateHistoryWorkflowAction((it.tref.liferay.portos.bo.model.HistoryWorkflowAction)arguments[0]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { HistoryWorkflowActionLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } @@ -270,12 +270,12 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; private String[] _methodParameterTypes179; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java index b571eb13..45fc6a5c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1057,6 +1058,63 @@ public abstract class HistoryWorkflowActionServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1709,6 +1767,12 @@ public abstract class HistoryWorkflowActionServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java index 84348290..dd04ff30 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class HistoryWorkflowActionServiceClpInvoker { public HistoryWorkflowActionServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return HistoryWorkflowActionServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { HistoryWorkflowActionServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class HistoryWorkflowActionServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java index ac03e7a6..bb86e3b0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1349,6 +1350,63 @@ public abstract class IntPraticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2044,6 +2102,12 @@ public abstract class IntPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index 115b7b45..1bb785ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -122,339 +122,346 @@ public class IntPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName187 = "getTipiProcedure"; + _methodName193 = "getTipiProcedure"; - _methodParameterTypes187 = new String[] { }; + _methodParameterTypes193 = new String[] { }; - _methodName188 = "findSorteggiabiliNew"; + _methodName194 = "findSorteggiabiliNew"; - _methodParameterTypes188 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes194 = new String[] { "long", "java.util.Date" }; - _methodName189 = "findSorteggiabili"; + _methodName195 = "findSorteggiabili"; - _methodParameterTypes189 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes195 = new String[] { "long", "java.util.Date" }; - _methodName190 = "addIntPratica"; + _methodName196 = "addIntPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { + "long", "java.lang.String", "boolean", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName197 = "addIntPratica"; + + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "addIntPratica"; + _methodName198 = "addIntPratica"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "deleteIntPratica"; + _methodName199 = "deleteIntPratica"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes199 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName193 = "deleteIntPratica"; + _methodName200 = "deleteIntPratica"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes200 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName194 = "cloneIntPratica"; + _methodName201 = "cloneIntPratica"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes201 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "updateDelegati"; + _methodName203 = "updateDelegati"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName197 = "fetchIntPratica"; + _methodName204 = "fetchIntPratica"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName198 = "findFascicoliNotProgetto"; + _methodName205 = "findFascicoliNotProgetto"; - _methodParameterTypes198 = new String[] { "int", "int" }; + _methodParameterTypes205 = new String[] { "int", "int" }; - _methodName199 = "countFascicoliNotProgetto"; + _methodName206 = "countFascicoliNotProgetto"; - _methodParameterTypes199 = new String[] { }; + _methodParameterTypes206 = new String[] { }; - _methodName201 = "addNumeroProgetto"; + _methodName208 = "addNumeroProgetto"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName202 = "sospendiPratica"; + _methodName209 = "sospendiPratica"; - _methodParameterTypes202 = new String[] { "long", "boolean" }; + _methodParameterTypes209 = new String[] { "long", "boolean" }; - _methodName203 = "cambiaTitolare"; + _methodName210 = "cambiaTitolare"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes210 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName204 = "updateStatoPratica"; + _methodName211 = "updateStatoPratica"; - _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; - _methodName205 = "updateIntPraticaSorteggio"; + _methodName212 = "updateIntPraticaSorteggio"; - _methodParameterTypes205 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes212 = new String[] { "long", "java.util.Date" }; - _methodName206 = "updateIntPraticaSorteggio"; + _methodName213 = "updateIntPraticaSorteggio"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName207 = "findByC_UserId"; + _methodName214 = "findByC_UserId"; - _methodParameterTypes207 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes214 = new String[] { "long", "long", "int", "int" }; - _methodName208 = "countByC_UserId"; + _methodName215 = "countByC_UserId"; - _methodParameterTypes208 = new String[] { "long", "long" }; + _methodParameterTypes215 = new String[] { "long", "long" }; - _methodName209 = "updateStatus"; + _methodName216 = "updateStatus"; - _methodParameterTypes209 = new String[] { "long", "int" }; + _methodParameterTypes216 = new String[] { "long", "int" }; - _methodName210 = "findByCompanyIdSoggettoProgetti"; + _methodName217 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes210 = new String[] { "long", "long" }; + _methodParameterTypes217 = new String[] { "long", "long" }; - _methodName211 = "countByCompanyIdSoggettoProgetti"; + _methodName218 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes218 = new String[] { "long", "long" }; - _methodName213 = "findByCompanyIdSoggettoArchivio"; + _methodName220 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes213 = new String[] { "long", "long" }; + _methodParameterTypes220 = new String[] { "long", "long" }; - _methodName214 = "countByCompanyIdSoggettoArchivio"; + _methodName221 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes214 = new String[] { "long", "long" }; + _methodParameterTypes221 = new String[] { "long", "long" }; - _methodName216 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName223 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes216 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes223 = new String[] { "long", "long", "int", "int" }; - _methodName217 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName224 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes217 = new String[] { "long", "long" }; + _methodParameterTypes224 = new String[] { "long", "long" }; - _methodName219 = "findByCanAddFineLavori"; + _methodName226 = "findByCanAddFineLavori"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes226 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName220 = "countByCanAddFineLavori"; + _methodName227 = "countByCanAddFineLavori"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes227 = new String[] { "long", "java.lang.String" }; - _methodName222 = "findByCanAddCollaudo"; + _methodName229 = "findByCanAddCollaudo"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName223 = "countByCanAddCollaudo"; + _methodName230 = "countByCanAddCollaudo"; - _methodParameterTypes223 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; - _methodName224 = "search"; + _methodName231 = "search"; - _methodParameterTypes224 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes231 = new String[] { "java.util.List", "int", "int" }; - _methodName225 = "countSearch"; + _methodName232 = "countSearch"; - _methodParameterTypes225 = new String[] { "java.util.List" }; + _methodParameterTypes232 = new String[] { "java.util.List" }; - _methodName226 = "searchWithIntPraticaId"; + _methodName233 = "searchWithIntPraticaId"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes233 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName227 = "countSearchWithIntPraticaId"; + _methodName234 = "countSearchWithIntPraticaId"; - _methodParameterTypes227 = new String[] { "java.util.List", "long" }; + _methodParameterTypes234 = new String[] { "java.util.List", "long" }; - _methodName228 = "allegaFileAnnullamento"; + _methodName235 = "allegaFileAnnullamento"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes235 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName229 = "generateFileAnnullamento"; + _methodName236 = "generateFileAnnullamento"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes236 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName230 = "deleteFileAnnullamento"; + _methodName237 = "deleteFileAnnullamento"; - _methodParameterTypes230 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName231 = "completeAnnullamento"; + _methodName238 = "completeAnnullamento"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes238 = new String[] { "long" }; - _methodName232 = "cambiaIstruttore"; + _methodName239 = "cambiaIstruttore"; - _methodParameterTypes232 = new String[] { "long", "long", "long" }; + _methodParameterTypes239 = new String[] { "long", "long", "long" }; - _methodName233 = "countCaricoLavoroCF"; + _methodName240 = "countCaricoLavoroCF"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes240 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName234 = "countCaricoLavoroIstruttore"; + _methodName241 = "countCaricoLavoroIstruttore"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes241 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName235 = "generateReportPratica"; + _methodName242 = "generateReportPratica"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes242 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName236 = "updateModifiedDate"; + _methodName243 = "updateModifiedDate"; - _methodParameterTypes236 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes243 = new String[] { "long", "java.util.Date" }; - _methodName237 = "countAutorizzazione"; + _methodName244 = "countAutorizzazione"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes244 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName238 = "countSanatorie"; + _methodName245 = "countSanatorie"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes245 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName239 = "countOpereMinoreImportanza"; + _methodName246 = "countOpereMinoreImportanza"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes246 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName240 = "countDeposito"; + _methodName247 = "countDeposito"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes247 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName241 = "countVidimate"; + _methodName248 = "countVidimate"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes248 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName242 = "countControllo"; + _methodName249 = "countControllo"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes249 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName243 = "findIntPraticaNotExist"; + _methodName250 = "findIntPraticaNotExist"; - _methodParameterTypes243 = new String[] { }; + _methodParameterTypes250 = new String[] { }; - _methodName244 = "riparaWorkflow"; + _methodName251 = "riparaWorkflow"; - _methodParameterTypes244 = new String[] { }; + _methodParameterTypes251 = new String[] { }; - _methodName245 = "reIndexFascicolo"; + _methodName252 = "reIndexFascicolo"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes252 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName246 = "reIndexFasciolo"; + _methodName253 = "reIndexFasciolo"; - _methodParameterTypes246 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes253 = new String[] { "java.lang.String", "long" }; - _methodName247 = "reIndexFasciolo"; + _methodName254 = "reIndexFasciolo"; - _methodParameterTypes247 = new String[] { "long", "long" }; + _methodParameterTypes254 = new String[] { "long", "long" }; - _methodName248 = "trovaDoppioni"; + _methodName255 = "trovaDoppioni"; - _methodParameterTypes248 = new String[] { }; + _methodParameterTypes255 = new String[] { }; - _methodName249 = "findByNumeroProgetto"; + _methodName256 = "findByNumeroProgetto"; - _methodParameterTypes249 = new String[] { "java.lang.String" }; + _methodParameterTypes256 = new String[] { "java.lang.String" }; - _methodName250 = "findByTerritorioId"; + _methodName257 = "findByTerritorioId"; - _methodParameterTypes250 = new String[] { "long" }; + _methodParameterTypes257 = new String[] { "long" }; - _methodName251 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName258 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes251 = new String[] { + _methodParameterTypes258 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName252 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName259 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes259 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName253 = "reportPraticheVidimate"; + _methodName260 = "reportPraticheVidimate"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes260 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName254 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName261 = "reportPraticheVidimateCalcolaDataSorteggio"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes261 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName255 = "countIngressiAutorizzazioni"; + _methodName262 = "countIngressiAutorizzazioni"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes262 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName256 = "countIngressiDepositi"; + _methodName263 = "countIngressiDepositi"; - _methodParameterTypes256 = new String[] { + _methodParameterTypes263 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName257 = "countIngressiCO"; + _methodName264 = "countIngressiCO"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes264 = new String[] { "java.util.Date", "java.util.Date", "long" }; } @@ -572,44 +579,52 @@ public class IntPraticaLocalServiceClpInvoker { return IntPraticaLocalServiceUtil.updateIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return IntPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { IntPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return IntPraticaLocalServiceUtil.getTipiProcedure(); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return IntPraticaLocalServiceUtil.findSorteggiabiliNew(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return IntPraticaLocalServiceUtil.findSorteggiabili(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], + ((Boolean)arguments[2]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[3]); + } + + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -621,226 +636,226 @@ public class IntPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -848,161 +863,161 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return IntPraticaLocalServiceUtil.riparaWorkflow(); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return IntPraticaLocalServiceUtil.trovaDoppioni(); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1050,26 +1065,16 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; + private String _methodName186; + private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; private String _methodName194; private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; private String _methodName197; @@ -1078,10 +1083,10 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; + private String _methodName200; + private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; private String _methodName203; private String[] _methodParameterTypes203; private String _methodName204; @@ -1090,8 +1095,6 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes205; private String _methodName206; private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; @@ -1100,32 +1103,32 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; - private String _methodName219; - private String[] _methodParameterTypes219; + private String _methodName218; + private String[] _methodParameterTypes218; private String _methodName220; private String[] _methodParameterTypes220; - private String _methodName222; - private String[] _methodParameterTypes222; + private String _methodName221; + private String[] _methodParameterTypes221; private String _methodName223; private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; private String _methodName226; private String[] _methodParameterTypes226; private String _methodName227; private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; private String _methodName229; private String[] _methodParameterTypes229; private String _methodName230; @@ -1184,4 +1187,18 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes256; private String _methodName257; private String[] _methodParameterTypes257; + private String _methodName258; + private String[] _methodParameterTypes258; + private String _methodName259; + private String[] _methodParameterTypes259; + private String _methodName260; + private String[] _methodParameterTypes260; + private String _methodName261; + private String[] _methodParameterTypes261; + private String _methodName262; + private String[] _methodParameterTypes262; + private String _methodName263; + private String[] _methodParameterTypes263; + private String _methodName264; + private String[] _methodParameterTypes264; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java index 02ceb8ce..8baf26a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java index fc94e5a7..c14757d8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java @@ -24,145 +24,145 @@ import java.util.Arrays; */ public class IntPraticaServiceClpInvoker { public IntPraticaServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "getIntPratica"; + _methodName172 = "getIntPratica"; - _methodParameterTypes166 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName167 = "deleteIntPratica"; + _methodName173 = "deleteIntPratica"; - _methodParameterTypes167 = new String[] { "long", "long" }; + _methodParameterTypes173 = new String[] { "long", "long" }; - _methodName168 = "sospendiPratica"; + _methodName174 = "sospendiPratica"; - _methodParameterTypes168 = new String[] { "long", "boolean" }; + _methodParameterTypes174 = new String[] { "long", "boolean" }; - _methodName169 = "cambiaTitolare"; + _methodName175 = "cambiaTitolare"; - _methodParameterTypes169 = new String[] { + _methodParameterTypes175 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName170 = "updateStatoPratica"; + _methodName176 = "updateStatoPratica"; - _methodParameterTypes170 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes176 = new String[] { "long", "java.lang.String" }; - _methodName171 = "search"; + _methodName177 = "search"; - _methodParameterTypes171 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes177 = new String[] { "java.util.List", "int", "int" }; - _methodName172 = "countSearch"; + _methodName178 = "countSearch"; - _methodParameterTypes172 = new String[] { "java.util.List" }; + _methodParameterTypes178 = new String[] { "java.util.List" }; - _methodName173 = "findByCompanyIdSoggettoProgetti"; + _methodName179 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes173 = new String[] { "long", "long" }; + _methodParameterTypes179 = new String[] { "long", "long" }; - _methodName174 = "countByCompanyIdSoggettoProgetti"; + _methodName180 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes174 = new String[] { "long", "long" }; + _methodParameterTypes180 = new String[] { "long", "long" }; - _methodName175 = "findByCompanyIdSoggettoArchivio"; + _methodName181 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes175 = new String[] { "long", "long" }; + _methodParameterTypes181 = new String[] { "long", "long" }; - _methodName176 = "countByCompanyIdSoggettoArchivio"; + _methodName182 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes176 = new String[] { "long", "long" }; + _methodParameterTypes182 = new String[] { "long", "long" }; - _methodName177 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName183 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes177 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes183 = new String[] { "long", "long", "int", "int" }; - _methodName178 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName184 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes178 = new String[] { "long", "long" }; + _methodParameterTypes184 = new String[] { "long", "long" }; - _methodName179 = "findByCanAddFineLavori"; + _methodName185 = "findByCanAddFineLavori"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName180 = "countByCanAddFineLavori"; + _methodName186 = "countByCanAddFineLavori"; - _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String" }; - _methodName181 = "findByCanAddCollaudo"; + _methodName187 = "findByCanAddCollaudo"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName182 = "countByCanAddCollaudo"; + _methodName188 = "countByCanAddCollaudo"; - _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; - _methodName183 = "allegaFileAnnullamento"; + _methodName189 = "allegaFileAnnullamento"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName184 = "completeAnnullamento"; + _methodName190 = "completeAnnullamento"; - _methodParameterTypes184 = new String[] { "long", "long" }; + _methodParameterTypes190 = new String[] { "long", "long" }; - _methodName185 = "cambiaIstruttore"; + _methodName191 = "cambiaIstruttore"; - _methodParameterTypes185 = new String[] { "long", "long", "long" }; + _methodParameterTypes191 = new String[] { "long", "long", "long" }; - _methodName186 = "geosisma"; + _methodName192 = "geosisma"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return IntPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { IntPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return IntPraticaServiceUtil.getIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { IntPraticaServiceUtil.deleteIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { IntPraticaServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); return null; } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { IntPraticaServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -170,110 +170,110 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { IntPraticaServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return IntPraticaServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return IntPraticaServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return IntPraticaServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return IntPraticaServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return IntPraticaServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return IntPraticaServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return IntPraticaServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return IntPraticaServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { IntPraticaServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { IntPraticaServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -281,30 +281,18 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return IntPraticaServiceUtil.geosisma(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -335,4 +323,16 @@ public class IntPraticaServiceClpInvoker { private String[] _methodParameterTypes185; private String _methodName186; private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java index 0a669f18..3913cfda 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1345,6 +1346,63 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2040,6 +2098,12 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java index 2ceee641..558bcd5a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java @@ -122,39 +122,39 @@ public class PagamentoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Pagamento" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "createPagamentoId"; + _methodName192 = "createPagamentoId"; - _methodParameterTypes186 = new String[] { }; + _methodParameterTypes192 = new String[] { }; - _methodName187 = "addPagamento"; + _methodName193 = "addPagamento"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "addPagamentoAndUpdate"; + _methodName194 = "addPagamentoAndUpdate"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName189 = "addPagamentoAndUpdate"; + _methodName195 = "addPagamentoAndUpdate"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", @@ -162,9 +162,9 @@ public class PagamentoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName190 = "addPagamentoAndUpdate"; + _methodName196 = "addPagamentoAndUpdate"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", @@ -172,158 +172,158 @@ public class PagamentoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "updatePagamento"; + _methodName198 = "updatePagamento"; - _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; - _methodName193 = "updatePagamento"; + _methodName199 = "updatePagamento"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName194 = "updatePagamentoUtilizzata"; + _methodName200 = "updatePagamentoUtilizzata"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName195 = "findByCommittente_Mezzo"; + _methodName201 = "findByCommittente_Mezzo"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes201 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName196 = "countByCommittente_Mezzo"; + _methodName202 = "countByCommittente_Mezzo"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes202 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName197 = "findByCommittente_Mezzo_Utilizzata"; + _methodName203 = "findByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes203 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName198 = "countByCommittente_Mezzo_Utilizzata"; + _methodName204 = "countByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes204 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName199 = "findByMezzo_Utilizzata"; + _methodName205 = "findByMezzo_Utilizzata"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes205 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName200 = "findByOldPagamentoId"; + _methodName206 = "findByOldPagamentoId"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes206 = new String[] { "long" }; - _methodName201 = "countByMezzo_Utilizzata"; + _methodName207 = "countByMezzo_Utilizzata"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes207 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName202 = "findByMezzo_Utilizzata_CreateDate"; + _methodName208 = "findByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date", "int", "int" }; - _methodName203 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName209 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes209 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date" }; - _methodName204 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName210 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "int", "int" }; - _methodName205 = "findInPending"; + _methodName211 = "findInPending"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes211 = new String[] { "java.util.Date", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "countInPending"; + _methodName212 = "countInPending"; - _methodParameterTypes206 = new String[] { "java.util.Date" }; + _methodParameterTypes212 = new String[] { "java.util.Date" }; - _methodName208 = "countByMezzo_Utilizzata_CreateDate"; + _methodName214 = "countByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes214 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName209 = "deletePagamento"; + _methodName215 = "deletePagamento"; - _methodParameterTypes209 = new String[] { "long" }; + _methodParameterTypes215 = new String[] { "long" }; - _methodName210 = "deletePagamento"; + _methodName216 = "deletePagamento"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "it.tref.liferay.portos.bo.model.Pagamento" }; - _methodName211 = "updateEmailPendingPagamento"; + _methodName217 = "updateEmailPendingPagamento"; - _methodParameterTypes211 = new String[] { "long", "boolean" }; + _methodParameterTypes217 = new String[] { "long", "boolean" }; - _methodName214 = "countByClassPk"; + _methodName220 = "countByClassPk"; - _methodParameterTypes214 = new String[] { "long" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName215 = "findByClassPk"; + _methodName221 = "findByClassPk"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes221 = new String[] { "long" }; - _methodName216 = "findByIntPratica"; + _methodName222 = "findByIntPratica"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName217 = "countByIntPratica"; + _methodName223 = "countByIntPratica"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes223 = new String[] { "long" }; - _methodName218 = "findByIntPratica_Visible"; + _methodName224 = "findByIntPratica_Visible"; - _methodParameterTypes218 = new String[] { "long" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName219 = "countByIntPratica_Visible"; + _methodName225 = "countByIntPratica_Visible"; - _methodParameterTypes219 = new String[] { "long" }; + _methodParameterTypes225 = new String[] { "long" }; - _methodName221 = "updatePagamentoManuale"; + _methodName227 = "updatePagamentoManuale"; - _methodParameterTypes221 = new String[] { - "long", "byte[][]", "java.lang.String", + _methodParameterTypes227 = new String[] { + "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName222 = "updatePagamentoManualeFromImport"; + _methodName228 = "updatePagamentoManualeFromImport"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes228 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName223 = "fetchByOldPagamentoId"; + _methodName229 = "fetchByOldPagamentoId"; - _methodParameterTypes223 = new String[] { "long" }; + _methodParameterTypes229 = new String[] { "long" }; - _methodName224 = "updateOtf"; + _methodName230 = "updateOtf"; - _methodParameterTypes224 = new String[] { "long", "boolean" }; + _methodParameterTypes230 = new String[] { "long", "boolean" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -439,25 +439,25 @@ public class PagamentoLocalServiceClpInvoker { return PagamentoLocalServiceUtil.updatePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return PagamentoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { PagamentoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return PagamentoLocalServiceUtil.createPagamentoId(); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamento((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -468,8 +468,8 @@ public class PagamentoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -480,8 +480,8 @@ public class PagamentoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -493,8 +493,8 @@ public class PagamentoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -508,89 +508,89 @@ public class PagamentoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[13]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamentoUtilizzata(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return PagamentoLocalServiceUtil.findByOldPagamentoId(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.util.Date)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), (java.util.Date)arguments[3]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), @@ -599,82 +599,83 @@ public class PagamentoLocalServiceClpInvoker { ((Integer)arguments[5]).intValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.util.Date)arguments[2]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), - (byte[])arguments[1], (java.lang.String)arguments[2], - (com.liferay.portal.service.ServiceContext)arguments[3]); + (java.lang.String)arguments[1], (byte[])arguments[2], + (java.lang.String)arguments[3], + (com.liferay.portal.service.ServiceContext)arguments[4]); return null; } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); @@ -682,13 +683,13 @@ public class PagamentoLocalServiceClpInvoker { return null; } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return PagamentoLocalServiceUtil.fetchByOldPagamentoId(((Long)arguments[0]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } @@ -736,20 +737,10 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -760,8 +751,6 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -780,6 +769,8 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes205; private String _methodName206; private String[] _methodParameterTypes206; + private String _methodName207; + private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; @@ -788,6 +779,8 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; @@ -796,10 +789,8 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; + private String _methodName220; + private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; private String _methodName222; @@ -808,4 +799,14 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; + private String _methodName225; + private String[] _methodParameterTypes225; + private String _methodName227; + private String[] _methodParameterTypes227; + private String _methodName228; + private String[] _methodParameterTypes228; + private String _methodName229; + private String[] _methodParameterTypes229; + private String _methodName230; + private String[] _methodParameterTypes230; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java index 8d746b3a..fd58668f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java index db1deb16..65e7ebad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java @@ -24,41 +24,42 @@ import java.util.Arrays; */ public class PagamentoServiceClpInvoker { public PagamentoServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "updatePagamentoManuale"; + _methodName172 = "updatePagamentoManuale"; - _methodParameterTypes166 = new String[] { - "long", "byte[][]", "java.lang.String", + _methodParameterTypes172 = new String[] { + "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return PagamentoServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { PagamentoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], - (com.liferay.portal.service.ServiceContext)arguments[3]); + (java.lang.String)arguments[3], + (com.liferay.portal.service.ServiceContext)arguments[4]); return null; } @@ -66,10 +67,10 @@ public class PagamentoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName172; + private String[] _methodParameterTypes172; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java index b02a298a..58c10c3e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1347,6 +1348,63 @@ public abstract class ParereGeologoLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2042,6 +2100,12 @@ public abstract class ParereGeologoLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java index 0f1e923e..4bcd9fb5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java @@ -122,101 +122,101 @@ public class ParereGeologoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "addParereGeologo"; + _methodName192 = "addParereGeologo"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName187 = "updateParereGeologo"; + _methodName193 = "updateParereGeologo"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "deleteParereGeologo"; + _methodName194 = "deleteParereGeologo"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName189 = "deleteParereGeologo"; + _methodName195 = "deleteParereGeologo"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName190 = "updateParereGeologo"; + _methodName196 = "updateParereGeologo"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName191 = "remove"; + _methodName197 = "remove"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName192 = "findByIntPraticaId"; + _methodName198 = "findByIntPraticaId"; - _methodParameterTypes192 = new String[] { "long", "int", "int" }; + _methodParameterTypes198 = new String[] { "long", "int", "int" }; - _methodName193 = "countByIntPraticaId"; + _methodName199 = "countByIntPraticaId"; - _methodParameterTypes193 = new String[] { "long" }; + _methodParameterTypes199 = new String[] { "long" }; - _methodName194 = "findByIntPraticaIdParereVuoto"; + _methodName200 = "findByIntPraticaIdParereVuoto"; - _methodParameterTypes194 = new String[] { "long", "int", "int" }; + _methodParameterTypes200 = new String[] { "long", "int", "int" }; - _methodName195 = "countByIntPraticaIdParereVuoto"; + _methodName201 = "countByIntPraticaIdParereVuoto"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName196 = "findByIntPraticaId_GeologoId"; + _methodName202 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes196 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes202 = new String[] { "long", "long", "int", "int" }; - _methodName197 = "countByIntPraticaId_GeologoId"; + _methodName203 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes197 = new String[] { "long", "long" }; + _methodParameterTypes203 = new String[] { "long", "long" }; - _methodName198 = "findByGeologoId"; + _methodName204 = "findByGeologoId"; - _methodParameterTypes198 = new String[] { "long", "int", "int" }; + _methodParameterTypes204 = new String[] { "long", "int", "int" }; - _methodName199 = "findByCompanyIdGroupId"; + _methodName205 = "findByCompanyIdGroupId"; - _methodParameterTypes199 = new String[] { "long", "long" }; + _methodParameterTypes205 = new String[] { "long", "long" }; - _methodName200 = "countByGeologoId"; + _methodName206 = "countByGeologoId"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes206 = new String[] { "long" }; - _methodName201 = "findNotParereByGeologoId"; + _methodName207 = "findNotParereByGeologoId"; - _methodParameterTypes201 = new String[] { "long", "int", "int" }; + _methodParameterTypes207 = new String[] { "long", "int", "int" }; - _methodName202 = "findWithParereByGeologoId"; + _methodName208 = "findWithParereByGeologoId"; - _methodParameterTypes202 = new String[] { "long", "int", "int" }; + _methodParameterTypes208 = new String[] { "long", "int", "int" }; - _methodName203 = "countFindNotParereByGeologoId"; + _methodName209 = "countFindNotParereByGeologoId"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName204 = "countFindWithParereByGeologoId"; + _methodName210 = "countFindWithParereByGeologoId"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -332,131 +332,131 @@ public class ParereGeologoLocalServiceClpInvoker { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ParereGeologoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { ParereGeologoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ParereGeologoLocalServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ParereGeologoLocalServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return ParereGeologoLocalServiceUtil.remove((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaIdParereVuoto(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaIdParereVuoto(((Long)arguments[0]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } @@ -503,22 +503,10 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -545,4 +533,16 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; + private String _methodName205; + private String[] _methodParameterTypes205; + private String _methodName206; + private String[] _methodParameterTypes206; + private String _methodName207; + private String[] _methodParameterTypes207; + private String _methodName208; + private String[] _methodParameterTypes208; + private String _methodName209; + private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java index 0f0fd429..67eb8c5d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java index c235f235..d600021b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java @@ -24,155 +24,155 @@ import java.util.Arrays; */ public class ParereGeologoServiceClpInvoker { public ParereGeologoServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "addParereGeologo"; + _methodName172 = "addParereGeologo"; - _methodParameterTypes166 = new String[] { + _methodParameterTypes172 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName167 = "updateParereGeologo"; + _methodName173 = "updateParereGeologo"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName168 = "deleteParereGeologo"; + _methodName174 = "deleteParereGeologo"; - _methodParameterTypes168 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName169 = "updateParereGeologo"; + _methodName175 = "updateParereGeologo"; - _methodParameterTypes169 = new String[] { + _methodParameterTypes175 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName170 = "findByIntPraticaId"; + _methodName176 = "findByIntPraticaId"; - _methodParameterTypes170 = new String[] { "long", "int", "int" }; + _methodParameterTypes176 = new String[] { "long", "int", "int" }; - _methodName171 = "findByIntPraticaId_GeologoId"; + _methodName177 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes171 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes177 = new String[] { "long", "long", "int", "int" }; - _methodName172 = "countByIntPraticaId_GeologoId"; + _methodName178 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes172 = new String[] { "long", "long" }; + _methodParameterTypes178 = new String[] { "long", "long" }; - _methodName173 = "findByGeologoId"; + _methodName179 = "findByGeologoId"; - _methodParameterTypes173 = new String[] { "long", "int", "int" }; + _methodParameterTypes179 = new String[] { "long", "int", "int" }; - _methodName174 = "countByGeologoId"; + _methodName180 = "countByGeologoId"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return ParereGeologoServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { ParereGeologoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ParereGeologoServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return ParereGeologoServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ParereGeologoServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return ParereGeologoServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return ParereGeologoServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return ParereGeologoServiceUtil.findByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ParereGeologoServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ParereGeologoServiceUtil.findByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ParereGeologoServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; private String[] _methodParameterTypes173; private String _methodName174; private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java new file mode 100644 index 00000000..48604dda --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java @@ -0,0 +1,2126 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.base; + +import com.liferay.portal.kernel.bean.BeanReference; +import com.liferay.portal.kernel.bean.IdentifiableBean; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.Projection; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.model.PersistedModel; +import com.liferay.portal.service.BaseLocalServiceImpl; +import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil; +import com.liferay.portal.service.persistence.UserPersistence; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService; +import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; +import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; +import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; +import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; +import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; +import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; +import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; +import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; +import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; +import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; +import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; +import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; +import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; + +import java.io.Serializable; + +import java.util.List; + +import javax.sql.DataSource; + +/** + * Provides the base implementation for the pratica attenzionata local service. + * + *

+ * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataLocalServiceImpl + * @see it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil + * @generated + */ +public abstract class PraticaAttenzionataLocalServiceBaseImpl + extends BaseLocalServiceImpl implements PraticaAttenzionataLocalService, + IdentifiableBean { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil} to access the pratica attenzionata local service. + */ + + /** + * Adds the pratica attenzionata to the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was added + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public PraticaAttenzionata addPraticaAttenzionata( + PraticaAttenzionata praticaAttenzionata) throws SystemException { + praticaAttenzionata.setNew(true); + + return praticaAttenzionataPersistence.update(praticaAttenzionata); + } + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + @Override + public PraticaAttenzionata createPraticaAttenzionata( + long praticaAttenzionataId) { + return praticaAttenzionataPersistence.create(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.DELETE) + @Override + public PraticaAttenzionata deletePraticaAttenzionata( + long praticaAttenzionataId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.remove(praticaAttenzionataId); + } + + /** + * Deletes the pratica attenzionata from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.DELETE) + @Override + public PraticaAttenzionata deletePraticaAttenzionata( + PraticaAttenzionata praticaAttenzionata) throws SystemException { + return praticaAttenzionataPersistence.remove(praticaAttenzionata); + } + + @Override + public DynamicQuery dynamicQuery() { + Class clazz = getClass(); + + return DynamicQueryFactoryUtil.forClass(PraticaAttenzionata.class, + clazz.getClassLoader()); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery) + throws SystemException { + return praticaAttenzionataPersistence.findWithDynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) + throws SystemException { + return praticaAttenzionataPersistence.findWithDynamicQuery(dynamicQuery, + start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + return praticaAttenzionataPersistence.findWithDynamicQuery(dynamicQuery, + start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount(DynamicQuery dynamicQuery) + throws SystemException { + return praticaAttenzionataPersistence.countWithDynamicQuery(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount(DynamicQuery dynamicQuery, + Projection projection) throws SystemException { + return praticaAttenzionataPersistence.countWithDynamicQuery(dynamicQuery, + projection); + } + + @Override + public PraticaAttenzionata fetchPraticaAttenzionata( + long praticaAttenzionataId) throws SystemException { + return praticaAttenzionataPersistence.fetchByPrimaryKey(praticaAttenzionataId); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + String uuid, long companyId) throws SystemException { + return praticaAttenzionataPersistence.fetchByUuid_C_First(uuid, + companyId, null); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + String uuid, long groupId) throws SystemException { + return praticaAttenzionataPersistence.fetchByUUID_G(uuid, groupId); + } + + /** + * Returns the pratica attenzionata with the primary key. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws PortalException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata getPraticaAttenzionata( + long praticaAttenzionataId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByPrimaryKey(praticaAttenzionataId); + } + + @Override + public PersistedModel getPersistedModel(Serializable primaryKeyObj) + throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByPrimaryKey(primaryKeyObj); + } + + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + String uuid, long companyId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByUuid_C_First(uuid, + companyId, null); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + String uuid, long groupId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByUUID_G(uuid, groupId); + } + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List getPraticaAttenzionatas(int start, int end) + throws SystemException { + return praticaAttenzionataPersistence.findAll(start, end); + } + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int getPraticaAttenzionatasCount() throws SystemException { + return praticaAttenzionataPersistence.countAll(); + } + + /** + * Updates the pratica attenzionata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionata the pratica attenzionata + * @return the pratica attenzionata that was updated + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public PraticaAttenzionata updatePraticaAttenzionata( + PraticaAttenzionata praticaAttenzionata) throws SystemException { + return praticaAttenzionataPersistence.update(praticaAttenzionata); + } + + /** + * Returns the allegato manuale local service. + * + * @return the allegato manuale local service + */ + public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { + return allegatoManualeLocalService; + } + + /** + * Sets the allegato manuale local service. + * + * @param allegatoManualeLocalService the allegato manuale local service + */ + public void setAllegatoManualeLocalService( + it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { + this.allegatoManualeLocalService = allegatoManualeLocalService; + } + + /** + * Returns the allegato manuale remote service. + * + * @return the allegato manuale remote service + */ + public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { + return allegatoManualeService; + } + + /** + * Sets the allegato manuale remote service. + * + * @param allegatoManualeService the allegato manuale remote service + */ + public void setAllegatoManualeService( + it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { + this.allegatoManualeService = allegatoManualeService; + } + + /** + * Returns the allegato manuale persistence. + * + * @return the allegato manuale persistence + */ + public AllegatoManualePersistence getAllegatoManualePersistence() { + return allegatoManualePersistence; + } + + /** + * Sets the allegato manuale persistence. + * + * @param allegatoManualePersistence the allegato manuale persistence + */ + public void setAllegatoManualePersistence( + AllegatoManualePersistence allegatoManualePersistence) { + this.allegatoManualePersistence = allegatoManualePersistence; + } + + /** + * Returns the asseverazione local service. + * + * @return the asseverazione local service + */ + public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { + return asseverazioneLocalService; + } + + /** + * Sets the asseverazione local service. + * + * @param asseverazioneLocalService the asseverazione local service + */ + public void setAsseverazioneLocalService( + it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { + this.asseverazioneLocalService = asseverazioneLocalService; + } + + /** + * Returns the asseverazione remote service. + * + * @return the asseverazione remote service + */ + public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { + return asseverazioneService; + } + + /** + * Sets the asseverazione remote service. + * + * @param asseverazioneService the asseverazione remote service + */ + public void setAsseverazioneService( + it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { + this.asseverazioneService = asseverazioneService; + } + + /** + * Returns the asseverazione persistence. + * + * @return the asseverazione persistence + */ + public AsseverazionePersistence getAsseverazionePersistence() { + return asseverazionePersistence; + } + + /** + * Sets the asseverazione persistence. + * + * @param asseverazionePersistence the asseverazione persistence + */ + public void setAsseverazionePersistence( + AsseverazionePersistence asseverazionePersistence) { + this.asseverazionePersistence = asseverazionePersistence; + } + + /** + * Returns the avviso local service. + * + * @return the avviso local service + */ + public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { + return avvisoLocalService; + } + + /** + * Sets the avviso local service. + * + * @param avvisoLocalService the avviso local service + */ + public void setAvvisoLocalService( + it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { + this.avvisoLocalService = avvisoLocalService; + } + + /** + * Returns the avviso remote service. + * + * @return the avviso remote service + */ + public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { + return avvisoService; + } + + /** + * Sets the avviso remote service. + * + * @param avvisoService the avviso remote service + */ + public void setAvvisoService( + it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { + this.avvisoService = avvisoService; + } + + /** + * Returns the avviso persistence. + * + * @return the avviso persistence + */ + public AvvisoPersistence getAvvisoPersistence() { + return avvisoPersistence; + } + + /** + * Sets the avviso persistence. + * + * @param avvisoPersistence the avviso persistence + */ + public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { + this.avvisoPersistence = avvisoPersistence; + } + + /** + * Returns the collaudo local service. + * + * @return the collaudo local service + */ + public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { + return collaudoLocalService; + } + + /** + * Sets the collaudo local service. + * + * @param collaudoLocalService the collaudo local service + */ + public void setCollaudoLocalService( + it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { + this.collaudoLocalService = collaudoLocalService; + } + + /** + * Returns the collaudo remote service. + * + * @return the collaudo remote service + */ + public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { + return collaudoService; + } + + /** + * Sets the collaudo remote service. + * + * @param collaudoService the collaudo remote service + */ + public void setCollaudoService( + it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { + this.collaudoService = collaudoService; + } + + /** + * Returns the collaudo persistence. + * + * @return the collaudo persistence + */ + public CollaudoPersistence getCollaudoPersistence() { + return collaudoPersistence; + } + + /** + * Sets the collaudo persistence. + * + * @param collaudoPersistence the collaudo persistence + */ + public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { + this.collaudoPersistence = collaudoPersistence; + } + + /** + * Returns the comune local service. + * + * @return the comune local service + */ + public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { + return comuneLocalService; + } + + /** + * Sets the comune local service. + * + * @param comuneLocalService the comune local service + */ + public void setComuneLocalService( + it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { + this.comuneLocalService = comuneLocalService; + } + + /** + * Returns the comune remote service. + * + * @return the comune remote service + */ + public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { + return comuneService; + } + + /** + * Sets the comune remote service. + * + * @param comuneService the comune remote service + */ + public void setComuneService( + it.tref.liferay.portos.bo.service.ComuneService comuneService) { + this.comuneService = comuneService; + } + + /** + * Returns the comune persistence. + * + * @return the comune persistence + */ + public ComunePersistence getComunePersistence() { + return comunePersistence; + } + + /** + * Sets the comune persistence. + * + * @param comunePersistence the comune persistence + */ + public void setComunePersistence(ComunePersistence comunePersistence) { + this.comunePersistence = comunePersistence; + } + + /** + * Returns the comunicazione local service. + * + * @return the comunicazione local service + */ + public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { + return comunicazioneLocalService; + } + + /** + * Sets the comunicazione local service. + * + * @param comunicazioneLocalService the comunicazione local service + */ + public void setComunicazioneLocalService( + it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { + this.comunicazioneLocalService = comunicazioneLocalService; + } + + /** + * Returns the comunicazione remote service. + * + * @return the comunicazione remote service + */ + public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { + return comunicazioneService; + } + + /** + * Sets the comunicazione remote service. + * + * @param comunicazioneService the comunicazione remote service + */ + public void setComunicazioneService( + it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { + this.comunicazioneService = comunicazioneService; + } + + /** + * Returns the comunicazione persistence. + * + * @return the comunicazione persistence + */ + public ComunicazionePersistence getComunicazionePersistence() { + return comunicazionePersistence; + } + + /** + * Sets the comunicazione persistence. + * + * @param comunicazionePersistence the comunicazione persistence + */ + public void setComunicazionePersistence( + ComunicazionePersistence comunicazionePersistence) { + this.comunicazionePersistence = comunicazionePersistence; + } + + /** + * Returns the configurazione local service. + * + * @return the configurazione local service + */ + public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { + return configurazioneLocalService; + } + + /** + * Sets the configurazione local service. + * + * @param configurazioneLocalService the configurazione local service + */ + public void setConfigurazioneLocalService( + it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { + this.configurazioneLocalService = configurazioneLocalService; + } + + /** + * Returns the configurazione remote service. + * + * @return the configurazione remote service + */ + public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { + return configurazioneService; + } + + /** + * Sets the configurazione remote service. + * + * @param configurazioneService the configurazione remote service + */ + public void setConfigurazioneService( + it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { + this.configurazioneService = configurazioneService; + } + + /** + * Returns the configurazione persistence. + * + * @return the configurazione persistence + */ + public ConfigurazionePersistence getConfigurazionePersistence() { + return configurazionePersistence; + } + + /** + * Sets the configurazione persistence. + * + * @param configurazionePersistence the configurazione persistence + */ + public void setConfigurazionePersistence( + ConfigurazionePersistence configurazionePersistence) { + this.configurazionePersistence = configurazionePersistence; + } + + /** + * Returns the controllo pratica local service. + * + * @return the controllo pratica local service + */ + public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { + return controlloPraticaLocalService; + } + + /** + * Sets the controllo pratica local service. + * + * @param controlloPraticaLocalService the controllo pratica local service + */ + public void setControlloPraticaLocalService( + it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { + this.controlloPraticaLocalService = controlloPraticaLocalService; + } + + /** + * Returns the controllo pratica remote service. + * + * @return the controllo pratica remote service + */ + public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { + return controlloPraticaService; + } + + /** + * Sets the controllo pratica remote service. + * + * @param controlloPraticaService the controllo pratica remote service + */ + public void setControlloPraticaService( + it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { + this.controlloPraticaService = controlloPraticaService; + } + + /** + * Returns the controllo pratica persistence. + * + * @return the controllo pratica persistence + */ + public ControlloPraticaPersistence getControlloPraticaPersistence() { + return controlloPraticaPersistence; + } + + /** + * Sets the controllo pratica persistence. + * + * @param controlloPraticaPersistence the controllo pratica persistence + */ + public void setControlloPraticaPersistence( + ControlloPraticaPersistence controlloPraticaPersistence) { + this.controlloPraticaPersistence = controlloPraticaPersistence; + } + + /** + * Returns the delega local service. + * + * @return the delega local service + */ + public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { + return delegaLocalService; + } + + /** + * Sets the delega local service. + * + * @param delegaLocalService the delega local service + */ + public void setDelegaLocalService( + it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { + this.delegaLocalService = delegaLocalService; + } + + /** + * Returns the delega remote service. + * + * @return the delega remote service + */ + public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { + return delegaService; + } + + /** + * Sets the delega remote service. + * + * @param delegaService the delega remote service + */ + public void setDelegaService( + it.tref.liferay.portos.bo.service.DelegaService delegaService) { + this.delegaService = delegaService; + } + + /** + * Returns the delega persistence. + * + * @return the delega persistence + */ + public DelegaPersistence getDelegaPersistence() { + return delegaPersistence; + } + + /** + * Sets the delega persistence. + * + * @param delegaPersistence the delega persistence + */ + public void setDelegaPersistence(DelegaPersistence delegaPersistence) { + this.delegaPersistence = delegaPersistence; + } + + /** + * Returns the dett pratica local service. + * + * @return the dett pratica local service + */ + public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { + return dettPraticaLocalService; + } + + /** + * Sets the dett pratica local service. + * + * @param dettPraticaLocalService the dett pratica local service + */ + public void setDettPraticaLocalService( + it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { + this.dettPraticaLocalService = dettPraticaLocalService; + } + + /** + * Returns the dett pratica remote service. + * + * @return the dett pratica remote service + */ + public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { + return dettPraticaService; + } + + /** + * Sets the dett pratica remote service. + * + * @param dettPraticaService the dett pratica remote service + */ + public void setDettPraticaService( + it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { + this.dettPraticaService = dettPraticaService; + } + + /** + * Returns the dett pratica persistence. + * + * @return the dett pratica persistence + */ + public DettPraticaPersistence getDettPraticaPersistence() { + return dettPraticaPersistence; + } + + /** + * Sets the dett pratica persistence. + * + * @param dettPraticaPersistence the dett pratica persistence + */ + public void setDettPraticaPersistence( + DettPraticaPersistence dettPraticaPersistence) { + this.dettPraticaPersistence = dettPraticaPersistence; + } + + /** + * Returns the doc aggiuntiva local service. + * + * @return the doc aggiuntiva local service + */ + public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { + return docAggiuntivaLocalService; + } + + /** + * Sets the doc aggiuntiva local service. + * + * @param docAggiuntivaLocalService the doc aggiuntiva local service + */ + public void setDocAggiuntivaLocalService( + it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { + this.docAggiuntivaLocalService = docAggiuntivaLocalService; + } + + /** + * Returns the doc aggiuntiva remote service. + * + * @return the doc aggiuntiva remote service + */ + public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { + return docAggiuntivaService; + } + + /** + * Sets the doc aggiuntiva remote service. + * + * @param docAggiuntivaService the doc aggiuntiva remote service + */ + public void setDocAggiuntivaService( + it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { + this.docAggiuntivaService = docAggiuntivaService; + } + + /** + * Returns the doc aggiuntiva persistence. + * + * @return the doc aggiuntiva persistence + */ + public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { + return docAggiuntivaPersistence; + } + + /** + * Sets the doc aggiuntiva persistence. + * + * @param docAggiuntivaPersistence the doc aggiuntiva persistence + */ + public void setDocAggiuntivaPersistence( + DocAggiuntivaPersistence docAggiuntivaPersistence) { + this.docAggiuntivaPersistence = docAggiuntivaPersistence; + } + + /** + * Returns the doc pratica local service. + * + * @return the doc pratica local service + */ + public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { + return docPraticaLocalService; + } + + /** + * Sets the doc pratica local service. + * + * @param docPraticaLocalService the doc pratica local service + */ + public void setDocPraticaLocalService( + it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { + this.docPraticaLocalService = docPraticaLocalService; + } + + /** + * Returns the doc pratica remote service. + * + * @return the doc pratica remote service + */ + public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { + return docPraticaService; + } + + /** + * Sets the doc pratica remote service. + * + * @param docPraticaService the doc pratica remote service + */ + public void setDocPraticaService( + it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { + this.docPraticaService = docPraticaService; + } + + /** + * Returns the doc pratica persistence. + * + * @return the doc pratica persistence + */ + public DocPraticaPersistence getDocPraticaPersistence() { + return docPraticaPersistence; + } + + /** + * Sets the doc pratica persistence. + * + * @param docPraticaPersistence the doc pratica persistence + */ + public void setDocPraticaPersistence( + DocPraticaPersistence docPraticaPersistence) { + this.docPraticaPersistence = docPraticaPersistence; + } + + /** + * Returns the fine lavori local service. + * + * @return the fine lavori local service + */ + public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { + return fineLavoriLocalService; + } + + /** + * Sets the fine lavori local service. + * + * @param fineLavoriLocalService the fine lavori local service + */ + public void setFineLavoriLocalService( + it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { + this.fineLavoriLocalService = fineLavoriLocalService; + } + + /** + * Returns the fine lavori remote service. + * + * @return the fine lavori remote service + */ + public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { + return fineLavoriService; + } + + /** + * Sets the fine lavori remote service. + * + * @param fineLavoriService the fine lavori remote service + */ + public void setFineLavoriService( + it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { + this.fineLavoriService = fineLavoriService; + } + + /** + * Returns the fine lavori persistence. + * + * @return the fine lavori persistence + */ + public FineLavoriPersistence getFineLavoriPersistence() { + return fineLavoriPersistence; + } + + /** + * Sets the fine lavori persistence. + * + * @param fineLavoriPersistence the fine lavori persistence + */ + public void setFineLavoriPersistence( + FineLavoriPersistence fineLavoriPersistence) { + this.fineLavoriPersistence = fineLavoriPersistence; + } + + /** + * Returns the history workflow action local service. + * + * @return the history workflow action local service + */ + public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { + return historyWorkflowActionLocalService; + } + + /** + * Sets the history workflow action local service. + * + * @param historyWorkflowActionLocalService the history workflow action local service + */ + public void setHistoryWorkflowActionLocalService( + it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { + this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; + } + + /** + * Returns the history workflow action remote service. + * + * @return the history workflow action remote service + */ + public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { + return historyWorkflowActionService; + } + + /** + * Sets the history workflow action remote service. + * + * @param historyWorkflowActionService the history workflow action remote service + */ + public void setHistoryWorkflowActionService( + it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { + this.historyWorkflowActionService = historyWorkflowActionService; + } + + /** + * Returns the history workflow action persistence. + * + * @return the history workflow action persistence + */ + public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { + return historyWorkflowActionPersistence; + } + + /** + * Sets the history workflow action persistence. + * + * @param historyWorkflowActionPersistence the history workflow action persistence + */ + public void setHistoryWorkflowActionPersistence( + HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { + this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; + } + + /** + * Returns the int pratica local service. + * + * @return the int pratica local service + */ + public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { + return intPraticaLocalService; + } + + /** + * Sets the int pratica local service. + * + * @param intPraticaLocalService the int pratica local service + */ + public void setIntPraticaLocalService( + it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { + this.intPraticaLocalService = intPraticaLocalService; + } + + /** + * Returns the int pratica remote service. + * + * @return the int pratica remote service + */ + public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { + return intPraticaService; + } + + /** + * Sets the int pratica remote service. + * + * @param intPraticaService the int pratica remote service + */ + public void setIntPraticaService( + it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { + this.intPraticaService = intPraticaService; + } + + /** + * Returns the int pratica persistence. + * + * @return the int pratica persistence + */ + public IntPraticaPersistence getIntPraticaPersistence() { + return intPraticaPersistence; + } + + /** + * Sets the int pratica persistence. + * + * @param intPraticaPersistence the int pratica persistence + */ + public void setIntPraticaPersistence( + IntPraticaPersistence intPraticaPersistence) { + this.intPraticaPersistence = intPraticaPersistence; + } + + /** + * Returns the int pratica finder. + * + * @return the int pratica finder + */ + public IntPraticaFinder getIntPraticaFinder() { + return intPraticaFinder; + } + + /** + * Sets the int pratica finder. + * + * @param intPraticaFinder the int pratica finder + */ + public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { + this.intPraticaFinder = intPraticaFinder; + } + + /** + * Returns the pagamento local service. + * + * @return the pagamento local service + */ + public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { + return pagamentoLocalService; + } + + /** + * Sets the pagamento local service. + * + * @param pagamentoLocalService the pagamento local service + */ + public void setPagamentoLocalService( + it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { + this.pagamentoLocalService = pagamentoLocalService; + } + + /** + * Returns the pagamento remote service. + * + * @return the pagamento remote service + */ + public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { + return pagamentoService; + } + + /** + * Sets the pagamento remote service. + * + * @param pagamentoService the pagamento remote service + */ + public void setPagamentoService( + it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { + this.pagamentoService = pagamentoService; + } + + /** + * Returns the pagamento persistence. + * + * @return the pagamento persistence + */ + public PagamentoPersistence getPagamentoPersistence() { + return pagamentoPersistence; + } + + /** + * Sets the pagamento persistence. + * + * @param pagamentoPersistence the pagamento persistence + */ + public void setPagamentoPersistence( + PagamentoPersistence pagamentoPersistence) { + this.pagamentoPersistence = pagamentoPersistence; + } + + /** + * Returns the parere geologo local service. + * + * @return the parere geologo local service + */ + public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { + return parereGeologoLocalService; + } + + /** + * Sets the parere geologo local service. + * + * @param parereGeologoLocalService the parere geologo local service + */ + public void setParereGeologoLocalService( + it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { + this.parereGeologoLocalService = parereGeologoLocalService; + } + + /** + * Returns the parere geologo remote service. + * + * @return the parere geologo remote service + */ + public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { + return parereGeologoService; + } + + /** + * Sets the parere geologo remote service. + * + * @param parereGeologoService the parere geologo remote service + */ + public void setParereGeologoService( + it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { + this.parereGeologoService = parereGeologoService; + } + + /** + * Returns the parere geologo persistence. + * + * @return the parere geologo persistence + */ + public ParereGeologoPersistence getParereGeologoPersistence() { + return parereGeologoPersistence; + } + + /** + * Sets the parere geologo persistence. + * + * @param parereGeologoPersistence the parere geologo persistence + */ + public void setParereGeologoPersistence( + ParereGeologoPersistence parereGeologoPersistence) { + this.parereGeologoPersistence = parereGeologoPersistence; + } + + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + + /** + * Returns the provincia local service. + * + * @return the provincia local service + */ + public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { + return provinciaLocalService; + } + + /** + * Sets the provincia local service. + * + * @param provinciaLocalService the provincia local service + */ + public void setProvinciaLocalService( + it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { + this.provinciaLocalService = provinciaLocalService; + } + + /** + * Returns the provincia remote service. + * + * @return the provincia remote service + */ + public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { + return provinciaService; + } + + /** + * Sets the provincia remote service. + * + * @param provinciaService the provincia remote service + */ + public void setProvinciaService( + it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { + this.provinciaService = provinciaService; + } + + /** + * Returns the provincia persistence. + * + * @return the provincia persistence + */ + public ProvinciaPersistence getProvinciaPersistence() { + return provinciaPersistence; + } + + /** + * Sets the provincia persistence. + * + * @param provinciaPersistence the provincia persistence + */ + public void setProvinciaPersistence( + ProvinciaPersistence provinciaPersistence) { + this.provinciaPersistence = provinciaPersistence; + } + + /** + * Returns the soggetto local service. + * + * @return the soggetto local service + */ + public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { + return soggettoLocalService; + } + + /** + * Sets the soggetto local service. + * + * @param soggettoLocalService the soggetto local service + */ + public void setSoggettoLocalService( + it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { + this.soggettoLocalService = soggettoLocalService; + } + + /** + * Returns the soggetto remote service. + * + * @return the soggetto remote service + */ + public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { + return soggettoService; + } + + /** + * Sets the soggetto remote service. + * + * @param soggettoService the soggetto remote service + */ + public void setSoggettoService( + it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { + this.soggettoService = soggettoService; + } + + /** + * Returns the soggetto persistence. + * + * @return the soggetto persistence + */ + public SoggettoPersistence getSoggettoPersistence() { + return soggettoPersistence; + } + + /** + * Sets the soggetto persistence. + * + * @param soggettoPersistence the soggetto persistence + */ + public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { + this.soggettoPersistence = soggettoPersistence; + } + + /** + * Returns the sorteggio local service. + * + * @return the sorteggio local service + */ + public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { + return sorteggioLocalService; + } + + /** + * Sets the sorteggio local service. + * + * @param sorteggioLocalService the sorteggio local service + */ + public void setSorteggioLocalService( + it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { + this.sorteggioLocalService = sorteggioLocalService; + } + + /** + * Returns the sorteggio remote service. + * + * @return the sorteggio remote service + */ + public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { + return sorteggioService; + } + + /** + * Sets the sorteggio remote service. + * + * @param sorteggioService the sorteggio remote service + */ + public void setSorteggioService( + it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { + this.sorteggioService = sorteggioService; + } + + /** + * Returns the sorteggio persistence. + * + * @return the sorteggio persistence + */ + public SorteggioPersistence getSorteggioPersistence() { + return sorteggioPersistence; + } + + /** + * Sets the sorteggio persistence. + * + * @param sorteggioPersistence the sorteggio persistence + */ + public void setSorteggioPersistence( + SorteggioPersistence sorteggioPersistence) { + this.sorteggioPersistence = sorteggioPersistence; + } + + /** + * Returns the sorteggio finder. + * + * @return the sorteggio finder + */ + public SorteggioFinder getSorteggioFinder() { + return sorteggioFinder; + } + + /** + * Sets the sorteggio finder. + * + * @param sorteggioFinder the sorteggio finder + */ + public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { + this.sorteggioFinder = sorteggioFinder; + } + + /** + * Returns the storico soggetto pratica local service. + * + * @return the storico soggetto pratica local service + */ + public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { + return storicoSoggettoPraticaLocalService; + } + + /** + * Sets the storico soggetto pratica local service. + * + * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service + */ + public void setStoricoSoggettoPraticaLocalService( + it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { + this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; + } + + /** + * Returns the storico soggetto pratica remote service. + * + * @return the storico soggetto pratica remote service + */ + public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { + return storicoSoggettoPraticaService; + } + + /** + * Sets the storico soggetto pratica remote service. + * + * @param storicoSoggettoPraticaService the storico soggetto pratica remote service + */ + public void setStoricoSoggettoPraticaService( + it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { + this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; + } + + /** + * Returns the storico soggetto pratica persistence. + * + * @return the storico soggetto pratica persistence + */ + public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { + return storicoSoggettoPraticaPersistence; + } + + /** + * Sets the storico soggetto pratica persistence. + * + * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence + */ + public void setStoricoSoggettoPraticaPersistence( + StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { + this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; + } + + /** + * Returns the tempistica local service. + * + * @return the tempistica local service + */ + public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { + return tempisticaLocalService; + } + + /** + * Sets the tempistica local service. + * + * @param tempisticaLocalService the tempistica local service + */ + public void setTempisticaLocalService( + it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { + this.tempisticaLocalService = tempisticaLocalService; + } + + /** + * Returns the tempistica remote service. + * + * @return the tempistica remote service + */ + public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { + return tempisticaService; + } + + /** + * Sets the tempistica remote service. + * + * @param tempisticaService the tempistica remote service + */ + public void setTempisticaService( + it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { + this.tempisticaService = tempisticaService; + } + + /** + * Returns the tempistica persistence. + * + * @return the tempistica persistence + */ + public TempisticaPersistence getTempisticaPersistence() { + return tempisticaPersistence; + } + + /** + * Sets the tempistica persistence. + * + * @param tempisticaPersistence the tempistica persistence + */ + public void setTempisticaPersistence( + TempisticaPersistence tempisticaPersistence) { + this.tempisticaPersistence = tempisticaPersistence; + } + + /** + * Returns the tempistica finder. + * + * @return the tempistica finder + */ + public TempisticaFinder getTempisticaFinder() { + return tempisticaFinder; + } + + /** + * Sets the tempistica finder. + * + * @param tempisticaFinder the tempistica finder + */ + public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { + this.tempisticaFinder = tempisticaFinder; + } + + /** + * Returns the territorio local service. + * + * @return the territorio local service + */ + public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { + return territorioLocalService; + } + + /** + * Sets the territorio local service. + * + * @param territorioLocalService the territorio local service + */ + public void setTerritorioLocalService( + it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { + this.territorioLocalService = territorioLocalService; + } + + /** + * Returns the territorio remote service. + * + * @return the territorio remote service + */ + public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { + return territorioService; + } + + /** + * Sets the territorio remote service. + * + * @param territorioService the territorio remote service + */ + public void setTerritorioService( + it.tref.liferay.portos.bo.service.TerritorioService territorioService) { + this.territorioService = territorioService; + } + + /** + * Returns the territorio persistence. + * + * @return the territorio persistence + */ + public TerritorioPersistence getTerritorioPersistence() { + return territorioPersistence; + } + + /** + * Sets the territorio persistence. + * + * @param territorioPersistence the territorio persistence + */ + public void setTerritorioPersistence( + TerritorioPersistence territorioPersistence) { + this.territorioPersistence = territorioPersistence; + } + + /** + * Returns the counter local service. + * + * @return the counter local service + */ + public com.liferay.counter.service.CounterLocalService getCounterLocalService() { + return counterLocalService; + } + + /** + * Sets the counter local service. + * + * @param counterLocalService the counter local service + */ + public void setCounterLocalService( + com.liferay.counter.service.CounterLocalService counterLocalService) { + this.counterLocalService = counterLocalService; + } + + /** + * Returns the resource local service. + * + * @return the resource local service + */ + public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { + return resourceLocalService; + } + + /** + * Sets the resource local service. + * + * @param resourceLocalService the resource local service + */ + public void setResourceLocalService( + com.liferay.portal.service.ResourceLocalService resourceLocalService) { + this.resourceLocalService = resourceLocalService; + } + + /** + * Returns the user local service. + * + * @return the user local service + */ + public com.liferay.portal.service.UserLocalService getUserLocalService() { + return userLocalService; + } + + /** + * Sets the user local service. + * + * @param userLocalService the user local service + */ + public void setUserLocalService( + com.liferay.portal.service.UserLocalService userLocalService) { + this.userLocalService = userLocalService; + } + + /** + * Returns the user remote service. + * + * @return the user remote service + */ + public com.liferay.portal.service.UserService getUserService() { + return userService; + } + + /** + * Sets the user remote service. + * + * @param userService the user remote service + */ + public void setUserService( + com.liferay.portal.service.UserService userService) { + this.userService = userService; + } + + /** + * Returns the user persistence. + * + * @return the user persistence + */ + public UserPersistence getUserPersistence() { + return userPersistence; + } + + /** + * Sets the user persistence. + * + * @param userPersistence the user persistence + */ + public void setUserPersistence(UserPersistence userPersistence) { + this.userPersistence = userPersistence; + } + + public void afterPropertiesSet() { + Class clazz = getClass(); + + _classLoader = clazz.getClassLoader(); + + PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.bo.model.PraticaAttenzionata", + praticaAttenzionataLocalService); + } + + public void destroy() { + PersistedModelLocalServiceRegistryUtil.unregister( + "it.tref.liferay.portos.bo.model.PraticaAttenzionata"); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public String getBeanIdentifier() { + return _beanIdentifier; + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(String beanIdentifier) { + _beanIdentifier = beanIdentifier; + } + + @Override + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + Thread currentThread = Thread.currentThread(); + + ClassLoader contextClassLoader = currentThread.getContextClassLoader(); + + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(_classLoader); + } + + try { + return _clpInvoker.invokeMethod(name, parameterTypes, arguments); + } + finally { + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(contextClassLoader); + } + } + } + + protected Class getModelClass() { + return PraticaAttenzionata.class; + } + + protected String getModelClassName() { + return PraticaAttenzionata.class.getName(); + } + + /** + * Performs an SQL query. + * + * @param sql the sql query + */ + protected void runSQL(String sql) throws SystemException { + try { + DataSource dataSource = praticaAttenzionataPersistence.getDataSource(); + + SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, + sql, new int[0]); + + sqlUpdate.update(); + } + catch (Exception e) { + throw new SystemException(e); + } + } + + @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) + protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) + protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; + @BeanReference(type = AllegatoManualePersistence.class) + protected AllegatoManualePersistence allegatoManualePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) + protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; + @BeanReference(type = AsseverazionePersistence.class) + protected AsseverazionePersistence asseverazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) + protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) + protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; + @BeanReference(type = AvvisoPersistence.class) + protected AvvisoPersistence avvisoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) + protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) + protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; + @BeanReference(type = CollaudoPersistence.class) + protected CollaudoPersistence collaudoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) + protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) + protected it.tref.liferay.portos.bo.service.ComuneService comuneService; + @BeanReference(type = ComunePersistence.class) + protected ComunePersistence comunePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) + protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; + @BeanReference(type = ComunicazionePersistence.class) + protected ComunicazionePersistence comunicazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) + protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; + @BeanReference(type = ConfigurazionePersistence.class) + protected ConfigurazionePersistence configurazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) + protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; + @BeanReference(type = ControlloPraticaPersistence.class) + protected ControlloPraticaPersistence controlloPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) + protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) + protected it.tref.liferay.portos.bo.service.DelegaService delegaService; + @BeanReference(type = DelegaPersistence.class) + protected DelegaPersistence delegaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) + protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; + @BeanReference(type = DettPraticaPersistence.class) + protected DettPraticaPersistence dettPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) + protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) + protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; + @BeanReference(type = DocAggiuntivaPersistence.class) + protected DocAggiuntivaPersistence docAggiuntivaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) + protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; + @BeanReference(type = DocPraticaPersistence.class) + protected DocPraticaPersistence docPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) + protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) + protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; + @BeanReference(type = FineLavoriPersistence.class) + protected FineLavoriPersistence fineLavoriPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) + protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) + protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; + @BeanReference(type = HistoryWorkflowActionPersistence.class) + protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) + protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; + @BeanReference(type = IntPraticaPersistence.class) + protected IntPraticaPersistence intPraticaPersistence; + @BeanReference(type = IntPraticaFinder.class) + protected IntPraticaFinder intPraticaFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) + protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) + protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; + @BeanReference(type = PagamentoPersistence.class) + protected PagamentoPersistence pagamentoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) + protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) + protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; + @BeanReference(type = ParereGeologoPersistence.class) + protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) + protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) + protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; + @BeanReference(type = ProvinciaPersistence.class) + protected ProvinciaPersistence provinciaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) + protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) + protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; + @BeanReference(type = SoggettoPersistence.class) + protected SoggettoPersistence soggettoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) + protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) + protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; + @BeanReference(type = SorteggioPersistence.class) + protected SorteggioPersistence sorteggioPersistence; + @BeanReference(type = SorteggioFinder.class) + protected SorteggioFinder sorteggioFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) + protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; + @BeanReference(type = StoricoSoggettoPraticaPersistence.class) + protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) + protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) + protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; + @BeanReference(type = TempisticaPersistence.class) + protected TempisticaPersistence tempisticaPersistence; + @BeanReference(type = TempisticaFinder.class) + protected TempisticaFinder tempisticaFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) + protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) + protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; + @BeanReference(type = TerritorioPersistence.class) + protected TerritorioPersistence territorioPersistence; + @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) + protected com.liferay.counter.service.CounterLocalService counterLocalService; + @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) + protected com.liferay.portal.service.ResourceLocalService resourceLocalService; + @BeanReference(type = com.liferay.portal.service.UserLocalService.class) + protected com.liferay.portal.service.UserLocalService userLocalService; + @BeanReference(type = com.liferay.portal.service.UserService.class) + protected com.liferay.portal.service.UserService userService; + @BeanReference(type = UserPersistence.class) + protected UserPersistence userPersistence; + private String _beanIdentifier; + private ClassLoader _classLoader; + private PraticaAttenzionataLocalServiceClpInvoker _clpInvoker = new PraticaAttenzionataLocalServiceClpInvoker(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java new file mode 100644 index 00000000..f78c6519 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java @@ -0,0 +1,386 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.base; + +import it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil; + +import java.util.Arrays; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataLocalServiceClpInvoker { + public PraticaAttenzionataLocalServiceClpInvoker() { + _methodName0 = "addPraticaAttenzionata"; + + _methodParameterTypes0 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName1 = "createPraticaAttenzionata"; + + _methodParameterTypes1 = new String[] { "long" }; + + _methodName2 = "deletePraticaAttenzionata"; + + _methodParameterTypes2 = new String[] { "long" }; + + _methodName3 = "deletePraticaAttenzionata"; + + _methodParameterTypes3 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName4 = "dynamicQuery"; + + _methodParameterTypes4 = new String[] { }; + + _methodName5 = "dynamicQuery"; + + _methodParameterTypes5 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName6 = "dynamicQuery"; + + _methodParameterTypes6 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" + }; + + _methodName7 = "dynamicQuery"; + + _methodParameterTypes7 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", + "com.liferay.portal.kernel.util.OrderByComparator" + }; + + _methodName8 = "dynamicQueryCount"; + + _methodParameterTypes8 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName9 = "dynamicQueryCount"; + + _methodParameterTypes9 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", + "com.liferay.portal.kernel.dao.orm.Projection" + }; + + _methodName10 = "fetchPraticaAttenzionata"; + + _methodParameterTypes10 = new String[] { "long" }; + + _methodName11 = "fetchPraticaAttenzionataByUuidAndCompanyId"; + + _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; + + _methodName12 = "fetchPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; + + _methodName13 = "getPraticaAttenzionata"; + + _methodParameterTypes13 = new String[] { "long" }; + + _methodName14 = "getPersistedModel"; + + _methodParameterTypes14 = new String[] { "java.io.Serializable" }; + + _methodName15 = "getPraticaAttenzionataByUuidAndCompanyId"; + + _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; + + _methodName16 = "getPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; + + _methodName17 = "getPraticaAttenzionatas"; + + _methodParameterTypes17 = new String[] { "int", "int" }; + + _methodName18 = "getPraticaAttenzionatasCount"; + + _methodParameterTypes18 = new String[] { }; + + _methodName19 = "updatePraticaAttenzionata"; + + _methodParameterTypes19 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata" + }; + + _methodName182 = "getBeanIdentifier"; + + _methodParameterTypes182 = new String[] { }; + + _methodName183 = "setBeanIdentifier"; + + _methodParameterTypes183 = new String[] { "java.lang.String" }; + + _methodName188 = "evalAndEventuallyAddPraticaAttenzionata"; + + _methodParameterTypes188 = new String[] { + "long", "long", "java.lang.String", "java.util.Date", + "java.util.Date", "com.liferay.portal.service.ServiceContext" + }; + + _methodName189 = "getPraticheDaVerificare"; + + _methodParameterTypes189 = new String[] { }; + + _methodName190 = "countPraticheDaVerificare"; + + _methodParameterTypes190 = new String[] { }; + + _methodName191 = "getPraticheVerificate"; + + _methodParameterTypes191 = new String[] { }; + + _methodName192 = "verificaPraticaAttenzionata"; + + _methodParameterTypes192 = new String[] { + "long", "com.liferay.portal.service.ServiceContext" + }; + + _methodName193 = "verificaPraticaAttenzionata"; + + _methodParameterTypes193 = new String[] { + "it.tref.liferay.portos.bo.model.PraticaAttenzionata", + "com.liferay.portal.service.ServiceContext" + }; + } + + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + if (_methodName0.equals(name) && + Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.addPraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0]); + } + + if (_methodName1.equals(name) && + Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.createPraticaAttenzionata(((Long)arguments[0]).longValue()); + } + + if (_methodName2.equals(name) && + Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.deletePraticaAttenzionata(((Long)arguments[0]).longValue()); + } + + if (_methodName3.equals(name) && + Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.deletePraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0]); + } + + if (_methodName4.equals(name) && + Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQuery(); + } + + if (_methodName5.equals(name) && + Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); + } + + if (_methodName6.equals(name) && + Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); + } + + if (_methodName7.equals(name) && + Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + } + + if (_methodName8.equals(name) && + Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); + } + + if (_methodName9.equals(name) && + Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + (com.liferay.portal.kernel.dao.orm.Projection)arguments[1]); + } + + if (_methodName10.equals(name) && + Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.fetchPraticaAttenzionata(((Long)arguments[0]).longValue()); + } + + if (_methodName11.equals(name) && + Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.fetchPraticaAttenzionataByUuidAndCompanyId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName12.equals(name) && + Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.fetchPraticaAttenzionataByUuidAndGroupId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName13.equals(name) && + Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionata(((Long)arguments[0]).longValue()); + } + + if (_methodName14.equals(name) && + Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); + } + + if (_methodName15.equals(name) && + Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionataByUuidAndCompanyId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName16.equals(name) && + Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionataByUuidAndGroupId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName17.equals(name) && + Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatas(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue()); + } + + if (_methodName18.equals(name) && + Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatasCount(); + } + + if (_methodName19.equals(name) && + Arrays.deepEquals(_methodParameterTypes19, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.updatePraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0]); + } + + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getBeanIdentifier(); + } + + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + PraticaAttenzionataLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); + + return null; + } + + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.evalAndEventuallyAddPraticaAttenzionata(((Long)arguments[0]).longValue(), + ((Long)arguments[1]).longValue(), + (java.lang.String)arguments[2], (java.util.Date)arguments[3], + (java.util.Date)arguments[4], + (com.liferay.portal.service.ServiceContext)arguments[5]); + } + + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticheDaVerificare(); + } + + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.countPraticheDaVerificare(); + } + + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticheVerificate(); + } + + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata(((Long)arguments[0]).longValue(), + (com.liferay.portal.service.ServiceContext)arguments[1]); + } + + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0], + (com.liferay.portal.service.ServiceContext)arguments[1]); + } + + throw new UnsupportedOperationException(); + } + + private String _methodName0; + private String[] _methodParameterTypes0; + private String _methodName1; + private String[] _methodParameterTypes1; + private String _methodName2; + private String[] _methodParameterTypes2; + private String _methodName3; + private String[] _methodParameterTypes3; + private String _methodName4; + private String[] _methodParameterTypes4; + private String _methodName5; + private String[] _methodParameterTypes5; + private String _methodName6; + private String[] _methodParameterTypes6; + private String _methodName7; + private String[] _methodParameterTypes7; + private String _methodName8; + private String[] _methodParameterTypes8; + private String _methodName9; + private String[] _methodParameterTypes9; + private String _methodName10; + private String[] _methodParameterTypes10; + private String _methodName11; + private String[] _methodParameterTypes11; + private String _methodName12; + private String[] _methodParameterTypes12; + private String _methodName13; + private String[] _methodParameterTypes13; + private String _methodName14; + private String[] _methodParameterTypes14; + private String _methodName15; + private String[] _methodParameterTypes15; + private String _methodName16; + private String[] _methodParameterTypes16; + private String _methodName17; + private String[] _methodParameterTypes17; + private String _methodName18; + private String[] _methodParameterTypes18; + private String _methodName19; + private String[] _methodParameterTypes19; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceBaseImpl.java new file mode 100644 index 00000000..44c4a28c --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceBaseImpl.java @@ -0,0 +1,1828 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.base; + +import com.liferay.portal.kernel.bean.BeanReference; +import com.liferay.portal.kernel.bean.IdentifiableBean; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.service.BaseServiceImpl; +import com.liferay.portal.service.persistence.UserPersistence; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.service.PraticaAttenzionataService; +import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; +import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; +import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; +import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; +import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; +import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; +import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; +import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; +import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; +import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; +import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; +import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; +import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; +import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; +import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; +import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; + +import javax.sql.DataSource; + +/** + * Provides the base implementation for the pratica attenzionata remote service. + * + *

+ * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl}. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see it.tref.liferay.portos.bo.service.impl.PraticaAttenzionataServiceImpl + * @see it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil + * @generated + */ +public abstract class PraticaAttenzionataServiceBaseImpl extends BaseServiceImpl + implements PraticaAttenzionataService, IdentifiableBean { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil} to access the pratica attenzionata remote service. + */ + + /** + * Returns the allegato manuale local service. + * + * @return the allegato manuale local service + */ + public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { + return allegatoManualeLocalService; + } + + /** + * Sets the allegato manuale local service. + * + * @param allegatoManualeLocalService the allegato manuale local service + */ + public void setAllegatoManualeLocalService( + it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { + this.allegatoManualeLocalService = allegatoManualeLocalService; + } + + /** + * Returns the allegato manuale remote service. + * + * @return the allegato manuale remote service + */ + public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { + return allegatoManualeService; + } + + /** + * Sets the allegato manuale remote service. + * + * @param allegatoManualeService the allegato manuale remote service + */ + public void setAllegatoManualeService( + it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { + this.allegatoManualeService = allegatoManualeService; + } + + /** + * Returns the allegato manuale persistence. + * + * @return the allegato manuale persistence + */ + public AllegatoManualePersistence getAllegatoManualePersistence() { + return allegatoManualePersistence; + } + + /** + * Sets the allegato manuale persistence. + * + * @param allegatoManualePersistence the allegato manuale persistence + */ + public void setAllegatoManualePersistence( + AllegatoManualePersistence allegatoManualePersistence) { + this.allegatoManualePersistence = allegatoManualePersistence; + } + + /** + * Returns the asseverazione local service. + * + * @return the asseverazione local service + */ + public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { + return asseverazioneLocalService; + } + + /** + * Sets the asseverazione local service. + * + * @param asseverazioneLocalService the asseverazione local service + */ + public void setAsseverazioneLocalService( + it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { + this.asseverazioneLocalService = asseverazioneLocalService; + } + + /** + * Returns the asseverazione remote service. + * + * @return the asseverazione remote service + */ + public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { + return asseverazioneService; + } + + /** + * Sets the asseverazione remote service. + * + * @param asseverazioneService the asseverazione remote service + */ + public void setAsseverazioneService( + it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { + this.asseverazioneService = asseverazioneService; + } + + /** + * Returns the asseverazione persistence. + * + * @return the asseverazione persistence + */ + public AsseverazionePersistence getAsseverazionePersistence() { + return asseverazionePersistence; + } + + /** + * Sets the asseverazione persistence. + * + * @param asseverazionePersistence the asseverazione persistence + */ + public void setAsseverazionePersistence( + AsseverazionePersistence asseverazionePersistence) { + this.asseverazionePersistence = asseverazionePersistence; + } + + /** + * Returns the avviso local service. + * + * @return the avviso local service + */ + public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { + return avvisoLocalService; + } + + /** + * Sets the avviso local service. + * + * @param avvisoLocalService the avviso local service + */ + public void setAvvisoLocalService( + it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { + this.avvisoLocalService = avvisoLocalService; + } + + /** + * Returns the avviso remote service. + * + * @return the avviso remote service + */ + public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { + return avvisoService; + } + + /** + * Sets the avviso remote service. + * + * @param avvisoService the avviso remote service + */ + public void setAvvisoService( + it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { + this.avvisoService = avvisoService; + } + + /** + * Returns the avviso persistence. + * + * @return the avviso persistence + */ + public AvvisoPersistence getAvvisoPersistence() { + return avvisoPersistence; + } + + /** + * Sets the avviso persistence. + * + * @param avvisoPersistence the avviso persistence + */ + public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { + this.avvisoPersistence = avvisoPersistence; + } + + /** + * Returns the collaudo local service. + * + * @return the collaudo local service + */ + public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { + return collaudoLocalService; + } + + /** + * Sets the collaudo local service. + * + * @param collaudoLocalService the collaudo local service + */ + public void setCollaudoLocalService( + it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { + this.collaudoLocalService = collaudoLocalService; + } + + /** + * Returns the collaudo remote service. + * + * @return the collaudo remote service + */ + public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { + return collaudoService; + } + + /** + * Sets the collaudo remote service. + * + * @param collaudoService the collaudo remote service + */ + public void setCollaudoService( + it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { + this.collaudoService = collaudoService; + } + + /** + * Returns the collaudo persistence. + * + * @return the collaudo persistence + */ + public CollaudoPersistence getCollaudoPersistence() { + return collaudoPersistence; + } + + /** + * Sets the collaudo persistence. + * + * @param collaudoPersistence the collaudo persistence + */ + public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { + this.collaudoPersistence = collaudoPersistence; + } + + /** + * Returns the comune local service. + * + * @return the comune local service + */ + public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { + return comuneLocalService; + } + + /** + * Sets the comune local service. + * + * @param comuneLocalService the comune local service + */ + public void setComuneLocalService( + it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { + this.comuneLocalService = comuneLocalService; + } + + /** + * Returns the comune remote service. + * + * @return the comune remote service + */ + public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { + return comuneService; + } + + /** + * Sets the comune remote service. + * + * @param comuneService the comune remote service + */ + public void setComuneService( + it.tref.liferay.portos.bo.service.ComuneService comuneService) { + this.comuneService = comuneService; + } + + /** + * Returns the comune persistence. + * + * @return the comune persistence + */ + public ComunePersistence getComunePersistence() { + return comunePersistence; + } + + /** + * Sets the comune persistence. + * + * @param comunePersistence the comune persistence + */ + public void setComunePersistence(ComunePersistence comunePersistence) { + this.comunePersistence = comunePersistence; + } + + /** + * Returns the comunicazione local service. + * + * @return the comunicazione local service + */ + public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { + return comunicazioneLocalService; + } + + /** + * Sets the comunicazione local service. + * + * @param comunicazioneLocalService the comunicazione local service + */ + public void setComunicazioneLocalService( + it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { + this.comunicazioneLocalService = comunicazioneLocalService; + } + + /** + * Returns the comunicazione remote service. + * + * @return the comunicazione remote service + */ + public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { + return comunicazioneService; + } + + /** + * Sets the comunicazione remote service. + * + * @param comunicazioneService the comunicazione remote service + */ + public void setComunicazioneService( + it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { + this.comunicazioneService = comunicazioneService; + } + + /** + * Returns the comunicazione persistence. + * + * @return the comunicazione persistence + */ + public ComunicazionePersistence getComunicazionePersistence() { + return comunicazionePersistence; + } + + /** + * Sets the comunicazione persistence. + * + * @param comunicazionePersistence the comunicazione persistence + */ + public void setComunicazionePersistence( + ComunicazionePersistence comunicazionePersistence) { + this.comunicazionePersistence = comunicazionePersistence; + } + + /** + * Returns the configurazione local service. + * + * @return the configurazione local service + */ + public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { + return configurazioneLocalService; + } + + /** + * Sets the configurazione local service. + * + * @param configurazioneLocalService the configurazione local service + */ + public void setConfigurazioneLocalService( + it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { + this.configurazioneLocalService = configurazioneLocalService; + } + + /** + * Returns the configurazione remote service. + * + * @return the configurazione remote service + */ + public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { + return configurazioneService; + } + + /** + * Sets the configurazione remote service. + * + * @param configurazioneService the configurazione remote service + */ + public void setConfigurazioneService( + it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { + this.configurazioneService = configurazioneService; + } + + /** + * Returns the configurazione persistence. + * + * @return the configurazione persistence + */ + public ConfigurazionePersistence getConfigurazionePersistence() { + return configurazionePersistence; + } + + /** + * Sets the configurazione persistence. + * + * @param configurazionePersistence the configurazione persistence + */ + public void setConfigurazionePersistence( + ConfigurazionePersistence configurazionePersistence) { + this.configurazionePersistence = configurazionePersistence; + } + + /** + * Returns the controllo pratica local service. + * + * @return the controllo pratica local service + */ + public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { + return controlloPraticaLocalService; + } + + /** + * Sets the controllo pratica local service. + * + * @param controlloPraticaLocalService the controllo pratica local service + */ + public void setControlloPraticaLocalService( + it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { + this.controlloPraticaLocalService = controlloPraticaLocalService; + } + + /** + * Returns the controllo pratica remote service. + * + * @return the controllo pratica remote service + */ + public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { + return controlloPraticaService; + } + + /** + * Sets the controllo pratica remote service. + * + * @param controlloPraticaService the controllo pratica remote service + */ + public void setControlloPraticaService( + it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { + this.controlloPraticaService = controlloPraticaService; + } + + /** + * Returns the controllo pratica persistence. + * + * @return the controllo pratica persistence + */ + public ControlloPraticaPersistence getControlloPraticaPersistence() { + return controlloPraticaPersistence; + } + + /** + * Sets the controllo pratica persistence. + * + * @param controlloPraticaPersistence the controllo pratica persistence + */ + public void setControlloPraticaPersistence( + ControlloPraticaPersistence controlloPraticaPersistence) { + this.controlloPraticaPersistence = controlloPraticaPersistence; + } + + /** + * Returns the delega local service. + * + * @return the delega local service + */ + public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { + return delegaLocalService; + } + + /** + * Sets the delega local service. + * + * @param delegaLocalService the delega local service + */ + public void setDelegaLocalService( + it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { + this.delegaLocalService = delegaLocalService; + } + + /** + * Returns the delega remote service. + * + * @return the delega remote service + */ + public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { + return delegaService; + } + + /** + * Sets the delega remote service. + * + * @param delegaService the delega remote service + */ + public void setDelegaService( + it.tref.liferay.portos.bo.service.DelegaService delegaService) { + this.delegaService = delegaService; + } + + /** + * Returns the delega persistence. + * + * @return the delega persistence + */ + public DelegaPersistence getDelegaPersistence() { + return delegaPersistence; + } + + /** + * Sets the delega persistence. + * + * @param delegaPersistence the delega persistence + */ + public void setDelegaPersistence(DelegaPersistence delegaPersistence) { + this.delegaPersistence = delegaPersistence; + } + + /** + * Returns the dett pratica local service. + * + * @return the dett pratica local service + */ + public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { + return dettPraticaLocalService; + } + + /** + * Sets the dett pratica local service. + * + * @param dettPraticaLocalService the dett pratica local service + */ + public void setDettPraticaLocalService( + it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { + this.dettPraticaLocalService = dettPraticaLocalService; + } + + /** + * Returns the dett pratica remote service. + * + * @return the dett pratica remote service + */ + public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { + return dettPraticaService; + } + + /** + * Sets the dett pratica remote service. + * + * @param dettPraticaService the dett pratica remote service + */ + public void setDettPraticaService( + it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { + this.dettPraticaService = dettPraticaService; + } + + /** + * Returns the dett pratica persistence. + * + * @return the dett pratica persistence + */ + public DettPraticaPersistence getDettPraticaPersistence() { + return dettPraticaPersistence; + } + + /** + * Sets the dett pratica persistence. + * + * @param dettPraticaPersistence the dett pratica persistence + */ + public void setDettPraticaPersistence( + DettPraticaPersistence dettPraticaPersistence) { + this.dettPraticaPersistence = dettPraticaPersistence; + } + + /** + * Returns the doc aggiuntiva local service. + * + * @return the doc aggiuntiva local service + */ + public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { + return docAggiuntivaLocalService; + } + + /** + * Sets the doc aggiuntiva local service. + * + * @param docAggiuntivaLocalService the doc aggiuntiva local service + */ + public void setDocAggiuntivaLocalService( + it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { + this.docAggiuntivaLocalService = docAggiuntivaLocalService; + } + + /** + * Returns the doc aggiuntiva remote service. + * + * @return the doc aggiuntiva remote service + */ + public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { + return docAggiuntivaService; + } + + /** + * Sets the doc aggiuntiva remote service. + * + * @param docAggiuntivaService the doc aggiuntiva remote service + */ + public void setDocAggiuntivaService( + it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { + this.docAggiuntivaService = docAggiuntivaService; + } + + /** + * Returns the doc aggiuntiva persistence. + * + * @return the doc aggiuntiva persistence + */ + public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { + return docAggiuntivaPersistence; + } + + /** + * Sets the doc aggiuntiva persistence. + * + * @param docAggiuntivaPersistence the doc aggiuntiva persistence + */ + public void setDocAggiuntivaPersistence( + DocAggiuntivaPersistence docAggiuntivaPersistence) { + this.docAggiuntivaPersistence = docAggiuntivaPersistence; + } + + /** + * Returns the doc pratica local service. + * + * @return the doc pratica local service + */ + public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { + return docPraticaLocalService; + } + + /** + * Sets the doc pratica local service. + * + * @param docPraticaLocalService the doc pratica local service + */ + public void setDocPraticaLocalService( + it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { + this.docPraticaLocalService = docPraticaLocalService; + } + + /** + * Returns the doc pratica remote service. + * + * @return the doc pratica remote service + */ + public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { + return docPraticaService; + } + + /** + * Sets the doc pratica remote service. + * + * @param docPraticaService the doc pratica remote service + */ + public void setDocPraticaService( + it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { + this.docPraticaService = docPraticaService; + } + + /** + * Returns the doc pratica persistence. + * + * @return the doc pratica persistence + */ + public DocPraticaPersistence getDocPraticaPersistence() { + return docPraticaPersistence; + } + + /** + * Sets the doc pratica persistence. + * + * @param docPraticaPersistence the doc pratica persistence + */ + public void setDocPraticaPersistence( + DocPraticaPersistence docPraticaPersistence) { + this.docPraticaPersistence = docPraticaPersistence; + } + + /** + * Returns the fine lavori local service. + * + * @return the fine lavori local service + */ + public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { + return fineLavoriLocalService; + } + + /** + * Sets the fine lavori local service. + * + * @param fineLavoriLocalService the fine lavori local service + */ + public void setFineLavoriLocalService( + it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { + this.fineLavoriLocalService = fineLavoriLocalService; + } + + /** + * Returns the fine lavori remote service. + * + * @return the fine lavori remote service + */ + public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { + return fineLavoriService; + } + + /** + * Sets the fine lavori remote service. + * + * @param fineLavoriService the fine lavori remote service + */ + public void setFineLavoriService( + it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { + this.fineLavoriService = fineLavoriService; + } + + /** + * Returns the fine lavori persistence. + * + * @return the fine lavori persistence + */ + public FineLavoriPersistence getFineLavoriPersistence() { + return fineLavoriPersistence; + } + + /** + * Sets the fine lavori persistence. + * + * @param fineLavoriPersistence the fine lavori persistence + */ + public void setFineLavoriPersistence( + FineLavoriPersistence fineLavoriPersistence) { + this.fineLavoriPersistence = fineLavoriPersistence; + } + + /** + * Returns the history workflow action local service. + * + * @return the history workflow action local service + */ + public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { + return historyWorkflowActionLocalService; + } + + /** + * Sets the history workflow action local service. + * + * @param historyWorkflowActionLocalService the history workflow action local service + */ + public void setHistoryWorkflowActionLocalService( + it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { + this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; + } + + /** + * Returns the history workflow action remote service. + * + * @return the history workflow action remote service + */ + public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { + return historyWorkflowActionService; + } + + /** + * Sets the history workflow action remote service. + * + * @param historyWorkflowActionService the history workflow action remote service + */ + public void setHistoryWorkflowActionService( + it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { + this.historyWorkflowActionService = historyWorkflowActionService; + } + + /** + * Returns the history workflow action persistence. + * + * @return the history workflow action persistence + */ + public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { + return historyWorkflowActionPersistence; + } + + /** + * Sets the history workflow action persistence. + * + * @param historyWorkflowActionPersistence the history workflow action persistence + */ + public void setHistoryWorkflowActionPersistence( + HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { + this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; + } + + /** + * Returns the int pratica local service. + * + * @return the int pratica local service + */ + public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { + return intPraticaLocalService; + } + + /** + * Sets the int pratica local service. + * + * @param intPraticaLocalService the int pratica local service + */ + public void setIntPraticaLocalService( + it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { + this.intPraticaLocalService = intPraticaLocalService; + } + + /** + * Returns the int pratica remote service. + * + * @return the int pratica remote service + */ + public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { + return intPraticaService; + } + + /** + * Sets the int pratica remote service. + * + * @param intPraticaService the int pratica remote service + */ + public void setIntPraticaService( + it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { + this.intPraticaService = intPraticaService; + } + + /** + * Returns the int pratica persistence. + * + * @return the int pratica persistence + */ + public IntPraticaPersistence getIntPraticaPersistence() { + return intPraticaPersistence; + } + + /** + * Sets the int pratica persistence. + * + * @param intPraticaPersistence the int pratica persistence + */ + public void setIntPraticaPersistence( + IntPraticaPersistence intPraticaPersistence) { + this.intPraticaPersistence = intPraticaPersistence; + } + + /** + * Returns the int pratica finder. + * + * @return the int pratica finder + */ + public IntPraticaFinder getIntPraticaFinder() { + return intPraticaFinder; + } + + /** + * Sets the int pratica finder. + * + * @param intPraticaFinder the int pratica finder + */ + public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { + this.intPraticaFinder = intPraticaFinder; + } + + /** + * Returns the pagamento local service. + * + * @return the pagamento local service + */ + public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { + return pagamentoLocalService; + } + + /** + * Sets the pagamento local service. + * + * @param pagamentoLocalService the pagamento local service + */ + public void setPagamentoLocalService( + it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { + this.pagamentoLocalService = pagamentoLocalService; + } + + /** + * Returns the pagamento remote service. + * + * @return the pagamento remote service + */ + public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { + return pagamentoService; + } + + /** + * Sets the pagamento remote service. + * + * @param pagamentoService the pagamento remote service + */ + public void setPagamentoService( + it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { + this.pagamentoService = pagamentoService; + } + + /** + * Returns the pagamento persistence. + * + * @return the pagamento persistence + */ + public PagamentoPersistence getPagamentoPersistence() { + return pagamentoPersistence; + } + + /** + * Sets the pagamento persistence. + * + * @param pagamentoPersistence the pagamento persistence + */ + public void setPagamentoPersistence( + PagamentoPersistence pagamentoPersistence) { + this.pagamentoPersistence = pagamentoPersistence; + } + + /** + * Returns the parere geologo local service. + * + * @return the parere geologo local service + */ + public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { + return parereGeologoLocalService; + } + + /** + * Sets the parere geologo local service. + * + * @param parereGeologoLocalService the parere geologo local service + */ + public void setParereGeologoLocalService( + it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { + this.parereGeologoLocalService = parereGeologoLocalService; + } + + /** + * Returns the parere geologo remote service. + * + * @return the parere geologo remote service + */ + public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { + return parereGeologoService; + } + + /** + * Sets the parere geologo remote service. + * + * @param parereGeologoService the parere geologo remote service + */ + public void setParereGeologoService( + it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { + this.parereGeologoService = parereGeologoService; + } + + /** + * Returns the parere geologo persistence. + * + * @return the parere geologo persistence + */ + public ParereGeologoPersistence getParereGeologoPersistence() { + return parereGeologoPersistence; + } + + /** + * Sets the parere geologo persistence. + * + * @param parereGeologoPersistence the parere geologo persistence + */ + public void setParereGeologoPersistence( + ParereGeologoPersistence parereGeologoPersistence) { + this.parereGeologoPersistence = parereGeologoPersistence; + } + + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + + /** + * Returns the provincia local service. + * + * @return the provincia local service + */ + public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { + return provinciaLocalService; + } + + /** + * Sets the provincia local service. + * + * @param provinciaLocalService the provincia local service + */ + public void setProvinciaLocalService( + it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { + this.provinciaLocalService = provinciaLocalService; + } + + /** + * Returns the provincia remote service. + * + * @return the provincia remote service + */ + public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { + return provinciaService; + } + + /** + * Sets the provincia remote service. + * + * @param provinciaService the provincia remote service + */ + public void setProvinciaService( + it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { + this.provinciaService = provinciaService; + } + + /** + * Returns the provincia persistence. + * + * @return the provincia persistence + */ + public ProvinciaPersistence getProvinciaPersistence() { + return provinciaPersistence; + } + + /** + * Sets the provincia persistence. + * + * @param provinciaPersistence the provincia persistence + */ + public void setProvinciaPersistence( + ProvinciaPersistence provinciaPersistence) { + this.provinciaPersistence = provinciaPersistence; + } + + /** + * Returns the soggetto local service. + * + * @return the soggetto local service + */ + public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { + return soggettoLocalService; + } + + /** + * Sets the soggetto local service. + * + * @param soggettoLocalService the soggetto local service + */ + public void setSoggettoLocalService( + it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { + this.soggettoLocalService = soggettoLocalService; + } + + /** + * Returns the soggetto remote service. + * + * @return the soggetto remote service + */ + public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { + return soggettoService; + } + + /** + * Sets the soggetto remote service. + * + * @param soggettoService the soggetto remote service + */ + public void setSoggettoService( + it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { + this.soggettoService = soggettoService; + } + + /** + * Returns the soggetto persistence. + * + * @return the soggetto persistence + */ + public SoggettoPersistence getSoggettoPersistence() { + return soggettoPersistence; + } + + /** + * Sets the soggetto persistence. + * + * @param soggettoPersistence the soggetto persistence + */ + public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { + this.soggettoPersistence = soggettoPersistence; + } + + /** + * Returns the sorteggio local service. + * + * @return the sorteggio local service + */ + public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { + return sorteggioLocalService; + } + + /** + * Sets the sorteggio local service. + * + * @param sorteggioLocalService the sorteggio local service + */ + public void setSorteggioLocalService( + it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { + this.sorteggioLocalService = sorteggioLocalService; + } + + /** + * Returns the sorteggio remote service. + * + * @return the sorteggio remote service + */ + public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { + return sorteggioService; + } + + /** + * Sets the sorteggio remote service. + * + * @param sorteggioService the sorteggio remote service + */ + public void setSorteggioService( + it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { + this.sorteggioService = sorteggioService; + } + + /** + * Returns the sorteggio persistence. + * + * @return the sorteggio persistence + */ + public SorteggioPersistence getSorteggioPersistence() { + return sorteggioPersistence; + } + + /** + * Sets the sorteggio persistence. + * + * @param sorteggioPersistence the sorteggio persistence + */ + public void setSorteggioPersistence( + SorteggioPersistence sorteggioPersistence) { + this.sorteggioPersistence = sorteggioPersistence; + } + + /** + * Returns the sorteggio finder. + * + * @return the sorteggio finder + */ + public SorteggioFinder getSorteggioFinder() { + return sorteggioFinder; + } + + /** + * Sets the sorteggio finder. + * + * @param sorteggioFinder the sorteggio finder + */ + public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { + this.sorteggioFinder = sorteggioFinder; + } + + /** + * Returns the storico soggetto pratica local service. + * + * @return the storico soggetto pratica local service + */ + public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { + return storicoSoggettoPraticaLocalService; + } + + /** + * Sets the storico soggetto pratica local service. + * + * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service + */ + public void setStoricoSoggettoPraticaLocalService( + it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { + this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; + } + + /** + * Returns the storico soggetto pratica remote service. + * + * @return the storico soggetto pratica remote service + */ + public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { + return storicoSoggettoPraticaService; + } + + /** + * Sets the storico soggetto pratica remote service. + * + * @param storicoSoggettoPraticaService the storico soggetto pratica remote service + */ + public void setStoricoSoggettoPraticaService( + it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { + this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; + } + + /** + * Returns the storico soggetto pratica persistence. + * + * @return the storico soggetto pratica persistence + */ + public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { + return storicoSoggettoPraticaPersistence; + } + + /** + * Sets the storico soggetto pratica persistence. + * + * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence + */ + public void setStoricoSoggettoPraticaPersistence( + StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { + this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; + } + + /** + * Returns the tempistica local service. + * + * @return the tempistica local service + */ + public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { + return tempisticaLocalService; + } + + /** + * Sets the tempistica local service. + * + * @param tempisticaLocalService the tempistica local service + */ + public void setTempisticaLocalService( + it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { + this.tempisticaLocalService = tempisticaLocalService; + } + + /** + * Returns the tempistica remote service. + * + * @return the tempistica remote service + */ + public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { + return tempisticaService; + } + + /** + * Sets the tempistica remote service. + * + * @param tempisticaService the tempistica remote service + */ + public void setTempisticaService( + it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { + this.tempisticaService = tempisticaService; + } + + /** + * Returns the tempistica persistence. + * + * @return the tempistica persistence + */ + public TempisticaPersistence getTempisticaPersistence() { + return tempisticaPersistence; + } + + /** + * Sets the tempistica persistence. + * + * @param tempisticaPersistence the tempistica persistence + */ + public void setTempisticaPersistence( + TempisticaPersistence tempisticaPersistence) { + this.tempisticaPersistence = tempisticaPersistence; + } + + /** + * Returns the tempistica finder. + * + * @return the tempistica finder + */ + public TempisticaFinder getTempisticaFinder() { + return tempisticaFinder; + } + + /** + * Sets the tempistica finder. + * + * @param tempisticaFinder the tempistica finder + */ + public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { + this.tempisticaFinder = tempisticaFinder; + } + + /** + * Returns the territorio local service. + * + * @return the territorio local service + */ + public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { + return territorioLocalService; + } + + /** + * Sets the territorio local service. + * + * @param territorioLocalService the territorio local service + */ + public void setTerritorioLocalService( + it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { + this.territorioLocalService = territorioLocalService; + } + + /** + * Returns the territorio remote service. + * + * @return the territorio remote service + */ + public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { + return territorioService; + } + + /** + * Sets the territorio remote service. + * + * @param territorioService the territorio remote service + */ + public void setTerritorioService( + it.tref.liferay.portos.bo.service.TerritorioService territorioService) { + this.territorioService = territorioService; + } + + /** + * Returns the territorio persistence. + * + * @return the territorio persistence + */ + public TerritorioPersistence getTerritorioPersistence() { + return territorioPersistence; + } + + /** + * Sets the territorio persistence. + * + * @param territorioPersistence the territorio persistence + */ + public void setTerritorioPersistence( + TerritorioPersistence territorioPersistence) { + this.territorioPersistence = territorioPersistence; + } + + /** + * Returns the counter local service. + * + * @return the counter local service + */ + public com.liferay.counter.service.CounterLocalService getCounterLocalService() { + return counterLocalService; + } + + /** + * Sets the counter local service. + * + * @param counterLocalService the counter local service + */ + public void setCounterLocalService( + com.liferay.counter.service.CounterLocalService counterLocalService) { + this.counterLocalService = counterLocalService; + } + + /** + * Returns the resource local service. + * + * @return the resource local service + */ + public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { + return resourceLocalService; + } + + /** + * Sets the resource local service. + * + * @param resourceLocalService the resource local service + */ + public void setResourceLocalService( + com.liferay.portal.service.ResourceLocalService resourceLocalService) { + this.resourceLocalService = resourceLocalService; + } + + /** + * Returns the user local service. + * + * @return the user local service + */ + public com.liferay.portal.service.UserLocalService getUserLocalService() { + return userLocalService; + } + + /** + * Sets the user local service. + * + * @param userLocalService the user local service + */ + public void setUserLocalService( + com.liferay.portal.service.UserLocalService userLocalService) { + this.userLocalService = userLocalService; + } + + /** + * Returns the user remote service. + * + * @return the user remote service + */ + public com.liferay.portal.service.UserService getUserService() { + return userService; + } + + /** + * Sets the user remote service. + * + * @param userService the user remote service + */ + public void setUserService( + com.liferay.portal.service.UserService userService) { + this.userService = userService; + } + + /** + * Returns the user persistence. + * + * @return the user persistence + */ + public UserPersistence getUserPersistence() { + return userPersistence; + } + + /** + * Sets the user persistence. + * + * @param userPersistence the user persistence + */ + public void setUserPersistence(UserPersistence userPersistence) { + this.userPersistence = userPersistence; + } + + public void afterPropertiesSet() { + Class clazz = getClass(); + + _classLoader = clazz.getClassLoader(); + } + + public void destroy() { + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public String getBeanIdentifier() { + return _beanIdentifier; + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(String beanIdentifier) { + _beanIdentifier = beanIdentifier; + } + + @Override + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + Thread currentThread = Thread.currentThread(); + + ClassLoader contextClassLoader = currentThread.getContextClassLoader(); + + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(_classLoader); + } + + try { + return _clpInvoker.invokeMethod(name, parameterTypes, arguments); + } + finally { + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(contextClassLoader); + } + } + } + + protected Class getModelClass() { + return PraticaAttenzionata.class; + } + + protected String getModelClassName() { + return PraticaAttenzionata.class.getName(); + } + + /** + * Performs an SQL query. + * + * @param sql the sql query + */ + protected void runSQL(String sql) throws SystemException { + try { + DataSource dataSource = praticaAttenzionataPersistence.getDataSource(); + + SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, + sql, new int[0]); + + sqlUpdate.update(); + } + catch (Exception e) { + throw new SystemException(e); + } + } + + @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) + protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) + protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; + @BeanReference(type = AllegatoManualePersistence.class) + protected AllegatoManualePersistence allegatoManualePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) + protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; + @BeanReference(type = AsseverazionePersistence.class) + protected AsseverazionePersistence asseverazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) + protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) + protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; + @BeanReference(type = AvvisoPersistence.class) + protected AvvisoPersistence avvisoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) + protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) + protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; + @BeanReference(type = CollaudoPersistence.class) + protected CollaudoPersistence collaudoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) + protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) + protected it.tref.liferay.portos.bo.service.ComuneService comuneService; + @BeanReference(type = ComunePersistence.class) + protected ComunePersistence comunePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) + protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; + @BeanReference(type = ComunicazionePersistence.class) + protected ComunicazionePersistence comunicazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) + protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) + protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; + @BeanReference(type = ConfigurazionePersistence.class) + protected ConfigurazionePersistence configurazionePersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) + protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; + @BeanReference(type = ControlloPraticaPersistence.class) + protected ControlloPraticaPersistence controlloPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) + protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) + protected it.tref.liferay.portos.bo.service.DelegaService delegaService; + @BeanReference(type = DelegaPersistence.class) + protected DelegaPersistence delegaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) + protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; + @BeanReference(type = DettPraticaPersistence.class) + protected DettPraticaPersistence dettPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) + protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) + protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; + @BeanReference(type = DocAggiuntivaPersistence.class) + protected DocAggiuntivaPersistence docAggiuntivaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) + protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; + @BeanReference(type = DocPraticaPersistence.class) + protected DocPraticaPersistence docPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) + protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) + protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; + @BeanReference(type = FineLavoriPersistence.class) + protected FineLavoriPersistence fineLavoriPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) + protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) + protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; + @BeanReference(type = HistoryWorkflowActionPersistence.class) + protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) + protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; + @BeanReference(type = IntPraticaPersistence.class) + protected IntPraticaPersistence intPraticaPersistence; + @BeanReference(type = IntPraticaFinder.class) + protected IntPraticaFinder intPraticaFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) + protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) + protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; + @BeanReference(type = PagamentoPersistence.class) + protected PagamentoPersistence pagamentoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) + protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) + protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; + @BeanReference(type = ParereGeologoPersistence.class) + protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) + protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) + protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; + @BeanReference(type = ProvinciaPersistence.class) + protected ProvinciaPersistence provinciaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) + protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) + protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; + @BeanReference(type = SoggettoPersistence.class) + protected SoggettoPersistence soggettoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) + protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) + protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; + @BeanReference(type = SorteggioPersistence.class) + protected SorteggioPersistence sorteggioPersistence; + @BeanReference(type = SorteggioFinder.class) + protected SorteggioFinder sorteggioFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) + protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) + protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; + @BeanReference(type = StoricoSoggettoPraticaPersistence.class) + protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) + protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) + protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; + @BeanReference(type = TempisticaPersistence.class) + protected TempisticaPersistence tempisticaPersistence; + @BeanReference(type = TempisticaFinder.class) + protected TempisticaFinder tempisticaFinder; + @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) + protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) + protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; + @BeanReference(type = TerritorioPersistence.class) + protected TerritorioPersistence territorioPersistence; + @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) + protected com.liferay.counter.service.CounterLocalService counterLocalService; + @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) + protected com.liferay.portal.service.ResourceLocalService resourceLocalService; + @BeanReference(type = com.liferay.portal.service.UserLocalService.class) + protected com.liferay.portal.service.UserLocalService userLocalService; + @BeanReference(type = com.liferay.portal.service.UserService.class) + protected com.liferay.portal.service.UserService userService; + @BeanReference(type = UserPersistence.class) + protected UserPersistence userPersistence; + private String _beanIdentifier; + private ClassLoader _classLoader; + private PraticaAttenzionataServiceClpInvoker _clpInvoker = new PraticaAttenzionataServiceClpInvoker(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceClpInvoker.java new file mode 100644 index 00000000..8c944896 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataServiceClpInvoker.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.base; + +import it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil; + +import java.util.Arrays; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataServiceClpInvoker { + public PraticaAttenzionataServiceClpInvoker() { + _methodName162 = "getBeanIdentifier"; + + _methodParameterTypes162 = new String[] { }; + + _methodName163 = "setBeanIdentifier"; + + _methodParameterTypes163 = new String[] { "java.lang.String" }; + } + + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + return PraticaAttenzionataServiceUtil.getBeanIdentifier(); + } + + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + PraticaAttenzionataServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); + + return null; + } + + throw new UnsupportedOperationException(); + } + + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java index 197f98d6..5dfb7180 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1286,6 +1287,63 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1943,6 +2001,12 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java index 6247148f..469dd6ad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java @@ -106,79 +106,79 @@ public class ProvinciaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Provincia" }; - _methodName172 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName178 = "addProvincia"; + _methodName184 = "addProvincia"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "findAll"; + _methodName185 = "findAll"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByCompanyId"; + _methodName186 = "countByCompanyId"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName181 = "countByKeywords"; + _methodName187 = "countByKeywords"; - _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName182 = "deleteProvincia"; + _methodName188 = "deleteProvincia"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName183 = "deleteProvincia"; + _methodName189 = "deleteProvincia"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "it.tref.liferay.portos.bo.model.Provincia" }; - _methodName184 = "fetchByC_C"; + _methodName190 = "fetchByC_C"; - _methodParameterTypes184 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; - _methodName185 = "fetchByC_S"; + _methodName191 = "fetchByC_S"; - _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String" }; - _methodName186 = "findByCompanyId"; + _methodName192 = "findByCompanyId"; - _methodParameterTypes186 = new String[] { "long", "int", "int" }; + _methodParameterTypes192 = new String[] { "long", "int", "int" }; - _methodName187 = "findByCompanyId"; + _methodName193 = "findByCompanyId"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName188 = "findByC_C"; + _methodName194 = "findByC_C"; - _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; - _methodName189 = "findByKeywords"; + _methodName195 = "findByKeywords"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "updateProvincia"; + _methodName197 = "updateProvincia"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -273,89 +273,89 @@ public class ProvinciaLocalServiceClpInvoker { return ProvinciaLocalServiceUtil.updateProvincia((it.tref.liferay.portos.bo.model.Provincia)arguments[0]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ProvinciaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { ProvinciaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return ProvinciaLocalServiceUtil.addProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return ProvinciaLocalServiceUtil.findAll(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[2]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ProvinciaLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ProvinciaLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia(((Long)arguments[0]).longValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia((it.tref.liferay.portos.bo.model.Provincia)arguments[0]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_S(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ProvinciaLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ProvinciaLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ProvinciaLocalServiceUtil.findByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ProvinciaLocalServiceUtil.findByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -363,8 +363,8 @@ public class ProvinciaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return ProvinciaLocalServiceUtil.updateProvincia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -407,22 +407,10 @@ public class ProvinciaLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; private String _methodName184; private String[] _methodParameterTypes184; private String _methodName185; @@ -435,6 +423,18 @@ public class ProvinciaLocalServiceClpInvoker { private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; private String _methodName191; private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName197; + private String[] _methodParameterTypes197; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java index 3ccc5457..733fc12f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java index 64c8d0e1..24ac421c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class ProvinciaServiceClpInvoker { public ProvinciaServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return ProvinciaServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { ProvinciaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class ProvinciaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java index caf4236b..d98bc495 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1342,6 +1343,63 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2037,6 +2095,12 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java index 225af9f0..5996ccc8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java @@ -122,17 +122,17 @@ public class SoggettoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName180 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes180 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName181 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes181 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName186 = "addSoggetto"; + _methodName192 = "addSoggetto"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -152,9 +152,9 @@ public class SoggettoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName187 = "addSoggettoValidatedByFile"; + _methodName193 = "addSoggettoValidatedByFile"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -175,9 +175,9 @@ public class SoggettoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "addSoggettoForImport"; + _methodName194 = "addSoggettoForImport"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -196,27 +196,27 @@ public class SoggettoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName189 = "cloneSoggetto"; + _methodName195 = "cloneSoggetto"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "long", "long", "it.tref.liferay.portos.bo.model.Soggetto", "com.liferay.portal.service.ServiceContext" }; - _methodName190 = "deleteSoggetto"; + _methodName196 = "deleteSoggetto"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName191 = "deleteSoggetto"; + _methodName197 = "deleteSoggetto"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName192 = "updateSoggetto"; + _methodName198 = "updateSoggetto"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -236,9 +236,9 @@ public class SoggettoLocalServiceClpInvoker { "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName193 = "updateSoggettoValidatedByFile"; + _methodName199 = "updateSoggettoValidatedByFile"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -259,353 +259,353 @@ public class SoggettoLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName194 = "fetchByOldSoggettId"; + _methodName200 = "fetchByOldSoggettId"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName195 = "findByIntPratica"; + _methodName201 = "findByIntPratica"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName196 = "countByIntPratica"; + _methodName202 = "countByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName197 = "findByDettPratica"; + _methodName203 = "findByDettPratica"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes203 = new String[] { "long" }; - _methodName198 = "countByDettPratica"; + _methodName204 = "countByDettPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName199 = "findByDettPratica_CodiceFiscale"; + _methodName205 = "findByDettPratica_CodiceFiscale"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; - _methodName200 = "findByDettPratica_CodiceFiscale_Rimosso"; + _methodName206 = "findByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName201 = "countByDettPratica_CodiceFiscale"; + _methodName207 = "countByDettPratica_CodiceFiscale"; - _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; - _methodName202 = "countByDettPratica_CodiceFiscale_Rimosso"; + _methodName208 = "countByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName203 = "findByIntPratica_CodiceFiscale"; + _methodName209 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes203 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes209 = new String[] { "long", "java.lang.String" }; - _methodName204 = "findByIntPratica_CodiceFiscale_Rimosso"; + _methodName210 = "findByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName205 = "countByIntPratica_CodiceFiscale"; + _methodName211 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; - _methodName206 = "countByIntPratica_CodiceFiscale_Rimosso"; + _methodName212 = "countByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName207 = "findByIntPratica_TipologiaSoggetto"; + _methodName213 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes213 = new String[] { "long", "java.lang.String" }; - _methodName208 = "findByDettPratica_TipologiaSoggetto"; + _methodName214 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; - _methodName209 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; + _methodName215 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName210 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName216 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName211 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName217 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes217 = new String[] { "long", "java.lang.String", "long" }; - _methodName212 = "getValidByIntPratica"; + _methodName218 = "getValidByIntPratica"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName213 = "getValidByDettPratica"; + _methodName219 = "getValidByDettPratica"; - _methodParameterTypes213 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { "long" }; - _methodName214 = "countValidByIntPratica"; + _methodName220 = "countValidByIntPratica"; - _methodParameterTypes214 = new String[] { "long" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName216 = "getValidTmpByIntPratica"; + _methodName222 = "getValidTmpByIntPratica"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName217 = "countValidTmpByIntPratica"; + _methodName223 = "countValidTmpByIntPratica"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes223 = new String[] { "long" }; - _methodName219 = "getTmpNotCompletedByDettPratica"; + _methodName225 = "getTmpNotCompletedByDettPratica"; - _methodParameterTypes219 = new String[] { "long" }; + _methodParameterTypes225 = new String[] { "long" }; - _methodName220 = "countTmpNotCompletedByDettPratica"; + _methodName226 = "countTmpNotCompletedByDettPratica"; - _methodParameterTypes220 = new String[] { "long" }; + _methodParameterTypes226 = new String[] { "long" }; - _methodName222 = "getSoggettiPrincipaliValidTmpByDettPratica"; + _methodName228 = "getSoggettiPrincipaliValidTmpByDettPratica"; - _methodParameterTypes222 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName223 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName229 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes223 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes229 = new String[] { "long", "java.lang.String[][]" }; - _methodName224 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName230 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes224 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes230 = new String[] { "long", "java.lang.String[][]" }; - _methodName225 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName231 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes225 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes231 = new String[] { "long", "java.lang.String[][]" }; - _methodName227 = "getValidTmpByDettPratica"; + _methodName233 = "getValidTmpByDettPratica"; - _methodParameterTypes227 = new String[] { "long" }; + _methodParameterTypes233 = new String[] { "long" }; - _methodName228 = "getCfValidTmpByDettPratica"; + _methodName234 = "getCfValidTmpByDettPratica"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes234 = new String[] { "long" }; - _methodName229 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; + _methodName235 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes229 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes235 = new String[] { "long", "java.lang.String" }; - _methodName230 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; + _methodName236 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes236 = new String[] { "long", "java.lang.String" }; - _methodName231 = "countCfValidTmpByDettPratica"; + _methodName237 = "countCfValidTmpByDettPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName233 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName239 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes239 = new String[] { "long", "java.lang.String", "long" }; - _methodName234 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName240 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes240 = new String[] { "long", "java.lang.String", "long" }; - _methodName235 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName241 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes241 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName236 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName242 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes242 = new String[] { "long", "java.lang.String", "java.lang.String", "long" }; - _methodName238 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName244 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes244 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName239 = "getValidByIntPratica_CodiceFiscale"; + _methodName245 = "getValidByIntPratica_CodiceFiscale"; - _methodParameterTypes239 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes245 = new String[] { "long", "java.lang.String" }; - _methodName240 = "getValidByIntPratica_NoCodiceFiscale"; + _methodName246 = "getValidByIntPratica_NoCodiceFiscale"; - _methodParameterTypes240 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes246 = new String[] { "long", "java.lang.String" }; - _methodName241 = "countValidByIntPratica_CodiceFiscale"; + _methodName247 = "countValidByIntPratica_CodiceFiscale"; - _methodParameterTypes241 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes247 = new String[] { "long", "java.lang.String" }; - _methodName243 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName249 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes243 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes249 = new String[] { "long", "java.lang.String" }; - _methodName244 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName250 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes244 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes250 = new String[] { "long", "java.lang.String" }; - _methodName245 = "getValidTmpByDettPratica_TipologiaSoggetto"; + _methodName251 = "getValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes245 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes251 = new String[] { "long", "java.lang.String" }; - _methodName246 = "getCfValidByIntPratica"; + _methodName252 = "getCfValidByIntPratica"; - _methodParameterTypes246 = new String[] { "long" }; + _methodParameterTypes252 = new String[] { "long" }; - _methodName248 = "getValidByIntPratica_CodiciFiscali"; + _methodName254 = "getValidByIntPratica_CodiciFiscali"; - _methodParameterTypes248 = new String[] { "long", "java.util.List" }; + _methodParameterTypes254 = new String[] { "long", "java.util.List" }; - _methodName249 = "getInvalidByIntPratica"; + _methodName255 = "getInvalidByIntPratica"; - _methodParameterTypes249 = new String[] { "long" }; + _methodParameterTypes255 = new String[] { "long" }; - _methodName250 = "getInvalidTmpByIntPratica"; + _methodName256 = "getInvalidTmpByIntPratica"; - _methodParameterTypes250 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "long" }; - _methodName251 = "getRivalidatedTmpByIntPratica"; + _methodName257 = "getRivalidatedTmpByIntPratica"; - _methodParameterTypes251 = new String[] { "long" }; + _methodParameterTypes257 = new String[] { "long" }; - _methodName252 = "getValidUntilDettPraticaByIntPratica"; + _methodName258 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes252 = new String[] { "long", "long" }; + _methodParameterTypes258 = new String[] { "long", "long" }; - _methodName253 = "getValidUntilDettPraticaByIntPratica"; + _methodName259 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes259 = new String[] { "long", "long", "java.lang.String" }; - _methodName254 = "countValidUntilDettPraticaByIntPratica"; + _methodName260 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes254 = new String[] { "long", "long" }; + _methodParameterTypes260 = new String[] { "long", "long" }; - _methodName256 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; + _methodName262 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; - _methodParameterTypes256 = new String[] { + _methodParameterTypes262 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName257 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName263 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes263 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName258 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName264 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes258 = new String[] { + _methodParameterTypes264 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName259 = "findByUserId"; + _methodName265 = "findByUserId"; - _methodParameterTypes259 = new String[] { "long" }; + _methodParameterTypes265 = new String[] { "long" }; - _methodName260 = "findByUserId"; + _methodName266 = "findByUserId"; - _methodParameterTypes260 = new String[] { + _methodParameterTypes266 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName261 = "findByUserId_CodiceFiscale"; + _methodName267 = "findByUserId_CodiceFiscale"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes267 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName262 = "countByUserId_CodiceFiscale"; + _methodName268 = "countByUserId_CodiceFiscale"; - _methodParameterTypes262 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes268 = new String[] { "long", "java.lang.String" }; - _methodName263 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName269 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes263 = new String[] { + _methodParameterTypes269 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName264 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName270 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes264 = new String[] { + _methodParameterTypes270 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName265 = "findIntPraticaBySoggettoId"; + _methodName271 = "findIntPraticaBySoggettoId"; - _methodParameterTypes265 = new String[] { "long" }; + _methodParameterTypes271 = new String[] { "long" }; - _methodName266 = "updatePrincipale"; + _methodName272 = "updatePrincipale"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes272 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName267 = "completeInvalidation"; + _methodName273 = "completeInvalidation"; - _methodParameterTypes267 = new String[] { "long" }; + _methodParameterTypes273 = new String[] { "long" }; - _methodName268 = "getSoggettiSostituitiIds"; + _methodName274 = "getSoggettiSostituitiIds"; - _methodParameterTypes268 = new String[] { "long" }; + _methodParameterTypes274 = new String[] { "long" }; - _methodName269 = "validaSoggetto"; + _methodName275 = "validaSoggetto"; - _methodParameterTypes269 = new String[] { "long", "long" }; + _methodParameterTypes275 = new String[] { "long", "long" }; - _methodName270 = "invalidaSoggetto"; + _methodName276 = "invalidaSoggetto"; - _methodParameterTypes270 = new String[] { "long", "long" }; + _methodParameterTypes276 = new String[] { "long", "long" }; - _methodName271 = "invalidaESostituisciSoggetto"; + _methodName277 = "invalidaESostituisciSoggetto"; - _methodParameterTypes271 = new String[] { "long", "long", "long" }; + _methodParameterTypes277 = new String[] { "long", "long", "long" }; - _methodName272 = "allegaFileModifica"; + _methodName278 = "allegaFileModifica"; - _methodParameterTypes272 = new String[] { + _methodParameterTypes278 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName273 = "getSoggettiByIntPraticaId_DtRimozioneNull"; + _methodName279 = "getSoggettiByIntPraticaId_DtRimozioneNull"; - _methodParameterTypes273 = new String[] { "long" }; + _methodParameterTypes279 = new String[] { "long" }; - _methodName274 = "getDelegaPlaceholder"; + _methodName280 = "getDelegaPlaceholder"; - _methodParameterTypes274 = new String[] { }; + _methodParameterTypes280 = new String[] { }; - _methodName275 = "savePdfDelega"; + _methodName281 = "savePdfDelega"; - _methodParameterTypes275 = new String[] { "javax.portlet.PortletRequest" }; + _methodParameterTypes281 = new String[] { "javax.portlet.PortletRequest" }; - _methodName276 = "getPdfDelega"; + _methodName282 = "getPdfDelega"; - _methodParameterTypes276 = new String[] { "javax.portlet.PortletRequest" }; + _methodParameterTypes282 = new String[] { "javax.portlet.PortletRequest" }; - _methodName277 = "getAnteprimaDelega"; + _methodName283 = "getAnteprimaDelega"; - _methodParameterTypes277 = new String[] { "javax.portlet.PortletRequest" }; + _methodParameterTypes283 = new String[] { "javax.portlet.PortletRequest" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -721,20 +721,20 @@ public class SoggettoLocalServiceClpInvoker { return SoggettoLocalServiceUtil.updateSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return SoggettoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { SoggettoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -788,8 +788,8 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[54]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggettoValidatedByFile(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -845,8 +845,8 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[57]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggettoForImport(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -896,8 +896,8 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[50]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return SoggettoLocalServiceUtil.cloneSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -905,18 +905,18 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return SoggettoLocalServiceUtil.updateSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -971,8 +971,8 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[55]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return SoggettoLocalServiceUtil.updateSoggettoValidatedByFile(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1028,348 +1028,348 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[57]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return SoggettoLocalServiceUtil.fetchByOldSoggettId(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return SoggettoLocalServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return SoggettoLocalServiceUtil.getTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return SoggettoLocalServiceUtil.countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return SoggettoLocalServiceUtil.getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return SoggettoLocalServiceUtil.countCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return SoggettoLocalServiceUtil.countValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_NoCodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiciFiscali(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return SoggettoLocalServiceUtil.getRivalidatedTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return SoggettoLocalServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return SoggettoLocalServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return SoggettoLocalServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_Aggiuntivo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId(((Long)arguments[0]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -1377,14 +1377,14 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { return SoggettoLocalServiceUtil.countByUserId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), @@ -1392,58 +1392,58 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { return SoggettoLocalServiceUtil.countByUserId_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { return SoggettoLocalServiceUtil.findIntPraticaBySoggettoId(((Long)arguments[0]).longValue()); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { SoggettoLocalServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); return null; } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { SoggettoLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiSostituitiIds(((Long)arguments[0]).longValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { return SoggettoLocalServiceUtil.validaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return SoggettoLocalServiceUtil.invalidaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return SoggettoLocalServiceUtil.invalidaESostituisciSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return SoggettoLocalServiceUtil.allegaFileModifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (byte[])arguments[3], @@ -1451,28 +1451,28 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName280.equals(name) && + Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { return SoggettoLocalServiceUtil.getDelegaPlaceholder(); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName281.equals(name) && + Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { return SoggettoLocalServiceUtil.savePdfDelega((javax.portlet.PortletRequest)arguments[0]); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName282.equals(name) && + Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { return SoggettoLocalServiceUtil.getPdfDelega((javax.portlet.PortletRequest)arguments[0]); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName283.equals(name) && + Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { return SoggettoLocalServiceUtil.getAnteprimaDelega((javax.portlet.PortletRequest)arguments[0]); } @@ -1519,22 +1519,10 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; @@ -1581,10 +1569,14 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; + private String _methodName218; + private String[] _methodParameterTypes218; private String _methodName219; private String[] _methodParameterTypes219; private String _methodName220; @@ -1593,12 +1585,10 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; private String _methodName225; private String[] _methodParameterTypes225; - private String _methodName227; - private String[] _methodParameterTypes227; + private String _methodName226; + private String[] _methodParameterTypes226; private String _methodName228; private String[] _methodParameterTypes228; private String _methodName229; @@ -1615,24 +1605,24 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes235; private String _methodName236; private String[] _methodParameterTypes236; - private String _methodName238; - private String[] _methodParameterTypes238; + private String _methodName237; + private String[] _methodParameterTypes237; private String _methodName239; private String[] _methodParameterTypes239; private String _methodName240; private String[] _methodParameterTypes240; private String _methodName241; private String[] _methodParameterTypes241; - private String _methodName243; - private String[] _methodParameterTypes243; + private String _methodName242; + private String[] _methodParameterTypes242; private String _methodName244; private String[] _methodParameterTypes244; private String _methodName245; private String[] _methodParameterTypes245; private String _methodName246; private String[] _methodParameterTypes246; - private String _methodName248; - private String[] _methodParameterTypes248; + private String _methodName247; + private String[] _methodParameterTypes247; private String _methodName249; private String[] _methodParameterTypes249; private String _methodName250; @@ -1641,10 +1631,10 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes251; private String _methodName252; private String[] _methodParameterTypes252; - private String _methodName253; - private String[] _methodParameterTypes253; private String _methodName254; private String[] _methodParameterTypes254; + private String _methodName255; + private String[] _methodParameterTypes255; private String _methodName256; private String[] _methodParameterTypes256; private String _methodName257; @@ -1655,8 +1645,6 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes259; private String _methodName260; private String[] _methodParameterTypes260; - private String _methodName261; - private String[] _methodParameterTypes261; private String _methodName262; private String[] _methodParameterTypes262; private String _methodName263; @@ -1689,4 +1677,16 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes276; private String _methodName277; private String[] _methodParameterTypes277; + private String _methodName278; + private String[] _methodParameterTypes278; + private String _methodName279; + private String[] _methodParameterTypes279; + private String _methodName280; + private String[] _methodParameterTypes280; + private String _methodName281; + private String[] _methodParameterTypes281; + private String _methodName282; + private String[] _methodParameterTypes282; + private String _methodName283; + private String[] _methodParameterTypes283; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java index 7117e060..3b2f0ead 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1746,6 +1804,12 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java index 44aa10cb..55f9a27c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java @@ -24,21 +24,21 @@ import java.util.Arrays; */ public class SoggettoServiceClpInvoker { public SoggettoServiceClpInvoker() { - _methodName160 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes160 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName161 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes161 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName166 = "getSoggetto"; + _methodName172 = "getSoggetto"; - _methodParameterTypes166 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName167 = "addSoggetto"; + _methodName173 = "addSoggetto"; - _methodParameterTypes167 = new String[] { + _methodParameterTypes173 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -58,19 +58,19 @@ public class SoggettoServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName168 = "deleteSoggetto"; + _methodName174 = "deleteSoggetto"; - _methodParameterTypes168 = new String[] { + _methodParameterTypes174 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName169 = "deleteSoggetto"; + _methodName175 = "deleteSoggetto"; - _methodParameterTypes169 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName170 = "updateSoggetto"; + _methodName176 = "updateSoggetto"; - _methodParameterTypes170 = new String[] { + _methodParameterTypes176 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -90,109 +90,109 @@ public class SoggettoServiceClpInvoker { "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName171 = "updatePrincipale"; + _methodName177 = "updatePrincipale"; - _methodParameterTypes171 = new String[] { + _methodParameterTypes177 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName172 = "findByIntPratica_TipologiaSoggetto"; + _methodName178 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes172 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; - _methodName173 = "findByDettPratica_TipologiaSoggetto"; + _methodName179 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes173 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; - _methodName174 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName180 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName175 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName181 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "long" }; - _methodName176 = "getValidByIntPratica"; + _methodName182 = "getValidByIntPratica"; - _methodParameterTypes176 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName177 = "countValidByIntPratica"; + _methodName183 = "countValidByIntPratica"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName178 = "getValidTmpByIntPratica"; + _methodName184 = "getValidTmpByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName179 = "countValidTmpByIntPratica"; + _methodName185 = "countValidTmpByIntPratica"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName180 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName186 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes186 = new String[] { "long", "java.lang.String", "long" }; - _methodName181 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName187 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "long" }; - _methodName182 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName188 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; - _methodName183 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName189 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName184 = "getInvalidByIntPratica"; + _methodName190 = "getInvalidByIntPratica"; - _methodParameterTypes184 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName185 = "getInvalidTmpByIntPratica"; + _methodName191 = "getInvalidTmpByIntPratica"; - _methodParameterTypes185 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName186 = "getValidUntilDettPraticaByIntPratica"; + _methodName192 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes186 = new String[] { "long", "long" }; + _methodParameterTypes192 = new String[] { "long", "long" }; - _methodName187 = "getValidUntilDettPraticaByIntPratica"; + _methodName193 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "java.lang.String" }; - _methodName188 = "countValidUntilDettPraticaByIntPratica"; + _methodName194 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes188 = new String[] { "long", "long" }; + _methodParameterTypes194 = new String[] { "long", "long" }; - _methodName189 = "findByIntPratica"; + _methodName195 = "findByIntPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName190 = "countByIntPratica"; + _methodName196 = "countByIntPratica"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName191 = "findByDettPratica"; + _methodName197 = "findByDettPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName192 = "countByDettPratica"; + _methodName198 = "countByDettPratica"; - _methodParameterTypes192 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName193 = "allegaFileModifica"; + _methodName199 = "allegaFileModifica"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -200,25 +200,25 @@ public class SoggettoServiceClpInvoker { public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName160.equals(name) && - Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return SoggettoServiceUtil.getBeanIdentifier(); } - if (_methodName161.equals(name) && - Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { SoggettoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return SoggettoServiceUtil.getSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return SoggettoServiceUtil.addSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -272,18 +272,18 @@ public class SoggettoServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[54]); } - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return SoggettoServiceUtil.updateSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -338,133 +338,133 @@ public class SoggettoServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[55]); } - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { SoggettoServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); return null; } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return SoggettoServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return SoggettoServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return SoggettoServiceUtil.countValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return SoggettoServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return SoggettoServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return SoggettoServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return SoggettoServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return SoggettoServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return SoggettoServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return SoggettoServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return SoggettoServiceUtil.allegaFileModifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (byte[])arguments[3], @@ -475,22 +475,10 @@ public class SoggettoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName160; - private String[] _methodParameterTypes160; - private String _methodName161; - private String[] _methodParameterTypes161; private String _methodName166; private String[] _methodParameterTypes166; private String _methodName167; private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; @@ -535,4 +523,16 @@ public class SoggettoServiceClpInvoker { private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java index fa4a15b1..3c67e97d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1344,6 +1345,63 @@ public abstract class SorteggioLocalServiceBaseImpl extends BaseLocalServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2001,6 +2059,12 @@ public abstract class SorteggioLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java index c5d0aa73..7116a848 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java @@ -122,17 +122,17 @@ public class SorteggioLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Sorteggio" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName182 = "addSorteggio"; + _methodName188 = "addSorteggio"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "int", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", "long", "java.lang.String", @@ -141,9 +141,9 @@ public class SorteggioLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "addSorteggioForImport"; + _methodName189 = "addSorteggioForImport"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "int", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", "long", "java.lang.String", @@ -152,133 +152,133 @@ public class SorteggioLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName184 = "getYears"; + _methodName190 = "getYears"; - _methodParameterTypes184 = new String[] { "java.lang.Long", "int" }; + _methodParameterTypes190 = new String[] { "java.lang.Long", "int" }; - _methodName185 = "countDettPraticaWorkflowNonAvviato"; + _methodName191 = "countDettPraticaWorkflowNonAvviato"; - _methodParameterTypes185 = new String[] { }; + _methodParameterTypes191 = new String[] { }; - _methodName186 = "getDettPraticaWorkflowNonAvviato"; + _methodName192 = "getDettPraticaWorkflowNonAvviato"; - _methodParameterTypes186 = new String[] { "int", "int" }; + _methodParameterTypes192 = new String[] { "int", "int" }; - _methodName188 = "search"; + _methodName194 = "search"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "int", "int" }; - _methodName189 = "countSearch"; + _methodName195 = "countSearch"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "java.lang.String", "int" }; - _methodName190 = "search"; + _methodName196 = "search"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Long", "java.lang.String", "int", "int" }; - _methodName191 = "countSearch"; + _methodName197 = "countSearch"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "java.lang.String", "java.lang.String", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Long", "java.lang.String" }; - _methodName193 = "isDettPraticaSorteggiata"; + _methodName199 = "isDettPraticaSorteggiata"; - _methodParameterTypes193 = new String[] { "long", "long" }; + _methodParameterTypes199 = new String[] { "long", "long" }; - _methodName194 = "fetchByOldSorteggioId"; + _methodName200 = "fetchByOldSorteggioId"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName195 = "findByC_DettPratica"; + _methodName201 = "findByC_DettPratica"; - _methodParameterTypes195 = new String[] { "long", "long" }; + _methodParameterTypes201 = new String[] { "long", "long" }; - _methodName196 = "findByIntPratica"; + _methodName202 = "findByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName197 = "findByGroupId_Anno_Mese_Settimana"; + _methodName203 = "findByGroupId_Anno_Mese_Settimana"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "java.lang.String", "int" }; - _methodName198 = "findByCompanyIdGroupId"; + _methodName204 = "findByCompanyIdGroupId"; - _methodParameterTypes198 = new String[] { "long", "long" }; + _methodParameterTypes204 = new String[] { "long", "long" }; - _methodName199 = "findByAnno_Mese_Settimana"; + _methodName205 = "findByAnno_Mese_Settimana"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes205 = new String[] { "java.lang.String", "java.lang.String", "int" }; - _methodName200 = "findSorteggiGroupByAnnoMeseSettimana"; + _methodName206 = "findSorteggiGroupByAnnoMeseSettimana"; - _methodParameterTypes200 = new String[] { "int", "int" }; + _methodParameterTypes206 = new String[] { "int", "int" }; - _methodName201 = "countSorteggiGroupByAnnoMeseSettimana"; + _methodName207 = "countSorteggiGroupByAnnoMeseSettimana"; - _methodParameterTypes201 = new String[] { }; + _methodParameterTypes207 = new String[] { }; - _methodName202 = "countSorteggioMese"; + _methodName208 = "countSorteggioMese"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes208 = new String[] { "java.util.Date", "java.util.Date", "java.util.List", "java.util.List" }; - _methodName203 = "findSorteggioMese"; + _methodName209 = "findSorteggioMese"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes209 = new String[] { "java.util.Date", "java.util.Date", "java.util.List", "java.util.List", "java.util.List", "int" }; - _methodName204 = "findSorteggioAnno"; + _methodName210 = "findSorteggioAnno"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes210 = new String[] { "java.util.Date", "java.util.Date", "java.util.List", "java.util.List", "java.util.List", "int" }; - _methodName205 = "updateDataSorteggioPraticaEsterna"; + _methodName211 = "updateDataSorteggioPraticaEsterna"; - _methodParameterTypes205 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes211 = new String[] { "long", "java.util.Date" }; - _methodName206 = "getTecnicoSorteggioPraticaEsterna"; + _methodName212 = "getTecnicoSorteggioPraticaEsterna"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes212 = new String[] { "long" }; - _methodName207 = "findTipoPraticaIdSorteggioPraticaEsterna"; + _methodName213 = "findTipoPraticaIdSorteggioPraticaEsterna"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName208 = "search"; + _methodName214 = "search"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes214 = new String[] { "java.lang.Long", "java.lang.String", "java.lang.String", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Long", "java.lang.String", "int", "int" }; - _methodName209 = "count"; + _methodName215 = "count"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes215 = new String[] { "java.lang.Long", "java.lang.String", "java.lang.String", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Long", "java.lang.String" @@ -398,20 +398,20 @@ public class SorteggioLocalServiceClpInvoker { return SorteggioLocalServiceUtil.updateSorteggio((it.tref.liferay.portos.bo.model.Sorteggio)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return SorteggioLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { SorteggioLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return SorteggioLocalServiceUtil.addSorteggio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -429,8 +429,8 @@ public class SorteggioLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[17]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return SorteggioLocalServiceUtil.addSorteggioForImport(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -450,25 +450,25 @@ public class SorteggioLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[19]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return SorteggioLocalServiceUtil.getYears((java.lang.Long)arguments[0], ((Integer)arguments[1]).intValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return SorteggioLocalServiceUtil.countDettPraticaWorkflowNonAvviato(); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return SorteggioLocalServiceUtil.getDettPraticaWorkflowNonAvviato(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return SorteggioLocalServiceUtil.search(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), @@ -476,15 +476,15 @@ public class SorteggioLocalServiceClpInvoker { ((Integer)arguments[5]).intValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return SorteggioLocalServiceUtil.countSearch(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return SorteggioLocalServiceUtil.search((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -495,8 +495,8 @@ public class SorteggioLocalServiceClpInvoker { ((Integer)arguments[10]).intValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return SorteggioLocalServiceUtil.countSearch((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -505,69 +505,69 @@ public class SorteggioLocalServiceClpInvoker { (java.lang.Long)arguments[7], (java.lang.String)arguments[8]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return SorteggioLocalServiceUtil.isDettPraticaSorteggiata(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return SorteggioLocalServiceUtil.fetchByOldSorteggioId(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return SorteggioLocalServiceUtil.findByC_DettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return SorteggioLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return SorteggioLocalServiceUtil.findByGroupId_Anno_Mese_Settimana(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return SorteggioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return SorteggioLocalServiceUtil.findByAnno_Mese_Settimana((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return SorteggioLocalServiceUtil.countSorteggiGroupByAnnoMeseSettimana(); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return SorteggioLocalServiceUtil.countSorteggioMese((java.util.Date)arguments[0], (java.util.Date)arguments[1], (java.util.List)arguments[2], (java.util.List)arguments[3]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return SorteggioLocalServiceUtil.findSorteggioMese((java.util.Date)arguments[0], (java.util.Date)arguments[1], (java.util.List)arguments[2], @@ -576,8 +576,8 @@ public class SorteggioLocalServiceClpInvoker { ((Integer)arguments[5]).intValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return SorteggioLocalServiceUtil.findSorteggioAnno((java.util.Date)arguments[0], (java.util.Date)arguments[1], (java.util.List)arguments[2], @@ -586,26 +586,26 @@ public class SorteggioLocalServiceClpInvoker { ((Integer)arguments[5]).intValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { SorteggioLocalServiceUtil.updateDataSorteggioPraticaEsterna(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); return null; } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return SorteggioLocalServiceUtil.findTipoPraticaIdSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return SorteggioLocalServiceUtil.search((java.lang.Long)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), @@ -616,8 +616,8 @@ public class SorteggioLocalServiceClpInvoker { ((Integer)arguments[11]).intValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return SorteggioLocalServiceUtil.count((java.lang.Long)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), @@ -669,20 +669,10 @@ public class SorteggioLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; private String _methodName182; private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; @@ -691,8 +681,8 @@ public class SorteggioLocalServiceClpInvoker { private String[] _methodParameterTypes190; private String _methodName191; private String[] _methodParameterTypes191; - private String _methodName193; - private String[] _methodParameterTypes193; + private String _methodName192; + private String[] _methodParameterTypes192; private String _methodName194; private String[] _methodParameterTypes194; private String _methodName195; @@ -701,8 +691,6 @@ public class SorteggioLocalServiceClpInvoker { private String[] _methodParameterTypes196; private String _methodName197; private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; @@ -725,4 +713,16 @@ public class SorteggioLocalServiceClpInvoker { private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; + private String _methodName211; + private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; + private String _methodName213; + private String[] _methodParameterTypes213; + private String _methodName214; + private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java index 967d8a97..b08ca9af 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class SorteggioServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class SorteggioServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java index a83d55df..65f0fee2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class SorteggioServiceClpInvoker { public SorteggioServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return SorteggioServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { SorteggioServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class SorteggioServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java index 3128093c..c73ed33a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1292,6 +1293,63 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1949,6 +2007,12 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java index dc9b90a4..b392ca24 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java @@ -106,40 +106,40 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.StoricoSoggettoPratica" }; - _methodName172 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName178 = "addStoricoSoggettoPratica"; + _methodName184 = "addStoricoSoggettoPratica"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "addStoricoSoggettoPraticaForImport"; + _methodName185 = "addStoricoSoggettoPraticaForImport"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "fetchByOldStoricoSoggettoPraticaId"; + _methodName186 = "fetchByOldStoricoSoggettoPraticaId"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName181 = "findByIntPratica"; + _methodName187 = "findByIntPratica"; - _methodParameterTypes181 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes187 = new String[] { "long", "long", "int", "int" }; - _methodName182 = "countByIntPratica"; + _methodName188 = "countByIntPratica"; - _methodParameterTypes182 = new String[] { "long", "long" }; + _methodParameterTypes188 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -231,28 +231,28 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { return StoricoSoggettoPraticaLocalServiceUtil.updateStoricoSoggettoPratica((it.tref.liferay.portos.bo.model.StoricoSoggettoPratica)arguments[0]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { StoricoSoggettoPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPraticaForImport(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -260,21 +260,21 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.fetchByOldStoricoSoggettoPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -314,18 +314,18 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java index 91ed6a45..868a2838 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1057,6 +1058,63 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1709,6 +1767,12 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java index 17f0ae34..dfef3bd0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class StoricoSoggettoPraticaServiceClpInvoker { public StoricoSoggettoPraticaServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return StoricoSoggettoPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { StoricoSoggettoPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class StoricoSoggettoPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java index 62aab704..fb04314e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1346,6 +1347,63 @@ public abstract class TempisticaLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -2003,6 +2061,12 @@ public abstract class TempisticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java index bbb95d00..70419721 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java @@ -122,134 +122,134 @@ public class TempisticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Tempistica" }; - _methodName176 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes176 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName177 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes177 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName182 = "addTempistica"; + _methodName188 = "addTempistica"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "stopTempistica"; + _methodName189 = "stopTempistica"; - _methodParameterTypes183 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes189 = new String[] { "long", "java.util.Date" }; - _methodName184 = "ravvioTempistica"; + _methodName190 = "ravvioTempistica"; - _methodParameterTypes184 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes190 = new String[] { "long", "java.util.Date" }; - _methodName185 = "concludiTempistica"; + _methodName191 = "concludiTempistica"; - _methodParameterTypes185 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes191 = new String[] { "long", "java.util.Date" }; - _methodName186 = "getTempistica"; + _methodName192 = "getTempistica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes192 = new String[] { "long", "long", "java.lang.String", "boolean" }; - _methodName187 = "countScadenzePraticheInScadenza"; + _methodName193 = "countScadenzePraticheInScadenza"; - _methodParameterTypes187 = new String[] { "long", "long" }; + _methodParameterTypes193 = new String[] { "long", "long" }; - _methodName188 = "countScadenzePraticheScadute"; + _methodName194 = "countScadenzePraticheScadute"; - _methodParameterTypes188 = new String[] { "long", "long" }; + _methodParameterTypes194 = new String[] { "long", "long" }; - _methodName189 = "countScadenzeIntegrazioniScadute"; + _methodName195 = "countScadenzeIntegrazioniScadute"; - _methodParameterTypes189 = new String[] { "long", "long" }; + _methodParameterTypes195 = new String[] { "long", "long" }; - _methodName190 = "countPraticheAttive"; + _methodName196 = "countPraticheAttive"; - _methodParameterTypes190 = new String[] { "long", "long" }; + _methodParameterTypes196 = new String[] { "long", "long" }; - _methodName191 = "getScadenzePratiche"; + _methodName197 = "getScadenzePratiche"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes197 = new String[] { "long", "long", "int", "int", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName192 = "getScadenzeIntegrazioni"; + _methodName198 = "getScadenzeIntegrazioni"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long", "int", "int", "java.lang.Integer" }; - _methodName193 = "countScadenzePratiche"; + _methodName199 = "countScadenzePratiche"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName194 = "countScadenzeIntegrazioni"; + _methodName200 = "countScadenzeIntegrazioni"; - _methodParameterTypes194 = new String[] { "long", "long" }; + _methodParameterTypes200 = new String[] { "long", "long" }; - _methodName195 = "fetchByOldTempisticaId"; + _methodName201 = "fetchByOldTempisticaId"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName196 = "findByIntPratica_Tipo"; + _methodName202 = "findByIntPratica_Tipo"; - _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; - _methodName197 = "countPraticheScaduteAutorizzazione"; + _methodName203 = "countPraticheScaduteAutorizzazione"; - _methodParameterTypes197 = new String[] { "long", "long" }; + _methodParameterTypes203 = new String[] { "long", "long" }; - _methodName198 = "countPraticheScaduteSorteggiate"; + _methodName204 = "countPraticheScaduteSorteggiate"; - _methodParameterTypes198 = new String[] { "long", "long" }; + _methodParameterTypes204 = new String[] { "long", "long" }; - _methodName199 = "countPraticheScaduteControlloObbligatorio"; + _methodName205 = "countPraticheScaduteControlloObbligatorio"; - _methodParameterTypes199 = new String[] { "long", "long" }; + _methodParameterTypes205 = new String[] { "long", "long" }; - _methodName200 = "countPraticheInScadenzaAutorizzazioni"; + _methodName206 = "countPraticheInScadenzaAutorizzazioni"; - _methodParameterTypes200 = new String[] { "long", "long" }; + _methodParameterTypes206 = new String[] { "long", "long" }; - _methodName201 = "countPraticheInScadenzaSorteggiate"; + _methodName207 = "countPraticheInScadenzaSorteggiate"; - _methodParameterTypes201 = new String[] { "long", "long" }; + _methodParameterTypes207 = new String[] { "long", "long" }; - _methodName202 = "countPraticheInScadenzaControlloObbligatorio"; + _methodName208 = "countPraticheInScadenzaControlloObbligatorio"; - _methodParameterTypes202 = new String[] { "long", "long" }; + _methodParameterTypes208 = new String[] { "long", "long" }; - _methodName203 = "praticheAttiveAutorizzazioni"; + _methodName209 = "praticheAttiveAutorizzazioni"; - _methodParameterTypes203 = new String[] { "long", "long" }; + _methodParameterTypes209 = new String[] { "long", "long" }; - _methodName204 = "praticheAttiveSorteggiate"; + _methodName210 = "praticheAttiveSorteggiate"; - _methodParameterTypes204 = new String[] { "long", "long" }; + _methodParameterTypes210 = new String[] { "long", "long" }; - _methodName205 = "praticheAttiveControlloObbligatorio"; + _methodName211 = "praticheAttiveControlloObbligatorio"; - _methodParameterTypes205 = new String[] { "long", "long" }; + _methodParameterTypes211 = new String[] { "long", "long" }; - _methodName206 = "getDtSottopostaAParere"; + _methodName212 = "getDtSottopostaAParere"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes212 = new String[] { "long" }; - _methodName207 = "countPraticheAttivePerDiscriminazione"; + _methodName213 = "countPraticheAttivePerDiscriminazione"; - _methodParameterTypes207 = new String[] { "long", "long" }; + _methodParameterTypes213 = new String[] { "long", "long" }; - _methodName208 = "scadenzePraticheForBackwardCompatibility"; + _methodName214 = "scadenzePraticheForBackwardCompatibility"; - _methodParameterTypes208 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes214 = new String[] { "long", "long", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -365,78 +365,78 @@ public class TempisticaLocalServiceClpInvoker { return TempisticaLocalServiceUtil.updateTempistica((it.tref.liferay.portos.bo.model.Tempistica)arguments[0]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return TempisticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { TempisticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return TempisticaLocalServiceUtil.addTempistica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.util.Date)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return TempisticaLocalServiceUtil.stopTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return TempisticaLocalServiceUtil.ravvioTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return TempisticaLocalServiceUtil.concludiTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return TempisticaLocalServiceUtil.getTempistica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheInScadenza(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioniScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttive(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzePratiche(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -445,8 +445,8 @@ public class TempisticaLocalServiceClpInvoker { (java.lang.String)arguments[5], (java.lang.String)arguments[6]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -454,98 +454,98 @@ public class TempisticaLocalServiceClpInvoker { (java.lang.Integer)arguments[4]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePratiche(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.Integer)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return TempisticaLocalServiceUtil.fetchByOldTempisticaId(((Long)arguments[0]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return TempisticaLocalServiceUtil.findByIntPratica_Tipo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteAutorizzazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteSorteggiate(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaSorteggiate(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveSorteggiate(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return TempisticaLocalServiceUtil.getDtSottopostaAParere(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttivePerDiscriminazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return TempisticaLocalServiceUtil.scadenzePraticheForBackwardCompatibility(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -595,22 +595,10 @@ public class TempisticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; private String _methodName182; private String[] _methodParameterTypes182; private String _methodName183; private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; @@ -653,4 +641,16 @@ public class TempisticaLocalServiceClpInvoker { private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; + private String _methodName209; + private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; + private String _methodName211; + private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; + private String _methodName213; + private String[] _methodParameterTypes213; + private String _methodName214; + private String[] _methodParameterTypes214; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java index d2d10238..9157a5b6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java index 9c4ee9b8..85d9ea93 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class TempisticaServiceClpInvoker { public TempisticaServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return TempisticaServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { TempisticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class TempisticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java index b3449b60..792130f6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java @@ -51,6 +51,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1288,6 +1289,63 @@ public abstract class TerritorioLocalServiceBaseImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1945,6 +2003,12 @@ public abstract class TerritorioLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java index b8c3f2b8..6a3e4a4d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java @@ -106,98 +106,102 @@ public class TerritorioLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName172 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName178 = "addTerritorio"; + _methodName184 = "addTerritorio"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "updateTerritorio"; + _methodName185 = "updateTerritorio"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "getTerritori"; + _methodName186 = "getTerritori"; - _methodParameterTypes180 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes186 = new String[] { "long", "long", "int", "int" }; - _methodName181 = "countTerritori"; + _methodName187 = "countTerritori"; - _methodParameterTypes181 = new String[] { "long", "long" }; + _methodParameterTypes187 = new String[] { "long", "long" }; - _methodName182 = "findByComuneId"; + _methodName188 = "findByComuneId"; - _methodParameterTypes182 = new String[] { "long", "int", "int" }; + _methodParameterTypes188 = new String[] { "long", "int", "int" }; - _methodName183 = "findByCompanyIdGroupId"; + _methodName189 = "findByCompanyIdGroupId"; - _methodParameterTypes183 = new String[] { "long", "long" }; + _methodParameterTypes189 = new String[] { "long", "long" }; - _methodName184 = "getActiveProvince"; + _methodName190 = "getActiveProvince"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes190 = new String[] { }; - _methodName185 = "getActiveComuniByCodiceProvincia"; + _methodName191 = "getActiveComuniByCodiceProvincia"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes191 = new String[] { "java.lang.String" }; - _methodName186 = "getActiveTerritoriByComune"; + _methodName193 = "getActiveComuniByCodiceProvincia_Ospedaliera"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "java.lang.String" }; - _methodName187 = "deleteTerritorio"; + _methodName194 = "getActiveTerritoriByComune"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName188 = "deleteTerritorio"; + _methodName195 = "deleteTerritorio"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes195 = new String[] { "long" }; + + _methodName196 = "deleteTerritorio"; + + _methodParameterTypes196 = new String[] { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName189 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + _methodName197 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes197 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName190 = "fetchByOldTerriotioId"; + _methodName198 = "fetchByOldTerriotioId"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName192 = "getTerritoriByGroupAndZona"; + _methodName200 = "getTerritoriByGroupAndZona"; - _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName193 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName201 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName195 = "getAllTerritorioGroup"; + _methodName203 = "getAllTerritorioGroup"; - _methodParameterTypes195 = new String[] { }; + _methodParameterTypes203 = new String[] { }; - _methodName196 = "verifyTerritorioConstraintAlreadyExist"; + _methodName204 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes204 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -292,20 +296,20 @@ public class TerritorioLocalServiceClpInvoker { return TerritorioLocalServiceUtil.updateTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return TerritorioLocalServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { TerritorioLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return TerritorioLocalServiceUtil.addTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -317,8 +321,8 @@ public class TerritorioLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return TerritorioLocalServiceUtil.updateTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -331,90 +335,95 @@ public class TerritorioLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return TerritorioLocalServiceUtil.countTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return TerritorioLocalServiceUtil.findByComuneId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return TerritorioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveProvince(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia_Ospedaliera((java.lang.String)arguments[0]); + } + + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return TerritorioLocalServiceUtil.findTerritorioByComuneIdGZonaFasciaDtIni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.util.Date)arguments[4]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return TerritorioLocalServiceUtil.fetchByOldTerriotioId(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZonaAndFascia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return TerritorioLocalServiceUtil.getAllTerritorioGroup(); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return TerritorioLocalServiceUtil.verifyTerritorioConstraintAlreadyExist(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -456,22 +465,10 @@ public class TerritorioLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; private String _methodName184; private String[] _methodParameterTypes184; private String _methodName185; @@ -486,12 +483,26 @@ public class TerritorioLocalServiceClpInvoker { private String[] _methodParameterTypes189; private String _methodName190; private String[] _methodParameterTypes190; - private String _methodName192; - private String[] _methodParameterTypes192; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + private String _methodName203; + private String[] _methodParameterTypes203; + private String _methodName204; + private String[] _methodParameterTypes204; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java index 0f05465b..90e4e0e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; @@ -1056,6 +1057,63 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl this.parereGeologoPersistence = parereGeologoPersistence; } + /** + * Returns the pratica attenzionata local service. + * + * @return the pratica attenzionata local service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService getPraticaAttenzionataLocalService() { + return praticaAttenzionataLocalService; + } + + /** + * Sets the pratica attenzionata local service. + * + * @param praticaAttenzionataLocalService the pratica attenzionata local service + */ + public void setPraticaAttenzionataLocalService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService) { + this.praticaAttenzionataLocalService = praticaAttenzionataLocalService; + } + + /** + * Returns the pratica attenzionata remote service. + * + * @return the pratica attenzionata remote service + */ + public it.tref.liferay.portos.bo.service.PraticaAttenzionataService getPraticaAttenzionataService() { + return praticaAttenzionataService; + } + + /** + * Sets the pratica attenzionata remote service. + * + * @param praticaAttenzionataService the pratica attenzionata remote service + */ + public void setPraticaAttenzionataService( + it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService) { + this.praticaAttenzionataService = praticaAttenzionataService; + } + + /** + * Returns the pratica attenzionata persistence. + * + * @return the pratica attenzionata persistence + */ + public PraticaAttenzionataPersistence getPraticaAttenzionataPersistence() { + return praticaAttenzionataPersistence; + } + + /** + * Sets the pratica attenzionata persistence. + * + * @param praticaAttenzionataPersistence the pratica attenzionata persistence + */ + public void setPraticaAttenzionataPersistence( + PraticaAttenzionataPersistence praticaAttenzionataPersistence) { + this.praticaAttenzionataPersistence = praticaAttenzionataPersistence; + } + /** * Returns the provincia local service. * @@ -1708,6 +1766,12 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; @BeanReference(type = ParereGeologoPersistence.class) protected ParereGeologoPersistence parereGeologoPersistence; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService praticaAttenzionataLocalService; + @BeanReference(type = it.tref.liferay.portos.bo.service.PraticaAttenzionataService.class) + protected it.tref.liferay.portos.bo.service.PraticaAttenzionataService praticaAttenzionataService; + @BeanReference(type = PraticaAttenzionataPersistence.class) + protected PraticaAttenzionataPersistence praticaAttenzionataPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java index 45145985..2eae6488 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java @@ -24,65 +24,65 @@ import java.util.Arrays; */ public class TerritorioServiceClpInvoker { public TerritorioServiceClpInvoker() { - _methodName156 = "getBeanIdentifier"; + _methodName162 = "getBeanIdentifier"; - _methodParameterTypes156 = new String[] { }; + _methodParameterTypes162 = new String[] { }; - _methodName157 = "setBeanIdentifier"; + _methodName163 = "setBeanIdentifier"; - _methodParameterTypes157 = new String[] { "java.lang.String" }; + _methodParameterTypes163 = new String[] { "java.lang.String" }; - _methodName162 = "addTerritorio"; + _methodName168 = "addTerritorio"; - _methodParameterTypes162 = new String[] { + _methodParameterTypes168 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName163 = "updateTerritorio"; + _methodName169 = "updateTerritorio"; - _methodParameterTypes163 = new String[] { + _methodParameterTypes169 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName164 = "fetchTerritorio"; + _methodName170 = "fetchTerritorio"; - _methodParameterTypes164 = new String[] { "long" }; + _methodParameterTypes170 = new String[] { "long" }; - _methodName165 = "createTerritorio"; + _methodName171 = "createTerritorio"; - _methodParameterTypes165 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long" }; - _methodName166 = "getTerritori"; + _methodName172 = "getTerritori"; - _methodParameterTypes166 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes172 = new String[] { "long", "long", "int", "int" }; - _methodName167 = "countTerritori"; + _methodName173 = "countTerritori"; - _methodParameterTypes167 = new String[] { "long", "long" }; + _methodParameterTypes173 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName156.equals(name) && - Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return TerritorioServiceUtil.getBeanIdentifier(); } - if (_methodName157.equals(name) && - Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { TerritorioServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName162.equals(name) && - Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return TerritorioServiceUtil.addTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -94,8 +94,8 @@ public class TerritorioServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName163.equals(name) && - Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return TerritorioServiceUtil.updateTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -108,26 +108,26 @@ public class TerritorioServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName164.equals(name) && - Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return TerritorioServiceUtil.fetchTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName165.equals(name) && - Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return TerritorioServiceUtil.createTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return TerritorioServiceUtil.getTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return TerritorioServiceUtil.countTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -135,20 +135,20 @@ public class TerritorioServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName156; - private String[] _methodParameterTypes156; - private String _methodName157; - private String[] _methodParameterTypes157; private String _methodName162; private String[] _methodParameterTypes162; private String _methodName163; private String[] _methodParameterTypes163; - private String _methodName164; - private String[] _methodParameterTypes164; - private String _methodName165; - private String[] _methodParameterTypes165; - private String _methodName166; - private String[] _methodParameterTypes166; - private String _methodName167; - private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java index 92d3184a..fe9e63f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java @@ -93,6 +93,24 @@ public class FineLavoriServiceSoap { } } + public static it.tref.liferay.portos.bo.model.FineLavoriSoap addFineLavori( + long intPraticaId, boolean richiestaAttestazione, + boolean normEsenteCollaudo, + com.liferay.portal.service.ServiceContext serviceContext) + throws RemoteException { + try { + it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.addFineLavori(intPraticaId, + richiestaAttestazione, normEsenteCollaudo, serviceContext); + + return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue); + } + catch (Exception e) { + _log.error(e, e); + + throw new RemoteException(e.getMessage()); + } + } + public static it.tref.liferay.portos.bo.model.FineLavoriSoap deleteFineLavori( it.tref.liferay.portos.bo.model.FineLavoriSoap fineLavori) throws RemoteException { @@ -123,6 +141,24 @@ public class FineLavoriServiceSoap { } } + public static it.tref.liferay.portos.bo.model.FineLavoriSoap updateFineLavori( + it.tref.liferay.portos.bo.model.FineLavoriSoap fineLavori, + boolean parziale, + com.liferay.portal.service.ServiceContext serviceContext) + throws RemoteException { + try { + it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl.toModel( + fineLavori), parziale, serviceContext); + + return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue); + } + catch (Exception e) { + _log.error(e, e); + + throw new RemoteException(e.getMessage()); + } + } + public static it.tref.liferay.portos.bo.model.FineLavoriSoap updateFineLavori( it.tref.liferay.portos.bo.model.FineLavoriSoap fineLavori) throws RemoteException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java index fe9b0ba9..97d62e34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java @@ -63,12 +63,12 @@ import java.rmi.RemoteException; */ public class PagamentoServiceSoap { public static void updatePagamentoManuale(long pagamentoId, byte[] content, - java.lang.String sourceFileName, + java.lang.String numeroBollettino, java.lang.String sourceFileName, com.liferay.portal.service.ServiceContext serviceContext) throws RemoteException { try { PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, content, - sourceFileName, serviceContext); + numeroBollettino, sourceFileName, serviceContext); } catch (Exception e) { _log.error(e, e); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PraticaAttenzionataServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PraticaAttenzionataServiceSoap.java new file mode 100644 index 00000000..7a156725 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PraticaAttenzionataServiceSoap.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.http; + +/** + * Provides the SOAP utility for the + * {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil} service utility. The + * static methods of this class calls the same methods of the service utility. + * However, the signatures are different because it is difficult for SOAP to + * support certain types. + * + *

+ * ServiceBuilder follows certain rules in translating the methods. For example, + * if the method in the service utility returns a {@link java.util.List}, that + * is translated to an array of {@link it.tref.liferay.portos.bo.model.PraticaAttenzionataSoap}. + * If the method in the service utility returns a + * {@link it.tref.liferay.portos.bo.model.PraticaAttenzionata}, that is translated to a + * {@link it.tref.liferay.portos.bo.model.PraticaAttenzionataSoap}. Methods that SOAP cannot + * safely wire are skipped. + *

+ * + *

+ * The benefits of using the SOAP utility is that it is cross platform + * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and + * even Perl, to call the generated services. One drawback of SOAP is that it is + * slow because it needs to serialize all calls into a text format (XML). + *

+ * + *

+ * You can see a list of services at http://localhost:8080/api/axis. Set the + * property axis.servlet.hosts.allowed in portal.properties to configure + * security. + *

+ * + *

+ * The SOAP utility is only generated for remote services. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataServiceHttp + * @see it.tref.liferay.portos.bo.model.PraticaAttenzionataSoap + * @see it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil + * @generated + */ +public class PraticaAttenzionataServiceSoap { +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java index d1c6537b..b16a57cf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java @@ -225,6 +225,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } else { ambito = LanguageUtil.get(Locale.ITALIAN, "label-ambito-" + ambito); } + String name = soggetto.getNome(); String html = buffer.toString().replaceAll("##anteprima(.*?)##", anteprima ? StringPool.BLANK : "$1") .replaceAll("##lavoripubblici(.*?)##", dettPratica.getLavoriPubblici() ? StringPool.BLANK : "$1") .replace("{{agalto}}", agAlto ? CHECKED : StringPool.SPACE) @@ -233,7 +234,8 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase .replace("{{codicefiscale}}", soggetto.getCodiceFiscale()) .replace("{{cognome}}", soggetto.getCognome()) .replace("{{complesse}}", complesse ? CHECKED : StringPool.SPACE) - .replace("{{nome}}", soggetto.getNome()).replace("{{nuove}}", nuove ? CHECKED : StringPool.SPACE) + .replace("{{nome}}", !soggetto.getNome().isEmpty() ? soggetto.getNome() : soggetto.getDenominazione()) + .replace("{{nuove}}", nuove ? CHECKED : StringPool.SPACE) .replace("{{rilevanti}}", rilevanti ? CHECKED : StringPool.SPACE) .replace("{{nonrilevanti}}", nonRilevanti ? CHECKED : StringPool.SPACE) .replace("{{riparazioni}}", riparazioni ? CHECKED : StringPool.SPACE) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java index af0b51c0..74d831b7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java @@ -115,6 +115,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { if (Validator.isNull(tipoProcedura) || tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_A) || Validator.isNull(sorteggio)) { propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); + } else if (intPratica.isPraticaOspedaliera()){ + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO); } else { propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DPPS"); } @@ -122,13 +124,23 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { case StatoPraticaConstants.VIDIMATA: if (null == tipoProcedura) tipoProcedura = Constants.PROCEDURA_A; - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura); + if(intPratica.isPraticaOspedaliera()){ + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO); + } else { + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura); + } break; default: - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); +// if(StatoPraticaConstants.AUTORIZZATA.equals(statoPratica) && intPratica.isPraticaOspedaliera()){ +// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA); +// } else { + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); +// } } long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate + +" | statoPratica -> "+statoPratica+" | className -> "+className); return addAvviso(intPratica.getIntPraticaId(), StringPool.BLANK, new Date(), tipoAvviso, statoPratica, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext); @@ -152,6 +164,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode); long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate + +" | statoPraticaCode -> "+statoPraticaCode+" | className -> "+className); return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext); } @@ -1285,6 +1299,21 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { List ritorno = dynamicQuery(dynamicQuery, 0, 1); return ritorno.isEmpty() ? null : ritorno.get(0); } + + @Override + public Avviso getAvvisoPraticaOspedaliera(long intPraticaId) throws SystemException { + + DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( + new String[] { AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA, AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO })); + dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L)); + dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); + dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + @SuppressWarnings("unchecked") + List ritorno = dynamicQuery(dynamicQuery, 0, 1); + return ritorno.isEmpty() ? null : ritorno.get(0); + } @Override public Avviso getLastAvvisoIntegrazione(long intPraticaId) throws SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java index aac02cc8..9ef23424 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java @@ -58,7 +58,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { @Override public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat, String codiceBelfiore, String denominazione, boolean provincia, boolean stato, String mailSuap, - String mailSue, ServiceContext serviceContext) throws PortalException, SystemException { + String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); @@ -79,6 +79,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setProvincia(provincia); comune.setMailSuap(mailSuap); comune.setMailSue(mailSue); + comune.setPraticaOspedali(praticaOspedaliera); comune = comunePersistence.update(comune); return comune; } @@ -86,7 +87,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { @Override public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat, String codiceBelfiore, String denominazione, boolean provincia, String mailSuap, String mailSue, - ServiceContext serviceContext) throws PortalException, SystemException { + boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); @@ -106,6 +107,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setProvincia(provincia); comune.setMailSuap(mailSuap); comune.setMailSue(mailSue); + comune.setPraticaOspedali(praticaOspedaliera); comune = comunePersistence.update(comune); return comune; } @@ -216,11 +218,19 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { return comunePersistence.findByC_Stato(companyId, true); } + + public Comune setPraticaOspedaliera(long comuneId, boolean isPraticaOspedaliera, ServiceContext serviceContext) throws SystemException{ + Comune comune = comunePersistence.fetchByPrimaryKey(comuneId); + comune.setPraticaOspedali(isPraticaOspedaliera); + comune.setModifiedDate(serviceContext.getModifiedDate(new Date())); + comune = comunePersistence.update(comune); + return comune; + } @Override public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune, String codiceIstat, String denominazione, boolean provincia, boolean stato, String mailSuap, - String mailSue, ServiceContext serviceContext) throws PortalException, SystemException { + String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); @@ -240,6 +250,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSue(mailSue); comune.setDenominazione(denominazione); comune.setProvincia(provincia); + comune.setPraticaOspedali(praticaOspedaliera); comune = comunePersistence.update(comune); return comune; } @@ -247,7 +258,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { @Override public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune, String codiceIstat, String denominazione, boolean provincia, String mailSuap, String mailSue, - ServiceContext serviceContext) throws PortalException, SystemException { + boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); @@ -266,6 +277,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSue(mailSue); comune.setDenominazione(denominazione); comune.setProvincia(provincia); + comune.setPraticaOspedali(praticaOspedaliera); comune = comunePersistence.update(comune); return comune; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java index ca4068ca..ad1ee651 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java @@ -13,6 +13,7 @@ import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.ControlloPraticaLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; @@ -27,6 +28,7 @@ import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; import java.io.Serializable; +import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; @@ -438,7 +440,26 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); jsonObject.put(WorkflowConstants.WORKFLOW_TASKNAME_ESITO, jsonArray); - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); + if(intPratica.isPraticaOspedaliera()){ + JSONObject etichette = JSONFactoryUtil.createJSONObject(); + etichette.put("label", "CONFORME"); + etichette.put("value", StatoPraticaConstants.CONFORME); + etichette.put("default", false); + jsonArray.put(etichette); + etichette = JSONFactoryUtil.createJSONObject(); + etichette.put("label", "RICHIESTA INTEGRAZIONE"); + etichette.put("value", StatoPraticaConstants.INTEGRAZIONE); + etichette.put("default", false); + jsonArray.put(etichette); + // Settato a "disabled" per poter gestire le limitazioni nel workflow + // nella jsp -render_form_task.jsp + etichette = JSONFactoryUtil.createJSONObject(); + etichette.put("label", "disabled"); + etichette.put("value", StatoPraticaConstants.NON_CONFORME); + etichette.put("default", false); + jsonArray.put(etichette); + } else if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { JSONObject etichette = JSONFactoryUtil.createJSONObject(); etichette.put("label", "CONFORME"); etichette.put("value", StatoPraticaConstants.CONFORME); @@ -601,6 +622,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi return controlloPraticaPersistence.findByIntPraticaId(intPraticaId); } + + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { + + return controlloPraticaPersistence.countByIntPraticaId(intPraticaId); + } @Override public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, PortalException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java index dca4d12e..f7791412 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java @@ -19,7 +19,9 @@ import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; +import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.DettPraticaLocalServiceBaseImpl; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; @@ -135,6 +137,19 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl throws SystemException, PortalException { DettPratica dettPratica = initDettPratica(serviceContext); + if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_C)) { + dettPratica.setNormEsenteBollo(true); + dettPratica.setNormEsenteSpese(true); + dettPratica.setCollaudoStatico(true); + dettPratica.setNormArt3com3(true); + dettPratica.setNormArt3com4(true); + dettPratica.setTcRiparazioneInterventoLocale(true); + } else if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_H)){ + dettPratica.setNormEsenteBollo(true); + dettPratica.setNormEsenteSpese(true); + dettPratica.setLavoriPubblici(true); + dettPratica.setDestinazione("A1A"); + } IntPratica intPratica = intPraticaLocalService.addIntPratica(territorioId, tipoProcedura, serviceContext); dettPratica.setGroupId(intPratica.getGroupId()); dettPratica.setIntPraticaId(intPratica.getIntPraticaId()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java index 7cd51383..e227d78b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java @@ -14,8 +14,11 @@ import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Pagamento; +import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; +import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.FineLavoriLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; +import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; @@ -97,6 +100,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { + if(Validator.isNotNull(getLastEditable(intPraticaId))){ + throw new PortalException("A Fine Lavori to be completed already exists"); + } + IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); FineLavori fineLavori = initFineLavori(serviceContext); fineLavori.setGroupId(intPratica.getGroupId()); @@ -104,7 +111,29 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { fineLavoriPersistence.update(fineLavori); return fineLavori; } - + + @Override + @Indexable(type = IndexableType.REINDEX) + public FineLavori addFineLavori(long intPraticaId, boolean richiestaAttestazione, boolean normEsenteCollaudo, + ServiceContext serviceContext) throws PortalException, SystemException { + + if(Validator.isNotNull(getLastEditable(intPraticaId))){ + throw new PortalException("A Fine Lavori to be completed already exists"); + } + + IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + FineLavori fineLavori = initFineLavori(serviceContext); + fineLavori.setGroupId(intPratica.getGroupId()); + fineLavori.setIntPraticaId(intPraticaId); + fineLavori.setNormEsenteCollaudo(normEsenteCollaudo); + fineLavori.setRichiestaAttestazione(richiestaAttestazione); + +// _creaAvviso(intPraticaId, fineLavori.getFineLavoriId(), FineLavori.class.getName(), +// AvvisoUtil.FINE_LAVORI_AVVISO_FINE_LAVORI, serviceContext); + + return fineLavoriPersistence.update(fineLavori); + } + @Override @Indexable(type = IndexableType.DELETE) public FineLavori deleteFineLavori(FineLavori fineLavori) throws SystemException, PortalException { @@ -149,7 +178,33 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { fineLavori = fineLavoriPersistence.update(fineLavori); return fineLavori; } - + + @Override + @Indexable(type = IndexableType.REINDEX) + public FineLavori updateFineLavori(FineLavori fineLavori, boolean parziale, ServiceContext serviceContext) + throws SystemException, PortalException{ + if(!parziale){ + _creaAvviso(fineLavori.getIntPraticaId(), fineLavori.getFineLavoriId(), FineLavori.class.getName(), + AvvisoUtil.FINE_LAVORI_AVVISO_FINE_LAVORI, serviceContext); + } + return updateFineLavori(fineLavori); + } + + private void _creaAvviso(long intPraticaId, long classPk, String className, + String tipoDocumento,ServiceContext serviceContext) throws SystemException, PortalException { + + String descLong = StringPool.BLANK; + Date dtAvviso = serviceContext.getModifiedDate(new Date()); + String tipoAvviso = AvvisoUtil.TIPO_AVVISO_DIRETTO; + String propertiesTemplateType = tipoDocumento; + String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); + long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(serviceContext.getCompanyId(), + propertiesTemplate); + long controlloPraticaId = 0L; + AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, + fileEntryIdTemplate, classPk, className, controlloPraticaId, serviceContext); + } + @Override public FineLavori getLastEditable(long intPraticaId) throws SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java index 41d81b0e..152fa130 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java @@ -16,6 +16,8 @@ import java.util.List; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.service.ServiceContext; @@ -51,6 +53,14 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl { return fineLavoriLocalService.addFineLavori(intPraticaId, serviceContext); } + + @Override + public FineLavori addFineLavori(long intPraticaId, boolean richiestaAttestazione, boolean normEsenteCollaudo, + ServiceContext serviceContext) throws PortalException, SystemException { + + return fineLavoriLocalService.addFineLavori(intPraticaId, richiestaAttestazione, normEsenteCollaudo, + serviceContext); + } @Override public FineLavori deleteFineLavori(FineLavori fineLavori) throws PortalException, SystemException { @@ -63,6 +73,12 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl { return fineLavoriLocalService.deleteFineLavori(fineLavoriId); } + + @Override + public FineLavori updateFineLavori(FineLavori fineLavori, boolean parziale, ServiceContext serviceContext) + throws SystemException, PortalException{ + return fineLavoriLocalService.updateFineLavori(fineLavori, parziale, serviceContext); + } @Override public FineLavori updateFineLavori(FineLavori fineLavori) throws SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index 8b1de8f7..7a8b1a82 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -124,6 +124,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { putTipoProcedura(Constants.PROCEDURA_A); putTipoProcedura(Constants.PROCEDURA_B); putTipoProcedura(Constants.PROCEDURA_C); + putTipoProcedura(Constants.PROCEDURA_H); } private static void putTipoProcedura(String tipo) { @@ -230,7 +231,19 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } return ret; } + + @Override + @Indexable(type = IndexableType.REINDEX) + public IntPratica addIntPratica(long territorioId, String tipoProcedura, boolean isOspedaliera, + ServiceContext serviceContext) throws SystemException, PortalException { + if(isOspedaliera){ + tipoProcedura = Constants.PROCEDURA_H; + } + + return addIntPratica(territorioId, tipoProcedura, serviceContext); + } + @Override @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) @@ -249,6 +262,10 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intPratica.setModifiedDate(serviceContext.getModifiedDate(now)); intPratica.setTipoPratica(Constants.PRATICA_ZONE.get(tipoProcedura)); intPratica.setTerritorioId(territorioId); + if(tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_H)){ + tipoProcedura = Constants.PROCEDURA_B; + intPratica.setPraticaOspedaliera(true); + } intPratica.setTipoProcedura(tipoProcedura); // in avvio in draft -> pratiche sempre controllate nella loro vita intPratica.setStatus(WorkflowConstants.STATUS_ANY); @@ -393,7 +410,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { IntPratica intPraticaToClone = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPraticaCloned = addIntPratica(intPraticaToClone.getTerritorioId(), - intPraticaToClone.getTipoProcedura(), serviceContext); + intPraticaToClone.getTipoProcedura(), intPraticaToClone.isPraticaOspedaliera(), serviceContext); intPraticaCloned = cloneData(intPraticaCloned, intPraticaToClone); DettPratica dettPraticaToClone = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPraticaCloned = dettPraticaLocalService.addDettPraticaClonedToIntPratica( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java index 28a9d20b..f3618922 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java @@ -440,7 +440,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { } @Override - public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, + public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { Pagamento pagamento = getPagamento(pagamentoId); @@ -471,6 +471,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); pagamento.setFileEntryId(fileEntryId); + pagamento.setNumeroBollettino(numeroBollettino); pagamento = updatePagamento(pagamento); if (DettPratica.class.getName().equals(pagamento.getClassName())) { dettPraticaLocalService.updateEsitoPagamento(pagamentoId, pagamento.getClassPk(), fileEntryId, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java index b56a1446..348c1284 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java @@ -42,14 +42,14 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { */ @Override - public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, + public void updatePagamentoManuale(long pagamentoId, byte[] content, String numeroBollettino, String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); long userId = findTitolare(pagamentoId); - if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { - pagamentoLocalService.updatePagamentoManuale(pagamentoId, content, sourceFileName, serviceContext); + if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(getUser(), getUserId(), pagamento.getClassPk())) { + pagamentoLocalService.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, serviceContext); } else { throw new SystemException("pagamento manuale aggiornabile solo da titolare digitale del " + pagamento.getClassName()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataLocalServiceImpl.java new file mode 100644 index 00000000..46cc0df4 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataLocalServiceImpl.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.search.Indexer; +import com.liferay.portal.kernel.search.IndexerRegistryUtil; +import com.liferay.portal.kernel.util.DateUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; + +import java.util.Date; +import java.util.List; + +import it.tref.liferay.portos.bo.model.DettPratica; +import it.tref.liferay.portos.bo.model.FineLavori; +import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.model.Territorio; +import it.tref.liferay.portos.bo.service.base.PraticaAttenzionataLocalServiceBaseImpl; +import it.tref.liferay.portos.bo.util.Constants; +import it.tref.liferay.portos.bo.util.PraticaAttenzionataUtil; +import it.tref.liferay.portos.bo.util.WorkflowConstants; + +/** + * The implementation of the pratica attenzionata local service. + * + *

+ * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalService} interface. + * + *

+ * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataLocalServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil + */ +public class PraticaAttenzionataLocalServiceImpl + extends PraticaAttenzionataLocalServiceBaseImpl { + /* + * NOTE FOR DEVELOPERS: + * + * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataLocalServiceUtil} to access the pratica attenzionata local service. + */ + @Override + public PraticaAttenzionata evalAndEventuallyAddPraticaAttenzionata(long intPraticaId, long fineLavoriId, + String numeroProgetto, Date dataFineLavoriTotale, Date dataRelazioneFineLavoriTotale, + ServiceContext serviceContext) throws SystemException, PortalException { + + if(PraticaAttenzionataUtil.MAX_DAYS_BETWEEN < DateUtil.getDaysBetween(dataFineLavoriTotale, dataRelazioneFineLavoriTotale)){ + PraticaAttenzionata praticaAttenzionata = praticaAttenzionataPersistence + .create(counterLocalService.increment(PraticaAttenzionata.class.getName())); + + User user = userLocalService.getUser(serviceContext.getUserId()); + Date now = serviceContext.getModifiedDate(new Date()); + + praticaAttenzionata.setCompanyId(serviceContext.getCompanyId()); + praticaAttenzionata.setGroupId(serviceContext.getScopeGroupId()); + praticaAttenzionata.setUserId(serviceContext.getUserId()); + praticaAttenzionata.setUserName(user.getScreenName()); + praticaAttenzionata.setCreateDate(serviceContext.getCreateDate(now)); + praticaAttenzionata.setModifiedDate(serviceContext.getModifiedDate(now)); + + praticaAttenzionata.setDataFineLavoriTotale(dataFineLavoriTotale); + praticaAttenzionata.setDataRelazioneFineLavoriTotale(dataRelazioneFineLavoriTotale); + + praticaAttenzionata = praticaAttenzionataPersistence.update(praticaAttenzionata); + + return praticaAttenzionata; + } + return null; + } + + @Override + public List getPraticheDaVerificare() throws SystemException{ + return praticaAttenzionataPersistence.findByVerificata(false); + } + + public int countPraticheDaVerificare() throws SystemException{ + return praticaAttenzionataPersistence.countByVerificata(false); + } + + @Override + public List getPraticheVerificate() throws SystemException{ + return praticaAttenzionataPersistence.findByVerificata(true); + } + + public PraticaAttenzionata verificaPraticaAttenzionata(long praticaAttenzionataId, ServiceContext serviceContext) throws SystemException{ + PraticaAttenzionata praticaAttenzionata = fetchPraticaAttenzionata(praticaAttenzionataId); + return verificaPraticaAttenzionata(praticaAttenzionata, serviceContext); + } + + public PraticaAttenzionata verificaPraticaAttenzionata(PraticaAttenzionata praticaAttenzionata, ServiceContext serviceContext) throws SystemException{ + if(Validator.isNotNull(praticaAttenzionata)){ + Date now = serviceContext.getModifiedDate(new Date()); + praticaAttenzionata.setVerificata(true); + praticaAttenzionata.setDataVerifica(now); + praticaAttenzionata.setModifiedDate(now); + } + return praticaAttenzionataPersistence.update(praticaAttenzionata); + } + + private static Log _log = LogFactoryUtil.getLog(PraticaAttenzionataLocalServiceImpl.class); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataServiceImpl.java new file mode 100644 index 00000000..e9c38cd1 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataServiceImpl.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.impl; + +import it.tref.liferay.portos.bo.service.base.PraticaAttenzionataServiceBaseImpl; + +/** + * The implementation of the pratica attenzionata remote service. + * + *

+ * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataService} interface. + * + *

+ * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see it.tref.liferay.portos.bo.service.base.PraticaAttenzionataServiceBaseImpl + * @see it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil + */ +public class PraticaAttenzionataServiceImpl + extends PraticaAttenzionataServiceBaseImpl { + /* + * NOTE FOR DEVELOPERS: + * + * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.PraticaAttenzionataServiceUtil} to access the pratica attenzionata remote service. + */ +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java index 95aa7dc8..f680d401 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java @@ -12,8 +12,10 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException; import it.tref.liferay.portos.bo.model.Comune; 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.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; @@ -1307,7 +1309,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } @Override - public byte[] getPdfDelega(PortletRequest request) throws DocumentException, IOException, SystemException { + public byte[] getPdfDelega(PortletRequest request) throws DocumentException, IOException, SystemException, PortalException { InputStream is = getClass().getClassLoader().getResourceAsStream("/resource/asseverazioni/delegawrapper.html"); Scanner scanner = new Scanner(is); @@ -1337,15 +1339,21 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } @Override - public String getAnteprimaDelega(PortletRequest request) throws IOException, SystemException { + public String getAnteprimaDelega(PortletRequest request) throws IOException, SystemException, PortalException { long committenteId = ParamUtil.getLong(request, "committenteId"); Soggetto committente = fetchSoggetto(committenteId); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); DettPratica dettPratica = dettPraticaLocalService.fetchDettPratica(dettPraticaId); - Soggetto titolare = getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(), + long intPraticaId = dettPratica.getIntPraticaId(); + Soggetto titolare = getValidByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCommittente()).get(0); - InputStream input = getClass().getClassLoader().getResourceAsStream("/resource/asseverazioni/delega.html"); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + String delegaModelLocation = "/resource/asseverazioni/delega.html"; + if(intPratica.isPraticaOspedaliera() || dettPratica.isLavoriPubblici()){ + delegaModelLocation = "/resource/asseverazioni/delega_pubb.html"; + } + InputStream input = getClass().getClassLoader().getResourceAsStream(delegaModelLocation); if (Validator.isNull(input)) { return null; } @@ -1472,13 +1480,20 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { if ("ee".equalsIgnoreCase(codiceProvincia)) { return comuneEstero; } else { - Comune comune = comuneLocalService.fetchComune(Long.parseLong(comuneId)); - try { - Provincia provincia = provinciaLocalService.findByC_C(comune.getCompanyId(), codiceProvincia); - return comune.getDenominazione() + " (" + provincia.getSigla() + ')'; - } catch (NoSuchProvinciaException e) { - return comune.getDenominazione(); + long idComune = 0L; + if(Validator.isNotNull(comuneId)){ + idComune = Long.parseLong(comuneId); + } + Comune comune = comuneLocalService.fetchComune(idComune); + if(Validator.isNotNull(comune)){ + try { + Provincia provincia = provinciaLocalService.findByC_C(comune.getCompanyId(), codiceProvincia); + return comune.getDenominazione() + " (" + provincia.getSigla() + ')'; + } catch (NoSuchProvinciaException e) { + return comune.getDenominazione(); + } } + return StringPool.BLANK; } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java index be9275eb..b6e1b3ae 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java @@ -149,9 +149,16 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { @Override public List getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException { + return _getActiveComuniByCodiceProvincia(codiceProvincia, false); + } + + private List _getActiveComuniByCodiceProvincia(String codiceProvincia, boolean isPraticaOspedaliera) throws SystemException { DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("comuneId"))); dynamicQuery.add(RestrictionsFactoryUtil.eq("codiceProvincia", codiceProvincia)); + if(isPraticaOspedaliera){ + dynamicQuery.add(RestrictionsFactoryUtil.eq("praticaOspedaliera", true)); + } Junction and = RestrictionsFactoryUtil.conjunction(); Date date = new Date(); and.add(PropertyFactoryUtil.forName("groupId").ne(0l)); @@ -163,6 +170,13 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { dynamicQuery.add(and); return territorioLocalService.dynamicQuery(dynamicQuery); } + + @SuppressWarnings("unchecked") + @Override + public List getActiveComuniByCodiceProvincia_Ospedaliera(String codiceProvincia) throws SystemException { + + return _getActiveComuniByCodiceProvincia(codiceProvincia, true); + } @SuppressWarnings("unchecked") @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java index 68b9d749..fe5ffd69 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java index f9489e0d..d0f1112c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java index a8a28936..e35a9522 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.impl.AvvisoImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java index 1c9ee855..a676849e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.impl.CollaudoImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java index b5054e85..260ad496 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchComuneException; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.impl.ComuneImpl; import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; import java.io.Serializable; @@ -4603,6 +4602,7 @@ public class ComunePersistenceImpl extends BasePersistenceImpl comuneImpl.setDisabilitato(comune.isDisabilitato()); comuneImpl.setMailSuap(comune.getMailSuap()); comuneImpl.setMailSue(comune.getMailSue()); + comuneImpl.setPraticaOspedali(comune.isPraticaOspedali()); return comuneImpl; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java index b8d76564..b88225f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException; import it.tref.liferay.portos.bo.model.Comunicazione; import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java index 4a0e9a11..66d67c23 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException; import it.tref.liferay.portos.bo.model.Configurazione; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java index 7c1fa3f1..0cc84b84 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java index a2090464..bbf7e7de 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException; import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.impl.DelegaImpl; import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java index 284ef73a..9e01fd98 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; import java.io.Serializable; @@ -4302,6 +4301,7 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setDataFineEsecuzioneOpera(dettPratica.getDataFineEsecuzioneOpera()); dettPraticaImpl.setMetratura(dettPratica.getMetratura()); dettPraticaImpl.setLavoriPubblici(dettPratica.isLavoriPubblici()); + dettPraticaImpl.setDataInserimentoInizioLavoriOpera(dettPratica.getDataInserimentoInizioLavoriOpera()); dettPraticaImpl.setPagamentoIdOneri(dettPratica.getPagamentoIdOneri()); dettPraticaImpl.setPagamentoIdBolli(dettPratica.getPagamentoIdBolli()); dettPraticaImpl.setLavoriPubbliciPercentuale(dettPratica.getLavoriPubbliciPercentuale()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java index cbb97b8f..851c2c34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java index 1a35a013..4632fb51 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java index 338d3b51..a459ca97 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java index 7b45230e..b1f93960 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java @@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException; import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java index 605304c7..fd8c8e9d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java @@ -48,7 +48,6 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import java.io.Serializable; @@ -4418,6 +4417,7 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl intPraticaImpl.setCollaudoParziale(intPratica.isCollaudoParziale()); intPraticaImpl.setCollaudoTotale(intPratica.isCollaudoTotale()); intPraticaImpl.setControlloObbligatorio(intPratica.isControlloObbligatorio()); + intPraticaImpl.setPraticaOspedaliera(intPratica.isPraticaOspedaliera()); intPraticaImpl.setInLavorazioneSue(intPratica.isInLavorazioneSue()); return intPraticaImpl; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java index a21d5628..57f9fe5a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java @@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.impl.PagamentoImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import java.io.Serializable; @@ -5770,6 +5769,7 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl pagamentoImpl.setOtf(pagamento.isOtf()); pagamentoImpl.setOtfCreateDate(pagamento.getOtfCreateDate()); pagamentoImpl.setEmailPending(pagamento.isEmailPending()); + pagamentoImpl.setNumeroBollettino(pagamento.getNumeroBollettino()); pagamentoImpl.setOldPagamentoId(pagamento.getOldPagamentoId()); return pagamentoImpl; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java index d4e4eb82..22211d67 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java new file mode 100644 index 00000000..33eb32c2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java @@ -0,0 +1,2707 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.kernel.cache.CacheRegistryUtil; +import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; +import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; +import com.liferay.portal.kernel.dao.orm.FinderPath; +import com.liferay.portal.kernel.dao.orm.Query; +import com.liferay.portal.kernel.dao.orm.QueryPos; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.Session; +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.GetterUtil; +import com.liferay.portal.kernel.util.InstanceFactory; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.PropsKeys; +import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.SetUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.UnmodifiableList; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.uuid.PortalUUIDUtil; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.ModelListener; +import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; + +import it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; +import it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl; +import it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Set; + +/** + * The persistence implementation for the pratica attenzionata service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @see PraticaAttenzionataPersistence + * @see PraticaAttenzionataUtil + * @generated + */ +public class PraticaAttenzionataPersistenceImpl extends BasePersistenceImpl + implements PraticaAttenzionataPersistence { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use {@link PraticaAttenzionataUtil} to access the pratica attenzionata persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + public static final String FINDER_CLASS_NAME_ENTITY = PraticaAttenzionataImpl.class.getName(); + public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = FINDER_CLASS_NAME_ENTITY + + ".List1"; + public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = FINDER_CLASS_NAME_ENTITY + + ".List2"; + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0]); + public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid", + new String[] { + String.class.getName(), + + Integer.class.getName(), Integer.class.getName(), + OrderByComparator.class.getName() + }); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid", + new String[] { String.class.getName() }, + PraticaAttenzionataModelImpl.UUID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_UUID = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid", + new String[] { String.class.getName() }); + + /** + * Returns all the pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid(String uuid) + throws SystemException { + return findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid(String uuid, int start, int end) + throws SystemException { + return findByUuid(uuid, start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid(String uuid, int start, + int end, OrderByComparator orderByComparator) throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID; + finderArgs = new Object[] { uuid }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID; + finderArgs = new Object[] { uuid, start, end, orderByComparator }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (PraticaAttenzionata praticaAttenzionata : list) { + if (!Validator.equals(uuid, praticaAttenzionata.getUuid())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(3 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_2); + } + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_First(String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_First(uuid, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_First(String uuid, + OrderByComparator orderByComparator) throws SystemException { + List list = findByUuid(uuid, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_Last(String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_Last(uuid, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_Last(String uuid, + OrderByComparator orderByComparator) throws SystemException { + int count = countByUuid(uuid); + + if (count == 0) { + return null; + } + + List list = findByUuid(uuid, count - 1, count, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByPrimaryKey(praticaAttenzionataId); + + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata[] array = new PraticaAttenzionataImpl[3]; + + array[0] = getByUuid_PrevAndNext(session, praticaAttenzionata, + uuid, orderByComparator, true); + + array[1] = praticaAttenzionata; + + array[2] = getByUuid_PrevAndNext(session, praticaAttenzionata, + uuid, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected PraticaAttenzionata getByUuid_PrevAndNext(Session session, + PraticaAttenzionata praticaAttenzionata, String uuid, + OrderByComparator orderByComparator, boolean previous) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(6 + + (orderByComparator.getOrderByFields().length * 6)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_2); + } + + if (orderByComparator != null) { + String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); + + if (orderByConditionFields.length > 0) { + query.append(WHERE_AND); + } + + for (int i = 0; i < orderByConditionFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByConditionFields[i]); + + if ((i + 1) < orderByConditionFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN_HAS_NEXT); + } + else { + query.append(WHERE_LESSER_THAN_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN); + } + else { + query.append(WHERE_LESSER_THAN); + } + } + } + + query.append(ORDER_BY_CLAUSE); + + String[] orderByFields = orderByComparator.getOrderByFields(); + + for (int i = 0; i < orderByFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByFields[i]); + + if ((i + 1) < orderByFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC_HAS_NEXT); + } + else { + query.append(ORDER_BY_DESC_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC); + } + else { + query.append(ORDER_BY_DESC); + } + } + } + } + else { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(praticaAttenzionata); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByUuid(String uuid) throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findByUuid(uuid, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUuid(String uuid) throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID; + + Object[] finderArgs = new Object[] { uuid }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_2); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_UUID_UUID_1 = "praticaAttenzionata.uuid IS NULL"; + private static final String _FINDER_COLUMN_UUID_UUID_2 = "praticaAttenzionata.uuid = ?"; + private static final String _FINDER_COLUMN_UUID_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '')"; + public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, FINDER_CLASS_NAME_ENTITY, + "fetchByUUID_G", + new String[] { String.class.getName(), Long.class.getName() }, + PraticaAttenzionataModelImpl.UUID_COLUMN_BITMASK | + PraticaAttenzionataModelImpl.GROUPID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUUID_G", + new String[] { String.class.getName(), Long.class.getName() }); + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUUID_G(String uuid, long groupId) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUUID_G(uuid, groupId); + + if (praticaAttenzionata == null) { + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", groupId="); + msg.append(groupId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + if (_log.isWarnEnabled()) { + _log.warn(msg.toString()); + } + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + return praticaAttenzionata; + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUUID_G(String uuid, long groupId) + throws SystemException { + return fetchByUUID_G(uuid, groupId, true); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUUID_G(String uuid, long groupId, + boolean retrieveFromCache) throws SystemException { + Object[] finderArgs = new Object[] { uuid, groupId }; + + Object result = null; + + if (retrieveFromCache) { + result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, this); + } + + if (result instanceof PraticaAttenzionata) { + PraticaAttenzionata praticaAttenzionata = (PraticaAttenzionata)result; + + if (!Validator.equals(uuid, praticaAttenzionata.getUuid()) || + (groupId != praticaAttenzionata.getGroupId())) { + result = null; + } + } + + if (result == null) { + StringBundler query = new StringBundler(4); + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_G_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_G_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_G_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(groupId); + + List list = q.list(); + + if (list.isEmpty()) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, list); + } + else { + PraticaAttenzionata praticaAttenzionata = list.get(0); + + result = praticaAttenzionata; + + cacheResult(praticaAttenzionata); + + if ((praticaAttenzionata.getUuid() == null) || + !praticaAttenzionata.getUuid().equals(uuid) || + (praticaAttenzionata.getGroupId() != groupId)) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, praticaAttenzionata); + } + } + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + if (result instanceof List) { + return null; + } + else { + return (PraticaAttenzionata)result; + } + } + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata removeByUUID_G(String uuid, long groupId) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByUUID_G(uuid, groupId); + + return remove(praticaAttenzionata); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUUID_G(String uuid, long groupId) + throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G; + + Object[] finderArgs = new Object[] { uuid, groupId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(3); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_G_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_G_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_G_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(groupId); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_UUID_G_UUID_1 = "praticaAttenzionata.uuid IS NULL AND "; + private static final String _FINDER_COLUMN_UUID_G_UUID_2 = "praticaAttenzionata.uuid = ? AND "; + private static final String _FINDER_COLUMN_UUID_G_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '') AND "; + private static final String _FINDER_COLUMN_UUID_G_GROUPID_2 = "praticaAttenzionata.groupId = ?"; + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid_C", + new String[] { + String.class.getName(), Long.class.getName(), + + Integer.class.getName(), Integer.class.getName(), + OrderByComparator.class.getName() + }); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C = + new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid_C", + new String[] { String.class.getName(), Long.class.getName() }, + PraticaAttenzionataModelImpl.UUID_COLUMN_BITMASK | + PraticaAttenzionataModelImpl.COMPANYID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid_C", + new String[] { String.class.getName(), Long.class.getName() }); + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId) + throws SystemException { + return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId, + int start, int end) throws SystemException { + return findByUuid_C(uuid, companyId, start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId, + int start, int end, OrderByComparator orderByComparator) + throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C; + finderArgs = new Object[] { uuid, companyId }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C; + finderArgs = new Object[] { + uuid, companyId, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (PraticaAttenzionata praticaAttenzionata : list) { + if (!Validator.equals(uuid, praticaAttenzionata.getUuid()) || + (companyId != praticaAttenzionata.getCompanyId())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(4 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(4); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_C_First(String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_C_First(uuid, + companyId, orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", companyId="); + msg.append(companyId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_C_First(String uuid, long companyId, + OrderByComparator orderByComparator) throws SystemException { + List list = findByUuid_C(uuid, companyId, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_C_Last(String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_C_Last(uuid, + companyId, orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", companyId="); + msg.append(companyId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_C_Last(String uuid, long companyId, + OrderByComparator orderByComparator) throws SystemException { + int count = countByUuid_C(uuid, companyId); + + if (count == 0) { + return null; + } + + List list = findByUuid_C(uuid, companyId, + count - 1, count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByPrimaryKey(praticaAttenzionataId); + + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata[] array = new PraticaAttenzionataImpl[3]; + + array[0] = getByUuid_C_PrevAndNext(session, praticaAttenzionata, + uuid, companyId, orderByComparator, true); + + array[1] = praticaAttenzionata; + + array[2] = getByUuid_C_PrevAndNext(session, praticaAttenzionata, + uuid, companyId, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected PraticaAttenzionata getByUuid_C_PrevAndNext(Session session, + PraticaAttenzionata praticaAttenzionata, String uuid, long companyId, + OrderByComparator orderByComparator, boolean previous) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(6 + + (orderByComparator.getOrderByFields().length * 6)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); + + if (orderByComparator != null) { + String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); + + if (orderByConditionFields.length > 0) { + query.append(WHERE_AND); + } + + for (int i = 0; i < orderByConditionFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByConditionFields[i]); + + if ((i + 1) < orderByConditionFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN_HAS_NEXT); + } + else { + query.append(WHERE_LESSER_THAN_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN); + } + else { + query.append(WHERE_LESSER_THAN); + } + } + } + + query.append(ORDER_BY_CLAUSE); + + String[] orderByFields = orderByComparator.getOrderByFields(); + + for (int i = 0; i < orderByFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByFields[i]); + + if ((i + 1) < orderByFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC_HAS_NEXT); + } + else { + query.append(ORDER_BY_DESC_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC); + } + else { + query.append(ORDER_BY_DESC); + } + } + } + } + else { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(praticaAttenzionata); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByUuid_C(String uuid, long companyId) + throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findByUuid_C(uuid, + companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUuid_C(String uuid, long companyId) + throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C; + + Object[] finderArgs = new Object[] { uuid, companyId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(3); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_UUID_C_UUID_1 = "praticaAttenzionata.uuid IS NULL AND "; + private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "praticaAttenzionata.uuid = ? AND "; + private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '') AND "; + private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "praticaAttenzionata.companyId = ?"; + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VERIFICATA = + new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByVerificata", + new String[] { + Boolean.class.getName(), + + Integer.class.getName(), Integer.class.getName(), + OrderByComparator.class.getName() + }); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERIFICATA = + new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByVerificata", + new String[] { Boolean.class.getName() }, + PraticaAttenzionataModelImpl.VERIFICATA_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_VERIFICATA = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByVerificata", + new String[] { Boolean.class.getName() }); + + /** + * Returns all the pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByVerificata(boolean verificata) + throws SystemException { + return findByVerificata(verificata, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByVerificata(boolean verificata, + int start, int end) throws SystemException { + return findByVerificata(verificata, start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where verificata = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param verificata the verificata + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByVerificata(boolean verificata, + int start, int end, OrderByComparator orderByComparator) + throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERIFICATA; + finderArgs = new Object[] { verificata }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_VERIFICATA; + finderArgs = new Object[] { verificata, start, end, orderByComparator }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (PraticaAttenzionata praticaAttenzionata : list) { + if ((verificata != praticaAttenzionata.getVerificata())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(3 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + query.append(_FINDER_COLUMN_VERIFICATA_VERIFICATA_2); + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(verificata); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByVerificata_First(boolean verificata, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByVerificata_First(verificata, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("verificata="); + msg.append(verificata); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the first pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByVerificata_First(boolean verificata, + OrderByComparator orderByComparator) throws SystemException { + List list = findByVerificata(verificata, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByVerificata_Last(boolean verificata, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByVerificata_Last(verificata, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("verificata="); + msg.append(verificata); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the last pratica attenzionata in the ordered set where verificata = ?. + * + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByVerificata_Last(boolean verificata, + OrderByComparator orderByComparator) throws SystemException { + int count = countByVerificata(verificata); + + if (count == 0) { + return null; + } + + List list = findByVerificata(verificata, + count - 1, count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where verificata = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param verificata the verificata + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata[] findByVerificata_PrevAndNext( + long praticaAttenzionataId, boolean verificata, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByPrimaryKey(praticaAttenzionataId); + + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata[] array = new PraticaAttenzionataImpl[3]; + + array[0] = getByVerificata_PrevAndNext(session, + praticaAttenzionata, verificata, orderByComparator, true); + + array[1] = praticaAttenzionata; + + array[2] = getByVerificata_PrevAndNext(session, + praticaAttenzionata, verificata, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected PraticaAttenzionata getByVerificata_PrevAndNext(Session session, + PraticaAttenzionata praticaAttenzionata, boolean verificata, + OrderByComparator orderByComparator, boolean previous) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(6 + + (orderByComparator.getOrderByFields().length * 6)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + query.append(_FINDER_COLUMN_VERIFICATA_VERIFICATA_2); + + if (orderByComparator != null) { + String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); + + if (orderByConditionFields.length > 0) { + query.append(WHERE_AND); + } + + for (int i = 0; i < orderByConditionFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByConditionFields[i]); + + if ((i + 1) < orderByConditionFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN_HAS_NEXT); + } + else { + query.append(WHERE_LESSER_THAN_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN); + } + else { + query.append(WHERE_LESSER_THAN); + } + } + } + + query.append(ORDER_BY_CLAUSE); + + String[] orderByFields = orderByComparator.getOrderByFields(); + + for (int i = 0; i < orderByFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByFields[i]); + + if ((i + 1) < orderByFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC_HAS_NEXT); + } + else { + query.append(ORDER_BY_DESC_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC); + } + else { + query.append(ORDER_BY_DESC); + } + } + } + } + else { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(verificata); + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(praticaAttenzionata); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the pratica attenzionatas where verificata = ? from the database. + * + * @param verificata the verificata + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByVerificata(boolean verificata) + throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findByVerificata( + verificata, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas where verificata = ?. + * + * @param verificata the verificata + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByVerificata(boolean verificata) throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_VERIFICATA; + + Object[] finderArgs = new Object[] { verificata }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + query.append(_FINDER_COLUMN_VERIFICATA_VERIFICATA_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(verificata); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_VERIFICATA_VERIFICATA_2 = "praticaAttenzionata.verificata = ?"; + + public PraticaAttenzionataPersistenceImpl() { + setModelClass(PraticaAttenzionata.class); + } + + /** + * Caches the pratica attenzionata in the entity cache if it is enabled. + * + * @param praticaAttenzionata the pratica attenzionata + */ + @Override + public void cacheResult(PraticaAttenzionata praticaAttenzionata) { + EntityCacheUtil.putResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, praticaAttenzionata.getPrimaryKey(), + praticaAttenzionata); + + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, + new Object[] { + praticaAttenzionata.getUuid(), praticaAttenzionata.getGroupId() + }, praticaAttenzionata); + + praticaAttenzionata.resetOriginalValues(); + } + + /** + * Caches the pratica attenzionatas in the entity cache if it is enabled. + * + * @param praticaAttenzionatas the pratica attenzionatas + */ + @Override + public void cacheResult(List praticaAttenzionatas) { + for (PraticaAttenzionata praticaAttenzionata : praticaAttenzionatas) { + if (EntityCacheUtil.getResult( + PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + praticaAttenzionata.getPrimaryKey()) == null) { + cacheResult(praticaAttenzionata); + } + else { + praticaAttenzionata.resetOriginalValues(); + } + } + } + + /** + * Clears the cache for all pratica attenzionatas. + * + *

+ * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. + *

+ */ + @Override + public void clearCache() { + if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { + CacheRegistryUtil.clear(PraticaAttenzionataImpl.class.getName()); + } + + EntityCacheUtil.clearCache(PraticaAttenzionataImpl.class.getName()); + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + /** + * Clears the cache for the pratica attenzionata. + * + *

+ * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. + *

+ */ + @Override + public void clearCache(PraticaAttenzionata praticaAttenzionata) { + EntityCacheUtil.removeResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, praticaAttenzionata.getPrimaryKey()); + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + + clearUniqueFindersCache(praticaAttenzionata); + } + + @Override + public void clearCache(List praticaAttenzionatas) { + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + + for (PraticaAttenzionata praticaAttenzionata : praticaAttenzionatas) { + EntityCacheUtil.removeResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + praticaAttenzionata.getPrimaryKey()); + + clearUniqueFindersCache(praticaAttenzionata); + } + } + + protected void cacheUniqueFindersCache( + PraticaAttenzionata praticaAttenzionata) { + if (praticaAttenzionata.isNew()) { + Object[] args = new Object[] { + praticaAttenzionata.getUuid(), + praticaAttenzionata.getGroupId() + }; + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, + Long.valueOf(1)); + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, + praticaAttenzionata); + } + else { + PraticaAttenzionataModelImpl praticaAttenzionataModelImpl = (PraticaAttenzionataModelImpl)praticaAttenzionata; + + if ((praticaAttenzionataModelImpl.getColumnBitmask() & + FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + praticaAttenzionata.getUuid(), + praticaAttenzionata.getGroupId() + }; + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, + Long.valueOf(1)); + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, + praticaAttenzionata); + } + } + } + + protected void clearUniqueFindersCache( + PraticaAttenzionata praticaAttenzionata) { + PraticaAttenzionataModelImpl praticaAttenzionataModelImpl = (PraticaAttenzionataModelImpl)praticaAttenzionata; + + Object[] args = new Object[] { + praticaAttenzionata.getUuid(), praticaAttenzionata.getGroupId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); + + if ((praticaAttenzionataModelImpl.getColumnBitmask() & + FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { + args = new Object[] { + praticaAttenzionataModelImpl.getOriginalUuid(), + praticaAttenzionataModelImpl.getOriginalGroupId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); + } + } + + /** + * Creates a new pratica attenzionata with the primary key. Does not add the pratica attenzionata to the database. + * + * @param praticaAttenzionataId the primary key for the new pratica attenzionata + * @return the new pratica attenzionata + */ + @Override + public PraticaAttenzionata create(long praticaAttenzionataId) { + PraticaAttenzionata praticaAttenzionata = new PraticaAttenzionataImpl(); + + praticaAttenzionata.setNew(true); + praticaAttenzionata.setPrimaryKey(praticaAttenzionataId); + + String uuid = PortalUUIDUtil.generate(); + + praticaAttenzionata.setUuid(uuid); + + return praticaAttenzionata; + } + + /** + * Removes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata remove(long praticaAttenzionataId) + throws NoSuchPraticaAttenzionataException, SystemException { + return remove((Serializable)praticaAttenzionataId); + } + + /** + * Removes the pratica attenzionata with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param primaryKey the primary key of the pratica attenzionata + * @return the pratica attenzionata that was removed + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata remove(Serializable primaryKey) + throws NoSuchPraticaAttenzionataException, SystemException { + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata praticaAttenzionata = (PraticaAttenzionata)session.get(PraticaAttenzionataImpl.class, + primaryKey); + + if (praticaAttenzionata == null) { + if (_log.isWarnEnabled()) { + _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchPraticaAttenzionataException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + + primaryKey); + } + + return remove(praticaAttenzionata); + } + catch (NoSuchPraticaAttenzionataException nsee) { + throw nsee; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + @Override + protected PraticaAttenzionata removeImpl( + PraticaAttenzionata praticaAttenzionata) throws SystemException { + praticaAttenzionata = toUnwrappedModel(praticaAttenzionata); + + Session session = null; + + try { + session = openSession(); + + if (!session.contains(praticaAttenzionata)) { + praticaAttenzionata = (PraticaAttenzionata)session.get(PraticaAttenzionataImpl.class, + praticaAttenzionata.getPrimaryKeyObj()); + } + + if (praticaAttenzionata != null) { + session.delete(praticaAttenzionata); + } + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + + if (praticaAttenzionata != null) { + clearCache(praticaAttenzionata); + } + + return praticaAttenzionata; + } + + @Override + public PraticaAttenzionata updateImpl( + it.tref.liferay.portos.bo.model.PraticaAttenzionata praticaAttenzionata) + throws SystemException { + praticaAttenzionata = toUnwrappedModel(praticaAttenzionata); + + boolean isNew = praticaAttenzionata.isNew(); + + PraticaAttenzionataModelImpl praticaAttenzionataModelImpl = (PraticaAttenzionataModelImpl)praticaAttenzionata; + + if (Validator.isNull(praticaAttenzionata.getUuid())) { + String uuid = PortalUUIDUtil.generate(); + + praticaAttenzionata.setUuid(uuid); + } + + Session session = null; + + try { + session = openSession(); + + if (praticaAttenzionata.isNew()) { + session.save(praticaAttenzionata); + + praticaAttenzionata.setNew(false); + } + else { + session.merge(praticaAttenzionata); + } + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + + if (isNew || !PraticaAttenzionataModelImpl.COLUMN_BITMASK_ENABLED) { + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + else { + if ((praticaAttenzionataModelImpl.getColumnBitmask() & + FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + praticaAttenzionataModelImpl.getOriginalUuid() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, + args); + + args = new Object[] { praticaAttenzionataModelImpl.getUuid() }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, + args); + } + + if ((praticaAttenzionataModelImpl.getColumnBitmask() & + FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + praticaAttenzionataModelImpl.getOriginalUuid(), + praticaAttenzionataModelImpl.getOriginalCompanyId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, + args); + + args = new Object[] { + praticaAttenzionataModelImpl.getUuid(), + praticaAttenzionataModelImpl.getCompanyId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, + args); + } + + if ((praticaAttenzionataModelImpl.getColumnBitmask() & + FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERIFICATA.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + praticaAttenzionataModelImpl.getOriginalVerificata() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERIFICATA, + args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERIFICATA, + args); + + args = new Object[] { praticaAttenzionataModelImpl.getVerificata() }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERIFICATA, + args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERIFICATA, + args); + } + } + + EntityCacheUtil.putResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, praticaAttenzionata.getPrimaryKey(), + praticaAttenzionata); + + clearUniqueFindersCache(praticaAttenzionata); + cacheUniqueFindersCache(praticaAttenzionata); + + return praticaAttenzionata; + } + + protected PraticaAttenzionata toUnwrappedModel( + PraticaAttenzionata praticaAttenzionata) { + if (praticaAttenzionata instanceof PraticaAttenzionataImpl) { + return praticaAttenzionata; + } + + PraticaAttenzionataImpl praticaAttenzionataImpl = new PraticaAttenzionataImpl(); + + praticaAttenzionataImpl.setNew(praticaAttenzionata.isNew()); + praticaAttenzionataImpl.setPrimaryKey(praticaAttenzionata.getPrimaryKey()); + + praticaAttenzionataImpl.setUuid(praticaAttenzionata.getUuid()); + praticaAttenzionataImpl.setPraticaAttenzionataId(praticaAttenzionata.getPraticaAttenzionataId()); + praticaAttenzionataImpl.setCompanyId(praticaAttenzionata.getCompanyId()); + praticaAttenzionataImpl.setUserId(praticaAttenzionata.getUserId()); + praticaAttenzionataImpl.setUserName(praticaAttenzionata.getUserName()); + praticaAttenzionataImpl.setCreateDate(praticaAttenzionata.getCreateDate()); + praticaAttenzionataImpl.setModifiedDate(praticaAttenzionata.getModifiedDate()); + praticaAttenzionataImpl.setGroupId(praticaAttenzionata.getGroupId()); + praticaAttenzionataImpl.setIntPraticaId(praticaAttenzionata.getIntPraticaId()); + praticaAttenzionataImpl.setFineLavoriId(praticaAttenzionata.getFineLavoriId()); + praticaAttenzionataImpl.setNumeroProgetto(praticaAttenzionata.getNumeroProgetto()); + praticaAttenzionataImpl.setDataFineLavoriTotale(praticaAttenzionata.getDataFineLavoriTotale()); + praticaAttenzionataImpl.setDataRelazioneFineLavoriTotale(praticaAttenzionata.getDataRelazioneFineLavoriTotale()); + praticaAttenzionataImpl.setVerificata(praticaAttenzionata.isVerificata()); + praticaAttenzionataImpl.setDataVerifica(praticaAttenzionata.getDataVerifica()); + + return praticaAttenzionataImpl; + } + + /** + * Returns the pratica attenzionata with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found. + * + * @param primaryKey the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByPrimaryKey(Serializable primaryKey) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByPrimaryKey(primaryKey); + + if (praticaAttenzionata == null) { + if (_log.isWarnEnabled()) { + _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchPraticaAttenzionataException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + + primaryKey); + } + + return praticaAttenzionata; + } + + /** + * Returns the pratica attenzionata with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByPrimaryKey(long praticaAttenzionataId) + throws NoSuchPraticaAttenzionataException, SystemException { + return findByPrimaryKey((Serializable)praticaAttenzionataId); + } + + /** + * Returns the pratica attenzionata with the primary key or returns null if it could not be found. + * + * @param primaryKey the primary key of the pratica attenzionata + * @return the pratica attenzionata, or null if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByPrimaryKey(Serializable primaryKey) + throws SystemException { + PraticaAttenzionata praticaAttenzionata = (PraticaAttenzionata)EntityCacheUtil.getResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, primaryKey); + + if (praticaAttenzionata == _nullPraticaAttenzionata) { + return null; + } + + if (praticaAttenzionata == null) { + Session session = null; + + try { + session = openSession(); + + praticaAttenzionata = (PraticaAttenzionata)session.get(PraticaAttenzionataImpl.class, + primaryKey); + + if (praticaAttenzionata != null) { + cacheResult(praticaAttenzionata); + } + else { + EntityCacheUtil.putResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, primaryKey, + _nullPraticaAttenzionata); + } + } + catch (Exception e) { + EntityCacheUtil.removeResult(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataImpl.class, primaryKey); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return praticaAttenzionata; + } + + /** + * Returns the pratica attenzionata with the primary key or returns null if it could not be found. + * + * @param praticaAttenzionataId the primary key of the pratica attenzionata + * @return the pratica attenzionata, or null if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByPrimaryKey(long praticaAttenzionataId) + throws SystemException { + return fetchByPrimaryKey((Serializable)praticaAttenzionataId); + } + + /** + * Returns all the pratica attenzionatas. + * + * @return the pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll() throws SystemException { + return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll(int start, int end) + throws SystemException { + return findAll(start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll(int start, int end, + OrderByComparator orderByComparator) throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL; + finderArgs = FINDER_ARGS_EMPTY; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_ALL; + finderArgs = new Object[] { start, end, orderByComparator }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if (list == null) { + StringBundler query = null; + String sql = null; + + if (orderByComparator != null) { + query = new StringBundler(2 + + (orderByComparator.getOrderByFields().length * 3)); + + query.append(_SQL_SELECT_PRATICAATTENZIONATA); + + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + + sql = query.toString(); + } + else { + sql = _SQL_SELECT_PRATICAATTENZIONATA; + + if (pagination) { + sql = sql.concat(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + } + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Removes all the pratica attenzionatas from the database. + * + * @throws SystemException if a system exception occurred + */ + @Override + public void removeAll() throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findAll()) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas. + * + * @return the number of pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countAll() throws SystemException { + Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY, this); + + if (count == null) { + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(_SQL_COUNT_PRATICAATTENZIONATA); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + @Override + protected Set getBadColumnNames() { + return _badColumnNames; + } + + /** + * Initializes the pratica attenzionata persistence. + */ + public void afterPropertiesSet() { + String[] listenerClassNames = StringUtil.split(GetterUtil.getString( + com.liferay.util.service.ServiceProps.get( + "value.object.listener.it.tref.liferay.portos.bo.model.PraticaAttenzionata"))); + + if (listenerClassNames.length > 0) { + try { + List> listenersList = new ArrayList>(); + + for (String listenerClassName : listenerClassNames) { + listenersList.add((ModelListener)InstanceFactory.newInstance( + getClassLoader(), listenerClassName)); + } + + listeners = listenersList.toArray(new ModelListener[listenersList.size()]); + } + catch (Exception e) { + _log.error(e); + } + } + } + + public void destroy() { + EntityCacheUtil.removeCache(PraticaAttenzionataImpl.class.getName()); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + private static final String _SQL_SELECT_PRATICAATTENZIONATA = "SELECT praticaAttenzionata FROM PraticaAttenzionata praticaAttenzionata"; + private static final String _SQL_SELECT_PRATICAATTENZIONATA_WHERE = "SELECT praticaAttenzionata FROM PraticaAttenzionata praticaAttenzionata WHERE "; + private static final String _SQL_COUNT_PRATICAATTENZIONATA = "SELECT COUNT(praticaAttenzionata) FROM PraticaAttenzionata praticaAttenzionata"; + private static final String _SQL_COUNT_PRATICAATTENZIONATA_WHERE = "SELECT COUNT(praticaAttenzionata) FROM PraticaAttenzionata praticaAttenzionata WHERE "; + private static final String _ORDER_BY_ENTITY_ALIAS = "praticaAttenzionata."; + private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No PraticaAttenzionata exists with the primary key "; + private static final String _NO_SUCH_ENTITY_WITH_KEY = "No PraticaAttenzionata exists with the key {"; + private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( + PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); + private static Log _log = LogFactoryUtil.getLog(PraticaAttenzionataPersistenceImpl.class); + private static Set _badColumnNames = SetUtil.fromArray(new String[] { + "uuid" + }); + private static PraticaAttenzionata _nullPraticaAttenzionata = new PraticaAttenzionataImpl() { + @Override + public Object clone() { + return this; + } + + @Override + public CacheModel toCacheModel() { + return _nullPraticaAttenzionataCacheModel; + } + }; + + private static CacheModel _nullPraticaAttenzionataCacheModel = + new CacheModel() { + @Override + public PraticaAttenzionata toEntityModel() { + return _nullPraticaAttenzionata; + } + }; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java index 28c40f09..e20dcc6f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java @@ -43,7 +43,6 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl; import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java index 9472e823..488eee17 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.impl.SoggettoImpl; import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java index 5bcc9a03..47f64b59 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchSorteggioException; import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.impl.SorteggioImpl; import it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java index 0bff1915..04df6534 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java @@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException; import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java index 61d576eb..17b343d3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.impl.TempisticaImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java index c7f4d1dd..10006a9c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java @@ -44,7 +44,6 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.model.impl.TerritorioImpl; import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PraticaAttenzionataUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PraticaAttenzionataUtil.java new file mode 100644 index 00000000..2d8e3451 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PraticaAttenzionataUtil.java @@ -0,0 +1,17 @@ +package it.tref.liferay.portos.bo.util; + +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; + +import java.text.Format; +import java.util.Date; + +public class PraticaAttenzionataUtil { + + public static final int MAX_DAYS_BETWEEN = 60; + + public static String getDateValueString(Date date, Format dateFormat){ + return Validator.isNotNull(date) ? dateFormat.format(date) : StringPool.BLANK; + } + +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java index 0579821d..177ab908 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java @@ -80,8 +80,8 @@ public class ProtocollazioneUtil { allegato.setFileId("0"); allegato.setFileSha256(sha256); } - // utilizzato anche come discriminate tra la 1ª e la 2ª chiamata 1ª recupero numero protocollo -> 1 allegato - // finto 2ª aggiorno dati del documento prodotto -> 2 allegati, il 1º giusto e il 2º per recupero num + // utilizzato anche come discriminate tra la 1à e la 2à chiamata 1° recupero numero protocollo -> 1 allegato + // finto 2° aggiorno dati del documento prodotto -> 2 allegati, il 1° giusto e il 2° per recupero num // protocollo Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(avviso.getClassName(), avviso.getAvvisoId())); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties index 99a495a2..73303d59 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties @@ -42,7 +42,7 @@ geniocivile.iris.error.iuv.url = IUV service url not set geniocivile.iris.email.destinatario = support.iris@tasgroup.it geniocivile.iris.email.mittente = noreply-FE-PORTOS@regione.toscana.it geniocivile.iris.email.oggetto = Notifica pendenza in corso -geniocivile.iris.email.corpo = La pendenza [$CODICE_PENDENZA$] con causale [$DESCRIZIONE_CAUSALE$] creata in data [$DATA_CREAZIONE_PENDENZA$] e associata a [$CODICE_FISCALE_PAGAMENTO$] è in pending. +geniocivile.iris.email.corpo = La pendenza [$CODICE_PENDENZA$] con causale [$DESCRIZIONE_CAUSALE$] creata in data [$DATA_CREAZIONE_PENDENZA$] e associata a [$CODICE_FISCALE_PAGAMENTO$] è in pending. #protocollo.cvs.url=http://localhost:9090/portos-protocollazione-service/v1/api-rest/export-protocolli protocollo.cvs.url=http://localhost:9080/portos-protocollazione-service/v1/api-rest/export-protocolli @@ -54,4 +54,4 @@ portos.files.importer.callback.address=http://localhost:9080/portos-file-retriev #portos.default.company=20404 ## SOLO PER LOCALE ## -portos.default.company=20155 \ No newline at end of file +portos.default.company=20155 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html index 59f1c2d0..5e633f83 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html @@ -1,76 +1,76 @@ -

- DPR 380/2001, artt. 93 e 94-bis
- NTC D.M. 17.01.2018
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- Legge Regionale 1/2019, art. 36 comma 2
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL CALCOLISTA

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista in ambito {{ambito}}, - consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, - dichiara: -

-
    -
  • - che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme - tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con il - progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali - prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; -
  • -
  • - che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo - anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; -
  • -
  • - che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida - contenute nell’allegato “A†del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli:
    - [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
    -
    - [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località - sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground - acceleration-PGA compresi fra 0,20g e 0,25g);
    - [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro particolare - complessità strutturale richiedano più articolate calcolazioni e verifiche;
    - [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali la - cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione civile, - nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle - conseguenze di un loro eventuale collasso;
    -
    - [{{nonrilevanti}}] interventi di “minore rilevanza†nei riguardi della pubblica incolumità;
    -
    - [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località - sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra 0,15g e - 0,20g e zona 3);
    - [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
    - [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del comma 1 - dell'art. 94-bis del DPR 380/2001;
    - [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo occasionale di - persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei Trasporti del - 17 gennaio 2018; -
    -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, artt. 93 e 94-bis
+ NTC D.M. 17.01.2018
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ Legge Regionale 1/2019, art. 36 comma 2
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL CALCOLISTA

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista in ambito {{ambito}}, + consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, + dichiara: +

+
    +
  • + che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme + tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con il + progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali + prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; +
  • +
  • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo + anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; +
  • +
  • + che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida + contenute nell’allegato “A†del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli:
    + [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
    +
    + [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località + sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground + acceleration-PGA compresi fra 0,20g e 0,25g);
    + [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro particolare + complessità strutturale richiedano più articolate calcolazioni e verifiche;
    + [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali la + cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione civile, + nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle + conseguenze di un loro eventuale collasso;
    +
    + [{{nonrilevanti}}] interventi di “minore rilevanza†nei riguardi della pubblica incolumità;
    +
    + [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località + sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra 0,15g e + 0,20g e zona 3);
    + [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
    + [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del comma 1 + dell'art. 94-bis del DPR 380/2001;
    + [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo occasionale di + persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei Trasporti del + 17 gennaio 2018; +
    +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html index d746ace2..79e13880 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html @@ -1,57 +1,57 @@ -

- DPR 380/2001, art. 67
- D.M 17.01.2018 capitolo 9
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- D. Lgs 101/2018 -

-

ASSEVERAZIONE DEL COLLAUDATORE DELLE STRUTTURE

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto della nomina di collaudatore - delle strutture, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di - dichiarazioni mendaci, dichiara: -

-
    -
  • - ai sensi dell'art. 67 del D.P.R. 380/01: -
  • -
-
    -
  • - di accettare l'incarico; -
  • -
  • - di essere iscritto all'albo {{albo}} della provincia di {{albop}} al n° {{albon}} da più di dieci anni: -
  • -
  • - di non essere intervenuto in alcun modo nella progettazione impegnandosi a non partecipare alla direzione dei - lavori ed alla esecuzione dell'opera; -
  • -
  • - di impegnarsi ad effettuare il collaudo delle strutture entro 60 giorni dalla comunicazione del direttore dei - lavori sull'avvenuta ultimazione delle strutture; -
  • -
-
    -
  • - ai sensi del cap. 9.1 del D.M 17.01.2018, di aver esaminato il progetto dell'opera, l'impostazione generale, la - progettazione nei suoi aspetti strutturale e geotecnico, gli schemi di calcolo e le azioni considerate, le - indagini eseguite; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, art. 67
+ D.M 17.01.2018 capitolo 9
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ D. Lgs 101/2018 +

+

ASSEVERAZIONE DEL COLLAUDATORE DELLE STRUTTURE

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto della nomina di collaudatore + delle strutture, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di + dichiarazioni mendaci, dichiara: +

+
    +
  • + ai sensi dell'art. 67 del D.P.R. 380/01: +
  • +
+
    +
  • + di accettare l'incarico; +
  • +
  • + di essere iscritto all'albo {{albo}} della provincia di {{albop}} al n° {{albon}} da più di dieci anni: +
  • +
  • + di non essere intervenuto in alcun modo nella progettazione impegnandosi a non partecipare alla direzione dei + lavori ed alla esecuzione dell'opera; +
  • +
  • + di impegnarsi ad effettuare il collaudo delle strutture entro 60 giorni dalla comunicazione del direttore dei + lavori sull'avvenuta ultimazione delle strutture; +
  • +
+
    +
  • + ai sensi del cap. 9.1 del D.M 17.01.2018, di aver esaminato il progetto dell'opera, l'impostazione generale, la + progettazione nei suoi aspetti strutturale e geotecnico, gli schemi di calcolo e le azioni considerate, le + indagini eseguite; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html index 1991a9e2..3fbd8911 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html @@ -1,41 +1,41 @@ -

- DPR 380/2001, artt. 65 e 93
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL COSTRUTTORE

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto dell'incarico conferito per la - realizzazione delle strutture, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di - dichiarazioni mendaci, dichiara: -

-
    -
  • - di accettare l'incarico conferitogli; -
  • -
  • - di aver preso visione del progetto; -
  • -
  • - di impegnasi a realizzare l’opera così come è descritta nel progetto architettonico e strutturale, a rispettare le - indicazioni del direttore dei lavori, le prescrizioni inerenti alla qualità dei materiali impiegati e alla corretta - posa in opera degli elementi prefabbricati, nel caso di loro utilizzo; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, artt. 65 e 93
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL COSTRUTTORE

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto dell'incarico conferito per la + realizzazione delle strutture, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di + dichiarazioni mendaci, dichiara: +

+
    +
  • + di accettare l'incarico conferitogli; +
  • +
  • + di aver preso visione del progetto; +
  • +
  • + di impegnasi a realizzare l’opera così come è descritta nel progetto architettonico e strutturale, a rispettare le + indicazioni del direttore dei lavori, le prescrizioni inerenti alla qualità dei materiali impiegati e alla corretta + posa in opera degli elementi prefabbricati, nel caso di loro utilizzo; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html index 6f6c36b5..aa3936ef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html @@ -1,83 +1,83 @@ -

- DPR 380/2001, art. 93
- L.R. 1/2019, art. 36, c.1
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- - L.R. 23/2021, art. 31 comma 5
-
- D. Lgs. 101/2018 -

-

DELEGA E AFFIDAMENTO INCARICHI PROFESSIONALI

-

- Il sottoscritto {{nomecommittente}}, C.F. {{cfcommittente}}, nato a {{lncommittente}} il - {{dncommittente}} e residente in {{lrcommittente}} indirizzo {{ircommittente}} n° - {{nccommitttente}}, documento di identità {{dicommittente}} numero {{nicommittente}} rilasciato - da {{ricommittente}}, nella qualità di committente dei lavori, -

-

DELEGA

-

- l’intermediario {{nometitolare}} codice fiscale {{cftitolare}} nato a {{lntitolare}} il - {{dntitolare}} e residente in {{lrtitolare}} indirizzo {{irtitolare}} n° {{nctitolare}} - alla trasmissione della denuncia prevista dagli artt. 65 e 93 del DPR 380/2001 per i lavori di - {{descrizione}} attraverso la piattaforma informatica “SISMICA†della Regione Sicilia -

-

- Il sottoscritto contestualmente dichiara: -

-
    -
  • - ai sensi dell'art. 36, comma 1, della L.R. n° 1 del 22.01.2019, di avere affidato la progettazione e - l’esecuzione dei lavori ai seguenti professionisti:
    - {{professionisti}} -
  • -
  • - che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo - anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; -
  • -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - - [ ] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro - il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del - procedimento.
    - [ ] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile:
    - ________________________________________
    - ________________________________________ -
    - - - di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° - grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del - procedimento. - - - di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti - dell'Ufficio del Genio Civile: {{coniugio}}. - - -
  • - -
  • - trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del - D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, di essere debitore nei confronti dei - professionisti incaricati delle rispettive spettanze pattuite per contratto o per atto equipollente e di - assumersi l’impegno a corrispondere le spettanze dovute anche nel caso in cui la procedura si dovesse - interrompere per sua iniziativa, ai sensi e per gli effetti di cui al comma 5 dell’art. 31 della L.R. n. - 23/2021; -
  • -
    -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti - di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
-

- Si allega la fotocopia del documento d’identità sopra indicato.

-

-

- Data ________________________________________ -

+

+ DPR 380/2001, art. 93
+ L.R. 1/2019, art. 36, c.1
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ + L.R. 23/2021, art. 31 comma 5
+
+ D. Lgs. 101/2018 +

+

DELEGA E AFFIDAMENTO INCARICHI PROFESSIONALI

+

+ Il sottoscritto {{nomecommittente}}, C.F. {{cfcommittente}}, nato a {{lncommittente}} il + {{dncommittente}} e residente in {{lrcommittente}} indirizzo {{ircommittente}} n° + {{nccommitttente}}, documento di identità {{dicommittente}} numero {{nicommittente}} rilasciato + da {{ricommittente}}, nella qualità di committente dei lavori, +

+

DELEGA

+

+ l’intermediario {{nometitolare}} codice fiscale {{cftitolare}} nato a {{lntitolare}} il + {{dntitolare}} e residente in {{lrtitolare}} indirizzo {{irtitolare}} n° {{nctitolare}} + alla trasmissione della denuncia prevista dagli artt. 65 e 93 del DPR 380/2001 per i lavori di + {{descrizione}} attraverso la piattaforma informatica “SISMICA†della Regione Sicilia +

+

+ Il sottoscritto contestualmente dichiara: +

+
    +
  • + ai sensi dell'art. 36, comma 1, della L.R. n° 1 del 22.01.2019, di avere affidato la progettazione e + l’esecuzione dei lavori ai seguenti professionisti:
    + {{professionisti}} +
  • +
  • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo + anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; +
  • +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + + [ ] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro + il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del + procedimento.
    + [ ] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile:
    + ________________________________________
    + ________________________________________ +
    + + + di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° + grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del + procedimento. + + + di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti + dell'Ufficio del Genio Civile: {{coniugio}}. + + +
  • + +
  • + trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del + D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, di essere debitore nei confronti dei + professionisti incaricati delle rispettive spettanze pattuite per contratto o per atto equipollente e di + assumersi l’impegno a corrispondere le spettanze dovute anche nel caso in cui la procedura si dovesse + interrompere per sua iniziativa, ai sensi e per gli effetti di cui al comma 5 dell’art. 31 della L.R. n. + 23/2021; +
  • +
    +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti + di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
+

+ Si allega la fotocopia del documento d’identità sopra indicato.

+

+

+ Data ________________________________________ +

Firma del delegante

________________________________________
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega_pubb.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega_pubb.html new file mode 100644 index 00000000..e011e0b0 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega_pubb.html @@ -0,0 +1,85 @@ +

+ DPR 380/2001, art. 93
+ L.R. 1/2019, art. 36, c.1
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ + L.R. 23/2021, art. 31 comma 5
+
+ D. Lgs. 101/2018 +

+

DELEGA E AFFIDAMENTO INCARICHI PROFESSIONALI

+

+ Il sottoscritto {{nomecommittente}}, C.F. {{cfcommittente}}, nato a {{lncommittente}} il + {{dncommittente}} e residente in {{lrcommittente}} indirizzo {{ircommittente}} n° + {{nccommitttente}}, n.q. di R.U.P. del progetto in esame, giusta disposizione n. 17 del 14/03/2023 + dell'ex Soggetto Attuatore del Commissario Delegato ex Ordinanza n.25/202 per il potenziamento della rete ospedaliera + Sicilia - Struttura Tecnica di Supporto -, nella qualità di committente dei lavori, +

+

DELEGA

+

+ l’intermediario {{nometitolare}} codice fiscale {{cftitolare}} nato a {{lntitolare}} il + {{dntitolare}} e residente in {{lrtitolare}} indirizzo {{irtitolare}} n° {{nctitolare}} + alla trasmissione della denuncia prevista dagli artt. 65 e 93 del DPR 380/2001 per i lavori di + {{descrizione}} attraverso la piattaforma informatica “SISMICA†della Regione Sicilia +

+

+ Il sottoscritto contestualmente dichiara: +

+
    +
  • + ai sensi dell'art. 1, comma 1, della L.R. n° 16 del 10.08.2016 e s.m.i. con le modifiche di cui + all'art.2, comma 13, del D.L. 19/05/2020 n.34, che risulta affidata la progettazione e l'esecuzione dei lavori + ai seguenti professionisti:
    + {{professionisti}} +
  • +
  • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo + anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; +
  • +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + + [ ] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro + il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del + procedimento.
    + [ ] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile:
    + ________________________________________
    + ________________________________________ +
    + + + di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° + grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del + procedimento. + + + di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti + dell'Ufficio del Genio Civile: {{coniugio}}. + + +
  • + +
  • + trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del + D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, di essere debitore nei confronti dei + professionisti incaricati delle rispettive spettanze pattuite per contratto o per atto equipollente e di + assumersi l’impegno a corrispondere le spettanze dovute anche nel caso in cui la procedura si dovesse + interrompere per sua iniziativa, ai sensi e per gli effetti di cui al comma 5 dell’art. 31 della L.R. n. + 23/2021; +
  • +
    +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti + di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
+

+ Si allega la fotocopia del documento d’identità sopra indicato.

+

+

+ Data ________________________________________ +

+
Firma del delegante

________________________________________
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html index f7e12476..269edd22 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html @@ -1,29 +1,29 @@ - - - - - - {{html}} - - + + + + + + {{html}} + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/direttore_lavori.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/direttore_lavori.html index 7e0ab261..1ad728d0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/direttore_lavori.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/direttore_lavori.html @@ -1,32 +1,38 @@

D.P.R. n. 380/2001, art. 93
- Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
+ NTC D.M. 17.01.2018
+ Legge n. 190/2012, art. 1 comma 9 lettera "e"
D. Lgs. N. 101/2018

-

DICHIARAZIONE / ASSEVERAZIONE DEL DIRETTORE DEI LAVORI

+

ASSEVERAZIONE DEL DIRETTORE DEI LAVORI

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere la qualità di - persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, consapevole - che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di sanzioni - penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000, n.q. di Direttore dei Lavori Principale Architettonico - dichiara, sotto la propria responsabilità:

+

Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}} direttore dei lavori, consapevole delle sanzioni + civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara:

    -
  • di essere iscritto all'albo {{albo}} della provincia di {{albop}} al n° {{albon}}:
  • -
  • che il progetto è adeguato alle prescrizioni del Codice dei Beni Culturali e del Paesaggio (D.Lgs. n. 42/2004); +
  • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo anche + alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera;
  • -
  • di impegnarsi a realizzare l’opera così come autorizzata;
  • -
  • di prendere atto della nomina dell’eventuale collaudatore scelto dal committente;
  • -
-
    -##anteprima -
  • ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    +
  • + di impegnarsi a far realizzare l'opera così come è prevista nel progetto architettonico e strutturale, ad eseguire i + necessari controlli sistematici in corso d'opera atti a verificare le conformità delle caratteristiche dei materiali + messi adoperati rispetto a quelle stabilite nel progetto strutturale, ad impartire tutte le disposizioni necessarie + alla corretta esecuzione delle opere; +
  • +
  • + che qualora nel corso dei lavori si rendesse necessario procedere a varianti, queste sareanno poste in essere previa + presentazione della relativa denuncia e previa acquisizione del correlato titolo rilasciato dall'Ufficio del Genio Civile competente; +
  • +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del - procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}}
  • -## -
  • di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con il seguente + dipendente dell'Ufficio del Genio Civile: {{relazioni}} +
  • +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita.
  • + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
-


Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005

\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html index 603c1cd1..36150282 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html @@ -1,52 +1,52 @@ -

- DPR 380/2001, Capitolo 6
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- Legge Regionale 1/2019, art. 36 comma 2
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL GEOLOGO

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, tecnico incaricato per l’esecuzione delle indagini per la - caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e penali previste dalla - normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

-
    -
  • - che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei - lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i - requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; -
  • -
  • - che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di sedime - della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto - Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e - specificatamente:
    - [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – - R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
    - [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – R3 – - P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ NTC D.M. 17.01.2018, Capitolo 6
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ Legge Regionale 23/2021, art. 31 comma 2
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL GEOLOGO

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}} C.F. {{codicefiscale}} tecnico incaricato per l’esecuzione delle indagini per la + caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e penali previste dalla + normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

+
    +
  • + che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei + lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i + requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; +
  • +
  • + che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di sedime + della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto + Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e + specificatamente:
    + [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – + R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
    + [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – R3 – + P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. /2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html index fe3d5b12..3d9d6755 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html @@ -1,79 +1,79 @@ -

- DPR 380/2001, art. 93
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- Legge Regionale 1/2019, art. 36 comma 2
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL PROGETTISTA ARCHITETTONICO

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista architettonico, consapevole - delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

-
    -
  • - che il progetto architettonico allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme - tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; -
  • -
  • - che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su fabbricato - per il quale risulta accertata la regolarità amministrativa nei riguardi delle norme di cui ai Capi II e IV, Parte - II, del DPR 380/2001; -
  • -
  • - che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime della stessa ed in - particolare è stata progettata nel rispetto delle seguenti disposizioni di legge: -
  • -
-
    -
  • - art. 13 Legge 64/74 (compatibilità geomorfologia); -
  • -
  • - norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e - dei relativi aggiornamenti, nel quale insiste l’opera; -
  • -
  • - Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); -
  • -
  • - Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); -
  • -
  • - Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); -
  • -
  • - Norme inerenti la distanza dagli elettrodotti; -
  • -
  • - Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; -
  • -
-
    -
  • - che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 37, comma 1, della L.R. n. 20/2003, - art. 37 è congruo in relazione al tipo di intervento ed al volume dell'opera; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, art. 93
+ Legge 190/2012, art. 1, comma 9 lettera “eâ€
+ Legge Regionale 1/2019, art. 36 comma 2
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL PROGETTISTA ARCHITETTONICO

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista architettonico, consapevole + delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

+
    +
  • + che il progetto architettonico allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme + tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; +
  • +
  • + che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su fabbricato + per il quale risulta accertata la regolarità amministrativa nei riguardi delle norme di cui ai Capi II e IV, Parte + II, del DPR 380/2001; +
  • +
  • + che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime della stessa ed in + particolare è stata progettata nel rispetto delle seguenti disposizioni di legge: +
  • +
+
    +
  • + art. 13 Legge 64/74 (compatibilità geomorfologia); +
  • +
  • + norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e + dei relativi aggiornamenti, nel quale insiste l’opera; +
  • +
  • + Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); +
  • +
  • + Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); +
  • +
  • + Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); +
  • +
  • + Norme inerenti la distanza dagli elettrodotti; +
  • +
  • + Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; +
  • +
+
    +
  • + che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 37, comma 1, della L.R. n. 20/2003, + art. 37 è congruo in relazione al tipo di intervento ed al volume dell'opera; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html index b74cc036..ffe2fcf8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_c.html @@ -1,81 +1,81 @@ -

- DPR 380/2001, art. 94-bis, comma 1, lettera "c" -

-

ASSEVERAZIONE DEL PROGETTISTA

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}},
- progettista delle opere, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

-
    -
  • - che il progetto strutturale delle opere è stato redatto nel rispetto delle norme tecniche per le costruzioni; -
  • -
  • - che le opere previste, qualora trattasi di interventi su fabbricato esistente, - ricadono su fabbricato per il quale risulta accertata la regolarità - amministrativa nei riguardi delle norme di cui ai Capi II e IV, Parte II, del DPR 380/2001; -
  • -
  • - che le opere previste non sono in contrasto con i vincoli gravanti sull’area di - sedime della stessa ed in particolare è stata progettata nel rispetto delle - seguenti disposizioni di legge: -
  • -
-
    -
  • - art. 13 Legge 64/74 (compatibilità geomorfologia); -
  • -
  • - norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) - del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera; -
  • -
  • - Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); -
  • -
  • - Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); -
  • -
  • - Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); -
  • -
  • - Norme inerenti la distanza dagli elettrodotti; -
  • -
  • - Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; -
  • -
-
    -
  • - che l'intervento previsto nel progetto esecutivo strutturale si identifica, in - relazione alle linee guida contenute nell’allegato “A†del DDG 344/2020 - emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli interventi - «privi di rilevanza» nei riguardi della pubblica incolumità ai sensi dell’art. 94- - bis, comma 1, lettera C; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, - recepito con D.Lgs. 101/2018, circa le modalità di trattamento e l'utilizzo dei - dati personali raccolti e di acconsentire, ai sensi e per gli effetti di cui all’art. - 7 e ss. Del sopraccitato Regolamento, al trattamento, anche con strumenti - informatici, dei dati personali con le modalità e per le finalità connesse al - procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, art. 94-bis, comma 1, lettera "c" +

+

ASSEVERAZIONE DEL PROGETTISTA

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}},
+ progettista delle opere, consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

+
    +
  • + che il progetto strutturale delle opere è stato redatto nel rispetto delle norme tecniche per le costruzioni; +
  • +
  • + che le opere previste, qualora trattasi di interventi su fabbricato esistente, + ricadono su fabbricato per il quale risulta accertata la regolarità + amministrativa nei riguardi delle norme di cui ai Capi II e IV, Parte II, del DPR 380/2001; +
  • +
  • + che le opere previste non sono in contrasto con i vincoli gravanti sull’area di + sedime della stessa ed in particolare è stata progettata nel rispetto delle + seguenti disposizioni di legge: +
  • +
+
    +
  • + art. 13 Legge 64/74 (compatibilità geomorfologia); +
  • +
  • + norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) + del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera; +
  • +
  • + Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); +
  • +
  • + Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); +
  • +
  • + Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); +
  • +
  • + Norme inerenti la distanza dagli elettrodotti; +
  • +
  • + Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; +
  • +
+
    +
  • + che l'intervento previsto nel progetto esecutivo strutturale si identifica, in + relazione alle linee guida contenute nell’allegato “A†del DDG 344/2020 + emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli interventi + «privi di rilevanza» nei riguardi della pubblica incolumità ai sensi dell’art. 94- + bis, comma 1, lettera C; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, + recepito con D.Lgs. 101/2018, circa le modalità di trattamento e l'utilizzo dei + dati personali raccolti e di acconsentire, ai sensi e per gli effetti di cui all’art. + 7 e ss. Del sopraccitato Regolamento, al trattamento, anche con strumenti + informatici, dei dati personali con le modalità e per le finalità connesse al + procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_calcolista.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_calcolista.html index 1c2a1b80..4619e6eb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_calcolista.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_calcolista.html @@ -1,92 +1,92 @@ -

- DPR 380/2001, artt. 93 e 94-bis
- NTC D.M. 17.01.2018
- Legge 190/2012, art. 1, comma 9 lettera “eâ€
- Legge Regionale 23/2021, art. 31 comma 5
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL CALCOLISTA DELLE STRUTTURE

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, calcolista in ambito {{ambito}}, - consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, - dichiara: -

-
    -
  • - che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle - norme - tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con - il - progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali - prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; -
  • -
  • - che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo - anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; -
  • -
  • - che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida - contenute nell’allegato “A†del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra - gli:
    - [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
    -
    - [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle - località - sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground - acceleration-PGA compresi fra 0,20g e 0,25g);
    - [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro - particolare - complessità strutturale richiedano più articolate calcolazioni e verifiche;
    - [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali - la - cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione - civile, - nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle - conseguenze di un loro eventuale collasso;
    -
    - [{{nonrilevanti}}] interventi di “minore rilevanza†nei riguardi della pubblica incolumità;
    -
    - [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle - località - sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra - 0,15g e - 0,20g e zona 3);
    - [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
    - [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del - comma 1 - dell'art. 94-bis del DPR 380/2001;
    - [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo - occasionale di - persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei - Trasporti del - 17 gennaio 2018; -
    -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
  • -## -##lavoripubblici -
  • - che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del - D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del - compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione - resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal - sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti - di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • +

    + DPR 380/2001, artt. 93 e 94-bis
    + NTC D.M. 17.01.2018
    + Legge 190/2012, art. 1, comma 9 lettera “eâ€
    + Legge Regionale 23/2021, art. 31 comma 5
    + D. Lgs. 101/2018 +

    +

    ASSEVERAZIONE DEL CALCOLISTA DELLE STRUTTURE

    +

    (resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

    +

    + Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, calcolista in ambito {{ambito}}, + consapevole delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, + dichiara: +

    +
      +
    • + che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle + norme + tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con + il + progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali + prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; +
    • +
    • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo + anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; +
    • +
    • + che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida + contenute nell’allegato “A†del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra + gli:
      + [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
      +
      + [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle + località + sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground + acceleration-PGA compresi fra 0,20g e 0,25g);
      + [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro + particolare + complessità strutturale richiedano più articolate calcolazioni e verifiche;
      + [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali + la + cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione + civile, + nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle + conseguenze di un loro eventuale collasso;
      +
      + [{{nonrilevanti}}] interventi di “minore rilevanza†nei riguardi della pubblica incolumità;
      +
      + [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle + località + sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra + 0,15g e + 0,20g e zona 3);
      + [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
      + [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del + comma 1 + dell'art. 94-bis del DPR 380/2001;
      + [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo + occasionale di + persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei + Trasporti del + 17 gennaio 2018; +
      +
    • +##anteprima +
    • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
      + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
      + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
    • +## +##lavoripubblici +
    • + che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del + D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del + compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione + resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal + sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; +
    • +## +
    • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti + di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_geologo.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_geologo.html index c8e51c59..01fe14e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_geologo.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_geologo.html @@ -1,55 +1,55 @@ -

    - DPR 380/2001, Capitolo 6
    - Legge 190/2012, art. 1, comma 9 lettera “eâ€
    - Legge Regionale 23/2021, art. 31 comma 5
    - D. Lgs. 101/2018 -

    -

    ASSEVERAZIONE DEL GEOLOGO

    -

    (resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

    -

    - Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, tecnico incaricato per l’esecuzione - delle indagini per la caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e - penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

    -
      -
    • - che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei - lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i - requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; -
    • -
    • - che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di - sedime della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto - Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e - specificatamente:
      - [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto - elevato R4 – R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
      - [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o - molto elevato R4 – R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; -
    • -##anteprima -
    • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
      - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
      - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
    • -## -##lavoripubblici -
    • - che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del - D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del - compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione - resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal - sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; -
    • -## -
    • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti - di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
    • +

      + DPR 380/2001, Capitolo 6
      + Legge 190/2012, art. 1, comma 9 lettera “eâ€
      + Legge Regionale 23/2021, art. 31 comma 5
      + D. Lgs. 101/2018 +

      +

      ASSEVERAZIONE DEL GEOLOGO

      +

      (resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

      +

      + Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, tecnico incaricato per l’esecuzione + delle indagini per la caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e + penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

      +
        +
      • + che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei + lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i + requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; +
      • +
      • + che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di + sedime della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto + Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e + specificatamente:
        + [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto + elevato R4 – R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
        + [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o + molto elevato R4 – R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; +
      • +##anteprima +
      • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
        + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
        + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
      • +## +##lavoripubblici +
      • + che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del + D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del + compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione + resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal + sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; +
      • +## +
      • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti + di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
      \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_progettista_architettonico.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_progettista_architettonico.html index 013d6139..6eb1e9cf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_progettista_architettonico.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/sisma_progettista_architettonico.html @@ -1,83 +1,83 @@ -

      - DPR 380/2001, art. 93
      - Legge 190/2012, art. 1, comma 9 lettera “eâ€
      - Legge Regionale 23/2021, art. 31 comma 5
      - D. Lgs. 101/2018 -

      -

      ASSEVERAZIONE DEL PROGETTISTA ARCHITETTONICO

      -

      (resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

      -

      - Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista architettonico, consapevole - delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

      -
        -
      • - che il progetto architettonico allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme - tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; -
      • -
      • - che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su - fabbricato per il quale risulta accertata la regolarità amministrativa nei riguardi delle norme di cui ai Capi - II e IV, Parte II, del DPR 380/2001; -
      • -
      • - che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime della stessa ed - in particolare è stata progettata nel rispetto delle seguenti disposizioni di legge: -
      • -
      -
        -
      • - art. 13 Legge 64/74 (compatibilità geomorfologia); -
      • -
      • - norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e dei - relativi aggiornamenti, nel quale insiste l’opera; -
      • -
      • - Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); -
      • -
      • - Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); -
      • -
      • - Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); -
      • -
      • - Norme inerenti la distanza dagli elettrodotti; -
      • -
      • - Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; -
      • -
      -
        -
      • - che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 37, comma 1, della L.R. n. 20/2003, - art. 37 è congruo in relazione al tipo di intervento ed al volume dell'opera; -
      • -##anteprima -
      • - ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
        - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla - trattazione del procedimento;
        - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio del Genio Civile: {{relazioni}} -
      • -## -##lavoripubblici -
      • - che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del - D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del - compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione - resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal - sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; -
      • -## -
      • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti - di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
      • +

        + DPR 380/2001, art. 93
        + Legge 190/2012, art. 1, comma 9 lettera “eâ€
        + Legge Regionale 23/2021, art. 31 comma 5
        + D. Lgs. 101/2018 +

        +

        ASSEVERAZIONE DEL PROGETTISTA ARCHITETTONICO

        +

        (resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

        +

        + Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, progettista architettonico, consapevole + delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

        +
          +
        • + che il progetto architettonico allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme + tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; +
        • +
        • + che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su + fabbricato per il quale risulta accertata la regolarità amministrativa nei riguardi delle norme di cui ai Capi + II e IV, Parte II, del DPR 380/2001; +
        • +
        • + che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime della stessa ed + in particolare è stata progettata nel rispetto delle seguenti disposizioni di legge: +
        • +
        +
          +
        • + art. 13 Legge 64/74 (compatibilità geomorfologia); +
        • +
        • + norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e dei + relativi aggiornamenti, nel quale insiste l’opera; +
        • +
        • + Art.15 della L.R. 78/76 (distanza dalla battigia, dai laghi, dai boschi); +
        • +
        • + Art. 93 e seguenti Testo Unico 523/1904 (distanza dai corsi d’acqua); +
        • +
        • + Art. 5 e seguenti D. L.vo (protezione dei pozzi e riserve idriche); +
        • +
        • + Norme inerenti la distanza dagli elettrodotti; +
        • +
        • + Normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime; +
        • +
        +
          +
        • + che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 37, comma 1, della L.R. n. 20/2003, + art. 37 è congruo in relazione al tipo di intervento ed al volume dell'opera; +
        • +##anteprima +
        • + ai sensi dell'art. 1, comma 9 lettera “eâ€, della legge n° 190/2012:
          + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla + trattazione del procedimento;
          + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio del Genio Civile: {{relazioni}} +
        • +## +##lavoripubblici +
        • + che, trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del + D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, la dichiarazione sull’avvenuto pagamento del + compenso professionale pattuito in sede di conferimento dell’incarico è sostituita da un’apposita dichiarazione + resa dal committente in uno con la lettera d’incarico, che con la presente è da intendersi controfirmata dal + sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021; +
        • +## +
        • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti + di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
        \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index 551f60b4..d81131a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2852 - build.date=1672841319987 + build.number=2985 + build.date=1722424256719 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/liferay-ui.tld b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/liferay-ui.tld index a9a746a8..daa2c534 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/liferay-ui.tld +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/liferay-ui.tld @@ -2014,6 +2014,11 @@ input-field com.liferay.taglib.ui.InputFieldTag JSP + + autoComplete + false + true + autoFocus false diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp index d6427582..5dc20a51 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp @@ -71,6 +71,7 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) { + @@ -80,6 +81,7 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) { + A.one('#selectProvinciaLink').on('click', function(event) { Liferay.Util.selectEntity( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp index 2dba5845..71c7c3f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp @@ -68,6 +68,7 @@ DisplayTerms displayTerms = new DisplayTerms(renderRequest); + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp index 16004128..61336c6b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp @@ -29,9 +29,9 @@ modelVar="avviso" > - + - <%= avviso.getFullDescription() %> + <%= avviso.getFullDescription() + AvvisoUtil.getAvvisoDescription(avviso) %> <%= avviso.getFirmaInCorso() ? "Si" : "No" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp new file mode 100644 index 00000000..51b47fce --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp @@ -0,0 +1,134 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@include file="/html/init.jsp"%> +<% +String formName = ParamUtil.getString(request, "formName", "fm"); +String titolo = ParamUtil.getString(request, "titolo", "Invio"); +String buttonId = ParamUtil.getString(request, "buttonId", "sumbit-button"); +String buttonConferma = ParamUtil.getString(request, "buttonConferma", "Modifica"); +String buttonAnnulla = ParamUtil.getString(request, "buttonAnnulla", "Annulla"); +String width = ParamUtil.getString(request, "width", "700"); +String height = ParamUtil.getString(request, "height"); +String contentDiv = ParamUtil.getString(request, "contentDiv", "saveAndCloseDiv"); +boolean buttonBar = ParamUtil.getBoolean(request, "buttonBar", true); +String randomId = StringUtil.randomId(); +String onClick = ParamUtil.getString(request, "onClick"); +boolean externalForm = ParamUtil.getBoolean(request, "externalForm", false); +boolean okVisible = ParamUtil.getBoolean(request, "okVisible", true); +%> + +
        +
        +

        + +
        + + +AUI().ready('aui-modal', 'aui-io-request', 'aui-form-validator', function(A) { + var modal = new A.Modal({ + bodyContent: A.one('#<%=contentDiv%>'), + width: <%= width %>, + <% + if (!height.equals(StringPool.BLANK)) { + %> + height: <%= height %>, + <% + } + %> + centered: true, + destroyOnHide: false, + headerContent: '

        <%= titolo %>

        ', + modal: true, + render: '#saveAndCloseModal_<%= randomId %>', + visible: false, + close: false, + }).render(); + <% + if (buttonBar) { + %> + modal.addToolbar( + [ + { + label: '<%= buttonAnnulla %>', + on: { + click: function() { + modal.hide(); + } + } + }, + <% + if (okVisible) { + %> + { + label: '<%= buttonConferma %>', + cssClass: 'btn-primary', + on: { + click: function() { + <% + if (Validator.isNotNull(onClick)) { + out.print(onClick); + } else { + %> + submitForm(document.<%= formName %>); + var formValidator = Liferay.Form.get('<%= formName %>') + .formValidator; + <% + if (externalForm) { + %> + if (!formValidator.hasErrors()) { + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } else { + alert("Attenzione!\nCampi richiesti non compilati correttamente"); + } + modal.hide(); + <% + } else { + %> + if (!formValidator.hasErrors()) { + modal.hide(); + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } + <% + } + %> + <% + } + %> + } + } + } + <% + } + %> + ] + ); + <% + } + %> + + A.one('#<%= buttonId %>').on('click', function() { + A.one('#<%=contentDiv%>').show(); + modal.show(); + }); + + window.alert = function(msg) { + $('.message').text(msg); + $('.customAlert').css('animation', 'fadeIn 0.3s linear'); + $('.customAlert').css('display', 'inline'); + setTimeout(function() { + $('.customAlert').css('animation', 'none'); + }, 100); + }; + + $(function(){ + $('.confirmButton').click(function(){ + $('.customAlert').css('animation', 'fadeOut 0.3s linear'); + setTimeout(function(){ + $('.customAlert').css('animation', 'none'); + $('.customAlert').css('display', 'none'); + }, 100); + }); + }); +}); +
        \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp index c064d7bd..9a2b0731 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp @@ -112,7 +112,7 @@ Date dataEvento = avviso.getDtInvio(); if(Validator.isNotNull(avviso.getDtInvio())){ String tipoEvento = CronostoriaUtil.TIPO_GENIO_CIVILE; - String testoEvento = avviso.getFullDescription(); + String testoEvento = avviso.getFullDescription() + AvvisoUtil.getAvvisoDescription(avviso); String tipoLink = CronostoriaUtil.DOWNLOAD; List links = new ArrayList(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp index 00b80b64..df7952ae 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp @@ -36,10 +36,18 @@
        Tutte - INTERVENTO A (Autorizzazione) - INTERVENTO B (Deposito) - INTERVENTO C (Privo di rilevanza) + INTERVENTO A (Autorizzazione) + INTERVENTO B (Deposito) + INTERVENTO C (Privo di rilevanza) + INTERVENTO H (Ospedaliera) + +<%-- +<%-- type="checkbox" --%> +<%-- name="praticaospedaliera" --%> +<%-- label="" --%> +<%-- readonly="readonly"> --%> +
        @@ -228,6 +236,20 @@ var getComuni = function(provinciaId, comuneId, comuneValue) { A.ready(function(){ +/* + A.one("#tipoProcedura").on('change', function(event){ + + var isOspedaliera = event.currentTarget._node.selectedOptions[0].dataset.ospedaliera, + praticaOspedaliera = AUI().one("#praticaospedaliera"); + + if(isOspedaliera == 'true'){ + praticaOspedaliera.val('true'); + } else { + praticaOspedaliera.val('false'); + } + + }); + */ A.one(".provinciaSelect").on('change', function(event){ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/fascicolo_actions.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/fascicolo_actions.jsp index 577baa19..333691d6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/fascicolo_actions.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/fascicolo_actions.jsp @@ -85,7 +85,7 @@ long territorioGroupId = territorio.getGroupId(); - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp index a11da8ca..2fafee6c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp @@ -77,6 +77,13 @@ PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica))%>
        +
        +
        Data Inizio Lavori:
        +
        + <%= Validator.isNotNull(dettPratica.getDataInizioLavoriOpera()) ? + dateFormatDate.format(dettPratica.getDataInizioLavoriOpera()) : StringPool.DASH %> +
        +
        diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp index c2e702ea..36b1d080 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp @@ -147,6 +147,7 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune, true); <%= LanguageUtil.get(pageContext, "norm-dm03") %> + <%--
        <%= LanguageUtil.get(pageContext, "norm-dprg01") %> @@ -155,6 +156,7 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune, true); <%= LanguageUtil.get(pageContext, "norm-dprg02") %>
        + --%>
        <%= LanguageUtil.get(pageContext, "norm-anr") %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_fl_dati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_fl_dati.jsp index 4e398fd7..4f03caa5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_fl_dati.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_fl_dati.jsp @@ -27,6 +27,7 @@ > + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp index 10ab0c34..74fe5b50 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp @@ -50,6 +50,9 @@ String numeroProgettoSearch = ParamUtil.getString(request, "numeroProgetto"); String protocolloSearch = ParamUtil.getString(request, "protocollo"); String tipoPraticaSearch = ParamUtil.getString(request, "tipoPratica"); +String tipoProceduraSearch = ParamUtil.getString(request, "tipoProcedura"); +// boolean praticaOspedaliera = ParamUtil.getBoolean(request, "praticaospedaliera"); +// String praticaospedalieraSearch = String.valueOf(praticaOspedaliera); String statoPraticaSearch = ParamUtil.getString(request, "statoPratica"); String descInterventoSearch = ParamUtil.getString(request, "descIntervento"); String committenteSearch = ParamUtil.getString(request, "committente"); @@ -74,6 +77,8 @@ PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); iteratorURL.setParameter("numeroProgetto", numeroProgettoSearch); iteratorURL.setParameter("protocollo", protocolloSearch); iteratorURL.setParameter("tipoPratica", tipoPraticaSearch); +iteratorURL.setParameter("tipoProcedura", tipoProceduraSearch); +// iteratorURL.setParameter("praticaospedaliera", praticaospedalieraSearch); iteratorURL.setParameter("statoPratica", statoPraticaSearch); iteratorURL.setParameter("descIntervento", descInterventoSearch); iteratorURL.setParameter("committente", committenteSearch); @@ -130,6 +135,8 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006"; + +<%-- --%> @@ -207,20 +214,19 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006"; -
        +
        - - + SP @@ -230,6 +236,13 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
        +
        + + + H + + +
        <% Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/init.jsp new file mode 100644 index 00000000..87f4525a --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/init.jsp @@ -0,0 +1,2 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@include file="/html/init.jsp"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp new file mode 100644 index 00000000..31e6adba --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp @@ -0,0 +1,83 @@ +<%@page import="it.tref.liferay.portos.bo.util.PraticaAttenzionataUtil"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> +<%@ include file="/html/flcollaudopanel/init.jsp" %> + + + + + + + + + + + + + + + + + + + + <% + String praticaAttenzionataIdString = String.valueOf(praticaAttenzionata.getPraticaAttenzionataId()); + %> + + + + +
        + + + + + + + + +
        +
        +
        + +
        + + +
        + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp index 5595a8c5..8d5edeb3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp @@ -79,7 +79,39 @@ %>
        - + +
        + <% + String buttonFormId = "pagamentoFormButton_" + index; + String contentFormId = "pagamentoFormContent_" + index; + String formNameBollettino = "fmPagamenti_" + index; + %> + + + +
        + + + + + +
        + + + + + + + + +
        + <% String[] notAllowed = new String[]{}; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_form_bollettino.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_form_bollettino.jsp new file mode 100644 index 00000000..4d964271 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_form_bollettino.jsp @@ -0,0 +1,44 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@page import="java.util.Locale"%> +<%@page import="com.liferay.portal.kernel.util.Validator"%> +<%@page import="java.text.NumberFormat"%> +<%@page import="java.math.BigDecimal"%> +<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> +<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> + +<%@ include file="/html/init.jsp" %> + +<% + long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); + long idPagamento = ParamUtil.getLong(request, "idPagamento", 0l); + String formName = ParamUtil.getString(request, "formName", "fm"); + + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); + Pagamento objPagamento = PagamentoLocalServiceUtil.fetchPagamento(idPagamento); + + long companyId = company.getCompanyId(); + + String portletNamespace = renderResponse.getNamespace(); + String redirect = currentURL+"#"+portletNamespace+"tab="+portletNamespace+"page_pagamenti"; + +%> + + +
        + <%-- + + + + + --%> + + + + 250 + + + +
        +
        \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5 index 46013665..305b6878 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5 @@ -1 +1 @@ -620afc5f5acabcb6db026b707a66114a +acf94fdcc90ab0c42292368439d4ed25 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath index 4b2bb233..d4becd03 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project index a1afeb62..14074ed1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492415 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-calendar-appointments-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-calendar-appointments-portlet-service.jar deleted file mode 100644 index 54a5d0ba..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/portos-calendar-appointments-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml index 5679e49c..d66f0760 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + 3F Consulting diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties index c5ddf923..a0111226 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_calendar_appointments - build.number=177 - build.date=1672842399488 + build.number=176 + build.date=1636988959145 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp index d654039d..8e7e7acd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.util.ArrayList"%> <%@page import="com.liferay.portal.model.Role"%> <%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp index 07442bd9..3dae128a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.portos.calendar.appointments.service.PrenotazioneLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.model.Organization"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/calendar.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/calendar.jsp index ac84ed62..93fcfaca 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/calendar.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/calendar.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.model.Organization"%> <%@page import="it.tref.portos.calendar.appointments.service.DisponibilitaLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp index 14f50275..329151a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="it.tref.portos.calendar.appointments.service.PrenotazioneLocalServiceUtil"%> <%@page import="it.tref.portos.calendar.appointments.service.DisponibilitaLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita_action.jsp index c732457f..5815f9f3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita_action.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.portos.calendar.appointments.model.Disponibilita"%> <%@ include file="/html/calendar_appointments/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/view.jsp index 161d8081..b8d77306 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@ include file="/html/calendar_appointments/init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/init.jsp index f3db762d..11c883c0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.Format"%> <%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/view.jsp index 8a21a366..07d5fcb0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% /** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/ivy.xml.MD5 index bd5d4b5b..2e919d89 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/ivy.xml.MD5 @@ -1 +1 @@ -75bfb39003bc9425cfe9dbfddb78d9ab +4c011c888941fe61afd3a1627c1f69ff diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath index 4b2bb233..8870e168 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.project index 00c123d5..484c8979 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492432 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/WEB-INF/lib/portos-company-configuration-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/WEB-INF/lib/portos-company-configuration-portlet-service.jar deleted file mode 100644 index ade656a6..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/WEB-INF/lib/portos-company-configuration-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/init.jsp index 7ab610cb..4866d541 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/init.jsp" %> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/view.jsp index 821789a6..df8076e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/company_configuration/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletRequest"%> <%@page import="com.liferay.portal.util.PortletKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/init.jsp index 065d3d8b..0afcda91 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/ivy.xml.MD5 deleted file mode 100644 index 9fd6310c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/ivy.xml.MD5 +++ /dev/null @@ -1 +0,0 @@ -2558fcea11a1b513e80faab1bbcc1c41 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath index 4b2bb233..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.project index b8179b37..2a3de83b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492442 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.component index 74d0a01c..cfe958eb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/.gitignore similarity index 100% rename from liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/docroot/WEB-INF/.gitignore rename to liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/.gitignore diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/liferay-portlet.xml index 950a1514..2597b2ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -2,7 +2,7 @@ - + 1 /icon.png diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/portlet.xml index fc7b26d9..affa5ee8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + 1 1 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/common/submit_text_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/common/submit_text_window.jsp index 1dc5dd21..d0b387c8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/common/submit_text_window.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/common/submit_text_window.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/init.jsp index ce630d4b..505d90c5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/init.jsp @@ -1 +1,2 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/view.jsp index 13ba98b7..212fff46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/comunicazionemediata/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%> <%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/init.jsp index 7195cb85..82b20551 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.Format"%> <%@page import="java.text.MessageFormat"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/view.jsp index d9b0efec..baf916d9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% /** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml.MD5 index c1ede356..a1326e7a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml.MD5 @@ -1 +1 @@ -fffd049f465a4f20c2137621362b0ef2 +95d8843f04e59c4342e21f003b5c8deb diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath index 4b2bb233..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.project index e0534047..cfa27f35 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492455 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.jdt.core.prefs index c537b630..f42de363 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.jdt.core.prefs +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.jdt.core.prefs @@ -1,7 +1,7 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 +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.6 +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index 5dd5d0db..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,10 +1,10 @@ + - - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/liferay-hook.xml index 7ea9cf5f..f4efe922 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/init.jsp index ab7501ce..0deaecc7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="com.liferay.portlet.PortletURLUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp index 492629d1..8f7517bc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.util.PortalUtil"%> <%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath index 4b2bb233..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project index 0a9f4934..cb1c05a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492460 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component index 6cba4c13..63870e17 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-deploy-alert-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-deploy-alert-portlet-service.jar deleted file mode 100644 index 82b35cc3..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-deploy-alert-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar deleted file mode 100644 index a2f8cfcc..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar deleted file mode 100644 index 13cc320f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar index 796ab7f5..fbba5f0a 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar and b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/service.xml index 8aeea4af..50d63c36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + Matteo diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java index 3ad6662d..b7f251a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java @@ -1,5 +1,10 @@ package it.tref.liferay.portos.deployalert.action; +import it.tref.liferay.portos.deployalert.constants.MailConstants; +import it.tref.liferay.portos.deployalert.util.DeployAlertUtil; + +import java.util.List; + import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.exception.PortalException; @@ -16,15 +21,6 @@ import com.liferay.portal.model.Company; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.util.PortalUtil; -import it.tref.liferay.portos.deployalert.constants.MailConstants; -import it.tref.liferay.portos.deployalert.model.NotificationMail; -import it.tref.liferay.portos.deployalert.service.NotificationLogLocalServiceUtil; -import it.tref.liferay.portos.deployalert.service.NotificationMailLocalServiceUtil; -import it.tref.liferay.portos.deployalert.util.DeployAlertUtil; -import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil; - -import java.util.List; - public class DeployAction extends SimpleAction { private final static Log _log = LogFactoryUtil.getLog(DeployAction.class); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationLogPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationLogPersistenceImpl.java index c9c20815..78a471b1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationLogPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationLogPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.deployalert.NoSuchNotificationLogException; import it.tref.liferay.portos.deployalert.model.NotificationLog; import it.tref.liferay.portos.deployalert.model.impl.NotificationLogImpl; import it.tref.liferay.portos.deployalert.model.impl.NotificationLogModelImpl; +import it.tref.liferay.portos.deployalert.service.persistence.NotificationLogPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationMailPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationMailPersistenceImpl.java index 2940148c..9297ba1f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationMailPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/persistence/NotificationMailPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.deployalert.NoSuchNotificationMailException; import it.tref.liferay.portos.deployalert.model.NotificationMail; import it.tref.liferay.portos.deployalert.model.impl.NotificationMailImpl; import it.tref.liferay.portos.deployalert.model.impl.NotificationMailModelImpl; +import it.tref.liferay.portos.deployalert.service.persistence.NotificationMailPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties index 3a410587..ebbc75f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=DA - build.number=9 - build.date=1672844933954 + build.number=8 + build.date=1569596730980 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/init.jsp index bb88947c..0ae60c99 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/edit_notification.jsp b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/edit_notification.jsp index 425e8af6..e2cef758 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/edit_notification.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/edit_notification.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@ include file="/html/notificator/init.jsp"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/init.jsp index ea913f23..dd526767 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp"%> <%@ page import="it.tref.liferay.portos.deployalert.service.NotificationMailLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/view.jsp index 78964c30..eb713391 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/html/notificator/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/notificator/init.jsp"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5 index eb8a2488..eeb28191 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5 @@ -1 +1 @@ -5fb74604cf818173679da5a4e71ed785 +b2c2a2163a9e57f49e684a33bc7d0817 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath index 47d0a747..8d9075a1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath @@ -1,7 +1,7 @@ - + @@ -18,5 +18,6 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.project index 45eabb5e..e1e8384b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492473 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component index 7755e25e..e1d846ac 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,12 @@ + + uses + + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f4beb943..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,9 @@ + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar index 271b49f0..ed4689b4 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar deleted file mode 100644 index 13cc320f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar deleted file mode 100644 index 12e6b2c0..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/portlet.xml index 7842760e..f5bda7f2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + 1 Fascicolo Fe @@ -51,14 +51,14 @@ 0 text/html - view + view - content.Language + content.Language Ricerca Pratiche Ricerca Pratiche - + administrator @@ -83,14 +83,14 @@ 0 text/html - view + view - content.Language + content.Language Soggetti Pratica Soggetti Pratica - + administrator @@ -115,14 +115,14 @@ 0 text/html - view + view - content.Language + content.Language Allegati Pratica Allegati Pratica - + administrator @@ -136,21 +136,21 @@ user - - 5 - Parere Geologo - it.tref.liferay.portos.fe.portlet.ParereGeologoPortlet - - view-template - /html/pareregeologo/view.jsp - - - text/html - - content.Language - - Parere Geologo - Parere Geologo - - + + 5 + Parere Geologo + it.tref.liferay.portos.fe.portlet.ParereGeologoPortlet + + view-template + /html/pareregeologo/view.jsp + + + text/html + + content.Language + + Parere Geologo + Parere Geologo + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties index f002e120..e4c6c68c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/content/Language.properties @@ -77,6 +77,7 @@ salva-verifica = Salva e Verifica ## Soggetti ## add-soggetto = Aggiungi Soggetto edit-soggetto = Modifica Soggetto +errore-soggetto = Il Soggetto Inserito non può ottenere il ruolo ## Parere Geologo ## error-update-parere-geologo = "Errore durante l'inserimento del parere geologo" @@ -107,3 +108,11 @@ error.geniocivilefe.pagamento.allegato.length.valid=Nome del file troppo lungo ( error.geniocivilefe.pagamento.allegato.is.request=Nessun allegato inviato avviso-destinazione=Le classi III e IV non sono selezionabili per le pratiche di tipo B o C, le stesse devono essere presentate quali pratiche di Tipo A - Autorizzazione. + +## Fine lavori ## +add-fine-lavori-key=Comunica data fine lavori parziale/totale +data-inizio-lavori-key=Data Inizio Lavori +add-inizio-lavory-key=Comunica inizio lavori +edit-fine-lavori-key=Inserisci relazione fine lavori +edit-fine-lavori-title-key=Inserisci relazione Fine Lavori +label-disclaimer-bollo-16-euro= * (€ 16 per il rilascio dell'attestazione ed € 16 ogni 4 facciate del documento in formato uso bollo) \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java index 0caba8ed..3b837255 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java @@ -8,6 +8,7 @@ import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.util.DelegheUtil; +import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import java.io.File; import java.io.IOException; @@ -243,7 +244,7 @@ public class AllegatiPraticaPortlet extends MVCPortlet { } else if ("page_allegati".equals(comingFrom) || "ad".equals(type)) { tipologieAllegati = DocumentiPraticaUtil.getDocDomanda(); } else if ("page_fine_lavori".equals(comingFrom)) { - tipologieAllegati = DocumentiPraticaUtil.getDocFineLavori(); + tipologieAllegati = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); } else if ("page_collaudo".equals(comingFrom)) { tipologieAllegati = DocumentiPraticaUtil.getDocCollaudo(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java index 319e6ff9..edb993ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java @@ -154,6 +154,16 @@ public class FascicoloFePortlet extends MVCPortlet { } } writeJSON(request, response, jsonArray); + } else if ("ospedalieraEnabled".equals(id)) { + long comuneId = ParamUtil.getLong(request, "comuneId"); + Comune comune = ComuneLocalServiceUtil.fetchComune(comuneId); + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); + if(Validator.isNotNull(comune)){ + jsonObject.put("ospedalieraEnabled", comune.getPraticaOspedali()); + } else { + jsonObject.put("ospedalieraEnabled", false); + } + writeJSON(request, response, jsonObject); } else if ("zoneFasce".equals(id)) { long comuneId = ParamUtil.getLong(request, "comuneId", 0L); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); @@ -379,15 +389,6 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); DettPratica dettPratica = DettPraticaServiceUtil .addDettPratica(territorioId, tipoProcedura, serviceContext); - if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_C)) { - dettPratica.setNormEsenteBollo(true); - dettPratica.setNormEsenteSpese(true); - dettPratica.setCollaudoStatico(true); - dettPratica.setNormArt3com3(true); - dettPratica.setNormArt3com4(true); - dettPratica.setTcRiparazioneInterventoLocale(true); - DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); - } successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "dettPraticaId", @@ -721,8 +722,50 @@ public class FascicoloFePortlet extends MVCPortlet { } } + public void salvaFirstStepFineLavori(ActionRequest request, ActionResponse response) throws Exception { + ServiceContext serviceContext = ServiceContextFactory.getInstance(request); + long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); + boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori"); + Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", + DateFormatFactoryUtil.getDate(request.getLocale()), null); + long userId = PortalUtil.getUserId(request); + + try { + FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); + if (!fineLavori.isCompletata() && Validator.isNotNull(dataFineLavori)) { +// fineLavori.setParziale(parziale); +// fineLavori.setDataFineLavori(dataFineLavori); +// FineLavoriServiceUtil.updateFineLavori(fineLavori); + fineLavori.setDataFineLavori(dataFineLavori); + FineLavoriServiceUtil.updateFineLavori(fineLavori, parziale, serviceContext); + } + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "fineLavoriId"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "fineLavoriId", + String.valueOf(fineLavoriId)); + response.sendRedirect(successURL); + } + } + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); + response.setRenderParameter("fineLavoriId", String.valueOf(fineLavoriId)); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); + response.setRenderParameter("fineLavoriId", String.valueOf(fineLavoriId)); + throw e; + } + } + public void salvaInizioLavori(ActionRequest request, ActionResponse response) throws IOException, PortalException, - SystemException { + SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", @@ -775,9 +818,6 @@ public class FascicoloFePortlet extends MVCPortlet { long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); boolean bozza = ParamUtil.getBoolean(request, "bozza"); - boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori"); - Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", - DateFormatFactoryUtil.getDate(request.getLocale()), null); String codiceFiscaleDelegato = ParamUtil.getString(request, "direttoreLavori"); boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); @@ -789,6 +829,9 @@ public class FascicoloFePortlet extends MVCPortlet { long userId = PortalUtil.getUserId(request); try { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); + boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori", fineLavori.getParziale()); + Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", + DateFormatFactoryUtil.getDate(request.getLocale()), fineLavori.getDataFineLavori()); if (!fineLavori.isCompletata()) { FineLavoriServiceUtil.updateFineLavori(userId, fineLavori.getFineLavoriId(), fineLavori.getIntPraticaId(), parziale, false, dataFineLavori, codiceFiscaleDelegato, @@ -977,338 +1020,346 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - String codiceRuoloDelegato = ParamUtil.getString(request, "codiceRuoloDelegato"); - boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); - Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - String note = ParamUtil.getString(request, "note"); - String noteUfficio = ParamUtil.getString(request, "noteUfficio"); - // PAGAMENTI - String codicePagamento = ParamUtil.getString(request, "codicePagamento"); - String causalePagamento = ParamUtil.getString(request, "causalePagamento"); - String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); - String importoBolli = ParamUtil.getString(request, "importoBolli"); - String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); - boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); - int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); - int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); - boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); - int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); - boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); - int pagAltro = ParamUtil.getInteger(request, "pagAltro"); - boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); - String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); - String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); - String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagCalcolatoRiparazioneInterventoLocale"); - String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); - String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); - String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); - String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagEffettivoRiparazioneInterventoLocale"); - String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); - String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); - // SEZIONE DETTAGLI PRINCIPALI - boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); - boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); - String destinazione = ParamUtil.getString(request, "destinazione"); - String ag = ParamUtil.getString(request, "ag"); - String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); - String via = ParamUtil.getString(request, "via"); - String localita = ParamUtil.getString(request, "localita"); - String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); - String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); - String metratura = ParamUtil.getString(request, "metratura"); - boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); - int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); - String numeroCivico = ParamUtil.getString(request, "numeroCivico"); - String dcFoglio = ParamUtil.getString(request, "dcFoglio"); - String dcAllegato = ParamUtil.getString(request, "dcAllegato"); - String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 - + StringPool.PIPE + particella4; - String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); - boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); - boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); - boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); - boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); - boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); - boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); - boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); - boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); - boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); - boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); - boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); - boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); - boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); - boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); - boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); - boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); - String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); - boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); - // Descrizione edificio - String dePiani = ParamUtil.getString(request, "dePiani"); - String deAltezza = ParamUtil.getString(request, "deAltezza"); - String deInterrati = ParamUtil.getString(request, "deInterrati"); - String deSuperficie = ParamUtil.getString(request, "deSuperficie"); - String deCostruzione = ParamUtil.getString(request, "deCostruzione"); - String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); - String deUso = ParamUtil.getString(request, "deUso"); - String dePrivata = ParamUtil.getString(request, "dePrivata"); - String dePubblica = ParamUtil.getString(request, "dePubblica"); - String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); - String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); - boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); - boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); - boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); - boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); - boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); - boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); - boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); - boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); - boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); - boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); - boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); - String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); - String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); - boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); - boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); - boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); - boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); - String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); - String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); - String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); - boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); - boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); - boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); - boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); - boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); - boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); - String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); - boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); - boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); - boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); - boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); - boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); - boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); - String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); - String dccCopertura = ParamUtil.getString(request, "dccCopertura"); - boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); - boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); - boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); - boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); - boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); - boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); - boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); - boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); - String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); - boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); - boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); - boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); - boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); - boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); - String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); - boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); - boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); - boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); - boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); - boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); - boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); - boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, - "dccOpereDiRinforzoTelaiECerchiature"); - boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); - boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); - String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici - String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); - String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", - dettPratica.getGeoCategoriaSottosuolo()); - String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", - dettPratica.getGeoCategoriaTopografica()); - String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); - String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", - dettPratica.getGeoPericolositaGeologica()); - String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", - dettPratica.getGeoRischioGeomorfologicoPai()); - String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", - dettPratica.getGeoPericolositaIdraulicaPai()); - String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", - dettPratica.getGeoRischioIdraulicoPai()); - String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", - dettPratica.getGeoPericolositaSismica()); - String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", - dettPratica.getGeoPericolositaIdraulica()); - String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", - dettPratica.getGeoPericolositaGeomorfica()); - String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", - dettPratica.getGeoFattibilitaGeologica()); - String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", - dettPratica.getGeoFattibilitaSismica()); - String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", - dettPratica.getGeoFattibilitaIdraulica()); - String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); - String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); - String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", - dettPratica.getGeoOpereInSotterranea()); - String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", - dettPratica.getGeoPresenzaPrescrizioni()); - String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", - dettPratica.getGeoNotePrescrizioni()); - String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); - String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", - dettPratica.getGeoEvidenzeGeomorfiche()); - String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", - dettPratica.getGeoEvidenzeGeologiche()); - Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative - boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); - boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); - boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); - boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); - boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); - boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); - boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); - boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); - boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); - boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); - boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); - boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); - boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); - boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); - boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); - boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); - boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); - boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); - boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); - boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); - boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); - boolean suap = ParamUtil.getBoolean(request, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); - String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); - String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); - boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); - String intervFinPubDesc = ParamUtil.getString(request, "intervFinPubDesc"); - String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); - String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); - String vincoli = ParamUtil.getString(request, "vincoli"); - - long userId = PortalUtil.getUserId(request); - try { - DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), integrazione, protocollo, tipoIntegrazione, completa, gestita, - codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, - dataEffettuazione, statusTask, workflowForzato, soggettoSostituitoId, destinazione, ag, - descLongIntervento, via, localita, estremiCatastali, estremiPratCom, variataDa, varianteNumero, - varianteSostanziale, operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, - lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, dataInizioLavoriOpera, - dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, - deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, - deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, - dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, - dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, - dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, - dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, - dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, - dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, - dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, - dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, dccElemNonStrutAltro, - dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, - dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, - dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, - dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, - geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, - geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, - geoRischioIdraulicoPai, geoPericolositaSismica, geoPericolositaIdraulica, - geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, - geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, - geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, - geoDtRelazione, pagNuoveCostruzioni, pagAdeguamentoSismico, pagMiglioramentoSismico, - pagRiparazioneInterventoLocale, pagNuovaCostruzione, pagVarianti, pagAltro, - pagMiglioramentoSismicoSicilia, pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, - pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, - pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, - pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, - noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, - tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, - tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, - normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, - livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = ParamUtil.getString(request, "current_tab"); - if (Validator.isNotNull(fragmentURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", - fragmentURL); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", - "_1_WAR_portosfeportlet_tab=" + fragmentURL); - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + String codiceRuoloDelegato = ParamUtil.getString(request, "codiceRuoloDelegato"); + boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); + long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); + Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + String note = ParamUtil.getString(request, "note"); + String noteUfficio = ParamUtil.getString(request, "noteUfficio"); + // PAGAMENTI + String codicePagamento = ParamUtil.getString(request, "codicePagamento"); + String causalePagamento = ParamUtil.getString(request, "causalePagamento"); + String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); + String importoBolli = ParamUtil.getString(request, "importoBolli"); + String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); + boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); + int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); + int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); + boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); + int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); + boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); + int pagAltro = ParamUtil.getInteger(request, "pagAltro"); + boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); + String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); + String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); + String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagCalcolatoRiparazioneInterventoLocale"); + String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); + String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); + String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); + String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagEffettivoRiparazioneInterventoLocale"); + String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); + String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); + // SEZIONE DETTAGLI PRINCIPALI + boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); + boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); + String destinazione = ParamUtil.getString(request, "destinazione"); + String ag = ParamUtil.getString(request, "ag"); + String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); + String via = ParamUtil.getString(request, "via"); + String localita = ParamUtil.getString(request, "localita"); + String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); + String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); + String metratura = ParamUtil.getString(request, "metratura"); + boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); + int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); + String numeroCivico = ParamUtil.getString(request, "numeroCivico"); + String dcFoglio = ParamUtil.getString(request, "dcFoglio"); + String dcAllegato = ParamUtil.getString(request, "dcAllegato"); + String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + + StringPool.PIPE + particella4; + String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); + boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); + boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); + boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); + boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); + boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); + boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); + boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); + boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); + boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); + boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); + boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); + boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); + boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); + boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); + boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); + boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); + String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); + boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); + // Descrizione edificio + String dePiani = ParamUtil.getString(request, "dePiani"); + String deAltezza = ParamUtil.getString(request, "deAltezza"); + String deInterrati = ParamUtil.getString(request, "deInterrati"); + String deSuperficie = ParamUtil.getString(request, "deSuperficie"); + String deCostruzione = ParamUtil.getString(request, "deCostruzione"); + String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); + String deUso = ParamUtil.getString(request, "deUso"); + String dePrivata = ParamUtil.getString(request, "dePrivata"); + String dePubblica = ParamUtil.getString(request, "dePubblica"); + String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); + String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); + boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); + boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); + boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); + boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); + boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); + boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); + boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); + boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); + boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); + boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); + boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); + String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); + String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); + boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); + boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); + boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); + boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); + String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); + String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); + String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); + boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); + boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); + boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); + boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); + boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); + boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); + String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); + boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); + boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); + boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); + boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); + boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); + boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); + String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); + String dccCopertura = ParamUtil.getString(request, "dccCopertura"); + boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); + boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); + boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); + boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); + boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); + boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); + boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); + boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); + String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); + boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); + boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); + boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); + boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); + boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); + String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); + boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); + boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); + boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); + boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); + boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); + boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); + boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, + "dccOpereDiRinforzoTelaiECerchiature"); + boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); + boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); + String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); + // DATI geologici + String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); + String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", + dettPratica.getGeoCategoriaSottosuolo()); + String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", + dettPratica.getGeoCategoriaTopografica()); + String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); + String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", + dettPratica.getGeoPericolositaGeologica()); + String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", + dettPratica.getGeoRischioGeomorfologicoPai()); + String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", + dettPratica.getGeoPericolositaIdraulicaPai()); + String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", + dettPratica.getGeoRischioIdraulicoPai()); + String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", + dettPratica.getGeoPericolositaSismica()); + String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", + dettPratica.getGeoPericolositaIdraulica()); + String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", + dettPratica.getGeoPericolositaGeomorfica()); + String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", + dettPratica.getGeoFattibilitaGeologica()); + String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", + dettPratica.getGeoFattibilitaSismica()); + String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", + dettPratica.getGeoFattibilitaIdraulica()); + String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); + String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); + String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", + dettPratica.getGeoOpereInSotterranea()); + String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", + dettPratica.getGeoPresenzaPrescrizioni()); + String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", + dettPratica.getGeoNotePrescrizioni()); + String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); + String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", + dettPratica.getGeoEvidenzeGeomorfiche()); + String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", + dettPratica.getGeoEvidenzeGeologiche()); + Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); + // normative + boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); + boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); + boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); + boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); + boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); + boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); + boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); + boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); + boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); + boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); + boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); + boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); + boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); + boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); + boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); + boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); + boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); + boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); + boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); + boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); + boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); + boolean suap = ParamUtil.getBoolean(request, "suap"); + boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); + String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); + String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); + boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); + String intervFinPubDesc = ParamUtil.getString(request, "intervFinPubDesc"); + String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); + String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); + String vincoli = ParamUtil.getString(request, "vincoli"); + + long userId = PortalUtil.getUserId(request); + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + if(intPratica.isPraticaOspedaliera()){ + destinazione = dettPratica.getDestinazione(); + normEsenteBollo = dettPratica.getNormEsenteBollo(); + normEsenteSpese = dettPratica.getNormEsenteSpese(); + lavoriPubblici = dettPratica.getLavoriPubblici(); + } + try { + DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), integrazione, protocollo, tipoIntegrazione, completa, gestita, + codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, + dataEffettuazione, statusTask, workflowForzato, soggettoSostituitoId, destinazione, ag, + descLongIntervento, via, localita, estremiCatastali, estremiPratCom, variataDa, varianteNumero, + varianteSostanziale, operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, + lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, dataInizioLavoriOpera, + dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, + lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, + deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, + deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, + deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, + dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, + dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, + dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, + dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, + dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, + dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, + dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, + dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, + dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, + dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, + dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, dccElemNonStrutAltro, + dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, + dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, + dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, + dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, + geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, + geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, + geoRischioIdraulicoPai, geoPericolositaSismica, geoPericolositaIdraulica, + geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, + geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, + geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, + geoDtRelazione, pagNuoveCostruzioni, pagAdeguamentoSismico, pagMiglioramentoSismico, + pagRiparazioneInterventoLocale, pagNuovaCostruzione, pagVarianti, pagAltro, + pagMiglioramentoSismicoSicilia, pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, + pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, + pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, + pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, + noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, + tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, + tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, + tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, + normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, + normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, + normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, + intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, + livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = ParamUtil.getString(request, "current_tab"); + if (Validator.isNotNull(fragmentURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", + fragmentURL); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", + "_1_WAR_portosfeportlet_tab=" + fragmentURL); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + } + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "saveAndVerify"); + if ("saveAndVerify".equalsIgnoreCase(cmd)) + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "saveAndVerify", true); + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "saveAndVerify"); - if ("saveAndVerify".equalsIgnoreCase(cmd)) - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "saveAndVerify", true); - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } private String getNotNullString(ActionRequest request, String param, String currentValue) { @@ -1340,354 +1391,361 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); - Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - String note = ParamUtil.getString(request, "note"); - String noteUfficio = ParamUtil.getString(request, "noteUfficio"); - // PAGAMENTI - String codicePagamento = ParamUtil.getString(request, "codicePagamento"); - String causalePagamento = ParamUtil.getString(request, "causalePagamento"); - String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); - String importoBolli = ParamUtil.getString(request, "importoBolli"); - String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); - boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); - int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); - int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); - boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); - int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); - boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); - int pagAltro = ParamUtil.getInteger(request, "pagAltro"); - boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); - String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); - String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); - String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagCalcolatoRiparazioneInterventoLocale"); - String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); - String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); - String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); - String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagEffettivoRiparazioneInterventoLocale"); - String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); - String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); - // SEZIONE DETTAGLI PRINCIPALI - DettPratica dettCheck = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - boolean disabledCollaudoStatico = false; - if (dettCheck != null) { - disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettCheck.getIntPraticaId()); - } - boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); - if (disabledCollaudoStatico) { - collaudoStatico = dettCheck.getCollaudoStatico(); - } - boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); - String destinazione = ParamUtil.getString(request, "destinazione"); - String ag = ParamUtil.getString(request, "ag"); - String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); - String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); - String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); - String metratura = ParamUtil.getString(request, "metratura"); - boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); - int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); - String numeroCivico = ParamUtil.getString(request, "numeroCivico"); - String dcFoglio = ParamUtil.getString(request, "dcFoglio"); - String dcAllegato = ParamUtil.getString(request, "dcAllegato"); - String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 - + StringPool.PIPE + particella4; - String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); - boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); - boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); - boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); - boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); - boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); - boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); - boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); - boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); - boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); - boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); - boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); - boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); - boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); - boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); - boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); - boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); - String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); - boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); - // Descrizione edificio - String dePiani = ParamUtil.getString(request, "dePiani"); - String deAltezza = ParamUtil.getString(request, "deAltezza"); - String deInterrati = ParamUtil.getString(request, "deInterrati"); - String deSuperficie = ParamUtil.getString(request, "deSuperficie"); - String deCostruzione = ParamUtil.getString(request, "deCostruzione"); - String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); - String deUso = ParamUtil.getString(request, "deUso"); - String dePrivata = ParamUtil.getString(request, "dePrivata"); - String dePubblica = ParamUtil.getString(request, "dePubblica"); - String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); - String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); - boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); - boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); - boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); - boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); - boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); - boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); - boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); - boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); - boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); - boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); - boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); - String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); - String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); - boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); - boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); - boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); - boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); - String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); - String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); - String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); - boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); - boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); - boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); - boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); - boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); - boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); - String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); - boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); - boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); - boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); - boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); - boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); - boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); - String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); - String dccCopertura = ParamUtil.getString(request, "dccCopertura"); - boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); - boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); - boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); - boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); - boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); - boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); - boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); - boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); - String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); - boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); - boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); - boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); - boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); - boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); - String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); - boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); - boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); - boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); - boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); - boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); - boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); - boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, - "dccOpereDiRinforzoTelaiECerchiature"); - boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); - boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); - String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici - String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); - String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", - dettPratica.getGeoCategoriaSottosuolo()); - String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", - dettPratica.getGeoCategoriaTopografica()); - String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); - String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", - dettPratica.getGeoPericolositaGeologica()); - String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", - dettPratica.getGeoRischioGeomorfologicoPai()); - String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", - dettPratica.getGeoPericolositaIdraulicaPai()); - String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", - dettPratica.getGeoRischioIdraulicoPai()); - String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", - dettPratica.getGeoPericolositaSismica()); - String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", - dettPratica.getGeoPericolositaIdraulica()); - String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", - dettPratica.getGeoPericolositaGeomorfica()); - String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", - dettPratica.getGeoFattibilitaGeologica()); - String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", - dettPratica.getGeoFattibilitaSismica()); - String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", - dettPratica.getGeoFattibilitaIdraulica()); - String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); - String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); - String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", - dettPratica.getGeoOpereInSotterranea()); - String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", - dettPratica.getGeoPresenzaPrescrizioni()); - String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", - dettPratica.getGeoNotePrescrizioni()); - String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); - String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", - dettPratica.getGeoEvidenzeGeomorfiche()); - String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", - dettPratica.getGeoEvidenzeGeologiche()); - Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative - boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); - boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); - boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); - boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); - boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); - boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); - boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); - boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); - boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); - boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); - boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); - boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); - boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); - boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); - boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); - boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); - boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); - boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); - boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); - boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); - boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); - boolean suap = ParamUtil.getBoolean(request, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); - String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); - String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); - boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); - String intervFinPubDesc = intervFinPub ? ParamUtil.getString(request, "intervFinPubDesc") : StringPool.BLANK; - - String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); - String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); - String vincoli = ParamUtil.getString(request, "vincoli"); - - long userId = PortalUtil.getUserId(request); - String via = dettPratica.getVia(); - String localita = dettPratica.getLocalita(); - if (!ParamUtil.getString(request, "via").equals(StringPool.BLANK)) { - via = ParamUtil.getString(request, "via"); - } - if (!ParamUtil.getString(request, "localita").equals(StringPool.BLANK)) { - localita = ParamUtil.getString(request, "localita"); - } - try { - DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), dettPratica.getIntegrazione(), protocollo, tipoIntegrazione, - dettPratica.getCompleta(), dettPratica.getGestita(), codicePagamento, causalePagamento, - mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, - dettPratica.getStatusTask(), dettPratica.getWorkflowForzato(), - dettPratica.getSoggettoSostituitoId(), destinazione, ag, descLongIntervento, via, localita, - estremiCatastali, estremiPratCom, dettPratica.getVariataDa(), dettPratica.getVarianteNumero(), - varianteSostanziale, dettPratica.getOperaConforme(), collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - dettPratica.getCodiceRuoloDelegato(), lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, - dataInizioLavoriOpera, dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, - lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, - deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, - dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, - dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, - dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, dccStruttureEleMistoMuratura, - dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, dccStruttureEleAltro, - dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, - dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, - dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, - dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, dccCoperturaPannelli, - dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione, - dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, - dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, - dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, - dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, geoCategoriaSottosuolo, - geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, - geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, - geoPericolositaIdraulica, geoPericolositaGeomorfica, geoFattibilitaGeologica, - geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, geoOpereDiSostegno, - geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni, geoNoteIndagini, - geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione, pagNuoveCostruzioni, - pagAdeguamentoSismico, pagMiglioramentoSismico, pagRiparazioneInterventoLocale, - pagNuovaCostruzione, pagVarianti, pagAltro, pagMiglioramentoSismicoSicilia, - pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, - pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, - pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, - pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, - noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, - tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, - tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, - normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, - livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "isNewVariante"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = ParamUtil.getString(request, "current_tab"); - if (Validator.isNotNull(fragmentURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", - fragmentURL); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", - "_1_WAR_portosfeportlet_tab=" + fragmentURL); - - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); + long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); + Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + String note = ParamUtil.getString(request, "note"); + String noteUfficio = ParamUtil.getString(request, "noteUfficio"); + // PAGAMENTI + String codicePagamento = ParamUtil.getString(request, "codicePagamento"); + String causalePagamento = ParamUtil.getString(request, "causalePagamento"); + String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); + String importoBolli = ParamUtil.getString(request, "importoBolli"); + String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); + boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); + int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); + int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); + boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); + int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); + boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); + int pagAltro = ParamUtil.getInteger(request, "pagAltro"); + boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); + String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); + String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); + String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagCalcolatoRiparazioneInterventoLocale"); + String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); + String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); + String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); + String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagEffettivoRiparazioneInterventoLocale"); + String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); + String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); + // SEZIONE DETTAGLI PRINCIPALI + DettPratica dettCheck = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); + boolean disabledCollaudoStatico = false; + if (dettCheck != null) { + disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettCheck.getIntPraticaId()); + } + boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); + if (disabledCollaudoStatico) { + collaudoStatico = dettCheck.getCollaudoStatico(); + } + boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); + String destinazione = ParamUtil.getString(request, "destinazione"); + String ag = ParamUtil.getString(request, "ag"); + String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); + String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); + String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); + String metratura = ParamUtil.getString(request, "metratura"); + boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); + int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); + String numeroCivico = ParamUtil.getString(request, "numeroCivico"); + String dcFoglio = ParamUtil.getString(request, "dcFoglio"); + String dcAllegato = ParamUtil.getString(request, "dcAllegato"); + String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + + StringPool.PIPE + particella4; + String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); + boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); + boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); + boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); + boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); + boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); + boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); + boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); + boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); + boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); + boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); + boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); + boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); + boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); + boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); + boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); + boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); + String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); + boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); + // Descrizione edificio + String dePiani = ParamUtil.getString(request, "dePiani"); + String deAltezza = ParamUtil.getString(request, "deAltezza"); + String deInterrati = ParamUtil.getString(request, "deInterrati"); + String deSuperficie = ParamUtil.getString(request, "deSuperficie"); + String deCostruzione = ParamUtil.getString(request, "deCostruzione"); + String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); + String deUso = ParamUtil.getString(request, "deUso"); + String dePrivata = ParamUtil.getString(request, "dePrivata"); + String dePubblica = ParamUtil.getString(request, "dePubblica"); + String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); + String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); + boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); + boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); + boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); + boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); + boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); + boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); + boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); + boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); + boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); + boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); + boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); + String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); + String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); + boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); + boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); + boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); + boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); + String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); + String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); + String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); + boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); + boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); + boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); + boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); + boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); + boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); + String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); + boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); + boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); + boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); + boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); + boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); + boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); + String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); + String dccCopertura = ParamUtil.getString(request, "dccCopertura"); + boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); + boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); + boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); + boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); + boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); + boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); + boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); + boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); + String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); + boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); + boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); + boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); + boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); + boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); + String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); + boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); + boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); + boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); + boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); + boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); + boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); + boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, + "dccOpereDiRinforzoTelaiECerchiature"); + boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); + boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); + String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); + // DATI geologici + String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); + String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", + dettPratica.getGeoCategoriaSottosuolo()); + String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", + dettPratica.getGeoCategoriaTopografica()); + String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); + String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", + dettPratica.getGeoPericolositaGeologica()); + String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", + dettPratica.getGeoRischioGeomorfologicoPai()); + String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", + dettPratica.getGeoPericolositaIdraulicaPai()); + String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", + dettPratica.getGeoRischioIdraulicoPai()); + String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", + dettPratica.getGeoPericolositaSismica()); + String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", + dettPratica.getGeoPericolositaIdraulica()); + String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", + dettPratica.getGeoPericolositaGeomorfica()); + String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", + dettPratica.getGeoFattibilitaGeologica()); + String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", + dettPratica.getGeoFattibilitaSismica()); + String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", + dettPratica.getGeoFattibilitaIdraulica()); + String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); + String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); + String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", + dettPratica.getGeoOpereInSotterranea()); + String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", + dettPratica.getGeoPresenzaPrescrizioni()); + String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", + dettPratica.getGeoNotePrescrizioni()); + String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); + String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", + dettPratica.getGeoEvidenzeGeomorfiche()); + String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", + dettPratica.getGeoEvidenzeGeologiche()); + Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); + // normative + boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); + boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); + boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); + boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); + boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); + boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); + boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); + boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); + boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); + boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); + boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); + boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); + boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); + boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); + boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); + boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); + boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); + boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); + boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); + boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); + boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); + boolean suap = ParamUtil.getBoolean(request, "suap"); + boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); + String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); + String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); + boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); + String intervFinPubDesc = intervFinPub ? ParamUtil.getString(request, "intervFinPubDesc") : StringPool.BLANK; + + String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); + String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); + String vincoli = ParamUtil.getString(request, "vincoli"); + + long userId = PortalUtil.getUserId(request); + String via = dettPratica.getVia(); + String localita = dettPratica.getLocalita(); + if (!ParamUtil.getString(request, "via").equals(StringPool.BLANK)) { + via = ParamUtil.getString(request, "via"); + } + if (!ParamUtil.getString(request, "localita").equals(StringPool.BLANK)) { + localita = ParamUtil.getString(request, "localita"); + } + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + if(intPratica.isPraticaOspedaliera()){ + destinazione = dettPratica.getDestinazione(); + normEsenteBollo = dettPratica.getNormEsenteBollo(); + normEsenteSpese = dettPratica.getNormEsenteSpese(); + lavoriPubblici = dettPratica.getLavoriPubblici(); + } + try { + DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), dettPratica.getIntegrazione(), protocollo, tipoIntegrazione, + dettPratica.getCompleta(), dettPratica.getGestita(), codicePagamento, causalePagamento, + mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, + dettPratica.getStatusTask(), dettPratica.getWorkflowForzato(), + dettPratica.getSoggettoSostituitoId(), destinazione, ag, descLongIntervento, via, localita, + estremiCatastali, estremiPratCom, dettPratica.getVariataDa(), dettPratica.getVarianteNumero(), + varianteSostanziale, dettPratica.getOperaConforme(), collaudoStatico, + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + dettPratica.getCodiceRuoloDelegato(), lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, + dataInizioLavoriOpera, dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, + lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, + dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, + deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, + deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, + deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, + deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, + dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, + dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, + dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, dccStruttureEleMistoMuratura, + dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, dccStruttureEleAltro, + dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, + dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, + dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, + dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, dccCoperturaPannelli, + dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione, + dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, + dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, + dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, + dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, + dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, + dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, geoCategoriaSottosuolo, + geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, + geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, + geoPericolositaIdraulica, geoPericolositaGeomorfica, geoFattibilitaGeologica, + geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, geoOpereDiSostegno, + geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni, geoNoteIndagini, + geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione, pagNuoveCostruzioni, + pagAdeguamentoSismico, pagMiglioramentoSismico, pagRiparazioneInterventoLocale, + pagNuovaCostruzione, pagVarianti, pagAltro, pagMiglioramentoSismicoSicilia, + pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, + pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, + pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, + pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, + noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, + tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, + tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, + tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, + normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, + normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, + normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, + intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, + livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "isNewVariante"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = ParamUtil.getString(request, "current_tab"); + if (Validator.isNotNull(fragmentURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", + fragmentURL); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", + "_1_WAR_portosfeportlet_tab=" + fragmentURL); + + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + } + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } private void saveVariazioneSoggetti(long dettPraticaId, ActionRequest request, ActionResponse response) @@ -1701,53 +1759,53 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - long userId = PortalUtil.getUserId(request); - try { - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - - DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, serviceContext); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + long userId = PortalUtil.getUserId(request); + try { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + + DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, + codiceFiscaleDelegatoCollaudo, serviceContext); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + } } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } public void deleteFascicolo(ActionRequest request, ActionResponse response) throws Exception { @@ -1763,7 +1821,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void richiediAsseverazioni(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); @@ -1775,7 +1833,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void annullaAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1788,7 +1846,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void rimuoviFileAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1800,7 +1858,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFileAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request); @@ -1860,7 +1918,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void generaFirmaAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); @@ -1881,7 +1939,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFileAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { String dettagliFirme = StringPool.BLANK; try { @@ -1940,7 +1998,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void deleteFileAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long fileAnnulamentoId = ParamUtil.getLong(request, "docPraticaAnnullamentoId"); if (Validator.isNotNull(fileAnnulamentoId)) { @@ -1949,7 +2007,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void confermaAsseverazione(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1961,7 +2019,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void annullaAsseverazioni(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); @@ -1973,7 +2031,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void updateFormPagamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); @@ -2148,7 +2206,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void salvaStampaPratica(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); @@ -2166,7 +2224,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void invioMailAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); @@ -2207,12 +2265,20 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFilePagamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request); ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); long pagamentoId = ParamUtil.getLong(uploadRequest, "pagamentoId"); + String numeroBollettino = ParamUtil.getString(request, "numeroBollettino", StringPool.BLANK); + if(numeroBollettino.equals(StringPool.BLANK)){ + numeroBollettino= ParamUtil.getString(uploadRequest, "numeroHBollettino", StringPool.BLANK); + if(!numeroBollettino.equals(StringPool.QUESTION)){ + SessionErrors.add(request, "error.geniocivilefe.pagamento.bollettino"); + } + numeroBollettino=StringPool.BLANK; + } String sourceFileName = uploadRequest.getFileName("docFile"); File file = uploadRequest.getFile("docFile"); if (Validator.isNotNull(sourceFileName) && file != null) { @@ -2233,7 +2299,7 @@ public class FascicoloFePortlet extends MVCPortlet { PortalUtil.copyRequestParameters(request, response); } else { byte[] content = FileUtil.getBytes(file); - PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, content, sourceFileName, serviceContext); + PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, content, numeroBollettino, sourceFileName, serviceContext); } } catch (Exception e) { PortalUtil.copyRequestParameters(request, response); @@ -2243,7 +2309,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeDomandaEsente(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); @@ -2260,7 +2326,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeIntegrazione(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); if (Validator.isNotNull(dettPraticaId)) { @@ -2271,7 +2337,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeCambioSoggetti(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); if (Validator.isNotNull(dettPraticaId)) { @@ -2282,7 +2348,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java index 3c2a6d0b..80b2e33d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java @@ -1,5 +1,34 @@ package it.tref.liferay.portos.fe.portlet; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONArray; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.repository.model.FileEntry; +import com.liferay.portal.kernel.servlet.HttpHeaders; +import com.liferay.portal.kernel.servlet.SessionErrors; +import com.liferay.portal.kernel.upload.UploadPortletRequest; +import com.liferay.portal.kernel.util.ContentTypes; +import com.liferay.portal.kernel.util.DateFormatFactoryUtil; +import com.liferay.portal.kernel.util.FileUtil; +import com.liferay.portal.kernel.util.HttpUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; +import com.liferay.util.bridges.mvc.MVCPortlet; + import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; @@ -38,35 +67,6 @@ import javax.portlet.PortletException; import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONArray; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.json.JSONSerializer; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.servlet.HttpHeaders; -import com.liferay.portal.kernel.servlet.SessionErrors; -import com.liferay.portal.kernel.upload.UploadPortletRequest; -import com.liferay.portal.kernel.util.ContentTypes; -import com.liferay.portal.kernel.util.DateFormatFactoryUtil; -import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.HttpUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; -import com.liferay.util.bridges.mvc.MVCPortlet; - public class SoggettiPraticaPortlet extends MVCPortlet { private static Log _log = LogFactoryUtil.getLog(SoggettiPraticaPortlet.class); @@ -202,6 +202,7 @@ public class SoggettiPraticaPortlet extends MVCPortlet { long soggettoSostituitoId = ParamUtil.getLong(actionRequest, "soggettoSostituitoId"); ServiceContext serviceContext = ServiceContextFactory.getInstance(Soggetto.class.getName(), actionRequest); long userId = PortalUtil.getUserId(actionRequest); + try { actionResponse.setRenderParameter("mvcPath", "html/soggettipratica/edit_soggetto.jsp"); boolean tmp = false; @@ -209,29 +210,34 @@ public class SoggettiPraticaPortlet extends MVCPortlet { tmp = true; } Soggetto soggetto = null; - if (soggettoId == 0) { - soggetto = SoggettoServiceUtil.addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, - codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, - comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, - numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via, - numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, - comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneEstero, albo, - alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, - aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, null, soggettoSostituitoId, 0L, tmp, serviceContext); - } else { - soggetto = SoggettoServiceUtil.updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, - cognome, codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, - comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, - numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via, - numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, - comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneEstero, albo, - alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, - aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, null, soggettoSostituitoId, 0L, tmp, serviceContext); + if(controlloTipologia(userId, codiceFiscale, tipologiaSoggetto)){ + if (soggettoId == 0) { + soggetto = SoggettoServiceUtil.addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, + codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, + comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, + numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via, + numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, + comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneEstero, albo, + alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, + aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, + dettPraticaIdRimozione, null, soggettoSostituitoId, 0L, tmp, serviceContext); + } else { + soggetto = SoggettoServiceUtil.updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, + cognome, codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, + comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, + numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via, + numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, + comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneEstero, albo, + alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, + aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, + dettPraticaIdRimozione, null, soggettoSostituitoId, 0L, tmp, serviceContext); + } + + actionResponse.setRenderParameter("soggettoId", String.valueOf(soggetto.getSoggettoId())); + }else{ + SessionErrors.add(actionRequest, "error"); } PortalUtil.copyRequestParameters(actionRequest, actionResponse); - actionResponse.setRenderParameter("soggettoId", String.valueOf(soggetto.getSoggettoId())); actionResponse.setRenderParameter("closePopup", String.valueOf(true)); } catch (PortalException e) { _log.error(e, e); @@ -411,10 +417,10 @@ public class SoggettiPraticaPortlet extends MVCPortlet { QueryUtil.ALL_POS, QueryUtil.ALL_POS, orderByComparator); } for (Soggetto soggetto : soggetti) { - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); - jsonSerializer.exclude("class"); - String serialized = jsonSerializer.serialize(SoggettoSoap.toSoapModel(soggetto)); - jsonSoggetti.put(serialized); + JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); + jsonSerializer.exclude("class"); + String serialized = jsonSerializer.serialize(SoggettoSoap.toSoapModel(soggetto)); + jsonSoggetti.put(serialized); } } writeJSON(request, response, jsonSoggetti); @@ -452,4 +458,44 @@ public class SoggettiPraticaPortlet extends MVCPortlet { throw new IOException(e); } } + + private boolean controlloTipologia(long userId, String codiceFiscale, String tipo){ + + try { + OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_soggetto", + "createDate", false); + + List soggetti = SoggettoLocalServiceUtil.findByUserId_CodiceFiscale(userId, codiceFiscale, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, orderByComparator); + + for (Soggetto soggetto : soggetti) { + switch (tipo) { + case TipoSoggettoUtil.COLLAUDATORE: + if(soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DIRETTORE_LAVORI || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.PROGETTISTA || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DITTA){ + return false; + } + break; + case TipoSoggettoUtil.DIRETTORE_LAVORI: + if(soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.COLLAUDATORE || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DITTA){ + return false; + } + break; + case TipoSoggettoUtil.DITTA: + if(soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DIRETTORE_LAVORI || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.PROGETTISTA || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DITTA){ + return false; + } + break; + case TipoSoggettoUtil.PROGETTISTA: + if(soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.COLLAUDATORE || soggetto.getTipologiaSoggetto()==TipoSoggettoUtil.DITTA){ + return false; + } + break; + } + } + } catch (SystemException e) { + + } + + return true; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/FascicoloFEUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/FascicoloFEUtil.java new file mode 100644 index 00000000..452b483f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/FascicoloFEUtil.java @@ -0,0 +1,28 @@ +package it.tref.liferay.portos.fe.util; + +import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.shared.util.Constants; + +public class FascicoloFEUtil { + + public static boolean isDestinazioneEnabled(boolean destinazioneClasse, boolean disabledInput, + boolean enabledByIntegrazione, boolean alertClassi, boolean isPraticaOspedaliera){ + + if(destinazioneClasse){ + return (disabledInput && !enabledByIntegrazione) || isPraticaOspedaliera; + } else { + return (disabledInput && !enabledByIntegrazione) || alertClassi || isPraticaOspedaliera; + } + } + + public static String getTipoProceduraString(IntPratica intPratica){ + if(Constants.PROCEDURA_B.equals(intPratica.getTipoProcedura()) && intPratica.isPraticaOspedaliera()){ + return Constants.PROCEDURA_H_LABEL; + } else { + return intPratica.getTipoProcedura(); + } + } + + + +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java index 2f20d64c..a9d59bf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java @@ -30,6 +30,7 @@ import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import java.text.MessageFormat; import java.text.SimpleDateFormat; @@ -963,7 +964,7 @@ public class ReportFascicoloUtil { } parameters.put("INTEGRAZIONI_VARIANTI", listaDettBeans); // ALLEGATI DOMANDA - List tipologiaAllegatiDomanda = DocumentiPraticaUtil.getDocFineLavori(); + List tipologiaAllegatiDomanda = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); parameters.put( "FIRMA_DIRETTORE", MessageFormat.format(LanguageUtil.get(Locale.ITALIAN, "fl-firma-direttore"), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/tld/liferay-ui.tld b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/tld/liferay-ui.tld index a9a746a8..daa2c534 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/tld/liferay-ui.tld +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/tld/liferay-ui.tld @@ -2014,6 +2014,11 @@ input-field com.liferay.taglib.ui.InputFieldTag JSP + + autoComplete + false + true + autoFocus false diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/edit_allegato.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/edit_allegato.jsp index f23ff005..45cb66cd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/edit_allegato.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/edit_allegato.jsp @@ -1,3 +1,4 @@ +<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.service.CollaudoServiceUtil"%> @@ -64,7 +65,7 @@ int dimensioneMassimaAllegati = (int) ((Short) company.getExpandoBridge() }else if("page_allegati".equals(comingFrom)){ tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); }else if("page_fine_lavori".equals(comingFrom)){ - tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); + tipologiaAllegati = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); }else if("page_collaudo".equals(comingFrom)){ tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp index 3fda7f00..394fbd73 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp @@ -167,7 +167,7 @@ if (comingFromGeologica) { } else if (comingFromAllegati) { tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); } else if (comingFromFineLavori) { - tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); + tipologiaAllegati = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); } else if (comingFromCollaudo) { tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); } @@ -224,8 +224,8 @@ for (String codiceDoc : tipologiaAllegati) { %>
        <%=docPraticas.size()%> - + <% if (docPraticas.isEmpty()) { %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view_accordion.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view_accordion.jsp index c2d4284e..2d18c9d8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view_accordion.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view_accordion.jsp @@ -1,3 +1,4 @@ +<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> @@ -45,7 +46,7 @@ if ("allegati_geologici".equals(tipoAllegati)) { tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); type = "ag"; } else if ("allegati_fine_lavori".equals(tipoAllegati)) { - tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); + tipologiaAllegati = ValidazionePraticaUtil.getDocFineLavori(intPraticaId); type = "afl"; } else if ("allegati_collaudo".equals(tipoAllegati)) { tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp index d072ad0c..777fef66 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp @@ -1,3 +1,5 @@ +<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> @@ -72,33 +74,35 @@ String random = StringUtil.randomId().toString(); - - - - - - - - - - - <% - Map dataMap = new HashMap(); - dataMap.put("id", "dialogAllegaAsseverazione"); - dataMap.put("title", "Allega file Asseverazione"); - %> - - - - - - - - - - - + + + + + + + + + + + + <% + Map dataMap = new HashMap(); + dataMap.put("id", "dialogAllegaAsseverazione"); + dataMap.put("title", "Allega file Asseverazione"); + %> + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp index 1bcea7d2..b2fb0b46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp @@ -48,6 +48,7 @@ if (!direttori.isEmpty()) { } String fmName = "fmFineLavori"; boolean disabledEditing = fineLavori.getCompletata(); +boolean nothingToPay = intPratica.isPraticaOspedaliera() || dettPratica.isLavoriPubblici(); request.setAttribute("bean.fineLavori", fineLavori); %> @@ -68,7 +69,7 @@ request.setAttribute("bean.fineLavori", fineLavori); } else if (Validator.isNull(fineLavori.getFineLavoriId())) { label = "new-fine-lavori"; } else { - label = "edit-fine-lavori"; + label = "edit-fine-lavori-title-key"; } %>
        + disabled="<%= true %>" > - +

        - - * <%= LanguageUtil.get(pageContext, "fl-attestazione-note") %> + * <%= LanguageUtil.get(pageContext, "fl-attestazione-note-2") %>

        + disabled="<%= disabledEditing || nothingToPay %>"/>
        + disabled="<%= disabledEditing || nothingToPay %>"/>

        diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_first-step-fine-lavori.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_first-step-fine-lavori.jsp new file mode 100644 index 00000000..633138b5 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_first-step-fine-lavori.jsp @@ -0,0 +1,125 @@ +<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> +<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> +<%@include file="/html/fascicolofe/init.jsp"%> +<% +String backURL = ParamUtil.getString(request, "backURL"); +long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId", 0L); +FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId); +long intPraticaId = 0L; +if(Validator.isNull(fineLavori)){ + intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); + fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); +} else { + intPraticaId = fineLavori.getIntPraticaId(); +} +IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); +DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); +if (dettPratica == null) { + dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); +} +String fmName = "fmFirstStepFineLavori"; +%> + + + + + + + + + + +
        +
        + +
        +
        +
        + + + +
        +
        +
        +
        +
        +
        +
        + + +
        +
        +
        + <%= dateFormatDate.format(dettPratica.getDataInizioLavoriOpera()) %> +
        +
        +
        +
        + +
        +
        +
        + <%= LanguageUtil.get(pageContext, "fl-tipo") %> +
        +
        + + + + + + + + + + + + +
        +
        +
        +
        + <%= LanguageUtil.get(pageContext, "fl-data-fine") %> +
        +
        + + + + + + + +
        +
        +
        +
        +
        +
        +
        +
        + + +Liferay.provide( + window, + 'saveFirstStepFineLavori', + function () { + submitForm(document.<%= fmName %>); + }, + ['aui-base'] +); + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp index 4f999def..deb81682 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp @@ -51,6 +51,7 @@ + var defaultFormValidator = A.config.FormValidator; var procedure = {}; @@ -151,6 +152,42 @@ } ); }; + + var evalAddOspedaliRadio = function() { + var comuneId = $('.add-new-project__comune select').val(); + + A.io.request( + '<%= isOspedalieraEnabledURL %>', + { + data: { + comuneId: comuneId + }, + dataType: 'json', + on: { + success: function() { + var rd = this.get('responseData'); + var ospedalieraRadio = $('.add-new-project__procedura input[value="<%= Constants.PROCEDURA_H %>"]'); + var ospedalieraId = ospedalieraRadio.attr("id"); + var ospedalieraLabel = ospedalieraRadio.closest('label[for="' + ospedalieraId + '"]'); + if(!rd.ospedalieraEnabled){ + var formValidator = Liferay.Form.get('<%= formName %>').formValidator; + ospedalieraRadio.prop('checked', false); + formValidator.validate(); + ospedalieraRadio.prop('disabled', 'disabled'); + if(!ospedalieraLabel.hasClass('hidden')){ + ospedalieraLabel.addClass('hidden'); + } + } else { + ospedalieraRadio.prop('disabled', false).removeClass('disabled'); + if(ospedalieraLabel.hasClass('hidden')){ + ospedalieraLabel.removeClass('hidden'); + } + } + } + } + } + ); + } new Liferay.DynamicSelect([ { @@ -208,6 +245,7 @@ $('.add-new-project__procedura div').removeClass('success'); }else if(val !== 0) { $('.add-new-project__procedura input').prop('disabled', false).removeClass('disabled').parent().css('display', 'block'); + evalAddOspedaliRadio(); } }); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp index a8175132..7db47bac 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp @@ -1,3 +1,4 @@ +<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%> @@ -81,7 +82,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr intPraticaId, Arrays. asList(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); %> + && ValidazionePraticaUtil.canEditUsers(intPraticaId) && Validator.isNull(variazioniSoggetto) %>"> @@ -222,7 +223,8 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr - +
        <% DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); @@ -236,35 +238,59 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        - + <%-- + - + @@ -276,6 +302,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr + --%> - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp index ff11cf5b..502fd493 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp @@ -22,6 +22,8 @@ boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObjec boolean disabledInput = !hasDelegaCompilazioneDomanda || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); + +boolean isPraticaOspedaliera = intPratica.isPraticaOspedaliera(); %> @@ -229,22 +231,26 @@ boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equ
        <%=LanguageUtil.get(pageContext, "de-uso") %>
        + <% + String deUsoValue = BeanParamUtil.getString(dettPratica, request, "deUso"); + boolean isUsoSelected = !deUsoValue.equals("") && !deUsoValue.equals(null); + %> + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("abitativo") %>' value="abitativo"/> + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("produttivo") %>' value="produttivo"/> + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("commercio") %>' value="commercio"/> + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("uffici") %>' value="uffici"/> + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("servizi") %>' value="servizi"/> - + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("deposito") %>' value="deposito"/> + + type="radio" checked='<%= deUsoValue.equalsIgnoreCase("turistico") %>' value="turistico"/>
        @@ -252,15 +258,21 @@ boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equ
        <%=LanguageUtil.get(pageContext, "de-utilizzazione") %>
        + <% + String deUtilizzazioneValue = BeanParamUtil.getString(dettPratica, request, "deUtilizzazione"); + String[] utilizzazioneValuesArray = {"1","2","3"}; + boolean isUtilizzazioneSelected = !deUtilizzazioneValue.equals("") && !deUtilizzazioneValue.equals(null); + %> + type="radio" value="1" + checked='<%= deUtilizzazioneValue.equalsIgnoreCase("1") || (!isUtilizzazioneSelected && isPraticaOspedaliera) %>'/> + type="radio" checked='<%= deUtilizzazioneValue.equalsIgnoreCase("2") %>' value="2"/> + type="radio" checked='<%= deUtilizzazioneValue.equalsIgnoreCase("3") %>' value="3"/>
        @@ -1068,4 +1080,15 @@ function calcPubPerc(val) { var perc = 100 - val; $(".pub-percent input").val(perc); } + +<% if(isPraticaOspedaliera){ %> +$(document).ready(function(){ + var pubPercent = $(".pub-percent input"); + var privPercent = $(".priv-percent input"); + if(pubPercent.val() == 0 && privPercent.val() == 0){ + pubPercent.val(100); + calcPrivPerc(100); + } +}); +<% } %> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp index 75fa3aaa..d2365502 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp @@ -1,3 +1,4 @@ +<%@page import="it.tref.liferay.portos.fe.util.FascicoloFEUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.util.Map"%> @@ -44,13 +45,18 @@ boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObjec boolean disabledInput = !hasDelegaCompilazioneDomanda || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); boolean disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettPratica.getIntPraticaId()); - + +boolean isPraticaOspedaliera = intPratica.isPraticaOspedaliera(); + boolean isGeoEditable = TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()); isGeoEditable = false; boolean enabledByIntegrazione = hasDelegaCompilazioneDomanda && TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); +boolean isDestinazioneClasseEnabled = FascicoloFEUtil.isDestinazioneEnabled(true, disabledInput, enabledByIntegrazione, alertClassi, isPraticaOspedaliera); +boolean isDestinazioneEnabled = FascicoloFEUtil.isDestinazioneEnabled(false, disabledInput, enabledByIntegrazione, alertClassi, isPraticaOspedaliera); + boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante"); boolean isDisabled = disabledInput && !enabledByIntegrazione; @@ -115,7 +121,7 @@ if (!ConfigurazioneLocalServiceUtil.isProduction()) {
        + type="text" value="<%=FascicoloFEUtil.getTipoProceduraString(intPratica)%>" />
        - +
        -
        -
        + test='<%=((disabledInput && !enabledByIntegrazione) || !disabledCollaudoStatico || + intPratica.getStatoPratica().equals("")) && !isPraticaOspedaliera %>'> - +
        - +
        - - - -
        @@ -508,61 +523,76 @@ function duplicati(input) {

        A. <%=LanguageUtil.get(pageContext, "destinazione-A")%>

         

        1. <%=LanguageUtil.get(pageContext, "destinazione-A1")%>

        - - -

         

        2. <%=LanguageUtil.get(pageContext, "destinazione-A2")%>

         

        - - - -

         

        3. <%=LanguageUtil.get(pageContext, "destinazione-A3")%>

         

        -

         

        4. <%=LanguageUtil.get(pageContext, "destinazione-A4")%>

         

        - - - - - -

         

        5. <%=LanguageUtil.get(pageContext, "destinazione-A5")%>

         

        -

         

        @@ -572,74 +602,93 @@ function duplicati(input) {

        B) <%=LanguageUtil.get(pageContext, "destinazione-B")%>

         

        1. <%=LanguageUtil.get(pageContext, "destinazione-B1")%>

        - - -

         

        2. <%=LanguageUtil.get(pageContext, "destinazione-B2")%>

         

        - - - - - - - - - -

         

        3. <%=LanguageUtil.get(pageContext, "destinazione-B3")%>

         

        - -

         

        4. <%=LanguageUtil.get(pageContext, "destinazione-B4")%>

         

        - - -

         

        5. <%=LanguageUtil.get(pageContext, "destinazione-B5")%>

         

        -

         

        @@ -678,9 +727,16 @@ function duplicati(input) {
      • + <% + String tcRiparazioneInterventoLocalClass = ""; + if(isPraticaOspedaliera){ + tcRiparazioneInterventoLocalClass = "hide"; + } + %>
      • + disabled="<%=(disabledInput && !enabledByIntegrazione) || !checked || proceduraC || isPraticaOspedaliera %>" + name="tcRiparazioneInterventoLocale" label="tc-riparazione-intervento-locale" + cssClass="<%= tcRiparazioneInterventoLocalClass %>" wrapperCssClass="<%= tcRiparazioneInterventoLocalClass %>" />
    @@ -836,7 +892,7 @@ AUI().ready(function(A){ checkIfDisableSistemiCostruttivi(); checkIfDisableInfrastrutture(); - + checkCollaudoStatico(); }); @@ -894,6 +950,20 @@ $('#destinazioneinazione input').on('change', function(){ checkIfDisableInfrastrutture(); }); +$('#lavoriPubbliciCheckbox').on('change', function() { + var _this = $(this), + checked = _this.prop('checked'), + esenteBolloCkBx = $('#normEsenteBolloCheckbox'), + esenteBolloInput = $('#normEsenteBollo'), + esenteSpeseCkBx = $('#normEsenteSpeseCheckbox'), + esenteSpeseInput = $('#normEsenteSpese'); + + esenteBolloCkBx.prop("checked", checked); + esenteBolloInput.val(checked); + esenteSpeseCkBx.prop("checked", checked); + esenteSpeseInput.val(checked); +}); + $('#normDpr input[type=checkbox]').change(function() { var _this = $(this), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp index 3b80db1d..2c48bf36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp @@ -28,6 +28,8 @@ if (dettPratica == null) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); String tipoIntegrazione = (String)request.getAttribute("bean.tipoIntegrazione"); +boolean isPraticaOspedaliera = intPratica.isPraticaOspedaliera(); + boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObject(request, dettPratica.getDettPraticaId(), "hasDelegaCompilazioneDomanda"); boolean disabledInput = !hasDelegaCompilazioneDomanda || (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) && dettPratica.isCompleta()); @@ -78,7 +80,7 @@ boolean inBO = ParamUtil.getBoolean(request, "inBO", false); }); Liferay.on('soggetti-ready',function(event) { - if(<%= !disabledInput %>){ + if(<%= !disabledInput && !isPraticaOspedaliera %>){ var isCommittenteAndDitta = event.isCommittenteAndDitta; if(isCommittenteAndDitta){ A.one('#collaudoStaticoCheckbox').addClass('disabled'); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify-payment-guide.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify-payment-guide.jsp new file mode 100644 index 00000000..4b9366b2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify-payment-guide.jsp @@ -0,0 +1,35 @@ +

    Il pagamento dei “Diritti Fissi” potrà essere effettuato solo tramite la piattaforma regionale https://pagamenti.regione.sicilia.it/static/.

    +

    Per effettuare il pagamento seguire i seguenti step:

    +
      +
    1. +

      connettersi alla piattaforma https://pagamenti.regione.sicilia.it/static/

      +
    2. +
    3. +

      Selezionare il pulsante “accedi al servizio”

      +
    4. +
    5. +

      Cercare il servizio con codice 1819

      +
    6. +
    7. +

      Selezionare il servizio 1819 - CAPITOLO 1992 - DIRITTI FISSI DOVUTI PER L'ATTIVITA' DI ISTITUTO ESPLETATA A FAVORE DEI PRIVATI DAGLI UFFICI DEL GENIO CIVILE DELLA REGIONE.

      +
    8. +
    9. +

      Inserire i dati richiesti con queste note:

      +
        +
      1. +

        Causale: inserire il valore id della pratica

        +
        + Image error
        +
      2. +
      3. +

        Nome, Cognome, Codice Fiscale, Indirizzo devono essere relativi al committente principale.

        +
      4. +
      +
    10. +
    11. +

      Procedere con il pagamento.

      +
    12. +
    13. +

      Caricare il file di ricevuta sul portale

      +
    14. +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp index a6b58043..705eb68c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp @@ -46,6 +46,7 @@ } String formRicevutaPagamento = "fmRicevuta"; + String testoPagamento = (String) company.getExpandoBridge().getAttribute("testo_pagamento", false); //String formSostituisciPagamento = "fmSostituisci"; String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); @@ -63,6 +64,7 @@ +

    Calcolo importo

    @@ -118,12 +120,16 @@ -
    - <%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %> +
    + <%= testoPagamento %>
    -
    +
    + + 250 + + 'p7m,pdf' @@ -254,7 +260,7 @@
    <% String paymentConfirmText = ""; - paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual"); + paymentConfirmText = (String) company.getExpandoBridge().getAttribute("testo_pagamento_breve", false); %> <%= paymentConfirmText %>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp index 08630528..05971086 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp @@ -418,7 +418,9 @@ List tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, Tip } } } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05.equals(codiceDoc) || DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) { - if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) ) { + if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || + (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && + (!dettPratica.isLavoriPubblici() || (dettPratica.isLavoriPubblici() && intPratica.isPraticaOspedaliera())))) { boolean isValid = false; if (dettPratica.getNormArt3com3()) { isValid = true; @@ -435,7 +437,9 @@ List tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, Tip } } } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06.equals(codiceDoc)) { - if (TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) || TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)) { + if (TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || + (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && + (!dettPratica.isLavoriPubblici() || (dettPratica.isLavoriPubblici() && intPratica.isPraticaOspedaliera())))) { boolean isValid = false; if (dettPratica.getNormArt3com3()) { isValid = true; @@ -471,7 +475,7 @@ List tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, Tip } else { isValid = true; } - if (!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) { + if (!isValid && ((dettPratica.isLavoriPubblici() && !intPratica.isPraticaOspedaliera()) || TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto))) { isValid = true; } clazz += " icon-asseverazioni fa "; @@ -487,7 +491,7 @@ List tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, Tip if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) { isValid = true; } - if (!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) { + if (!isValid && ((dettPratica.isLavoriPubblici() && !intPratica.isPraticaOspedaliera()) || TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto))) { isValid = true; } clazz += " icon-asseverazioni fa "; @@ -514,7 +518,7 @@ List tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, Tip } else { boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto); - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); + boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() && !intPratica.isPraticaOspedaliera(); if (tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.size() == 0) { isRequired = false; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp index 618cfb07..a8665c0e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp @@ -1,3 +1,6 @@ +<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> +<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> +<%@page import="com.liferay.portal.model.Organization"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> @@ -24,6 +27,7 @@ long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + String testoPagamento = (String) company.getExpandoBridge().getAttribute("testo_pagamento", false); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); if(dettPratica==null){ dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); @@ -67,6 +71,8 @@ + + @@ -137,7 +143,8 @@
    - <%=LanguageUtil.get(pageContext, "text-pagamento-manuale-spese")%> + <%-- <%@ include file="/html/fascicolofe/verify-payment-guide.jsp" %> --%> +
    <%= testoPagamento %>
    'p7m,pdf' +
    @@ -192,13 +200,17 @@ -
    +
    <%=LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli")%>
    -
    +
    + + 250 + + 'p7m,pdf' @@ -282,7 +294,7 @@
    -
    +
    <% @@ -367,18 +379,20 @@
    -
    +
    Totale importo
    <% String speseIstruttoria = Validator.isNull(pagamentoOneri) ? "0,00" : pagamentoOneri.getImporto(); - if(speseIstruttoria.length() == 2){ - speseIstruttoria = speseIstruttoria + ",00"; - } + if(speseIstruttoria.length() == 2){ + speseIstruttoria = speseIstruttoria + ",00"; + } %>
    € <%=speseIstruttoria%>
    +
    +
    <%= testoPagamento %>
    @@ -421,6 +435,7 @@ %>
    <%=NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo)%> +
    @@ -447,7 +462,7 @@
    <% String paymentConfirmText = ""; - paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual"); + paymentConfirmText = (String) company.getExpandoBridge().getAttribute("testo_pagamento_breve", false); %> <%=paymentConfirmText%>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori.jsp index 34ff7748..f97baeef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori.jsp @@ -1,3 +1,6 @@ +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> @@ -19,6 +22,7 @@ long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId",0l); FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); %> @@ -55,7 +59,7 @@ linkCssClass="btn" /> <% - boolean isEsente = fineLavori.getNormEsenteBollo(); + boolean isEsente = fineLavori.getNormEsenteBollo() || intPratica.isPraticaOspedaliera(); %>
    <% - List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); +// List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); + List tipologiaAllegati = ValidazionePraticaUtil.getDocObbligatoriFineLavori(intPraticaId); String section = "valida_fine-lavori"; %>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp index dcbd6899..9fc484bb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp @@ -17,6 +17,7 @@ long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); +String testoPagamento = (String) company.getExpandoBridge().getAttribute("testo_pagamento", false); if (fineLavori == null) { fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); } @@ -43,6 +44,8 @@ if (Validator.isNotNull(pagamento)) { String formRicevutaPagamento = "fmRicevuta"; String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); %> + + @@ -109,15 +112,19 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); -
    - <%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %> - +
    + <%= testoPagamento %> + <%-- <%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %> --%>
    -
    +
    + + 250 + +
    - Pagamento diritti fissi completato + <%= LanguageUtil.get(pageContext, "text-pagamento-completato-bolli") %>
    @@ -167,11 +174,11 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); -
    +
    <%= LanguageUtil.get(pageContext, "text-pagamento-manuale-oneri") %>
    -
    +
    @@ -183,6 +190,7 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); 'p7m,pdf' +
    @@ -262,7 +270,7 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
    -
    Totale importo
    +
    Totale importo *
    <% BigDecimal importoBolli = null; if (Validator.isNotNull(pagamento)) { @@ -280,6 +288,11 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); LocaleUtil.getSiteDefault()).format(importoBolli) %>
    +
    +
    + <%= LanguageUtil.get(pageContext, "label-disclaimer-bollo-16-euro") %> +
    +
    @@ -345,7 +358,7 @@ String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
    <% String paymentConfirmText = StringPool.BLANK; - paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual"); + paymentConfirmText = (String) company.getExpandoBridge().getAttribute("testo_pagamento_breve", false); %> <%= paymentConfirmText %>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf index 114ee31a..31efe62b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf @@ -74,7 +74,7 @@ } %> -
    +
    "> @@ -82,7 +82,7 @@ - " style="padding: 5px;margin-right:5px;"> + " style="padding: 5px;margin-right:5px;width: 100%;"> SP @@ -92,6 +92,13 @@
    +
    + + + H + + +
    <%= intPratica.getTitle(locale,false) %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp index db3d6985..f7665d89 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp @@ -146,6 +146,7 @@ String urlIframeMappe = dettPratica.getUrlMappeBo(request, comune, true); ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'> <%= LanguageUtil.get(pageContext, "norm-dm03") %>
    + <%--
    @@ -156,6 +157,7 @@ String urlIframeMappe = dettPratica.getUrlMappeBo(request, comune, true); ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'> <%= LanguageUtil.get(pageContext, "norm-dprg02") %>
    + --%>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp index e446fe20..4e180615 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareridacompletare.jsp @@ -52,7 +52,7 @@ %> - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp index 936aae14..838d6ee6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp @@ -86,6 +86,10 @@ boolean inBO = ParamUtil.getBoolean(request, "inBO");

    + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5 index 59d358f0..091008c0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml.MD5 @@ -1 +1 @@ -c4f33c86417a68eee61a20a1ce17f6da +887cd0518266a1239f9bbb476c5323de diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath index 4b2bb233..fcf44f2b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.project index 140046ba..65a765ba 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492480 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component index 9fda3447..7a047eaa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index 5dd5d0db..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,10 +1,10 @@ + - - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-firma-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-firma-shared.jar deleted file mode 100644 index 59edbe88..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/portos-firma-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/liferay-hook.xml index 944195a7..967a6059 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java index 5e24d023..f947ce3b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java @@ -1,19 +1,5 @@ package it.tref.liferay.portos.firma.servlet; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONDeserializer; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONSerializer; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.servlet.ServletResponseUtil; -import com.liferay.portal.kernel.util.StreamUtil; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; - -import it.tref.firma.shared.Risposta; import it.tref.liferay.portos.firma.util.FirmaGetUtil; import it.tref.liferay.portos.firma.util.FirmaPostUtil; @@ -27,6 +13,19 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONDeserializer; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.servlet.ServletResponseUtil; +import com.liferay.portal.kernel.util.StreamUtil; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; + public class FirmaServlet extends HttpServlet { private static final long serialVersionUID = 1L; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java index df63385b..f53a33f9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java @@ -1,8 +1,5 @@ package it.tref.liferay.portos.firma.util; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; - import it.tref.firma.shared.Risposta; import it.tref.firma.shared.RispostaCostanti; import it.tref.firma.shared.Stile; @@ -12,6 +9,9 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; + @SuppressWarnings("serial") public class FirmaGetUtil { private static final Map configurazione = new HashMap(54) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java index f0a20abc..f9e3c3d6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java @@ -86,8 +86,7 @@ public class FirmaPostUtil { restFile.setNomeFile(LanguageUtil.get(Locale.ITALIAN, tipoDocumento) + StringPool.SPACE + StringPool.DASH + StringPool.SPACE + intPratica.getTitle(Locale.ITALIAN, true)); - restFile.setFile(""); - + restFile.setFile(StringPool.BLANK); Group group = GroupLocalServiceUtil.getGroup(avviso.getGroupId()); Organization organization = OrganizationLocalServiceUtil.getOrganization(group .getOrganizationId()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/ivy.xml.MD5 index d2d59262..ddcc2b49 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/ivy.xml.MD5 @@ -1 +1 @@ -273d0824c78cff25a3e65a82a4794cba +a15636541520cd34beccb182ca342eb1 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-importazione-portlet/bin/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-importazione-portlet/bin/.gitignore deleted file mode 100644 index d8fe4fa7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-importazione-portlet/bin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.project diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath index 4b2bb233..a236e703 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.project index b8b1dc95..ddd2cf09 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492487 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..400ed549 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ - + + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/lib/portos-jbpm-log-task-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/lib/portos-jbpm-log-task-portlet-service.jar deleted file mode 100644 index 991c165d..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/lib/portos-jbpm-log-task-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/src/service.properties index 8a139d5a..372e3658 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=WorkflowWeb - build.number=10 - build.date=1672844821415 + build.number=9 + build.date=1489666088972 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml.MD5 deleted file mode 100644 index 92687bb3..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml.MD5 +++ /dev/null @@ -1 +0,0 @@ -2ba9fdf0fa9799422d0120a5d4b9fea7 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath index 4b2bb233..e3868bf1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.project index 1b9a0b97..ec7efd4d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492503 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.component index 282ada99..d5f205ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-kaleo-controller-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-kaleo-controller-portlet-service.jar deleted file mode 100644 index 8351eb24..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/lib/portos-kaleo-controller-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/service.xml index 3d1e95f6..efada5b8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/service.xml @@ -1,9 +1,9 @@ - + 3FC portos_kaleo_controller - + @@ -45,9 +45,9 @@ - + - + @@ -97,7 +97,7 @@ - + @@ -160,7 +160,7 @@ - + @@ -198,7 +198,7 @@ - + @@ -236,11 +236,12 @@ - + + - + @@ -279,14 +280,14 @@ - + - + @@ -321,5 +322,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.properties index 12ee760b..e69de29b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.properties @@ -1,13 +0,0 @@ -IX_4052E28=kaleoinstance.ClassPK - -IX_DD3686D9=kaleoinstancetoken.ClassPK - -IX_391060DE=kaleolog.CompanyId -IX_169323D4=kaleolog.KaleoDefinitionId -IX_56A01716=kaleolog.KaleoInstanceId - -IX_5D4AA65B=kaleotaskassignmentinstance.CompanyId -IX_38229C51=kaleotaskassignmentinstance.KaleoDefinitionId -IX_C9BD8AD3=kaleotaskassignmentinstance.KaleoInstanceId - -IX_3E673D5E=kaleotaskinstancetoken.ClassPK \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.sql index a32f8ad8..8b137891 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/indexes.sql @@ -1,13 +1 @@ -create index IX_4052E28 on kaleoinstance (classPK); -create index IX_DD3686D9 on kaleoinstancetoken (classPK); - -create index IX_391060DE on kaleolog (companyId); -create index IX_169323D4 on kaleolog (kaleoDefinitionId); -create index IX_56A01716 on kaleolog (kaleoInstanceId); - -create index IX_5D4AA65B on kaleotaskassignmentinstance (companyId); -create index IX_38229C51 on kaleotaskassignmentinstance (kaleoDefinitionId); -create index IX_C9BD8AD3 on kaleotaskassignmentinstance (kaleoInstanceId); - -create index IX_3E673D5E on kaleotaskinstancetoken (classPK); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/tables.sql index 63d5adb3..8b137891 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/tables.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/sql/tables.sql @@ -1,143 +1 @@ -create table kaleoinstance ( - kaleoInstanceId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - kaleoDefinitionName VARCHAR(200) null, - kaleoDefinitionVersion INTEGER, - rootKaleoInstanceTokenId LONG, - className VARCHAR(200) null, - classPK LONG, - completed BOOLEAN, - completionDate DATE null, - workflowContext TEXT null -); -create table kaleoinstancetoken ( - kaleoInstanceTokenId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - kaleoInstanceId LONG, - parentKaleoInstanceTokenId LONG, - currentKaleoNodeId LONG, - currentKaleoNodeName VARCHAR(200) null, - className VARCHAR(200) null, - classPK LONG, - completed BOOLEAN, - completionDate DATE null -); - -create table kaleolog ( - kaleoLogId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoClassName VARCHAR(200) null, - kaleoClassPK LONG, - kaleoDefinitionId LONG, - kaleoInstanceId LONG, - kaleoInstanceTokenId LONG, - kaleoTaskInstanceTokenId LONG, - kaleoNodeName VARCHAR(200) null, - terminalKaleoNode BOOLEAN, - kaleoActionId LONG, - kaleoActionName VARCHAR(200) null, - kaleoActionDescription STRING null, - previousKaleoNodeId LONG, - previousKaleoNodeName VARCHAR(200) null, - previousAssigneeClassName VARCHAR(200) null, - previousAssigneeClassPK LONG, - currentAssigneeClassName VARCHAR(200) null, - currentAssigneeClassPK LONG, - type_ VARCHAR(75) null, - comment_ TEXT null, - startDate DATE null, - endDate DATE null, - duration LONG, - workflowContext TEXT null -); - -create table kaleonode ( - kaleoNodeId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - name VARCHAR(200) null, - metadata STRING null, - description STRING null, - type_ VARCHAR(75) null, - initial_ BOOLEAN, - terminal BOOLEAN -); - -create table kaleotask ( - kaleoTaskId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - kaleoNodeId LONG, - name VARCHAR(200) null, - description STRING null -); - -create table kaleotaskassignmentinstance ( - kaleoTaskAssignmentInstanceId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - kaleoInstanceId LONG, - kaleoInstanceTokenId LONG, - kaleoTaskInstanceTokenId LONG, - kaleoTaskId LONG, - kaleoTaskName VARCHAR(200) null, - assigneeClassName VARCHAR(200) null, - assigneeClassPK LONG, - completed BOOLEAN, - completionDate DATE null -); - -create table kaleotaskinstancetoken ( - kaleoTaskInstanceTokenId LONG not null primary key, - groupId LONG, - companyId LONG, - userId LONG, - userName VARCHAR(200) null, - createDate DATE null, - modifiedDate DATE null, - kaleoDefinitionId LONG, - kaleoInstanceId LONG, - kaleoInstanceTokenId LONG, - kaleoTaskId LONG, - kaleoTaskName VARCHAR(200) null, - className VARCHAR(200) null, - classPK LONG, - completionUserId LONG, - completed BOOLEAN, - completionDate DATE null, - dueDate DATE null, - workflowContext TEXT null -); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml index ad3265cc..6e71ac33 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml @@ -6,47 +6,33 @@ - - 200 - + - - 200 - + - - 200 - + - - - + - - 200 - + - - 200 - - - 200 - + + @@ -56,73 +42,45 @@ - - 200 - + - - 200 - + - - 200 - + - - 200 - - - - + + - - 200 - - - 200 - + + - - 200 - + - - - + - - - + - - 200 - + - - 200 - - - - - - - + + + @@ -132,28 +90,20 @@ - - 200 - + - - 200 - - - - + + - - 200 - + @@ -161,12 +111,8 @@ - - 200 - - - 200 - + + @@ -176,28 +122,20 @@ - - 200 - + - - 200 - - - 200 - + + - - - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/scheduler/SchedulerKaleoController.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/scheduler/SchedulerKaleoController.java index b4e11705..cdbad433 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/scheduler/SchedulerKaleoController.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/scheduler/SchedulerKaleoController.java @@ -275,6 +275,8 @@ public class SchedulerKaleoController implements MessageListener { private void patchTaskEsitiForWF(List lista){ + _log.info("start patchTaskEsitiForWF"); + for (Object[] objs : lista) { long kaleotaskinstancetokenid = Long.parseLong(String.valueOf(objs[0])); long kaleoinstancetokenid = Long.parseLong(String.valueOf(objs[1])); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/service.properties index f1650f28..cace6c4a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_kaleo_controller - build.number=8 - build.date=1672844308539 + build.number=6 + build.date=1574151325177 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/ivy.xml.MD5 index 706e4a97..42fe76f7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/ivy.xml.MD5 @@ -1 +1 @@ -0f0b5b50a25011b4f0d632dde76fd71b +28d87e1dbe151a6703074206020c93ee diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath index 4b2bb233..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.project index 2bcb5506..59a67b56 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492513 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar index 03002516..71714a3c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar deleted file mode 100644 index 9681a05c..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/liferay-hook.xml index 944195a7..967a6059 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/service.xml index 4a9d3804..8b9a04f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormDefinitionLinkModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormDefinitionLinkModelImpl.java index c153c966..4f74b919 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormDefinitionLinkModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormDefinitionLinkModelImpl.java @@ -74,7 +74,7 @@ public class FormDefinitionLinkModelImpl extends BaseModelImpl { "transitionName", Types.VARCHAR }, { "formParameters", Types.CLOB } }; - public static final String TABLE_SQL_CREATE = "create table portos_Kaleo_FormLog (formLogId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,workflowInstanceId LONG,workflowTaskId LONG,transitionName VARCHAR(75) null,formParameters TEXT null)"; + public static final String TABLE_SQL_CREATE = "create table portos_Kaleo_FormLog (formLogId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(200) null,createDate DATE null,modifiedDate DATE null,workflowInstanceId LONG,workflowTaskId LONG,transitionName VARCHAR(200) null,formParameters TEXT null)"; public static final String TABLE_SQL_DROP = "drop table portos_Kaleo_FormLog"; public static final String ORDER_BY_JPQL = " ORDER BY formLog.createDate ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_Kaleo_FormLog.createDate ASC"; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormTemplateLinkModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormTemplateLinkModelImpl.java index 8110fda2..55d22b2f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormTemplateLinkModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/model/impl/FormTemplateLinkModelImpl.java @@ -64,7 +64,7 @@ public class FormTemplateLinkModelImpl extends BaseModelImpl { "kaleoNodeId", Types.BIGINT }, { "transitionName", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_Kaleo_FormTemplateLink (formTemplateLinkId LONG not null primary key,formDefinitionLinkId LONG,ddmTemplateId LONG,kaleoNodeId LONG,transitionName VARCHAR(75) null)"; + public static final String TABLE_SQL_CREATE = "create table portos_Kaleo_FormTemplateLink (formTemplateLinkId LONG not null primary key,formDefinitionLinkId LONG,ddmTemplateId LONG,kaleoNodeId LONG,transitionName VARCHAR(200) null)"; public static final String TABLE_SQL_DROP = "drop table portos_Kaleo_FormTemplateLink"; public static final String ORDER_BY_JPQL = " ORDER BY formTemplateLink.formTemplateLinkId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_Kaleo_FormTemplateLink.formTemplateLinkId ASC"; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormDefinitionLinkPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormDefinitionLinkPersistenceImpl.java index dbedd1a7..b455af46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormDefinitionLinkPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormDefinitionLinkPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.kaleo.NoSuchFormDefinitionLinkException; import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; import it.tref.liferay.portos.kaleo.model.impl.FormDefinitionLinkImpl; import it.tref.liferay.portos.kaleo.model.impl.FormDefinitionLinkModelImpl; +import it.tref.liferay.portos.kaleo.service.persistence.FormDefinitionLinkPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormLogPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormLogPersistenceImpl.java index b1b227fa..130fab6e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormLogPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormLogPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.kaleo.NoSuchFormLogException; import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.model.impl.FormLogImpl; import it.tref.liferay.portos.kaleo.model.impl.FormLogModelImpl; +import it.tref.liferay.portos.kaleo.service.persistence.FormLogPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormTemplateLinkPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormTemplateLinkPersistenceImpl.java index 2b7e6a71..d863ff1e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormTemplateLinkPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/service/persistence/FormTemplateLinkPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.kaleo.NoSuchFormTemplateLinkException; import it.tref.liferay.portos.kaleo.model.FormTemplateLink; import it.tref.liferay.portos.kaleo.model.impl.FormTemplateLinkImpl; import it.tref.liferay.portos.kaleo.model.impl.FormTemplateLinkModelImpl; +import it.tref.liferay.portos.kaleo.service.persistence.FormTemplateLinkPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/service.properties index 720f52ac..4563d63d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_Kaleo - build.number=22 - build.date=1672843379281 + build.number=20 + build.date=1642599538494 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/init.jsp index f48c6d2d..1c412f4a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@page import="java.util.Arrays"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/edit_form_definition_link.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/edit_form_definition_link.jsp index 79ab159f..7c27449c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/edit_form_definition_link.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/edit_form_definition_link.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.workflow.kaleo.definition.NodeType"%> <%@page import="com.liferay.portal.workflow.kaleo.model.KaleoTransition"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/form_definition_link_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/form_definition_link_action.jsp index cc24d1b3..1df8200b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/form_definition_link_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/form_definition_link_action.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.kaleo.model.FormDefinitionLink"%> <%@page import="com.liferay.portal.kernel.util.Validator"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/init.jsp index 2a47faca..771a9225 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/init.jsp @@ -1,2 +1,3 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/select_workflow_definition.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/select_workflow_definition.jsp index 4a484421..fcdf48fb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/select_workflow_definition.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/select_workflow_definition.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/edit_form_template_link.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/edit_form_template_link.jsp index ebdf9125..b299e5d0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/edit_form_template_link.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/edit_form_template_link.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.kaleo.FormTemplateLinkKaleoNodeIdException"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/form_template_link_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/form_template_link_action.jsp index bf3646b2..bee31ed9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/form_template_link_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/form_template_link_action.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.kaleo.model.FormTemplateLink"%> <%@page import="com.liferay.portal.kernel.util.Validator"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/template_toolbar.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/template_toolbar.jsp index 7ed5a235..5b28a987 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/template_toolbar.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/template_toolbar.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="javax.portlet.PortletRequest"%> <%@page import="com.liferay.portal.kernel.language.UnicodeLanguageUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/view_form_template_links.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/view_form_template_links.jsp index d362e95f..5935af2d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/view_form_template_links.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/template/view_form_template_links.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.language.UnicodeLanguageUtil"%> <%@page import="com.liferay.portal.kernel.dao.search.RowChecker"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/toolbar.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/toolbar.jsp index a71783d3..29837573 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/toolbar.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/toolbar.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portlet.dynamicdatamapping.model.DDMStructure"%> <%@page import="javax.portlet.PortletRequest"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/view.jsp index 86a69556..ad2dc99a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/docroot/html/workflow_form_admin/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil"%> <%@page import="com.liferay.portlet.dynamicdatamapping.model.DDMStructure"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/ivy.xml.MD5 index b516fd24..4240e55c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/ivy.xml.MD5 @@ -1 +1 @@ -cae08a4d6200ab538326b79a73153f0b +7de40a8d6325963ff798df2ebe07ecbc diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath index 4b2bb233..9975372f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,9 +11,11 @@ - + + + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project index 2e5e4599..a38c8f45 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492730 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/portos-log-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/portos-log-shared.jar deleted file mode 100644 index b96aa8a9..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/portos-log-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/liferay-hook.xml index 7ea9cf5f..f4efe922 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/html/init.jsp index bce00918..d43a95e8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/view.jsp index 486845c9..27251fd3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% /** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath index 4b2bb233..502539e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath @@ -1,11 +1,10 @@ - - - + + - + @@ -13,10 +12,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.project index abbb072c..88f25f07 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492777 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.component index 04dff753..d3bd6d76 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,7 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar deleted file mode 100644 index a2f8cfcc..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar deleted file mode 100644 index e1587c22..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-hook.xml index 4bc6119b..01e21b2d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml index e74ca252..ac025c86 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java index 28d02bce..95c932ac 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java @@ -151,7 +151,8 @@ public interface EmailAttachmentPersistence extends BasePersistence { @Override - public void onBeforeRemove(DLFileEntry model) throws ModelListenerException { - - try { - EmailAttachment emailAttachment = EmailAttachmentLocalServiceUtil - .fetchByFileEntryId(model.getFileEntryId()); - if (emailAttachment != null) { - throw new ModelListenerException(); - } - } catch (SystemException e) { - throw new ModelListenerException(e); - } - } + public void onBeforeRemove(DLFileEntry model) throws ModelListenerException {} } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties index 17faecf2..6dc4045d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_Mail - build.number=91 - build.date=1672838524048 + build.number=90 + build.date=1663310360846 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp index e36e8406..fdafd350 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp @@ -21,9 +21,6 @@ <%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> <%@taglib uri="http://liferay.com/tld/ddm" prefix="liferay-ddm" %> <%@page import="it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants"%> - -<%@ page contentType="text/html; charset=UTF-8" %> - <%@page import="com.liferay.portal.kernel.util.GetterUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp index 53176a63..639e1b2f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp @@ -17,28 +17,17 @@ List emailAttachments = EmailAttachmentLocalServiceUtil.findByE - - - - - - - - - - + + + + - - + function initEditor() { @@ -59,8 +48,8 @@ List emailAttachments = EmailAttachmentLocalServiceUtil.findByE - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp index ff13da14..dda35504 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp @@ -6,21 +6,13 @@ String redirect = searchContainer.getIteratorURL().toString(); ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); Email entry = (Email) row.getObject(); %> - - - + - - - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp index f442d185..46334425 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp @@ -8,12 +8,8 @@ long classPK = ParamUtil.getLong(request, "classPK"); String templateName = ParamUtil.getString(request, "templateName"); %> - - - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp index ae7d9d57..ce666fda 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp @@ -118,13 +118,8 @@ long companyId = company.getCompanyId(); - + @@ -158,13 +153,9 @@ long companyId = company.getCompanyId(); <%= TextFormatter.formatStorageSize(fileVersion.getSize(), locale) %> - + <% @@ -191,9 +182,7 @@ long companyId = company.getCompanyId();
    - - - +
    <%! diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/ivy.xml.MD5 index b813789a..144cb25b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/ivy.xml.MD5 @@ -1 +1 @@ -1f8ac7aadaf94495088b42383cd9d705 +0fc42888686cd86e960405746a231750 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath index 4b2bb233..af45f53a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.project index 841e43b6..79065197 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492796 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/lib/portos-maintenance-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/lib/portos-maintenance-portlet-service.jar deleted file mode 100644 index b6f767fd..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/lib/portos-maintenance-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/liferay-hook.xml index 47e9c9fa..6141f4eb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/service.xml index fb874c15..88c74249 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/maintenance/service/persistence/MaintenanceSchedulePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/maintenance/service/persistence/MaintenanceSchedulePersistenceImpl.java index 2d43c614..efe4a7f2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/maintenance/service/persistence/MaintenanceSchedulePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/maintenance/service/persistence/MaintenanceSchedulePersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.maintenance.NoSuchMaintenanceScheduleException; import it.tref.liferay.portos.maintenance.model.MaintenanceSchedule; import it.tref.liferay.portos.maintenance.model.impl.MaintenanceScheduleImpl; import it.tref.liferay.portos.maintenance.model.impl.MaintenanceScheduleModelImpl; +import it.tref.liferay.portos.maintenance.service.persistence.MaintenanceSchedulePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/service.properties index 6ba82e00..2fdd466a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_maintenance - build.number=47 - build.date=1672842772481 + build.number=46 + build.date=1629983422591 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/custom_jsps/html/portlet/login/login.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/custom_jsps/html/portlet/login/login.jsp index dce6f59c..0025417d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/custom_jsps/html/portlet/login/login.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/custom_jsps/html/portlet/login/login.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%-- /** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/edit.jsp index 5dd271f1..0a81415e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/edit.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.maintenance.util.MaintenanceConstants.MaintenanceType"%> <%@page import="it.tref.liferay.portos.maintenance.util.MaintenanceConstants.MaintenanceOnReboot"%> <%@include file="/html/admin_maintenance/init.jsp"%> @@ -27,37 +28,46 @@ if (Validator.isNotNull(maintenanceScheduleId)) { - - - <% for(MaintenanceType maintenanceType : MaintenanceType.values()){ %> - <%=maintenanceType.getDescription() %> - <%} %> + + <% + for (MaintenanceType maintenanceType : MaintenanceType.values()) { + %> + <%= maintenanceType.getDescription() %> + <% + } + %> - - - + - - - <% for(MaintenanceOnReboot maintenanceOnReboot : MaintenanceOnReboot.values()){ %> - <%=maintenanceOnReboot.getDescription() %> - <%} %> + + <% + for (MaintenanceOnReboot maintenanceOnReboot : MaintenanceOnReboot.values()) { + %> + + <%= maintenanceOnReboot.getDescription() %> + + <% + } + %> - - - <% for(MaintenanceStatus maintenanceStatus : MaintenanceStatus.values()){ %> - <%=maintenanceStatus.getDescription() %> - <%} %> + + <% + for (MaintenanceStatus maintenanceStatus : MaintenanceStatus.values()) { + %> + + <%= maintenanceStatus.getDescription() %> + + <% + } + %> - - - - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/init.jsp index bc3709cb..eb4f843f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.maintenance.model.MaintenanceSchedule"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/login_alert.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/login_alert.jsp index cf403e8c..70869955 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/login_alert.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/login_alert.jsp @@ -1,10 +1,9 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/admin_maintenance/init.jsp" %> <% - boolean isMaintenanceMode = false; - List maintenanceSchedules = MaintenanceScheduleLocalServiceUtil.findByStatus(MaintenanceStatus.IN_PROGRESS.getCode()); - if(!maintenanceSchedules.isEmpty()){ - isMaintenanceMode = true; - } +List maintenanceSchedules = MaintenanceScheduleLocalServiceUtil.findByStatus(MaintenanceStatus + .IN_PROGRESS.getCode()); +boolean isMaintenanceMode = !maintenanceSchedules.isEmpty(); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/maintenance_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/maintenance_action.jsp index bbb2fd7b..785eec74 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/maintenance_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/maintenance_action.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/admin_maintenance/init.jsp"%> <% SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); @@ -5,29 +6,19 @@ String redirect = searchContainer.getIteratorURL().toString(); ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); MaintenanceSchedule entry = (MaintenanceSchedule) row.getObject(); %> - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/toolbar.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/toolbar.jsp index d7ba9413..6a2c946d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/toolbar.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/toolbar.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/admin_maintenance/init.jsp"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/view.jsp index 6808d8fb..70c73b83 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/admin_maintenance/view.jsp @@ -1,65 +1,44 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/admin_maintenance/init.jsp" %> <% PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); %> - - <% request.setAttribute("liferay-ui:search:searchContainer", searchContainer); %> - - - - - - - - - - - - - - - - - - - - - - - - - <%= MaintenanceOnReboot.parse(maintenanceSchedule.getOnreboot()).getDescription() %> - - - <%=MaintenanceStatus.parse(maintenanceSchedule.getStatus()).getDescription()%> - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + <% request.setAttribute("liferay-ui:search:searchContainer", searchContainer); %> + + + + + + + + + + + + + <%= MaintenanceOnReboot.parse(maintenanceSchedule.getOnreboot()).getDescription() %> + + + <%=MaintenanceStatus.parse(maintenanceSchedule.getStatus()).getDescription()%> + + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/init.jsp index 59e29fd3..e1e2e836 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="com.liferay.portlet.PortletURLUtil"%> <%@page import="javax.portlet.PortletURL"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/init.jsp index 2a47faca..7f058349 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/init.jsp @@ -1,2 +1,2 @@ - +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/view.jsp index 1ac6b3e1..066bd440 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/docroot/html/poller_maintenance/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/poller_maintenance/init.jsp" %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/ivy.xml.MD5 index 13587a86..cacb8bb1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/ivy.xml.MD5 @@ -1 +1 @@ -0b74f78880e6cbc46320f5d089ab791c +5454e438274b75c5ce26600a335a3f79 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath index 4b2bb233..e2e2522a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath @@ -1,11 +1,9 @@ - - - + - + @@ -13,10 +11,13 @@ - + + + - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.project index 0f58d5eb..b4246e62 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492811 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.component index 0a27d421..703d055c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.component @@ -2,7 +2,13 @@ - + + uses + + + uses + + uses diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f256af25..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,11 +1,11 @@ + - + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index bf17ad8a..f0185538 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index 69e60114..588a679b 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar deleted file mode 100644 index 71714a3c..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/liferay-hook.xml index 7ea9cf5f..f4efe922 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/liferay-hook.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/liferay-hook.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/portlet.xml index 6b093dde..9c8c6157 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + 1 Notification diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java index 48789d84..c21d90ff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java @@ -55,7 +55,7 @@ public class NotificationPortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); long companyId = serviceContext.getCompanyId(); -// long groupId = serviceContext.getScopeGroupId(); + long groupId = serviceContext.getScopeGroupId(); long userId = serviceContext.getUserId(); int count = 0; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/init.jsp index 17ee0431..62f983fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="com.liferay.portlet.PortletURLUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/notification/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/notification/view.jsp index 58c1d33f..6931693b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/notification/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/html/notification/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.model.Role"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/ivy.xml.MD5 index 798e1b5d..82bb7b45 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/ivy.xml.MD5 @@ -1 +1 @@ -93e662066f3920536858fa4147b8a2b0 +a1da409e363d57256ed00c4613d0c971 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath index 47d0a747..0e46395b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath @@ -1,7 +1,7 @@ - + @@ -18,5 +18,6 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.project index 0a5f56c6..7d7b8912 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492890 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.component index be2aff22..39a7eafb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f4beb943..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,9 @@ + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index bf17ad8a..60c76835 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/portlet.xml index 7d277b57..e97111d0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/portlet.xml @@ -1,7 +1,7 @@ - + reports Reports diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/service.xml index 1eeae0c0..a6951bdd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/service.xml @@ -1,10 +1,10 @@ - + 3F Consulting portos_report - - + + @@ -59,7 +59,7 @@ - + @@ -105,6 +105,5 @@ - - - \ No newline at end of file + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java index 5c4b2a99..f7753f95 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java @@ -74,33 +74,33 @@ public class ReportDurataMediaIstruttorie implements PortosReportInterface { TextColumnBuilder presidioColumn = DynamicReports.col.column("Presidio", "presidioColumn", DynamicReports.type.stringType()); - TextColumnBuilder numeroPraticheTotaliColumn = DynamicReports.col.column("N° Pratiche Totali Concluse", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheTotaliColumn = DynamicReports.col.column("N° Pratiche Totali Concluse", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); // unica istruttoria - TextColumnBuilder numeroTotalePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("N°", "numeroTotalePraticheUnicaIstruttoriaColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroTotalePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("N°", "numeroTotalePraticheUnicaIstruttoriaColumn", DynamicReports.type.integerType()); TextColumnBuilder percentualePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("%", "percentualePraticheUnicaIstruttoriaColumn", DynamicReports.type.percentageType()); TextColumnBuilder durataMediaPraticheUnicaIstruttoriaColumn = DynamicReports.col.column("Durata Media", "durataMediaPraticheUnicaIstruttoriaColumn", DynamicReports.type.floatType()); // 2 istruttorie - TextColumnBuilder numeroTotalePraticheDueIstruttorieColumn = DynamicReports.col.column("N°", "numeroTotalePraticheDueIstruttorieColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroTotalePraticheDueIstruttorieColumn = DynamicReports.col.column("N°", "numeroTotalePraticheDueIstruttorieColumn", DynamicReports.type.integerType()); TextColumnBuilder percentualePraticheDueIstruttorieColumn = DynamicReports.col.column("%", "percentualePraticheDueIstruttorieColumn", DynamicReports.type.percentageType()); - TextColumnBuilder durataMediaPrimaIstruttoriaColumn = DynamicReports.col.column("Durata Media 1° Istruttoria", "durataMediaPrimaIstruttoriaColumn", DynamicReports.type.floatType()); + TextColumnBuilder durataMediaPrimaIstruttoriaColumn = DynamicReports.col.column("Durata Media 1ᵃ Istruttoria", "durataMediaPrimaIstruttoriaColumn", DynamicReports.type.floatType()); TextColumnBuilder durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn = DynamicReports.col.column("Tempo medio trasmissione Integrazioni", "durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn", DynamicReports.type.floatType()); - TextColumnBuilder durataMediaSecondaIstruttoriaColumn = DynamicReports.col.column("Durata Media 2° Istruttoria", "durataMediaSecondaIstruttoriaColumn", DynamicReports.type.floatType()); + TextColumnBuilder durataMediaSecondaIstruttoriaColumn = DynamicReports.col.column("Durata Media 2ᵃ Istruttoria", "durataMediaSecondaIstruttoriaColumn", DynamicReports.type.floatType()); // piu di 2 istruttorie - TextColumnBuilder numeroTotalePraticheIstruttorieMultipleColumn = DynamicReports.col.column("N°", "numeroTotalePraticheIstruttorieMultipleColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroTotalePraticheIstruttorieMultipleColumn = DynamicReports.col.column("N°", "numeroTotalePraticheIstruttorieMultipleColumn", DynamicReports.type.integerType()); TextColumnBuilder percentualePraticheIstruttorieMultipleColumn = DynamicReports.col.column("%", "percentualePraticheIstruttorieMultipleColumn", DynamicReports.type.percentageType()); TextColumnBuilder durataMediaComplessivaIstruttorieMultipleColumn = DynamicReports.col.column("Durata media complessiva istruttorie", "durataMediaComplessivaIstruttorieMultipleColumn", DynamicReports.type.floatType()); TextColumnBuilder durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn = DynamicReports.col.column("Durata media trasmissione Integrazioni", "durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn", DynamicReports.type.floatType()); - ColumnTitleGroupBuilder titleGroupUnicaIstruttoria = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 1° Istruttoria", numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, + ColumnTitleGroupBuilder titleGroupUnicaIstruttoria = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 1ᵃ Istruttoria", numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, durataMediaPraticheUnicaIstruttoriaColumn); - ColumnTitleGroupBuilder titleGroupDueIstruttorie = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 2° Istruttoria", numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, + ColumnTitleGroupBuilder titleGroupDueIstruttorie = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 2ᵃ Istruttoria", numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, durataMediaSecondaIstruttoriaColumn); ColumnTitleGroupBuilder titleGroupIstruttorieMulitple = DynamicReports.grid.titleGroup(tipoPraticaSelected + " con piu' di 2 Istruttorie", numeroTotalePraticheIstruttorieMultipleColumn, percentualePraticheIstruttorieMultipleColumn, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java index e47718c5..1c688553 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java @@ -91,7 +91,7 @@ public class ReportPraticheVidimate implements PortosReportInterface { DynamicReports.col.column("Data di vidimazione a partire dal " + dateMinString, "dal", DynamicReports.type.integerType()); */ - // ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE + // ADT: BUG BO ID=34 - REPORT PRATICHE VIDIMATE TextColumnBuilder dalColumn = DynamicReports.col.column("Pratiche aperte all'inizio del periodo "+stBuilder.toString(), "dal", DynamicReports.type.integerType()); @@ -120,7 +120,7 @@ public class ReportPraticheVidimate implements PortosReportInterface { //TextColumnBuilder alColumn = // DynamicReports.col.column("Aperte al" + dateMaxString, "al", DynamicReports.type.integerType()); - // ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE + // ADT: BUG BO ID=34 - REPORT PRATICHE VIDIMATE TextColumnBuilder alColumn = DynamicReports.col.column("Pratiche aperte alla fine del periodo "+stBuilder.toString(), "al", DynamicReports.type.integerType()); @@ -208,7 +208,7 @@ public class ReportPraticheVidimate implements PortosReportInterface { dataSource.add(org.getName(), countVidimate, countControllo, countConcluseTotale, countConcluseNoIntegrazioni, countConcluseUnaIntegrazione, countConclusePiuIntegrazioni, countAperte); - //BUG BO ID=34 – REPORT PRATICHE VIDIMATE + //BUG BO ID=34 - REPORT PRATICHE VIDIMATE countVidimateForSummary += countVidimate; countControlloForSummary += countControllo; countConcluseTotaleForSummary += countConcluseTotale; @@ -221,7 +221,7 @@ public class ReportPraticheVidimate implements PortosReportInterface { } } - //BUG BO ID=34 – REPORT PRATICHE VIDIMATE + //BUG BO ID=34 - REPORT PRATICHE VIDIMATE dataSource.add("TOTALI",countVidimateForSummary, countControlloForSummary, countConcluseTotaleForSummary, countConcluseNoIntegrazioniForSummary, countConcluseUnaIntegrazioneForSummary, countConclusePiuIntegrazioniForSummary, countAperteForSummary); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java index f09ad936..a8445fa9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java @@ -68,22 +68,22 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { String tipoPraticaSelected = ParamUtil.getString(request, "tipologiaPratica", null); TextColumnBuilder presidioColumn = DynamicReports.col.column("Ufficio", "presidioColumn", DynamicReports.type.stringType()); - TextColumnBuilder numeroPraticheDaAssegnareColumn = DynamicReports.col.column("N°pratiche da assegnare da parte delle PO", "numeroPraticheDaAssegnareColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheDaAssegnareColumn = DynamicReports.col.column("N°pratiche da assegnare da parte delle PO", "numeroPraticheDaAssegnareColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheDaApprovareColumn = DynamicReports.col.column("N° pratiche da approvare da parte delle PO", "numeroPraticheDaApprovareColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheDaApprovareColumn = DynamicReports.col.column("N° pratiche da approvare da parte delle PO", "numeroPraticheDaApprovareColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaOrdinarieColumn = DynamicReports.col.column("N°pratiche In Istruttoria", "numeroPraticheInIstruttoriaOrdinarieColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaOrdinarieColumn = DynamicReports.col.column("N°pratiche In Istruttoria", "numeroPraticheInIstruttoriaOrdinarieColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazOrdinarieColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazOrdinarieColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazOrdinarieColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazOrdinarieColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaInScadenzaColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaInScadenzaColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaInScadenzaColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaInScadenzaColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazInScadenzaColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazInScadenzaColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazInScadenzaColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazInScadenzaColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaScaduteColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaScaduteColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazScaduteColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazScaduteColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaScaduteColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaScaduteColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazScaduteColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazScaduteColumn", DynamicReports.type.integerType()); ColumnTitleGroupBuilder titleGroupOrdinarie = DynamicReports.grid.titleGroup(tipoPraticaSelected + " Ordinarie ( 0-39gg) ", numeroPraticheInIstruttoriaOrdinarieColumn, numeroPraticheConIntegrazOrdinarieColumn); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportTempisticheIstruttorie.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportTempisticheIstruttorie.java index 3ef14288..56a8bcaf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportTempisticheIstruttorie.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportTempisticheIstruttorie.java @@ -80,7 +80,7 @@ public class ReportTempisticheIstruttorie implements PortosReportInterface { TextColumnBuilder presidioColumn = DynamicReports.col.column("Presidio", "presidio", DynamicReports.type.stringType()); TextColumnBuilder numeroPraticheTotaliColumn = - DynamicReports.col.column("N° Pratiche Totali", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); + DynamicReports.col.column("N° Pratiche Totali", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); TextColumnBuilder numeroTotaleAutorizzateInScadenzaColumn = DynamicReports.col.column("Numero Totale", "numeroTotaleAutorizzateInScadenzaColumn", DynamicReports.type.integerType()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/portlet/ReportsPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/portlet/ReportsPortlet.java index eaf93935..dccfbaec 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/portlet/ReportsPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/portlet/ReportsPortlet.java @@ -199,7 +199,7 @@ public class ReportsPortlet extends MVCPortlet { DynamicReports.export.xlsExporter(bos).setIgnorePageMargins(true).setWhitePageBackground(false).setRemoveEmptySpaceBetweenColumns( true); - //ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE + //ADT: BUG BO ID=34 - REPORT PRATICHE VIDIMATE String label=LanguageUtil.get(LocaleUtil.getSiteDefault(), reportTitle); ComponentBuilder titleComponentNew=TemplatesADV.createTitleComponentNew(label, className, request); if (titleComponentNew!=null){ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/template/TemplatesADV.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/template/TemplatesADV.java index eef2d839..7ad67d1e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/template/TemplatesADV.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/template/TemplatesADV.java @@ -120,7 +120,7 @@ public class TemplatesADV { /** - * ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE + * ADT: BUG BO ID=34 - REPORT PRATICHE VIDIMATE * * @param label * @param className @@ -172,7 +172,7 @@ public class TemplatesADV { @Override public String getPattern() { - return "€ #.###,00"; + return "€ #.###,00"; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/tld/liferay-ui.tld b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/tld/liferay-ui.tld index a9a746a8..daa2c534 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/tld/liferay-ui.tld +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/tld/liferay-ui.tld @@ -2014,6 +2014,11 @@ input-field com.liferay.taglib.ui.InputFieldTag JSP + + autoComplete + false + true + autoFocus false diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/init.jsp index 9968f679..17a823fe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/init.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/reportsBody.jsp b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/reportsBody.jsp index f4740f74..be3567b3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/reportsBody.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/reportsBody.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/reports/init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/view.jsp index e49d231d..7fc2bce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/html/reports/view.jsp @@ -1,3 +1,4 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/reports/init.jsp" %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/ivy.xml.MD5 index c6988a5b..55984db3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/ivy.xml.MD5 @@ -1 +1 @@ -67bc8a38c79c7333d529ed38c7c241d4 +551602522f53b8485351d5fe990bed91 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath index 47d0a747..11cfe5fc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath @@ -1,7 +1,7 @@ - + @@ -18,5 +18,6 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.project index d91b1a17..2bcf3cc7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.project @@ -32,16 +32,6 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature - - - 1672831492895 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml index f4beb943..fe24cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,9 @@ + - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-portlet-service.jar deleted file mode 100644 index d78d147d..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-shared.jar deleted file mode 100644 index 12e6b2c0..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/service.xml index a0e4b632..6fc1fc53 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/service.xml @@ -1,4 +1,4 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties index de9382ee..6f452505 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_rep - build.number=35 - build.date=1672841420679 + build.number=34 + build.date=1657543608492 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5 index 4c07e8ac..c8cd60e8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml.MD5 @@ -1 +1 @@ -76045a3901eda6283ac2a19c679024b8 +3983ec64257638ed926baedf51077cc9 diff --git a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath index 6e0e0766..84f163c5 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath @@ -1,7 +1,7 @@ - - + + diff --git a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.gitignore b/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.project index b23c933b..36877ecb 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-audit-shared/.project @@ -14,15 +14,4 @@ org.eclipse.jdt.core.javanature - - - 1672738248536 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath index f6a50286..46f10f5c 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath @@ -1,7 +1,10 @@ - - + + + + + diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.project index f4ebf3df..88dabc9e 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/.project @@ -14,15 +14,4 @@ org.eclipse.jdt.core.javanature - - - 1672738248551 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath index 6e0e0766..84f163c5 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath @@ -1,7 +1,7 @@ - - + + diff --git a/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.project index 84dd19fb..1b9b333c 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-firma-shared/.project @@ -14,15 +14,4 @@ org.eclipse.jdt.core.javanature - - - 1672738248601 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath index 6e0e0766..84f163c5 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath @@ -1,7 +1,7 @@ - - + + diff --git a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.gitignore b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.project index 7d307ebb..c1c33c24 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.project @@ -14,15 +14,4 @@ org.eclipse.jdt.core.javanature - - - 1672738248619 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath index 6e0e0766..1539349c 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath @@ -1,7 +1,8 @@ - - + + + diff --git a/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.project index 8fd9a27f..cc884b36 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.project @@ -5,11 +5,6 @@ - - org.eclipse.buildship.core.gradleprojectbuilder - - - org.eclipse.jdt.core.javabuilder @@ -18,17 +13,5 @@ org.eclipse.jdt.core.javanature - org.eclipse.buildship.core.gradleprojectnature - - - 1672738248645 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath b/liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath index dba4c53e..1141b9c0 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath +++ b/liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath @@ -6,6 +6,6 @@ - + diff --git a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.gitignore b/liferay-plugins-sdk-6.2/shared/portos-report-shared/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.project b/liferay-plugins-sdk-6.2/shared/portos-report-shared/.project index bd623334..6fb6a40f 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-report-shared/.project +++ b/liferay-plugins-sdk-6.2/shared/portos-report-shared/.project @@ -14,15 +14,4 @@ org.eclipse.jdt.core.javanature - - - 1672738248699 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/sonar-project.properties b/liferay-plugins-sdk-6.2/sonar-project.properties deleted file mode 100644 index 2d3c4950..00000000 --- a/liferay-plugins-sdk-6.2/sonar-project.properties +++ /dev/null @@ -1,61 +0,0 @@ -# must be unique in a given SonarQube instance -sonar.projectKey=Sicilia-Sismica -sonar.host.url=http://sonar.nextmind.it -sonar.login=07bf5f159896d213b5bcb115c7c1a9ec1eca01ee -sonar.language=java -sonar.java.libraries="C:/progetti/sismica/git/liferay-plugins-sdk-6.2/.ivy/cache" -# --- optional properties --- - -# defaults to project key -#sonar.projectName=My project -# defaults to 'not provided' -#sonar.projectVersion=1.0 - -# Path is relative to the sonar-project.properties file. Defaults to . -#sonar.sources=. - -# Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 - - -# Required metadata -# Path to the parent source code directory. -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -# Since SonarQube 4.2, this property is optional. If not set, SonarQube starts looking for source code -# from the directory containing the sonar-project.properties file. -sonar.sources=. -#sonar.sources=*/src,*/service,docroot/html -#sonar.web.file.suffixes=.jsp,.jspf -#sonar.doxygen.deploymentPath=/opt/sonarqube/war/sonar-server -sonar.java.source = 1.7 -sonar.java.binaries=modules,portlets,hooks,shared,webs,themes -# The value of the property must be the key of the language. -#sonar.language=java - -# Encoding of the source code -sonar.sourceEncoding=UTF-8 - -# Additional parameters -#sonar.my.property=value -sonar.exclusions = **/*BaseImpl.java,\ - **/model/impl/*ModelImpl.java,\ - **/model/impl/*CacheModel.java,\ - **/model/*Model.java,\ - **/model/*Wrapper.java,\ - **/service/base/*.java,\ - **/service/http/*.java,\ - **/service/persistence/*.java,\ - **/service/persistence/impl/*.java,\ - **/service/*.java,\ - **/security/permission/*.java,\ - **/migration-tool/*,\ - **/*.xml,\ - **/*.html,\ - portlets/*/docroot/WEB-INF/service/**/model/**/*.java,\ - portlets/*/docroot/WEB-INF/service/**/service/**/*.java,\ - portlets/*/docroot/WEB-INF/src/**/model/*BaseImpl.java,\ - portlets/*/docroot/WEB-INF/src/**/model/**/*ModelImpl.java,\ - portlets/*/docroot/WEB-INF/src/**/model/**/*CacheModel.java,\ - portlets/*/docroot/WEB-INF/src/**/service/base/**/*.java,\ - portlets/*/docroot/WEB-INF/src/**/service/http/**/*.java,\ - portlets/*/docroot/WEB-INF/src/**/service/persistence/**/*.java \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath index 8de33411..9c188251 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath @@ -1,6 +1,11 @@ + + + + + @@ -13,10 +18,5 @@ - - - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.project b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.project index c12cb749..20b8d19a 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.project +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.project @@ -10,6 +10,11 @@ + + com.liferay.ide.eclipse.theme.core.cssBuilder + + + org.eclipse.jdt.core.javabuilder @@ -33,15 +38,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492854 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.settings/org.eclipse.wst.common.project.facet.core.xml index 09a65f9e..db080717 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,11 @@ + - - + + + + diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath index 8de33411..9c188251 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath @@ -1,6 +1,11 @@ + + + + + @@ -13,10 +18,5 @@ - - - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.project b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.project index 28dd3cd9..5c3583f6 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.project +++ b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.project @@ -10,6 +10,11 @@ + + com.liferay.ide.eclipse.theme.core.cssBuilder + + + org.eclipse.jdt.core.javabuilder @@ -33,15 +38,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492865 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.settings/org.eclipse.wst.common.project.facet.core.xml index 09a65f9e..db080717 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,11 @@ + - - + + + + diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/WEB-INF/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/docroot/WEB-INF/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath index 8de33411..9c188251 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath @@ -1,6 +1,11 @@ + + + + + @@ -13,10 +18,5 @@ - - - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.project b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.project index 18407ba9..aed0ce88 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.project +++ b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.project @@ -10,6 +10,11 @@ + + com.liferay.ide.eclipse.theme.core.cssBuilder + + + org.eclipse.jdt.core.javabuilder @@ -33,15 +38,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492877 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.settings/org.eclipse.wst.common.project.facet.core.xml index 09a65f9e..db080717 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,11 @@ + - - + + + + diff --git a/liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_aui_custom.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_aui_custom.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_aui_variables.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_aui_variables.scss deleted file mode 100644 index 32580d94..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_aui_variables.scss +++ /dev/null @@ -1,48 +0,0 @@ -$gray: #555; -$white: #FFF; - -$linkColor: #0AF; -$linkColorHover: darken($linkColor, 15%); - -$baseBorderRadius: 2px; -$borderRadiusLarge: 3px; -$borderRadiusSmall: 2px; - -$btnBackground: #F6F6F6; -$btnBackgroundHighlight: #EAEAEA; -$btnBorder: #CFCFCF; -$btnDangerBackground: #F53924; -$btnDangerBackgroundHighlight: #ED2C17; -$btnInfoBackground: #00CFFF; -$btnInfoBackgroundHighlight: darken($btnInfoBackground, 4%); -$btnPrimaryBackground: #54AAFF; -$btnPrimaryBackgroundHighlight: #4A96E8; -$btnSuccessBackground: #0ECD27; -$btnSuccessBackgroundHighlight: #0ABA1D; -$btnWarningBackground: #FFA658; -$btnWarningBackgroundHighlight: #F49645; - -$dropdownLinkBackgroundActive: lighten($linkColor, 5%); -$dropdownLinkBackgroundHover: darken(#3ECAF4, 10%); -$dropdownLinkColorActive: $white; - -$navbarBackground: #F3F3F3; -$navbarBackgroundHighlight: #F9F9F9; -$navbarBorder: #DDDDDD; -$navbarLinkBackgroundActive: lighten($navbarBackground, 25%); -$navbarLinkColor: $gray; -$navbarLinkColorHover: $linkColorHover; -$navbarText: $navbarLinkColor; - -$errorBackground: #FEE5E2; -$errorBorder: #FCACA5; -$errorText: #B50303; -$infoBackground: #CEF1FC; -$infoBorder: darken($infoBackground, 10%); -$infoText: #12718F; -$successBackground: #F1FBD1; -$successBorder: #BCE830; -$successText: #488F06; -$warningBackground: #FFFBDC; -$warningBorder: #F1D875; -$warningText: #BF7900; \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_liferay_custom.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_liferay_custom.scss deleted file mode 100644 index 69637aae..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/_liferay_custom.scss +++ /dev/null @@ -1,36 +0,0 @@ -@import "compass"; - -/* ---------- Help messages, general additional information, etc. ---------- */ - -.portlet-msg-alert, .portlet-msg-error, .portlet-msg-help, .portlet-msg-info, .portlet-msg-progress, .portlet-msg-success { - @extend .alert; -} - -.portlet-msg-help, .portlet-msg-info, .portlet-msg-progress { - @extend .alert-info; -} - -.portlet-msg-progress { - background-image: url(../images/aui/loading_indicator.gif); - background-repeat: no-repeat; - background-position: 6px 50%; - padding-left: 30px; -} - -/* ---------- Error messages ---------- */ - -.portlet-msg-error { - @extend .alert-error; -} - -/* ---------- Success messages ---------- */ - -.portlet-msg-success { - @extend .alert-success; -} - -/* ---------- Misc ---------- */ - -.navbar .nav li > a { - @include word-break(break-all); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/application.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/application.css deleted file mode 100644 index 5c7b56ed..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/application.css +++ /dev/null @@ -1,775 +0,0 @@ -@import "aui/alloy-font-awesome/scss/variables"; -@import "compass"; - -/* ---------- Dragging/sorting indicators ---------- */ - -.portlet-layout.dragging { - border-collapse: separate; -} - -.drop-area { - background-color: #D3DADD; -} - -.active-area { - background: #FFC; -} - -.portlet-boundary.yui3-dd-dragging { - @include opacity(0.6); - - .portlet { - border: 2px dashed #CCC; - } -} - -.sortable-layout-proxy { - @include opacity(1); - - .portlet-topper { - background-image: none; - } -} - -.proxy { - cursor: move; - - @include opacity(0.65); - - position: absolute; - - &.generic-portlet { - height: 200px; - width: 300px; - - .portlet-title { - padding: 10px; - } - } - - &.not-intersecting .forbidden-action { - background: url(../images/application/forbidden_action.png) no-repeat; - display: block; - height: 32px; - position: absolute; - right: -15px; - top: -15px; - width: 32px; - } -} - -.resizable-proxy { - border: 1px dashed #828F95; - position: absolute; - visibility: hidden; -} - -.sortable-proxy { - background: #727C81; - margin-top: 1px; -} - -.lfr-freeform-layout-drag-indicator { - visibility: hidden; -} - -.sortable-layout-drag-target-indicator { - margin: 2px 0; -} - -.yui3-dd-proxy { - z-index: 1110 !important; -} - -/* ---------- Portal tool tips ---------- */ - -.tooltip { - max-width: 200px; -} - -/* ---------- Tags ---------- */ - -.tagselector-content { - border-width: 0; - margin-bottom: 15px; - overflow: visible; - padding: 0; - - .textboxlistentry-holder { - background: #FFF; - border: 1px solid #CCC; - margin-bottom: 5px; - overflow: visible; - padding: 5px; - position: relative; - - li { - line-height: 1; - } - - .lfr-tag-selector-input { - border-width: 0; - margin-bottom: 0; - } - } - - .textboxlistentry-remove { - padding: 0 3px 1px; - } -} - -.tagselector { - .lfr-tags-selector-content { - border-width: 0; - } - - .lfr-tag-selector-input { - background: none; - padding: 0; - width: auto; - } - - .field .field-content { - margin: 0; - } - - .textboxlist-input-container { - margin: 0; - } -} - -.tagselector-focused .textboxlistentry-holder { - background: #FFF none; - border: 1px solid #CCC; -} - -.categoriesselector-content .textboxlistentry-holder { - background-color: transparent; - border-width: 0; - padding: 0; -} - -/* ---------- Tag cloud and tag list ---------- */ - -.tag-items { - list-style: none; - margin: 0 1em 0 0; - padding: 0 1em 0.5em 1em; - white-space: normal; - - li { - display: inline; - float: left; - margin: 0 1em 0 0; - } - - a { - white-space: nowrap; - } -} - -.tag-selected { - color: #000; - font-weight: bold; - text-decoration: none; -} - -.tag-cloud { - line-height: 2.5em; - - $tag-popularity-font-size: 0.7em; - - @for $i from 1 through 6 { - .tag-popularity-#{$i} { - font-size: $tag-popularity-font-size + ($i * 0.3); - } - } -} - -/* ---------- Underlay ---------- */ - -.underlay { - clear: both; - top: 100%; - - .yui3-widget-hd { - height: 38px; - } - - .lfr-portlet-item { - border-width: 0; - } -} - -.underlay-hidden { - display: none; -} - -.underlay-content { - background: #F4F3F3 url(../images/common/message_panel_shadow.png) repeat-x 0 0; - border: 0 solid #AEAFB1; - border-width: 0 1px 1px; -} - -.underlay-close { - position: absolute; - right: 5px; - top: 5px; -} - -/* ---------- Tabs ---------- */ - -.tab-active strong { - font-weight: normal; -} - -.tab-back { - float: right; -} - -.tab-back-content { - border-width: 0; - padding: 1px; -} - -/* ---------- Miscellaneous ---------- */ - -.lfr-panel-container { - background: #FFF; -} - -.lfr-panel-content { - padding: 5px 10px; -} - -.lfr-panel-basic .lfr-panel-content { - padding-left: 15px; -} - -.dialog-bd { - min-height: 30px; -} - -.dialog-content { - border: 1px solid #C8C9CA; - padding: 5px; -} - -.panel-hd { - background: #C0C2C5 url(../images/application/panel_header_bg.png) repeat-x 0 0; - border: 1px solid; - border-color: #C8C9CA #AEB2B8 #AEB2B8 #C8C9CA; - padding-left: 10px; - text-shadow: 1px 1px #FFF; -} - -.app-view-drop-active { - background-color: #00A2EA; - font-weight: bold; - - .category-portlets & { - color: #FFF; - } -} - -.basecelleditor [class~="form-validator-message"] { - clip: rect(auto auto auto auto); - width: auto; -} - -.document-library-file-entry-cell-editor-hidden { - display: none; -} - -.previous-level { - display: inline-block; - font-size: 21px; - line-height: 21px; - margin-right: 5px; - text-decoration: none; - vertical-align: middle; -} - -/* ---------- Menus ---------- */ - -.lfr-page-templates li { - a { - padding: 0; - - label { - cursor: pointer; - display: block; - padding: 5px 0 5px 5px; - } - } -} - -.menu { - position: absolute; - width: auto; - - .notice-message { - background-image: none; - margin: 3px; - padding: 6px; - } -} - -.menu-content { - background: #FFF; - list-style: none; - min-width: 150px; - - li { - margin: 0; - padding: 0; - - .disabled { - color: #999; - } - } -} - -.menu-content { - background: #CCC9C9 url(../images/application/menu_bg.png) repeat-x 0 0; - border: 1px solid; - border-color: #AEAFB1 #777879 #777879 #AEAFB1; - padding: 2px 0; -} - -.menugroup-content .menu-label { - background: #D2D6DE; - color: #5B677D; - display: block; - padding: 5px 3px; - text-shadow: 1px 1px #FFF; -} - -.menugroup-content ul { - display: block; - min-width: 0; -} - -.menu-content li { - border-bottom: 1px solid #BCBBBB; - border-top: 1px solid #EEE; - display: block; - margin: 0; - padding: 0; - - &.first { - border-top-width: 0; - } - - &.last { - border-bottom-width: 0; - } -} - -.menu-content li a, .menu-content li .disabled { - color: #2C2F34; - display: block; - padding: 4px 5px; - text-decoration: none; -} - -.menu-content li a.focus, .lfr-menu-expanded li a:focus { - background-color: #5B677D; - color: #FFF; - text-shadow: -1px -1px #2C2F34; -} - -/* ---------- Loading mask ---------- */ - -.loadingmask-content { - background: #CCC; -} - -.loadingmask-message { - background: #D4D4D4 url(../images/portlet/header_bg.png) repeat-x 0 0; -} - -/* ---------- Tree view ---------- */ - -.tree-node { - .icon-check { - padding-right: 2px; - - &:before { - content: $check-empty; - } - } - - .tree-node-checked { - .icon-check { - padding-right: 0; - - &:before { - content: $check; - } - } - } - - .tree-node-over .tree-label { - text-decoration: underline; - } - - [class ^="icon-"] { - margin-right: 5px; - } - - .tree-node-checkbox-container { - margin-right: 0; - } - - .tree-node-selected .tree-label { - background: none; - } -} - -.tree-node-content { - .tree-hitarea { - color: #999; - font-size: 10px; - padding-right: 6px; - } - - .tree-label { - margin-left: 3px; - } - - .tree-node-hidden-hitarea { - visibility: hidden; - } -} - -.tree-node-selected .tree-label { - background-color: transparent; -} - -/* ---------- Page customization ---------- */ - -.dragging .portlet-column.customizable { - background-color: #CFFCCF; - outline: 3px solid #9CC97B; -} - -.customizable-layout-column-content { - background-color: #C92C3C; - - &.yui3-widget-content-expanded { - border: 3px solid #333; - margin: 0.2em; - } -} - -.customizable .customizable-layout-column-content { - background-color: #9CC97B; -} - -.layout-customizable-controls { - background-color: #FFF; - font-size: 1.5em; - margin: 1em; - - @include opacity(0.9); - - padding: 1em; - position: absolute; - z-index: 15; -} - -/* ---------- Pagination ---------- */ - -.paginator-link { - background: #EEE url() no-repeat scroll 50% 1px; - border: 1px solid #F0F1F2; - border-color: #F0F1F2 #B2B2B2 #949494 #F0F1F1; - color: #1F1E1E; - display: inline-block; - height: 20px; - padding: 0; - text-indent: -9999px; - width: 20px; -} - -.paginator-page-link { - height: auto; - text-indent: 0; -} - -.paginator-current-page { - background: #0083BD url(../images/application/paginator_link_current_bg.png) 0 0 repeat-x; - border-color: #38B6EF #006D9E #006D9E #46B4E6; - color: #FFF; - text-shadow: -1px -1px #003C57; -} - -.paginator-first-link { - background-image: url(../images/arrows/paging_first.png); -} - -.paginator-prev-link { - background-image: url(../images/arrows/paging_previous.png); -} - -.paginator-last-link { - background-image: url(../images/arrows/paging_last.png); -} - -.paginator-next-link { - background-image: url(../images/arrows/paging_next.png); -} - -.paginator-current-page-report, .paginator-total { - color: #555; - font-size: 0.9em; -} - -.paginator-current-page-report { - margin-left: 2em; -} - -.taglib-page-iterator .search-pages .page-links { - padding: 0; -} - -/* ---------- CKEditor contents ---------- */ - -.aui { - .cke_editable [class*="span"] { - float: none; - } -} - -/* ---------- CKEditor menu ---------- */ - -.aui { - .cke_dialog .cke_dialog_ui_input_text { - height: auto; - } - - .cke_editable_inline a { - cursor: pointer; - } -} - -/* ---------- CKEditor panel menu ---------- */ - -.cke_panel.cke_combopanel { - width: 220px; -} - -.cke_panel_block { - .cke_panel_grouptitle { - font-size: 20px; - line-height: 20px; - margin-top: 0; - } - - .cke_panel_list { - margin-left: 0; - - .cke_panel_listItem { - line-height: initial; - - a:hover { - text-decoration: none; - } - } - } -} - -/* ---------- CKEditor source ---------- */ - -.aui { - .cke_source { - @include box-sizing(border-box); - } -} - -/* ---------- CKEditor table ---------- */ - -.cke_show_border { - width: 500px; - - td { - height: 15px; - } -} - -/* ---------- HTML editor ---------- */ - -body.html-editor { - background: #FFF; - color: #000; - padding: 1em; -} - -.html-editor.portlet-message-boards { - @include hyphenation; - - word-wrap: break-word; - - blockquote { - background: #EEF0F2 url(../images/message_boards/quoteleft.png) no-repeat 5px 5px; - border: 1px solid #777; - padding: 5px 45px; - - &:after { - background: url(../images/message_boards/quoteright.png) no-repeat 50%; - content: ''; - display: block; - float: right; - height: 24px; - margin-right: -35px; - margin-top: -25px; - width: 31px; - z-index: 999; - } - - cite { - display: block; - font-weight: bold; - } - } - - pre { - background: #F9F9F9; - border: 1px solid #777; - padding: 0.5em; - } -} - -/* ---------- Inline editing ---------- */ - -.lfr-editable { - $edit-color: #68BB30; - $edit-color-hover: darken(#68BB30, 10); - - outline: 1px dashed $edit-color; - outline-offset: 2px; - position: relative; - - &:after { - background: $edit-color url(../images/common/edit_white.png) no-repeat 50%; - content: ''; - display: block; - height: 20px; - position: absolute; - right: 5px; - top: 5px; - width: 30px; - } - - &:focus { - &:after { - display: none; - } - - &:hover { - background-color: transparent; - } - } - - &:hover { - background-color: rgba(255, 255, 255, 0.3); - outline-color: $edit-color-hover; - - &:after { - background-color: $edit-color-hover; - } - } -} - -.lfr-editable-notice-close { - margin-left: 1em; -} - -.lfr-portlet-title-editable { - margin-top: 0; - z-index: 9999; - - .lfr-portlet-title-editable-content { - padding: 0; - - .combobox-content { - .field-content .field-input-text { - display: block; - margin-bottom: 0; - } - - .field-label.textfield-label { - display: none; - } - - .toolbar-content { - margin-top: 0; - vertical-align: top; - - .btn-group { - margin-top: 0; - } - } - } - } -} - -.lfr-page-layouts .lfr-layout-template .layout-template-entry { - height: 25px; - width: 25px; -} - -.ie { - & input.cke_dialog_ui_input_text { - height: auto; - } - - .proxy.not-intersecting .forbidden-action { - right: 2px; - top: 2px; - } -} - -.ie7 { - .menu-content li { - z-index: 10; - } - - .paginator-link { - color: transparent; - font-size: 0; - overflow: hidden; - text-indent: 0; - vertical-align: middle; - } - - .paginator-page-link { - color: #1F1E1E; - font-size: 1em; - height: auto; - line-height: 1.4; - overflow: visible; - text-indent: 0; - } - - .paginator-current-page { - color: #FFF; - } -} - -.ie8 { - .row-fluid { - input[class*=span].search-query { - line-height: 20px; - min-height: 20px; - } - } -} - -.ios.mobile { - .modal-content .dialog-iframe-bd { - overflow: auto; - -webkit-overflow-scrolling: touch; - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui.css deleted file mode 100644 index 74070784..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui.css +++ /dev/null @@ -1,30 +0,0 @@ -$FontAwesomePath: "aui/alloy-font-awesome/font" !default; - -@import "aui/alloy-font-awesome/scss/variables"; -@import "aui/alloy-font-awesome/scss/mixins-alloy"; -@import "aui/alloy-font-awesome/scss/path-alloy"; - -.aui { - @import "aui_variables"; - - $iconSpritePath: '../images/aui/glyphicons-halflings.png' !default; - $iconWhiteSpritePath: '../images/aui/glyphicons-halflings-white.png' !default; - - @import "aui/bootstrap"; - @import "aui_custom"; - @import "aui/responsive"; - @import "liferay_custom"; - - @import "aui/alloy-font-awesome/scss/core"; - @import "aui/alloy-font-awesome/scss/bootstrap"; - @import "aui/alloy-font-awesome/scss/extras"; - @import "aui/alloy-font-awesome/scss/icons-alloy"; - @import "aui/alloy-font-awesome/scss/icons-alloy-extra"; - - background-color: $bodyBackground; - color: $textColor; - font-family: $baseFontFamily; - font-size: $baseFontSize; - line-height: $baseLineHeight; - margin: 0; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_accordion.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_accordion.scss deleted file mode 100644 index 576bdaea..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_accordion.scss +++ /dev/null @@ -1,34 +0,0 @@ -// -// Accordion -// -------------------------------------------------- - - -// Parent container -.accordion { - margin-bottom: $baseLineHeight; -} - -// Group == heading + body -.accordion-group { - margin-bottom: 2px; - border: 1px solid #e5e5e5; - @include border-radius($baseBorderRadius); -} -.accordion-heading { - border-bottom: 0; -} -.accordion-heading .accordion-toggle { - display: block; - padding: 8px 15px; -} - -// General toggle styles -.accordion-toggle { - cursor: pointer; -} - -// Inner needs the styles because you can't animate properly with any styles on the element -.accordion-inner { - padding: 9px 15px; - border-top: 1px solid #e5e5e5; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_alerts.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_alerts.scss deleted file mode 100644 index 65335110..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_alerts.scss +++ /dev/null @@ -1,79 +0,0 @@ -// -// Alerts -// -------------------------------------------------- - - -// Base styles -// ------------------------- - -.alert { - padding: 8px 35px 8px 14px; - margin-bottom: $baseLineHeight; - text-shadow: 0 1px 0 rgba(255,255,255,.5); - background-color: $warningBackground; - border: 1px solid $warningBorder; - @include border-radius($baseBorderRadius); -} -.alert, -.alert h4 { - // Specified for the h4 to prevent conflicts of changing $headingsColor - color: $warningText; -} -.alert h4 { - margin: 0; -} - -// Adjust close link position -.alert .close { - position: relative; - top: -2px; - right: -21px; - line-height: $baseLineHeight; -} - - -// Alternate styles -// ------------------------- - -.alert-success { - background-color: $successBackground; - border-color: $successBorder; - color: $successText; -} -.alert-success h4 { - color: $successText; -} -.alert-danger, -.alert-error { - background-color: $errorBackground; - border-color: $errorBorder; - color: $errorText; -} -.alert-danger h4, -.alert-error h4 { - color: $errorText; -} -.alert-info { - background-color: $infoBackground; - border-color: $infoBorder; - color: $infoText; -} -.alert-info h4 { - color: $infoText; -} - - -// Block alerts -// ------------------------- - -.alert-block { - padding-top: 14px; - padding-bottom: 14px; -} -.alert-block > p, -.alert-block > ul { - margin-bottom: 0; -} -.alert-block p + p { - margin-top: 5px; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_breadcrumbs.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_breadcrumbs.scss deleted file mode 100644 index cc3f327a..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_breadcrumbs.scss +++ /dev/null @@ -1,24 +0,0 @@ -// -// Breadcrumbs -// -------------------------------------------------- - - -.breadcrumb { - padding: 8px 15px; - margin: 0 0 $baseLineHeight; - list-style: none; - background-color: #f5f5f5; - @include border-radius($baseBorderRadius); - > li { - display: inline-block; - @include ie7-inline-block(); - text-shadow: 0 1px 0 $white; - > .divider { - padding: 0 5px; - color: #ccc; - } - } - .active { - color: $grayLight; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups-alloy.scss deleted file mode 100644 index 5152a53c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups-alloy.scss +++ /dev/null @@ -1,8 +0,0 @@ -// -// Button groups -// -------------------------------------------------- - - -.btn-group-hidden { - display: none; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups.scss deleted file mode 100644 index 1b08d50f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_button-groups.scss +++ /dev/null @@ -1,229 +0,0 @@ -// -// Button groups -// -------------------------------------------------- - - -// Make the div behave like a button -.btn-group { - position: relative; - display: inline-block; - @include ie7-inline-block(); - font-size: 0; // remove as part 1 of font-size inline-block hack - vertical-align: middle; // match .btn alignment given font-size hack above - white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page) - @include ie7-restore-left-whitespace(); -} - -// Space out series of button groups -.btn-group + .btn-group { - margin-left: 5px; -} - -// Optional: Group multiple button groups together for a toolbar -.btn-toolbar { - font-size: 0; // Hack to remove whitespace that results from using inline-block - margin-top: $baseLineHeight / 2; - margin-bottom: $baseLineHeight / 2; - > .btn + .btn, - > .btn-group + .btn, - > .btn + .btn-group { - margin-left: 5px; - } -} - -// Float them, remove border radius, then re-add to first and last elements -.btn-group > .btn { - position: relative; - @include border-radius(0); -} -.btn-group > .btn + .btn { - margin-left: -1px; -} -.btn-group > .btn, -.btn-group > .dropdown-menu, -.btn-group > .popover { - font-size: $baseFontSize; // redeclare as part 2 of font-size inline-block hack -} - -// Reset fonts for other sizes -.btn-group > .btn-mini { - font-size: $fontSizeMini; -} -.btn-group > .btn-small { - font-size: $fontSizeSmall; -} -.btn-group > .btn-large { - font-size: $fontSizeLarge; -} - -// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match -.btn-group > .btn:first-child { - margin-left: 0; - @include border-top-left-radius($baseBorderRadius); - @include border-bottom-left-radius($baseBorderRadius); -} -// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it -.btn-group > .btn:last-child, -.btn-group > .dropdown-toggle { - @include border-top-right-radius($baseBorderRadius); - @include border-bottom-right-radius($baseBorderRadius); -} -// Reset corners for large buttons -.btn-group > .btn.large:first-child { - margin-left: 0; - @include border-top-left-radius($borderRadiusLarge); - @include border-bottom-left-radius($borderRadiusLarge); -} -.btn-group > .btn.large:last-child, -.btn-group > .large.dropdown-toggle { - @include border-top-right-radius($borderRadiusLarge); - @include border-bottom-right-radius($borderRadiusLarge); -} - -// On hover/focus/active, bring the proper btn to front -.btn-group > .btn:hover, -.btn-group > .btn:focus, -.btn-group > .btn:active, -.btn-group > .btn.active { - z-index: 2; -} - -// On active and open, don't show outline -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} - - - -// Split button dropdowns -// ---------------------- - -// Give the line between buttons some depth -.btn-group > .btn + .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; - @include box-shadow(inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)); - *padding-top: 5px; - *padding-bottom: 5px; -} -.btn-group > .btn-mini + .dropdown-toggle { - padding-left: 5px; - padding-right: 5px; - *padding-top: 2px; - *padding-bottom: 2px; -} -.btn-group > .btn-small + .dropdown-toggle { - *padding-top: 5px; - *padding-bottom: 4px; -} -.btn-group > .btn-large + .dropdown-toggle { - padding-left: 12px; - padding-right: 12px; - *padding-top: 7px; - *padding-bottom: 7px; -} - -.btn-group.open { - - // The clickable button for toggling the menu - // Remove the gradient and set the same inset shadow as the :active state - .dropdown-toggle { - background-image: none; - @include box-shadow(inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)); - } - - // Keep the hover's background when dropdown is open - .btn.dropdown-toggle { - background-color: $btnBackgroundHighlight; - } - .btn-primary.dropdown-toggle { - background-color: $btnPrimaryBackgroundHighlight; - } - .btn-warning.dropdown-toggle { - background-color: $btnWarningBackgroundHighlight; - } - .btn-danger.dropdown-toggle { - background-color: $btnDangerBackgroundHighlight; - } - .btn-success.dropdown-toggle { - background-color: $btnSuccessBackgroundHighlight; - } - .btn-info.dropdown-toggle { - background-color: $btnInfoBackgroundHighlight; - } - .btn-inverse.dropdown-toggle { - background-color: $btnInverseBackgroundHighlight; - } -} - - -// Reposition the caret -.btn .caret { - margin-top: 8px; - margin-left: 0; -} -// Carets in other button sizes -.btn-large .caret { - margin-top: 6px; -} -.btn-large .caret { - border-left-width: 5px; - border-right-width: 5px; - border-top-width: 5px; -} -.btn-mini .caret, -.btn-small .caret { - margin-top: 8px; -} -// Upside down carets for .dropup -.dropup .btn-large .caret { - border-bottom-width: 5px; -} - - - -// Account for other colors -.btn-primary, -.btn-warning, -.btn-danger, -.btn-info, -.btn-success, -.btn-inverse { - .caret { - border-top-color: $white; - border-bottom-color: $white; - } -} - - - -// Vertical button groups -// ---------------------- - -.btn-group-vertical { - display: inline-block; // makes buttons only take up the width they need - @include ie7-inline-block(); -} -.btn-group-vertical > .btn { - display: block; - float: none; - max-width: 100%; - @include border-radius(0); -} -.btn-group-vertical > .btn + .btn { - margin-left: 0; - margin-top: -1px; -} -.btn-group-vertical > .btn:first-child { - @include border-radius($baseBorderRadius $baseBorderRadius 0 0); -} -.btn-group-vertical > .btn:last-child { - @include border-radius(0 0 $baseBorderRadius $baseBorderRadius); -} -.btn-group-vertical > .btn-large:first-child { - @include border-radius($borderRadiusLarge $borderRadiusLarge 0 0); -} -.btn-group-vertical > .btn-large:last-child { - @include border-radius(0 0 $borderRadiusLarge $borderRadiusLarge); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons-alloy.scss deleted file mode 100644 index 40abdfdb..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons-alloy.scss +++ /dev/null @@ -1,29 +0,0 @@ -// -// Buttons -// -------------------------------------------------- - - -// Base styles -// -------------------------------------------------- - -// Core -.btn-hidden { - display: none; -} - -// Make a button look and behave like a close item -.btn.close { - @extend .close; -} - -.btn.close:focus, -.btn.close:hover, -.btn.close.active { - @extend .close:hover; - @include box-shadow(none); -} - -.btn.close:active { - @extend .close:active; - @include box-shadow(none); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons.scss deleted file mode 100644 index a92268b5..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_buttons.scss +++ /dev/null @@ -1,228 +0,0 @@ -// -// Buttons -// -------------------------------------------------- - - -// Base styles -// -------------------------------------------------- - -// Core -.btn { - display: inline-block; - @include ie7-inline-block(); - padding: 4px 12px; - margin-bottom: 0; // For input.btn - font-size: $baseFontSize; - line-height: $baseLineHeight; - text-align: center; - vertical-align: middle; - cursor: pointer; - @include buttonBackground($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255,255,255,.75)); - border: 1px solid $btnBorder; - *border: 0; // Remove the border to prevent IE7's black border on input:focus - border-bottom-color: darken($btnBorder, 10%); - @include border-radius($baseBorderRadius); - @include ie7-restore-left-whitespace(); // Give IE7 some love - @include box-shadow(inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)); - - // Hover/focus state - &:hover, - &:focus { - color: $grayDark; - text-decoration: none; - background-position: 0 -15px; - - // transition is only when going to hover/focus, otherwise the background - // behind the gradient (there for IE<=9 fallback) gets mismatched - @include transition(background-position .1s linear); - } - - // Focus state for keyboard and accessibility - &:focus { - @include tab-focus(); - } - - // Active state - &.active, - &:active { - background-image: none; - outline: 0; - @include box-shadow(inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)); - } - - // Disabled state - &.disabled, - &[disabled] { - cursor: default; - background-image: none; - @include opacity(65); - @include box-shadow(none); - } - -} - - - -// Button Sizes -// -------------------------------------------------- - -// Large -.btn-large { - padding: $paddingLarge; - font-size: $fontSizeLarge; - @include border-radius($borderRadiusLarge); -} -.btn-large [class^="icon-"], -.btn-large [class*=" icon-"] { - margin-top: 4px; -} - -// Small -.btn-small { - padding: $paddingSmall; - font-size: $fontSizeSmall; - @include border-radius($borderRadiusSmall); -} -.btn-small [class^="icon-"], -.btn-small [class*=" icon-"] { - margin-top: 0; -} -.btn-mini [class^="icon-"], -.btn-mini [class*=" icon-"] { - margin-top: -1px; -} - -// Mini -.btn-mini { - padding: $paddingMini; - font-size: $fontSizeMini; - @include border-radius($borderRadiusSmall); -} - - -// Block button -// ------------------------- - -.btn-block { - display: block; - width: 100%; - padding-left: 0; - padding-right: 0; - @include box-sizing(border-box); -} - -// Vertically space out multiple block buttons -.btn-block + .btn-block { - margin-top: 5px; -} - -// Specificity overrides -input[type="submit"], -input[type="reset"], -input[type="button"] { - &.btn-block { - width: 100%; - } -} - - - -// Alternate buttons -// -------------------------------------------------- - -// Provide *some* extra contrast for those who can get it -.btn-primary.active, -.btn-warning.active, -.btn-danger.active, -.btn-success.active, -.btn-info.active, -.btn-inverse.active { - color: rgba(255,255,255,.75); -} - -// Set the backgrounds -// ------------------------- -.btn-primary { - @include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight); -} -// Warning appears are orange -.btn-warning { - @include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight); -} -// Danger and error appear as red -.btn-danger { - @include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight); -} -// Success appears as green -.btn-success { - @include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight); -} -// Info appears as a neutral blue -.btn-info { - @include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight); -} -// Inverse appears as dark gray -.btn-inverse { - @include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight); -} - - -// Cross-browser Jank -// -------------------------------------------------- - -button.btn, -input[type="submit"].btn { - - // Firefox 3.6 only I believe - &::-moz-focus-inner { - padding: 0; - border: 0; - } - - // IE7 has some default padding on button controls - *padding-top: 3px; - *padding-bottom: 3px; - - &.btn-large { - *padding-top: 7px; - *padding-bottom: 7px; - } - &.btn-small { - *padding-top: 3px; - *padding-bottom: 3px; - } - &.btn-mini { - *padding-top: 1px; - *padding-bottom: 1px; - } -} - - -// Link buttons -// -------------------------------------------------- - -// Make a button look and behave like a link -.btn-link, -.btn-link:active, -.btn-link[disabled] { - background-color: transparent; - background-image: none; - @include box-shadow(none); -} -.btn-link { - border-color: transparent; - cursor: pointer; - color: $linkColor; - @include border-radius(0); -} -.btn-link:hover, -.btn-link:focus { - color: $linkColorHover; - text-decoration: underline; - background-color: transparent; -} -.btn-link[disabled]:hover, -.btn-link[disabled]:focus { - color: $grayDark; - text-decoration: none; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel-alloy.scss deleted file mode 100644 index aeb36b3b..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel-alloy.scss +++ /dev/null @@ -1,8 +0,0 @@ -// -// Carousel -// -------------------------------------------------- - - -.carousel-hidden { - display: none; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel.scss deleted file mode 100644 index 22eaddb9..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_carousel.scss +++ /dev/null @@ -1,158 +0,0 @@ -// -// Carousel -// -------------------------------------------------- - - -.carousel { - position: relative; - margin-bottom: $baseLineHeight; - line-height: 1; -} - -.carousel-inner { - overflow: hidden; - width: 100%; - position: relative; -} - -.carousel-inner { - - > .item { - display: none; - position: relative; - @include transition(.6s ease-in-out left); - - // Account for jankitude on images - > img, - > a > img { - display: block; - line-height: 1; - } - } - - > .active, - > .next, - > .prev { display: block; } - - > .active { - left: 0; - } - - > .next, - > .prev { - position: absolute; - top: 0; - width: 100%; - } - - > .next { - left: 100%; - } - > .prev { - left: -100%; - } - > .next.left, - > .prev.right { - left: 0; - } - - > .active.left { - left: -100%; - } - > .active.right { - left: 100%; - } - -} - -// Left/right controls for nav -// --------------------------- - -.carousel-control { - position: absolute; - top: 40%; - left: 15px; - width: 40px; - height: 40px; - margin-top: -20px; - font-size: 60px; - font-weight: 100; - line-height: 30px; - color: $white; - text-align: center; - background: $grayDarker; - border: 3px solid $white; - @include border-radius(23px); - @include opacity(50); - - // we can't have this transition here - // because webkit cancels the carousel - // animation if you trip this while - // in the middle of another animation - // ;_; - // .transition(opacity .2s linear); - - // Reposition the right one - &.right { - left: auto; - right: 15px; - } - - // Hover/focus state - &:hover, - &:focus { - color: $white; - text-decoration: none; - @include opacity(90); - } -} - -// Carousel indicator pips -// ----------------------------- -.carousel-indicators { - position: absolute; - top: 15px; - right: 15px; - z-index: 5; - margin: 0; - list-style: none; - - li { - display: block; - float: left; - width: 10px; - height: 10px; - margin-left: 5px; - text-indent: -999px; - background-color: #ccc; - background-color: rgba(255,255,255,.25); - border-radius: 5px; - } - .active { - background-color: #fff; - } -} - -// Caption for text below images -// ----------------------------- - -.carousel-caption { - position: absolute; - left: 0; - right: 0; - bottom: 0; - padding: 15px; - background: $grayDark; - background: rgba(0,0,0,.75); -} -.carousel-caption h4, -.carousel-caption p { - color: $white; - line-height: $baseLineHeight; -} -.carousel-caption h4 { - margin: 0 0 5px; -} -.carousel-caption p { - margin-bottom: 0; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_close.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_close.scss deleted file mode 100644 index ee14a6ba..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_close.scss +++ /dev/null @@ -1,32 +0,0 @@ -// -// Close icons -// -------------------------------------------------- - - -.close { - float: right; - font-size: 20px; - font-weight: bold; - line-height: $baseLineHeight; - color: $black; - text-shadow: 0 1px 0 rgba(255,255,255,1); - @include opacity(20); - &:hover, - &:focus { - color: $black; - text-decoration: none; - cursor: pointer; - @include opacity(40); - } -} - -// Additional properties for button version -// iOS requires the button element instead of an anchor tag. -// If you want the anchor version, it requires `href="#"`. -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_code.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_code.scss deleted file mode 100644 index b9e2f6f2..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_code.scss +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code (inline and blocK) -// -------------------------------------------------- - - -// Inline and block code styles -code, -pre { - padding: 0 3px 2px; - @include font-family-monospace; - font-size: $baseFontSize - 2; - color: $grayDark; - @include border-radius(3px); -} - -// Inline code -code { - padding: 2px 4px; - color: #d14; - background-color: #f7f7f9; - border: 1px solid #e1e1e8; - white-space: nowrap; -} - -// Blocks of code -pre { - display: block; - padding: ($baseLineHeight - 1) / 2; - margin: 0 0 $baseLineHeight / 2; - font-size: $baseFontSize - 1; // 14px to 13px - line-height: $baseLineHeight; - word-break: break-all; - word-wrap: break-word; - white-space: pre; - white-space: pre-wrap; - background-color: #f5f5f5; - border: 1px solid #ccc; // fallback for IE7-8 - border: 1px solid rgba(0,0,0,.15); - @include border-radius($baseBorderRadius); - - // Make prettyprint styles more spaced out for readability - &.prettyprint { - margin-bottom: $baseLineHeight; - } - - // Account for some code outputs that place code tags in pre tags - code { - padding: 0; - color: inherit; - white-space: pre; - white-space: pre-wrap; - background-color: transparent; - border: 0; - } -} - -// Enable scrollable blocks of code -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_component-animations.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_component-animations.scss deleted file mode 100644 index 5ef86b09..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_component-animations.scss +++ /dev/null @@ -1,22 +0,0 @@ -// -// Component animations -// -------------------------------------------------- - - -.fade { - opacity: 0; - @include transition(opacity .15s linear); - &.in { - opacity: 1; - } -} - -.collapse { - position: relative; - height: 0; - overflow: hidden; - @include transition(height .35s ease); - &.in { - height: auto; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_dropdowns.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_dropdowns.scss deleted file mode 100644 index f5949fa0..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_dropdowns.scss +++ /dev/null @@ -1,248 +0,0 @@ -// -// Dropdown menus -// -------------------------------------------------- - - -// Use the .menu class on any
  • element within the topbar or ul.tabs and you'll get some superfancy dropdowns -.dropup, -.dropdown { - position: relative; -} -.dropdown-toggle { - // The caret makes the toggle a bit too tall in IE7 - *margin-bottom: -3px; -} -.dropdown-toggle:active, -.open .dropdown-toggle { - outline: 0; -} - -// Dropdown arrow/caret -// -------------------- -.caret { - display: inline-block; - width: 0; - height: 0; - vertical-align: top; - border-top: 4px solid $black; - border-right: 4px solid transparent; - border-left: 4px solid transparent; - content: ""; -} - -// Place the caret -.dropdown .caret { - margin-top: 8px; - margin-left: 2px; -} - -// The dropdown menu (ul) -// ---------------------- -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: $zindexDropdown; - display: none; // none by default, but block on "open" of the menu - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; // override default ul - list-style: none; - background-color: $dropdownBackground; - border: 1px solid #ccc; // Fallback for IE7-8 - border: 1px solid $dropdownBorder; - *border-right-width: 2px; - *border-bottom-width: 2px; - @include border-radius(6px); - @include box-shadow(0 5px 10px rgba(0,0,0,.2)); - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; - - // Aligns the dropdown menu to right - &.pull-right { - right: 0; - left: auto; - } - - // Dividers (basically an hr) within the dropdown - .divider { - @include nav-divider($dropdownDividerTop, $dropdownDividerBottom); - } - - // Links within the dropdown menu - > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: $baseLineHeight; - color: $dropdownLinkColor; - white-space: nowrap; - } -} - -// Hover/Focus state -// ----------- -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus, -.dropdown-submenu:hover > a, -.dropdown-submenu:focus > a { - text-decoration: none; - color: $dropdownLinkColorHover; - @include gradient-vertical($dropdownLinkBackgroundHover, darken($dropdownLinkBackgroundHover, 5%)); -} - -// Active state -// ------------ -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - color: $dropdownLinkColorActive; - text-decoration: none; - outline: 0; - @include gradient-vertical($dropdownLinkBackgroundActive, darken($dropdownLinkBackgroundActive, 5%)); -} - -// Disabled state -// -------------- -// Gray out text and ensure the hover/focus state remains gray -.dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - color: $grayLight; -} -// Nuke hover/focus effects -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - text-decoration: none; - background-color: transparent; - background-image: none; // Remove CSS gradient - @include reset-filter(); - cursor: default; -} - -// Open state for the dropdown -// --------------------------- -.open { - // IE7's z-index only goes to the nearest positioned ancestor, which would - // make the menu appear below buttons that appeared later on the page - *z-index: $zindexDropdown; - - & > .dropdown-menu { - display: block; - } -} - -// Backdrop to catch body clicks on mobile, etc. -// --------------------------- -.dropdown-backdrop { - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: $zindexDropdown - 10; -} - -// Right aligned dropdowns -// --------------------------- -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} - -// Allow for dropdowns to go bottom up (aka, dropup-menu) -// ------------------------------------------------------ -// Just add .dropup after the standard .dropdown class and you're set, bro. -// TODO: abstract this so that the navbar fixed styles are not placed here? -.dropup, -.navbar-fixed-bottom .dropdown { - // Reverse the caret - .caret { - border-top: 0; - border-bottom: 4px solid $black; - content: ""; - } - // Different positioning for bottom up menu - .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; - } -} - -// Sub menus -// --------------------------- -.dropdown-submenu { - position: relative; -} -// Default dropdowns -.dropdown-submenu > .dropdown-menu { - top: 0; - left: 100%; - margin-top: -6px; - margin-left: -1px; - @include border-radius(0 6px 6px 6px); -} -.dropdown-submenu:hover > .dropdown-menu { - display: block; -} - -// Dropups -.dropup .dropdown-submenu > .dropdown-menu { - top: auto; - bottom: 0; - margin-top: 0; - margin-bottom: -2px; - @include border-radius(5px 5px 5px 0); -} - -// Caret to indicate there is a submenu -.dropdown-submenu > a:after { - display: block; - content: " "; - float: right; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; - border-width: 5px 0 5px 5px; - border-left-color: darken($dropdownBackground, 20%); - margin-top: 5px; - margin-right: -10px; -} -.dropdown-submenu:hover > a:after { - border-left-color: $dropdownLinkColorHover; -} - -// Left aligned submenus -.dropdown-submenu.pull-left { - // Undo the float - // Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere. - float: none; - - // Positioning the submenu - > .dropdown-menu { - left: -100%; - margin-left: 10px; - @include border-radius(6px 0 6px 6px); - } -} - -// Tweak nav headers -// ----------------- -// Increase padding from 15px to 20px on sides -.dropdown .dropdown-menu .nav-header { - padding-left: 20px; - padding-right: 20px; -} - -// Typeahead -// --------- -.typeahead { - z-index: 1051; - margin-top: 2px; // give it some space to breathe - @include border-radius($baseBorderRadius); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_forms.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_forms.scss deleted file mode 100644 index 4ba97655..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_forms.scss +++ /dev/null @@ -1,690 +0,0 @@ -// -// Forms -// -------------------------------------------------- - - -// GENERAL STYLES -// -------------- - -// Make all forms have space below them -form { - margin: 0 0 $baseLineHeight; -} - -fieldset { - padding: 0; - margin: 0; - border: 0; - min-width: 0; -} - -// Groups of fields with labels on top (legends) -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: $baseLineHeight; - font-size: $baseFontSize * 1.5; - line-height: $baseLineHeight * 2; - color: $grayDark; - border: 0; - border-bottom: 1px solid #e5e5e5; - - // Small - small { - font-size: $baseLineHeight * .75; - color: $grayLight; - } -} - -// Set font for forms -label, -input, -button, -select, -textarea { - @include font-shorthand($baseFontSize, normal, $baseLineHeight); // Set size, weight, line-height here -} -input, -button, -select, -textarea { - font-family: $baseFontFamily; // And only set font-family here for those that need it (note the missing label element) -} - -// Identify controls by their labels -label { - display: block; - margin-bottom: 5px; -} - -// Form controls -// ------------------------- - -// Shared size and type resets -select, -textarea, -input[type="text"], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="search"], -input[type="tel"], -input[type="color"], -.uneditable-input { - display: inline-block; - height: $baseLineHeight; - padding: 4px 6px; - margin-bottom: $baseLineHeight / 2;; - font-size: $baseFontSize; - line-height: $baseLineHeight; - color: $gray; - @include border-radius($inputBorderRadius); - vertical-align: middle; -} - -// Reset appearance properties for textual inputs and textarea -// Declare width for legacy (can't be on input[type=*] selectors or it's too specific) -input, -textarea, -.uneditable-input { - width: 206px; // plus 12px padding and 2px border -} -// Reset height since textareas have rows -textarea { - height: auto; -} -// Everything else -textarea, -input[type="text"], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="search"], -input[type="tel"], -input[type="color"], -.uneditable-input { - background-color: $inputBackground; - border: 1px solid $inputBorder; - @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); - @include transition(border linear .2s, box-shadow linear .2s); - - // Focus state - &:focus { - border-color: rgba(82,168,236,.8); - outline: 0; - outline: thin dotted \9; /* IE6-9 */ - @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)); - } -} - -// Position radios and checkboxes better -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - *margin-top: 0; /* IE7 */ - margin-top: 1px \9; /* IE8-9 */ - line-height: normal; -} - -// Reset width of input images, buttons, radios, checkboxes -input[type="file"], -input[type="image"], -input[type="submit"], -input[type="reset"], -input[type="button"], -input[type="radio"], -input[type="checkbox"] { - width: auto; // Override of generic input selector -} - -// Set the height of select and file controls to match text inputs -select, -input[type="file"] { - height: $inputHeight; /* In IE7, the height of the select element cannot be changed by height, only font-size */ - *margin-top: 4px; /* For IE7, add top margin to align select with labels */ - line-height: $inputHeight; -} - -// Make select elements obey height by applying a border -select { - width: 220px; // default input width + 10px of padding that doesn't get applied - border: 1px solid $inputBorder; - background-color: $inputBackground; // Chrome on Linux and Mobile Safari need background-color -} - -// Make multiple select elements height not fixed -select[multiple], -select[size] { - height: auto; -} - -// Focus for select, file, radio, and checkbox -select:focus, -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - @include tab-focus(); -} - - -// Uneditable inputs -// ------------------------- - -// Make uneditable inputs look inactive -.uneditable-input, -.uneditable-textarea { - color: $grayLight; - background-color: darken($inputBackground, 1%); - border-color: $inputBorder; - @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025)); - cursor: not-allowed; -} - -// For text that needs to appear as an input but should not be an input -.uneditable-input { - overflow: hidden; // prevent text from wrapping, but still cut it off like an input does - white-space: nowrap; -} - -// Make uneditable textareas behave like a textarea -.uneditable-textarea { - width: auto; - height: auto; -} - - -// Placeholder -// ------------------------- - -// Placeholder text gets special styles because when browsers invalidate entire lines if it doesn't understand a selector -input, -textarea { - @include placeholder(); -} - - -// CHECKBOXES & RADIOS -// ------------------- - -// Indent the labels to position radios/checkboxes as hanging -.radio, -.checkbox { - min-height: $baseLineHeight; // clear the floating input if there is no label text - padding-left: 20px; -} -.radio input[type="radio"], -.checkbox input[type="checkbox"] { - float: left; - margin-left: -20px; -} - -// Move the options list down to align with labels -.controls > .radio:first-child, -.controls > .checkbox:first-child { - padding-top: 5px; // has to be padding because margin collaspes -} - -// Radios and checkboxes on same line -// TODO v3: Convert .inline to .control-inline -.radio.inline, -.checkbox.inline { - display: inline-block; - padding-top: 5px; - margin-bottom: 0; - vertical-align: middle; -} -.radio.inline + .radio.inline, -.checkbox.inline + .checkbox.inline { - margin-left: 10px; // space out consecutive inline controls -} - - - -// INPUT SIZES -// ----------- - -// General classes for quick sizes -.input-mini { width: 60px; } -.input-small { width: 90px; } -.input-medium { width: 150px; } -.input-large { width: 210px; } -.input-xlarge { width: 270px; } -.input-xxlarge { width: 530px; } - -// Grid style input sizes -input[class*="span"], -select[class*="span"], -textarea[class*="span"], -.uneditable-input[class*="span"], -// Redeclare since the fluid row class is more specific -.row-fluid input[class*="span"], -.row-fluid select[class*="span"], -.row-fluid textarea[class*="span"], -.row-fluid .uneditable-input[class*="span"] { - float: none; - margin-left: 0; -} -// Ensure input-prepend/append never wraps -.input-append input[class*="span"], -.input-append .uneditable-input[class*="span"], -.input-prepend input[class*="span"], -.input-prepend .uneditable-input[class*="span"], -.row-fluid input[class*="span"], -.row-fluid select[class*="span"], -.row-fluid textarea[class*="span"], -.row-fluid .uneditable-input[class*="span"], -.row-fluid .input-prepend [class*="span"], -.row-fluid .input-append [class*="span"] { - display: inline-block; -} - - - -// GRID SIZING FOR INPUTS -// ---------------------- - -// Grid sizes -@include grid-input($gridColumnWidth, $gridGutterWidth); - -// Control row for multiple inputs per line -.controls-row { - @include clearfix(); // Clear the float from controls -} - -// Float to collapse white-space for proper grid alignment -.controls-row [class*="span"], -// Redeclare the fluid grid collapse since we undo the float for inputs -.row-fluid .controls-row [class*="span"] { - float: left; -} -// Explicity set top padding on all checkboxes/radios, not just first-child -.controls-row .checkbox[class*="span"], -.controls-row .radio[class*="span"] { - padding-top: 5px; -} - - - - -// DISABLED STATE -// -------------- - -// Disabled and read-only inputs -input[disabled], -select[disabled], -textarea[disabled], -input[readonly], -select[readonly], -textarea[readonly] { - cursor: not-allowed; - background-color: $inputDisabledBackground; -} -// Explicitly reset the colors here -input[type="radio"][disabled], -input[type="checkbox"][disabled], -input[type="radio"][readonly], -input[type="checkbox"][readonly] { - background-color: transparent; -} - - - - -// FORM FIELD FEEDBACK STATES -// -------------------------- - -// Warning -.control-group.warning { - @include formFieldState($warningText, $warningText, $warningBackground); -} -// Error -.control-group.error { - @include formFieldState($errorText, $errorText, $errorBackground); -} -// Success -.control-group.success { - @include formFieldState($successText, $successText, $successBackground); -} -// Info -.control-group.info { - @include formFieldState($infoText, $infoText, $infoBackground); -} - -// HTML5 invalid states -// Shares styles with the .control-group.error above -input:focus:invalid, -textarea:focus:invalid, -select:focus:invalid { - color: #b94a48; - border-color: #ee5f5b; - &:focus { - border-color: darken(#ee5f5b, 10%); - @include box-shadow(0 0 6px lighten(#ee5f5b, 20%)); - } -} - - - -// FORM ACTIONS -// ------------ - -.form-actions { - padding: ($baseLineHeight - 1) 20px $baseLineHeight; - margin-top: $baseLineHeight; - margin-bottom: $baseLineHeight; - background-color: $formActionsBackground; - border-top: 1px solid #e5e5e5; - @include clearfix(); // Adding clearfix to allow for .pull-right button containers -} - - - -// HELP TEXT -// --------- - -.help-block, -.help-inline { - color: lighten($textColor, 15%); // lighten the text some for contrast -} - -.help-block { - display: block; // account for any element using help-block - margin-bottom: $baseLineHeight / 2; -} - -.help-inline { - display: inline-block; - @include ie7-inline-block(); - vertical-align: middle; - padding-left: 5px; -} - - - -// INPUT GROUPS -// ------------ - -// Allow us to put symbols and text within the input field for a cleaner look -.input-append, -.input-prepend { - display: inline-block; - margin-bottom: $baseLineHeight / 2; - vertical-align: middle; - font-size: 0; // white space collapse hack - white-space: nowrap; // Prevent span and input from separating - - // Reset the white space collapse hack - input, - select, - .uneditable-input, - .dropdown-menu, - .popover { - font-size: $baseFontSize; - } - - input, - select, - .uneditable-input { - position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness - margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms - *margin-left: 0; - vertical-align: top; - @include border-radius(0 $inputBorderRadius $inputBorderRadius 0); - // Make input on top when focused so blue border and shadow always show - &:focus { - z-index: 2; - } - } - .add-on { - display: inline-block; - width: auto; - height: $baseLineHeight; - min-width: 16px; - padding: 4px 5px; - font-size: $baseFontSize; - font-weight: normal; - line-height: $baseLineHeight; - text-align: center; - text-shadow: 0 1px 0 $white; - background-color: $grayLighter; - border: 1px solid #ccc; - } - .add-on, - .btn, - .btn-group > .dropdown-toggle { - vertical-align: top; - @include border-radius(0); - } - .active { - background-color: lighten($green, 30); - border-color: $green; - } -} - -.input-prepend { - .add-on, - .btn { - margin-right: -1px; - } - .add-on:first-child, - .btn:first-child { - // FYI, `.btn:first-child` accounts for a button group that's prepended - @include border-radius($inputBorderRadius 0 0 $inputBorderRadius); - } -} - -.input-append { - input, - select, - .uneditable-input { - @include border-radius($inputBorderRadius 0 0 $inputBorderRadius); - + .btn-group .btn:last-child { - @include border-radius(0 $inputBorderRadius $inputBorderRadius 0); - } - } - .add-on, - .btn, - .btn-group { - margin-left: -1px; - } - .add-on:last-child, - .btn:last-child, - .btn-group:last-child > .dropdown-toggle { - @include border-radius(0 $inputBorderRadius $inputBorderRadius 0); - } -} - -// Remove all border-radius for inputs with both prepend and append -.input-prepend.input-append { - input, - select, - .uneditable-input { - @include border-radius(0); - + .btn-group .btn { - @include border-radius(0 $inputBorderRadius $inputBorderRadius 0); - } - } - .add-on:first-child, - .btn:first-child { - margin-right: -1px; - @include border-radius($inputBorderRadius 0 0 $inputBorderRadius); - } - .add-on:last-child, - .btn:last-child { - margin-left: -1px; - @include border-radius(0 $inputBorderRadius $inputBorderRadius 0); - } - .btn-group:first-child { - margin-left: 0; - } -} - - - - -// SEARCH FORM -// ----------- - -input.search-query { - padding-right: 14px; - padding-right: 4px \9; - padding-left: 14px; - padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ - margin-bottom: 0; // Remove the default margin on all inputs - @include border-radius(15px); -} - -/* Allow for input prepend/append in search forms */ -.form-search .input-append .search-query, -.form-search .input-prepend .search-query { - @include border-radius(0); // Override due to specificity -} -.form-search .input-append .search-query { - @include border-radius(14px 0 0 14px); -} -.form-search .input-append .btn { - @include border-radius(0 14px 14px 0); -} -.form-search .input-prepend .search-query { - @include border-radius(0 14px 14px 0); -} -.form-search .input-prepend .btn { - @include border-radius(14px 0 0 14px); -} - - - - -// HORIZONTAL & VERTICAL FORMS -// --------------------------- - -// Common properties -// ----------------- - -.form-search, -.form-inline, -.form-horizontal { - input, - textarea, - select, - .help-inline, - .uneditable-input, - .input-prepend, - .input-append { - display: inline-block; - @include ie7-inline-block(); - margin-bottom: 0; - vertical-align: middle; - } - // Re-hide hidden elements due to specifity - .hide { - display: none; - } -} -.form-search label, -.form-inline label, -.form-search .btn-group, -.form-inline .btn-group { - display: inline-block; -} -// Remove margin for input-prepend/-append -.form-search .input-append, -.form-inline .input-append, -.form-search .input-prepend, -.form-inline .input-prepend { - margin-bottom: 0; -} -// Inline checkbox/radio labels (remove padding on left) -.form-search .radio, -.form-search .checkbox, -.form-inline .radio, -.form-inline .checkbox { - padding-left: 0; - margin-bottom: 0; - vertical-align: middle; -} -// Remove float and margin, set to inline-block -.form-search .radio input[type="radio"], -.form-search .checkbox input[type="checkbox"], -.form-inline .radio input[type="radio"], -.form-inline .checkbox input[type="checkbox"] { - float: left; - margin-right: 3px; - margin-left: 0; -} - - -// Margin to space out fieldsets -.control-group { - margin-bottom: $baseLineHeight / 2; -} - -// Legend collapses margin, so next element is responsible for spacing -legend + .control-group { - margin-top: $baseLineHeight; - -webkit-margin-top-collapse: separate; -} - -// Horizontal-specific styles -// -------------------------- - -.form-horizontal { - // Increase spacing between groups - .control-group { - margin-bottom: $baseLineHeight; - @include clearfix(); - } - // Float the labels left - .control-label { - float: left; - width: $horizontalComponentOffset - 20; - padding-top: 5px; - text-align: right; - } - // Move over all input controls and content - .controls { - // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend - // don't inherit the margin of the parent, in this case .controls - *display: inline-block; - *padding-left: 20px; - margin-left: $horizontalComponentOffset; - *margin-left: 0; - &:first-child { - *padding-left: $horizontalComponentOffset; - } - } - // Remove bottom margin on block level help text since that's accounted for on .control-group - .help-block { - margin-bottom: 0; - } - // And apply it only to .help-block instances that follow a form control - input, - select, - textarea, - .uneditable-input, - .input-prepend, - .input-append { - + .help-block { - margin-top: $baseLineHeight / 2; - } - } - // Move over buttons in .form-actions to align with .controls - .form-actions { - padding-left: $horizontalComponentOffset; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_grid.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_grid.scss deleted file mode 100644 index f2b910a1..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_grid.scss +++ /dev/null @@ -1,21 +0,0 @@ -// -// Grid system -// -------------------------------------------------- - - -// Fixed (940px) -@include grid-core($gridColumnWidth, $gridGutterWidth); - -// Fluid (940px) -@include grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth); - -// Reset utility classes due to specificity -[class*="span"].hide, -.row-fluid [class*="span"].hide { - display: none; -} - -[class*="span"].pull-right, -.row-fluid [class*="span"].pull-right { - float: right; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_hero-unit.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_hero-unit.scss deleted file mode 100644 index 274527e2..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_hero-unit.scss +++ /dev/null @@ -1,25 +0,0 @@ -// -// Hero unit -// -------------------------------------------------- - - -.hero-unit { - padding: 60px; - margin-bottom: 30px; - font-size: 18px; - font-weight: 200; - line-height: $baseLineHeight * 1.5; - color: $heroUnitLeadColor; - background-color: $heroUnitBackground; - @include border-radius(6px); - h1 { - margin-bottom: 0; - font-size: 60px; - line-height: 1; - color: $heroUnitHeadingColor; - letter-spacing: -1px; - } - li { - line-height: $baseLineHeight * 1.5; // Reset since we specify in type.scss - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_labels-badges.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_labels-badges.scss deleted file mode 100644 index 8f17e58a..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_labels-badges.scss +++ /dev/null @@ -1,83 +0,0 @@ -// -// Labels and badges -// -------------------------------------------------- - - -// Base classes -.label, -.badge { - display: inline-block; - padding: 2px 4px; - font-size: $baseFontSize * .846; - font-weight: bold; - line-height: 14px; // ensure proper line-height if floated - color: $white; - vertical-align: baseline; - white-space: nowrap; - text-shadow: 0 -1px 0 rgba(0,0,0,.25); - background-color: $grayLight; -} -// Set unique padding and border-radii -.label { - @include border-radius(3px); -} -.badge { - padding-left: 9px; - padding-right: 9px; - @include border-radius(9px); -} - -// Empty labels/badges collapse -.label, -.badge { - &:empty { - display: none; - } -} - -// Hover/focus state, but only for links -a { - &.label:hover, - &.label:focus, - &.badge:hover, - &.badge:focus { - color: $white; - text-decoration: none; - cursor: pointer; - } -} - -// Colors -// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute) -@each $item in label, badge { - // Important (red) - .#{$item}-important { background-color: $errorText; } - .#{$item}-important[href] { background-color: darken($errorText, 10%); } - // Warnings (orange) - .#{$item}-warning { background-color: $orange; } - .#{$item}-warning[href] { background-color: darken($orange, 10%); } - // Success (green) - .#{$item}-success { background-color: $successText; } - .#{$item}-success[href] { background-color: darken($successText, 10%); } - // Info (turquoise) - .#{$item}-info { background-color: $infoText; } - .#{$item}-info[href] { background-color: darken($infoText, 10%); } - // Inverse (black) - .#{$item}-inverse { background-color: $grayDark; } - .#{$item}-inverse[href] { background-color: darken($grayDark, 10%); } -} - -// Quick fix for labels/badges in buttons -.btn { - .label, - .badge { - position: relative; - top: -1px; - } -} -.btn-mini { - .label, - .badge { - top: 0; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_layouts.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_layouts.scss deleted file mode 100644 index 5ea4d004..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_layouts.scss +++ /dev/null @@ -1,16 +0,0 @@ -// -// Layouts -// -------------------------------------------------- - - -// Container (centered, fixed-width layouts) -.container { - @include container-fixed(); -} - -// Fluid layouts (left aligned, with sidebar, min- & max-width content) -.container-fluid { - padding-right: $gridGutterWidth; - padding-left: $gridGutterWidth; - @include clearfix(); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_media.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_media.scss deleted file mode 100644 index e461e446..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_media.scss +++ /dev/null @@ -1,55 +0,0 @@ -// Media objects -// Source: http://stubbornella.org/content/?p=497 -// -------------------------------------------------- - - -// Common styles -// ------------------------- - -// Clear the floats -.media, -.media-body { - overflow: hidden; - *overflow: visible; - zoom: 1; -} - -// Proper spacing between instances of .media -.media, -.media .media { - margin-top: 15px; -} -.media:first-child { - margin-top: 0; -} - -// For images and videos, set to block -.media-object { - display: block; -} - -// Reset margins on headings for tighter default spacing -.media-heading { - margin: 0 0 5px; -} - - -// Media image alignment -// ------------------------- - -.media > .pull-left { - margin-right: 10px; -} -.media > .pull-right { - margin-left: 10px; -} - - -// Media list variation -// ------------------------- - -// Undo default ul/ol styles -.media-list { - margin-left: 0; - list-style: none; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_mixins.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_mixins.scss deleted file mode 100644 index 53303aa0..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_mixins.scss +++ /dev/null @@ -1,696 +0,0 @@ -// -// Mixins -// -------------------------------------------------- - - -// UTILITY MIXINS -// -------------------------------------------------- - -// Clearfix -// -------- -// For clearing floats like a boss h5bp.com/q -@mixin clearfix { - *zoom: 1; - &:before, - &:after { - display: table; - content: ""; - // Fixes Opera/contenteditable bug: - // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 - line-height: 0; - } - &:after { - clear: both; - } -} - -// Webkit-style focus -// ------------------ -@mixin tab-focus() { - // Default - outline: thin dotted #333; - // Webkit - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} - -// Center-align a block level element -// ---------------------------------- -@mixin center-block() { - display: block; - margin-left: auto; - margin-right: auto; -} - -// IE7 inline-block -// ---------------- -@mixin ie7-inline-block() { - *display: inline; /* IE7 inline-block hack */ - *zoom: 1; -} - -// IE7 likes to collapse whitespace on either side of the inline-block elements. -// Ems because we're attempting to match the width of a space character. Left -// version is for form buttons, which typically come after other elements, and -// right version is for icons, which come before. Applying both is ok, but it will -// mean that space between those elements will be .6em (~2 space characters) in IE7, -// instead of the 1 space in other browsers. -@mixin ie7-restore-left-whitespace() { - *margin-left: .3em; - - &:first-child { - *margin-left: 0; - } -} - -@mixin ie7-restore-right-whitespace() { - *margin-right: .3em; -} - -// Sizing shortcuts -// ------------------------- -@mixin size($height, $width) { - width: $width; - height: $height; -} -@mixin square($size) { - @include size($size, $size); -} - -// Placeholder text -// ------------------------- -@mixin placeholder($color: $placeholderText) { - &:-moz-placeholder { - color: $color; - } - &:-ms-input-placeholder { - color: $color; - } - &::-webkit-input-placeholder { - color: $color; - } -} - -// Text overflow -// ------------------------- -// Requires inline-block or block for proper styling -@mixin text-overflow() { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -// CSS image replacement -// ------------------------- -// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 -@mixin hide-text { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - - -// FONTS -// -------------------------------------------------- - -@mixin font-family-serif() { - font-family: $serifFontFamily; -} -@mixin font-family-sans-serif() { - font-family: $sansFontFamily; -} -@mixin font-family-monospace() { - font-family: $monoFontFamily; -} -@mixin font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) { - font-size: $size; - font-weight: $weight; - line-height: $lineHeight; -} -@mixin font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) { - @include font-family-serif(); - @include font-shorthand($size, $weight, $lineHeight); -} -@mixin font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) { - @include font-family-sans-serif(); - @include font-shorthand($size, $weight, $lineHeight); -} -@mixin font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) { - @include font-family-monospace(); - @include font-shorthand($size, $weight, $lineHeight); -} - - -// FORMS -// -------------------------------------------------- - -// Block level inputs -@mixin input-block-level { - display: block; - width: 100%; - min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border) - @include box-sizing(border-box); // Makes inputs behave like true block-level elements -} - - - -// Mixin for form field states -@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) { - // Set the text color - .control-label, - .help-block, - .help-inline { - color: $textColor; - } - // Style inputs accordingly - .checkbox, - .radio, - input, - select, - textarea { - color: $textColor; - } - input, - select, - textarea { - border-color: $borderColor; - @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work - &:focus { - border-color: darken($borderColor, 10%); - @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($borderColor, 20%)); - } - } - // Give a small background color for input-prepend/-append - .input-prepend .add-on, - .input-append .add-on { - color: $textColor; - background-color: $backgroundColor; - border-color: $textColor; - } -} - - - -// CSS3 PROPERTIES -// -------------------------------------------------- - -// Border Radius -@mixin border-radius($radius) { - -webkit-border-radius: $radius; - -moz-border-radius: $radius; - border-radius: $radius; -} - -// Single Corner Border Radius -@mixin border-top-left-radius($radius) { - -webkit-border-top-left-radius: $radius; - -moz-border-radius-topleft: $radius; - border-top-left-radius: $radius; -} -@mixin border-top-right-radius($radius) { - -webkit-border-top-right-radius: $radius; - -moz-border-radius-topright: $radius; - border-top-right-radius: $radius; -} -@mixin border-bottom-right-radius($radius) { - -webkit-border-bottom-right-radius: $radius; - -moz-border-radius-bottomright: $radius; - border-bottom-right-radius: $radius; -} -@mixin border-bottom-left-radius($radius) { - -webkit-border-bottom-left-radius: $radius; - -moz-border-radius-bottomleft: $radius; - border-bottom-left-radius: $radius; -} - -// Single Side Border Radius -@mixin border-top-radius($radius) { - @include border-top-right-radius($radius); - @include border-top-left-radius($radius); -} -@mixin border-right-radius($radius) { - @include border-top-right-radius($radius); - @include border-bottom-right-radius($radius); -} -@mixin border-bottom-radius($radius) { - @include border-bottom-right-radius($radius); - @include border-bottom-left-radius($radius); -} -@mixin border-left-radius($radius) { - @include border-top-left-radius($radius); - @include border-bottom-left-radius($radius); -} - -// Drop shadows -@mixin box-shadow($shadow...) { - -webkit-box-shadow: $shadow; - -moz-box-shadow: $shadow; - box-shadow: $shadow; -} - -// Transitions -@mixin transition($transition...) { - -webkit-transition: $transition; - -moz-transition: $transition; - -o-transition: $transition; - transition: $transition; -} -@mixin transition-delay($transition-delay) { - -webkit-transition-delay: $transition-delay; - -moz-transition-delay: $transition-delay; - -o-transition-delay: $transition-delay; - transition-delay: $transition-delay; -} -@mixin transition-duration($transition-duration) { - -webkit-transition-duration: $transition-duration; - -moz-transition-duration: $transition-duration; - -o-transition-duration: $transition-duration; - transition-duration: $transition-duration; -} - -// Transformations -@mixin rotate($degrees) { - -webkit-transform: rotate($degrees); - -moz-transform: rotate($degrees); - -ms-transform: rotate($degrees); - -o-transform: rotate($degrees); - transform: rotate($degrees); -} -@mixin scale($ratio) { - -webkit-transform: scale($ratio); - -moz-transform: scale($ratio); - -ms-transform: scale($ratio); - -o-transform: scale($ratio); - transform: scale($ratio); -} -@mixin translate($x, $y) { - -webkit-transform: translate($x, $y); - -moz-transform: translate($x, $y); - -ms-transform: translate($x, $y); - -o-transform: translate($x, $y); - transform: translate($x, $y); -} -@mixin skew($x, $y) { - -webkit-transform: skew($x, $y); - -moz-transform: skew($x, $y); - -ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885 - -o-transform: skew($x, $y); - transform: skew($x, $y); - -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319 -} -@mixin translate3d($x, $y, $z) { - -webkit-transform: translate3d($x, $y, $z); - -moz-transform: translate3d($x, $y, $z); - -o-transform: translate3d($x, $y, $z); - transform: translate3d($x, $y, $z); -} - -// Backface visibility -// Prevent browsers from flickering when using CSS 3D transforms. -// Default value is `visible`, but can be changed to `hidden -// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples -@mixin backface-visibility($visibility){ - -webkit-backface-visibility: $visibility; - -moz-backface-visibility: $visibility; - backface-visibility: $visibility; -} - -// Background clipping -// Heads up: FF 3.6 and under need "padding" instead of "padding-box" -@mixin background-clip($clip) { - -webkit-background-clip: $clip; - -moz-background-clip: $clip; - background-clip: $clip; -} - -// Background sizing -@mixin background-size($size) { - -webkit-background-size: $size; - -moz-background-size: $size; - -o-background-size: $size; - background-size: $size; -} - - -// Box sizing -@mixin box-sizing($boxmodel) { - -webkit-box-sizing: $boxmodel; - -moz-box-sizing: $boxmodel; - box-sizing: $boxmodel; -} - -// User select -// For selecting text on the page -@mixin user-select($select) { - -webkit-user-select: $select; - -moz-user-select: $select; - -ms-user-select: $select; - -o-user-select: $select; - user-select: $select; -} - -// Resize anything -@mixin resizable($direction) { - resize: $direction; // Options: horizontal, vertical, both - overflow: auto; // Safari fix -} - -// CSS3 Content Columns -@mixin content-columns($columnCount, $columnGap: $gridGutterWidth) { - -webkit-column-count: $columnCount; - -moz-column-count: $columnCount; - column-count: $columnCount; - -webkit-column-gap: $columnGap; - -moz-column-gap: $columnGap; - column-gap: $columnGap; -} - -// Optional hyphenation -@mixin hyphens($mode: auto) { - word-wrap: break-word; - -webkit-hyphens: $mode; - -moz-hyphens: $mode; - -ms-hyphens: $mode; - -o-hyphens: $mode; - hyphens: $mode; -} - -// Opacity -@mixin opacity($opacity) { - opacity: $opacity / 100; - filter: alpha(opacity=$opacity); -} - - - -// BACKGROUNDS -// -------------------------------------------------- - -// Add an alphatransparency value to any background or border color (via Elyse Holladay) -@mixin translucent-background($color: $white, $alpha: 1) { - background-color: hsla(hue($color), saturation($color), lightness($color), $alpha); -} - -@mixin translucent-border($color: $white, $alpha: 1) { - border-color: hsla(hue($color), saturation($color), lightness($color), $alpha); - @include background-clip(padding-box); -} - -// Gradient Bar Colors for buttons and alerts -@mixin gradientBar($primaryColor, $secondaryColor, $textColor: #fff, $textShadow: 0 -1px 0 rgba(0,0,0,.25)) { - color: $textColor; - text-shadow: $textShadow; - @include gradient-vertical($primaryColor, $secondaryColor); - border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%); - border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fade-in(rgba(0,0,0,.1), 0.15); -} - -// Gradients -@mixin gradient-horizontal($startColor: #555, $endColor: #333) { - background-color: $endColor; - background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+ - background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+ - background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10 - background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10 - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=1); // IE9 and down -} -@mixin gradient-vertical($startColor: #555, $endColor: #333) { - background-color: mix($startColor, $endColor, 60%); - background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+ - background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+ - background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10 - background-image: linear-gradient(to bottom, $startColor, $endColor); // Standard, IE10 - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down -} -@mixin gradient-directional($startColor: #555, $endColor: #333, $deg: 45deg) { - background-color: $endColor; - background-repeat: repeat-x; - background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+ - background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10 - background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10 -} -@mixin gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) { - background-color: mix($midColor, $endColor, 80%); - background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor)); - background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor); - background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop, $endColor); - background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor); - background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor); - background-repeat: no-repeat; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback -} - -@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) { - background-color: mix($midColor, $endColor, 80%); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor)); - background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor); - background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor); - background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor); - background-image: linear-gradient($startColor, $midColor $colorStop, $endColor); - background-repeat: no-repeat; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback -} -@mixin gradient-radial($innerColor: #555, $outerColor: #333) { - background-color: $outerColor; - background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor)); - background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor); - background-image: -moz-radial-gradient(circle, $innerColor, $outerColor); - background-image: -o-radial-gradient(circle, $innerColor, $outerColor); - background-repeat: no-repeat; -} -@mixin gradient-striped($color: #555, $angle: 45deg) { - background-color: $color; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); -} - -// Reset filters for IE -@mixin reset-filter() { - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} - - - -// COMPONENT MIXINS -// -------------------------------------------------- - -// Horizontal dividers -// ------------------------- -// Dividers (basically an hr) within dropdowns and nav lists -@mixin nav-divider($top: #e5e5e5, $bottom: $white) { - // IE7 needs a set width since we gave a height. Restricting just - // to IE7 to keep the 1px left/right space in other browsers. - // It is unclear where IE is getting the extra space that we need - // to negative-margin away, but so it goes. - *width: 100%; - height: 1px; - margin: (($baseLineHeight / 2) - 1) 1px; // 8px 1px - *margin: -5px 0 5px; - overflow: hidden; - background-color: $top; - border-bottom: 1px solid $bottom; -} - -// Button backgrounds -// ------------------ -@mixin buttonBackground($startColor, $endColor, $textColor: #fff, $textShadow: 0 -1px 0 rgba(0,0,0,.25)) { - // gradientBar will set the background to a pleasing blend of these, to support IE<=9 - @include gradientBar($startColor, $endColor, $textColor, $textShadow); - *background-color: $endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - @include reset-filter(); - - // in these cases the gradient won't cover the background, so we override - &:hover, &:focus, &:active, &.active, &.disabled, &[disabled] { - color: $textColor; - background-color: $endColor; - *background-color: darken($endColor, 5%); - } - - // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves - &:active, - &.active { - background-color: darken($endColor, 10%) \9; - } -} - -// Navbar vertical align -// ------------------------- -// Vertically center elements in the navbar. -// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin. -@mixin navbarVerticalAlign($elementHeight) { - margin-top: ($navbarHeight - $elementHeight) / 2; -} - - - -// Grid System -// ----------- - -// Centered container element -@mixin container-fixed() { - margin-right: auto; - margin-left: auto; - @include clearfix(); -} - -// Table columns -@mixin tableColumns($columnSpan: 1) { - float: none; // undo default grid column styles - width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells - margin-left: 0; // undo default grid column styles -} - -// Make a Grid -// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior -@mixin makeRow() { - margin-left: $gridGutterWidth * -1; - @include clearfix(); -} -@mixin makeColumn($columns: 1, $offset: 0) { - float: left; - margin-left: ($gridColumnWidth * $offset) + ($gridGutterWidth * ($offset - 1)) + ($gridGutterWidth * 2); - width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)); -} - -// The Grid -@mixin grid-core($gridColumnWidth, $gridGutterWidth) { - .row { - margin-left: $gridGutterWidth * -1; - @include clearfix(); - } - - [class*="span"] { - float: left; - min-height: 1px; // prevent collapsing columns - margin-left: $gridGutterWidth; - } - - // Set the container width, and override it for fixed navbars in media queries - .container, - .navbar-static-top .container, - .navbar-fixed-top .container, - .navbar-fixed-bottom .container { - @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth); - } - - // generate .spanX and .offsetX - @include grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth); - @include grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth); -} - -@mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) { - @for $i from 1 through $gridColumns { - .span#{$i} { @include grid-core-span($i, $gridColumnWidth, $gridGutterWidth); } - } -} - -@mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) { - @for $i from 1 through $gridColumns { - .offset#{$i} { @include grid-core-offset($i, $gridColumnWidth, $gridGutterWidth); } - } -} - -@mixin grid-core-span($columns, $gridColumnWidth, $gridGutterWidth) { - width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)); -} - -@mixin grid-core-offset($columns, $gridColumnWidth, $gridGutterWidth) { - margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns + 1)); -} - - - -@mixin grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth) { - .row-fluid { - width: 100%; - @include clearfix(); - [class*="span"] { - @include input-block-level(); - float: left; - margin-left: $fluidGridGutterWidth; - *margin-left: $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%); - } - [class*="span"]:first-child { - margin-left: 0; - } - - // Space grid-sized controls properly if multiple per line - .controls-row [class*="span"] + [class*="span"] { - margin-left: $fluidGridGutterWidth; - } - - // generate .spanX and .offsetX - @include grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); - @include grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); - } -} - -@mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) { - @for $i from 1 through $gridColumns { - .span#{$i} { @include grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth); } - } -} - -@mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) { - @for $i from 1 through $gridColumns { - .offset#{$i} { @include grid-fluid-offset($i, $fluidGridColumnWidth, $fluidGridGutterWidth); } - .offset#{$i}:first-child { @include grid-fluid-offset-first-child($i, $fluidGridColumnWidth, $fluidGridGutterWidth); } - } -} - -@mixin grid-fluid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) { - width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)); - *width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%); -} - -@mixin grid-fluid-offset($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) { - margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth * 2); - *margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + ($fluidGridGutterWidth * 2) - (.5 / $gridRowWidth * 100px * 1%); -} - -@mixin grid-fluid-offset-first-child($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) { - margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth); - *margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%); -} - - - -@mixin grid-input($gridColumnWidth, $gridGutterWidth) { - input, - textarea, - .uneditable-input { - margin-left: 0; // override margin-left from core grid system - } - - // Space grid-sized controls properly if multiple per line - .controls-row [class*="span"] + [class*="span"] { - margin-left: $gridGutterWidth; - } - - // generate .spanX - @include grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth); -} - -@mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) { - @for $i from 1 through $gridColumns { - input.span#{$i}, - textarea.span#{$i}, - .uneditable-input.span#{$i} { - @include grid-input-span($i, $gridColumnWidth, $gridGutterWidth); - } - } -} - -@mixin grid-input-span($columns, $gridColumnWidth, $gridGutterWidth) { - width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 14; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals-alloy.scss deleted file mode 100644 index fa90fbfd..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals-alloy.scss +++ /dev/null @@ -1,11 +0,0 @@ -// -// Modals -// -------------------------------------------------- - -.modal-hidden { - display: none; -} - -.modal-content { - overflow: hidden; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals.scss deleted file mode 100644 index 749baa6a..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_modals.scss +++ /dev/null @@ -1,95 +0,0 @@ -// -// Modals -// -------------------------------------------------- - -// Background -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: $zindexModalBackdrop; - background-color: $black; - // Fade for backdrop - &.fade { opacity: 0; } -} - -.modal-backdrop, -.modal-backdrop.fade.in { - @include opacity(80); -} - -// Base modal -.modal { - position: fixed; - top: 10%; - left: 50%; - z-index: $zindexModal; - width: 560px; - margin-left: -280px; - background-color: $white; - border: 1px solid #999; - border: 1px solid rgba(0,0,0,.3); - *border: 1px solid #999; /* IE6-7 */ - @include border-radius(6px); - @include box-shadow(0 3px 7px rgba(0,0,0,0.3)); - @include background-clip(padding-box); - // Remove focus outline from opened modal - outline: none; - - &.fade { - @include transition(opacity .3s linear, top .3s ease-out); - top: -25%; - } - &.fade.in { top: 10%; } -} -.modal-header { - padding: 9px 15px; - border-bottom: 1px solid #eee; - // Close icon - .close { margin-top: 2px; } - // Heading - h3 { - margin: 0; - line-height: 30px; - } -} - -// Body (where all modal content resides) -.modal-body { - position: relative; - overflow-y: auto; - max-height: 400px; - padding: 15px; -} -// Remove bottom margin if need be -.modal-form { - margin-bottom: 0; -} - -// Footer (for actions) -.modal-footer { - padding: 14px 15px 15px; - margin-bottom: 0; - text-align: right; // right align buttons - background-color: #f5f5f5; - border-top: 1px solid #ddd; - @include border-radius(0 0 6px 6px); - @include box-shadow(inset 0 1px 0 $white); - @include clearfix(); // clear it in case folks use .pull-* classes on buttons - - // Properly space out buttons - .btn + .btn { - margin-left: 5px; - margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs - } - // but override that for button groups - .btn-group .btn + .btn { - margin-left: -1px; - } - // and override it for block buttons as well - .btn-block + .btn-block { - margin-left: 0; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navbar.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navbar.scss deleted file mode 100644 index a65aa4ab..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navbar.scss +++ /dev/null @@ -1,497 +0,0 @@ -// -// Navbars (Redux) -// -------------------------------------------------- - - -// COMMON STYLES -// ------------- - -// Base class and wrapper -.navbar { - overflow: visible; - margin-bottom: $baseLineHeight; - - // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar - *position: relative; - *z-index: 2; -} - -// Inner for background effects -// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present -.navbar-inner { - min-height: $navbarHeight; - padding-left: 20px; - padding-right: 20px; - @include gradient-vertical($navbarBackgroundHighlight, $navbarBackground); - border: 1px solid $navbarBorder; - @include border-radius($baseBorderRadius); - @include box-shadow(0 1px 4px rgba(0,0,0,.065)); - - // Prevent floats from breaking the navbar - @include clearfix(); -} - -// Set width to auto for default container -// We then reset it for fixed navbars in the #gridSystem mixin -.navbar .container { - width: auto; -} - -// Override the default collapsed state -.nav-collapse.collapse { - height: auto; - overflow: visible; -} - - -// Brand: website or project name -// ------------------------- -.navbar .brand { - float: left; - display: block; - // Vertically center the text given $navbarHeight - padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2); - margin-left: -20px; // negative indent to left-align the text down the page - font-size: 20px; - font-weight: 200; - color: $navbarBrandColor; - text-shadow: 0 1px 0 $navbarBackgroundHighlight; - &:hover, - &:focus { - text-decoration: none; - } -} - -// Plain text in topbar -// ------------------------- -.navbar-text { - margin-bottom: 0; - line-height: $navbarHeight; - color: $navbarText; -} - -// Janky solution for now to account for links outside the .nav -// ------------------------- -.navbar-link { - color: $navbarLinkColor; - &:hover, - &:focus { - color: $navbarLinkColorHover; - } -} - -// Dividers in navbar -// ------------------------- -.navbar .divider-vertical { - height: $navbarHeight; - margin: 0 9px; - border-left: 1px solid $navbarBackground; - border-right: 1px solid $navbarBackgroundHighlight; -} - -// Buttons in navbar -// ------------------------- -.navbar .btn, -.navbar .btn-group { - @include navbarVerticalAlign(30px); // Vertically center in navbar -} -.navbar .btn-group .btn, -.navbar .input-prepend .btn, -.navbar .input-append .btn, -.navbar .input-prepend .btn-group, -.navbar .input-append .btn-group { - margin-top: 0; // then undo the margin here so we don't accidentally double it -} - -// Navbar forms -// ------------------------- -.navbar-form { - margin-bottom: 0; // remove default bottom margin - @include clearfix(); - input, - select, - .radio, - .checkbox { - @include navbarVerticalAlign(30px); // Vertically center in navbar - } - input, - select, - .btn { - display: inline-block; - margin-bottom: 0; - } - input[type="image"], - input[type="checkbox"], - input[type="radio"] { - margin-top: 3px; - } - .input-append, - .input-prepend { - margin-top: 5px; - white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left - input { - margin-top: 0; // remove the margin on top since it's on the parent - } - } -} - -// Navbar search -// ------------------------- -.navbar-search { - position: relative; - float: left; - @include navbarVerticalAlign(30px); // Vertically center in navbar - margin-bottom: 0; - .search-query { - margin-bottom: 0; - padding: 4px 14px; - @include font-sans-serif(13px, normal, 1); - @include border-radius(15px); // redeclare because of specificity of the type attribute - } -} - - - -// Static navbar -// ------------------------- - -.navbar-static-top { - position: static; - margin-bottom: 0; // remove 18px margin for default navbar - .navbar-inner { - @include border-radius(0); - } -} - - - -// Fixed navbar -// ------------------------- - -// Shared (top/bottom) styles -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: $zindexFixedNavbar; - margin-bottom: 0; // remove 18px margin for default navbar -} -.navbar-fixed-top .navbar-inner, -.navbar-static-top .navbar-inner { - border-width: 0 0 1px; -} -.navbar-fixed-bottom .navbar-inner { - border-width: 1px 0 0; -} -.navbar-fixed-top .navbar-inner, -.navbar-fixed-bottom .navbar-inner { - padding-left: 0; - padding-right: 0; - @include border-radius(0); -} - -// Reset container width -// Required here as we reset the width earlier on and the grid mixins don't override early enough -.navbar-static-top .container, -.navbar-fixed-top .container, -.navbar-fixed-bottom .container { - @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth); -} - -// Fixed to top -.navbar-fixed-top { - top: 0; -} -.navbar-fixed-top, -.navbar-static-top { - .navbar-inner { - @include box-shadow(0 1px 10px rgba(0,0,0,.1)); - } -} - -// Fixed to bottom -.navbar-fixed-bottom { - bottom: 0; - .navbar-inner { - @include box-shadow(0 -1px 10px rgba(0,0,0,.1)); - } -} - - - -// NAVIGATION -// ---------- - -.navbar .nav { - position: relative; - left: 0; - display: block; - float: left; - margin: 0 10px 0 0; -} -.navbar .nav.pull-right { - float: right; // redeclare due to specificity - margin-right: 0; // remove margin on float right nav -} -.navbar .nav > li { - float: left; -} - -// Links -.navbar .nav > li > a { - float: none; - // Vertically center the text given $navbarHeight - padding: (($navbarHeight - $baseLineHeight) / 2) 15px (($navbarHeight - $baseLineHeight) / 2); - color: $navbarLinkColor; - text-decoration: none; - text-shadow: 0 1px 0 $navbarBackgroundHighlight; -} -.navbar .nav .dropdown-toggle .caret { - margin-top: 8px; -} - -// Hover/focus -.navbar .nav > li > a:focus, -.navbar .nav > li > a:hover { - background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active - color: $navbarLinkColorHover; - text-decoration: none; -} - -// Active nav items -.navbar .nav > .active > a, -.navbar .nav > .active > a:hover, -.navbar .nav > .active > a:focus { - color: $navbarLinkColorActive; - text-decoration: none; - background-color: $navbarLinkBackgroundActive; - @include box-shadow(inset 0 3px 8px rgba(0,0,0,.125)); -} - -// Navbar button for toggling navbar items in responsive layouts -// These definitions need to come after '.navbar .btn' -.navbar .btn-navbar { - display: none; - float: right; - padding: 7px 10px; - margin-left: 5px; - margin-right: 5px; - @include buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5%)); - @include box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)); -} -.navbar .btn-navbar .icon-bar { - display: block; - width: 18px; - height: 2px; - background-color: #f5f5f5; - @include border-radius(1px); - @include box-shadow(0 1px 0 rgba(0,0,0,.25)); -} -.btn-navbar .icon-bar + .icon-bar { - margin-top: 3px; -} - - - -// Dropdown menus -// -------------- - -// Menu position and menu carets -.navbar .nav > li > .dropdown-menu { - &:before { - content: ''; - display: inline-block; - border-left: 7px solid transparent; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-bottom-color: $dropdownBorder; - position: absolute; - top: -7px; - left: 9px; - } - &:after { - content: ''; - display: inline-block; - border-left: 6px solid transparent; - border-right: 6px solid transparent; - border-bottom: 6px solid $dropdownBackground; - position: absolute; - top: -6px; - left: 10px; - } -} -// Menu position and menu caret support for dropups via extra dropup class -.navbar-fixed-bottom .nav > li > .dropdown-menu { - &:before { - border-top: 7px solid #ccc; - border-top-color: $dropdownBorder; - border-bottom: 0; - bottom: -7px; - top: auto; - } - &:after { - border-top: 6px solid $dropdownBackground; - border-bottom: 0; - bottom: -6px; - top: auto; - } -} - -// Caret should match text color on hover/focus -.navbar .nav li.dropdown > a:hover .caret, -.navbar .nav li.dropdown > a:focus .caret { - border-top-color: $navbarLinkColorActive; - border-bottom-color: $navbarLinkColorActive; -} - -// Remove background color from open dropdown -.navbar .nav li.dropdown.open > .dropdown-toggle, -.navbar .nav li.dropdown.active > .dropdown-toggle, -.navbar .nav li.dropdown.open.active > .dropdown-toggle { - background-color: $navbarLinkBackgroundActive; - color: $navbarLinkColorActive; -} -.navbar .nav li.dropdown > .dropdown-toggle .caret { - border-top-color: $navbarLinkColor; - border-bottom-color: $navbarLinkColor; -} -.navbar .nav li.dropdown.open > .dropdown-toggle .caret, -.navbar .nav li.dropdown.active > .dropdown-toggle .caret, -.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { - border-top-color: $navbarLinkColorActive; - border-bottom-color: $navbarLinkColorActive; -} - -// Right aligned menus need alt position -.navbar .pull-right > li > .dropdown-menu, -.navbar .nav > li > .dropdown-menu.pull-right { - left: auto; - right: 0; - &:before { - left: auto; - right: 12px; - } - &:after { - left: auto; - right: 13px; - } - .dropdown-menu { - left: auto; - right: 100%; - margin-left: 0; - margin-right: -1px; - @include border-radius(6px 0 6px 6px); - } -} - - -// Inverted navbar -// ------------------------- - -.navbar-inverse { - - .navbar-inner { - @include gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground); - border-color: $navbarInverseBorder; - } - - .brand, - .nav > li > a { - color: $navbarInverseLinkColor; - text-shadow: 0 -1px 0 rgba(0,0,0,.25); - &:hover, - &:focus { - color: $navbarInverseLinkColorHover; - } - } - - .brand { - color: $navbarInverseBrandColor; - } - - .navbar-text { - color: $navbarInverseText; - } - - .nav > li > a:focus, - .nav > li > a:hover { - background-color: $navbarInverseLinkBackgroundHover; - color: $navbarInverseLinkColorHover; - } - - .nav .active > a, - .nav .active > a:hover, - .nav .active > a:focus { - color: $navbarInverseLinkColorActive; - background-color: $navbarInverseLinkBackgroundActive; - } - - // Inline text links - .navbar-link { - color: $navbarInverseLinkColor; - &:hover, - &:focus { - color: $navbarInverseLinkColorHover; - } - } - - // Dividers in navbar - .divider-vertical { - border-left-color: $navbarInverseBackground; - border-right-color: $navbarInverseBackgroundHighlight; - } - - // Dropdowns - .nav li.dropdown.open > .dropdown-toggle, - .nav li.dropdown.active > .dropdown-toggle, - .nav li.dropdown.open.active > .dropdown-toggle { - background-color: $navbarInverseLinkBackgroundActive; - color: $navbarInverseLinkColorActive; - } - .nav li.dropdown > a:hover .caret, - .nav li.dropdown > a:focus .caret { - border-top-color: $navbarInverseLinkColorActive; - color: $navbarInverseLinkColorActive; - } - .nav li.dropdown > .dropdown-toggle .caret { - border-top-color: $navbarInverseLinkColor; - border-bottom-color: $navbarInverseLinkColor; - } - .nav li.dropdown.open > .dropdown-toggle .caret, - .nav li.dropdown.active > .dropdown-toggle .caret, - .nav li.dropdown.open.active > .dropdown-toggle .caret { - border-top-color: $navbarInverseLinkColorActive; - border-bottom-color: $navbarInverseLinkColorActive; - } - - // Navbar search - .navbar-search { - .search-query { - color: $white; - background-color: $navbarInverseSearchBackground; - border-color: $navbarInverseSearchBorder; - @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)); - @include transition(none); - @include placeholder($navbarInverseSearchPlaceholderColor); - - // Focus states (we use .focused since IE7-8 and down doesn't support :focus) - &:focus, - &.focused { - padding: 5px 15px; - color: $grayDark; - text-shadow: 0 1px 0 $white; - background-color: $navbarInverseSearchBackgroundFocus; - border: 0; - @include box-shadow(0 0 3px rgba(0,0,0,.15)); - outline: 0; - } - } - } - - // Navbar collapse button - .btn-navbar { - @include buttonBackground(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%)); - } - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs-alloy.scss deleted file mode 100644 index 3942b040..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs-alloy.scss +++ /dev/null @@ -1,15 +0,0 @@ -// -// Navs -// -------------------------------------------------- - - -// TABBABLE -// -------- - - -// COMMON STYLES -// ------------- - -.tabbable-hidden { - display: none; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs.scss deleted file mode 100644 index 31c4451d..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_navs.scss +++ /dev/null @@ -1,409 +0,0 @@ -// -// Navs -// -------------------------------------------------- - - -// BASE CLASS -// ---------- - -.nav { - margin-left: 0; - margin-bottom: $baseLineHeight; - list-style: none; -} - -// Make links block level -.nav > li > a { - display: block; -} -.nav > li > a:hover, -.nav > li > a:focus { - text-decoration: none; - background-color: $grayLighter; -} - -// Prevent IE8 from misplacing imgs -// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989 -.nav > li > a > img { - max-width: none; -} - -// Redeclare pull classes because of specifity -.nav > .pull-right { - float: right; -} - -// Nav headers (for dropdowns and lists) -.nav-header { - display: block; - padding: 3px 15px; - font-size: 11px; - font-weight: bold; - line-height: $baseLineHeight; - color: $grayLight; - text-shadow: 0 1px 0 rgba(255,255,255,.5); - text-transform: uppercase; -} -// Space them out when they follow another list item (link) -.nav li + .nav-header { - margin-top: 9px; -} - - - -// NAV LIST -// -------- - -.nav-list { - padding-left: 15px; - padding-right: 15px; - margin-bottom: 0; -} -.nav-list > li > a, -.nav-list .nav-header { - margin-left: -15px; - margin-right: -15px; - text-shadow: 0 1px 0 rgba(255,255,255,.5); -} -.nav-list > li > a { - padding: 3px 15px; -} -.nav-list > .active > a, -.nav-list > .active > a:hover, -.nav-list > .active > a:focus { - color: $white; - text-shadow: 0 -1px 0 rgba(0,0,0,.2); - background-color: $linkColor; -} -.nav-list [class^="icon-"], -.nav-list [class*=" icon-"] { - margin-right: 2px; -} -// Dividers (basically an hr) within the dropdown -.nav-list .divider { - @include nav-divider(); -} - - - -// TABS AND PILLS -// ------------- - -// Common styles -.nav-tabs, -.nav-pills { - @include clearfix(); -} -.nav-tabs > li, -.nav-pills > li { - float: left; -} -.nav-tabs > li > a, -.nav-pills > li > a { - padding-right: 12px; - padding-left: 12px; - margin-right: 2px; - line-height: 14px; // keeps the overall height an even number -} - -// TABS -// ---- - -// Give the tabs something to sit on -.nav-tabs { - border-bottom: 1px solid #ddd; -} -// Make the list-items overlay the bottom border -.nav-tabs > li { - margin-bottom: -1px; -} -// Actual tabs (as links) -.nav-tabs > li > a { - padding-top: 8px; - padding-bottom: 8px; - line-height: $baseLineHeight; - border: 1px solid transparent; - @include border-radius(4px 4px 0 0); - &:hover, - &:focus { - border-color: $grayLighter $grayLighter #ddd; - } -} -// Active state, and it's :hover/:focus to override normal :hover/:focus -.nav-tabs > .active > a, -.nav-tabs > .active > a:hover, -.nav-tabs > .active > a:focus { - color: $gray; - background-color: $bodyBackground; - border: 1px solid #ddd; - border-bottom-color: transparent; - cursor: default; -} - - -// PILLS -// ----- - -// Links rendered as pills -.nav-pills > li > a { - padding-top: 8px; - padding-bottom: 8px; - margin-top: 2px; - margin-bottom: 2px; - @include border-radius(5px); -} - -// Active state -.nav-pills > .active > a, -.nav-pills > .active > a:hover, -.nav-pills > .active > a:focus { - color: $white; - background-color: $linkColor; -} - - - -// STACKED NAV -// ----------- - -// Stacked tabs and pills -.nav-stacked > li { - float: none; -} -.nav-stacked > li > a { - margin-right: 0; // no need for the gap between nav items -} - -// Tabs -.nav-tabs.nav-stacked { - border-bottom: 0; -} -.nav-tabs.nav-stacked > li > a { - border: 1px solid #ddd; - @include border-radius(0); -} -.nav-tabs.nav-stacked > li:first-child > a { - @include border-top-radius(4px); -} -.nav-tabs.nav-stacked > li:last-child > a { - @include border-bottom-radius(4px); -} -.nav-tabs.nav-stacked > li > a:hover, -.nav-tabs.nav-stacked > li > a:focus { - border-color: #ddd; - z-index: 2; -} - -// Pills -.nav-pills.nav-stacked > li > a { - margin-bottom: 3px; -} -.nav-pills.nav-stacked > li:last-child > a { - margin-bottom: 1px; // decrease margin to match sizing of stacked tabs -} - - - -// DROPDOWNS -// --------- - -.nav-tabs .dropdown-menu { - @include border-radius(0 0 6px 6px); // remove the top rounded corners here since there is a hard edge above the menu -} -.nav-pills .dropdown-menu { - @include border-radius(6px); // make rounded corners match the pills -} - -// Default dropdown links -// ------------------------- -// Make carets use linkColor to start -.nav .dropdown-toggle .caret { - border-top-color: $linkColor; - border-bottom-color: $linkColor; - margin-top: 6px; -} -.nav .dropdown-toggle:hover .caret, -.nav .dropdown-toggle:focus .caret { - border-top-color: $linkColorHover; - border-bottom-color: $linkColorHover; -} -/* move down carets for tabs */ -.nav-tabs .dropdown-toggle .caret { - margin-top: 8px; -} - -// Active dropdown links -// ------------------------- -.nav .active .dropdown-toggle .caret { - border-top-color: #fff; - border-bottom-color: #fff; -} -.nav-tabs .active .dropdown-toggle .caret { - border-top-color: $gray; - border-bottom-color: $gray; -} - -// Active:hover/:focus dropdown links -// ------------------------- -.nav > .dropdown.active > a:hover, -.nav > .dropdown.active > a:focus { - cursor: pointer; -} - -// Open dropdowns -// ------------------------- -.nav-tabs .open .dropdown-toggle, -.nav-pills .open .dropdown-toggle, -.nav > li.dropdown.open.active > a:hover, -.nav > li.dropdown.open.active > a:focus { - color: $white; - background-color: $grayLight; - border-color: $grayLight; -} -.nav li.dropdown.open .caret, -.nav li.dropdown.open.active .caret, -.nav li.dropdown.open a:hover .caret, -.nav li.dropdown.open a:focus .caret { - border-top-color: $white; - border-bottom-color: $white; - @include opacity(100); -} - -// Dropdowns in stacked tabs -.tabs-stacked .open > a:hover, -.tabs-stacked .open > a:focus { - border-color: $grayLight; -} - - - -// TABBABLE -// -------- - - -// COMMON STYLES -// ------------- - -// Clear any floats -.tabbable { - @include clearfix(); -} -.tab-content { - overflow: auto; // prevent content from running below tabs -} - -// Remove border on bottom, left, right -.tabs-below > .nav-tabs, -.tabs-right > .nav-tabs, -.tabs-left > .nav-tabs { - border-bottom: 0; -} - -// Show/hide tabbable areas -.tab-content > .tab-pane, -.pill-content > .pill-pane { - display: none; -} -.tab-content > .active, -.pill-content > .active { - display: block; -} - - -// BOTTOM -// ------ - -.tabs-below > .nav-tabs { - border-top: 1px solid #ddd; -} -.tabs-below > .nav-tabs > li { - margin-top: -1px; - margin-bottom: 0; -} -.tabs-below > .nav-tabs > li > a { - @include border-radius(0 0 4px 4px); - &:hover, - &:focus { - border-bottom-color: transparent; - border-top-color: #ddd; - } -} -.tabs-below > .nav-tabs > .active > a, -.tabs-below > .nav-tabs > .active > a:hover, -.tabs-below > .nav-tabs > .active > a:focus { - border-color: transparent #ddd #ddd #ddd; -} - -// LEFT & RIGHT -// ------------ - -// Common styles -.tabs-left > .nav-tabs > li, -.tabs-right > .nav-tabs > li { - float: none; -} -.tabs-left > .nav-tabs > li > a, -.tabs-right > .nav-tabs > li > a { - min-width: 74px; - margin-right: 0; - margin-bottom: 3px; -} - -// Tabs on the left -.tabs-left > .nav-tabs { - float: left; - margin-right: 19px; - border-right: 1px solid #ddd; -} -.tabs-left > .nav-tabs > li > a { - margin-right: -1px; - @include border-radius(4px 0 0 4px); -} -.tabs-left > .nav-tabs > li > a:hover, -.tabs-left > .nav-tabs > li > a:focus { - border-color: $grayLighter #ddd $grayLighter $grayLighter; -} -.tabs-left > .nav-tabs .active > a, -.tabs-left > .nav-tabs .active > a:hover, -.tabs-left > .nav-tabs .active > a:focus { - border-color: #ddd transparent #ddd #ddd; - *border-right-color: $white; -} - -// Tabs on the right -.tabs-right > .nav-tabs { - float: right; - margin-left: 19px; - border-left: 1px solid #ddd; -} -.tabs-right > .nav-tabs > li > a { - margin-left: -1px; - @include border-radius(0 4px 4px 0); -} -.tabs-right > .nav-tabs > li > a:hover, -.tabs-right > .nav-tabs > li > a:focus { - border-color: $grayLighter $grayLighter $grayLighter #ddd; -} -.tabs-right > .nav-tabs .active > a, -.tabs-right > .nav-tabs .active > a:hover, -.tabs-right > .nav-tabs .active > a:focus { - border-color: #ddd #ddd #ddd transparent; - *border-left-color: $white; -} - - - -// DISABLED STATES -// --------------- - -// Gray out text -.nav > .disabled > a { - color: $grayLight; -} -// Nuke hover/focus effects -.nav > .disabled > a:hover, -.nav > .disabled > a:focus { - text-decoration: none; - background-color: transparent; - cursor: default; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pager.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pager.scss deleted file mode 100644 index 46df08f7..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pager.scss +++ /dev/null @@ -1,43 +0,0 @@ -// -// Pager pagination -// -------------------------------------------------- - - -.pager { - margin: $baseLineHeight 0; - list-style: none; - text-align: center; - @include clearfix(); -} -.pager li { - display: inline; -} -.pager li > a, -.pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #fff; - border: 1px solid #ddd; - @include border-radius(15px); -} -.pager li > a:hover, -.pager li > a:focus { - text-decoration: none; - background-color: #f5f5f5; -} -.pager .next > a, -.pager .next > span { - float: right; -} -.pager .previous > a, -.pager .previous > span { - float: left; -} -.pager .disabled > a, -.pager .disabled > a:hover, -.pager .disabled > a:focus, -.pager .disabled > span { - color: $grayLight; - background-color: #fff; - cursor: default; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination-alloy.scss deleted file mode 100644 index 3f60a676..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination-alloy.scss +++ /dev/null @@ -1,7 +0,0 @@ -// -// Pagination (multiple pages) -// -------------------------------------------------- - -.pagination-hidden { - display: none; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination.scss deleted file mode 100644 index 8ab33baf..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_pagination.scss +++ /dev/null @@ -1,123 +0,0 @@ -// -// Pagination (multiple pages) -// -------------------------------------------------- - -// Space out pagination from surrounding content -.pagination { - margin: $baseLineHeight 0; -} - -.pagination ul { - // Allow for text-based alignment - display: inline-block; - @include ie7-inline-block(); - // Reset default ul styles - margin-left: 0; - margin-bottom: 0; - // Visuals - @include border-radius($baseBorderRadius); - @include box-shadow(0 1px 2px rgba(0,0,0,.05)); -} -.pagination ul > li { - display: inline; // Remove list-style and block-level defaults -} -.pagination ul > li > a, -.pagination ul > li > span { - float: left; // Collapse white-space - padding: 4px 12px; - line-height: $baseLineHeight; - text-decoration: none; - background-color: $paginationBackground; - border: 1px solid $paginationBorder; - border-left-width: 0; -} -.pagination ul > li > a:hover, -.pagination ul > li > a:focus, -.pagination ul > .active > a, -.pagination ul > .active > span { - background-color: $paginationActiveBackground; -} -.pagination ul > .active > a, -.pagination ul > .active > span { - color: $grayLight; - cursor: default; -} -.pagination ul > .disabled > span, -.pagination ul > .disabled > a, -.pagination ul > .disabled > a:hover, -.pagination ul > .disabled > a:focus { - color: $grayLight; - background-color: transparent; - cursor: default; -} -.pagination ul > li:first-child > a, -.pagination ul > li:first-child > span { - border-left-width: 1px; - @include border-left-radius($baseBorderRadius); -} -.pagination ul > li:last-child > a, -.pagination ul > li:last-child > span { - @include border-right-radius($baseBorderRadius); -} - - -// Alignment -// -------------------------------------------------- - -.pagination-centered { - text-align: center; -} -.pagination-right { - text-align: right; -} - - -// Sizing -// -------------------------------------------------- - -// Large -.pagination-large { - ul > li > a, - ul > li > span { - padding: $paddingLarge; - font-size: $fontSizeLarge; - } - ul > li:first-child > a, - ul > li:first-child > span { - @include border-left-radius($borderRadiusLarge); - } - ul > li:last-child > a, - ul > li:last-child > span { - @include border-right-radius($borderRadiusLarge); - } -} - -// Small and mini -.pagination-mini, -.pagination-small { - ul > li:first-child > a, - ul > li:first-child > span { - @include border-left-radius($borderRadiusSmall); - } - ul > li:last-child > a, - ul > li:last-child > span { - @include border-right-radius($borderRadiusSmall); - } -} - -// Small -.pagination-small { - ul > li > a, - ul > li > span { - padding: $paddingSmall; - font-size: $fontSizeSmall; - } -} -// Mini -.pagination-mini { - ul > li > a, - ul > li > span { - padding: $paddingMini; - font-size: $fontSizeMini; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers-alloy.scss deleted file mode 100644 index b13dfb3f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers-alloy.scss +++ /dev/null @@ -1,7 +0,0 @@ -// -// Popovers -// -------------------------------------------------- - -.popover-hidden { - display: none; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers.scss deleted file mode 100644 index 18a1ca0c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_popovers.scss +++ /dev/null @@ -1,133 +0,0 @@ -// -// Popovers -// -------------------------------------------------- - - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: $zindexPopover; - display: none; - max-width: 276px; - padding: 1px; - text-align: left; // Reset given new insertion method - background-color: $popoverBackground; - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0,0,0,.2); - @include border-radius(6px); - @include box-shadow(0 5px 10px rgba(0,0,0,.2)); - - // Overrides for proper insertion - white-space: normal; - - // Offset the popover to account for the popover arrow - &.top { margin-top: -10px; } - &.right { margin-left: 10px; } - &.bottom { margin-top: 10px; } - &.left { margin-left: -10px; } -} - -.popover-title { - margin: 0; // reset heading margin - padding: 8px 14px; - font-size: 14px; - font-weight: normal; - line-height: 18px; - background-color: $popoverTitleBackground; - border-bottom: 1px solid darken($popoverTitleBackground, 5%); - @include border-radius(5px 5px 0 0); - - &:empty { - display: none; - } -} - -.popover-content { - padding: 9px 14px; -} - -// Arrows -// -// .arrow is outer, .arrow:after is inner - -.popover .arrow, -.popover .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.popover .arrow { - border-width: $popoverArrowOuterWidth; -} -.popover .arrow:after { - border-width: $popoverArrowWidth; - content: ""; -} - -.popover { - &.top .arrow { - left: 50%; - margin-left: -$popoverArrowOuterWidth; - border-bottom-width: 0; - border-top-color: #999; // IE8 fallback - border-top-color: $popoverArrowOuterColor; - bottom: -$popoverArrowOuterWidth; - &:after { - bottom: 1px; - margin-left: -$popoverArrowWidth; - border-bottom-width: 0; - border-top-color: $popoverArrowColor; - } - } - &.right .arrow { - top: 50%; - left: -$popoverArrowOuterWidth; - margin-top: -$popoverArrowOuterWidth; - border-left-width: 0; - border-right-color: #999; // IE8 fallback - border-right-color: $popoverArrowOuterColor; - &:after { - left: 1px; - bottom: -$popoverArrowWidth; - border-left-width: 0; - border-right-color: $popoverArrowColor; - } - } - &.bottom .arrow { - left: 50%; - margin-left: -$popoverArrowOuterWidth; - border-top-width: 0; - border-bottom-color: #999; // IE8 fallback - border-bottom-color: $popoverArrowOuterColor; - top: -$popoverArrowOuterWidth; - &:after { - top: 1px; - margin-left: -$popoverArrowWidth; - border-top-width: 0; - border-bottom-color: $popoverArrowColor; - } - } - - &.left .arrow { - top: 50%; - right: -$popoverArrowOuterWidth; - margin-top: -$popoverArrowOuterWidth; - border-right-width: 0; - border-left-color: #999; // IE8 fallback - border-left-color: $popoverArrowOuterColor; - &:after { - right: 1px; - border-right-width: 0; - border-left-color: $popoverArrowColor; - bottom: -$popoverArrowWidth; - } - } - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars-alloy.scss deleted file mode 100644 index b6d6057f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars-alloy.scss +++ /dev/null @@ -1,44 +0,0 @@ -// -// Progress bars -// -------------------------------------------------- - -// THE BARS -// -------- - -// Outer container -.progress-hiden { - display: none; -} - -.progress.vertical { - width: $baseLineHeight; - height: 100%; - margin-right: $baseLineHeight; -} - -// Bar of progress -.progress .bar { - overflow: hidden; -} - -.progress .bar p { - margin: 0; - color: $white; - font-size: 11px; - text-align: center; - text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25); -} - -.progress.vertical .bar { - width: 100%; - height: 0; -} - -.progress.vertical.bottom { - position: relative; -} - -.progress.vertical.bottom .bar { - position: absolute; - bottom: 0; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars.scss deleted file mode 100644 index 54a9a9a8..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_progress-bars.scss +++ /dev/null @@ -1,122 +0,0 @@ -// -// Progress bars -// -------------------------------------------------- - - -// ANIMATIONS -// ---------- - -// Webkit -@-webkit-keyframes progress-bar-stripes { - from { background-position: 40px 0; } - to { background-position: 0 0; } -} - -// Firefox -@-moz-keyframes progress-bar-stripes { - from { background-position: 40px 0; } - to { background-position: 0 0; } -} - -// IE9 -@-ms-keyframes progress-bar-stripes { - from { background-position: 40px 0; } - to { background-position: 0 0; } -} - -// Opera -@-o-keyframes progress-bar-stripes { - from { background-position: 0 0; } - to { background-position: 40px 0; } -} - -// Spec -@keyframes progress-bar-stripes { - from { background-position: 40px 0; } - to { background-position: 0 0; } -} - - - -// THE BARS -// -------- - -// Outer container -.progress { - overflow: hidden; - height: $baseLineHeight; - margin-bottom: $baseLineHeight; - @include gradient-vertical($progressBackgroundHighlight, $progressBackground); - @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1)); - @include border-radius($baseBorderRadius); -} - -// Bar of progress -.progress .bar { - width: 0%; - height: 100%; - color: $white; - float: left; - font-size: 12px; - text-align: center; - text-shadow: 0 -1px 0 rgba(0,0,0,.25); - @include gradient-vertical($progressbarBackgroundHighlight, $progressbarBackground); - @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15)); - @include box-sizing(border-box); - @include transition(width .6s ease); -} -.progress .bar + .bar { - @include box-shadow(inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)); -} - -// Striped bars -.progress-striped .bar { - @include gradient-striped($progressbarStripedColor); - @include background-size(40px 40px); -} - -// Call animation for the active one -.progress.active .bar { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -moz-animation: progress-bar-stripes 2s linear infinite; - -ms-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} - - - -// COLORS -// ------ - -// Danger (red) -.progress-danger .bar, .progress .bar-danger { - @include gradient-vertical($progressbarDangerBackground, $progressbarDangerBackgroundHighlight); -} -.progress-danger.progress-striped .bar, .progress-striped .bar-danger { - @include gradient-striped($progressbarDangerBackground); -} - -// Success (green) -.progress-success .bar, .progress .bar-success { - @include gradient-vertical($progressbarSuccessBackground, $progressbarSuccessBackgroundHighlight); -} -.progress-success.progress-striped .bar, .progress-striped .bar-success { - @include gradient-striped($progressbarSuccessBackground); -} - -// Info (teal) -.progress-info .bar, .progress .bar-info { - @include gradient-vertical($progressbarInfoBackground, $progressbarInfoBackgroundHighlight); -} -.progress-info.progress-striped .bar, .progress-striped .bar-info { - @include gradient-striped($progressbarInfoBackground); -} - -// Warning (orange) -.progress-warning .bar, .progress .bar-warning { - @include gradient-vertical(lighten($orange, 15%), $orange); -} -.progress-warning.progress-striped .bar, .progress-striped .bar-warning { - @include gradient-striped(lighten($orange, 15%)); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_reset.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_reset.scss deleted file mode 100644 index 2f0f029c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_reset.scss +++ /dev/null @@ -1,216 +0,0 @@ -// -// Reset CSS -// Adapted from http://github.com/necolas/normalize.css -// -------------------------------------------------- - - -// Display in IE6-9 and FF3 -// ------------------------- - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -nav, -section { - display: block; -} - -// Display block in IE6-9 and FF3 -// ------------------------- - -audio, -canvas, -video { - display: inline-block; - *display: inline; - *zoom: 1; -} - -// Prevents modern browsers from displaying 'audio' without controls -// ------------------------- - -audio:not([controls]) { - display: none; -} - -// Base settings -// ------------------------- - -html { - font-size: 100%; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} -// Focus states -a:focus { - @include tab-focus(); -} -// Hover & Active -a:hover, -a:active { - outline: 0; -} - -// Prevents sub and sup affecting line-height in all browsers -// ------------------------- - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} -sup { - top: -0.5em; -} -sub { - bottom: -0.25em; -} - -// Img border in a's and image quality -// ------------------------- - -img { - /* Responsive images (ensure images don't scale beyond their parents) */ - max-width: 100%; /* Part 1: Set a maxium relative to the parent */ - width: auto\9; /* IE7-8 need help adjusting responsive images */ - height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */ - - vertical-align: middle; - border: 0; - -ms-interpolation-mode: bicubic; -} - -// Prevent max-width from affecting Google Maps -#map_canvas img, -.google-maps img { - max-width: none; -} - -// Forms -// ------------------------- - -// Font size in all browsers, margin changes, misc consistency -button, -input, -select, -textarea { - margin: 0; - font-size: 100%; - vertical-align: middle; -} -button, -input { - *overflow: visible; // Inner spacing ie IE6/7 - line-height: normal; // FF3/4 have !important on line-height in UA stylesheet -} -button::-moz-focus-inner, -input::-moz-focus-inner { // Inner padding and border oddities in FF3/4 - padding: 0; - border: 0; -} -button, -html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls. -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS. - cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others. -} -label, -select, -button, -input[type="button"], -input[type="reset"], -input[type="submit"], -input[type="radio"], -input[type="checkbox"] { - cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others. -} -input[type="search"] { // Appearance in Safari/Chrome - @include box-sizing(content-box); - -webkit-appearance: textfield; -} -input[type="search"]::-webkit-search-decoration, -input[type="search"]::-webkit-search-cancel-button { - -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5 -} -textarea { - overflow: auto; // Remove vertical scrollbar in IE6-9 - vertical-align: top; // Readability and alignment cross-browser -} - - -// Printing -// ------------------------- -// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css - -@media print { - - * { - text-shadow: none !important; - color: #000 !important; // Black prints faster: h5bp.com/s - background: transparent !important; - box-shadow: none !important; - } - - a, - a:visited { - text-decoration: underline; - } - - a[href]:after { - content: " (" attr(href) ")"; - } - - abbr[title]:after { - content: " (" attr(title) ")"; - } - - // Don't show links for images, or javascript/internal links - .ir a:after, - a[href^="javascript:"]:after, - a[href^="#"]:after { - content: ""; - } - - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - - thead { - display: table-header-group; // h5bp.com/t - } - - tr, - img { - page-break-inside: avoid; - } - - img { - max-width: 100% !important; - } - - @page { - margin: 0.5cm; - } - - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - - h2, - h3 { - page-break-after: avoid; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-1200px-min.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-1200px-min.scss deleted file mode 100644 index be54ccc4..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-1200px-min.scss +++ /dev/null @@ -1,28 +0,0 @@ -// -// Responsive: Large desktop and up -// -------------------------------------------------- - - -@media (min-width: 1200px) { - - // Fixed grid - @include grid-core($gridColumnWidth1200, $gridGutterWidth1200); - - // Fluid grid - @include grid-fluid($fluidGridColumnWidth1200, $fluidGridGutterWidth1200); - - // Input grid - @include grid-input($gridColumnWidth1200, $gridGutterWidth1200); - - // Thumbnails - .thumbnails { - margin-left: -$gridGutterWidth1200; - } - .thumbnails > li { - margin-left: $gridGutterWidth1200; - } - .row-fluid .thumbnails { - margin-left: 0; - } - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-767px-max.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-767px-max.scss deleted file mode 100644 index 54bf3b7c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-767px-max.scss +++ /dev/null @@ -1,193 +0,0 @@ -// -// Responsive: Landscape phone to desktop/tablet -// -------------------------------------------------- - - -@media (max-width: 767px) { - - // Padding to set content in a bit - body { - padding-left: 20px; - padding-right: 20px; - } - // Negative indent the now static "fixed" navbar - .navbar-fixed-top, - .navbar-fixed-bottom, - .navbar-static-top { - margin-left: -20px; - margin-right: -20px; - } - // Remove padding on container given explicit padding set on body - .container-fluid { - padding: 0; - } - - // TYPOGRAPHY - // ---------- - // Reset horizontal dl - .dl-horizontal { - dt { - float: none; - clear: none; - width: auto; - text-align: left; - } - dd { - margin-left: 0; - } - } - - // GRID & CONTAINERS - // ----------------- - // Remove width from containers - .container { - width: auto; - } - // Fluid rows - .row-fluid { - width: 100%; - } - // Undo negative margin on rows and thumbnails - .row, - .thumbnails { - margin-left: 0; - } - .thumbnails > li { - float: none; - margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present - } - // Make all grid-sized elements block level again - [class*="span"], - .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing - .row-fluid [class*="span"] { - float: none; - display: block; - width: 100%; - margin-left: 0; - @include box-sizing(border-box); - } - .span12, - .row-fluid .span12 { - width: 100%; - @include box-sizing(border-box); - } - .row-fluid [class*="offset"]:first-child { - margin-left: 0; - } - - // FORM FIELDS - // ----------- - // Make span* classes full width - .input-large, - .input-xlarge, - .input-xxlarge, - input[class*="span"], - select[class*="span"], - textarea[class*="span"], - .uneditable-input { - @include input-block-level(); - } - // But don't let it screw up prepend/append inputs - .input-prepend input, - .input-append input, - .input-prepend input[class*="span"], - .input-append input[class*="span"] { - display: inline-block; // redeclare so they don't wrap to new lines - width: auto; - } - .controls-row [class*="span"] + [class*="span"] { - margin-left: 0; - } - - // Modals - .modal { - position: fixed; - top: 20px; - left: 20px; - right: 20px; - width: auto; - margin: 0; - &.fade { top: -100px; } - &.fade.in { top: 20px; } - } - -} - - - -// UP TO LANDSCAPE PHONE -// --------------------- - -@media (max-width: 480px) { - - // Smooth out the collapsing/expanding nav - .nav-collapse { - -webkit-transform: translate3d(0, 0, 0); // activate the GPU - } - - // Block level the page header small tag for readability - .page-header h1 small { - display: block; - line-height: $baseLineHeight; - } - - // Update checkboxes for iOS - input[type="checkbox"], - input[type="radio"] { - border: 1px solid #ccc; - } - - // Remove the horizontal form styles - .form-horizontal { - .control-label { - float: none; - width: auto; - padding-top: 0; - text-align: left; - } - // Move over all input controls and content - .controls { - margin-left: 0; - } - // Move the options list down to align with labels - .control-list { - padding-top: 0; // has to be padding because margin collaspes - } - // Move over buttons in .form-actions to align with .controls - .form-actions { - padding-left: 10px; - padding-right: 10px; - } - } - - // Medias - // Reset float and spacing to stack - .media .pull-left, - .media .pull-right { - float: none; - display: block; - margin-bottom: 10px; - } - // Remove side margins since we stack instead of indent - .media-object { - margin-right: 0; - margin-left: 0; - } - - // Modals - .modal { - top: 10px; - left: 10px; - right: 10px; - } - .modal-header .close { - padding: 10px; - margin: -10px; - } - - // Carousel - .carousel-caption { - position: static; - } - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-768px-979px.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-768px-979px.scss deleted file mode 100644 index 1ae409fd..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-768px-979px.scss +++ /dev/null @@ -1,19 +0,0 @@ -// -// Responsive: Tablet to desktop -// -------------------------------------------------- - - -@media (min-width: 768px) and (max-width: 979px) { - - // Fixed grid - @include grid-core($gridColumnWidth768, $gridGutterWidth768); - - // Fluid grid - @include grid-fluid($fluidGridColumnWidth768, $fluidGridGutterWidth768); - - // Input grid - @include grid-input($gridColumnWidth768, $gridGutterWidth768); - - // No need to reset .thumbnails here since it's the same $gridGutterWidth - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-navbar.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-navbar.scss deleted file mode 100644 index 9898a16e..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-navbar.scss +++ /dev/null @@ -1,189 +0,0 @@ -// -// Responsive: Navbar -// -------------------------------------------------- - - -// TABLETS AND BELOW -// ----------------- -@media (max-width: $navbarCollapseWidth) { - - // UNFIX THE TOPBAR - // ---------------- - // Remove any padding from the body - body { - padding-top: 0; - } - // Unfix the navbars - .navbar-fixed-top, - .navbar-fixed-bottom { - position: static; - } - .navbar-fixed-top { - margin-bottom: $baseLineHeight; - } - .navbar-fixed-bottom { - margin-top: $baseLineHeight; - } - .navbar-fixed-top .navbar-inner, - .navbar-fixed-bottom .navbar-inner { - padding: 5px; - } - .navbar .container { - width: auto; - padding: 0; - } - // Account for brand name - .navbar .brand { - padding-left: 10px; - padding-right: 10px; - margin: 0 0 0 -5px; - } - - // COLLAPSIBLE NAVBAR - // ------------------ - // Nav collapse clears brand - .nav-collapse { - clear: both; - } - // Block-level the nav - .nav-collapse .nav { - float: none; - margin: 0 0 ($baseLineHeight / 2); - } - .nav-collapse .nav > li { - float: none; - } - .nav-collapse .nav > li > a { - margin-bottom: 2px; - } - .nav-collapse .nav > .divider-vertical { - display: none; - } - .nav-collapse .nav .nav-header { - color: $navbarText; - text-shadow: none; - } - // Nav and dropdown links in navbar - .nav-collapse .nav > li > a, - .nav-collapse .dropdown-menu a { - padding: 9px 15px; - font-weight: bold; - color: $navbarLinkColor; - @include border-radius(3px); - } - // Buttons - .nav-collapse .btn { - padding: 4px 10px 4px; - font-weight: normal; - @include border-radius($baseBorderRadius); - } - .nav-collapse .dropdown-menu li + li a { - margin-bottom: 2px; - } - .nav-collapse .nav > li > a:hover, - .nav-collapse .nav > li > a:focus, - .nav-collapse .dropdown-menu a:hover, - .nav-collapse .dropdown-menu a:focus { - background-color: $navbarBackground; - } - .navbar-inverse .nav-collapse .nav > li > a, - .navbar-inverse .nav-collapse .dropdown-menu a { - color: $navbarInverseLinkColor; - } - .navbar-inverse .nav-collapse .nav > li > a:hover, - .navbar-inverse .nav-collapse .nav > li > a:focus, - .navbar-inverse .nav-collapse .dropdown-menu a:hover, - .navbar-inverse .nav-collapse .dropdown-menu a:focus { - background-color: $navbarInverseBackground; - } - // Buttons in the navbar - .nav-collapse.in .btn-group { - margin-top: 5px; - padding: 0; - } - // Dropdowns in the navbar - .nav-collapse .dropdown-menu { - position: static; - top: auto; - left: auto; - float: none; - display: none; - max-width: none; - margin: 0 15px; - padding: 0; - background-color: transparent; - border: none; - @include border-radius(0); - @include box-shadow(none); - } - .nav-collapse .open > .dropdown-menu { - display: block; - } - - .nav-collapse .dropdown-menu:before, - .nav-collapse .dropdown-menu:after { - display: none; - } - .nav-collapse .dropdown-menu .divider { - display: none; - } - .nav-collapse .nav > li > .dropdown-menu { - &:before, - &:after { - display: none; - } - } - // Forms in navbar - .nav-collapse .navbar-form, - .nav-collapse .navbar-search { - float: none; - padding: ($baseLineHeight / 2) 15px; - margin: ($baseLineHeight / 2) 0; - border-top: 1px solid $navbarBackground; - border-bottom: 1px solid $navbarBackground; - @include box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)); - } - .navbar-inverse .nav-collapse .navbar-form, - .navbar-inverse .nav-collapse .navbar-search { - border-top-color: $navbarInverseBackground; - border-bottom-color: $navbarInverseBackground; - } - // Pull right (secondary) nav content - .navbar .nav-collapse .nav.pull-right { - float: none; - margin-left: 0; - } - // Hide everything in the navbar save .brand and toggle button */ - .nav-collapse, - .nav-collapse.collapse { - overflow: hidden; - height: 0; - } - // Navbar button - .navbar .btn-navbar { - display: block; - } - - // STATIC NAVBAR - // ------------- - .navbar-static .navbar-inner { - padding-left: 10px; - padding-right: 10px; - } - - -} - - -// DEFAULT DESKTOP -// --------------- - -@media (min-width: $navbarCollapseDesktopWidth) { - - // Required to make the collapsing navbar work on regular desktops - .nav-collapse.collapse { - height: auto !important; - overflow: visible !important; - } - -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-utilities.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-utilities.scss deleted file mode 100644 index 689b2650..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_responsive-utilities.scss +++ /dev/null @@ -1,74 +0,0 @@ -// -// Responsive: Utility classes -// -------------------------------------------------- - - -// IE10 Metro responsive -// Required for Windows 8 Metro split-screen snapping with IE10 -// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/ -@-ms-viewport{ - width: device-width; -} - -// Hide from screenreaders and browsers -// Credit: HTML5 Boilerplate -.hidden { - display: none; - visibility: hidden; -} - -// Visibility utilities - -// For desktops -.visible-phone { display: none !important; } -.visible-tablet { display: none !important; } -.hidden-phone { } -.hidden-tablet { } -.hidden-desktop { display: none !important; } -.visible-desktop { display: inherit !important; } - -// Tablets & small desktops only -@media (min-width: 768px) and (max-width: 979px) { - // Hide everything else - .hidden-desktop { display: inherit !important; } - .visible-desktop { display: none !important ; } - // Show - .visible-tablet { display: inherit !important; } - // Hide - .hidden-tablet { display: none !important; } -} - -// Phones only -@media (max-width: 767px) { - // Hide everything else - .hidden-desktop { display: inherit !important; } - .visible-desktop { display: none !important; } - // Show - .visible-phone { display: inherit !important; } // Use inherit to restore previous behavior - // Hide - .hidden-phone { display: none !important; } -} - -// Print utilities -.visible-print { display: none !important; } -.hidden-print { } - -@media print { - .visible-print { display: inherit !important; } - .hidden-print { display: none !important; } -} - -// Clearing floats -.clearfix { - @include clearfix(); -} - -// Accessible yet invisible text -.hide-text { - @include hide-text(); -} - -// Uses box-sizing mixin, so must be defined here -.input-block-level { - @include input-block-level(); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_scaffolding.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_scaffolding.scss deleted file mode 100644 index 23d4a00f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_scaffolding.scss +++ /dev/null @@ -1,53 +0,0 @@ -// -// Scaffolding -// -------------------------------------------------- - - -// Body reset -// ------------------------- - -body { - margin: 0; - font-family: $baseFontFamily; - font-size: $baseFontSize; - line-height: $baseLineHeight; - color: $textColor; - background-color: $bodyBackground; -} - - -// Links -// ------------------------- - -a { - color: $linkColor; - text-decoration: none; -} -a:hover, -a:focus { - color: $linkColorHover; - text-decoration: underline; -} - - -// Images -// ------------------------- - -// Rounded corners -.img-rounded { - @include border-radius(6px); -} - -// Add polaroid-esque trim -.img-polaroid { - padding: 4px; - background-color: #fff; - border: 1px solid #ccc; - border: 1px solid rgba(0,0,0,.2); - @include box-shadow(0 1px 3px rgba(0,0,0,.1)); -} - -// Perfect circle -.img-circle { - @include border-radius(500px); // crank the border-radius so it works with most reasonably sized images -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_sprites.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_sprites.scss deleted file mode 100644 index a64472dc..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_sprites.scss +++ /dev/null @@ -1,197 +0,0 @@ -// -// Sprites -// -------------------------------------------------- - - -// ICONS -// ----- - -// All icons receive the styles of the tag with a base class -// of .i and are then given a unique class to add width, height, -// and background-position. Your resulting HTML will look like -// . - -// For the white version of the icons, just add the .icon-white class: -// - -[class^="icon-"], -[class*=" icon-"] { - display: inline-block; - width: 14px; - height: 14px; - @include ie7-restore-right-whitespace(); - line-height: 14px; - vertical-align: text-top; - background-image: url($iconSpritePath); - background-position: 14px 14px; - background-repeat: no-repeat; - margin-top: 1px; -} - -/* White icons with optional class, or on hover/focus/active states of certain elements */ -.icon-white, -.nav-pills > .active > a > [class^="icon-"], -.nav-pills > .active > a > [class*=" icon-"], -.nav-list > .active > a > [class^="icon-"], -.nav-list > .active > a > [class*=" icon-"], -.navbar-inverse .nav > .active > a > [class^="icon-"], -.navbar-inverse .nav > .active > a > [class*=" icon-"], -.dropdown-menu > li > a:hover > [class^="icon-"], -.dropdown-menu > li > a:focus > [class^="icon-"], -.dropdown-menu > li > a:hover > [class*=" icon-"], -.dropdown-menu > li > a:focus > [class*=" icon-"], -.dropdown-menu > .active > a > [class^="icon-"], -.dropdown-menu > .active > a > [class*=" icon-"], -.dropdown-submenu:hover > a > [class^="icon-"], -.dropdown-submenu:focus > a > [class^="icon-"], -.dropdown-submenu:hover > a > [class*=" icon-"], -.dropdown-submenu:focus > a > [class*=" icon-"] { - background-image: url($iconWhiteSpritePath); -} - -.icon-glass { background-position: 0 0; } -.icon-music { background-position: -24px 0; } -.icon-search { background-position: -48px 0; } -.icon-envelope { background-position: -72px 0; } -.icon-heart { background-position: -96px 0; } -.icon-star { background-position: -120px 0; } -.icon-star-empty { background-position: -144px 0; } -.icon-user { background-position: -168px 0; } -.icon-film { background-position: -192px 0; } -.icon-th-large { background-position: -216px 0; } -.icon-th { background-position: -240px 0; } -.icon-th-list { background-position: -264px 0; } -.icon-ok { background-position: -288px 0; } -.icon-remove { background-position: -312px 0; } -.icon-zoom-in { background-position: -336px 0; } -.icon-zoom-out { background-position: -360px 0; } -.icon-off { background-position: -384px 0; } -.icon-signal { background-position: -408px 0; } -.icon-cog { background-position: -432px 0; } -.icon-trash { background-position: -456px 0; } - -.icon-home { background-position: 0 -24px; } -.icon-file { background-position: -24px -24px; } -.icon-time { background-position: -48px -24px; } -.icon-road { background-position: -72px -24px; } -.icon-download-alt { background-position: -96px -24px; } -.icon-download { background-position: -120px -24px; } -.icon-upload { background-position: -144px -24px; } -.icon-inbox { background-position: -168px -24px; } -.icon-play-circle { background-position: -192px -24px; } -.icon-repeat { background-position: -216px -24px; } -.icon-refresh { background-position: -240px -24px; } -.icon-list-alt { background-position: -264px -24px; } -.icon-lock { background-position: -287px -24px; } // 1px off -.icon-flag { background-position: -312px -24px; } -.icon-headphones { background-position: -336px -24px; } -.icon-volume-off { background-position: -360px -24px; } -.icon-volume-down { background-position: -384px -24px; } -.icon-volume-up { background-position: -408px -24px; } -.icon-qrcode { background-position: -432px -24px; } -.icon-barcode { background-position: -456px -24px; } - -.icon-tag { background-position: 0 -48px; } -.icon-tags { background-position: -25px -48px; } // 1px off -.icon-book { background-position: -48px -48px; } -.icon-bookmark { background-position: -72px -48px; } -.icon-print { background-position: -96px -48px; } -.icon-camera { background-position: -120px -48px; } -.icon-font { background-position: -144px -48px; } -.icon-bold { background-position: -167px -48px; } // 1px off -.icon-italic { background-position: -192px -48px; } -.icon-text-height { background-position: -216px -48px; } -.icon-text-width { background-position: -240px -48px; } -.icon-align-left { background-position: -264px -48px; } -.icon-align-center { background-position: -288px -48px; } -.icon-align-right { background-position: -312px -48px; } -.icon-align-justify { background-position: -336px -48px; } -.icon-list { background-position: -360px -48px; } -.icon-indent-left { background-position: -384px -48px; } -.icon-indent-right { background-position: -408px -48px; } -.icon-facetime-video { background-position: -432px -48px; } -.icon-picture { background-position: -456px -48px; } - -.icon-pencil { background-position: 0 -72px; } -.icon-map-marker { background-position: -24px -72px; } -.icon-adjust { background-position: -48px -72px; } -.icon-tint { background-position: -72px -72px; } -.icon-edit { background-position: -96px -72px; } -.icon-share { background-position: -120px -72px; } -.icon-check { background-position: -144px -72px; } -.icon-move { background-position: -168px -72px; } -.icon-step-backward { background-position: -192px -72px; } -.icon-fast-backward { background-position: -216px -72px; } -.icon-backward { background-position: -240px -72px; } -.icon-play { background-position: -264px -72px; } -.icon-pause { background-position: -288px -72px; } -.icon-stop { background-position: -312px -72px; } -.icon-forward { background-position: -336px -72px; } -.icon-fast-forward { background-position: -360px -72px; } -.icon-step-forward { background-position: -384px -72px; } -.icon-eject { background-position: -408px -72px; } -.icon-chevron-left { background-position: -432px -72px; } -.icon-chevron-right { background-position: -456px -72px; } - -.icon-plus-sign { background-position: 0 -96px; } -.icon-minus-sign { background-position: -24px -96px; } -.icon-remove-sign { background-position: -48px -96px; } -.icon-ok-sign { background-position: -72px -96px; } -.icon-question-sign { background-position: -96px -96px; } -.icon-info-sign { background-position: -120px -96px; } -.icon-screenshot { background-position: -144px -96px; } -.icon-remove-circle { background-position: -168px -96px; } -.icon-ok-circle { background-position: -192px -96px; } -.icon-ban-circle { background-position: -216px -96px; } -.icon-arrow-left { background-position: -240px -96px; } -.icon-arrow-right { background-position: -264px -96px; } -.icon-arrow-up { background-position: -289px -96px; } // 1px off -.icon-arrow-down { background-position: -312px -96px; } -.icon-share-alt { background-position: -336px -96px; } -.icon-resize-full { background-position: -360px -96px; } -.icon-resize-small { background-position: -384px -96px; } -.icon-plus { background-position: -408px -96px; } -.icon-minus { background-position: -433px -96px; } -.icon-asterisk { background-position: -456px -96px; } - -.icon-exclamation-sign { background-position: 0 -120px; } -.icon-gift { background-position: -24px -120px; } -.icon-leaf { background-position: -48px -120px; } -.icon-fire { background-position: -72px -120px; } -.icon-eye-open { background-position: -96px -120px; } -.icon-eye-close { background-position: -120px -120px; } -.icon-warning-sign { background-position: -144px -120px; } -.icon-plane { background-position: -168px -120px; } -.icon-calendar { background-position: -192px -120px; } -.icon-random { background-position: -216px -120px; width: 16px; } -.icon-comment { background-position: -240px -120px; } -.icon-magnet { background-position: -264px -120px; } -.icon-chevron-up { background-position: -288px -120px; } -.icon-chevron-down { background-position: -313px -119px; } // 1px, 1px off -.icon-retweet { background-position: -336px -120px; } -.icon-shopping-cart { background-position: -360px -120px; } -.icon-folder-close { background-position: -384px -120px; width: 16px; } -.icon-folder-open { background-position: -408px -120px; width: 16px; } -.icon-resize-vertical { background-position: -432px -119px; } // 1px, 1px off -.icon-resize-horizontal { background-position: -456px -118px; } // 1px, 2px off - -.icon-hdd { background-position: 0 -144px; } -.icon-bullhorn { background-position: -24px -144px; } -.icon-bell { background-position: -48px -144px; } -.icon-certificate { background-position: -72px -144px; } -.icon-thumbs-up { background-position: -96px -144px; } -.icon-thumbs-down { background-position: -120px -144px; } -.icon-hand-right { background-position: -144px -144px; } -.icon-hand-left { background-position: -168px -144px; } -.icon-hand-up { background-position: -192px -144px; } -.icon-hand-down { background-position: -216px -144px; } -.icon-circle-arrow-right { background-position: -240px -144px; } -.icon-circle-arrow-left { background-position: -264px -144px; } -.icon-circle-arrow-up { background-position: -288px -144px; } -.icon-circle-arrow-down { background-position: -312px -144px; } -.icon-globe { background-position: -336px -144px; } -.icon-wrench { background-position: -360px -144px; } -.icon-tasks { background-position: -384px -144px; } -.icon-filter { background-position: -408px -144px; } -.icon-briefcase { background-position: -432px -144px; } -.icon-fullscreen { background-position: -456px -144px; } diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tables.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tables.scss deleted file mode 100644 index 3db661e9..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tables.scss +++ /dev/null @@ -1,235 +0,0 @@ -// -// Tables -// -------------------------------------------------- - - -// BASE TABLES -// ----------------- - -table { - max-width: 100%; - background-color: $tableBackground; - border-collapse: collapse; - border-spacing: 0; -} - -// BASELINE STYLES -// --------------- - -.table { - width: 100%; - margin-bottom: $baseLineHeight; - // Cells - th, - td { - padding: 8px; - line-height: $baseLineHeight; - text-align: left; - vertical-align: top; - border-top: 1px solid $tableBorder; - } - th { - font-weight: bold; - } - // Bottom align for column headings - thead th { - vertical-align: bottom; - } - // Remove top border from thead by default - caption + thead tr:first-child th, - caption + thead tr:first-child td, - colgroup + thead tr:first-child th, - colgroup + thead tr:first-child td, - thead:first-child tr:first-child th, - thead:first-child tr:first-child td { - border-top: 0; - } - // Account for multiple tbody instances - tbody + tbody { - border-top: 2px solid $tableBorder; - } - - // Nesting - .table { - background-color: $bodyBackground; - } -} - - - -// CONDENSED TABLE W/ HALF PADDING -// ------------------------------- - -.table-condensed { - th, - td { - padding: 4px 5px; - } -} - - -// BORDERED VERSION -// ---------------- - -.table-bordered { - border: 1px solid $tableBorder; - border-collapse: separate; // Done so we can round those corners! - *border-collapse: collapse; // IE7 can't round corners anyway - border-left: 0; - @include border-radius($baseBorderRadius); - th, - td { - border-left: 1px solid $tableBorder; - } - // Prevent a double border - caption + thead tr:first-child th, - caption + tbody tr:first-child th, - caption + tbody tr:first-child td, - colgroup + thead tr:first-child th, - colgroup + tbody tr:first-child th, - colgroup + tbody tr:first-child td, - thead:first-child tr:first-child th, - tbody:first-child tr:first-child th, - tbody:first-child tr:first-child td { - border-top: 0; - } - // For first th/td in the first row in the first thead or tbody - thead:first-child tr:first-child > th:first-child, - tbody:first-child tr:first-child > td:first-child, - tbody:first-child tr:first-child > th:first-child { - @include border-top-left-radius($baseBorderRadius); - } - // For last th/td in the first row in the first thead or tbody - thead:first-child tr:first-child > th:last-child, - tbody:first-child tr:first-child > td:last-child, - tbody:first-child tr:first-child > th:last-child { - @include border-top-right-radius($baseBorderRadius); - } - // For first th/td (can be either) in the last row in the last thead, tbody, and tfoot - thead:last-child tr:last-child > th:first-child, - tbody:last-child tr:last-child > td:first-child, - tbody:last-child tr:last-child > th:first-child, - tfoot:last-child tr:last-child > td:first-child, - tfoot:last-child tr:last-child > th:first-child { - @include border-bottom-left-radius($baseBorderRadius); - } - // For last th/td (can be either) in the last row in the last thead, tbody, and tfoot - thead:last-child tr:last-child > th:last-child, - tbody:last-child tr:last-child > td:last-child, - tbody:last-child tr:last-child > th:last-child, - tfoot:last-child tr:last-child > td:last-child, - tfoot:last-child tr:last-child > th:last-child { - @include border-bottom-right-radius($baseBorderRadius); - } - - // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot - tfoot + tbody:last-child tr:last-child td:first-child { - @include border-bottom-left-radius(0); - } - tfoot + tbody:last-child tr:last-child td:last-child { - @include border-bottom-right-radius(0); - } - - // Special fixes to round the left border on the first td/th - caption + thead tr:first-child th:first-child, - caption + tbody tr:first-child td:first-child, - colgroup + thead tr:first-child th:first-child, - colgroup + tbody tr:first-child td:first-child { - @include border-top-left-radius($baseBorderRadius); - } - caption + thead tr:first-child th:last-child, - caption + tbody tr:first-child td:last-child, - colgroup + thead tr:first-child th:last-child, - colgroup + tbody tr:first-child td:last-child { - @include border-top-right-radius($baseBorderRadius); - } - -} - - - - -// ZEBRA-STRIPING -// -------------- - -// Default zebra-stripe styles (alternating gray and transparent backgrounds) -.table-striped { - tbody { - > tr:nth-child(odd) > td, - > tr:nth-child(odd) > th { - background-color: $tableBackgroundAccent; - } - } -} - - -// HOVER EFFECT -// ------------ -// Placed here since it has to come after the potential zebra striping -.table-hover { - tbody { - tr:hover > td, - tr:hover > th { - background-color: $tableBackgroundHover; - } - } -} - - -// TABLE CELL SIZING -// ----------------- - -// Reset default grid behavior -table td[class*="span"], -table th[class*="span"], -.row-fluid table td[class*="span"], -.row-fluid table th[class*="span"] { - display: table-cell; - float: none; // undo default grid column styles - margin-left: 0; // undo default grid column styles -} - -// Change the column widths to account for td/th padding -.table td, -.table th { - @for $i from 1 through 12 { - &.span#{$i} { @include tableColumns($i); } - } -} - - - -// TABLE BACKGROUNDS -// ----------------- -// Exact selectors below required to override .table-striped - -.table tbody tr { - &.success > td { - background-color: $successBackground; - } - &.error > td { - background-color: $errorBackground; - } - &.warning > td { - background-color: $warningBackground; - } - &.info > td { - background-color: $infoBackground; - } -} - -// Hover states for .table-hover -.table-hover tbody tr { - &.success:hover > td { - background-color: darken($successBackground, 5%); - } - &.error:hover > td { - background-color: darken($errorBackground, 5%); - } - &.warning:hover > td { - background-color: darken($warningBackground, 5%); - } - &.info:hover > td { - background-color: darken($infoBackground, 5%); - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_thumbnails.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_thumbnails.scss deleted file mode 100644 index 6333d533..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_thumbnails.scss +++ /dev/null @@ -1,53 +0,0 @@ -// -// Thumbnails -// -------------------------------------------------- - - -// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files - -// Make wrapper ul behave like the grid -.thumbnails { - margin-left: -$gridGutterWidth; - list-style: none; - @include clearfix(); -} -// Fluid rows have no left margin -.row-fluid .thumbnails { - margin-left: 0; -} - -// Float li to make thumbnails appear in a row -.thumbnails > li { - float: left; // Explicity set the float since we don't require .span* classes - margin-bottom: $baseLineHeight; - margin-left: $gridGutterWidth; -} - -// The actual thumbnail (can be `a` or `div`) -.thumbnail { - display: block; - padding: 4px; - line-height: $baseLineHeight; - border: 1px solid #ddd; - @include border-radius($baseBorderRadius); - @include box-shadow(0 1px 3px rgba(0,0,0,.055)); - @include transition(all .2s ease-in-out); -} -// Add a hover/focus state for linked versions only -a.thumbnail:hover, -a.thumbnail:focus { - border-color: $linkColor; - @include box-shadow(0 1px 4px rgba(0,105,214,.25)); -} - -// Images and captions -.thumbnail > img { - display: block; - max-width: 100%; - margin-left: auto; - margin-right: auto; -} -.thumbnail .caption { - padding: 9px; - color: $gray; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip-alloy.scss deleted file mode 100644 index a4b6c430..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip-alloy.scss +++ /dev/null @@ -1,25 +0,0 @@ -// -// Help tooltip -// -------------------------------------------------- - -// Base class -.tooltip-help { - font-size: $helpTooltipFontSize; - - // Wrapper for the tooltip content - .tooltip-inner { - color: $helpTooltipColor; - background-color: $helpTooltipBackground; - border: 1px solid $helpTooltipBorderColor; - max-width: 400px; - overflow-wrap: break-word; - text-align: left; - word-wrap: break-word; - } - - // Arrows - &.top .tooltip-arrow { border-top-color: $helpTooltipArrowColor; } - &.right .tooltip-arrow { border-right-color: $helpTooltipArrowColor; } - &.left .tooltip-arrow { border-left-color: $helpTooltipArrowColor; } - &.bottom .tooltip-arrow { border-bottom-color: $helpTooltipArrowColor; } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip.scss deleted file mode 100644 index af2d64cb..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_tooltip.scss +++ /dev/null @@ -1,70 +0,0 @@ -// -// Tooltips -// -------------------------------------------------- - - -// Base class -.tooltip { - position: absolute; - z-index: $zindexTooltip; - display: block; - visibility: visible; - font-size: 11px; - line-height: 1.4; - @include opacity(0); - &.in { @include opacity(80); } - &.top { margin-top: -3px; padding: 5px 0; } - &.right { margin-left: 3px; padding: 0 5px; } - &.bottom { margin-top: 3px; padding: 5px 0; } - &.left { margin-left: -3px; padding: 0 5px; } -} - -// Wrapper for the tooltip content -.tooltip-inner { - max-width: 200px; - padding: 8px; - color: $tooltipColor; - text-align: center; - text-decoration: none; - background-color: $tooltipBackground; - @include border-radius($baseBorderRadius); -} - -// Arrows -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.tooltip { - &.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -$tooltipArrowWidth; - border-width: $tooltipArrowWidth $tooltipArrowWidth 0; - border-top-color: $tooltipArrowColor; - } - &.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -$tooltipArrowWidth; - border-width: $tooltipArrowWidth $tooltipArrowWidth $tooltipArrowWidth 0; - border-right-color: $tooltipArrowColor; - } - &.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -$tooltipArrowWidth; - border-width: $tooltipArrowWidth 0 $tooltipArrowWidth $tooltipArrowWidth; - border-left-color: $tooltipArrowColor; - } - &.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -$tooltipArrowWidth; - border-width: 0 $tooltipArrowWidth $tooltipArrowWidth; - border-bottom-color: $tooltipArrowColor; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_type.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_type.scss deleted file mode 100644 index f68e7ba2..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_type.scss +++ /dev/null @@ -1,247 +0,0 @@ -// -// Typography -// -------------------------------------------------- - - -// Body text -// ------------------------- - -p { - margin: 0 0 $baseLineHeight / 2; -} -.lead { - margin-bottom: $baseLineHeight; - font-size: $baseFontSize * 1.5; - font-weight: 200; - line-height: $baseLineHeight * 1.5; -} - - -// Emphasis & misc -// ------------------------- - -// Ex: 14px base font * 85% = about 12px -small { font-size: 85%; } - -strong { font-weight: bold; } -em { font-style: italic; } -cite { font-style: normal; } - -// Utility classes -.muted { color: $grayLight; } -a.muted:hover, -a.muted:focus { color: darken($grayLight, 10%); } - -.text-warning { color: $warningText; } -a.text-warning:hover, -a.text-warning:focus { color: darken($warningText, 10%); } - -.text-error { color: $errorText; } -a.text-error:hover, -a.text-error:focus { color: darken($errorText, 10%); } - -.text-info { color: $infoText; } -a.text-info:hover, -a.text-info:focus { color: darken($infoText, 10%); } - -.text-success { color: $successText; } -a.text-success:hover, -a.text-success:focus { color: darken($successText, 10%); } - -.text-left { text-align: left; } -.text-right { text-align: right; } -.text-center { text-align: center; } - - -// Headings -// ------------------------- - -h1, h2, h3, h4, h5, h6 { - margin: ($baseLineHeight / 2) 0; - font-family: $headingsFontFamily; - font-weight: $headingsFontWeight; - line-height: $baseLineHeight; - color: $headingsColor; - text-rendering: optimizelegibility; // Fix the character spacing for headings - small { - font-weight: normal; - line-height: 1; - color: $grayLight; - } -} - -h1, -h2, -h3 { line-height: $baseLineHeight * 2; } - -h1 { font-size: $baseFontSize * 2.75; } // ~38px -h2 { font-size: $baseFontSize * 2.25; } // ~32px -h3 { font-size: $baseFontSize * 1.75; } // ~24px -h4 { font-size: $baseFontSize * 1.25; } // ~18px -h5 { font-size: $baseFontSize; } -h6 { font-size: $baseFontSize * 0.85; } // ~12px - -h1 small { font-size: $baseFontSize * 1.75; } // ~24px -h2 small { font-size: $baseFontSize * 1.25; } // ~18px -h3 small { font-size: $baseFontSize; } -h4 small { font-size: $baseFontSize; } - - -// Page header -// ------------------------- - -.page-header { - padding-bottom: ($baseLineHeight / 2) - 1; - margin: $baseLineHeight 0 ($baseLineHeight * 1.5); - border-bottom: 1px solid $grayLighter; -} - - - -// Lists -// -------------------------------------------------- - -// Unordered and Ordered lists -ul, ol { - padding: 0; - margin: 0 0 $baseLineHeight / 2 25px; -} -ul ul, -ul ol, -ol ol, -ol ul { - margin-bottom: 0; -} -li { - line-height: $baseLineHeight; -} - -// Remove default list styles -ul.unstyled, -ol.unstyled { - margin-left: 0; - list-style: none; -} - -// Single-line list items -ul.inline, -ol.inline { - margin-left: 0; - list-style: none; - > li { - display: inline-block; - @include ie7-inline-block(); - padding-left: 5px; - padding-right: 5px; - } -} - -// Description Lists -dl { - margin-bottom: $baseLineHeight; -} -dt, -dd { - line-height: $baseLineHeight; -} -dt { - font-weight: bold; -} -dd { - margin-left: $baseLineHeight / 2; -} -// Horizontal layout (like forms) -.dl-horizontal { - @include clearfix(); // Ensure dl clears floats if empty dd elements present - dt { - float: left; - width: $horizontalComponentOffset - 20; - clear: left; - text-align: right; - @include text-overflow(); - } - dd { - margin-left: $horizontalComponentOffset; - } -} - -// MISC -// ---- - -// Horizontal rules -hr { - margin: $baseLineHeight 0; - border: 0; - border-top: 1px solid $hrBorder; - border-bottom: 1px solid $white; -} - -// Abbreviations and acronyms -abbr[title], -// Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257 -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted $grayLight; -} -abbr.initialism { - font-size: 90%; - text-transform: uppercase; -} - -// Blockquotes -blockquote { - padding: 0 0 0 15px; - margin: 0 0 $baseLineHeight; - border-left: 5px solid $grayLighter; - p { - margin-bottom: 0; - font-size: $baseFontSize * 1.25; - font-weight: 300; - line-height: 1.25; - } - small { - display: block; - line-height: $baseLineHeight; - color: $grayLight; - &:before { - content: '\2014 \00A0'; - } - } - - // Float right with text-align: right - &.pull-right { - float: right; - padding-right: 15px; - padding-left: 0; - border-right: 5px solid $grayLighter; - border-left: 0; - p, - small { - text-align: right; - } - small { - &:before { - content: ''; - } - &:after { - content: '\00A0 \2014'; - } - } - } -} - -// Quotes -q:before, -q:after, -blockquote:before, -blockquote:after { - content: ""; -} - -// Addresses -address { - display: block; - margin-bottom: $baseLineHeight; - font-style: normal; - line-height: $baseLineHeight; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities-alloy.scss deleted file mode 100644 index cd98a911..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities-alloy.scss +++ /dev/null @@ -1,51 +0,0 @@ -// -// Utility classes -// -------------------------------------------------- - -// Toggling content -.hide { - display: none !important; -} - -.show { - display: block !important; -} - -.hide-accessible { - clip: rect(0 0 0 0) !important; - position: absolute !important; - - /*Webkit and IE7 let clipped content change the scroll height of the page*/ - /*Scale webkit to 0*/ - -webkit-transform: scale(0); - -webkit-transform-origin-x: 0px; - -webkit-transform-origin-y: 0px; - /*Change IE7 to using fixed*/ - *position: fixed !important; - /*...And reset back to absolute for IE6*/ - _position: absolute !important; -} - -.force-offset { - display: block !important; - position: absolute !important; - visibility: hidden !important; -} - -// Unselectable -.unselectable, .unselectable * { - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - -webkit-user-select: none; - user-select: none; -} - -// Scroll lock -.scroll-lock { - height: 100%; - margin: 0; - overflow: hidden; - width: 100%; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities.scss deleted file mode 100644 index 1dec18b6..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_utilities.scss +++ /dev/null @@ -1,45 +0,0 @@ -// -// Utility classes -// -------------------------------------------------- - - -// Quick floats -.pull-right { - float: right; -} -.pull-left { - float: left; -} - -// Toggling content -.hide { - display: none; -} -.show { - display: block; -} - -// Visibility -.invisible { - visibility: hidden; -} - -// For Affix plugin -.affix { - position: fixed; -} - -// Clearing floats -.clearfix { - @include clearfix(); -} - -// Accessible yet invisible text -.hide-text { - @include hide-text(); -} - -// Uses box-sizing mixin, so must be defined here -.input-block-level { - @include input-block-level(); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables-alloy.scss deleted file mode 100644 index 6f33524c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables-alloy.scss +++ /dev/null @@ -1,167 +0,0 @@ -// -// Variables -// -------------------------------------------------- - - -// Global values -// -------------------------------------------------- - - -// Grays -// ------------------------- - - -// Accent colors -// ------------------------- - - - -// Scaffolding -// ------------------------- - - - -// Links -// ------------------------- - - - -// Typography -// ------------------------- - - - -// Component sizing -// ------------------------- -// Based on 14px font-size and 20px line-height - - - - -// Tables -// ------------------------- - - -// Buttons -// ------------------------- -$btnBackgroundHighlight: darken(#FFF, 7%) !default; - -$btnPrimaryBackground: #3fcaf4 !default; -$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20%) !default; - -$btnInfoBackground: #3c8bf3 !default; -$btnInfoBackgroundHighlight: #0f6ce7 !default; - -$btnSuccessBackground: #bacd29 !default; -$btnSuccessBackgroundHighlight: #a1bd17 !default; - -$btnDangerBackground: #ff3019 !default; -$btnDangerBackgroundHighlight: #cf0404 !default; - -$btnInverseBackground: #333 !default; - - -// Forms -// ------------------------- - - - -// Dropdowns -// ------------------------- - - - - -// COMPONENT VARIABLES -// -------------------------------------------------- - - -// Z-index master list -// ------------------------- -// Used for a bird's eye view of components dependent on the z-axis -// Try to avoid customizing these :) - - - -// Sprite icons path -// ------------------------- - - - -// Input placeholder text color -// ------------------------- - - - -// Hr border color -// ------------------------- - - - -// Horizontal forms & lists -// ------------------------- - - - -// Wells -// ------------------------- - - - -// Navbar -// ------------------------- - - - -// Pagination -// ------------------------- - - -// Progressbar -// ------------------------- - - -// Hero unit -// ------------------------- - - - -// Form states and alerts -// ------------------------- - - - -// Tooltips and popovers -// ------------------------- - -// Help tooltip -$helpTooltipColor: #535353 !default; -$helpTooltipBackground: #fdfaec !default; -$helpTooltipBorderColor: #b0ad95 !default; -$helpTooltipArrowColor: $helpTooltipBorderColor !default; -$helpTooltipFontSize: 14px !default; - -// GRID -// -------------------------------------------------- - - -// Default 940px grid -// ------------------------- - - -// 1200px min - - -// 768px-979px - - - -// Fluid grid -// ------------------------- - - -// 1200px min - - -// 768px-979px - diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables.scss deleted file mode 100644 index 31af5998..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_variables.scss +++ /dev/null @@ -1,319 +0,0 @@ -// -// Variables -// -------------------------------------------------- - - -// Global values -// -------------------------------------------------- - - -// Grays -// ------------------------- -$black: #000 !default; -$grayDarker: #222 !default; -$grayDark: #333 !default; -$gray: #555 !default; -$grayLight: #999 !default; -$grayLighter: #eee !default; -$white: #fff !default; - - -// Accent colors -// ------------------------- -$blue: #049cdb !default; -$blueDark: #0064cd !default; -$green: #46a546 !default; -$red: #9d261d !default; -$yellow: #ffc40d !default; -$orange: #f89406 !default; -$pink: #c3325f !default; -$purple: #7a43b6 !default; - - -// Scaffolding -// ------------------------- -$bodyBackground: $white !default; -$textColor: $grayDark !default; - - -// Links -// ------------------------- -$linkColor: #08c !default; -$linkColorHover: darken($linkColor, 15%) !default; - - -// Typography -// ------------------------- -$sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default; -$serifFontFamily: Georgia, "Times New Roman", Times, serif !default; -$monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default; - -$baseFontSize: 14px !default; -$baseFontFamily: $sansFontFamily !default; -$baseLineHeight: 20px !default; -$altFontFamily: $serifFontFamily !default; - -$headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily -$headingsFontWeight: bold !default; // instead of browser default, bold -$headingsColor: inherit !default; // empty to use BS default, $textColor - - -// Component sizing -// ------------------------- -// Based on 14px font-size and 20px line-height - -$fontSizeLarge: $baseFontSize * 1.25 !default; // ~18px -$fontSizeSmall: $baseFontSize * 0.85 !default; // ~12px -$fontSizeMini: $baseFontSize * 0.75 !default; // ~11px - -$paddingLarge: 11px 19px !default; // 44px -$paddingSmall: 2px 10px !default; // 26px -$paddingMini: 0px 6px !default; // 22px - -$baseBorderRadius: 4px !default; -$borderRadiusLarge: 6px !default; -$borderRadiusSmall: 3px !default; - - -// Tables -// ------------------------- -$tableBackground: transparent !default; // overall background-color -$tableBackgroundAccent: #f9f9f9 !default; // for striping -$tableBackgroundHover: #f5f5f5 !default; // for hover -$tableBorder: #ddd !default; // table and cell border - -// Buttons -// ------------------------- -$btnBackground: $white !default; -$btnBackgroundHighlight: darken($white, 10%) !default; -$btnBorder: #ccc !default; - -$btnPrimaryBackground: $linkColor !default; -$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20%) !default; - -$btnInfoBackground: #5bc0de !default; -$btnInfoBackgroundHighlight: #2f96b4 !default; - -$btnSuccessBackground: #62c462 !default; -$btnSuccessBackgroundHighlight: #51a351 !default; - -$btnWarningBackground: lighten($orange, 15%) !default; -$btnWarningBackgroundHighlight: $orange !default; - -$btnDangerBackground: #ee5f5b !default; -$btnDangerBackgroundHighlight: #bd362f !default; - -$btnInverseBackground: #444 !default; -$btnInverseBackgroundHighlight: $grayDarker !default; - - -// Forms -// ------------------------- -$inputBackground: $white !default; -$inputBorder: #ccc !default; -$inputBorderRadius: $baseBorderRadius !default; -$inputDisabledBackground: $grayLighter !default; -$formActionsBackground: #f5f5f5 !default; -$inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border - - -// Dropdowns -// ------------------------- -$dropdownBackground: $white !default; -$dropdownBorder: rgba(0,0,0,.2) !default; -$dropdownDividerTop: #e5e5e5 !default; -$dropdownDividerBottom: $white !default; - -$dropdownLinkColor: $grayDark !default; -$dropdownLinkColorHover: $white !default; -$dropdownLinkColorActive: $white !default; - -$dropdownLinkBackgroundActive: $linkColor !default; -$dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default; - - - -// COMPONENT VARIABLES -// -------------------------------------------------- - - -// Z-index master list -// ------------------------- -// Used for a bird's eye view of components dependent on the z-axis -// Try to avoid customizing these :) -$zindexDropdown: 1000 !default; -$zindexPopover: 1010 !default; -$zindexTooltip: 1030 !default; -$zindexFixedNavbar: 1030 !default; -$zindexModalBackdrop: 1040 !default; -$zindexModal: 1050 !default; - - -// Sprite icons path -// ------------------------- -$iconSpritePath: "../img/glyphicons-halflings.png" !default; -$iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default; - - -// Input placeholder text color -// ------------------------- -$placeholderText: $grayLight !default; - - -// Hr border color -// ------------------------- -$hrBorder: $grayLighter !default; - - -// Horizontal forms & lists -// ------------------------- -$horizontalComponentOffset: 180px !default; - - -// Wells -// ------------------------- -$wellBackground: #f5f5f5 !default; - - -// Navbar -// ------------------------- -$navbarCollapseWidth: 979px !default; -$navbarCollapseDesktopWidth: $navbarCollapseWidth + 1; - -$navbarHeight: 40px !default; -$navbarBackgroundHighlight: #ffffff !default; -$navbarBackground: darken($navbarBackgroundHighlight, 5%) !default; -$navbarBorder: darken($navbarBackground, 12%) !default; - -$navbarText: #777 !default; -$navbarLinkColor: #777 !default; -$navbarLinkColorHover: $grayDark !default; -$navbarLinkColorActive: $gray !default; -$navbarLinkBackgroundHover: transparent !default; -$navbarLinkBackgroundActive: darken($navbarBackground, 5%) !default; - -$navbarBrandColor: $navbarLinkColor !default; - -// Inverted navbar -$navbarInverseBackground: #111111 !default; -$navbarInverseBackgroundHighlight: #222222 !default; -$navbarInverseBorder: #252525 !default; - -$navbarInverseText: $grayLight !default; -$navbarInverseLinkColor: $grayLight !default; -$navbarInverseLinkColorHover: $white !default; -$navbarInverseLinkColorActive: $navbarInverseLinkColorHover !default; -$navbarInverseLinkBackgroundHover: transparent !default; -$navbarInverseLinkBackgroundActive: $navbarInverseBackground !default; - -$navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%) !default; -$navbarInverseSearchBackgroundFocus: $white !default; -$navbarInverseSearchBorder: $navbarInverseBackground !default; -$navbarInverseSearchPlaceholderColor: #ccc !default; - -$navbarInverseBrandColor: $navbarInverseLinkColor !default; - - -// Pagination -// ------------------------- -$paginationBackground: #fff !default; -$paginationBorder: #ddd !default; -$paginationActiveBackground: #f5f5f5 !default; - -// Progressbar -// ------------------------- -$progressBackground: #f9f9f9 !default; -$progressBackgroundHighlight: #f5f5f5 !default; - -$progressbarBackground: #0480be !default; -$progressbarBackgroundHighlight: #149bdf !default; - -$progressbarDangerBackground: #ee5f5b !default; -$progressbarDangerBackgroundHighlight: #c43c35 !default; - -$progressbarInfoBackground: #5bc0de !default; -$progressbarInfoBackgroundHighlight: #339bb9 !default; - -$progressbarSuccessBackground: #62c462 !default; -$progressbarSuccessBackgroundHighlight: #57a957 !default; - -$progressbarStripedColor: #149bdf !default; - -// Hero unit -// ------------------------- -$heroUnitBackground: $grayLighter !default; -$heroUnitHeadingColor: inherit !default; -$heroUnitLeadColor: inherit !default; - - -// Form states and alerts -// ------------------------- -$warningText: #c09853 !default; -$warningBackground: #fcf8e3 !default; -$warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default; - -$errorText: #b94a48 !default; -$errorBackground: #f2dede !default; -$errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default; - -$successText: #468847 !default; -$successBackground: #dff0d8 !default; -$successBorder: darken(adjust-hue($successBackground, -10), 5%) !default; - -$infoText: #3a87ad !default; -$infoBackground: #d9edf7 !default; -$infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default; - - -// Tooltips and popovers -// ------------------------- -$tooltipColor: #fff !default; -$tooltipBackground: #000 !default; -$tooltipArrowWidth: 5px !default; -$tooltipArrowColor: $tooltipBackground !default; - -$popoverBackground: #fff !default; -$popoverArrowWidth: 10px !default; -$popoverArrowColor: #fff !default; -$popoverTitleBackground: darken($popoverBackground, 3%) !default; - -// Special enhancement for popovers -$popoverArrowOuterWidth: $popoverArrowWidth + 1 !default; -$popoverArrowOuterColor: rgba(0,0,0,.25) !default; - - - -// GRID -// -------------------------------------------------- - - -// Default 940px grid -// ------------------------- -$gridColumns: 12 !default; -$gridColumnWidth: 60px !default; -$gridGutterWidth: 20px !default; -$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default; - -// 1200px min -$gridColumnWidth1200: 70px !default; -$gridGutterWidth1200: 30px !default; -$gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1)) !default; - -// 768px-979px -$gridColumnWidth768: 42px !default; -$gridGutterWidth768: 20px !default; -$gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1)) !default; - - -// Fluid grid -// ------------------------- -$fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth) !default; -$fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth) !default; - -// 1200px min -$fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200) !default; -$fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200) !default; - -// 768px-979px -$fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768) !default; -$fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768) !default; diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_wells.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_wells.scss deleted file mode 100644 index 551e5207..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/_wells.scss +++ /dev/null @@ -1,29 +0,0 @@ -// -// Wells -// -------------------------------------------------- - - -// Base class -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: $wellBackground; - border: 1px solid darken($wellBackground, 7%); - @include border-radius($baseBorderRadius); - @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); - blockquote { - border-color: #ddd; - border-color: rgba(0,0,0,.15); - } -} - -// Sizes -.well-large { - padding: 24px; - @include border-radius($borderRadiusLarge); -} -.well-small { - padding: 9px; - @include border-radius($borderRadiusSmall); -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/FontAwesome.otf b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/FontAwesome.otf deleted file mode 100644 index 70125459..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/FontAwesome.otf and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.dev.svg b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.dev.svg deleted file mode 100644 index c5155c05..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.dev.svg +++ /dev/null @@ -1,525 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.eot b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.eot deleted file mode 100644 index 2f032049..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.eot and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.svg b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.svg deleted file mode 100644 index d2ad104d..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.svg +++ /dev/null @@ -1,525 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.ttf b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.ttf deleted file mode 100644 index 09e39974..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.ttf and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.woff b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.woff deleted file mode 100644 index 4be83025..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-alloy.woff and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.eot b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.eot deleted file mode 100644 index 0662cb96..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.eot and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.svg b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.svg deleted file mode 100644 index 2edb4ec3..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.svg +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.ttf b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.ttf deleted file mode 100644 index d3659246..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.ttf and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.woff b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.woff deleted file mode 100644 index b9bd17e1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/font/fontawesome-webfont.woff and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_bootstrap.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_bootstrap.scss deleted file mode 100644 index 837d2df6..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_bootstrap.scss +++ /dev/null @@ -1,84 +0,0 @@ -/* BOOTSTRAP SPECIFIC CLASSES - * -------------------------- */ - -/* Bootstrap 2.0 sprites.less reset */ -[class^="icon-"], -[class*=" icon-"] { - display: inline; - width: auto; - height: auto; - line-height: normal; - vertical-align: baseline; - background-image: none; - background-position: 0% 0%; - background-repeat: repeat; - margin-top: 0; -} - -/* more sprites.less reset */ -.icon-white, -.nav-pills > .active > a > [class^="icon-"], -.nav-pills > .active > a > [class*=" icon-"], -.nav-list > .active > a > [class^="icon-"], -.nav-list > .active > a > [class*=" icon-"], -.navbar-inverse .nav > .active > a > [class^="icon-"], -.navbar-inverse .nav > .active > a > [class*=" icon-"], -.dropdown-menu > li > a:hover > [class^="icon-"], -.dropdown-menu > li > a:hover > [class*=" icon-"], -.dropdown-menu > .active > a > [class^="icon-"], -.dropdown-menu > .active > a > [class*=" icon-"], -.dropdown-submenu:hover > a > [class^="icon-"], -.dropdown-submenu:hover > a > [class*=" icon-"] { - background-image: none; -} - - -/* keeps Bootstrap styles with and without icons the same */ -.btn, .nav { - [class^="icon-"], - [class*=" icon-"] { - // display: inline; - &.icon-large { line-height: .9em; } - &.icon-spin { display: inline-block; } - } -} -.nav-tabs, .nav-pills { - [class^="icon-"], - [class*=" icon-"] { - &, &.icon-large { line-height: .9em; } - } -} -.btn { - [class^="icon-"], - [class*=" icon-"] { - &.pull-left, &.pull-right { - &.icon-2x { margin-top: .18em; } - } - &.icon-spin.icon-large { line-height: .8em; } - } -} -.btn.btn-small { - [class^="icon-"], - [class*=" icon-"] { - &.pull-left, &.pull-right { - &.icon-2x { margin-top: .25em; } - } - } -} -.btn.btn-large { - [class^="icon-"], - [class*=" icon-"] { - margin-top: 0; // overrides bootstrap default - &.pull-left, &.pull-right { - &.icon-2x { margin-top: .05em; } - } - &.pull-left.icon-2x { margin-right: .2em; } - &.pull-right.icon-2x { margin-left: .2em; } - } -} - -/* Fixes alignment in nav lists */ -.nav-list [class^="icon-"], -.nav-list [class*=" icon-"] { - line-height: inherit; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_core.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_core.scss deleted file mode 100644 index 0189c73d..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_core.scss +++ /dev/null @@ -1,129 +0,0 @@ -/* FONT AWESOME CORE - * -------------------------- */ - -[class^="icon-"], -[class*=" icon-"] { - @include icon-FontAwesome(); -} - -[class^="icon-"]:before, -[class*=" icon-"]:before { - text-decoration: inherit; - display: inline-block; - speak: none; -} - -/* makes the font 33% larger relative to the icon container */ -.icon-large:before { - vertical-align: -10%; - font-size: (4em/3); -} - -/* makes sure icons active on rollover in links */ -a { - [class^="icon-"], - [class*=" icon-"] { - display: inline; - } -} - -/* increased font size for icon-large */ -[class^="icon-"], -[class*=" icon-"] { - &.icon-fixed-width { - display: inline-block; - width: (16em/14); - text-align: right; - padding-right: (4em/14); - &.icon-large { - width: (20em/14); - } - } -} - -.icons-ul { - margin-left: $icons-li-width; - list-style-type: none; - - > li { position: relative; } - - .icon-li { - position: absolute; - left: -$icons-li-width; - width: $icons-li-width; - text-align: center; - line-height: inherit; - } -} - -// allows usage of the hide class directly on font awesome icons -[class^="icon-"], -[class*=" icon-"] { - &.hide { - display: none; - } -} - -.icon-muted { color: $iconMuted; } -.icon-light { color: $iconLight; } -.icon-dark { color: $iconDark; } - -// Icon Borders -// ------------------------- - -.icon-border { - border: solid 1px $borderColor; - padding: .2em .25em .15em; - @include border-radius(3px); -} - -// Icon Sizes -// ------------------------- - -.icon-2x { - font-size: 2em; - &.icon-border { - border-width: 2px; - @include border-radius(4px); - } -} -.icon-3x { - font-size: 3em; - &.icon-border { - border-width: 3px; - @include border-radius(5px); - } -} -.icon-4x { - font-size: 4em; - &.icon-border { - border-width: 4px; - @include border-radius(6px); - } -} - -.icon-5x { - font-size: 5em; - &.icon-border { - border-width: 5px; - @include border-radius(7px); - } -} - - -// Floats & Margins -// ------------------------- - -// Quick floats -.pull-right { float: right; } -.pull-left { float: left; } - -[class^="icon-"], -[class*=" icon-"] { - &.pull-left { - margin-right: .3em; - } - &.pull-right { - margin-left: .3em; - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_extras.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_extras.scss deleted file mode 100644 index 9a25845d..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_extras.scss +++ /dev/null @@ -1,93 +0,0 @@ -/* EXTRAS - * -------------------------- */ - -/* Stacked and layered icon */ -@include icon-stack(); - -/* Animated rotating icon */ -.icon-spin { - display: inline-block; - -moz-animation: spin 2s infinite linear; - -o-animation: spin 2s infinite linear; - -webkit-animation: spin 2s infinite linear; - animation: spin 2s infinite linear; -} - -/* Prevent stack and spinners from being taken inline when inside a link */ -a .icon-stack, -a .icon-spin { - display: inline-block; - text-decoration: none; -} - -@-moz-keyframes spin { - 0% { -moz-transform: rotate(0deg); } - 100% { -moz-transform: rotate(359deg); } -} -@-webkit-keyframes spin { - 0% { -webkit-transform: rotate(0deg); } - 100% { -webkit-transform: rotate(359deg); } -} -@-o-keyframes spin { - 0% { -o-transform: rotate(0deg); } - 100% { -o-transform: rotate(359deg); } -} -@-ms-keyframes spin { - 0% { -ms-transform: rotate(0deg); } - 100% { -ms-transform: rotate(359deg); } -} -@keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(359deg); } -} - -/* Icon rotations and mirroring */ -.icon-rotate-90:before { - -webkit-transform: rotate(90deg); - -moz-transform: rotate(90deg); - -ms-transform: rotate(90deg); - -o-transform: rotate(90deg); - transform: rotate(90deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); -} - -.icon-rotate-180:before { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - -ms-transform: rotate(180deg); - -o-transform: rotate(180deg); - transform: rotate(180deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); -} - -.icon-rotate-270:before { - -webkit-transform: rotate(270deg); - -moz-transform: rotate(270deg); - -ms-transform: rotate(270deg); - -o-transform: rotate(270deg); - transform: rotate(270deg); - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -} - -.icon-flip-horizontal:before { - -webkit-transform: scale(-1, 1); - -moz-transform: scale(-1, 1); - -ms-transform: scale(-1, 1); - -o-transform: scale(-1, 1); - transform: scale(-1, 1); -} - -.icon-flip-vertical:before { - -webkit-transform: scale(1, -1); - -moz-transform: scale(1, -1); - -ms-transform: scale(1, -1); - -o-transform: scale(1, -1); - transform: scale(1, -1); -} - -/* ensure rotation occurs inside anchor tags */ -a { - .icon-rotate-90, .icon-rotate-180, .icon-rotate-270, .icon-flip-horizontal, .icon-flip-vertical { - &:before { display: inline-block; } - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy-extra.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy-extra.scss deleted file mode 100644 index a915f6ef..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy-extra.scss +++ /dev/null @@ -1,67 +0,0 @@ -.icon-btc:before { - content: "\f15a"; -} - -.icon-cny:before { - content: "\f158"; -} - -.icon-eur:before { - content: "\f153"; -} - -.icon-gear:before { - content: "\f013"; -} - -.icon-gears:before { - content: "\f085"; -} - -.icon-inr:before { - content: "\f156"; -} - -.icon-jpy:before { - content: "\f157"; -} - -.icon-krw:before { - content: "\f159"; -} - -.icon-mail-forward:before { - content: "\f064"; -} - -.icon-mail-reply:before { - content: "\f112"; -} - -.icon-paperclip:before { - content: "\f0c6"; -} - -.icon-power-off:before { - content: "\f011"; -} - -.icon-rotate-left:before { - content: "\f0e2"; -} - -.icon-rotate-right:before { - content: "\f01e"; -} - -.icon-star-half-empty:before { - content: "\f123"; -} - -.icon-unchecked:before { - content: "\f096"; -} - -.icon-usd:before { - content: "\f155"; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy.scss deleted file mode 100644 index 7dc94a62..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_icons-alloy.scss +++ /dev/null @@ -1,1175 +0,0 @@ -/* Use the following CSS code if you want to use data attributes for inserting your icons */ -[data-icon]:before { - font-family: 'fontawesome-alloy'; - content: attr(data-icon); - speak: none; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* Use the following CSS code if you want to have a class per icon */ -/* -Instead of a list of all class selectors, -you can use the generic selector below, but it's slower: -[class*="icon-"] { -*/ -.icon-music, .icon-search, .icon-envelope, .icon-heart, .icon-star, .icon-star-empty, .icon-user, .icon-film, .icon-th-large, .icon-th, .icon-th-list, .icon-ok, .icon-remove, .icon-zoom-in, .icon-zoom-out, .icon-off, .icon-signal, .icon-cog, .icon-trash, .icon-home, .icon-file, .icon-time, .icon-road, .icon-download-alt, .icon-download, .icon-upload, .icon-inbox, .icon-play-circle, .icon-repeat, .icon-refresh, .icon-list-alt, .icon-lock, .icon-flag, .icon-headphones, .icon-volume-off, .icon-volume-down, .icon-volume-up, .icon-qrcode, .icon-barcode, .icon-tag, .icon-tags, .icon-book, .icon-bookmark, .icon-print, .icon-camera, .icon-font, .icon-bold, .icon-italic, .icon-text-height, .icon-text-width, .icon-align-left, .icon-align-center, .icon-align-right, .icon-align-justify, .icon-list, .icon-indent-left, .icon-indent-right, .icon-facetime-video, .icon-picture, .icon-pencil, .icon-map-marker, .icon-adjust, .icon-tint, .icon-edit, .icon-share, .icon-check, .icon-move, .icon-step-backward, .icon-fast-backward, .icon-backward, .icon-play, .icon-pause, .icon-stop, .icon-forward, .icon-fast-forward, .icon-step-forward, .icon-eject, .icon-chevron-left, .icon-chevron-right, .icon-plus-sign, .icon-minus-sign, .icon-remove-sign, .icon-ok-sign, .icon-question-sign, .icon-info-sign, .icon-screenshot, .icon-remove-circle, .icon-ok-circle, .icon-ban-circle, .icon-arrow-left, .icon-arrow-right, .icon-arrow-up, .icon-arrow-down, .icon-share-alt, .icon-resize-full, .icon-resize-small, .icon-plus, .icon-minus, .icon-asterisk, .icon-exclamation-sign, .icon-gift, .icon-leaf, .icon-fire, .icon-eye-open, .icon-eye-close, .icon-warning-sign, .icon-plane, .icon-calendar, .icon-random, .icon-comment, .icon-magnet, .icon-chevron-up, .icon-chevron-down, .icon-retweet, .icon-shopping-cart, .icon-folder-close, .icon-folder-open, .icon-resize-vertical, .icon-resize-horizontal, .icon-bar-chart, .icon-twitter-sign, .icon-facebook-sign, .icon-camera-retro, .icon-key, .icon-cogs, .icon-comments, .icon-thumbs-up, .icon-thumbs-down, .icon-star-half, .icon-heart-empty, .icon-signout, .icon-linkedin-sign, .icon-pushpin, .icon-external-link, .icon-signin, .icon-trophy, .icon-github-sign, .icon-upload-alt, .icon-lemon, .icon-phone, .icon-check-empty, .icon-bookmark-empty, .icon-phone-sign, .icon-twitter, .icon-facebook, .icon-github, .icon-unlock, .icon-credit, .icon-rss, .icon-hdd, .icon-bullhorn, .icon-bell, .icon-certificate, .icon-hand-right, .icon-hand-left, .icon-hand-up, .icon-hand-down, .icon-circle-arrow-left, .icon-circle-arrow-right, .icon-circle-arrow-up, .icon-circle-arrow-down, .icon-globe, .icon-wrench, .icon-tasks, .icon-filter, .icon-briefcase, .icon-fullscreen, .icon-group, .icon-link, .icon-cloud, .icon-beaker, .icon-cut, .icon-copy, .icon-paper-clip, .icon-save, .icon-sign-blank, .icon-reorder, .icon-list-ul, .icon-list-ol, .icon-strikethrough, .icon-underline, .icon-table, .icon-magic, .icon-truck, .icon-pinterest, .icon-pinterest-sign, .icon-google-plus-sign, .icon-google-plus, .icon-money, .icon-caret-down, .icon-caret-up, .icon-caret-left, .icon-caret-right, .icon-columns, .icon-sort, .icon-sort-down, .icon-sort-up, .icon-envelope-alt, .icon-linkedin, .icon-undo, .icon-legal, .icon-dashboard, .icon-comment-alt, .icon-comments-alt, .icon-bolt, .icon-sitemap, .icon-umbrella, .icon-paste, .icon-lightbulb, .icon-exchange, .icon-cloud-download, .icon-cloud-upload, .icon-user-md, .icon-stethoscope, .icon-suitcase, .icon-bell-alt, .icon-coffee, .icon-food, .icon-file-alt, .icon-building, .icon-hospital, .icon-ambulance, .icon-medkit, .icon-fighter-jet, .icon-beer, .icon-h-sign, .icon-plus-sign-2, .icon-double-angle-left, .icon-double-angle-right, .icon-double-angle-up, .icon-double-angle-down, .icon-angle-left, .icon-angle-right, .icon-angle-up, .icon-angle-down, .icon-desktop, .icon-laptop, .icon-tablet, .icon-mobile, .icon-circle-blank, .icon-quote-left, .icon-quote-right, .icon-spinner, .icon-circle, .icon-reply, .icon-github-alt, .icon-folder-close-alt, .icon-folder-open-alt, .icon-expand-alt, .icon-collapse-alt, .icon-smile, .icon-frown, .icon-meh, .icon-gamepad, .icon-keyboard, .icon-flag-alt, .icon-flag-checkered, .icon-terminal, .icon-code, .icon-reply-all, .icon-star-half-full, .icon-location-arrow, .icon-crop, .icon-code-fork, .icon-unlink, .icon-question, .icon-info, .icon-exclamation, .icon-superscript, .icon-subscript, .icon-eraser, .icon-puzzle, .icon-microphone, .icon-microphone-off, .icon-shield, .icon-calendar-empty, .icon-fire-extinguisher, .icon-rocket, .icon-maxcdn, .icon-chevron-sign-left, .icon-chevron-sign-right, .icon-chevron-sign-up, .icon-chevron-sign-down, .icon-html5, .icon-css3, .icon-anchor, .icon-unlock-alt, .icon-bullseye, .icon-ellipsis-horizontal, .icon-ellipsis-vertical, .icon-rss-sign, .icon-play-sign, .icon-ticket, .icon-minus-sign-alt, .icon-check-minus, .icon-level-up, .icon-level-down, .icon-check-sign, .icon-edit-sign, .icon-external-link-sign, .icon-share-sign, .icon-compass, .icon-collapse, .icon-collapse-top, .icon-expand, .icon-euro, .icon-gbp, .icon-dollar, .icon-yen, .icon-renminbi, .icon-won, .icon-bitcoin, .icon-file-2, .icon-file-text, .icon-sort-by-alphabet, .icon-sort-by-alphabet-alt, .icon-sort-by-attributes, .icon-sort-by-attributes-alt, .icon-sort-by-order, .icon-sort-by-order-alt, .icon-thumbs-up-2, .icon-thumbs-down-2, .icon-youtube-sign, .icon-youtube, .icon-xing, .icon-xing-sign, .icon-youtube-play, .icon-dropbox, .icon-stackexchange, .icon-instagram, .icon-flickr, .icon-adn, .icon-bitbucket, .icon-bitbucket-sign, .icon-tumblr, .icon-tumblr-sign, .icon-long-arrow-down, .icon-long-arrow-up, .icon-long-arrow-left, .icon-long-arrow-right, .icon-apple, .icon-windows, .icon-android, .icon-linux, .icon-dribbble, .icon-skype, .icon-foursquare, .icon-trello, .icon-female, .icon-male, .icon-gittip, .icon-sun, .icon-moon, .icon-archive, .icon-bug, .icon-vk, .icon-rupee, .icon-glass, .icon-fb-text-box, .icon-fb-select, .icon-fb-radio, .icon-fb-text, .icon-fb-number, .icon-fb-integer, .icon-fb-decimal, .icon-fb-boolean, .icon-renren, .icon-weibo, .icon-db-joinxor, .icon-db-state, .icon-db-end, .icon-db-start, .icon-db-fork, .icon-db-task, .icon-db-condition, .icon-db-join, .icon-fb-button, .icon-fb-fieldset, .icon-fb-custom-field, .icon-fb-separator, .icon-fb-paragraph, .icon-fb-file-upload { - font-family: 'fontawesome-alloy'; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; -} -.icon-music:before { - content: "\f001"; -} -.icon-search:before { - content: "\f002"; -} -.icon-envelope:before { - content: "\f003"; -} -.icon-heart:before { - content: "\f004"; -} -.icon-star:before { - content: "\f005"; -} -.icon-star-empty:before { - content: "\f006"; -} -.icon-user:before { - content: "\f007"; -} -.icon-film:before { - content: "\f008"; -} -.icon-th-large:before { - content: "\f009"; -} -.icon-th:before { - content: "\f00a"; -} -.icon-th-list:before { - content: "\f00b"; -} -.icon-ok:before { - content: "\f00c"; -} -.icon-remove:before { - content: "\f00d"; -} -.icon-zoom-in:before { - content: "\f00e"; -} -.icon-zoom-out:before { - content: "\f010"; -} -.icon-off:before { - content: "\f011"; -} -.icon-signal:before { - content: "\f012"; -} -.icon-cog:before { - content: "\f013"; -} -.icon-trash:before { - content: "\f014"; -} -.icon-home:before { - content: "\f015"; -} -.icon-file:before { - content: "\f016"; -} -.icon-time:before { - content: "\f017"; -} -.icon-road:before { - content: "\f018"; -} -.icon-download-alt:before { - content: "\f019"; -} -.icon-download:before { - content: "\f01a"; -} -.icon-upload:before { - content: "\f01b"; -} -.icon-inbox:before { - content: "\f01c"; -} -.icon-play-circle:before { - content: "\f01d"; -} -.icon-repeat:before { - content: "\f01e"; -} -.icon-refresh:before { - content: "\f021"; -} -.icon-list-alt:before { - content: "\f022"; -} -.icon-lock:before { - content: "\f023"; -} -.icon-flag:before { - content: "\f024"; -} -.icon-headphones:before { - content: "\f025"; -} -.icon-volume-off:before { - content: "\f026"; -} -.icon-volume-down:before { - content: "\f027"; -} -.icon-volume-up:before { - content: "\f028"; -} -.icon-qrcode:before { - content: "\f029"; -} -.icon-barcode:before { - content: "\f02a"; -} -.icon-tag:before { - content: "\f02b"; -} -.icon-tags:before { - content: "\f02c"; -} -.icon-book:before { - content: "\f02d"; -} -.icon-bookmark:before { - content: "\f02e"; -} -.icon-print:before { - content: "\f02f"; -} -.icon-camera:before { - content: "\f030"; -} -.icon-font:before { - content: "\f031"; -} -.icon-bold:before { - content: "\f032"; -} -.icon-italic:before { - content: "\f033"; -} -.icon-text-height:before { - content: "\f034"; -} -.icon-text-width:before { - content: "\f035"; -} -.icon-align-left:before { - content: "\f036"; -} -.icon-align-center:before { - content: "\f037"; -} -.icon-align-right:before { - content: "\f038"; -} -.icon-align-justify:before { - content: "\f039"; -} -.icon-list:before { - content: "\f03a"; -} -.icon-indent-left:before { - content: "\f03b"; -} -.icon-indent-right:before { - content: "\f03c"; -} -.icon-facetime-video:before { - content: "\f03d"; -} -.icon-picture:before { - content: "\f03e"; -} -.icon-pencil:before { - content: "\f040"; -} -.icon-map-marker:before { - content: "\f041"; -} -.icon-adjust:before { - content: "\f042"; -} -.icon-tint:before { - content: "\f043"; -} -.icon-edit:before { - content: "\f044"; -} -.icon-share:before { - content: "\f045"; -} -.icon-check:before { - content: "\f046"; -} -.icon-move:before { - content: "\f047"; -} -.icon-step-backward:before { - content: "\f048"; -} -.icon-fast-backward:before { - content: "\f049"; -} -.icon-backward:before { - content: "\f04a"; -} -.icon-play:before { - content: "\f04b"; -} -.icon-pause:before { - content: "\f04c"; -} -.icon-stop:before { - content: "\f04d"; -} -.icon-forward:before { - content: "\f04e"; -} -.icon-fast-forward:before { - content: "\f050"; -} -.icon-step-forward:before { - content: "\f051"; -} -.icon-eject:before { - content: "\f052"; -} -.icon-chevron-left:before { - content: "\f053"; -} -.icon-chevron-right:before { - content: "\f054"; -} -.icon-plus-sign:before { - content: "\f055"; -} -.icon-minus-sign:before { - content: "\f056"; -} -.icon-remove-sign:before { - content: "\f057"; -} -.icon-ok-sign:before { - content: "\f058"; -} -.icon-question-sign:before { - content: "\f059"; -} -.icon-info-sign:before { - content: "\f05a"; -} -.icon-screenshot:before { - content: "\f05b"; -} -.icon-remove-circle:before { - content: "\f05c"; -} -.icon-ok-circle:before { - content: "\f05d"; -} -.icon-ban-circle:before { - content: "\f05e"; -} -.icon-arrow-left:before { - content: "\f060"; -} -.icon-arrow-right:before { - content: "\f061"; -} -.icon-arrow-up:before { - content: "\f062"; -} -.icon-arrow-down:before { - content: "\f063"; -} -.icon-share-alt:before { - content: "\f064"; -} -.icon-resize-full:before { - content: "\f065"; -} -.icon-resize-small:before { - content: "\f066"; -} -.icon-plus:before { - content: "\f067"; -} -.icon-minus:before { - content: "\f068"; -} -.icon-asterisk:before { - content: "\f069"; -} -.icon-exclamation-sign:before { - content: "\f06a"; -} -.icon-gift:before { - content: "\f06b"; -} -.icon-leaf:before { - content: "\f06c"; -} -.icon-fire:before { - content: "\f06d"; -} -.icon-eye-open:before { - content: "\f06e"; -} -.icon-eye-close:before { - content: "\f070"; -} -.icon-warning-sign:before { - content: "\f071"; -} -.icon-plane:before { - content: "\f072"; -} -.icon-calendar:before { - content: "\f073"; -} -.icon-random:before { - content: "\f074"; -} -.icon-comment:before { - content: "\f075"; -} -.icon-magnet:before { - content: "\f076"; -} -.icon-chevron-up:before { - content: "\f077"; -} -.icon-chevron-down:before { - content: "\f078"; -} -.icon-retweet:before { - content: "\f079"; -} -.icon-shopping-cart:before { - content: "\f07a"; -} -.icon-folder-close:before { - content: "\f07b"; -} -.icon-folder-open:before { - content: "\f07c"; -} -.icon-resize-vertical:before { - content: "\f07d"; -} -.icon-resize-horizontal:before { - content: "\f07e"; -} -.icon-bar-chart:before { - content: "\f080"; -} -.icon-twitter-sign:before { - content: "\f081"; -} -.icon-facebook-sign:before { - content: "\f082"; -} -.icon-camera-retro:before { - content: "\f083"; -} -.icon-key:before { - content: "\f084"; -} -.icon-cogs:before { - content: "\f085"; -} -.icon-comments:before { - content: "\f086"; -} -.icon-thumbs-up:before { - content: "\f087"; -} -.icon-thumbs-down:before { - content: "\f088"; -} -.icon-star-half:before { - content: "\f089"; -} -.icon-heart-empty:before { - content: "\f08a"; -} -.icon-signout:before { - content: "\f08b"; -} -.icon-linkedin-sign:before { - content: "\f08c"; -} -.icon-pushpin:before { - content: "\f08d"; -} -.icon-external-link:before { - content: "\f08e"; -} -.icon-signin:before { - content: "\f090"; -} -.icon-trophy:before { - content: "\f091"; -} -.icon-github-sign:before { - content: "\f092"; -} -.icon-upload-alt:before { - content: "\f093"; -} -.icon-lemon:before { - content: "\f094"; -} -.icon-phone:before { - content: "\f095"; -} -.icon-check-empty:before { - content: "\f096"; -} -.icon-bookmark-empty:before { - content: "\f097"; -} -.icon-phone-sign:before { - content: "\f098"; -} -.icon-twitter:before { - content: "\f099"; -} -.icon-facebook:before { - content: "\f09a"; -} -.icon-github:before { - content: "\f09b"; -} -.icon-unlock:before { - content: "\f09c"; -} -.icon-credit:before { - content: "\f09d"; -} -.icon-rss:before { - content: "\f09e"; -} -.icon-hdd:before { - content: "\f0a0"; -} -.icon-bullhorn:before { - content: "\f0a1"; -} -.icon-bell:before { - content: "\f0a2"; -} -.icon-certificate:before { - content: "\f0a3"; -} -.icon-hand-right:before { - content: "\f0a4"; -} -.icon-hand-left:before { - content: "\f0a5"; -} -.icon-hand-up:before { - content: "\f0a6"; -} -.icon-hand-down:before { - content: "\f0a7"; -} -.icon-circle-arrow-left:before { - content: "\f0a8"; -} -.icon-circle-arrow-right:before { - content: "\f0a9"; -} -.icon-circle-arrow-up:before { - content: "\f0aa"; -} -.icon-circle-arrow-down:before { - content: "\f0ab"; -} -.icon-globe:before { - content: "\f0ac"; -} -.icon-wrench:before { - content: "\f0ad"; -} -.icon-tasks:before { - content: "\f0ae"; -} -.icon-filter:before { - content: "\f0b0"; -} -.icon-briefcase:before { - content: "\f0b1"; -} -.icon-fullscreen:before { - content: "\f0b2"; -} -.icon-group:before { - content: "\f0c0"; -} -.icon-link:before { - content: "\f0c1"; -} -.icon-cloud:before { - content: "\f0c2"; -} -.icon-beaker:before { - content: "\f0c3"; -} -.icon-cut:before { - content: "\f0c4"; -} -.icon-copy:before { - content: "\f0c5"; -} -.icon-paper-clip:before { - content: "\f0c6"; -} -.icon-save:before { - content: "\f0c7"; -} -.icon-sign-blank:before { - content: "\f0c8"; -} -.icon-reorder:before { - content: "\f0c9"; -} -.icon-list-ul:before { - content: "\f0ca"; -} -.icon-list-ol:before { - content: "\f0cb"; -} -.icon-strikethrough:before { - content: "\f0cc"; -} -.icon-underline:before { - content: "\f0cd"; -} -.icon-table:before { - content: "\f0ce"; -} -.icon-magic:before { - content: "\f0d0"; -} -.icon-truck:before { - content: "\f0d1"; -} -.icon-pinterest:before { - content: "\f0d2"; -} -.icon-pinterest-sign:before { - content: "\f0d3"; -} -.icon-google-plus-sign:before { - content: "\f0d4"; -} -.icon-google-plus:before { - content: "\f0d5"; -} -.icon-money:before { - content: "\f0d6"; -} -.icon-caret-down:before { - content: "\f0d7"; -} -.icon-caret-up:before { - content: "\f0d8"; -} -.icon-caret-left:before { - content: "\f0d9"; -} -.icon-caret-right:before { - content: "\f0da"; -} -.icon-columns:before { - content: "\f0db"; -} -.icon-sort:before { - content: "\f0dc"; -} -.icon-sort-down:before { - content: "\f0dd"; -} -.icon-sort-up:before { - content: "\f0de"; -} -.icon-envelope-alt:before { - content: "\f0e0"; -} -.icon-linkedin:before { - content: "\f0e1"; -} -.icon-undo:before { - content: "\f0e2"; -} -.icon-legal:before { - content: "\f0e3"; -} -.icon-dashboard:before { - content: "\f0e4"; -} -.icon-comment-alt:before { - content: "\f0e5"; -} -.icon-comments-alt:before { - content: "\f0e6"; -} -.icon-bolt:before { - content: "\f0e7"; -} -.icon-sitemap:before { - content: "\f0e8"; -} -.icon-umbrella:before { - content: "\f0e9"; -} -.icon-paste:before { - content: "\f0ea"; -} -.icon-lightbulb:before { - content: "\f0eb"; -} -.icon-exchange:before { - content: "\f0ec"; -} -.icon-cloud-download:before { - content: "\f0ed"; -} -.icon-cloud-upload:before { - content: "\f0ee"; -} -.icon-user-md:before { - content: "\f0f0"; -} -.icon-stethoscope:before { - content: "\f0f1"; -} -.icon-suitcase:before { - content: "\f0f2"; -} -.icon-bell-alt:before { - content: "\f0f3"; -} -.icon-coffee:before { - content: "\f0f4"; -} -.icon-food:before { - content: "\f0f5"; -} -.icon-file-alt:before { - content: "\f0f6"; -} -.icon-building:before { - content: "\f0f7"; -} -.icon-hospital:before { - content: "\f0f8"; -} -.icon-ambulance:before { - content: "\f0f9"; -} -.icon-medkit:before { - content: "\f0fa"; -} -.icon-fighter-jet:before { - content: "\f0fb"; -} -.icon-beer:before { - content: "\f0fc"; -} -.icon-h-sign:before { - content: "\f0fd"; -} -.icon-plus-sign-2:before { - content: "\f0fe"; -} -.icon-double-angle-left:before { - content: "\f100"; -} -.icon-double-angle-right:before { - content: "\f101"; -} -.icon-double-angle-up:before { - content: "\f102"; -} -.icon-double-angle-down:before { - content: "\f103"; -} -.icon-angle-left:before { - content: "\f104"; -} -.icon-angle-right:before { - content: "\f105"; -} -.icon-angle-up:before { - content: "\f106"; -} -.icon-angle-down:before { - content: "\f107"; -} -.icon-desktop:before { - content: "\f108"; -} -.icon-laptop:before { - content: "\f109"; -} -.icon-tablet:before { - content: "\f10a"; -} -.icon-mobile:before { - content: "\f10b"; -} -.icon-circle-blank:before { - content: "\f10c"; -} -.icon-quote-left:before { - content: "\f10d"; -} -.icon-quote-right:before { - content: "\f10e"; -} -.icon-spinner:before { - content: "\f110"; -} -.icon-circle:before { - content: "\f111"; -} -.icon-reply:before { - content: "\f112"; -} -.icon-github-alt:before { - content: "\f113"; -} -.icon-folder-close-alt:before { - content: "\f114"; -} -.icon-folder-open-alt:before { - content: "\f115"; -} -.icon-expand-alt:before { - content: "\f116"; -} -.icon-collapse-alt:before { - content: "\f117"; -} -.icon-smile:before { - content: "\f118"; -} -.icon-frown:before { - content: "\f119"; -} -.icon-meh:before { - content: "\f11a"; -} -.icon-gamepad:before { - content: "\f11b"; -} -.icon-keyboard:before { - content: "\f11c"; -} -.icon-flag-alt:before { - content: "\f11d"; -} -.icon-flag-checkered:before { - content: "\f11e"; -} -.icon-terminal:before { - content: "\f120"; -} -.icon-code:before { - content: "\f121"; -} -.icon-reply-all:before { - content: "\f122"; -} -.icon-star-half-full:before { - content: "\f123"; -} -.icon-location-arrow:before { - content: "\f124"; -} -.icon-crop:before { - content: "\f125"; -} -.icon-code-fork:before { - content: "\f126"; -} -.icon-unlink:before { - content: "\f127"; -} -.icon-question:before { - content: "\f128"; -} -.icon-info:before { - content: "\f129"; -} -.icon-exclamation:before { - content: "\f12a"; -} -.icon-superscript:before { - content: "\f12b"; -} -.icon-subscript:before { - content: "\f12c"; -} -.icon-eraser:before { - content: "\f12d"; -} -.icon-puzzle:before { - content: "\f12e"; -} -.icon-microphone:before { - content: "\f130"; -} -.icon-microphone-off:before { - content: "\f131"; -} -.icon-shield:before { - content: "\f132"; -} -.icon-calendar-empty:before { - content: "\f133"; -} -.icon-fire-extinguisher:before { - content: "\f134"; -} -.icon-rocket:before { - content: "\f135"; -} -.icon-maxcdn:before { - content: "\f136"; -} -.icon-chevron-sign-left:before { - content: "\f137"; -} -.icon-chevron-sign-right:before { - content: "\f138"; -} -.icon-chevron-sign-up:before { - content: "\f139"; -} -.icon-chevron-sign-down:before { - content: "\f13a"; -} -.icon-html5:before { - content: "\f13b"; -} -.icon-css3:before { - content: "\f13c"; -} -.icon-anchor:before { - content: "\f13d"; -} -.icon-unlock-alt:before { - content: "\f13e"; -} -.icon-bullseye:before { - content: "\f140"; -} -.icon-ellipsis-horizontal:before { - content: "\f141"; -} -.icon-ellipsis-vertical:before { - content: "\f142"; -} -.icon-rss-sign:before { - content: "\f143"; -} -.icon-play-sign:before { - content: "\f144"; -} -.icon-ticket:before { - content: "\f145"; -} -.icon-minus-sign-alt:before { - content: "\f146"; -} -.icon-check-minus:before { - content: "\f147"; -} -.icon-level-up:before { - content: "\f148"; -} -.icon-level-down:before { - content: "\f149"; -} -.icon-check-sign:before { - content: "\f14a"; -} -.icon-edit-sign:before { - content: "\f14b"; -} -.icon-external-link-sign:before { - content: "\f14c"; -} -.icon-share-sign:before { - content: "\f14d"; -} -.icon-compass:before { - content: "\f14e"; -} -.icon-collapse:before { - content: "\f150"; -} -.icon-collapse-top:before { - content: "\f151"; -} -.icon-expand:before { - content: "\f152"; -} -.icon-euro:before { - content: "\f153"; -} -.icon-gbp:before { - content: "\f154"; -} -.icon-dollar:before { - content: "\f155"; -} -.icon-yen:before { - content: "\f157"; -} -.icon-renminbi:before { - content: "\f158"; -} -.icon-won:before { - content: "\f159"; -} -.icon-bitcoin:before { - content: "\f15a"; -} -.icon-file-2:before { - content: "\f15b"; -} -.icon-file-text:before { - content: "\f15c"; -} -.icon-sort-by-alphabet:before { - content: "\f15d"; -} -.icon-sort-by-alphabet-alt:before { - content: "\f15e"; -} -.icon-sort-by-attributes:before { - content: "\f160"; -} -.icon-sort-by-attributes-alt:before { - content: "\f161"; -} -.icon-sort-by-order:before { - content: "\f162"; -} -.icon-sort-by-order-alt:before { - content: "\f163"; -} -.icon-thumbs-up-2:before { - content: "\f164"; -} -.icon-thumbs-down-2:before { - content: "\f165"; -} -.icon-youtube-sign:before { - content: "\f166"; -} -.icon-youtube:before { - content: "\f167"; -} -.icon-xing:before { - content: "\f168"; -} -.icon-xing-sign:before { - content: "\f169"; -} -.icon-youtube-play:before { - content: "\f16a"; -} -.icon-dropbox:before { - content: "\f16b"; -} -.icon-stackexchange:before { - content: "\f16c"; -} -.icon-instagram:before { - content: "\f16d"; -} -.icon-flickr:before { - content: "\f16e"; -} -.icon-adn:before { - content: "\f170"; -} -.icon-bitbucket:before { - content: "\f171"; -} -.icon-bitbucket-sign:before { - content: "\f172"; -} -.icon-tumblr:before { - content: "\f173"; -} -.icon-tumblr-sign:before { - content: "\f174"; -} -.icon-long-arrow-down:before { - content: "\f175"; -} -.icon-long-arrow-up:before { - content: "\f176"; -} -.icon-long-arrow-left:before { - content: "\f177"; -} -.icon-long-arrow-right:before { - content: "\f178"; -} -.icon-apple:before { - content: "\f179"; -} -.icon-windows:before { - content: "\f17a"; -} -.icon-android:before { - content: "\f17b"; -} -.icon-linux:before { - content: "\f17c"; -} -.icon-dribbble:before { - content: "\f17d"; -} -.icon-skype:before { - content: "\f17e"; -} -.icon-foursquare:before { - content: "\f180"; -} -.icon-trello:before { - content: "\f181"; -} -.icon-female:before { - content: "\f182"; -} -.icon-male:before { - content: "\f183"; -} -.icon-gittip:before { - content: "\f184"; -} -.icon-sun:before { - content: "\f185"; -} -.icon-moon:before { - content: "\f186"; -} -.icon-archive:before { - content: "\f187"; -} -.icon-bug:before { - content: "\f188"; -} -.icon-vk:before { - content: "\f189"; -} -.icon-rupee:before { - content: "\f156"; -} -.icon-glass:before { - content: "\f000"; -} -.icon-fb-text-box:before { - content: "\e001"; -} -.icon-fb-select:before { - content: "\e002"; -} -.icon-fb-radio:before { - content: "\e003"; -} -.icon-fb-text:before { - content: "\e000"; -} -.icon-fb-number:before { - content: "\e004"; -} -.icon-fb-integer:before { - content: "\e005"; -} -.icon-fb-decimal:before { - content: "\e007"; -} -.icon-fb-boolean:before { - content: "\e008"; -} -.icon-renren:before { - content: "\f18b"; -} -.icon-weibo:before { - content: "\f18a"; -} -.icon-db-joinxor:before { - content: "\e006"; -} -.icon-db-state:before { - content: "\e009"; -} -.icon-db-end:before { - content: "\e00a"; -} -.icon-db-start:before { - content: "\e00b"; -} -.icon-db-fork:before { - content: "\e00c"; -} -.icon-db-task:before { - content: "\e00d"; -} -.icon-db-condition:before { - content: "\e00e"; -} -.icon-db-join:before { - content: "\e00f"; -} -.icon-fb-button:before { - content: "\e010"; -} -.icon-fb-fieldset:before { - content: "\e011"; -} -.icon-fb-custom-field:before { - content: "\e012"; -} -.icon-fb-separator:before { - content: "\e013"; -} -.icon-fb-paragraph:before { - content: "\e014"; -} -.icon-fb-file-upload:before { - content: "\e015"; -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_mixins-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_mixins-alloy.scss deleted file mode 100644 index edba8f01..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_mixins-alloy.scss +++ /dev/null @@ -1,48 +0,0 @@ -// Mixins -// -------------------------- - -@mixin icon($icon) { - @include icon-FontAwesome(); - content: $icon; -} - -@mixin icon-FontAwesome() { - font-family: 'fontawesome-alloy'; - font-weight: normal; - font-style: normal; - text-decoration: inherit; - -webkit-font-smoothing: antialiased; - *margin-right: .3em; // fixes ie7 issues -} - -@mixin border-radius($radius) { - -webkit-border-radius: $radius; - -moz-border-radius: $radius; - border-radius: $radius; -} - -@mixin icon-stack($width: 2em, $height: 2em, $top-font-size: 1em, $base-font-size: 2em) { - .icon-stack { - position: relative; - display: inline-block; - width: $width; - height: $height; - line-height: $width; - vertical-align: -35%; - [class^="icon-"], - [class*=" icon-"] { - display: block; - text-align: center; - position: absolute; - width: 100%; - height: 100%; - font-size: $top-font-size; - line-height: inherit; - *line-height: $height; - } - .icon-stack-base { - font-size: $base-font-size; - *line-height: #{$height / $base-font-size}em; - } - } -} diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_path-alloy.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_path-alloy.scss deleted file mode 100644 index fe19cf40..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_path-alloy.scss +++ /dev/null @@ -1,13 +0,0 @@ -/* FONT PATH - * -------------------------- */ - -@font-face { - font-family: 'fontawesome-alloy'; - src:url('#{$FontAwesomePath}/fontawesome-alloy.eot'); - src:url('#{$FontAwesomePath}/fontawesome-alloy.eot?#iefix') format('embedded-opentype'), - url('#{$FontAwesomePath}/fontawesome-alloy.woff') format('woff'), - url('#{$FontAwesomePath}/fontawesome-alloy.ttf') format('truetype'), - url('#{$FontAwesomePath}/fontawesome-alloy.svg#fontawesome-alloy') format('svg'); - font-weight: normal; - font-style: normal; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_variables.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_variables.scss deleted file mode 100644 index 7d6bbc5b..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/_variables.scss +++ /dev/null @@ -1,734 +0,0 @@ -// Variables -// -------------------------- - -$FontAwesomePath: "../font" !default; -$FontAwesomeVersion: "3.2.1" !default; -$borderColor: #eeeeee !default; -$iconMuted: #eeeeee !default; -$iconLight: white !default; -$iconDark: #333333 !default; -$icons-li-width: (30em/14); - - -$glass: "\f000"; - -$music: "\f001"; - -$search: "\f002"; - -$envelope-alt: "\f003"; - -$heart: "\f004"; - -$star: "\f005"; - -$star-empty: "\f006"; - -$user: "\f007"; - -$film: "\f008"; - -$th-large: "\f009"; - -$th: "\f00a"; - -$th-list: "\f00b"; - -$ok: "\f00c"; - -$remove: "\f00d"; - -$zoom-in: "\f00e"; - -$zoom-out: "\f010"; - -$off: "\f011"; - -$signal: "\f012"; - -$cog: "\f013"; - -$trash: "\f014"; - -$home: "\f015"; - -$file-alt: "\f016"; - -$time: "\f017"; - -$road: "\f018"; - -$download-alt: "\f019"; - -$download: "\f01a"; - -$upload: "\f01b"; - -$inbox: "\f01c"; - -$play-circle: "\f01d"; - -$repeat: "\f01e"; - -$refresh: "\f021"; - -$list-alt: "\f022"; - -$lock: "\f023"; - -$flag: "\f024"; - -$headphones: "\f025"; - -$volume-off: "\f026"; - -$volume-down: "\f027"; - -$volume-up: "\f028"; - -$qrcode: "\f029"; - -$barcode: "\f02a"; - -$tag: "\f02b"; - -$tags: "\f02c"; - -$book: "\f02d"; - -$bookmark: "\f02e"; - -$print: "\f02f"; - -$camera: "\f030"; - -$font: "\f031"; - -$bold: "\f032"; - -$italic: "\f033"; - -$text-height: "\f034"; - -$text-width: "\f035"; - -$align-left: "\f036"; - -$align-center: "\f037"; - -$align-right: "\f038"; - -$align-justify: "\f039"; - -$list: "\f03a"; - -$indent-left: "\f03b"; - -$indent-right: "\f03c"; - -$facetime-video: "\f03d"; - -$picture: "\f03e"; - -$pencil: "\f040"; - -$map-marker: "\f041"; - -$adjust: "\f042"; - -$tint: "\f043"; - -$edit: "\f044"; - -$share: "\f045"; - -$check: "\f046"; - -$move: "\f047"; - -$step-backward: "\f048"; - -$fast-backward: "\f049"; - -$backward: "\f04a"; - -$play: "\f04b"; - -$pause: "\f04c"; - -$stop: "\f04d"; - -$forward: "\f04e"; - -$fast-forward: "\f050"; - -$step-forward: "\f051"; - -$eject: "\f052"; - -$chevron-left: "\f053"; - -$chevron-right: "\f054"; - -$plus-sign: "\f055"; - -$minus-sign: "\f056"; - -$remove-sign: "\f057"; - -$ok-sign: "\f058"; - -$question-sign: "\f059"; - -$info-sign: "\f05a"; - -$screenshot: "\f05b"; - -$remove-circle: "\f05c"; - -$ok-circle: "\f05d"; - -$ban-circle: "\f05e"; - -$arrow-left: "\f060"; - -$arrow-right: "\f061"; - -$arrow-up: "\f062"; - -$arrow-down: "\f063"; - -$share-alt: "\f064"; - -$resize-full: "\f065"; - -$resize-small: "\f066"; - -$plus: "\f067"; - -$minus: "\f068"; - -$asterisk: "\f069"; - -$exclamation-sign: "\f06a"; - -$gift: "\f06b"; - -$leaf: "\f06c"; - -$fire: "\f06d"; - -$eye-open: "\f06e"; - -$eye-close: "\f070"; - -$warning-sign: "\f071"; - -$plane: "\f072"; - -$calendar: "\f073"; - -$random: "\f074"; - -$comment: "\f075"; - -$magnet: "\f076"; - -$chevron-up: "\f077"; - -$chevron-down: "\f078"; - -$retweet: "\f079"; - -$shopping-cart: "\f07a"; - -$folder-close: "\f07b"; - -$folder-open: "\f07c"; - -$resize-vertical: "\f07d"; - -$resize-horizontal: "\f07e"; - -$bar-chart: "\f080"; - -$twitter-sign: "\f081"; - -$facebook-sign: "\f082"; - -$camera-retro: "\f083"; - -$key: "\f084"; - -$cogs: "\f085"; - -$comments: "\f086"; - -$thumbs-up-alt: "\f087"; - -$thumbs-down-alt: "\f088"; - -$star-half: "\f089"; - -$heart-empty: "\f08a"; - -$signout: "\f08b"; - -$linkedin-sign: "\f08c"; - -$pushpin: "\f08d"; - -$external-link: "\f08e"; - -$signin: "\f090"; - -$trophy: "\f091"; - -$github-sign: "\f092"; - -$upload-alt: "\f093"; - -$lemon: "\f094"; - -$phone: "\f095"; - -$check-empty: "\f096"; - -$bookmark-empty: "\f097"; - -$phone-sign: "\f098"; - -$twitter: "\f099"; - -$facebook: "\f09a"; - -$github: "\f09b"; - -$unlock: "\f09c"; - -$credit-card: "\f09d"; - -$rss: "\f09e"; - -$hdd: "\f0a0"; - -$bullhorn: "\f0a1"; - -$bell: "\f0a2"; - -$certificate: "\f0a3"; - -$hand-right: "\f0a4"; - -$hand-left: "\f0a5"; - -$hand-up: "\f0a6"; - -$hand-down: "\f0a7"; - -$circle-arrow-left: "\f0a8"; - -$circle-arrow-right: "\f0a9"; - -$circle-arrow-up: "\f0aa"; - -$circle-arrow-down: "\f0ab"; - -$globe: "\f0ac"; - -$wrench: "\f0ad"; - -$tasks: "\f0ae"; - -$filter: "\f0b0"; - -$briefcase: "\f0b1"; - -$fullscreen: "\f0b2"; - -$group: "\f0c0"; - -$link: "\f0c1"; - -$cloud: "\f0c2"; - -$beaker: "\f0c3"; - -$cut: "\f0c4"; - -$copy: "\f0c5"; - -$paper-clip: "\f0c6"; - -$save: "\f0c7"; - -$sign-blank: "\f0c8"; - -$reorder: "\f0c9"; - -$list-ul: "\f0ca"; - -$list-ol: "\f0cb"; - -$strikethrough: "\f0cc"; - -$underline: "\f0cd"; - -$table: "\f0ce"; - -$magic: "\f0d0"; - -$truck: "\f0d1"; - -$pinterest: "\f0d2"; - -$pinterest-sign: "\f0d3"; - -$google-plus-sign: "\f0d4"; - -$google-plus: "\f0d5"; - -$money: "\f0d6"; - -$caret-down: "\f0d7"; - -$caret-up: "\f0d8"; - -$caret-left: "\f0d9"; - -$caret-right: "\f0da"; - -$columns: "\f0db"; - -$sort: "\f0dc"; - -$sort-down: "\f0dd"; - -$sort-up: "\f0de"; - -$envelope: "\f0e0"; - -$linkedin: "\f0e1"; - -$undo: "\f0e2"; - -$legal: "\f0e3"; - -$dashboard: "\f0e4"; - -$comment-alt: "\f0e5"; - -$comments-alt: "\f0e6"; - -$bolt: "\f0e7"; - -$sitemap: "\f0e8"; - -$umbrella: "\f0e9"; - -$paste: "\f0ea"; - -$lightbulb: "\f0eb"; - -$exchange: "\f0ec"; - -$cloud-download: "\f0ed"; - -$cloud-upload: "\f0ee"; - -$user-md: "\f0f0"; - -$stethoscope: "\f0f1"; - -$suitcase: "\f0f2"; - -$bell-alt: "\f0f3"; - -$coffee: "\f0f4"; - -$food: "\f0f5"; - -$file-text-alt: "\f0f6"; - -$building: "\f0f7"; - -$hospital: "\f0f8"; - -$ambulance: "\f0f9"; - -$medkit: "\f0fa"; - -$fighter-jet: "\f0fb"; - -$beer: "\f0fc"; - -$h-sign: "\f0fd"; - -$plus-sign-alt: "\f0fe"; - -$double-angle-left: "\f100"; - -$double-angle-right: "\f101"; - -$double-angle-up: "\f102"; - -$double-angle-down: "\f103"; - -$angle-left: "\f104"; - -$angle-right: "\f105"; - -$angle-up: "\f106"; - -$angle-down: "\f107"; - -$desktop: "\f108"; - -$laptop: "\f109"; - -$tablet: "\f10a"; - -$mobile-phone: "\f10b"; - -$circle-blank: "\f10c"; - -$quote-left: "\f10d"; - -$quote-right: "\f10e"; - -$spinner: "\f110"; - -$circle: "\f111"; - -$reply: "\f112"; - -$github-alt: "\f113"; - -$folder-close-alt: "\f114"; - -$folder-open-alt: "\f115"; - -$expand-alt: "\f116"; - -$collapse-alt: "\f117"; - -$smile: "\f118"; - -$frown: "\f119"; - -$meh: "\f11a"; - -$gamepad: "\f11b"; - -$keyboard: "\f11c"; - -$flag-alt: "\f11d"; - -$flag-checkered: "\f11e"; - -$terminal: "\f120"; - -$code: "\f121"; - -$reply-all: "\f122"; - -$mail-reply-all: "\f122"; - -$star-half-empty: "\f123"; - -$location-arrow: "\f124"; - -$crop: "\f125"; - -$code-fork: "\f126"; - -$unlink: "\f127"; - -$question: "\f128"; - -$info: "\f129"; - -$exclamation: "\f12a"; - -$superscript: "\f12b"; - -$subscript: "\f12c"; - -$eraser: "\f12d"; - -$puzzle-piece: "\f12e"; - -$microphone: "\f130"; - -$microphone-off: "\f131"; - -$shield: "\f132"; - -$calendar-empty: "\f133"; - -$fire-extinguisher: "\f134"; - -$rocket: "\f135"; - -$maxcdn: "\f136"; - -$chevron-sign-left: "\f137"; - -$chevron-sign-right: "\f138"; - -$chevron-sign-up: "\f139"; - -$chevron-sign-down: "\f13a"; - -$html5: "\f13b"; - -$css3: "\f13c"; - -$anchor: "\f13d"; - -$unlock-alt: "\f13e"; - -$bullseye: "\f140"; - -$ellipsis-horizontal: "\f141"; - -$ellipsis-vertical: "\f142"; - -$rss-sign: "\f143"; - -$play-sign: "\f144"; - -$ticket: "\f145"; - -$minus-sign-alt: "\f146"; - -$check-minus: "\f147"; - -$level-up: "\f148"; - -$level-down: "\f149"; - -$check-sign: "\f14a"; - -$edit-sign: "\f14b"; - -$external-link-sign: "\f14c"; - -$share-sign: "\f14d"; - -$compass: "\f14e"; - -$collapse: "\f150"; - -$collapse-top: "\f151"; - -$expand: "\f152"; - -$eur: "\f153"; - -$gbp: "\f154"; - -$usd: "\f155"; - -$inr: "\f156"; - -$jpy: "\f157"; - -$cny: "\f158"; - -$krw: "\f159"; - -$btc: "\f15a"; - -$file: "\f15b"; - -$file-text: "\f15c"; - -$sort-by-alphabet: "\f15d"; - -$sort-by-alphabet-alt: "\f15e"; - -$sort-by-attributes: "\f160"; - -$sort-by-attributes-alt: "\f161"; - -$sort-by-order: "\f162"; - -$sort-by-order-alt: "\f163"; - -$thumbs-up: "\f164"; - -$thumbs-down: "\f165"; - -$youtube-sign: "\f166"; - -$youtube: "\f167"; - -$xing: "\f168"; - -$xing-sign: "\f169"; - -$youtube-play: "\f16a"; - -$dropbox: "\f16b"; - -$stackexchange: "\f16c"; - -$instagram: "\f16d"; - -$flickr: "\f16e"; - -$adn: "\f170"; - -$bitbucket: "\f171"; - -$bitbucket-sign: "\f172"; - -$tumblr: "\f173"; - -$tumblr-sign: "\f174"; - -$long-arrow-down: "\f175"; - -$long-arrow-up: "\f176"; - -$long-arrow-left: "\f177"; - -$long-arrow-right: "\f178"; - -$apple: "\f179"; - -$windows: "\f17a"; - -$android: "\f17b"; - -$linux: "\f17c"; - -$dribbble: "\f17d"; - -$skype: "\f17e"; - -$foursquare: "\f180"; - -$trello: "\f181"; - -$female: "\f182"; - -$male: "\f183"; - -$gittip: "\f184"; - -$sun: "\f185"; - -$moon: "\f186"; - -$archive: "\f187"; - -$bug: "\f188"; - -$vk: "\f189"; - -$weibo: "\f18a"; - -$renren: "\f18b"; - diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome-ie7.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome-ie7.scss deleted file mode 100644 index 0e236f61..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome-ie7.scss +++ /dev/null @@ -1,1953 +0,0 @@ -/*! - * Font Awesome 3.2.1 - * the iconic font designed for Bootstrap - * ------------------------------------------------------------------------------ - * The full suite of pictographic icons, examples, and documentation can be - * found at http://fontawesome.io. Stay up to date on Twitter at - * http://twitter.com/fontawesome. - * - * License - * ------------------------------------------------------------------------------ - * - The Font Awesome font is licensed under SIL OFL 1.1 - - * http://scripts.sil.org/OFL - * - Font Awesome CSS, LESS, and SASS files are licensed under MIT License - - * http://opensource.org/licenses/mit-license.html - * - Font Awesome documentation licensed under CC BY 3.0 - - * http://creativecommons.org/licenses/by/3.0/ - * - Attribution is no longer required in Font Awesome 3.0, but much appreciated: - * "Font Awesome by Dave Gandy - http://fontawesome.io" - * - * Author - Dave Gandy - * ------------------------------------------------------------------------------ - * Email: dave@fontawesome.io - * Twitter: http://twitter.com/davegandy - * Work: Lead Product Designer @ Kyruus - http://kyruus.com - */ - -.icon-large { - font-size: (4em/3); - margin-top: -4px; - padding-top: 3px; - margin-bottom: -4px; - padding-bottom: 3px; - vertical-align: middle; -} - -.nav { - [class^="icon-"], - [class*=" icon-"] { - vertical-align: inherit; - margin-top: -4px; - padding-top: 3px; - margin-bottom: -4px; - padding-bottom: 3px; - &.icon-large { - vertical-align: -25%; - } - } -} - -.nav-pills, .nav-tabs { - [class^="icon-"], - [class*=" icon-"] { - &.icon-large { - line-height: .75em; - margin-top: -7px; - padding-top: 5px; - margin-bottom: -5px; - padding-bottom: 4px; - } - } -} - -.btn { - [class^="icon-"], - [class*=" icon-"] { - &.pull-left, &.pull-right { vertical-align: inherit; } - &.icon-large { - margin-top: -.5em; - } - } -} - -a [class^="icon-"], -a [class*=" icon-"] { - cursor: pointer; -} - -@mixin ie7icon($inner) { *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '#{$inner}'); } - - -.icon-glass { - @include ie7icon(''); -} - - -.icon-music { - @include ie7icon(''); -} - - -.icon-search { - @include ie7icon(''); -} - - -.icon-envelope-alt { - @include ie7icon(''); -} - - -.icon-heart { - @include ie7icon(''); -} - - -.icon-star { - @include ie7icon(''); -} - - -.icon-star-empty { - @include ie7icon(''); -} - - -.icon-user { - @include ie7icon(''); -} - - -.icon-film { - @include ie7icon(''); -} - - -.icon-th-large { - @include ie7icon(''); -} - - -.icon-th { - @include ie7icon(''); -} - - -.icon-th-list { - @include ie7icon(''); -} - - -.icon-ok { - @include ie7icon(''); -} - - -.icon-remove { - @include ie7icon(''); -} - - -.icon-zoom-in { - @include ie7icon(''); -} - - -.icon-zoom-out { - @include ie7icon(''); -} - - -.icon-off { - @include ie7icon(''); -} - -.icon-power-off { - @include ie7icon(''); -} - - -.icon-signal { - @include ie7icon(''); -} - - -.icon-cog { - @include ie7icon(''); -} - -.icon-gear { - @include ie7icon(''); -} - - -.icon-trash { - @include ie7icon(''); -} - - -.icon-home { - @include ie7icon(''); -} - - -.icon-file-alt { - @include ie7icon(''); -} - - -.icon-time { - @include ie7icon(''); -} - - -.icon-road { - @include ie7icon(''); -} - - -.icon-download-alt { - @include ie7icon(''); -} - - -.icon-download { - @include ie7icon(''); -} - - -.icon-upload { - @include ie7icon(''); -} - - -.icon-inbox { - @include ie7icon(''); -} - - -.icon-play-circle { - @include ie7icon(''); -} - - -.icon-repeat { - @include ie7icon(''); -} - -.icon-rotate-right { - @include ie7icon(''); -} - - -.icon-refresh { - @include ie7icon(''); -} - - -.icon-list-alt { - @include ie7icon(''); -} - - -.icon-lock { - @include ie7icon(''); -} - - -.icon-flag { - @include ie7icon(''); -} - - -.icon-headphones { - @include ie7icon(''); -} - - -.icon-volume-off { - @include ie7icon(''); -} - - -.icon-volume-down { - @include ie7icon(''); -} - - -.icon-volume-up { - @include ie7icon(''); -} - - -.icon-qrcode { - @include ie7icon(''); -} - - -.icon-barcode { - @include ie7icon(''); -} - - -.icon-tag { - @include ie7icon(''); -} - - -.icon-tags { - @include ie7icon(''); -} - - -.icon-book { - @include ie7icon(''); -} - - -.icon-bookmark { - @include ie7icon(''); -} - - -.icon-print { - @include ie7icon(''); -} - - -.icon-camera { - @include ie7icon(''); -} - - -.icon-font { - @include ie7icon(''); -} - - -.icon-bold { - @include ie7icon(''); -} - - -.icon-italic { - @include ie7icon(''); -} - - -.icon-text-height { - @include ie7icon(''); -} - - -.icon-text-width { - @include ie7icon(''); -} - - -.icon-align-left { - @include ie7icon(''); -} - - -.icon-align-center { - @include ie7icon(''); -} - - -.icon-align-right { - @include ie7icon(''); -} - - -.icon-align-justify { - @include ie7icon(''); -} - - -.icon-list { - @include ie7icon(''); -} - - -.icon-indent-left { - @include ie7icon(''); -} - - -.icon-indent-right { - @include ie7icon(''); -} - - -.icon-facetime-video { - @include ie7icon(''); -} - - -.icon-picture { - @include ie7icon(''); -} - - -.icon-pencil { - @include ie7icon(''); -} - - -.icon-map-marker { - @include ie7icon(''); -} - - -.icon-adjust { - @include ie7icon(''); -} - - -.icon-tint { - @include ie7icon(''); -} - - -.icon-edit { - @include ie7icon(''); -} - - -.icon-share { - @include ie7icon(''); -} - - -.icon-check { - @include ie7icon(''); -} - - -.icon-move { - @include ie7icon(''); -} - - -.icon-step-backward { - @include ie7icon(''); -} - - -.icon-fast-backward { - @include ie7icon(''); -} - - -.icon-backward { - @include ie7icon(''); -} - - -.icon-play { - @include ie7icon(''); -} - - -.icon-pause { - @include ie7icon(''); -} - - -.icon-stop { - @include ie7icon(''); -} - - -.icon-forward { - @include ie7icon(''); -} - - -.icon-fast-forward { - @include ie7icon(''); -} - - -.icon-step-forward { - @include ie7icon(''); -} - - -.icon-eject { - @include ie7icon(''); -} - - -.icon-chevron-left { - @include ie7icon(''); -} - - -.icon-chevron-right { - @include ie7icon(''); -} - - -.icon-plus-sign { - @include ie7icon(''); -} - - -.icon-minus-sign { - @include ie7icon(''); -} - - -.icon-remove-sign { - @include ie7icon(''); -} - - -.icon-ok-sign { - @include ie7icon(''); -} - - -.icon-question-sign { - @include ie7icon(''); -} - - -.icon-info-sign { - @include ie7icon(''); -} - - -.icon-screenshot { - @include ie7icon(''); -} - - -.icon-remove-circle { - @include ie7icon(''); -} - - -.icon-ok-circle { - @include ie7icon(''); -} - - -.icon-ban-circle { - @include ie7icon(''); -} - - -.icon-arrow-left { - @include ie7icon(''); -} - - -.icon-arrow-right { - @include ie7icon(''); -} - - -.icon-arrow-up { - @include ie7icon(''); -} - - -.icon-arrow-down { - @include ie7icon(''); -} - - -.icon-share-alt { - @include ie7icon(''); -} - -.icon-mail-forward { - @include ie7icon(''); -} - - -.icon-resize-full { - @include ie7icon(''); -} - - -.icon-resize-small { - @include ie7icon(''); -} - - -.icon-plus { - @include ie7icon(''); -} - - -.icon-minus { - @include ie7icon(''); -} - - -.icon-asterisk { - @include ie7icon(''); -} - - -.icon-exclamation-sign { - @include ie7icon(''); -} - - -.icon-gift { - @include ie7icon(''); -} - - -.icon-leaf { - @include ie7icon(''); -} - - -.icon-fire { - @include ie7icon(''); -} - - -.icon-eye-open { - @include ie7icon(''); -} - - -.icon-eye-close { - @include ie7icon(''); -} - - -.icon-warning-sign { - @include ie7icon(''); -} - - -.icon-plane { - @include ie7icon(''); -} - - -.icon-calendar { - @include ie7icon(''); -} - - -.icon-random { - @include ie7icon(''); -} - - -.icon-comment { - @include ie7icon(''); -} - - -.icon-magnet { - @include ie7icon(''); -} - - -.icon-chevron-up { - @include ie7icon(''); -} - - -.icon-chevron-down { - @include ie7icon(''); -} - - -.icon-retweet { - @include ie7icon(''); -} - - -.icon-shopping-cart { - @include ie7icon(''); -} - - -.icon-folder-close { - @include ie7icon(''); -} - - -.icon-folder-open { - @include ie7icon(''); -} - - -.icon-resize-vertical { - @include ie7icon(''); -} - - -.icon-resize-horizontal { - @include ie7icon(''); -} - - -.icon-bar-chart { - @include ie7icon(''); -} - - -.icon-twitter-sign { - @include ie7icon(''); -} - - -.icon-facebook-sign { - @include ie7icon(''); -} - - -.icon-camera-retro { - @include ie7icon(''); -} - - -.icon-key { - @include ie7icon(''); -} - - -.icon-cogs { - @include ie7icon(''); -} - -.icon-gears { - @include ie7icon(''); -} - - -.icon-comments { - @include ie7icon(''); -} - - -.icon-thumbs-up-alt { - @include ie7icon(''); -} - - -.icon-thumbs-down-alt { - @include ie7icon(''); -} - - -.icon-star-half { - @include ie7icon(''); -} - - -.icon-heart-empty { - @include ie7icon(''); -} - - -.icon-signout { - @include ie7icon(''); -} - - -.icon-linkedin-sign { - @include ie7icon(''); -} - - -.icon-pushpin { - @include ie7icon(''); -} - - -.icon-external-link { - @include ie7icon(''); -} - - -.icon-signin { - @include ie7icon(''); -} - - -.icon-trophy { - @include ie7icon(''); -} - - -.icon-github-sign { - @include ie7icon(''); -} - - -.icon-upload-alt { - @include ie7icon(''); -} - - -.icon-lemon { - @include ie7icon(''); -} - - -.icon-phone { - @include ie7icon(''); -} - - -.icon-check-empty { - @include ie7icon(''); -} - -.icon-unchecked { - @include ie7icon(''); -} - - -.icon-bookmark-empty { - @include ie7icon(''); -} - - -.icon-phone-sign { - @include ie7icon(''); -} - - -.icon-twitter { - @include ie7icon(''); -} - - -.icon-facebook { - @include ie7icon(''); -} - - -.icon-github { - @include ie7icon(''); -} - - -.icon-unlock { - @include ie7icon(''); -} - - -.icon-credit-card { - @include ie7icon(''); -} - - -.icon-rss { - @include ie7icon(''); -} - - -.icon-hdd { - @include ie7icon(''); -} - - -.icon-bullhorn { - @include ie7icon(''); -} - - -.icon-bell { - @include ie7icon(''); -} - - -.icon-certificate { - @include ie7icon(''); -} - - -.icon-hand-right { - @include ie7icon(''); -} - - -.icon-hand-left { - @include ie7icon(''); -} - - -.icon-hand-up { - @include ie7icon(''); -} - - -.icon-hand-down { - @include ie7icon(''); -} - - -.icon-circle-arrow-left { - @include ie7icon(''); -} - - -.icon-circle-arrow-right { - @include ie7icon(''); -} - - -.icon-circle-arrow-up { - @include ie7icon(''); -} - - -.icon-circle-arrow-down { - @include ie7icon(''); -} - - -.icon-globe { - @include ie7icon(''); -} - - -.icon-wrench { - @include ie7icon(''); -} - - -.icon-tasks { - @include ie7icon(''); -} - - -.icon-filter { - @include ie7icon(''); -} - - -.icon-briefcase { - @include ie7icon(''); -} - - -.icon-fullscreen { - @include ie7icon(''); -} - - -.icon-group { - @include ie7icon(''); -} - - -.icon-link { - @include ie7icon(''); -} - - -.icon-cloud { - @include ie7icon(''); -} - - -.icon-beaker { - @include ie7icon(''); -} - - -.icon-cut { - @include ie7icon(''); -} - - -.icon-copy { - @include ie7icon(''); -} - - -.icon-paper-clip { - @include ie7icon(''); -} - -.icon-paperclip { - @include ie7icon(''); -} - - -.icon-save { - @include ie7icon(''); -} - - -.icon-sign-blank { - @include ie7icon(''); -} - - -.icon-reorder { - @include ie7icon(''); -} - - -.icon-list-ul { - @include ie7icon(''); -} - - -.icon-list-ol { - @include ie7icon(''); -} - - -.icon-strikethrough { - @include ie7icon(''); -} - - -.icon-underline { - @include ie7icon(''); -} - - -.icon-table { - @include ie7icon(''); -} - - -.icon-magic { - @include ie7icon(''); -} - - -.icon-truck { - @include ie7icon(''); -} - - -.icon-pinterest { - @include ie7icon(''); -} - - -.icon-pinterest-sign { - @include ie7icon(''); -} - - -.icon-google-plus-sign { - @include ie7icon(''); -} - - -.icon-google-plus { - @include ie7icon(''); -} - - -.icon-money { - @include ie7icon(''); -} - - -.icon-caret-down { - @include ie7icon(''); -} - - -.icon-caret-up { - @include ie7icon(''); -} - - -.icon-caret-left { - @include ie7icon(''); -} - - -.icon-caret-right { - @include ie7icon(''); -} - - -.icon-columns { - @include ie7icon(''); -} - - -.icon-sort { - @include ie7icon(''); -} - - -.icon-sort-down { - @include ie7icon(''); -} - - -.icon-sort-up { - @include ie7icon(''); -} - - -.icon-envelope { - @include ie7icon(''); -} - - -.icon-linkedin { - @include ie7icon(''); -} - - -.icon-undo { - @include ie7icon(''); -} - -.icon-rotate-left { - @include ie7icon(''); -} - - -.icon-legal { - @include ie7icon(''); -} - - -.icon-dashboard { - @include ie7icon(''); -} - - -.icon-comment-alt { - @include ie7icon(''); -} - - -.icon-comments-alt { - @include ie7icon(''); -} - - -.icon-bolt { - @include ie7icon(''); -} - - -.icon-sitemap { - @include ie7icon(''); -} - - -.icon-umbrella { - @include ie7icon(''); -} - - -.icon-paste { - @include ie7icon(''); -} - - -.icon-lightbulb { - @include ie7icon(''); -} - - -.icon-exchange { - @include ie7icon(''); -} - - -.icon-cloud-download { - @include ie7icon(''); -} - - -.icon-cloud-upload { - @include ie7icon(''); -} - - -.icon-user-md { - @include ie7icon(''); -} - - -.icon-stethoscope { - @include ie7icon(''); -} - - -.icon-suitcase { - @include ie7icon(''); -} - - -.icon-bell-alt { - @include ie7icon(''); -} - - -.icon-coffee { - @include ie7icon(''); -} - - -.icon-food { - @include ie7icon(''); -} - - -.icon-file-text-alt { - @include ie7icon(''); -} - - -.icon-building { - @include ie7icon(''); -} - - -.icon-hospital { - @include ie7icon(''); -} - - -.icon-ambulance { - @include ie7icon(''); -} - - -.icon-medkit { - @include ie7icon(''); -} - - -.icon-fighter-jet { - @include ie7icon(''); -} - - -.icon-beer { - @include ie7icon(''); -} - - -.icon-h-sign { - @include ie7icon(''); -} - - -.icon-plus-sign-alt { - @include ie7icon(''); -} - - -.icon-double-angle-left { - @include ie7icon(''); -} - - -.icon-double-angle-right { - @include ie7icon(''); -} - - -.icon-double-angle-up { - @include ie7icon(''); -} - - -.icon-double-angle-down { - @include ie7icon(''); -} - - -.icon-angle-left { - @include ie7icon(''); -} - - -.icon-angle-right { - @include ie7icon(''); -} - - -.icon-angle-up { - @include ie7icon(''); -} - - -.icon-angle-down { - @include ie7icon(''); -} - - -.icon-desktop { - @include ie7icon(''); -} - - -.icon-laptop { - @include ie7icon(''); -} - - -.icon-tablet { - @include ie7icon(''); -} - - -.icon-mobile-phone { - @include ie7icon(''); -} - - -.icon-circle-blank { - @include ie7icon(''); -} - - -.icon-quote-left { - @include ie7icon(''); -} - - -.icon-quote-right { - @include ie7icon(''); -} - - -.icon-spinner { - @include ie7icon(''); -} - - -.icon-circle { - @include ie7icon(''); -} - - -.icon-reply { - @include ie7icon(''); -} - -.icon-mail-reply { - @include ie7icon(''); -} - - -.icon-github-alt { - @include ie7icon(''); -} - - -.icon-folder-close-alt { - @include ie7icon(''); -} - - -.icon-folder-open-alt { - @include ie7icon(''); -} - - -.icon-expand-alt { - @include ie7icon(''); -} - - -.icon-collapse-alt { - @include ie7icon(''); -} - - -.icon-smile { - @include ie7icon(''); -} - - -.icon-frown { - @include ie7icon(''); -} - - -.icon-meh { - @include ie7icon(''); -} - - -.icon-gamepad { - @include ie7icon(''); -} - - -.icon-keyboard { - @include ie7icon(''); -} - - -.icon-flag-alt { - @include ie7icon(''); -} - - -.icon-flag-checkered { - @include ie7icon(''); -} - - -.icon-terminal { - @include ie7icon(''); -} - - -.icon-code { - @include ie7icon(''); -} - - -.icon-reply-all { - @include ie7icon(''); -} - - -.icon-mail-reply-all { - @include ie7icon(''); -} - - -.icon-star-half-empty { - @include ie7icon(''); -} - -.icon-star-half-full { - @include ie7icon(''); -} - - -.icon-location-arrow { - @include ie7icon(''); -} - - -.icon-crop { - @include ie7icon(''); -} - - -.icon-code-fork { - @include ie7icon(''); -} - - -.icon-unlink { - @include ie7icon(''); -} - - -.icon-question { - @include ie7icon(''); -} - - -.icon-info { - @include ie7icon(''); -} - - -.icon-exclamation { - @include ie7icon(''); -} - - -.icon-superscript { - @include ie7icon(''); -} - - -.icon-subscript { - @include ie7icon(''); -} - - -.icon-eraser { - @include ie7icon(''); -} - - -.icon-puzzle-piece { - @include ie7icon(''); -} - - -.icon-microphone { - @include ie7icon(''); -} - - -.icon-microphone-off { - @include ie7icon(''); -} - - -.icon-shield { - @include ie7icon(''); -} - - -.icon-calendar-empty { - @include ie7icon(''); -} - - -.icon-fire-extinguisher { - @include ie7icon(''); -} - - -.icon-rocket { - @include ie7icon(''); -} - - -.icon-maxcdn { - @include ie7icon(''); -} - - -.icon-chevron-sign-left { - @include ie7icon(''); -} - - -.icon-chevron-sign-right { - @include ie7icon(''); -} - - -.icon-chevron-sign-up { - @include ie7icon(''); -} - - -.icon-chevron-sign-down { - @include ie7icon(''); -} - - -.icon-html5 { - @include ie7icon(''); -} - - -.icon-css3 { - @include ie7icon(''); -} - - -.icon-anchor { - @include ie7icon(''); -} - - -.icon-unlock-alt { - @include ie7icon(''); -} - - -.icon-bullseye { - @include ie7icon(''); -} - - -.icon-ellipsis-horizontal { - @include ie7icon(''); -} - - -.icon-ellipsis-vertical { - @include ie7icon(''); -} - - -.icon-rss-sign { - @include ie7icon(''); -} - - -.icon-play-sign { - @include ie7icon(''); -} - - -.icon-ticket { - @include ie7icon(''); -} - - -.icon-minus-sign-alt { - @include ie7icon(''); -} - - -.icon-check-minus { - @include ie7icon(''); -} - - -.icon-level-up { - @include ie7icon(''); -} - - -.icon-level-down { - @include ie7icon(''); -} - - -.icon-check-sign { - @include ie7icon(''); -} - - -.icon-edit-sign { - @include ie7icon(''); -} - - -.icon-external-link-sign { - @include ie7icon(''); -} - - -.icon-share-sign { - @include ie7icon(''); -} - - -.icon-compass { - @include ie7icon(''); -} - - -.icon-collapse { - @include ie7icon(''); -} - - -.icon-collapse-top { - @include ie7icon(''); -} - - -.icon-expand { - @include ie7icon(''); -} - - -.icon-eur { - @include ie7icon(''); -} - -.icon-euro { - @include ie7icon(''); -} - - -.icon-gbp { - @include ie7icon(''); -} - - -.icon-usd { - @include ie7icon(''); -} - -.icon-dollar { - @include ie7icon(''); -} - - -.icon-inr { - @include ie7icon(''); -} - -.icon-rupee { - @include ie7icon(''); -} - - -.icon-jpy { - @include ie7icon(''); -} - -.icon-yen { - @include ie7icon(''); -} - - -.icon-cny { - @include ie7icon(''); -} - -.icon-renminbi { - @include ie7icon(''); -} - - -.icon-krw { - @include ie7icon(''); -} - -.icon-won { - @include ie7icon(''); -} - - -.icon-btc { - @include ie7icon(''); -} - -.icon-bitcoin { - @include ie7icon(''); -} - - -.icon-file { - @include ie7icon(''); -} - - -.icon-file-text { - @include ie7icon(''); -} - - -.icon-sort-by-alphabet { - @include ie7icon(''); -} - - -.icon-sort-by-alphabet-alt { - @include ie7icon(''); -} - - -.icon-sort-by-attributes { - @include ie7icon(''); -} - - -.icon-sort-by-attributes-alt { - @include ie7icon(''); -} - - -.icon-sort-by-order { - @include ie7icon(''); -} - - -.icon-sort-by-order-alt { - @include ie7icon(''); -} - - -.icon-thumbs-up { - @include ie7icon(''); -} - - -.icon-thumbs-down { - @include ie7icon(''); -} - - -.icon-youtube-sign { - @include ie7icon(''); -} - - -.icon-youtube { - @include ie7icon(''); -} - - -.icon-xing { - @include ie7icon(''); -} - - -.icon-xing-sign { - @include ie7icon(''); -} - - -.icon-youtube-play { - @include ie7icon(''); -} - - -.icon-dropbox { - @include ie7icon(''); -} - - -.icon-stackexchange { - @include ie7icon(''); -} - - -.icon-instagram { - @include ie7icon(''); -} - - -.icon-flickr { - @include ie7icon(''); -} - - -.icon-adn { - @include ie7icon(''); -} - - -.icon-bitbucket { - @include ie7icon(''); -} - - -.icon-bitbucket-sign { - @include ie7icon(''); -} - - -.icon-tumblr { - @include ie7icon(''); -} - - -.icon-tumblr-sign { - @include ie7icon(''); -} - - -.icon-long-arrow-down { - @include ie7icon(''); -} - - -.icon-long-arrow-up { - @include ie7icon(''); -} - - -.icon-long-arrow-left { - @include ie7icon(''); -} - - -.icon-long-arrow-right { - @include ie7icon(''); -} - - -.icon-apple { - @include ie7icon(''); -} - - -.icon-windows { - @include ie7icon(''); -} - - -.icon-android { - @include ie7icon(''); -} - - -.icon-linux { - @include ie7icon(''); -} - - -.icon-dribbble { - @include ie7icon(''); -} - - -.icon-skype { - @include ie7icon(''); -} - - -.icon-foursquare { - @include ie7icon(''); -} - - -.icon-trello { - @include ie7icon(''); -} - - -.icon-female { - @include ie7icon(''); -} - - -.icon-male { - @include ie7icon(''); -} - - -.icon-gittip { - @include ie7icon(''); -} - - -.icon-sun { - @include ie7icon(''); -} - - -.icon-moon { - @include ie7icon(''); -} - - -.icon-archive { - @include ie7icon(''); -} - - -.icon-bug { - @include ie7icon(''); -} - - -.icon-vk { - @include ie7icon(''); -} - - -.icon-weibo { - @include ie7icon(''); -} - - -.icon-renren { - @include ie7icon(''); -} - - diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome.scss deleted file mode 100644 index 7a47cbff..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/alloy-font-awesome/scss/font-awesome.scss +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Font Awesome 3.2.1 - * the iconic font designed for Bootstrap - * ------------------------------------------------------------------------------ - * The full suite of pictographic icons, examples, and documentation can be - * found at http://fontawesome.io. Stay up to date on Twitter at - * http://twitter.com/fontawesome. - * - * License - * ------------------------------------------------------------------------------ - * - The Font Awesome font is licensed under SIL OFL 1.1 - - * http://scripts.sil.org/OFL - * - Font Awesome CSS, LESS, and SASS files are licensed under MIT License - - * http://opensource.org/licenses/mit-license.html - * - Font Awesome documentation licensed under CC BY 3.0 - - * http://creativecommons.org/licenses/by/3.0/ - * - Attribution is no longer required in Font Awesome 3.0, but much appreciated: - * "Font Awesome by Dave Gandy - http://fontawesome.io" - * - * Author - Dave Gandy - * ------------------------------------------------------------------------------ - * Email: dave@fontawesome.io - * Twitter: http://twitter.com/davegandy - * Work: Lead Product Designer @ Kyruus - http://kyruus.com - */ - -@import "variables"; -@import "mixins-alloy"; -@import "path-alloy"; -@import "core"; -@import "bootstrap"; -@import "extras"; -@import "icons-alloy"; -@import "icons-alloy-extra"; diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/bootstrap.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/bootstrap.scss deleted file mode 100644 index f1406a4a..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/bootstrap.scss +++ /dev/null @@ -1,74 +0,0 @@ -/*! - * Bootstrap v2.3.2 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */ - -// Core variables and mixins -@import "variables-alloy"; // This override needs to load it's variables before bootstrap's -@import "variables"; // Modify this for custom colors, font-sizes, etc -@import "mixins"; - -// CSS Reset -@import "reset"; - -// Grid system and page structure -@import "scaffolding"; -@import "grid"; -@import "layouts"; - -// Base CSS -@import "type"; -@import "code"; -@import "forms"; -@import "tables"; - -// Components: common -@import "sprites"; -@import "dropdowns"; -@import "wells"; -@import "component-animations"; -@import "close"; - -// Components: Buttons & Alerts -@import "buttons"; -@import "buttons-alloy"; -@import "button-groups"; -@import "button-groups-alloy"; -@import "alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons - -// Components: Nav -@import "navs"; -@import "navs-alloy"; -@import "navbar"; -@import "breadcrumbs"; -@import "pagination"; -@import "pagination-alloy"; -@import "pager"; - -// Components: Popovers -@import "modals"; -@import "modals-alloy"; -@import "tooltip"; -@import "tooltip-alloy"; -@import "popovers"; -@import "popovers-alloy"; - -// Components: Misc -@import "thumbnails"; -@import "media"; -@import "labels-badges"; -@import "progress-bars"; -@import "progress-bars-alloy"; -@import "accordion"; -@import "carousel"; -@import "carousel-alloy"; -@import "hero-unit"; - -// Utility classes -@import "utilities"; // Has to be last to override when necessary -@import "utilities-alloy"; // Has to be last to override when necessary diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/responsive.scss b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/responsive.scss deleted file mode 100644 index 0fec960b..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/aui/responsive.scss +++ /dev/null @@ -1,49 +0,0 @@ -/*! - * Bootstrap Responsive v2.3.2 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */ - - -// Responsive -// For phone and tablet devices -// ------------------------------------------------------------- - - -// REPEAT VARIABLES & MIXINS -// ------------------------- -// Required since we compile the responsive stuff separately - -@import "variables"; // Modify this for custom colors, font-sizes, etc -@import "variables-alloy"; // Modify this for custom colors, font-sizes, etc -@import "mixins"; - - -// RESPONSIVE CLASSES -// ------------------ - -@import "responsive-utilities"; - - -// MEDIA QUERIES -// ------------------ - -// Large desktops -@import "responsive-1200px-min"; - -// Tablets to regular desktops -@import "responsive-768px-979px"; - -// Phones to portrait tablets and narrow desktops -@import "responsive-767px-max"; - - -// RESPONSIVE NAVBAR -// ------------------ - -// From 979px and below, show a button to toggle navbar contents -@import "responsive-navbar"; diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/base.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/base.css deleted file mode 100644 index bec4fd59..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/base.css +++ /dev/null @@ -1,136 +0,0 @@ -@import "compass"; -@import "mixins"; - -/* ---------- Logo ---------- */ - -.logo { - display: inline-block; - line-height: 1; - vertical-align: middle; -} - -/* ---------- Table styles ---------- */ - -@include respond-to(phone, tablet) { - .responsive-table-horizontal { - display: block; - position: relative; - width: 100%; - - &:after { - clear: both; - content: ''; - display: block; - font-size: 0; - height: 0; - visibility: hidden; - } - - tbody { - display: block; - overflow-x: auto; - position: relative; - white-space: nowrap; - width: auto; - - tr { - display: inline-block; - vertical-align: top; - - td { - display: block; - margin-bottom: 20px; - - &:first-child { - text-align: left; - } - } - } - } - - thead { - display: block; - float: left; - margin-right: 10px; - - &:after { - clear: both; - content: ""; - display: block; - font-size: 0; - height: 0; - visibility: hidden; - } - - th { - display: block; - margin-bottom: 20px; - text-align: right; - - &:first-child { - text-align: right; - } - } - } - } - - .ie9 { - .responsive-table-horizontal thead { - float: none; - } - } -} - -/* ---------- Text formatting ---------- */ - -.important { - font-weight: bold; -} - -/* ---------- Main content body ---------- */ - -.portal-iframe #main-content { - width: 100%; -} - -/* ---------- Loading animation ---------- */ - -.loading-animation { - background: url(../images/progress_bar/loading_animation.gif) no-repeat top center; - margin-top: 10px; - padding-top: 40px; - text-align: left; -} - -/* ---------- Separator ---------- */ - -.separator { - border-top: 1px dotted #BFBFBF; -} - -/* ---------- Update manager ---------- */ - -.update-available { - margin-top: 10px; - padding: 2px; - text-align: left; -} - -/* ---------- Text highlighting ---------- */ - -.highlight { - background: #FFC; - font-weight: bold; - margin: 0 1px; -} - -/* ---------- Miscellaneous ---------- */ - -span.alert { - display: inline-block; -} - -#skip-to-content { - clip: rect(0 0 0 0); - position: absolute; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/custom.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/custom.css deleted file mode 100644 index 42f63374..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/custom.css +++ /dev/null @@ -1 +0,0 @@ -/* This file allows you to override default styles in one central location for easier upgrade and maintenance. */ \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/dockbar.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/dockbar.css deleted file mode 100644 index b356315d..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/dockbar.css +++ /dev/null @@ -1,777 +0,0 @@ -@import "compass"; -@import "mixins"; - -$addContentPanelWidth: 350px; -$devicePreviewPanelWidth: 220px; -$diamondSize: 12px; -$editLayoutPanelWidth: 460px; - -.aui { - .dockbar { - left: 0; - right: 0; - top: 0; - - .staging-controls { - .staging-bar { - li.dropdown .dropdown-menu { - left: auto; - margin-left: 10px; - width: auto; - } - } - } - - &.navbar-static-top { - position: relative; - - .collapse { - position: static; - - .nav-account-controls { - position: static; - } - } - } - - .btn-link { - color: #FFF; - } - - .diamond { - border: $diamondSize solid transparent; - border-bottom-color: #1485EB; - height: 0; - position: relative; - top: -$diamondSize; - width: 0; - - &:after { - border: $diamondSize solid transparent; - border-top-color: #1485EB; - content: ''; - height: 0; - left: -$diamondSize; - position: absolute; - top: $diamondSize; - width: 0; - } - } - - .impersonating-user { - .alert-icon{ - margin-right: 9px; - } - - .alert-info { - border-width: 0; - margin-bottom: 6px; - } - } - - .info-button { - top: 9px; - } - - .info-items { - left: 0; - position: absolute; - top: 100%; - width: 100%; - z-index: 1; - } - - .navbar-inner { - padding-left: 20px; - padding-right: 20px; - - .brand { - h1 { - display: inline-block; - font-size: inherit; - line-height: 1; - margin-bottom: 0; - margin-top: 0; - } - } - - .container { - margin-left: 0; - margin-right: 0; - width: 100%; - - .nav-account-controls { - float: right; - } - } - - .site-administration-menu li { - list-style: none; - - a { - color: #000; - display: block; - padding: 3px 5px 3px 40px; - - &:focus, &:hover { - background: #0DB5E7; - color: #FFF; - text-decoration: none; - } - - i { - font-size: 0.8em; - } - } - } - } - - .nav.staging-nav-items { - margin: 0; - position: static; - - li.dropdown.active > .dropdown-toggle { - background-color: transparent; - display: block; - - &:hover { - color: #0077B3; - } - } - - .staging-link { - position: static; - } - } - - .user-avatar img { - margin-top: -2px; - text-decoration: none; - vertical-align: middle; - width: 20px; - } - } - - .dockbar-split { - .dockbar { - height: 0; - position: absolute; - - .staging-controls { - .staging-bar { - li.dropdown .dropdown-menu { - left: 0; - margin-left: 0; - width: 100%; - } - } - } - - &.navbar-static-top { - .collapse { - position: relative; - - .nav-account-controls { - position: fixed; - } - } - } - - .divider-vertical { - display: none; - } - - .info-button { - top: $diamondSize; - } - - .info-items { - left: auto; - position: static; - } - - .navbar-inner { - background-color: transparent; - border-width: 0; - padding: 0; - width: 0; - - .nav { - border-bottom-width: 0; - - > li { - background-color: #333; - - > a { - color: #FFF; - line-height: 31px; - - &:focus, &:hover { - color: #FFF; - } - - [class^="icon-"], [class*=" icon-"] { - margin-top: 3px; - } - } - - &.active > a { - color: #FFF; - } - } - - li { - &.dropdown { - &.active > .dropdown-toggle { - color: #FFF; - } - - &.open > .dropdown-toggle { - background-color: #555; - color: #FFF; - } - } - - &.info-items { - background-color: transparent; - } - - &.staging-toggle { - > a { - background-color: #2496E5; - padding-bottom: 0; - padding-top: 0; - - &:hover { - background-color: #2FA4F5; - } - } - - span.nav-item-label { - padding: 5px 10px; - } - } - } - } - - .nav-account-controls { - left: auto; - margin-right: 0; - padding: 0; - position: fixed; - right: 5em; - z-index: 325; - } - - .nav-add-controls { - background: transparent; - position: fixed; - top: 10%; - z-index: 350; - - > li { - float: none; - margin: 10px; - position: relative; - - &.toggle-controls a { - clip: rect(0 0 0 0); - position: absolute; - - &:focus { - clip: rect(auto auto auto auto); - position: static; - } - } - - &.page-preview-controls { - @include respond-to(phone, tablet) { - display: none; - } - } - - > a { - background: #333; - color: #FFF; - padding: 6px 8px; - text-align: center; - - &:hover { - background: #555; - } - - [class^="icon-"], [class^="icon-"], [class*=" icon-"] { - font-size: 25px; - position: relative; - vertical-align: middle; - } - - &.toggle-controls-link { - background: #92F545; - - [class^="icon-"], [class^="icon-"], [class*=" icon-"] { - color: #000; - } - } - - .nav-item-label { - background: #333; - display: none; - left: 100%; - margin-left: 0.5em; - margin-top: -1em; - padding: 0 20px; - position: absolute; - top: 50%; - white-space: nowrap; - } - - &:hover .nav-item-label { - display: block; - } - - .icon-caret-down { - display: none; - } - } - } - - &:hover > li.toggle-controls a { - clip: rect(auto auto auto auto); - position: static; - } - } - } - - .staging-nav-items { - li > span { - color: #FFF; - display: block; - padding: 10px 15px; - line-height: 31px; - } - } - } - - .info-link-container { - width: 0; - } - - .info-items { - height: 1px; - width: 715px; - - a, .btn-link { - color: #FFF; - text-decoration: underline; - - &:hover { - text-decoration: none; - - .taglib-text { - text-decoration: none; - } - } - } - - .btn-link { - border-width: 0; - font-size: 14px; - font-weight: 300; - margin: 0 0 0 6px; - padding: 0; - - @include text-shadow(none); - } - } - - .staging-bar { - margin: 10px 0; - } - - &.controls-hidden .dockbar .navbar-inner .nav-add-controls > li.toggle-controls > .toggle-controls-link { - background: #F5AF45; - } - - &.lfr-has-add-content .nav-add-controls { - left: $addContentPanelWidth; - } - - &.lfr-has-device-preview .nav-add-controls { - left: $devicePreviewPanelWidth; - } - - &.lfr-has-edit-layout .nav-add-controls { - left: $editLayoutPanelWidth; - } - } - - &.dialog-iframe-root-node .dockbar .nav-add-controls .page-preview-controls { - display: none; - } - - .touch .dockbar-split, .controls-hidden.dockbar-split { - .dockbar .navbar-inner .nav-add-controls > li.toggle-controls > .toggle-controls-link { - clip: rect(auto auto auto auto); - position: static; - } - } - - /* ---------- Staging dockbar ---------- */ - - .variation-selector { - display: block; - font-size: 1.2em; - font-weight: bold; - margin: 1em; - } - - .layout-revision-container { - margin: 1em 0 0 1em; - padding: 0; - - .approximate-date { - color: #999; - font-weight: bold; - } - - .current-version { - color: #41801d; - display: block; - } - - .current-version-pointer { - display: inline-block; - width: 0; - - img { - left: -25px; - position: relative; - } - } - - .layout-variation-name { - color: #666; - font-size: 1.15em; - margin-bottom: 0.1em; - text-transform: uppercase; - } - - .layout-revision-current { - color: #666; - } - - .real-date { - color: #999; - display: block; - text-align: right; - } - - .taglib-workflow-status .workflow-status { - background: none; - padding-left: 0; - - .workflow-status-ready-for-publication { - color: #41801d; - font-weight: bold; - } - } - } - - .layout-revision-container-root { - margin: 0; - } - - .staging-controls { - padding-left: 5px; - padding-right: 50px; - - select { - width: 100%; - } - - .staging-bar { - .dropdown-menu { - font-size: 13px; - min-width: 520px; - width: 100%; - - .btn-link { - float: left; - font-size: 11px; - margin: 0 5px 0 0; - padding: 0; - text-decoration: underline; - - @include text-shadow(none); - - &:hover { - text-decoration: none; - } - - &.history { - float: right; - } - } - } - } - } - - /* ---------- Add content ---------- */ - - .lfr-admin-panel { - background-color: #FFF; - bottom: 0; - left: 0; - overflow: auto; - padding: 10px; - position: fixed; - top: 0; - z-index: 1100; - - @include respond-to(phone) { - margin: 0 -20px; - position: static; - width: auto; - - &.lfr-add-panel .add-content-menu .lfr-add-page-toolbar, &.lfr-edit-layout-panel .taglib-form-navigator .button-holder { - margin-top: 0; - position: static; - width: auto; - } - - &.lfr-edit-layout-panel { - .taglib-form-navigator .accordion { - margin-bottom: 20px; - } - - .site-admin-link { - padding: 0; - position: static; - } - } - } - } - - .lfr-has-add-content { - padding-left: $addContentPanelWidth; - } - - .lfr-has-device-preview { - padding-left: $devicePreviewPanelWidth; - } - - .lfr-has-edit-layout { - padding-left: $editLayoutPanelWidth; - } - - @include respond-to(phone) { - .lfr-has-add-content, .lfr-has-device-preview, .lfr-has-edit-layout { - padding-left: 20px; - } - } - - /* ---------- Menus ---------- */ - - .dropdown-menu > li > a:focus > [class^="icon-"] { - background-image: none; - } - - .my-sites-menu { - .site-type { - color: #FFF; - display: none; - float: right; - font-size: 0.8em; - font-weight: normal; - margin-right: 10px; - position: absolute; - right: 100%; - } - - a:hover .site-type { - color: #FFFFFF; - display: inline-block; - } - } - - .ie.rtl .dockbar .menu-button span { - background-position-x: -25px; - } - - &.ie6, &.ie7, &.ie8 { - .dockbar-split .dockbar .navbar-inner .nav-add-controls li.page-preview-controls { - display: none; - } - } - - .ie7 { - .dockbar { - zoom: 1; - } - - .my-sites-menu { - a { - overflow: visible; - text-align: left; - } - - .site-name { - float: none; - } - - .site-type { - float: none; - } - } - } - - .ie6 { - .dockbar, .lfr-dockbar-pinned .dockbar { - height: 10px; - left: 0; - position: relative; - top: 0; - } - - .dockbar .pin-dockbar { - display: none; - } - - .my-sites-menu { - width: 200px; - - a { - zoom: 1; - } - } - - .menu-scroll { - height: 300px; - overflow-y: auto; - } - } - - /* ---------- Customization bar ---------- */ - - .controls-hidden { - .info-button, .page-customization-bar { - display: none; - } - } - - .info-button { - cursor: pointer; - display: inline-block; - position: relative; - right: $diamondSize; - z-index: 1; - - a { - color: #FFF; - padding: 2px 10px; - position: absolute; - text-decoration: none; - z-index: 1; - } - - .icon-stop { - color: #1485EB; - font-size: 20px; - } - } - - .page-customization-bar { - background-color: #555; - background-color: rgba(0, 0, 0, 0.5); - - @include box-sizing(border-box); - - color: #FFF; - display: table; - font-size: 14px; - font-weight: 300; - padding: 0 15px; - width: 100%; - - .customized-icon { - margin: 5px; - vertical-align: middle; - } - - .page-customization-actions { - padding-left: 5em; - } - - .page-customization-actions a { - color: #EEE; - font-size: 0.8em; - padding: 0 1em; - } - - .page-customization-bar-form { - display: table-cell; - text-align: center; - vertical-align: middle; - width: 25%; - - a { - color: #FFF; - - &:focus, &:hover { - color: #FFF; - text-decoration: none; - } - } - - span { - display: block; - line-height: 20px; - } - } - - .page-customization-bar-text { - display: table-cell; - height: 51px; - vertical-align: middle; - width: 75%; - } - - .page-customization-bar-container { - position: absolute; - } - - .reset-prototype { - display: inline; - } - } - - @media (max-width: 1140px) { - .dockbar-split .dockbar .info-items { - width: 515px; - } - } - - @include respond-to(phone, tablet) { - #navigation { - display: none; - - &.open { - display: block; - } - } - - .dockbar-split .dockbar { - height: auto; - position: relative; - - .navbar-inner { - width: auto; - } - } - - .user-avatar-image { - width: 18px; - } - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/extras.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/extras.css deleted file mode 100644 index bb26638f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/extras.css +++ /dev/null @@ -1,494 +0,0 @@ -@import "compass"; -@import "mixins"; - -@mixin keyframes($name) { - @-webkit-keyframes #{$name} { - @content; - } - - @-moz-keyframes #{$name} { - @content; - } - - @-o-keyframes #{$name} { - @content; - } - - @keyframes #{$name} { - @content; - } -} - -.menu-content, .underlay-content { - @include box-shadow(2px 4px 7px rgba(0, 0, 0, 0.5)); -} - -.lfr-add-panel, .lfr-device-preview-panel, .lfr-edit-layout-panel { - @include box-shadow(0 0 5px rgba(0, 0, 0, 0.5)); -} - -.lfr-preview-file-image img, .lfr-translation-manager { - @include box-shadow(0 3px 5px -3px rgba(0, 0, 0, 0.8)); -} - -.lfr-preview-file-image-current-column { - @include box-shadow(inset 0 0 3px rgba(0, 0, 0, 0.8)); -} - -.lfr-preview-file-image-current-column { - @include box-shadow(inset 0 0 5px rgba(0, 0, 0, 0.8)); -} - -.lfr-device-preview { - .lfr-device-size-status-content { - @include border-radius(3px); - @include box-shadow(0 0 1px #FFF); - @include opacity(0.9); - } - - .lfr-device { - &:after, &:before { - @include box-shadow(#111 0 1px 0); - } - - &:after { - @include border-radius(15px); - } - - &.rotated { - &:after, &:before { - @include box-shadow(#111 -1px 1px 0); - } - } - - &.smartphone, &.tablet { - @include border-radius(25px); - } - - &.tablet { - &:before { - @include border-radius(5px); - } - } - } -} - -.dockbar { - @include respond-to(phone, tablet) { - .navbar-inner .btn-navbar { - @include box-shadow(none); - @include text-shadow(none); - } - } - - .navbar-inner .nav li.staging-toggle { - &.active > a { - @include box-shadow(none); - } - - span { - @include border-radius(4px); - } - } - - .menu-button-active .menu-button { - @include box-shadow(inset 0 1px 5px rgba(0, 0, 0, 0.7)); - } - - .impersonating-user .alert-info { - @include border-radius(0); - } -} - -.dockbar-split .dockbar { - .navbar-inner { - .nav > li > a { - @include text-shadow(none); - } - - .nav-add-controls { - > li { - a { - @include border-radius(4px); - - .nav-item-label { - @include border-radius(30px); - } - } - - &.open a { - @include border-radius(4px 4px 0 0); - } - } - } - } -} - -@include respond-to(phone, tablet) { - .navbar .navbar-search .form-search .search-query { - @include border-radius(14px); - } -} - -.portlet-document-library, .portlet-dynamic-data-mapping { - .lfr-ddm-small-image-preview { - @include box-shadow(0 1px 3px #CCC); - } -} - -.portlet-asset-category-admin { - .tree-node-selected, .tree-node-over, .category-item { - @include border-radius(5px); - } -} - -.lfr-translation-manager-translation.lfr-translation-manager-translation-editing { - @include box-shadow(inset 0 0 2px #224FA8); -} - -.portlet-document-library-upload-mask .overlaymask-content { - @include border-radius(5px); -} - -.lfr-search-combobox-item, .portlet-journal .lfr-search-combobox .search input { - @include border-radius(1px); -} - -.lfr-search-combobox { - .field-input-text { - @include border-radius(4px 1px 1px 4px); - } - - .button-input { - @include border-radius(1px 4px 4px 1px); - } -} - -.lfr-upload-container .progress-bar, .lfr-upload-container .progress, .lfr-editable:after { - @include border-radius(10px); -} - -body > .lfr-menu-list ul, .active-area-proxy, .entry-display-style .entry-thumbnail, .lfr-api-results, .lfr-translation-manager, .lfr-translation-manager-translation, .lfr-upload-container .cancel-button .modify-pages .delete-tab, .portlet-image-gallery-display .image-thumbnail img, .rule-group-instance-container .rule-group-instance, .select-documents, .select-files, .taglib-ratings.stars:hover, .taglib-ratings.stars:hover .liferay-rating-vote > div, .taglib-ratings.stars .rating-focused > div, .tags-search-combobox .field-input-text { - @include border-radius(4px); -} - -.entry-display-style, .lfr-search-combobox, .lfr-upload-container .upload-file, .lfr-upload-container .upload-target, .portlet-asset-tag-admin .merge-tag, .portlet-document-library .common-file-metadata-container.selected, .portlet-document-library-display .common-file-metadata-container.selected, .portlet-image-gallery-display .image-icon, .select-documents, .select-files { - @include border-radius(5px); -} - -.portlet-dynamic-data-list-display, .portlet-dynamic-data-lists, .portlet-journal { - .lfr-ddm-container .field-wrapper { - @include border-radius(6px); - } -} - -.portlet-journal .display-page-item-container .display-page-item, .portlet-journal .display-page-item-container .display-page-item .display-page-item-remove, .taglib-categorization-filter .asset-entry { - @include border-radius(14px); -} - -.menu-content { - @include border-bottom-left-radius(4px); - @include border-bottom-right-radius(4px); -} - -.taglib-form-navigator > .form-steps > ul.form-navigator.well { - @include box-shadow(none); - - .tab .tab-label { - &:hover, &:focus { - .number { - @include box-shadow(0 0 5px 0 #333); - @include transition-duration(0.25s); - @include transition-property(box-shadow); - @include transition-timing-function(ease-out); - } - } - - .number { - @include border-radius(50%); - } - } -} - -.underlay-content { - @include border-bottom-left-radius(8px); - @include border-bottom-right-radius(8px); -} - -.input-localized { - .lfr-input-localized-state { - @include border-radius(3px); - } - - .lfr-input-localized .lfr-input-localized-state { - @include box-shadow(0 0 3px #DDD); - - &.lfr-input-localized-state-error { - @include box-shadow(0 0 3px #FF0047); - } - } - - .palette-item-selected .lfr-input-localized-state { - @include box-shadow(0 0 3px #27C1F2); - } -} - -.lfr-add-panel { - .add-content-button { - .lfr-actions { - @include border-radius(2px); - } - } - - .lfr-panel-content .app-view-entry-taglib { - &.display-list, &.display-descriptive { - &:hover, &.hover, &.over { - @include border-radius(0); - } - } - } - - .lfr-panel.lfr-extended { - @include border-radius(0); - @include box-shadow(none); - } - - .lfr-panel.lfr-extended .lfr-panel-titlebar, .add-application-tab .lfr-add-content .lfr-title-category { - @include background-image(linear-gradient(#D2DBE4, #BDC8D6)); - } - - .search-panel { - .add-content-search .field-input { - @include border-radius(4px); - } - } -} - -.lfr-add-dialog, .lfr-add-panel { - .add-content-menu .search-query { - @include border-radius(15px); - } -} - -.lfr-content-preview-popup .lfr-content-preview-popup-content { - @include border-radius(0); - @include box-shadow(8px 3px 7px rgba(0, 0, 0, 0.25)); -} - -.lfr-message .lfr-message-control { - @include border-radius(10px); -} - -.lfr-token, .layout-customizable-controls, .lfr-translation-manager-delete-translation { - @include border-radius(8px); -} - -.customizable-layout-column-content { - @include border-radius(6px); -} - -.staging-tabview-list { - @include border-radius(0); -} - -.site-variations-tabview-list .tab-content, .staging-tabview-list .tab-active .tab-content, .tagselector-content .textboxlistentry-holder .lfr-tag-selector-input:focus { - @include box-shadow(none); -} - -.rule-group-instance-container .rule-group-instance { - @include box-shadow(1px 1px 2px #999); -} - -.lfr-action-label { - @include border-radius(2px); -} - -.lfr-api-service-search .field-input { - @include box-sizing("border-box"); -} - -@include keyframes(progress-bar-stripes) { - from { - background-position: 40px 0; - } - - to { - background-position: 0 0; - } -} - -.lfr-progress-active .progress-bar-status, .lfr-upload-container .file-uploading .progress-bar .progress { - $transparent: rgba(255, 255, 255, 0); - - @include background-image(linear-gradient(-45deg, rgba(255, 255, 255, 0.3) 25%, $transparent 25%, $transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, $transparent 75%, $transparent)); - @include background-size(40px 40px); - @include experimental(animation, progress-bar-stripes 0.5s linear infinite); - @include single-transition(width, 0.5s, ease-out); -} - -@include keyframes(highlight-animation) { - from { - background-color: #FFC; - } - - to { - background-color: transparent; - } -} - -.highlight-animation { - @include experimental(animation, highlight-animation 0.7s); -} - -body:first-of-type { - %portlet-action-bar-fx { - @include single-transition(opacity, 0.5s, ease, 0.15s); - } - - %portlet-action-bar-fx-hover { - @include single-transition(opacity, 0.5s, ease, 0s); - } - - %portlet-action-bar-fx-text { - display: inline-block; - max-width: 0; - overflow: hidden; - - @include single-transition(max-width, 0.3s, ease-in, 0.2s); - - text-overflow: ellipsis; - white-space: nowrap; - } - - %portlet-action-bar-fx-hover-text { - @include single-transition(max-width, 0.3s, ease, 0s); - } - - .portlet-borderless-bar { - @extend %portlet-action-bar-fx; - - .portlet-actions { - @extend %portlet-action-bar-fx-text; - - @extend %portlet-action-bar-fx-hover-text; - - @include border-bottom-left-radius(20px); - @include border-top-left-radius(20px); - } - - .portlet-title-default { - @include border-bottom-right-radius(20px); - @include border-top-right-radius(20px); - } - } - - .portlet-borderless-container:hover { - .portlet-borderless-bar { - @extend %portlet-action-bar-fx-hover; - } - - .portlet-borderless-bar .portlet-actions { - max-width: 500px; - } - } - - .portlet-content { - &:hover { - .lfr-icon-actions { - @extend %portlet-action-bar-fx-hover; - - .taglib-text { - @extend %portlet-action-bar-fx-hover-text; - - max-width: 200px; - } - } - } - - .lfr-icon-actions { - @extend %portlet-action-bar-fx; - - .taglib-text { - @extend %portlet-action-bar-fx-text; - - @include respond-to(phone, tablet) { - max-width: 200px; - } - } - } - } -} - -.portlet-boundary.yui3-dd-dragging { - @include transform(scale(0.8)); - @include transition(transform 0.3s ease); -} - -.portlet-document-library .entry-thumbnail .label, .portlet-document-library-display .workflow-status .label, .portlet-journal .entry-thumbnail .label { - @include border-bottom-left-radius(0); - @include border-top-left-radius(0); - @include border-top-right-radius(0); -} - -@include keyframes(lfr-drop-active) { - 0% { - background-color: #EBEBEB; - border-color: #DDD; - } - - 50% { - background-color: #DDEDDE; - border-color: #7D7; - - @include scale(1.1); - } - - 75% { - background-color: #DDEDDE; - border-color: #7D7; - } - - 100% { - background-color: #EBEBEB; - border-color: #DDD; - } -} - -.upload-drop-active { - .lfr-upload-container .upload-target { - @include experimental(animation, none); - } - - .portlet-document-library .document-container { - @include box-shadow(inset 0 0 5px #B8C1D1); - } -} - -.upload-drop-intent .lfr-upload-container .upload-target { - @include experimental(animation, lfr-drop-active 1s ease 0.2s infinite); -} - -.cke_toolbar { - &.cke_toolbar__a11yhelpbtn { - .cke_toolgroup, .cke_toolgroup:hover { - @include box-shadow(initial); - } - - .cke_button { - &:hover { - @include box-shadow(none); - } - - .cke_button_label { - &:after { - @include background-image(linear-gradient(#FFF, #E4E4E4)); - @include border-radius(2px); - } - - &:hover:after { - @include background-image(linear-gradient(#F2F2F2, #CCC)); - } - } - } - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/layout.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/layout.css deleted file mode 100644 index 9c78add8..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/layout.css +++ /dev/null @@ -1,24 +0,0 @@ -@import "mixins"; - -/* ---------- Column widths ---------- */ - -.portlet-column-content.empty { - padding: 50px; -} - -/* ---------- Wrapper ---------- */ - -#wrapper { - padding: 2em 5em 0; - position: relative; - - @include respond-to(phone) { - padding-left: 0.5em; - padding-right: 0.5em; - } - - @include respond-to(tablet) { - padding-left: 2em; - padding-right: 2em; - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/main.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/main.css deleted file mode 100644 index 594c7b59..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/main.css +++ /dev/null @@ -1,15 +0,0 @@ -@import url(base.css); - -@import url(application.css); - -@import url(layout.css); - -@import url(dockbar.css); - -@import url(navigation.css); - -@import url(portlet.css); - -@import url(extras.css); - -@import url(custom.css); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/navigation.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/navigation.css deleted file mode 100644 index e79409c7..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/navigation.css +++ /dev/null @@ -1,176 +0,0 @@ -@import "compass"; -@import "mixins"; - -/* ---------- Add/remove page ---------- */ - -.modify-pages { - li { - position: relative; - - &.lfr-nav-hover { - .delete-tab { - @include opacity(1); - } - } - } - - .add-page-editor-input { - width: 150px; - } - - .delete-tab { - color: #444; - cursor: pointer; - display: block; - font-size: 20px; - font-weight: bold; - height: 10px; - line-height: 6px; - margin-top: -8px; - overflow: hidden; - - @include opacity(0); - - padding: 3px 0; - position: absolute; - right: 1px; - text-shadow: 0 1px #FFF; - top: 50%; - - &:hover { - color: #B50303; - } - } - - .lfr-nav-sortable > a > span { - padding-left: 28px; - } - - .drag-handle { - background-color: #555; - - @include border-radius(50%); - - color: #FFF; - cursor: pointer; - font-size: 16px; - left: 3px; - line-height: 1em; - margin: 8px; - padding: 4px; - position: absolute; - text-align: center; - top: 2px; - width: 1em; - } - - @include respond-to(desktop) { - .lfr-nav-sortable > a > span { - padding-left: 0; - } - - .drag-handle { - display: none; - } - } - - .lfr-nav-updateable.selected a:hover span { - cursor: text; - } -} - -.controls-hidden .modify-pages { - .lfr-nav-sortable > a > span { - padding-left: 0; - } - - .drag-handle { - display: none; - } -} - -.nav { - li .toolbar { - margin-top: 5px; - } -} - -/* ---------- Navigation portlet ---------- */ - -.nav-menu { - ul { - padding-left: 10px; - } - - li a { - &.ancestor { - font-weight: bold; - } - - &.selected { - color: #000; - font-weight: bold; - text-decoration: none; - } - } -} - -.nav-menu-style-arrows ul { - list-style-image: url(../images/arrows/04_right.png); -} - -/* ---------- Page template selector ---------- */ - -.form-options { - border: 1px solid #AAA; - display: inline-block; - vertical-align: middle; - - input { - border-width: 0; - display: inline; - float: left; - } -} - -.form-triggers { - float: left; -} - -.form-trigger { - background: #C4C4C4 url(../images/application/button_bg.png) repeat-x 0 0; - border-left: 1px solid #BBB; - display: inline-block; - float: left; - - img { - background: url() no-repeat 50% 40%; - height: 25px; - padding: 0 3px; - vertical-align: middle; - width: 16px; - } - - &:focus, &:hover { - background-color: #83B0CA; - background-image: url(../images/application/button_bg_over.png); - } -} - -.trigger-selected { - background-color: #EBEBEB; - background-image: url(../images/application/button_bg_selected.png); - - &:focus, &:hover { - background-color: #B7DEF4; - background-image: url(../images/application/button_bg_selected_over.png); - } -} - -.options-trigger img { - background-image: url(../images/common/configuration.png); -} - -.save-trigger img { - background-image: url(../images/common/check.png); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/portlet.css b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/portlet.css deleted file mode 100644 index 0cf8679b..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/css/portlet.css +++ /dev/null @@ -1,872 +0,0 @@ -@import "aui/variables"; -@import "aui_variables"; -@import "aui/mixins"; -@import "compass"; - -/* ---------- Portlet wrapper and icons ---------- */ - -.freeform .portlet { - margin-bottom: 0; -} - -body.portlet { - border-width: 0; -} - -.portlet-topper { - position: relative; - - .portlet-topper-toolbar { - margin: 0; - padding: 2px; - position: absolute; - right: 3px; - text-align: right; - top: 3px; - z-index: 300; - - a { - color: inherit; - - &, &:hover { - text-decoration: none; - } - - i { - font-size: 19px; - } - } - - .nobr { - display: block; - float: left; - padding: 1px; - } - - .portlet-icon-back { - background: url(../images/arrows/12_left.png) no-repeat 0 50%; - color: #FFF; - font-weight: bold; - padding: 5px 5px 5px 18px; - - &:hover { - color: #FFF; - } - } - - .portlet-options .lfr-icon-menu-text { - color: transparent; - font-size: 0; - } - } -} - -.portlet-title { - display: block; - - img { - vertical-align: middle; - } -} - -.portlet-title-editable { - cursor: pointer; -} - -.portlet-title-text { - display: inline-block; - - @include ellipsis; - - max-width: 95%; - vertical-align: top; -} - -.panel-page-content, .panel-page-body { - .portlet-title-text { - cursor: auto; - } -} - -.portlet-content, .portlet-minimized .portlet-content-container { - padding: 12px 10px 10px; -} - -.portlet-minimized .portlet-content { - padding: 0; -} - -.portlet-nested-portlets .portlet-boundary { - left: 0 !important; - position: relative !important; - top: 0 !important; -} - -%portlet-action-bar { - background: #333; - color: #FFF; - - @include text-shadow(-1px -1px #000); - - a { - color: #3AF; - } -} - -%portlet-action-bar-hover { - @include opacity(1); -} - -%portlet-action-bar-hover-text { - display: inline-block; -} - -.portlet-borderless-bar { - @extend %portlet-action-bar; - - .portlet-options, .portlet-options.open { - .dropdown-toggle { - background-image: url(../images/portlet/options_borderless.png); - } - } -} - -.portlet-content { - .lfr-icon-actions { - @extend %portlet-action-bar; - } -} - -.portlet-content { - .lfr-icon-actions { - float: left; - margin: 1px 10px 1px 1px; - - @include opacity(0.5); - - padding: 2px 7px; - - .taglib-text { - color: #FFF; - display: none; - font-weight: bold; - margin-right: 1em; - text-decoration: none; - vertical-align: middle; - } - - .lfr-icon-action a { - background: url() no-repeat 0 50%; - display: inline-block; - margin-left: 5px; - vertical-align: top; - - &:hover { - text-decoration: none; - - span { - text-decoration: underline; - } - } - - img { - visibility: hidden; - } - } - - .lfr-icon-action-add a { - background-image: url(../images/common/add_white.png); - } - - .lfr-icon-action-edit a { - background-image: url(../images/common/edit_white.png); - } - - .lfr-icon-action-edit-template a { - background-image: url(../images/common/edit_template_white.png); - } - - .lfr-icon-action-configuration a { - background-image: url(../images/common/configuration_white.png); - } - } - - .lfr-url-error { - display: inline-block; - white-space: normal; - } -} - -/* ---------- Borderless portlet ---------- */ - -.portlet-borderless-container { - min-height: 2.5em; - position: relative; -} - -.portlet-borderless-bar { - background-color: transparent; - font-size: 10px; - - @include opacity(0.3); - - height: 0; - padding: 0; - position: absolute; - right: 0; - top: 0; - - width: 100%; - z-index: 200; - - a { - background: url() no-repeat 0 50%; - display: inline-block; - height: 20px; - margin-left: 5px; - text-indent: -9999px; - width: 16px; - } - - .portlet-actions { - float: right; - overflow: hidden; - padding: 0 5px; - - .portlet-action, .portlet-options { - display: inline-block; - } - } - - .portlet-actions, .portlet-title-default { - background-color: #333; - min-height: 21px; - } - - .portlet-action-separator { - display: none; - } - - .portlet-back a { - height: auto; - text-indent: 0; - width: auto; - } - - .portlet-close { - display: inline-block; - vertical-align: middle; - - a { - background-image: url(../images/portlet/close_borderless.png); - } - } - - .portlet-options li.lfr-trigger strong a { - background-image: url(../images/portlet/options_borderless.png); - } -} - -.lfr-configurator-visibility { - .portlet-borderless-bar { - @include opacity(0.6); - } - - .portlet-content { - .lfr-icon-actions { - @include opacity(1); - } - } -} - -.portlet-borderless-container:hover .portlet-borderless-bar { - @extend %portlet-action-bar-hover; - - .portlet-actions { - @extend %portlet-action-bar-hover-text; - } -} - -.portlet-content { - &:hover { - .lfr-icon-actions { - @extend %portlet-action-bar-hover; - - .taglib-text { - @extend %portlet-action-bar-hover-text; - } - } - } - - .icons-container { - clear: both; - height: auto; - margin-top: 1em; - overflow: hidden; - width: auto; - } -} - -.portlet-title-default { - display: block; - - @include ellipsis; - - float: right; - font-weight: bold; - height: 0; - line-height: 19px; - max-width: 50%; - padding: 0 10px; - text-transform: uppercase; -} - -.portlet-draggable { - .portlet-topper { - cursor: move; - } - - .portlet-title-default { - background: #333 url(../images/portlet/draggable_borderless.png) no-repeat 0 50%; - cursor: move; - padding-left: 20px; - } -} - -/* ---------- Panel page ---------- */ - -.lfr-panel-page { - width: 100%; - - .portlet-title { - font-size: 13px; - } - - .lfr-add-content h2 span { - background-color: #D3DADD; - } -} - -/* ---------- Standard styles defined in the JSR 168 ---------- */ - -/* ---------- Fonts ---------- */ - -/* ---------- Font attributes for the 'normal' fragment font ---------- */ - -.portlet-font { -} - -/* ---------- Font attributes similar to the .portlet-font but the color is lighter ---------- */ - -.portlet-font-dim { -} - -/* ---------- Messages ---------- */ - -.portlet-msg { - background: #EEE none no-repeat 6px 50%; - border: 1px solid #555; - color: #34404F; - font-weight: bold; - margin: 2px auto 14px; - padding: 6px 6px 6px 30px; - text-align: left; -} - -/* ---------- Status labels ---------- */ - -.lfr-status-alert-label, .lfr-status-error-label, .lfr-status-info-label, .lfr-status-progress-label, .lfr-status-success-label { - background: none no-repeat 0 50%; - padding: 3px 3px 3px 20px; -} - -.lfr-status-alert-label { - background-image: url(../images/messages/alert.png); - color: #663; -} - -.lfr-status-error-label { - background-image: url(../images/messages/error.png); - color: #900; -} - -.lfr-status-help-label, .lfr-status-info-label, .lfr-status-progress-label { - background-image: url(../images/messages/info.png); - color: #34404F; -} - -.lfr-status-help-label { - background-image: url(../images/portlet/help.png); -} - -.lfr-status-progress-label { - background-image: url(../images/aui/loading_indicator.gif); -} - -.lfr-status-success-label { - background-image: url(../images/messages/success.png); - color: #384F34; -} - -/* ---------- Liferay messages ---------- */ - -.lfr-message { - position: relative; - - .lfr-message-control { - background-color: #333; - display: inline-block; - } - - .lfr-message-controls { - display: none; - left: 3px; - margin: -8px 8px 0 3px; - position: absolute; - top: 50%; - z-index: 10; - } - - .lfr-message-close { - background-image: url(../images/portlet/close_borderless.png); - background-position: 0 0; - background-repeat: no-repeat; - } - - .lfr-message-close-all { - color: #FFF; - display: none; - font-size: 0.8em; - margin-left: 10px; - padding: 1px 10px; - text-shadow: 1px 1px 0 #000; - vertical-align: top; - - a { - color: #FFF; - } - } - - .lfr-message-controls-hover .lfr-message-close-all { - display: inline-block; - } - - &.pending { - background-image: url(../images/common/time.png); - } -} - -.lfr-message-content.alert { - margin-bottom: 0; -} - -.lfr-message-close { - cursor: pointer; -} - -/* ---------- Sections ---------- */ - -/* ---------- Text in a selected cell range ---------- */ - -.portlet-section-selected { - &, a { - background: #727C81; - color: #FFF; - font-weight: bold; - text-decoration: none; - } - - a:hover, a:focus { - background-color: #727C81; - } -} - -/* ---------- Text of a subheading ---------- */ - -.portlet-section-subheader { -} - -/* ---------- Table or section footnote ---------- */ - -.portlet-section-footer { -} - -/* ---------- Text that belongs to the table but does not fall in one of the other categories (e.g. explanatory or help text that is associated with the section) ---------- */ - -.portlet-section-text { -} - -/* ---------- Forms ---------- */ - -.alert .form { - margin: 0; -} - -/* ---------- Text used for the descriptive label of the whole form (not the labels for fields) ---------- */ - -.portlet-form-label { -} - -/* ---------- Text of the user-input in an input field ---------- */ - -.portlet-form-input-field { -} - -/* ---------- Text on a button ---------- */ - -.portlet-form-button { -} - -/* ---------- Text that appears beside a context dependent action icon ---------- */ - -.portlet-icon-label { -} - -/* ---------- Text that appears beside a 'standard' icon (e.g. Ok, or cancel) ---------- */ - -.portlet-dlg-icon-label { -} - -/* ---------- Text for a separator of fields (e.g. checkboxes, etc.) ---------- */ - -.portlet-form-field-label { -} - -/* ---------- Text for a field (not input field, e.g. checkboxes, etc.) ---------- */ - -.portlet-form-field { -} - -/* ---------- Menus ---------- */ - -/* ---------- General menu settings such as background color, margins, etc. ---------- */ - -.portlet-menu { -} - -/* ---------- Normal, unselected menu item ---------- */ - -.portlet-menu-item { -} - -/* ---------- Selected menu item ---------- */ - -.portlet-menu-item-selected { -} - -/* ---------- Normal, unselected menu item when the mouse hovers over it ---------- */ - -.portlet-menu-item-hover { -} - -/* ---------- Selected menu item when the mouse hovers over it ---------- */ - -.portlet-menu-item-hover-selected { -} - -/* ---------- Normal, unselected menu item that has sub-menus ---------- */ - -.portlet-menu-cascade-item { -} - -/* ---------- Selected sub-menu item that has sub-menus ---------- */ - -.portlet-menu-cascade-item-selected { -} - -/* ---------- Descriptive text for the menu (e.g. in a help context below the menu) ---------- */ - -.portlet-menu-description { -} - -/* ---------- Menu caption ---------- */ - -.portlet-menu-caption { -} - -/* ---------- Miscellaneous portlet styles ---------- */ - -.restricted { - &, & td { - background: #FDD; - border-width: 0; - } - - * { - color: #727C81; - } -} - -.alt.restricted td { - background-color: #FFC0C0; -} - -.hover.restricted td { - background-color: #D3BDC0; -} - -.alt.restricted, .restricted { - td.first { - background-image: url(../images/messages/error.png); - background-position: 5px 50%; - background-repeat: no-repeat; - padding-left: 28px; - } -} - -/* ---------- Permissions ---------- */ - -.table-data tr { - &.lfr-role .first { - background-image: url(); - background-position: 5px 50%; - background-repeat: no-repeat; - padding-left: 30px; - vertical-align: middle; - } - - &.lfr-role-guest .first { - background-image: url(../images/common/guest_icon.png); - } - - &.lfr-role-regular .first { - background-image: url(../images/common/user_icon.png); - } - - &.lfr-role-site .first { - background-image: url(../images/common/site_icon.png); - } - - &.lfr-role-organization .first { - background-image: url(../images/common/organization_icon.png); - } - - &.lfr-role-team .first { - background-image: url(../images/common/team_icon.png); - } -} - -/* ---------- Miscellaneous component styles ---------- */ - -.lfr-ddm-container { - .control-group { - &.error { - @include formFieldState(); - } - - &.info { - @include formFieldState(); - } - - &.success { - @include formFieldState(); - } - - &.warning { - @include formFieldState(); - } - - &.error > { - @include formFieldState($errorText, $errorText, $errorBackground); - } - - &.info > { - @include formFieldState($infoText, $infoText, $infoBackground); - } - - &.success > { - @include formFieldState($successText, $successText, $successBackground); - } - - &.warning > { - @include formFieldState($warningText, $warningText, $warningBackground); - } - } -} - -/* ---------- Dynamic data list display/Journal portlet ---------- */ - -.portlet-dynamic-data-list-display, .portlet-dynamic-data-lists, .portlet-journal .journal-article-container { - .lfr-ddm-container .field-wrapper { - &[data-repeatable="true"], .field-wrapper { - border: 1px solid #D0D0D0; - border-left-width: 10px; - padding: 7px 10px 10px; - - &[data-repeatable="true"]:nth-of-type(even) { - background-color: #F5F5F5; - } - - &, .field-wrapper { - margin: 15px 0 0; - } - } - } -} - -/* ---------- Add content dialog ---------- */ - -.lfr-portlet-item { - &, & p a { - font-size: 1em; - } -} - -/* ---------- Breadcrumb taglib ---------- */ - -.breadcrumb.breadcrumb-vertical { - display: inline-block; - text-align: center; - - li { - display: block; - - &.last, &.only { - background: none; - } - } - - .divider { - background: url(@theme_image_path@/arrows/07_down.png) no-repeat 50% 100%; - display: block; - - @include hide-text(right); - - height: 10px; - } -} - -/* ---------- Calendar taglib ---------- */ - -.taglib-calendar { - tr { - &.portlet-section-header th, & td { - border-width: 0; - } - - td { - a { - background-color: #F0F5F7; - border: 1px solid #FFF; - border-bottom-width: 0; - border-left-width: 0; - display: block; - height: 15px; - padding: 5px 0; - - &:hover { - background-color: #727C81; - color: #FFF; - } - } - - &.calendar-inactive { - background-color: #FFF; - color: #B5BFC4; - } - } - - th { - border-bottom-color: #D7D7D7; - } - } - - table td { - border-width: 0; - } - - .calendar-current-day { - &, & a { - background-color: #FFF; - } - - a { - border: 1px solid #727C81; - color: #369; - text-decoration: underline; - } - } -} - -/* ---------- navbar form search ---------- */ - -.navbar form { - margin: 0; -} - -.ie { - .portlet-borderless-bar { - @include opacity(0.5); - } - - .portlet-content { - .lfr-icon-actions { - @include opacity(0.5); - } - } - - .portlet-borderless-container:hover .portlet-borderless-bar, .portlet-journal-content .lfr-icon-actions:hover { - @include opacity(1); - } - - .taglib-calendar tr td.first a { - border-right-width: 0; - } -} - -.ie6, .ie7 { - .portlet-content { - .icons-container { - overflow: visible; - } - - .lfr-icon-actions .taglib-text { - display: inline-block; - } - } - - .portlet-borderless-bar .portlet-actions { - margin-left: 20px; - margin-right: 0; - } - - .portlet-title-default { - float: left; - } - - .lfr-message .lfr-message-close { - float: left; - } -} - -.ie6 { - .portlet-topper-toolbar .icon { - height: 16px; - width: 16px; - } - - .portlet-borderless-container { - height: 2.5em; - } - - .portlet-borderless-bar { - filter: alpha(opacity=90); - - .portlet-actions { - display: inline; - filter: alpha(opacity=90); - } - } - - .breadcrumbs { - zoom: 1; - } -} - -.ie8 { - .dockbar, .lfr-icon-action, .logo { - img { - max-width: none; - } - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/layouts.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/layouts.png deleted file mode 100644 index 155782bb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/layouts.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_category.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_category.png deleted file mode 100644 index cfe44932..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_category.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item.png deleted file mode 100644 index 5911f352..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_archived_setup.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_archived_setup.png deleted file mode 100644 index 5c5f4c09..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_archived_setup.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_instanceable.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_instanceable.png deleted file mode 100644 index 0f04e89e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/add_content/portlet_item_instanceable.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/exception.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/exception.png deleted file mode 100644 index a7bb2283..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/exception.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/execute.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/execute.png deleted file mode 100644 index e9eb68e8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/execute.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/method.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/method.png deleted file mode 100644 index 1800099b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/method.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/property.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/property.png deleted file mode 100644 index 77a3560e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/property.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/return_type.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/return_type.png deleted file mode 100644 index 555887a2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/api/return_type.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg.png deleted file mode 100644 index beb1ad45..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_over.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_over.png deleted file mode 100644 index 04d0feed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_over.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected.png deleted file mode 100644 index 95e2ded8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected_over.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected_over.png deleted file mode 100644 index 34e6dedf..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/button_bg_selected_over.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/close.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/close.png deleted file mode 100644 index 6eebccbb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/close.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_bg.png deleted file mode 100644 index e21cb376..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_hover_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_hover_bg.png deleted file mode 100644 index 00bba12e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/current_page_hover_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/forbidden_action.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/forbidden_action.png deleted file mode 100644 index c94bc1f5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/forbidden_action.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/handle_sort_vertical.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/handle_sort_vertical.png deleted file mode 100644 index 33234a64..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/handle_sort_vertical.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/header_row_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/header_row_bg.png deleted file mode 100644 index ee916ff8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/header_row_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/layouts.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/layouts.png deleted file mode 100644 index b72d2ddc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/layouts.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/loading_indicator.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/loading_indicator.gif deleted file mode 100644 index 085ccaec..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/loading_indicator.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/menu_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/menu_bg.png deleted file mode 100644 index f0828ebe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/menu_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/paginator_link_current_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/paginator_link_current_bg.png deleted file mode 100644 index 672e0cd2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/paginator_link_current_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_direction_indicator.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_direction_indicator.png deleted file mode 100644 index acf6cb77..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_direction_indicator.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header.png deleted file mode 100644 index 67f74120..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_bg.png deleted file mode 100644 index 7d1d1f31..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_close.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_close.png deleted file mode 100644 index 65dc5748..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_close.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_open.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_open.png deleted file mode 100644 index 9c36dad5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/panel_header_toggler_open.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_active_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_active_bg.png deleted file mode 100644 index 95e2ded8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_active_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_default_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_default_bg.png deleted file mode 100644 index f6c4e22f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_default_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_hover_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_hover_bg.png deleted file mode 100644 index 5a1e6467..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/state_hover_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/subheader_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/subheader_bg.png deleted file mode 100644 index a36dd500..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/subheader_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/tabs_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/tabs_bg.png deleted file mode 100644 index 64114abd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/application/tabs_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_down.png deleted file mode 100644 index 72b094a0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_left.png deleted file mode 100644 index 5e6946df..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_minus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_minus.png deleted file mode 100644 index 71c2f578..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_minus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_plus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_plus.png deleted file mode 100644 index 68a4d392..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_plus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_right.png deleted file mode 100644 index ccf9548e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_up.png deleted file mode 100644 index 674b8b29..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/01_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_down.png deleted file mode 100644 index 9e63594c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_left.png deleted file mode 100644 index e3ad25f4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_minus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_minus.png deleted file mode 100644 index fe1f3a5c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_minus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_plus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_plus.png deleted file mode 100644 index 5f4c14bc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_plus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_right.png deleted file mode 100644 index 0424fa66..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_up.png deleted file mode 100644 index 443525ec..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_x.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_x.png deleted file mode 100644 index 08f24936..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/02_x.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_down.png deleted file mode 100644 index aa9aeba4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_up.png deleted file mode 100644 index 1d4c0967..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/03_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_left.png deleted file mode 100644 index acc424ee..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_right.png deleted file mode 100644 index 9cc34508..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/04_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_down.png deleted file mode 100644 index 91a30bfe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_left.png deleted file mode 100644 index 96a8558a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_right.png deleted file mode 100644 index 4b9b67e3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_up.png deleted file mode 100644 index 91d7aa1a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/05_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_down.png deleted file mode 100644 index 8a81e7da..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_up.png deleted file mode 100644 index eeccfcaa..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/06_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/07_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/07_down.png deleted file mode 100644 index 541def06..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/07_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_down.png deleted file mode 100644 index b263a65a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_left.png deleted file mode 100644 index 24f1b39c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_right.png deleted file mode 100644 index f2a083b4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_up.png deleted file mode 100644 index 2e7c1cac..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/08_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_down.png deleted file mode 100644 index 64ce081b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_left.png deleted file mode 100644 index d9cb1ba4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_right.png deleted file mode 100644 index 9cab46ef..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_up.png deleted file mode 100644 index b783ec27..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/09_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/10_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/10_right.png deleted file mode 100644 index cff0d357..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/10_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/11_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/11_left.png deleted file mode 100644 index f19e903f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/11_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/12_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/12_left.png deleted file mode 100644 index 8a9e18b8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/12_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_down.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_down.png deleted file mode 100644 index 66b85f1a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_down.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_left.png deleted file mode 100644 index fee466e9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_right.png deleted file mode 100644 index ea1ebafb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/13_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_first.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_first.png deleted file mode 100644 index c4d9a24c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_first.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_last.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_last.png deleted file mode 100644 index e1391902..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_last.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_next.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_next.png deleted file mode 100644 index f3c1ad08..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_next.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_previous.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_previous.png deleted file mode 100644 index 3f17c420..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/paging_previous.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/resize.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/resize.png deleted file mode 100644 index 2c49a327..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/arrows/resize.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_active_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_active_bg.png deleted file mode 100644 index ada48196..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_active_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_default_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_default_bg.png deleted file mode 100644 index 3bcebce6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_default_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_hover_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_hover_bg.png deleted file mode 100644 index 6a4eec7b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_hover_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_selected_hover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_selected_hover.png deleted file mode 100644 index 59aa1c8b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/common/state_selected_hover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings-white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings-white.png deleted file mode 100644 index 3bf6484a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings-white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings.png deleted file mode 100644 index a9969993..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/glyphicons-halflings.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/icon_sprite.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/icon_sprite.png deleted file mode 100644 index 25003601..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/icon_sprite.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/loading_indicator.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/loading_indicator.gif deleted file mode 100644 index 085ccaec..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/loading_indicator.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/menu/bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/menu/bg.png deleted file mode 100644 index f0828ebe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/menu/bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/panel/header_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/panel/header_bg.png deleted file mode 100644 index 8363b834..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/aui/panel/header_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/blogs.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/blogs.png deleted file mode 100644 index 90307309..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/blogs.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/props.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/props.png deleted file mode 100644 index 9443e0e6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/props.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/xml.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/xml.png deleted file mode 100644 index 9c57f7ff..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/blogs/xml.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/bookmarks/add_bookmark.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/bookmarks/add_bookmark.png deleted file mode 100644 index d2727151..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/bookmarks/add_bookmark.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/calendar_day_drop_shadow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/calendar_day_drop_shadow.png deleted file mode 100644 index 6a2d31d6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/calendar_day_drop_shadow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator.png deleted file mode 100644 index aaddd72d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator_current.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator_current.png deleted file mode 100644 index 52dd9fd3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/calendar/event_indicator_current.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action.png deleted file mode 100644 index eda3ae13..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action_right.png deleted file mode 100644 index a45564e1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/action_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/activate.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/activate.png deleted file mode 100644 index d22fde8b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/activate.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add.png deleted file mode 100644 index 6332fefe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_article.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_article.png deleted file mode 100644 index 0bbb9d4a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_article.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_drive.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_drive.png deleted file mode 100644 index 29a35d5a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_drive.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_folder.png deleted file mode 100644 index 6f395062..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_instance.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_instance.png deleted file mode 100644 index 4f4218dd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_instance.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_location.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_location.png deleted file mode 100644 index 056ff9ae..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_location.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_portlet_display_template.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_portlet_display_template.png deleted file mode 100644 index 58964219..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_portlet_display_template.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template.png deleted file mode 100644 index 842463b2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_display.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_display.png deleted file mode 100644 index a664b51d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_display.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_form.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_form.png deleted file mode 100644 index ef407c68..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_template_form.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_user.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_user.png deleted file mode 100644 index 7f0aa07f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_user.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_white.png deleted file mode 100644 index 625874e3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/add_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/all_pages.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/all_pages.png deleted file mode 100644 index 44084add..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/all_pages.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign.png deleted file mode 100644 index 96619aff..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_group_roles.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_group_roles.png deleted file mode 100644 index a4ea104a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_group_roles.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_roles.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_roles.png deleted file mode 100644 index f5195c7e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/assign_user_roles.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/attributes.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/attributes.png deleted file mode 100644 index cfc2702a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/attributes.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/back.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/back.png deleted file mode 100644 index 5dc69678..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/back.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/bottom.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/bottom.png deleted file mode 100644 index 2c4e2793..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/bottom.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs.png deleted file mode 100644 index 58d16afc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs_hud.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs_hud.png deleted file mode 100644 index 9f885d08..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/breadcrumbs_hud.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/calendar.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/calendar.png deleted file mode 100644 index 65891385..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/calendar.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/category.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/category.png deleted file mode 100644 index e9fb96cb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/category.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/check.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/check.png deleted file mode 100644 index a9925a06..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/check.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checked.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checked.png deleted file mode 100644 index 4b05d7b5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checked.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checkerboard.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checkerboard.png deleted file mode 100644 index a23232d9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/checkerboard.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/clip.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/clip.png deleted file mode 100644 index 96c0bca1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/clip.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/close.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/close.png deleted file mode 100644 index 6eebccbb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/close.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration.png deleted file mode 100644 index 8bf76fbb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration_white.png deleted file mode 100644 index da1fc3fb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/configuration_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/control_panel.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/control_panel.png deleted file mode 100644 index 179c6d40..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/control_panel.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/conversation.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/conversation.png deleted file mode 100644 index 39433cf7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/conversation.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/copy.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/copy.png deleted file mode 100644 index 195dc6d6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/copy.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/date.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/date.png deleted file mode 100644 index 0d5fa0fe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/date.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/deactivate.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/deactivate.png deleted file mode 100644 index e95b8c5b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/deactivate.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/define_permissions.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/define_permissions.png deleted file mode 100644 index 116aa5b7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/define_permissions.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete.png deleted file mode 100644 index 6eebccbb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete_attachment.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete_attachment.png deleted file mode 100644 index 942e7b83..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/delete_attachment.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/desktop.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/desktop.png deleted file mode 100644 index 8af3eda9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/desktop.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/download.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/download.png deleted file mode 100644 index 95c25dd6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/download.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive.png deleted file mode 100644 index b93887f4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive_error.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive_error.png deleted file mode 100644 index 309f6396..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/drive_error.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit.png deleted file mode 100644 index 046811ed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_template_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_template_white.png deleted file mode 100644 index 0f7fce88..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_template_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_white.png deleted file mode 100644 index 170e0dfd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/edit_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/expire.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/expire.png deleted file mode 100644 index 969a6b72..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/expire.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/export.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/export.png deleted file mode 100644 index 99d532e8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/export.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/feed.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/feed.png deleted file mode 100644 index 6a2ecce1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/feed.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder.png deleted file mode 100644 index 74cad63b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_empty.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_empty.png deleted file mode 100644 index 52e56bf0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_empty.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_full_document.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_full_document.png deleted file mode 100644 index 719e2541..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_full_document.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_open.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_open.png deleted file mode 100644 index 52e56bf0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/folder_open.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/forward.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/forward.png deleted file mode 100644 index dcf06cab..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/forward.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/global.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/global.png deleted file mode 100644 index 68f21d30..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/global.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/grey.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/grey.png deleted file mode 100644 index 162212c5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/grey.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/group.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/group.png deleted file mode 100644 index 7fb4e1f1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/group.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/guest_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/guest_icon.png deleted file mode 100644 index 2983a2ea..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/guest_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/help.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/help.png deleted file mode 100644 index 10bc089f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/help.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/history.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/history.png deleted file mode 100644 index a0e31c56..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/history.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/home.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/home.png deleted file mode 100644 index fed62219..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/home.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/impersonate_user.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/impersonate_user.png deleted file mode 100644 index 3cb06b32..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/impersonate_user.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/install_more.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/install_more.png deleted file mode 100644 index 18e07912..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/install_more.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/join.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/join.png deleted file mode 100644 index 5f68f797..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/join.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key.png deleted file mode 100644 index 3bfd163f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key_small.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key_small.png deleted file mode 100644 index fcf97515..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/key_small.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/layout.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/layout.png deleted file mode 100644 index b4aaad9a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/layout.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/leave.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/leave.png deleted file mode 100644 index c711c582..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/leave.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/liferay_sync.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/liferay_sync.png deleted file mode 100644 index 9d3f08cc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/liferay_sync.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/links.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/links.png deleted file mode 100644 index 312eab09..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/links.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/lock.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/lock.png deleted file mode 100644 index 2ebc4f6f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/lock.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_nodes.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_nodes.png deleted file mode 100644 index a1c2af90..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_nodes.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_task.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_task.png deleted file mode 100644 index b0b24c13..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/manage_task.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/maximize.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/maximize.png deleted file mode 100644 index 0036899e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/maximize.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message.png deleted file mode 100644 index e36806c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message_panel_shadow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message_panel_shadow.png deleted file mode 100644 index 7d517ae6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/message_panel_shadow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/minimize.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/minimize.png deleted file mode 100644 index 365497ce..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/minimize.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_private.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_private.png deleted file mode 100644 index a907326a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_private.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_public.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_public.png deleted file mode 100644 index 2adf79dd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/my_places_public.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/news.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/news.png deleted file mode 100644 index 6a2ecce1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/news.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/open_window.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/open_window.png deleted file mode 100644 index 67b95720..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/open_window.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/openid.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/openid.gif deleted file mode 100644 index cde836c8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/openid.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon.png deleted file mode 100644 index 1aa352d4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon_white.png deleted file mode 100644 index 5a8ccc21..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/organization_icon_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/orphan_pages.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/orphan_pages.png deleted file mode 100644 index 01e9fab6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/orphan_pages.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page.png deleted file mode 100644 index fa214c65..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page_template.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page_template.png deleted file mode 100644 index 9ae6468a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/page_template.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/pages.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/pages.png deleted file mode 100644 index 195dc6d6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/pages.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/permissions.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/permissions.png deleted file mode 100644 index 68557847..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/permissions.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/portlet.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/portlet.png deleted file mode 100644 index 89102fbe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/portlet.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/post.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/post.png deleted file mode 100644 index a7c4a4fd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/post.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/preview.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/preview.png deleted file mode 100644 index 4a92ee20..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/preview.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/print.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/print.png deleted file mode 100644 index a350d187..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/print.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/quote.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/quote.png deleted file mode 100644 index d2038d42..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/quote.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/recent_changes.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/recent_changes.png deleted file mode 100644 index 84f6a480..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/recent_changes.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/remove.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/remove.png deleted file mode 100644 index 79268418..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/remove.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/reply.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/reply.png deleted file mode 100644 index aab4ebad..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/reply.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/revision.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/revision.png deleted file mode 100644 index 971c4e15..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/revision.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/rss.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/rss.png deleted file mode 100644 index 9c57f7ff..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/rss.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/saved_in_database.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/saved_in_database.png deleted file mode 100644 index 44c06ddd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/saved_in_database.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/search.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/search.png deleted file mode 100644 index 7199af8a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/search.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/services.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/services.png deleted file mode 100644 index 0905f933..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/services.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_bottom_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_bottom_bg.png deleted file mode 100644 index 0fa16ebb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_bottom_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_top_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_top_bg.png deleted file mode 100644 index 8ebeea6b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/shadow_top_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/share.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/share.png deleted file mode 100644 index 3cb06b32..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/share.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sharing.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sharing.png deleted file mode 100644 index c6dcbbb6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sharing.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sign_out.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sign_out.png deleted file mode 100644 index 2541d2bc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sign_out.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/signal_instance.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/signal_instance.png deleted file mode 100644 index 7a2e32a4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/signal_instance.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_icon.png deleted file mode 100644 index d8ea4884..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_template.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_template.png deleted file mode 100644 index d516e222..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/site_template.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sitemap.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sitemap.png deleted file mode 100644 index 93b23bf3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/sitemap.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/staging.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/staging.png deleted file mode 100644 index 9264bcd0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/staging.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_offline.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_offline.png deleted file mode 100644 index 59055a80..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_offline.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_online.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_online.png deleted file mode 100644 index 947bd4b6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/status_online.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/submit.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/submit.png deleted file mode 100644 index e3628bb6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/submit.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/subscribe.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/subscribe.png deleted file mode 100644 index 8140e8c1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/subscribe.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tabs_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tabs_bg.png deleted file mode 100644 index be03335c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tabs_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tag.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tag.png deleted file mode 100644 index 9757fc6e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tag.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/team_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/team_icon.png deleted file mode 100644 index 56a10deb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/team_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone.png deleted file mode 100644 index cecc436f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone_mobile.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone_mobile.png deleted file mode 100644 index c39f162f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/telephone_mobile.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/time.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/time.png deleted file mode 100644 index 911da3f1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/time.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tool.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tool.png deleted file mode 100644 index 07b6c8a1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/tool.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/top.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/top.png deleted file mode 100644 index 1ebb1932..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/top.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/trash.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/trash.png deleted file mode 100644 index 4814afe0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/trash.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user.png deleted file mode 100644 index acbb5630..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user_group.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user_group.png deleted file mode 100644 index 4489ca23..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unassign_user_group.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unchecked.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unchecked.png deleted file mode 100644 index 02298a0e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unchecked.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/undo.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/undo.png deleted file mode 100644 index 750181e3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/undo.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlink.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlink.png deleted file mode 100644 index 52357530..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlink.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlock.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlock.png deleted file mode 100644 index a471765f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unlock.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unsubscribe.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unsubscribe.png deleted file mode 100644 index bde96ce1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/unsubscribe.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon.png deleted file mode 100644 index 58dbd4e1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon_white.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon_white.png deleted file mode 100644 index 20b47736..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/user_icon_white.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view.png deleted file mode 100644 index 709c52a3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_articles.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_articles.png deleted file mode 100644 index fe1ba4f9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_articles.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_instances.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_instances.png deleted file mode 100644 index a1bf65fb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_instances.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_locations.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_locations.png deleted file mode 100644 index 2384b41c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_locations.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_structures.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_structures.png deleted file mode 100644 index f7372f9d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_structures.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_tasks.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_tasks.png deleted file mode 100644 index 1a80af9f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_tasks.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_templates.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_templates.png deleted file mode 100644 index 321e5f6b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_templates.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_users.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_users.png deleted file mode 100644 index 51e5e868..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/view_users.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/welcome_message.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/welcome_message.png deleted file mode 100644 index e36806c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/common/welcome_message.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/button.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/button.png deleted file mode 100644 index 377f02c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/button.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/input_shadow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/input_shadow.png deleted file mode 100644 index 37c6f079..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/input_shadow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/panel_shadow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/panel_shadow.png deleted file mode 100644 index d9568143..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/panel_shadow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/selected.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/selected.png deleted file mode 100644 index a471ce0d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/control_panel/selected.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_active.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_active.png deleted file mode 100644 index 00afcfff..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_active.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_off.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_off.png deleted file mode 100644 index 9a5fec16..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/desktop_off.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_active.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_active.png deleted file mode 100644 index 5359a51e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_active.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_off.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_off.png deleted file mode 100644 index ba6debc5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/full_size_off.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_opacity.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_opacity.png deleted file mode 100644 index b9bbe410..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_opacity.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_with_arrow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_with_arrow.png deleted file mode 100644 index 7e5132dc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_horizontal_with_arrow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_off.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_off.png deleted file mode 100644 index 9121e0fc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_off.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_opacity.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_opacity.png deleted file mode 100644 index 042ddd6e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_opacity.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_with_arrow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_with_arrow.png deleted file mode 100644 index eefe420b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/mobile_vertical_with_arrow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_opacity.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_opacity.png deleted file mode 100644 index c3f15e2a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_opacity.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_with_arrow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_with_arrow.png deleted file mode 100644 index 62e929c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_horizontal_with_arrow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_off.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_off.png deleted file mode 100644 index 2f3add52..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_off.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_opacity.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_opacity.png deleted file mode 100644 index 8df7b5b7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_opacity.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_with_arrow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_with_arrow.png deleted file mode 100644 index 653e8f9c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/device_preview/tablet_vertical_with_arrow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/minus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/minus.png deleted file mode 100644 index b401177f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/minus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/plus.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/plus.png deleted file mode 100644 index 6fdf1813..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/plus.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/underline.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/underline.png deleted file mode 100644 index e062c560..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/diff/underline.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/button_active_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/button_active_bg.png deleted file mode 100644 index 39e02a1e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/button_active_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/checked.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/checked.png deleted file mode 100644 index f3b9d2c6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/checked.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/control_panel.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/control_panel.png deleted file mode 100644 index 0fa29555..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/control_panel.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/customizations.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/customizations.png deleted file mode 100644 index ab3100b5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/customizations.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/dockbar_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/dockbar_bg.png deleted file mode 100644 index 11075625..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/dockbar_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/pin.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/pin.png deleted file mode 100644 index 945d14af..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/pin.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/places.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/places.png deleted file mode 100644 index a7e83913..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/places.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/separator.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/separator.png deleted file mode 100644 index aaf321b5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/separator.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/settings.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/settings.png deleted file mode 100644 index 78142b61..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/settings.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/toggle_controls.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/toggle_controls.png deleted file mode 100644 index f3b9d2c6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/toggle_controls.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unchecked.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unchecked.png deleted file mode 100644 index 277fd7e0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unchecked.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unpin.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unpin.png deleted file mode 100644 index 030e55d3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/dockbar/unpin.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_document.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_document.png deleted file mode 100644 index 53325881..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_document.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_multiple_documents.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_multiple_documents.png deleted file mode 100644 index 21f7920a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/add_multiple_documents.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/msoffice.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/msoffice.png deleted file mode 100644 index a65bcb3e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/msoffice.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/page.png deleted file mode 100644 index fa214c65..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_left.png deleted file mode 100644 index df5f726b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_right.png deleted file mode 100644 index 4c9e5071..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_zoom.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_zoom.png deleted file mode 100644 index 41115246..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/document_library/preview_zoom.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/angry.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/angry.gif deleted file mode 100644 index 74a2df49..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/angry.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bashful.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bashful.gif deleted file mode 100644 index dff4f902..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bashful.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/big_grin.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/big_grin.gif deleted file mode 100644 index c72922f8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/big_grin.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blink.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blink.gif deleted file mode 100644 index eb3dfc10..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blink.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blush.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blush.gif deleted file mode 100644 index a1d0ece8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/blush.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bored.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bored.gif deleted file mode 100644 index 8351d1d3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/bored.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/closed_eyes.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/closed_eyes.gif deleted file mode 100644 index b4344f98..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/closed_eyes.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cold.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cold.gif deleted file mode 100644 index c9f0278e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cold.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cool.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cool.gif deleted file mode 100644 index 637f8734..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/cool.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/darth_vader.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/darth_vader.gif deleted file mode 100644 index fe7783b4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/darth_vader.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/dry.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/dry.gif deleted file mode 100644 index e0a5d9b6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/dry.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/exclamation.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/exclamation.gif deleted file mode 100644 index b23f21ef..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/exclamation.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/girl.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/girl.gif deleted file mode 100644 index deecd52a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/girl.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/glare.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/glare.gif deleted file mode 100644 index 6b0adbc0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/glare.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/happy.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/happy.gif deleted file mode 100644 index d5cdb940..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/happy.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/huh.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/huh.gif deleted file mode 100644 index c9fdaefd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/huh.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/in_love.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/in_love.gif deleted file mode 100644 index 162eeb64..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/in_love.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/karate_kid.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/karate_kid.gif deleted file mode 100644 index 09cacb90..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/karate_kid.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/kiss.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/kiss.gif deleted file mode 100644 index ec9b4280..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/kiss.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/laugh.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/laugh.gif deleted file mode 100644 index defcd084..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/laugh.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mad.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mad.gif deleted file mode 100644 index a57346a5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mad.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mellow.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mellow.gif deleted file mode 100644 index 528d3abd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/mellow.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/ninja.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/ninja.gif deleted file mode 100644 index 510dad1e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/ninja.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/oh_my.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/oh_my.gif deleted file mode 100644 index 6229bb1f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/oh_my.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/pac_man.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/pac_man.gif deleted file mode 100644 index 00c24dab..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/pac_man.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/roll_eyes.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/roll_eyes.gif deleted file mode 100644 index e06e2961..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/roll_eyes.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sad.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sad.gif deleted file mode 100644 index a5fa682d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sad.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sleep.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sleep.gif deleted file mode 100644 index c9a8a5f3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/sleep.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smile.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smile.gif deleted file mode 100644 index b59841e2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smile.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smug.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smug.gif deleted file mode 100644 index 15932763..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/smug.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/suspicious.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/suspicious.gif deleted file mode 100644 index 1c93c029..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/suspicious.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/tongue.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/tongue.gif deleted file mode 100644 index 865f94f3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/tongue.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/unsure.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/unsure.gif deleted file mode 100644 index 87da2323..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/unsure.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wacko.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wacko.gif deleted file mode 100644 index b23f0ab3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wacko.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wink.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wink.gif deleted file mode 100644 index a0a88eea..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wink.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wub.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wub.gif deleted file mode 100644 index 6d912db8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/emoticons/wub.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/favicon.ico b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/favicon.ico deleted file mode 100644 index 7871fca2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/favicon.ico and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/article.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/article.png deleted file mode 100644 index c958c6c3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/article.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/blog.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/blog.png deleted file mode 100644 index 6c143da1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/blog.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/bookmark.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/bookmark.png deleted file mode 100644 index 2aa19bac..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/bookmark.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/calendar.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/calendar.png deleted file mode 100644 index 09180da1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/calendar.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/compressed.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/compressed.png deleted file mode 100644 index 724428c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/compressed.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/default.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/default.png deleted file mode 100644 index 33f652b4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/default.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/document.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/document.png deleted file mode 100644 index d054ebf8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/document.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive.png deleted file mode 100644 index 18a8c6ec..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive_error.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive_error.png deleted file mode 100644 index fb7559ad..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/drive_error.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/flash.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/flash.png deleted file mode 100644 index 6330538e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/flash.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty.png deleted file mode 100644 index 48f8a55d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_article.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_article.png deleted file mode 100644 index 3412317c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_article.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_bookmark.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_bookmark.png deleted file mode 100644 index 7ef42847..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_bookmark.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_document.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_document.png deleted file mode 100644 index 7abfb36b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_empty_document.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_article.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_article.png deleted file mode 100644 index 2ff60445..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_article.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_bookmark.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_bookmark.png deleted file mode 100644 index f40cd341..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_bookmark.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_document.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_document.png deleted file mode 100644 index 93e0acf7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_document.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_image.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_image.png deleted file mode 100644 index 12732ce8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/folder_full_image.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/image.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/image.png deleted file mode 100644 index 4858b95a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/image.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/message.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/message.png deleted file mode 100644 index e4528c2d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/message.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/music.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/music.png deleted file mode 100644 index 44325921..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/music.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_link.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_link.png deleted file mode 100644 index 86176d99..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_link.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_lock.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_lock.png deleted file mode 100644 index f4f1a4a0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/overlay_lock.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/pdf.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/pdf.png deleted file mode 100644 index 2192771a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/pdf.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/presentation.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/presentation.png deleted file mode 100644 index ac9d9561..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/presentation.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/spreadsheet.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/spreadsheet.png deleted file mode 100644 index 67f4b3bc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/spreadsheet.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/task.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/task.png deleted file mode 100644 index f17f8ee5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/task.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/video.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/video.png deleted file mode 100644 index b45e78e0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/video.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/wiki_page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/wiki_page.png deleted file mode 100644 index 6410469d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/large/wiki_page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/bmp.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/bmp.png deleted file mode 100644 index 23a37b89..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/bmp.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/css.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/css.png deleted file mode 100644 index 769b9cfe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/css.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/csv.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/csv.png deleted file mode 100644 index 813f712f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/csv.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/doc.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/doc.png deleted file mode 100644 index 834cdfaf..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/doc.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/docx.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/docx.png deleted file mode 100644 index 834cdfaf..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/docx.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/dot.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/dot.png deleted file mode 100644 index ae8ecbf4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/dot.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gif.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gif.png deleted file mode 100644 index 134b6693..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gif.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gz.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gz.png deleted file mode 100644 index 66530bfd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/gz.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/htm.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/htm.png deleted file mode 100644 index 6ed2490e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/htm.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/html.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/html.png deleted file mode 100644 index 6ed2490e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/html.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpeg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpeg.png deleted file mode 100644 index 4a158fef..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpeg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpg.png deleted file mode 100644 index 4a158fef..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/jpg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/js.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/js.png deleted file mode 100644 index 8fcf0f09..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/js.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/lar.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/lar.png deleted file mode 100644 index b542e383..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/lar.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odb.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odb.png deleted file mode 100644 index be39ea61..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odb.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odf.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odf.png deleted file mode 100644 index 7e2f2285..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odf.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odg.png deleted file mode 100644 index 36387cb2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odp.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odp.png deleted file mode 100644 index 22386e7a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odp.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ods.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ods.png deleted file mode 100644 index ed446621..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ods.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odt.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odt.png deleted file mode 100644 index 9cf1659f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/odt.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/page.png deleted file mode 100644 index fa214c65..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pdf.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pdf.png deleted file mode 100644 index bde10555..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pdf.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/png.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/png.png deleted file mode 100644 index 4d482605..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/png.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ppt.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ppt.png deleted file mode 100644 index c4eff038..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/ppt.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pptx.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pptx.png deleted file mode 100644 index c4eff038..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/pptx.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/rtf.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/rtf.png deleted file mode 100644 index 3270a4ad..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/rtf.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/swf.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/swf.png deleted file mode 100644 index 756a82a3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/swf.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxc.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxc.png deleted file mode 100644 index 4d956c06..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxc.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxi.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxi.png deleted file mode 100644 index e75651b2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxi.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxw.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxw.png deleted file mode 100644 index 442e4d2f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/sxw.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tar.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tar.png deleted file mode 100644 index 66530bfd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tar.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tgz.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tgz.png deleted file mode 100644 index 66530bfd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tgz.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tiff.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tiff.png deleted file mode 100644 index 246a2f0b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tiff.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tsv.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tsv.png deleted file mode 100644 index 813f712f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/tsv.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/txt.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/txt.png deleted file mode 100644 index 813f712f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/txt.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/vsd.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/vsd.png deleted file mode 100644 index 4a1c64ea..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/vsd.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xls.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xls.png deleted file mode 100644 index e69f1d23..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xls.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xlsx.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xlsx.png deleted file mode 100644 index e69f1d23..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xlsx.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xml.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xml.png deleted file mode 100644 index 08a29aa9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/xml.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/zip.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/zip.png deleted file mode 100644 index 2b6b1007..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/file_system/small/zip.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/button.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/button.png deleted file mode 100644 index 377f02c9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/button.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/input_shadow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/input_shadow.png deleted file mode 100644 index 37c6f079..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/forms/input_shadow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/add_image.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/add_image.png deleted file mode 100644 index f0ec8fa1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/add_image.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/slide_show.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/slide_show.png deleted file mode 100644 index d9591c13..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/image_gallery_display/slide_show.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/checkbox.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/checkbox.png deleted file mode 100644 index ae06ea8c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/checkbox.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/document_library.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/document_library.png deleted file mode 100644 index 719e2541..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/document_library.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_arrow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_arrow.png deleted file mode 100644 index 6f75bfc0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_arrow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_bg.png deleted file mode 100644 index 12e537cd..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_close.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_close.png deleted file mode 100644 index 9da9dcca..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_builder_close.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_group.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_group.png deleted file mode 100644 index 3ed187e7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/form_group.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_gallery.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_gallery.png deleted file mode 100644 index 7a74a427..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_gallery.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_uploader.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_uploader.png deleted file mode 100644 index 62aaf898..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/image_uploader.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/link_to_page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/link_to_page.png deleted file mode 100644 index cadd31a5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/link_to_page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/multiselection_list.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/multiselection_list.png deleted file mode 100644 index c1aac253..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/multiselection_list.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/options.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/options.png deleted file mode 100644 index fd3af4ba..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/options.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selectbox.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selectbox.png deleted file mode 100644 index ab789f32..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selectbox.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selection_break.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selection_break.png deleted file mode 100644 index 083ea8c4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/selection_break.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/text_field.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/text_field.png deleted file mode 100644 index b3875fd4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/text_field.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textarea.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textarea.png deleted file mode 100644 index 046811ed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textarea.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textbox.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textbox.png deleted file mode 100644 index 5ffb809f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/journal/textbox.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ar_SA.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ar_SA.png deleted file mode 100644 index e784547f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ar_SA.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/bg_BG.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/bg_BG.png deleted file mode 100644 index 80242c2b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/bg_BG.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_AD.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_AD.png deleted file mode 100644 index 196a51df..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_AD.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_ES.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_ES.png deleted file mode 100644 index 82c81b7f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ca_ES.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/cs_CZ.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/cs_CZ.png deleted file mode 100644 index f75518ee..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/cs_CZ.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/da_DK.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/da_DK.png deleted file mode 100644 index 622cebd2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/da_DK.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/de_DE.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/de_DE.png deleted file mode 100644 index a59c0d62..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/de_DE.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/el_GR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/el_GR.png deleted file mode 100644 index 4fd5e40d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/el_GR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_AU.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_AU.png deleted file mode 100644 index a01389a7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_AU.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_GB.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_GB.png deleted file mode 100644 index 4576e0d6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_GB.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_US.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_US.png deleted file mode 100644 index 11a383a4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/en_US.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/es_ES.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/es_ES.png deleted file mode 100644 index 9c4d3811..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/es_ES.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/et_EE.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/et_EE.png deleted file mode 100644 index 0c82efb7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/et_EE.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/eu_ES.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/eu_ES.png deleted file mode 100644 index 38b606f0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/eu_ES.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fa_IR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fa_IR.png deleted file mode 100644 index 96755068..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fa_IR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fi_FI.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fi_FI.png deleted file mode 100644 index 723e16e0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fi_FI.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_CA.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_CA.png deleted file mode 100644 index 1f204193..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_CA.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_FR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_FR.png deleted file mode 100644 index 53029dc7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/fr_FR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/gl_ES.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/gl_ES.png deleted file mode 100644 index 2b9d6436..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/gl_ES.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hi_IN.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hi_IN.png deleted file mode 100644 index 98c04e2e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hi_IN.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hr_HR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hr_HR.png deleted file mode 100644 index 20c66c3a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hr_HR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hu_HU.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hu_HU.png deleted file mode 100644 index 052db103..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/hu_HU.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/in_ID.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/in_ID.png deleted file mode 100644 index c6bc0faf..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/in_ID.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/it_IT.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/it_IT.png deleted file mode 100644 index d22b5867..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/it_IT.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/iw_IL.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/iw_IL.png deleted file mode 100644 index 2ca772d0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/iw_IL.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ja_JP.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ja_JP.png deleted file mode 100644 index ef2cf475..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ja_JP.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ko_KR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ko_KR.png deleted file mode 100644 index b5fa385a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ko_KR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lo_LA.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lo_LA.png deleted file mode 100644 index 834de2da..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lo_LA.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lt_LT.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lt_LT.png deleted file mode 100644 index c8ef0da0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/lt_LT.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nb_NO.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nb_NO.png deleted file mode 100644 index 74264c58..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nb_NO.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_BE.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_BE.png deleted file mode 100644 index 12c10f46..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_BE.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_NL.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_NL.png deleted file mode 100644 index afc1a040..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/nl_NL.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pl_PL.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pl_PL.png deleted file mode 100644 index 32f088c2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pl_PL.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_BR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_BR.png deleted file mode 100644 index e41ed3e3..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_BR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_PT.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_PT.png deleted file mode 100644 index 50ba8aa2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/pt_PT.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ro_RO.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ro_RO.png deleted file mode 100644 index ee4b9da0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ro_RO.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ru_RU.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ru_RU.png deleted file mode 100644 index cf1366be..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/ru_RU.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sk_SK.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sk_SK.png deleted file mode 100644 index 53d286a6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sk_SK.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sl_SI.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sl_SI.png deleted file mode 100644 index ef41c0fc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sl_SI.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS.png deleted file mode 100644 index f1d17963..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS_latin.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS_latin.png deleted file mode 100644 index f1d17963..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sr_RS_latin.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sv_SE.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sv_SE.png deleted file mode 100644 index 2a74e78c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/sv_SE.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/tr_TR.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/tr_TR.png deleted file mode 100644 index 41263065..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/tr_TR.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/uk_UA.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/uk_UA.png deleted file mode 100644 index bf96f0e4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/uk_UA.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/vi_VN.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/vi_VN.png deleted file mode 100644 index 2a1b9fb8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/vi_VN.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_CN.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_CN.png deleted file mode 100644 index 83f18392..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_CN.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_TW.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_TW.png deleted file mode 100644 index 47d14b7e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/language/zh_TW.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/login/facebook_login_button.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/login/facebook_login_button.png deleted file mode 100644 index 0fce06a4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/login/facebook_login_button.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/add_folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/add_folder.png deleted file mode 100644 index 6f395062..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/add_folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/check_mail.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/check_mail.png deleted file mode 100644 index ea205a6d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/check_mail.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/clip.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/clip.png deleted file mode 100644 index 96c0bca1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/clip.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/compose.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/compose.png deleted file mode 100644 index d7fa2f99..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/compose.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete.png deleted file mode 100644 index 3f6fcc52..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete_folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete_folder.png deleted file mode 100644 index d23ccdc4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/delete_folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_draft.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_draft.png deleted file mode 100644 index 940ff090..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_draft.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_folder.png deleted file mode 100644 index ad669cc7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/edit_folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/flagged.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/flagged.png deleted file mode 100644 index e6320242..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/flagged.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/forward.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/forward.png deleted file mode 100644 index 4a6c5d39..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/forward.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/move.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/move.png deleted file mode 100644 index ee61ec47..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/move.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/print.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/print.png deleted file mode 100644 index a350d187..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/print.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/read.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/read.png deleted file mode 100644 index 7b6f9813..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/read.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/rename_folder.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/rename_folder.png deleted file mode 100644 index dde1866d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/rename_folder.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/replied.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/replied.png deleted file mode 100644 index ee273130..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/replied.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply.png deleted file mode 100644 index bcd5fd62..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply_all.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply_all.png deleted file mode 100644 index b8025c3e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/reply_all.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/unread.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/unread.png deleted file mode 100644 index 7348aed7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/mail/unread.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ban_user.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ban_user.png deleted file mode 100644 index acbb5630..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ban_user.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/bold.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/bold.png deleted file mode 100644 index 51ddb888..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/bold.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/code.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/code.png deleted file mode 100644 index 87a69145..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/code.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/color.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/color.png deleted file mode 100644 index 161c702b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/color.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/email.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/email.png deleted file mode 100644 index 7348aed7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/email.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/hyperlink.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/hyperlink.png deleted file mode 100644 index 25eacb7c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/hyperlink.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/image.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/image.png deleted file mode 100644 index 6c2aaaaa..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/image.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/indent.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/indent.png deleted file mode 100644 index 93645323..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/indent.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/italic.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/italic.png deleted file mode 100644 index 8482ac8c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/italic.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_center.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_center.png deleted file mode 100644 index 57beb381..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_center.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_left.png deleted file mode 100644 index 6c8fcc11..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_right.png deleted file mode 100644 index a1502571..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/justify_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/l.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/l.png deleted file mode 100644 index 53981071..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/l.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ordered_list.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ordered_list.png deleted file mode 100644 index 7f95bbbe..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/ordered_list.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_announcement.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_announcement.png deleted file mode 100644 index cd6b41d8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_announcement.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_sticky.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_sticky.png deleted file mode 100644 index 9fc5a0a1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_sticky.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_urgent.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_urgent.png deleted file mode 100644 index 9680afd1..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/priority_urgent.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quote.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quote.png deleted file mode 100644 index 53bcbf23..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quote.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteleft.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteleft.png deleted file mode 100644 index 2454080a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteleft.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteright.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteright.png deleted file mode 100644 index 97d1eb93..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/quoteright.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/spacer.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/spacer.png deleted file mode 100644 index b7a13a30..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/spacer.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/strike.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/strike.png deleted file mode 100644 index 612058a7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/strike.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/t.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/t.png deleted file mode 100644 index 4e561d5c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/t.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_combination.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_combination.png deleted file mode 100644 index cd289310..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_combination.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_flat.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_flat.png deleted file mode 100644 index acc30b85..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_flat.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_tree.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_tree.png deleted file mode 100644 index de7f2b24..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/thread_view_tree.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unban_user.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unban_user.png deleted file mode 100644 index deae99bc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unban_user.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/underline.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/underline.png deleted file mode 100644 index 90d0df28..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/underline.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unordered_list.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unordered_list.png deleted file mode 100644 index c1aac253..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/message_boards/unordered_list.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/alert.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/alert.png deleted file mode 100644 index 628cf2da..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/alert.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/error.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/error.png deleted file mode 100644 index c37bd062..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/error.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/info.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/info.png deleted file mode 100644 index d22fde8b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/info.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/success.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/success.png deleted file mode 100644 index b4d03d07..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/messages/success.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/add_page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/add_page.png deleted file mode 100644 index 53325881..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/add_page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/bg.png deleted file mode 100644 index fd0ec0df..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/navigation/bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/back.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/back.png deleted file mode 100644 index 1faf015f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/back.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close.png deleted file mode 100644 index 452a4b73..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close_borderless.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close_borderless.png deleted file mode 100644 index d3810dda..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/close_borderless.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/configuration.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/configuration.png deleted file mode 100644 index 8bf76fbb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/configuration.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/draggable_borderless.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/draggable_borderless.png deleted file mode 100644 index df8defbc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/draggable_borderless.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit.png deleted file mode 100644 index 046811ed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_borderless.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_borderless.png deleted file mode 100644 index dd989ec9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_borderless.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_defaults.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_defaults.png deleted file mode 100644 index c1974cda..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_defaults.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_guest.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_guest.png deleted file mode 100644 index c1974cda..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/edit_guest.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/header_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/header_bg.png deleted file mode 100644 index f6c4e22f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/header_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/help.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/help.png deleted file mode 100644 index 10bc089f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/help.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/maximize.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/maximize.png deleted file mode 100644 index a5696ddb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/maximize.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/minimize.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/minimize.png deleted file mode 100644 index 0327a30e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/minimize.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options.png deleted file mode 100644 index 5cd9b317..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_borderless.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_borderless.png deleted file mode 100644 index 7c1cf93f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_borderless.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_selected.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_selected.png deleted file mode 100644 index 26276c15..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/options_selected.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/placeholder_bg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/placeholder_bg.png deleted file mode 100644 index 662f3181..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/placeholder_bg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/pop_up.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/pop_up.png deleted file mode 100644 index 647592f2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/pop_up.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css.png deleted file mode 100644 index 73c5b3f2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css_borderless.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css_borderless.png deleted file mode 100644 index 73664845..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/portlet_css_borderless.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/print.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/print.png deleted file mode 100644 index a350d187..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/print.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/refresh.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/refresh.png deleted file mode 100644 index 0de26566..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/refresh.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/restore.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/restore.png deleted file mode 100644 index d43cd4fc..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/portlet/restore.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_left.png deleted file mode 100644 index 56a8d765..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_middle.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_middle.png deleted file mode 100644 index addeaed9..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_middle.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_right.png deleted file mode 100644 index 6ed765ba..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/complete_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_left.png deleted file mode 100644 index 56887412..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_middle.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_middle.png deleted file mode 100644 index 23ef4582..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_middle.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_right.png deleted file mode 100644 index c459f148..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/incomplete_right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/loading_animation.gif b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/loading_animation.gif deleted file mode 100644 index 38855828..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/progress_bar/loading_animation.gif and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon.png deleted file mode 100644 index 20496999..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon_hover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon_hover.png deleted file mode 100644 index f640258f..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/flagged_icon_hover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_hover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_hover.png deleted file mode 100644 index f0c7ccab..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_hover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_off.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_off.png deleted file mode 100644 index 9a36bf54..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_off.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on.png deleted file mode 100644 index c1295d4b..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_half.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_half.png deleted file mode 100644 index 29d3f9fb..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_half.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_quarter.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_quarter.png deleted file mode 100644 index 0434e282..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_quarter.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_threequarters.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_threequarters.png deleted file mode 100644 index 00b7e0ae..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/star_on_threequarters.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_cancel_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_cancel_icon.png deleted file mode 100644 index adcae70d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_cancel_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon.png deleted file mode 100644 index 2064cf19..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon_hover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon_hover.png deleted file mode 100644 index 5200c7ac..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_down_icon_hover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon.png deleted file mode 100644 index d2fcea73..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon_hover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon_hover.png deleted file mode 100644 index 64b88205..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/ratings/thumbs_up_icon_hover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/screenshot.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/screenshot.png deleted file mode 100644 index 125d5796..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/screenshot.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/left.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/left.png deleted file mode 100644 index c3a8bb40..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/left.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/middle.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/middle.png deleted file mode 100644 index 30e29d2d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/middle.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/right.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/right.png deleted file mode 100644 index 68e83091..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shadow/right.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cart.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cart.png deleted file mode 100644 index 4f78fb19..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cart.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_amex.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_amex.png deleted file mode 100644 index c72812f2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_amex.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_discover.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_discover.png deleted file mode 100644 index 691ce5ed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_discover.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_mastercard.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_mastercard.png deleted file mode 100644 index ed8a7faf..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_mastercard.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_paypal.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_paypal.png deleted file mode 100644 index 480fd475..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_paypal.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_ver_number.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_ver_number.png deleted file mode 100644 index dcf5e4e6..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_ver_number.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_visa.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_visa.png deleted file mode 100644 index b1b85031..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/shopping/cc_visa.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_coworker.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_coworker.png deleted file mode 100644 index bb9d345d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_coworker.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_friend.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_friend.png deleted file mode 100644 index 07dfb42a..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/add_friend.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/block.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/block.png deleted file mode 100644 index 8bf9f011..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/block.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/coworker.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/coworker.png deleted file mode 100644 index 4a62cf33..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/coworker.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follow.png deleted file mode 100644 index 1f5c8174..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follower.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follower.png deleted file mode 100644 index 1f99a0c5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/follower.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/following.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/following.png deleted file mode 100644 index ece70358..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/following.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/friend.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/friend.png deleted file mode 100644 index b72d72b4..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/friend.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_coworker.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_coworker.png deleted file mode 100644 index 95599815..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_coworker.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_friend.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_friend.png deleted file mode 100644 index aa7caa65..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/remove_friend.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unblock.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unblock.png deleted file mode 100644 index 41e6af97..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unblock.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unfollow.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unfollow.png deleted file mode 100644 index b329284d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social/unfollow.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/digg.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/digg.png deleted file mode 100644 index 56254294..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/digg.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/facebook.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/facebook.png deleted file mode 100644 index 66475863..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/facebook.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/furl.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/furl.png deleted file mode 100644 index 4de95fe5..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/furl.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/reddit.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/reddit.png deleted file mode 100644 index 2f92e25d..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/social_bookmarks/reddit.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/spacer.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/spacer.png deleted file mode 100644 index 79e8d9de..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/spacer.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/live.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/live.png deleted file mode 100644 index b1f086f2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/live.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/staging.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/staging.png deleted file mode 100644 index 49bf43b7..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/staging_bar/staging.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/collapse_all.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/collapse_all.png deleted file mode 100644 index 4b4516d2..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/collapse_all.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/expand_all.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/expand_all.png deleted file mode 100644 index 692eaa10..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/expand_all.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page.png deleted file mode 100644 index 8b8b1ca0..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_copy.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_copy.png deleted file mode 100644 index a9f31a27..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_copy.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_locked.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_locked.png deleted file mode 100644 index 988bfec8..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/page_locked.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/root.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/root.png deleted file mode 100644 index be39ea61..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/trees/root.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/facebook.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/facebook.png deleted file mode 100644 index 2a78bfed..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/facebook.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/twitter.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/twitter.png deleted file mode 100644 index f530010c..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/users_admin/twitter.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/external.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/external.png deleted file mode 100644 index 4607acab..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/external.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/return_to_page.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/return_to_page.png deleted file mode 100644 index 8741023e..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/return_to_page.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/tab.png b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/tab.png deleted file mode 100644 index 344e74aa..00000000 Binary files a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/images/wiki/tab.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/js/main.js b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/js/main.js deleted file mode 100644 index ead4590b..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/js/main.js +++ /dev/null @@ -1,35 +0,0 @@ -AUI().ready( - - /* - This function gets loaded when all the HTML, not including the portlets, is - loaded. - */ - - function() { - } -); - -Liferay.Portlet.ready( - - /* - This function gets loaded after each and every portlet on the page. - - portletId: the current portlet's id - node: the Alloy Node object of the current portlet - */ - - function(portletId, node) { - } -); - -Liferay.on( - 'allPortletsReady', - - /* - This function gets loaded when everything, including the portlets, is on - the page. - */ - - function() { - } -); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/init_custom.ftl b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/init_custom.ftl deleted file mode 100644 index 8744130c..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/init_custom.ftl +++ /dev/null @@ -1,3 +0,0 @@ -<#-- -This file allows you to override and define new FreeMarker variables. ---> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/navigation.ftl b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/navigation.ftl deleted file mode 100644 index 9d29a4e9..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/navigation.ftl +++ /dev/null @@ -1,37 +0,0 @@ - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_normal.ftl b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_normal.ftl deleted file mode 100644 index 725164cb..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_normal.ftl +++ /dev/null @@ -1,81 +0,0 @@ - - -<#include init /> - -" lang="${w3c_language_id}"> - - - ${the_title} - ${company_name} - - - - ${theme.include(top_head_include)} - - - - -<@liferay.language key="skip-to-content" /> - -${theme.include(body_top_include)} - -<#if is_signed_in> - <@liferay.dockbar /> - - -
    - - -
    - - - <#if selectable> - ${theme.include(content_include)} - <#else> - ${portletDisplay.recycle()} - - ${portletDisplay.setTitle(the_title)} - - ${theme.wrapPortlet("portlet.ftl", content_include)} - -
    - -
    -

    - <@liferay.language key="powered-by" /> Liferay -

    -
    -
    - -${theme.include(body_bottom_include)} - -${theme.include(bottom_include)} - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_pop_up.ftl b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_pop_up.ftl deleted file mode 100644 index bb25283f..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portal_pop_up.ftl +++ /dev/null @@ -1,21 +0,0 @@ - - -<#include init /> - -" lang="${w3c_language_id}"> - - - ${the_title} - - ${theme.include(top_head_include)} - - - - -${theme.include(content_include)} - -${theme.include(bottom_ext_include)} - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portlet.ftl b/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portlet.ftl deleted file mode 100644 index 052d7057..00000000 --- a/liferay-plugins-sdk-6.2/themes/provatema-theme/docroot/templates/portlet.ftl +++ /dev/null @@ -1,25 +0,0 @@ -<#assign portlet_display = portletDisplay /> - -<#assign portlet_id = htmlUtil.escapeAttribute(portlet_display.getId()) /> -<#assign portlet_title = htmlUtil.escape(portlet_display.getTitle()) /> -<#assign portlet_back_url = htmlUtil.escapeHREF(portlet_display.getURLBack()) /> - -
    -
    -

    - ${theme.portletIconPortlet()} ${portlet_title} -

    - - - <#if portlet_display.isShowBackIcon()> - <@liferay.language key="return-to-full-page" /> - <#else> - ${theme.portletIconOptions()} - - -
    - -
    - ${portlet_display.writeContent(writer)} -
    -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/.classpath b/liferay-plugins-sdk-6.2/webs/elasticray-web/.classpath index 58aeed73..31fed00b 100644 --- a/liferay-plugins-sdk-6.2/webs/elasticray-web/.classpath +++ b/liferay-plugins-sdk-6.2/webs/elasticray-web/.classpath @@ -1,7 +1,7 @@ - + diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/webs/elasticray-web/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..f42de363 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/elasticray-web/.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 diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/HdrHistogram.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/HdrHistogram.jar deleted file mode 100644 index 04eb3807..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/HdrHistogram.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/commons-cli.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/commons-cli.jar deleted file mode 100644 index c3e7a1f4..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/commons-cli.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/compress-lzf.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/compress-lzf.jar deleted file mode 100644 index 43f6ab82..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/compress-lzf.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/delete-by-query.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/delete-by-query.jar deleted file mode 100644 index 047b4e91..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/delete-by-query.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticray-web-service.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticray-web-service.jar deleted file mode 100644 index 6d92a9a5..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticray-web-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticsearch.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticsearch.jar deleted file mode 100644 index 2b5633e0..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/elasticsearch.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/guava.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/guava.jar deleted file mode 100644 index 8f89e490..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/guava.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/hppc.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/hppc.jar deleted file mode 100644 index ed318de2..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/hppc.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-core.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-core.jar deleted file mode 100644 index a7d87f06..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-core.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-cbor.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-cbor.jar deleted file mode 100644 index c924e638..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-cbor.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-smile.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-smile.jar deleted file mode 100644 index 34113c01..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-smile.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-yaml.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-yaml.jar deleted file mode 100644 index f2bb0c6e..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jackson-dataformat-yaml.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-convert.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-convert.jar deleted file mode 100644 index 1ab39250..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-convert.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-time.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-time.jar deleted file mode 100644 index 05960ff1..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/joda-time.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jsr166e.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jsr166e.jar deleted file mode 100644 index 87b62312..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/jsr166e.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-analyzers-common.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-analyzers-common.jar deleted file mode 100644 index f4706ba9..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-analyzers-common.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-backward-codecs.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-backward-codecs.jar deleted file mode 100644 index 6be43920..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-backward-codecs.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-core.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-core.jar deleted file mode 100644 index ef6a4601..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-core.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-grouping.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-grouping.jar deleted file mode 100644 index b29482ae..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-grouping.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-highlighter.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-highlighter.jar deleted file mode 100644 index b7d9e45f..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-highlighter.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-join.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-join.jar deleted file mode 100644 index d6b436ca..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-join.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-memory.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-memory.jar deleted file mode 100644 index 81c1acdd..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-memory.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-misc.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-misc.jar deleted file mode 100644 index 789a77f4..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-misc.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queries.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queries.jar deleted file mode 100644 index 895138ab..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queries.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queryparser.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queryparser.jar deleted file mode 100644 index e69bb905..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-queryparser.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-sandbox.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-sandbox.jar deleted file mode 100644 index 8b438514..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-sandbox.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial.jar deleted file mode 100644 index adcbae78..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial3d.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial3d.jar deleted file mode 100644 index 46774975..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-spatial3d.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-suggest.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-suggest.jar deleted file mode 100644 index 191a0b3d..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/lucene-suggest.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/netty.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/netty.jar deleted file mode 100644 index 14eee7e8..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/netty.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/securesm.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/securesm.jar deleted file mode 100644 index b69fd3c9..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/securesm.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/snakeyaml.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/snakeyaml.jar deleted file mode 100644 index 34084e33..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/snakeyaml.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/spatial4j.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/spatial4j.jar deleted file mode 100644 index 02fa52ea..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/spatial4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/t-digest.jar b/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/t-digest.jar deleted file mode 100644 index cfb29bcc..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/elasticray-web/docroot/WEB-INF/lib/t-digest.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/elasticray-web/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/webs/elasticray-web/ivy.xml.MD5 index ed7ff943..666324a8 100644 --- a/liferay-plugins-sdk-6.2/webs/elasticray-web/ivy.xml.MD5 +++ b/liferay-plugins-sdk-6.2/webs/elasticray-web/ivy.xml.MD5 @@ -1 +1 @@ -6b77cff24775c2e999f05b9b92ee4026 +349605b488d054b6791b928de85f1e0c diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath index 3b91f242..50ef1a48 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath @@ -1,7 +1,6 @@ - @@ -13,7 +12,9 @@ - + + + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project index e24191b0..32a08cf6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492646 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/.jsdtscope b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/.jsdtscope deleted file mode 100644 index 840a01d5..00000000 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.component index 327bdb00..41563df5 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.component @@ -2,7 +2,10 @@ - + + uses + + uses diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml index f943704c..79341bdc 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -2,9 +2,7 @@ - - - + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.container b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4..00000000 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.name b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6..00000000 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/MANIFEST.MF index 5e949512..254272e1 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/MANIFEST.MF +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/MANIFEST.MF @@ -1,3 +1,3 @@ -Manifest-Version: 1.0 -Class-Path: - +Manifest-Version: 1.0 +Class-Path: + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/js/liferay/workflow.js b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/js/liferay/workflow.js index 1a9f4fce..8411e2e6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/js/liferay/workflow.js +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/js/liferay/workflow.js @@ -1,95 +1,95 @@ - -Liferay.Workflow = { - ACTION_PUBLISH: 1, - - ACTION_SAVE_DRAFT: 2, - - STATUS_ANY: -1, - - STATUS_APPROVED: 0, - - STATUS_DENIED: 4, - - STATUS_DRAFT: 2, - - STATUS_EXPIRED: 3, - - STATUS_PENDING: 1 -}; - -Liferay.Workflow.Kaleo = { - DDM_STRUCTURE: [ - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-boolean', - label: Liferay.Language.get('boolean'), - type: 'checkbox' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-calendar', - label: Liferay.Language.get('date'), - type: 'ddm-date' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-decimal', - label: Liferay.Language.get('decimal'), - type: 'ddm-decimal' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-file-text', - label: Liferay.Language.get('documents-and-media'), - type: 'ddm-documentlibrary' - }, - /*{ - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-edit-sign', - label: Liferay.Language.get('html'), - type: 'ddm-text-html' - },*/ - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-integer', - label: Liferay.Language.get('integer'), - type: 'ddm-integer' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-link', - label: Liferay.Language.get('link-to-page'), - type: 'ddm-link-to-page' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-number', - label: Liferay.Language.get('number'), - type: 'ddm-number' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-radio', - label: Liferay.Language.get('radio'), - type: 'radio' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-select', - label: Liferay.Language.get('select'), - type: 'select' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-text', - label: Liferay.Language.get('text'), - type: 'text' - }, - { - hiddenAttributes: ['readOnly', 'repeatable'], - iconClass: 'icon-fb-text-box', - label: Liferay.Language.get('text-box'), - type: 'textarea' - } - ] + +Liferay.Workflow = { + ACTION_PUBLISH: 1, + + ACTION_SAVE_DRAFT: 2, + + STATUS_ANY: -1, + + STATUS_APPROVED: 0, + + STATUS_DENIED: 4, + + STATUS_DRAFT: 2, + + STATUS_EXPIRED: 3, + + STATUS_PENDING: 1 +}; + +Liferay.Workflow.Kaleo = { + DDM_STRUCTURE: [ + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-boolean', + label: Liferay.Language.get('boolean'), + type: 'checkbox' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-calendar', + label: Liferay.Language.get('date'), + type: 'ddm-date' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-decimal', + label: Liferay.Language.get('decimal'), + type: 'ddm-decimal' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-file-text', + label: Liferay.Language.get('documents-and-media'), + type: 'ddm-documentlibrary' + }, + /*{ + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-edit-sign', + label: Liferay.Language.get('html'), + type: 'ddm-text-html' + },*/ + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-integer', + label: Liferay.Language.get('integer'), + type: 'ddm-integer' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-link', + label: Liferay.Language.get('link-to-page'), + type: 'ddm-link-to-page' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-number', + label: Liferay.Language.get('number'), + type: 'ddm-number' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-radio', + label: Liferay.Language.get('radio'), + type: 'radio' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-select', + label: Liferay.Language.get('select'), + type: 'select' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-text', + label: Liferay.Language.get('text'), + type: 'text' + }, + { + hiddenAttributes: ['readOnly', 'repeatable'], + iconClass: 'icon-fb-text-box', + label: Liferay.Language.get('text-box'), + type: 'textarea' + } + ] } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_definitions/css/main.css b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_definitions/css/main.css index 4e76188d..d6b347fa 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_definitions/css/main.css +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_definitions/css/main.css @@ -1,135 +1,135 @@ -.lfr-asset-column-details { - .lfr-asset-title .lfr-asset-actions img { - margin-left: 5px; - } - - .lfr-asset-actions { - float: right; - font-size: 11px; - font-weight: normal; - margin-bottom: 3px; - margin-top: 0; - } - - .task-activity { - padding: 5px 5px 5px 25px; - } - - .task-activity-date { - font-weight: bold; - } - - .lfr-asset-assigned, .lfr-asset-due-date, .task-type-0, .task-type-1, .task-type-2, .task-type-3, .lfr-asset-date, .lfr-asset-status { - background: url() no-repeat 0 50%; - } - - .lfr-asset-assigned { - background-image: url(@theme_image_path@/common/assign.png); - margin-right: 10px; - padding-left: 25px; - padding-right: 10px; - } - - h3.task-content-title { - margin-top: 0; - border-bottom: 1px solid #ddd; - } - - .task-panel-container .lfr-panel-content { - padding: 0.7em; - } - - .task-content-actions { - float: right; - } - - .lfr-asset-date { - background: url(@theme_image_path@/common/date.png) no-repeat 0 50%; - } - - .lfr-asset-due-date { - background-image: url(@theme_image_path@/common/time.png); - padding-left: 25px; - } - - .task-type-0 { - background-image: url(@theme_image_path@/common/submit.png); - } - - .task-type-1 { - background-image: url(@theme_image_path@/common/assign.png); - } - - .task-type-2 { - background-image: url(@theme_image_path@/common/time.png); - } - - .task-type-3 { - background-image: url(@theme_image_path@/common/recent_changes.png); - } - - .lfr-asset-date { - margin-right: 10px; - overflow: auto; - padding-left: 25px; - padding-right: 10px; - } - - .lfr-asset-status { - background-image: url(@theme_image_path@/common/recent_changes.png); - padding-left: 25px; - padding-right: 10px; - } - - .asset-metadata { - border-top: 1px solid #DDD; - background-color: #EFEFEF; - padding: 0.5em; - margin: 2em 0 0; - - span { - display: inline; - } - } - - .metadata-author { - background: url(@theme_image_path@/portlet/edit_guest.png) no-repeat 0 0; - font-weight: bold; - margin-right: 10px; - padding-left: 25px; - padding-bottom: 5px; - } - - .metadata-entry { - clear: both; - color: #999; - display: block; - } - - .metadata-modified-date, .metadata-create-date, .metadata-publish-date, .metadata-expiration-date { - background: url(@theme_image_path@/common/date.png) no-repeat 0 0; - color: #999; - margin-bottom: 1em; - padding-left: 25px; - } - - .metadata-priority { - background: url(@theme_image_path@/common/top.png) no-repeat 0 20%; - margin-right: 10px; - padding-left: 25px; - } - - .metadata-view-count { - margin-right: 10px; - } - - .vertical-separator { - border-right: 1px solid #CCC; - margin: 0 10px; - padding-top: 0.1em; - } -} - -#workflowTasksPanelContainer { - border-width: 0; +.lfr-asset-column-details { + .lfr-asset-title .lfr-asset-actions img { + margin-left: 5px; + } + + .lfr-asset-actions { + float: right; + font-size: 11px; + font-weight: normal; + margin-bottom: 3px; + margin-top: 0; + } + + .task-activity { + padding: 5px 5px 5px 25px; + } + + .task-activity-date { + font-weight: bold; + } + + .lfr-asset-assigned, .lfr-asset-due-date, .task-type-0, .task-type-1, .task-type-2, .task-type-3, .lfr-asset-date, .lfr-asset-status { + background: url() no-repeat 0 50%; + } + + .lfr-asset-assigned { + background-image: url(@theme_image_path@/common/assign.png); + margin-right: 10px; + padding-left: 25px; + padding-right: 10px; + } + + h3.task-content-title { + margin-top: 0; + border-bottom: 1px solid #ddd; + } + + .task-panel-container .lfr-panel-content { + padding: 0.7em; + } + + .task-content-actions { + float: right; + } + + .lfr-asset-date { + background: url(@theme_image_path@/common/date.png) no-repeat 0 50%; + } + + .lfr-asset-due-date { + background-image: url(@theme_image_path@/common/time.png); + padding-left: 25px; + } + + .task-type-0 { + background-image: url(@theme_image_path@/common/submit.png); + } + + .task-type-1 { + background-image: url(@theme_image_path@/common/assign.png); + } + + .task-type-2 { + background-image: url(@theme_image_path@/common/time.png); + } + + .task-type-3 { + background-image: url(@theme_image_path@/common/recent_changes.png); + } + + .lfr-asset-date { + margin-right: 10px; + overflow: auto; + padding-left: 25px; + padding-right: 10px; + } + + .lfr-asset-status { + background-image: url(@theme_image_path@/common/recent_changes.png); + padding-left: 25px; + padding-right: 10px; + } + + .asset-metadata { + border-top: 1px solid #DDD; + background-color: #EFEFEF; + padding: 0.5em; + margin: 2em 0 0; + + span { + display: inline; + } + } + + .metadata-author { + background: url(@theme_image_path@/portlet/edit_guest.png) no-repeat 0 0; + font-weight: bold; + margin-right: 10px; + padding-left: 25px; + padding-bottom: 5px; + } + + .metadata-entry { + clear: both; + color: #999; + display: block; + } + + .metadata-modified-date, .metadata-create-date, .metadata-publish-date, .metadata-expiration-date { + background: url(@theme_image_path@/common/date.png) no-repeat 0 0; + color: #999; + margin-bottom: 1em; + padding-left: 25px; + } + + .metadata-priority { + background: url(@theme_image_path@/common/top.png) no-repeat 0 20%; + margin-right: 10px; + padding-left: 25px; + } + + .metadata-view-count { + margin-right: 10px; + } + + .vertical-separator { + border-right: 1px solid #CCC; + margin: 0 10px; + padding-top: 0.1em; + } +} + +#workflowTasksPanelContainer { + border-width: 0; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/js/main.js b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/js/main.js index 33c5832e..eceb791c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/js/main.js +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/js/main.js @@ -1,201 +1,201 @@ -AUI.add( - 'liferay-workflow-tasks', - function(A) { - var WorkflowTasks = { - onTaskClick: function(event, randomId) { - var instance = this; - - var icon = event.currentTarget; - var li = icon.get('parentNode'); - - event.preventDefault(); - - var content = null; - - if (li.hasClass('task-due-date-link')) { - content = '#' + randomId + 'updateDueDate'; - } - else if (li.hasClass('task-assign-to-me-link')) { - content = '#' + randomId + 'updateAsigneeToMe'; - } - else if (li.hasClass('task-assign-link')) { - content = '#' + randomId + 'updateAsignee'; - } - - title = icon.text(); - - var validationURL = icon.attr('data-href-validation'); - - WorkflowTasks.showPopup(icon.attr('href'), A.one(content), title, randomId, validationURL); - }, - - renderForm: function(event, randomId) { - var instance = this; - - // reset - var form = A.one('#' + randomId + 'form'); - if (form) { - form.empty(); - } - var formError = A.one('#' + randomId + 'formError'); - if (formError) { - formError.empty(); - } - - instance.onTaskClick(event, randomId); - - var icon = event.currentTarget; - - var renderFormURL = icon.attr('data-href-render-form'); - - A.one('#' + randomId + 'updateComments').plug(A.LoadingMask, {}); - - A.io.request(renderFormURL, { - dataType: 'html', - on: { - start: function() { - A.one('#' + randomId + 'updateComments').loadingmask.show(); - A.all('.modal-footer').each(function(item, index, collection) { - item.all('button').each(function(item, index, collection) { - item.set('disabled', true); - item.setStyle('opacity', 0.5); - }); - }); - }, - complete: function() { - A.one('#' + randomId + 'updateComments').loadingmask.hide(); - }, - success: function() { - - var contentNode = A.one('#' + randomId + 'form'); - var contentErrorNode = A.one('#' + randomId + 'formError'); - - contentNode.html(this.get('responseData')); - - if (!contentNode.one('.lfr-ddm-container')) { - contentNode.empty(); - contentNode.hide(); - contentErrorNode.hide(); - } else { - contentNode.append('
    '); - contentNode.show(); - contentErrorNode.show(); - } - - A.all('.modal-footer').each(function(item, index, collection) { - item.all('button').each(function(item, index, collection) { - item.set('disabled', false); - item.setStyle('opacity', 1); - }); - }); - A.all('script').each(function(item, index, collection) { - if (item.getHTML() != '') { - eval(item.getHTML()); - } - }); - } - } - }); - }, - - showPopup: function(url, content, title, randomId, validationURL) { - var form = A.Node.create('
    '); - - form.setAttribute('action', url); - form.setAttribute('method', 'POST'); - - var comments = A.one('#' + randomId + 'updateComments'); - - if (content) { - form.append(content); - content.show(); - } - - if (comments) { - form.append(comments); - comments.show(); - } - - var dialog = Liferay.Util.Window.getWindow( - { - dialog: { - bodyContent: form, - height: 800, - toolbars: { - footer: [ - { - label: Liferay.Language.get('ok'), - on: { - click: function() { - if (!validationURL) { - submitForm(form); - } else { - A.one('#' + randomId + 'formError').empty(); - A.io.request(validationURL, { - method: 'POST', - dataType: 'json', - form: { - id: A.one('#fm_' + randomId) - }, - on: { - start: function() { - A.one('#' + randomId + 'updateComments').loadingmask.show(); - A.all('.modal-footer').each(function(item, index, collection) { - item.all('button').each(function(item, index, collection) { - item.set('disabled', true); - item.setStyle('opacity', 0.5); - }); - }); - }, - complete: function() { - A.one('#' + randomId + 'updateComments').loadingmask.hide(); - }, - success: function() { - var responseData = this.get('responseData'); - if (responseData.valid) { - submitForm(form); - } else { - var message = ''; - for (var i = 0; i < responseData.messages.length; i++) { - message += "
    " + Liferay.Language.get(responseData.messages[i]) + "
    "; - } - A.one('#' + randomId + 'formError').html(message); - } - A.all('.modal-footer').each(function(item, index, collection) { - item.all('button').each(function(item, index, collection) { - item.set('disabled', false); - item.setStyle('opacity', 1); - }); - }); - } - } - }); - } - } - } - }, - { - label: Liferay.Language.get('cancel'), - on: { - click: function() { - dialog.hide(); - } - } - } - ] - }, - width: 800 - }, - title: title - } - ); - } - }; - - Liferay.WorkflowTasks = WorkflowTasks; - }, - '', - { - requires: ['liferay-util-window'] - } +AUI.add( + 'liferay-workflow-tasks', + function(A) { + var WorkflowTasks = { + onTaskClick: function(event, randomId) { + var instance = this; + + var icon = event.currentTarget; + var li = icon.get('parentNode'); + + event.preventDefault(); + + var content = null; + + if (li.hasClass('task-due-date-link')) { + content = '#' + randomId + 'updateDueDate'; + } + else if (li.hasClass('task-assign-to-me-link')) { + content = '#' + randomId + 'updateAsigneeToMe'; + } + else if (li.hasClass('task-assign-link')) { + content = '#' + randomId + 'updateAsignee'; + } + + title = icon.text(); + + var validationURL = icon.attr('data-href-validation'); + + WorkflowTasks.showPopup(icon.attr('href'), A.one(content), title, randomId, validationURL); + }, + + renderForm: function(event, randomId) { + var instance = this; + + // reset + var form = A.one('#' + randomId + 'form'); + if (form) { + form.empty(); + } + var formError = A.one('#' + randomId + 'formError'); + if (formError) { + formError.empty(); + } + + instance.onTaskClick(event, randomId); + + var icon = event.currentTarget; + + var renderFormURL = icon.attr('data-href-render-form'); + + A.one('#' + randomId + 'updateComments').plug(A.LoadingMask, {}); + + A.io.request(renderFormURL, { + dataType: 'html', + on: { + start: function() { + A.one('#' + randomId + 'updateComments').loadingmask.show(); + A.all('.modal-footer').each(function(item, index, collection) { + item.all('button').each(function(item, index, collection) { + item.set('disabled', true); + item.setStyle('opacity', 0.5); + }); + }); + }, + complete: function() { + A.one('#' + randomId + 'updateComments').loadingmask.hide(); + }, + success: function() { + + var contentNode = A.one('#' + randomId + 'form'); + var contentErrorNode = A.one('#' + randomId + 'formError'); + + contentNode.html(this.get('responseData')); + + if (!contentNode.one('.lfr-ddm-container')) { + contentNode.empty(); + contentNode.hide(); + contentErrorNode.hide(); + } else { + contentNode.append('
    '); + contentNode.show(); + contentErrorNode.show(); + } + + A.all('.modal-footer').each(function(item, index, collection) { + item.all('button').each(function(item, index, collection) { + item.set('disabled', false); + item.setStyle('opacity', 1); + }); + }); + A.all('script').each(function(item, index, collection) { + if (item.getHTML() != '') { + eval(item.getHTML()); + } + }); + } + } + }); + }, + + showPopup: function(url, content, title, randomId, validationURL) { + var form = A.Node.create(''); + + form.setAttribute('action', url); + form.setAttribute('method', 'POST'); + + var comments = A.one('#' + randomId + 'updateComments'); + + if (content) { + form.append(content); + content.show(); + } + + if (comments) { + form.append(comments); + comments.show(); + } + + var dialog = Liferay.Util.Window.getWindow( + { + dialog: { + bodyContent: form, + height: 800, + toolbars: { + footer: [ + { + label: Liferay.Language.get('ok'), + on: { + click: function() { + if (!validationURL) { + submitForm(form); + } else { + A.one('#' + randomId + 'formError').empty(); + A.io.request(validationURL, { + method: 'POST', + dataType: 'json', + form: { + id: A.one('#fm_' + randomId) + }, + on: { + start: function() { + A.one('#' + randomId + 'updateComments').loadingmask.show(); + A.all('.modal-footer').each(function(item, index, collection) { + item.all('button').each(function(item, index, collection) { + item.set('disabled', true); + item.setStyle('opacity', 0.5); + }); + }); + }, + complete: function() { + A.one('#' + randomId + 'updateComments').loadingmask.hide(); + }, + success: function() { + var responseData = this.get('responseData'); + if (responseData.valid) { + submitForm(form); + } else { + var message = ''; + for (var i = 0; i < responseData.messages.length; i++) { + message += "
    " + Liferay.Language.get(responseData.messages[i]) + "
    "; + } + A.one('#' + randomId + 'formError').html(message); + } + A.all('.modal-footer').each(function(item, index, collection) { + item.all('button').each(function(item, index, collection) { + item.set('disabled', false); + item.setStyle('opacity', 1); + }); + }); + } + } + }); + } + } + } + }, + { + label: Liferay.Language.get('cancel'), + on: { + click: function() { + dialog.hide(); + } + } + } + ] + }, + width: 800 + }, + title: title + } + ); + } + }; + + Liferay.WorkflowTasks = WorkflowTasks; + }, + '', + { + requires: ['liferay-util-window'] + } ); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp index a9c13e13..eddcd511 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp @@ -1,3 +1,4 @@ +<%@page import="org.htmlparser.Attribute"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> @@ -186,6 +187,18 @@ private void filter(Node node, Map parameters, boolean defaultValue = MapUtil.getBoolean(option, "default"); if (tag.getAttribute("value").equals(valueOption)) { tag.getNextSibling().setText(label); + if("Inattivo".equalsIgnoreCase(label.trim())){ + TagNode parent = (TagNode) tag.getParent().getParent(); + Attribute disabledAttr = new Attribute(); + disabledAttr.setName("disabled"); + tag.setAttribute(disabledAttr); + String classValue = parent.getAttribute("class"); + classValue += " hidden"; + tag.setAttribute("class", classValue); + tag.getNextSibling().setText(""); + + + } } } } diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/approvazione veloce con mail_da_task_con_bypass_rapido.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/approvazione veloce con mail_da_task_con_bypass_rapido.xml index b307cdd3..5eb0a49e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/approvazione veloce con mail_da_task_con_bypass_rapido.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/approvazione veloce con mail_da_task_con_bypass_rapido.xml @@ -1,452 +1,452 @@ - - - - Approvazione veloce con email da task e bypass del redattore rapido - Workflow di approvazione veloce con notifica per mail e approvazione diretta del ruolo lr_sisal_redattore - 1 - - created - - true - - - controllo - controllaruolo - - - - - aggiornamento - - - - reject - - javascript - onEntry - - - send-mail - - groovy - onEntry - - - - - - regular - lr_sisal_editor_palinsesto - - - - regular - lr_sisal_editor_redattore - - - - - - - richiedi_approvazione - revisione - - - - - revisione - - - - send-mail - - groovy - onEntry - - - - - - site - Site Administrator - - - regular - lr_sisal_editor - - - - - - approva - approvato - - - rifiuta - aggiornamento - false - - - - - approvato - - - - - approve - - javascript - onEntry - - - send-mail - - groovy - onEntry - - - - - controllaruolo - - - groovy - - - revisione - revisione - - - approvato - approvato - - - + + + + Approvazione veloce con email da task e bypass del redattore rapido + Workflow di approvazione veloce con notifica per mail e approvazione diretta del ruolo lr_sisal_redattore + 1 + + created + + true + + + controllo + controllaruolo + + + + + aggiornamento + + + + reject + + javascript + onEntry + + + send-mail + + groovy + onEntry + + + + + + regular + lr_sisal_editor_palinsesto + + + + regular + lr_sisal_editor_redattore + + + + + + + richiedi_approvazione + revisione + + + + + revisione + + + + send-mail + + groovy + onEntry + + + + + + site + Site Administrator + + + regular + lr_sisal_editor + + + + + + approva + approvato + + + rifiuta + aggiornamento + false + + + + + approvato + + + + + approve + + javascript + onEntry + + + send-mail + + groovy + onEntry + + + + + controllaruolo + + + groovy + + + revisione + revisione + + + approvato + approvato + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/procedimento_unico_portos2-definition.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/procedimento_unico_portos2-definition.xml index 46f4833c..3b6bc4cc 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/procedimento_unico_portos2-definition.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/procedimento_unico_portos2-definition.xml @@ -1,575 +1,575 @@ - - - procedimento_unico_portos2 - 1 - - Avvio - - true - - - Assegnazione - script_old_workflow - - - - - Assegnazione - - - - carica_select - - groovy - onOperForm - portos-bo-portlet - - - salva_istruttore - groovy - onExit - - portos-bo-portlet - onValidation - - - validazione_assegnazione - groovy - onValidation - - portos-bo-portlet - - - - - - groovy - portos-bo-portlet - - - - - assegna - GenDocAP - - - - - script_old_workflow - - - groovy - - - portos1_integrazioni - signal_cittadino - - - assegnazione - Assegnazione - - - portos1_esito - Esito - - - portos-bo-portlet - - - GenDocAP - - - groovy - portos-bo-portlet - - - wait_ap - signal_ap - - - nodoX - nodoX - - - - - signal_ap - - - - signal_ap - Esito - - - - - Esito - - - - - groovy - - - - - registra-esito - Approvazione - - - - - validazione_esito - groovy - onValidation - - portos-bo-portlet - - - carica_esito - groovy - onOperForm - - portos-bo-portlet - - - - - Approvazione - - - - - groovy - - - - - Riassegna - Esito - - - approva - GenerazioneFile - - - - - carica_select - - groovy - onOperForm - portos-bo-portlet - - - - - GenerazioneFile - - - groovy - portos-bo-portlet - - - wait_ff - signal_ff - - - nodoY - nodoY - - - - - signal_ff - - - - signal_ff - AnalisiStatoFinale - - - - - AnalisiStatoFinale - - - groovy - portos-bo-portlet - - - richiesta_integrazione - signal_cittadino - - - non_approvato - NonApprovato - - - approvato - Approvato - - - richiesta_integrazione - signal_cittadino - - - annullato - Annullato - - - rifiuto_firma - Approvazione - - - - - NonApprovato - - - - NonApprovato - - groovy - onEntry - - - - - Approvato - - - - Approvato - - groovy - onEntry - - - - - signal_cittadino - - - - signal_cittadino - Esito - - - - - richiesta_integrazione - groovy - onEntry - - portos-bo-portlet - - - - - nodoX - - - - nodoY - - - - Annullato - - - - annullato - - groovy - onEntry - - - + + + procedimento_unico_portos2 + 1 + + Avvio + + true + + + Assegnazione + script_old_workflow + + + + + Assegnazione + + + + carica_select + + groovy + onOperForm + portos-bo-portlet + + + salva_istruttore + groovy + onExit + + portos-bo-portlet + onValidation + + + validazione_assegnazione + groovy + onValidation + + portos-bo-portlet + + + + + + groovy + portos-bo-portlet + + + + + assegna + GenDocAP + + + + + script_old_workflow + + + groovy + + + portos1_integrazioni + signal_cittadino + + + assegnazione + Assegnazione + + + portos1_esito + Esito + + + portos-bo-portlet + + + GenDocAP + + + groovy + portos-bo-portlet + + + wait_ap + signal_ap + + + nodoX + nodoX + + + + + signal_ap + + + + signal_ap + Esito + + + + + Esito + + + + + groovy + + + + + registra-esito + Approvazione + + + + + validazione_esito + groovy + onValidation + + portos-bo-portlet + + + carica_esito + groovy + onOperForm + + portos-bo-portlet + + + + + Approvazione + + + + + groovy + + + + + Riassegna + Esito + + + approva + GenerazioneFile + + + + + carica_select + + groovy + onOperForm + portos-bo-portlet + + + + + GenerazioneFile + + + groovy + portos-bo-portlet + + + wait_ff + signal_ff + + + nodoY + nodoY + + + + + signal_ff + + + + signal_ff + AnalisiStatoFinale + + + + + AnalisiStatoFinale + + + groovy + portos-bo-portlet + + + richiesta_integrazione + signal_cittadino + + + non_approvato + NonApprovato + + + approvato + Approvato + + + richiesta_integrazione + signal_cittadino + + + annullato + Annullato + + + rifiuto_firma + Approvazione + + + + + NonApprovato + + + + NonApprovato + + groovy + onEntry + + + + + Approvato + + + + Approvato + + groovy + onEntry + + + + + signal_cittadino + + + + signal_cittadino + Esito + + + + + richiesta_integrazione + groovy + onEntry + + portos-bo-portlet + + + + + nodoX + + + + nodoY + + + + Annullato + + + + annullato + + groovy + onEntry + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/test-definition.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/test-definition.xml index f6b48965..2fd01ca0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/test-definition.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/definition/test-definition.xml @@ -1,246 +1,246 @@ - - - Single Approver - A single approver can approve a workflow content. - 1 - - created - - true - - - review - review - - - - - update - - - - reject - - javascript - onAssignment - - - Creator Modification Notification - - freemarker - email - user-notification - onAssignment - - - - - - - - wait - wait - - - - - review - - - - Review Notification - - freemarker - email - user-notification - onAssignment - - - Review Completion Notification - - freemarker - email - - - - onExit - - - onValidation1 - - groovy - onValidation - - - onOpenForm1 - - groovy - onOperForm - - - - - - organization - Organization Administrator - - - organization - Organization Content Reviewer - - - organization - Organization Owner - - - regular - Administrator - - - regular - Portal Content Reviewer - - - site - Site Administrator - - - site - Site Content Reviewer - - - site - Site Owner - - - - - - approve - approved - - - update - reject - - - - - approved - - - - approve - - groovy - onEntry - - - - - - wait - - - review - signal1 - - - + + + Single Approver + A single approver can approve a workflow content. + 1 + + created + + true + + + review + review + + + + + update + + + + reject + + javascript + onAssignment + + + Creator Modification Notification + + freemarker + email + user-notification + onAssignment + + + + + + + + wait + wait + + + + + review + + + + Review Notification + + freemarker + email + user-notification + onAssignment + + + Review Completion Notification + + freemarker + email + + + + onExit + + + onValidation1 + + groovy + onValidation + + + onOpenForm1 + + groovy + onOperForm + + + + + + organization + Organization Administrator + + + organization + Organization Content Reviewer + + + organization + Organization Owner + + + regular + Administrator + + + regular + Portal Content Reviewer + + + site + Site Administrator + + + site + Site Content Reviewer + + + site + Site Owner + + + + + + approve + approved + + + update + reject + + + + + approved + + + + approve + + groovy + onEntry + + + + + + wait + + + review + signal1 + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar deleted file mode 100644 index bf17ad8a..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar deleted file mode 100644 index 69e60114..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar index 71714a3c..03002516 100644 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar deleted file mode 100644 index 273707c5..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-web-service.jar b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-web-service.jar deleted file mode 100644 index f2cbf934..00000000 Binary files a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-web-service.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.properties index 68fef372..0e17b86e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.properties +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.properties @@ -1,22 +1,22 @@ -name=Portos Kaleo Workflow -module-group-id=liferay -module-incremental-version=104 -tags=bi, business intelligence, designer, kaleo, workflow -short-description= -change-log= -page-url=http://www.liferay.com -author=Liferay, Inc. -licenses=LGPL -portal-dependency-jars=\ - commons-codec.jar,\ - commons-collections.jar,\ - commons-lang.jar,\ - jabsorb.jar,\ - json-java.jar,\ - slf4j-api.jar,\ - util-slf4j.jar -required-deployment-contexts=\ - portos-kaleo-portlet,\ - portos-bo-portlet -long-description=This app provides the Kaleo Workflow engine, for use with Liferay Portal. In Greek, Kaleo means \"called ones,\" which is appropriate for a workflow engine that calls users to participate in a process that has been designed for them. Kaleo workflow allows a user to define any number of simple to complex business processes/workflows, deploy them, and manage them through a portal interface. Those processes have knowledge of users, groups, and roles. You don't have to write a single line of code to accomplish this: all you have to do is create a single XML document. And if you're a Liferay EE customer, you get a graphical workflow designer, which gives you a point and click interface to create workflows. Simple workflows can be managed using the default configuration and GUI tools, while more complex workflows can be created to meet the workflow management needs of almost any portal. Consult the \"Workflow\" section of the Liferay User Guide for details on administering this service. The Liferay User Guide can be found at http://liferay.com/documentation.

    This app installs as a Liferay service. -liferay-versions=6.2.0+ +name=Portos Kaleo Workflow +module-group-id=liferay +module-incremental-version=104 +tags=bi, business intelligence, designer, kaleo, workflow +short-description= +change-log= +page-url=http://www.liferay.com +author=Liferay, Inc. +licenses=LGPL +portal-dependency-jars=\ + commons-codec.jar,\ + commons-collections.jar,\ + commons-lang.jar,\ + jabsorb.jar,\ + json-java.jar,\ + slf4j-api.jar,\ + util-slf4j.jar +required-deployment-contexts=\ + portos-kaleo-portlet,\ + portos-bo-portlet +long-description=This app provides the Kaleo Workflow engine, for use with Liferay Portal. In Greek, Kaleo means \"called ones,\" which is appropriate for a workflow engine that calls users to participate in a process that has been designed for them. Kaleo workflow allows a user to define any number of simple to complex business processes/workflows, deploy them, and manage them through a portal interface. Those processes have knowledge of users, groups, and roles. You don't have to write a single line of code to accomplish this: all you have to do is create a single XML document. And if you're a Liferay EE customer, you get a graphical workflow designer, which gives you a point and click interface to create workflows. Simple workflows can be managed using the default configuration and GUI tools, while more complex workflows can be created to meet the workflow management needs of almost any portal. Consult the \"Workflow\" section of the Liferay User Guide for details on administering this service. The Liferay User Guide can be found at http://liferay.com/documentation.

    This app installs as a Liferay service. +liferay-versions=6.2.0+ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.xml index ac588d6b..88d55393 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-plugin-package.xml @@ -5,29 +5,29 @@ Web liferay/portos-kaleo-web/6.2.0.104/war portos-kaleo-web - - portos-kaleo-portlet - portos-bo-portlet + + portos-kaleo-portlet + portos-bo-portlet web - - bi - business intelligence - designer - kaleo - workflow + + bi + business intelligence + designer + kaleo + workflow
    This app installs as a Liferay service.]]>
    http://www.liferay.com - - LGPL + + LGPL - - 6.2.0+ + + 6.2.0+ \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-releng.properties b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-releng.properties new file mode 100644 index 00000000..edd26b3a --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/liferay-releng.properties @@ -0,0 +1,9 @@ +bundle=true +category=Productivity +demo-url= +dependent-apps= +labs=false +marketplace=true +public=true +support-url= +supported=false \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/icons/90x90.png b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/icons/90x90.png new file mode 100644 index 00000000..b588f1d3 Binary files /dev/null and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/icons/90x90.png differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/1.jpg b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/1.jpg new file mode 100644 index 00000000..7508b248 Binary files /dev/null and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/1.jpg differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/2.jpg b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/2.jpg new file mode 100644 index 00000000..eeba4d8f Binary files /dev/null and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/2.jpg differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/3.jpg b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/3.jpg new file mode 100644 index 00000000..6144f224 Binary files /dev/null and b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/releng/screenshots/3.jpg differ diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/server-config.wsdd b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/server-config.wsdd new file mode 100644 index 00000000..2821f82c --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/server-config.wsdd @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/NoSuchTaskFormException.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/NoSuchTaskFormException.java new file mode 100644 index 00000000..572f34e4 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/NoSuchTaskFormException.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.portal.NoSuchModelException; + +/** + * @author Brian Wing Shun Chan + */ +public class NoSuchTaskFormException extends NoSuchModelException { + + public NoSuchTaskFormException() { + super(); + } + + public NoSuchTaskFormException(String msg) { + super(msg); + } + + public NoSuchTaskFormException(String msg, Throwable cause) { + super(msg, cause); + } + + public NoSuchTaskFormException(Throwable cause) { + super(cause); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Action.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Action.java new file mode 100644 index 00000000..edb3d93b --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Action.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class Action { + + public Action( + String name, String description, String executionType, String script, + String scriptLanguage, String scriptRequiredContexts, int priority) { + + _name = name; + _description = description; + + if (Validator.isNotNull(executionType)) { + _executionType = ExecutionType.parse(executionType); + } + else { + _executionType = ExecutionType.ON_TIMER; + } + + _script = script; + _scriptLanguage = ScriptLanguage.parse(scriptLanguage); + _scriptRequiredContexts = scriptRequiredContexts; + _priority = priority; + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof Action)) { + return false; + } + + Action action = (Action)obj; + + if (Validator.equals(_name, action._name)) { + return true; + } + + return true; + } + + public String getDescription() { + return _description; + } + + public ExecutionType getExecutionType() { + return _executionType; + } + + public String getName() { + return _name; + } + + public int getPriority() { + return _priority; + } + + public String getScript() { + return _script; + } + + public ScriptLanguage getScriptLanguage() { + return _scriptLanguage; + } + + public String getScriptRequiredContexts() { + return _scriptRequiredContexts; + } + + + public int hashCode() { + return _name.hashCode(); + } + + private String _description; + private ExecutionType _executionType; + private String _name; + private int _priority; + private String _script; + private ScriptLanguage _scriptLanguage; + private String _scriptRequiredContexts; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ActionAware.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ActionAware.java new file mode 100644 index 00000000..6ba7b120 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ActionAware.java @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public interface ActionAware { + + public Set getActions(); + + public void setActions(Set actions); + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AddressRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AddressRecipient.java new file mode 100644 index 00000000..8a045841 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AddressRecipient.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class AddressRecipient extends Recipient { + + public AddressRecipient(String address) { + super(RecipientType.ADDRESS); + + _address = address; + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof AddressRecipient)) { + return false; + } + + AddressRecipient addressRecipient = (AddressRecipient)obj; + + if (Validator.equals(_address, addressRecipient._address)) { + return true; + } + + return true; + } + + public String getAddress() { + return _address; + } + + + public int hashCode() { + return _address.hashCode(); + } + + private String _address; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssigneesRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssigneesRecipient.java new file mode 100644 index 00000000..e452674f --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssigneesRecipient.java @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class AssigneesRecipient extends Recipient { + + public AssigneesRecipient() { + super(RecipientType.ASSIGNEES); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Assignment.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Assignment.java new file mode 100644 index 00000000..d31173f0 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Assignment.java @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class Assignment { + + public Assignment(AssignmentType assignmentType) { + _assignmentType = assignmentType; + } + + public AssignmentType getAssignmentType() { + return _assignmentType; + } + + private AssignmentType _assignmentType; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssignmentType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssignmentType.java new file mode 100644 index 00000000..014079e2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/AssignmentType.java @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum AssignmentType { + + RESOURCE_ACTION, ROLE, SCRIPT, USER + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Condition.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Condition.java new file mode 100644 index 00000000..0bc75cdb --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Condition.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class Condition extends Node { + + public Condition( + String name, String description, String script, String scriptLanguage, + String scriptRequiredContexts) { + + super(NodeType.CONDITION, name, description); + + _description = description; + _script = script; + _scriptLanguage = ScriptLanguage.parse(scriptLanguage); + _scriptRequiredContexts = scriptRequiredContexts; + } + + + public String getDescription() { + return _description; + } + + public String getScript() { + return _script; + } + + public ScriptLanguage getScriptLanguage() { + return _scriptLanguage; + } + + public String getScriptRequiredContexts() { + return _scriptRequiredContexts; + } + + private String _description; + private String _script; + private ScriptLanguage _scriptLanguage; + private String _scriptRequiredContexts; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Definition.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Definition.java new file mode 100644 index 00000000..b21625dd --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Definition.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class Definition { + + public Definition( + String name, String description, String content, int version) { + + _name = name; + _description = description; + _content = content; + _version = version; + } + + public void addNode(Node node) { + if (_nodesMap.containsKey(node.getName())) { + throw new IllegalArgumentException( + "Duplicate node " + node.getName()); + } + + _nodesMap.put(node.getName(), node); + + if (node instanceof State) { + State state = (State)node; + + if (state.isInitial()) { + _initialState = state; + } + } + else if (node instanceof Fork) { + _forks.add((Fork)node); + } + else if (node instanceof Join) { + _joins.add((Join)node); + } + } + + public String getContent() { + return _content; + } + + public String getDescription() { + return _description; + } + + public List getForks() { + return Collections.unmodifiableList(_forks); + } + + public int getForksCount() { + return _forks.size(); + } + + public State getInitialState() { + return _initialState; + } + + public List getJoins() { + return Collections.unmodifiableList(_joins); + } + + public int getJoinsCount() { + return _joins.size(); + } + + public String getName() { + return _name; + } + + public Node getNode(String name) { + return _nodesMap.get(name); + } + + public Collection getNodes() { + return Collections.unmodifiableCollection(_nodesMap.values()); + } + + public List getTerminalStates() { + if (_terminalStates == null) { + _terminalStates = new ArrayList(); + + for (Node node : _nodesMap.values()) { + if (node instanceof State) { + State state = (State)node; + + if (state.isTerminal()) { + _terminalStates.add(state); + } + } + } + } + + return Collections.unmodifiableList(_terminalStates); + } + + public int getVersion() { + return _version; + } + + public boolean hasNode(String name) { + return _nodesMap.containsKey(name); + } + + private String _content; + private String _description; + private List _forks = new ArrayList(); + private State _initialState; + private List _joins = new ArrayList(); + private String _name; + private Map _nodesMap = new HashMap(); + private List _terminalStates; + private int _version; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DelayDuration.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DelayDuration.java new file mode 100644 index 00000000..ce9ffca3 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DelayDuration.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class DelayDuration { + + public DelayDuration(double duration, DurationScale durationScale) { + _duration = duration; + _durationScale = durationScale; + } + + public double getDuration() { + return _duration; + } + + public DurationScale getDurationScale() { + return _durationScale; + } + + private double _duration; + private DurationScale _durationScale; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DurationScale.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DurationScale.java new file mode 100644 index 00000000..ca327c68 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/DurationScale.java @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.compat.portal.kernel.scheduler.CronText; + +/** + * @author Michael C. Han + * @author Peter Borkuti + */ +public enum DurationScale { + + DAY("day", CronText.DAILY_FREQUENCY), + HOUR("hour", CronText.HOURLY_FREQUENCY), + MINUTE("minute", CronText.MINUTELY_FREQUENCY), + MONTH("month", CronText.MONTHLY_FREQUENCY), + SECOND("second", CronText.SECONDLY_FREQUENCY), + WEEK("week", CronText.WEEKLY_FREQUENCY), + YEAR("year", CronText.YEARLY_FREQUENCY); + + public static DurationScale parse(String value) { + for (DurationScale durationScale : DurationScale.values()) { + if (durationScale.getValue().equals(value)) { + return durationScale; + } + } + + throw new IllegalArgumentException("Invalid value " + value); + } + + public int getIntegerValue() { + return _frequency; + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private DurationScale(String value, int frequency) { + _value = value; + _frequency = frequency; + } + + private int _frequency; + private String _value; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java new file mode 100644 index 00000000..4a536bcd --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum ExecutionType { + + ON_ASSIGNMENT("onAssignment"), ON_ENTRY("onEntry"), ON_EXIT("onExit"), + ON_TIMER("onTimer"); + + public static ExecutionType parse(String value) { + if (ON_ASSIGNMENT.getValue().equals(value)) { + return ON_ASSIGNMENT; + } + else if (ON_ENTRY.getValue().equals(value)) { + return ON_ENTRY; + } + else if (ON_EXIT.getValue().equals(value)) { + return ON_EXIT; + } + else if (ON_TIMER.getValue().equals(value)) { + return ON_TIMER; + } + else { + throw new IllegalArgumentException("Invalid value " + value); + } + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private ExecutionType(String value) { + _value = value; + } + + private String _value; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Fork.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Fork.java new file mode 100644 index 00000000..80999c6a --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Fork.java @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class Fork extends Node { + + public Fork(String name, String description) { + super(NodeType.FORK, name, description); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Join.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Join.java new file mode 100644 index 00000000..1c37b000 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Join.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class Join extends Node { + + public Join(String name, String description) { + super(NodeType.JOIN, name, description); + } + + protected Join(NodeType nodeType, String name, String description) { + super(nodeType, name, description); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/JoinXor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/JoinXor.java new file mode 100644 index 00000000..f9a11573 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/JoinXor.java @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class JoinXor extends Join { + + public JoinXor(String name, String description) { + super(NodeType.JOIN_XOR, name, description); + } + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/LogType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/LogType.java new file mode 100644 index 00000000..b90222db --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/LogType.java @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum LogType { + + ACTION_EXECUTION, NODE_ENTRY, NODE_EXIT, TASK_ASSIGNMENT, TASK_COMPLETION, + TASK_UPDATE, WORKFLOW_INSTANCE_END, WORKFLOW_INSTANCE_START + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Node.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Node.java new file mode 100644 index 00000000..ef8e2c9a --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Node.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.ListUtil; +import com.liferay.portal.kernel.util.Validator; + +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public abstract class Node implements ActionAware, NotificationAware { + + public Node(NodeType nodeType, String name, String description) { + _nodeType = nodeType; + _name = name; + _description = description; + } + + public void addIncomingTransition(Transition transition) { + _incomingTransitions.add(transition); + } + + public void addOutgoingTransition(Transition transition) { + _outgoingTransitions.put(transition.getName(), transition); + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof Node)) { + return false; + } + + Node node = (Node)obj; + + if (!Validator.equals(_name, node._name)) { + return false; + } + + return true; + } + + + public Set getActions() { + if (_actions == null) { + return Collections.emptySet(); + } + + return _actions; + } + + public String getDescription() { + return _description; + } + + public Set getIncomingTransitions() { + return _incomingTransitions; + } + + public int getIncomingTransitionsCount() { + return _incomingTransitions.size(); + } + + public String getMetadata() { + return _metadata; + } + + public String getName() { + return _name; + } + + public NodeType getNodeType() { + return _nodeType; + } + + + public Set getNotifications() { + if (_notifications == null) { + return Collections.emptySet(); + } + + return _notifications; + } + + public Map getOutgoingTransitions() { + return _outgoingTransitions; + } + + public int getOutgoingTransitionsCount() { + return _outgoingTransitions.size(); + } + + public List getOutgoingTransitionsList() { + return ListUtil.fromCollection(_outgoingTransitions.values()); + } + + public Set getTimers() { + if (_timers == null) { + return Collections.emptySet(); + } + + return _timers; + } + + + public int hashCode() { + return _name.hashCode(); + } + + + public void setActions(Set actions) { + _actions = actions; + } + + public void setMetadata(String metadata) { + _metadata = metadata; + } + + + public void setNotifications(Set notifications) { + _notifications = notifications; + } + + public void setTimers(Set timers) { + _timers = timers; + } + + private Set _actions; + private String _description; + private Set _incomingTransitions = new HashSet(); + private String _metadata; + private String _name; + private NodeType _nodeType; + private Set _notifications; + private Map _outgoingTransitions = + new HashMap(); + private Set _timers; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NodeType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NodeType.java new file mode 100644 index 00000000..d4fa628f --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NodeType.java @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum NodeType { + + CONDITION, FORK, JOIN, JOIN_XOR, STATE, TASK + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Notification.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Notification.java new file mode 100644 index 00000000..304d235f --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Notification.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.Validator; + +import java.util.HashSet; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class Notification { + + public Notification( + String name, String description, String executionType, String template, + String templateLanguage) { + + _name = name; + _description = description; + + if (Validator.isNotNull(executionType)) { + _executionType = ExecutionType.parse(executionType); + } + else { + _executionType = ExecutionType.ON_TIMER; + } + + _template = template; + _templateLanguage = TemplateLanguage.parse(templateLanguage); + } + + public void addNotificationType(String notificationType) { + _notificationTypes.add(NotificationType.parse(notificationType)); + } + + public void addRecipients(Recipient recipient) { + _recipients.add(recipient); + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof Notification)) { + return false; + } + + Notification notification = (Notification)obj; + + if (Validator.equals(_name, notification._name)) { + return true; + } + + return true; + } + + public String getDescription() { + return _description; + } + + public ExecutionType getExecutionType() { + return _executionType; + } + + public String getName() { + return _name; + } + + public Set getNotificationTypes() { + return _notificationTypes; + } + + public Set getRecipients() { + return _recipients; + } + + public String getTemplate() { + return _template; + } + + public TemplateLanguage getTemplateLanguage() { + return _templateLanguage; + } + + + public int hashCode() { + return _name.hashCode(); + } + + private String _description; + private ExecutionType _executionType; + private String _name; + private Set _notificationTypes = + new HashSet(); + private Set _recipients = new HashSet(); + private String _template; + private TemplateLanguage _templateLanguage; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationAware.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationAware.java new file mode 100644 index 00000000..2c0a2dff --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationAware.java @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public interface NotificationAware { + + public Set getNotifications(); + + public void setNotifications(Set notifications); + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationType.java new file mode 100644 index 00000000..767962db --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/NotificationType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum NotificationType { + + EMAIL("email"), IM("im"), PRIVATE_MESSAGE("private-message"), + USER_NOTIFICATION("user-notification"); + + public static NotificationType parse(String value) { + if (EMAIL.getValue().equals(value)) { + return EMAIL; + } + else if (IM.getValue().equals(value)) { + return IM; + } + else if (PRIVATE_MESSAGE.getValue().equals(value)) { + return PRIVATE_MESSAGE; + } + else if (USER_NOTIFICATION.getValue().equals(value)) { + return USER_NOTIFICATION; + } + + throw new IllegalArgumentException("Invalid value " + value); + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private NotificationType(String value) { + _value = value; + } + + private String _value; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Recipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Recipient.java new file mode 100644 index 00000000..186d12e3 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Recipient.java @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public abstract class Recipient { + + public Recipient(RecipientType recipientType) { + _recipientType = recipientType; + } + + public RecipientType getRecipientType() { + return _recipientType; + } + + private RecipientType _recipientType; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RecipientType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RecipientType.java new file mode 100644 index 00000000..c3a83a4c --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RecipientType.java @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum RecipientType { + + ADDRESS, ASSIGNEES, ROLE, USER + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ResourceActionAssignment.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ResourceActionAssignment.java new file mode 100644 index 00000000..dbf8ea66 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ResourceActionAssignment.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Marcellus Tavares + */ +public class ResourceActionAssignment extends Assignment { + + public ResourceActionAssignment(String actionId) { + super(AssignmentType.RESOURCE_ACTION); + + _actionId = actionId; + } + + public String getActionId() { + return _actionId; + } + + public void setActionId(String actionId) { + _actionId = actionId; + } + + private String _actionId; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleAssignment.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleAssignment.java new file mode 100644 index 00000000..3c64e80a --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleAssignment.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.HashCode; +import com.liferay.portal.kernel.util.HashCodeFactoryUtil; +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class RoleAssignment extends Assignment { + + public RoleAssignment(long roleId) { + super(AssignmentType.ROLE); + + _roleId = roleId; + } + + public RoleAssignment(String roleName, String roleType) { + super(AssignmentType.ROLE); + + _roleName = roleName; + _roleType = roleType; + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof RoleAssignment)) { + return false; + } + + RoleAssignment roleAssignment = (RoleAssignment)obj; + + if (Validator.equals(_roleName, roleAssignment._roleName) && + (_roleId == roleAssignment._roleId)) { + + return true; + } + + return true; + } + + public long getRoleId() { + return _roleId; + } + + public String getRoleName() { + return _roleName; + } + + public String getRoleType() { + return _roleType; + } + + + public int hashCode() { + HashCode hashCode = HashCodeFactoryUtil.getHashCode(); + + hashCode.append(_roleId); + hashCode.append(_roleName); + hashCode.append(_roleType); + + return hashCode.toHashCode(); + } + + public boolean isAutoCreate() { + return _autoCreate; + } + + public void setAutoCreate(boolean autoCreate) { + _autoCreate = autoCreate; + } + + private boolean _autoCreate; + private long _roleId; + private String _roleName; + private String _roleType; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleRecipient.java new file mode 100644 index 00000000..11e42a4e --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/RoleRecipient.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class RoleRecipient extends Recipient { + + public RoleRecipient(long roleId, String roleType) { + super(RecipientType.ROLE); + + _roleId = roleId; + _roleType = roleType; + } + + public RoleRecipient(String roleName, String roleType) { + super(RecipientType.ROLE); + + _roleName = roleName; + _roleType = roleType; + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof RoleRecipient)) { + return false; + } + + RoleRecipient roleRecipient = (RoleRecipient)obj; + + if (Validator.equals(_roleName, roleRecipient._roleName) && + (_roleId == roleRecipient._roleId)) { + + return true; + } + + return true; + } + + public long getRoleId() { + return _roleId; + } + + public String getRoleName() { + return _roleName; + } + + public String getRoleType() { + return _roleType; + } + + + public int hashCode() { + if (Validator.isNotNull(_roleName)) { + return _roleName.hashCode(); + } + + String roleIdString = String.valueOf(_roleId); + + return roleIdString.hashCode(); + } + + public boolean isAutoCreate() { + return _autoCreate; + } + + public void setAutoCreate(boolean autoCreate) { + _autoCreate = autoCreate; + } + + private boolean _autoCreate; + private long _roleId; + private String _roleName; + private String _roleType; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptAssignment.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptAssignment.java new file mode 100644 index 00000000..b435afc2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptAssignment.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class ScriptAssignment extends Assignment { + + public ScriptAssignment( + String script, String scriptLanguage, String scriptRequiredContexts) { + + super(AssignmentType.SCRIPT); + + _script = script; + _scriptLanguage = ScriptLanguage.parse(scriptLanguage); + _scriptRequiredContexts = scriptRequiredContexts; + } + + public String getScript() { + return _script; + } + + public ScriptLanguage getScriptLanguage() { + return _scriptLanguage; + } + + public String getScriptRequiredContexts() { + return _scriptRequiredContexts; + } + + public void setScript(String script) { + _script = script; + } + + public void setScriptLanguage(ScriptLanguage scriptLanguage) { + _scriptLanguage = scriptLanguage; + } + + private String _script; + private ScriptLanguage _scriptLanguage; + private String _scriptRequiredContexts; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptLanguage.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptLanguage.java new file mode 100644 index 00000000..1c1c592a --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/ScriptLanguage.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum ScriptLanguage { + + BEANSHELL("beanshell"), DRL("drl"), GROOVY("groovy"), + JAVASCRIPT("javascript"), PYTHON("python"), RUBY("ruby"); + + public static ScriptLanguage parse(String value) { + if (BEANSHELL.getValue().equals(value)) { + return BEANSHELL; + } + else if (DRL.getValue().equals(value)) { + return DRL; + } + else if (GROOVY.getValue().equals(value)) { + return GROOVY; + } + else if (JAVASCRIPT.getValue().equals(value)) { + return JAVASCRIPT; + } + else if (PYTHON.getValue().equals(value)) { + return PYTHON; + } + else if (RUBY.getValue().equals(value)) { + return RUBY; + } + + throw new IllegalArgumentException("Invalid value " + value); + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private ScriptLanguage(String value) { + _value = value; + } + + private String _value; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/State.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/State.java new file mode 100644 index 00000000..53fbe214 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/State.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class State extends Node { + + public State(String name, String description, boolean initial) { + super(NodeType.STATE, name, description); + + _initial = initial; + } + + public boolean isInitial() { + return _initial; + } + + public boolean isTerminal() { + Map outgoingTransitions = getOutgoingTransitions(); + + return outgoingTransitions.isEmpty(); + } + + private boolean _initial; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Task.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Task.java new file mode 100644 index 00000000..264d645e --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Task.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class Task extends Node { + + public Task(String name, String description) { + super(NodeType.TASK, name, description); + } + + public Set getAssignments() { + return _assignments; + } + + public void setAssignments(Set assignments) { + _assignments = assignments; + } + + private Set _assignments; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/TemplateLanguage.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/TemplateLanguage.java new file mode 100644 index 00000000..e5dfd301 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/TemplateLanguage.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum TemplateLanguage { + + FREEMARKER("freemarker"), TEXT("text"), VELOCITY("velocity"); + + public static TemplateLanguage parse(String value) { + if (FREEMARKER.getValue().equals(value)) { + return FREEMARKER; + } + else if (TEXT.getValue().equals(value)) { + return TEXT; + } + else if (VELOCITY.getValue().equals(value)) { + return VELOCITY; + } + + throw new IllegalArgumentException("Invalid value " + value); + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private TemplateLanguage(String value) { + _value = value; + } + + private String _value; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Timer.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Timer.java new file mode 100644 index 00000000..be42ad15 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Timer.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import java.util.Collections; +import java.util.Set; + +/** + * @author Marcellus Tavares + */ +public class Timer implements ActionAware, NotificationAware { + + public Timer(String name, String description, boolean blocking) { + _name = name; + _blocking = blocking; + _description = description; + } + + + public Set getActions() { + if (_actions == null) { + return Collections.emptySet(); + } + + return _actions; + } + + public DelayDuration getDelayDuration() { + return _delayDuration; + } + + public String getDescription() { + return _description; + } + + public String getName() { + return _name; + } + + + public Set getNotifications() { + if (_notifications == null) { + return Collections.emptySet(); + } + + return _notifications; + } + + public Set getReassignments() { + if (_reassignments == null) { + return Collections.emptySet(); + } + + return _reassignments; + } + + public DelayDuration getRecurrence() { + return _recurrence; + } + + public boolean isBlocking() { + return _blocking; + } + + + public void setActions(Set actions) { + _actions = actions; + } + + public void setDelayDuration(DelayDuration delayDuration) { + _delayDuration = delayDuration; + } + + + public void setNotifications(Set notifications) { + _notifications = notifications; + } + + public void setReassignments(Set reassignments) { + _reassignments = reassignments; + } + + public void setRecurrence(DelayDuration recurrence) { + _recurrence = recurrence; + } + + private Set _actions; + private boolean _blocking; + private DelayDuration _delayDuration; + private String _description; + private String _name; + private Set _notifications; + private Set _reassignments; + private DelayDuration _recurrence; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Transition.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Transition.java new file mode 100644 index 00000000..861d03c9 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/Transition.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public class Transition { + + public Transition( + String name, Node sourceNode, Node targetNode, boolean defaultValue) { + + _name = name; + _sourceNode = sourceNode; + _targetNode = targetNode; + _default = defaultValue; + } + + public String getName() { + return _name; + } + + public Node getSourceNode() { + return _sourceNode; + } + + public Node getTargetNode() { + return _targetNode; + } + + public Timer getTimer() { + return _timer; + } + + public boolean isDefault() { + return _default; + } + + public void setTimers(Timer timer) { + _timer = timer; + } + + private boolean _default; + private String _name; + private Node _sourceNode; + private Node _targetNode; + private Timer _timer; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserAssignment.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserAssignment.java new file mode 100644 index 00000000..b90787c4 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserAssignment.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class UserAssignment extends Assignment { + + public UserAssignment() { + this (0, null, null); + } + + public UserAssignment(long userId, String screenName, String emailAddress) { + super(AssignmentType.USER); + + _userId = userId; + _screenName = GetterUtil.getString(screenName); + _emailAddress = GetterUtil.getString(emailAddress); + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof UserAssignment)) { + return false; + } + + UserAssignment userAssignment = (UserAssignment)obj; + + if (Validator.equals(_emailAddress, userAssignment._emailAddress) && + Validator.equals(_screenName, userAssignment._screenName) && + (_userId == userAssignment._userId)) { + + return true; + } + + return true; + } + + public String getEmailAddress() { + return _emailAddress; + } + + public String getScreenName() { + return _screenName; + } + + public long getUserId() { + return _userId; + } + + + public int hashCode() { + return _emailAddress.concat(_screenName).concat( + String.valueOf(_userId)).hashCode(); + } + + + public String toString() { + StringBundler sb = new StringBundler(7); + + sb.append("{emailAddress="); + sb.append(_emailAddress); + sb.append(", screenName="); + sb.append(_screenName); + sb.append(", userId="); + sb.append(_userId); + sb.append("}"); + + return sb.toString(); + } + + private String _emailAddress; + private String _screenName; + private long _userId; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserRecipient.java new file mode 100644 index 00000000..be4b55b4 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/definition/UserRecipient.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.Validator; + +/** + * @author Michael C. Han + */ +public class UserRecipient extends Recipient { + + public UserRecipient() { + this(0, null, null); + } + + public UserRecipient(long userId, String screenName, String emailAddress) { + super(RecipientType.USER); + + _userId = userId; + _screenName = GetterUtil.getString(screenName); + _emailAddress = GetterUtil.getString(emailAddress); + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof UserRecipient)) { + return false; + } + + UserRecipient userRecipient = (UserRecipient)obj; + + if (Validator.equals(_emailAddress, userRecipient._emailAddress) && + Validator.equals(_screenName, userRecipient._screenName) && + (_userId == userRecipient._userId)) { + + return true; + } + + return true; + } + + public String getEmailAddress() { + return _emailAddress; + } + + public String getScreenName() { + return _screenName; + } + + public long getUserId() { + return _userId; + } + + + public int hashCode() { + return _emailAddress.concat(_screenName).concat( + String.valueOf(_userId)).hashCode(); + } + + + public String toString() { + StringBundler sb = new StringBundler(7); + + sb.append("{emailAddress="); + sb.append(_emailAddress); + sb.append(", screenName="); + sb.append(_screenName); + sb.append(", userId="); + sb.append(_userId); + sb.append("}"); + + return sb.toString(); + } + + private String _emailAddress; + private String _screenName; + private long _userId; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/deployment/WorkflowDeployer.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/deployment/WorkflowDeployer.java new file mode 100644 index 00000000..4aa61c5d --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/deployment/WorkflowDeployer.java @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.deployment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Definition; + +/** + * @author Michael C. Han + */ +public interface WorkflowDeployer { + + public WorkflowDefinition deploy( + String title, Definition definition, ServiceContext serviceContext) + throws PortalException, SystemException; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/NodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/NodeValidator.java new file mode 100644 index 00000000..30ac583d --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/NodeValidator.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public interface NodeValidator { + + public void validate(Definition definition, T node) + throws WorkflowException; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowModelParser.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowModelParser.java new file mode 100644 index 00000000..f8ab4e1d --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowModelParser.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; + +import java.io.InputStream; + +/** + * @author Michael C. Han + */ +public interface WorkflowModelParser { + + public Definition parse(InputStream inputStream) throws WorkflowException; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowValidator.java new file mode 100644 index 00000000..36b9449c --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/parser/WorkflowValidator.java @@ -0,0 +1,27 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; + +/** + * @author Michael C. Han + */ +public interface WorkflowValidator { + + public void validate(Definition definition) throws WorkflowException; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenQuery.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenQuery.java new file mode 100644 index 00000000..aa1a8ab8 --- /dev/null +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenQuery.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.persistence; + +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.service.ServiceContext; + +import java.util.Date; +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoTaskInstanceTokenQuery { + + public KaleoTaskInstanceTokenQuery(ServiceContext serviceContext) { + _serviceContext = serviceContext; + _companyId = serviceContext.getCompanyId(); + _userId = serviceContext.getUserId(); + } + + public Long[] getAssetPrimaryKeys() { + return _assetPrimaryKeys; + } + + public String[] getAssetTypes() { + return _assetTypes; + } + + public String getAssigneeClassName() { + return _assigneeClassName; + } + + public Long getAssigneeClassPK() { + return _assigneeClassPK; + } + + public long getCompanyId() { + return _companyId; + } + + public Date getDueDateGT() { + return _dueDateGT; + } + + public Date getDueDateLT() { + return _dueDateLT; + } + + public int getEnd() { + return _end; + } + + public Long getKaleoInstanceId() { + return _kaleoInstanceId; + } + + public OrderByComparator getOrderByComparator() { + return _orderByComparator; + } + + public List getRoleIds() { + return _roleIds; + } + + public ServiceContext getServiceContext() { + return _serviceContext; + } + + public int getStart() { + return _start; + } + + public String getTaskName() { + return _taskName; + } + + public long getUserId() { + return _userId; + } + + public boolean isAndOperator() { + return _andOperator; + } + + public Boolean isCompleted() { + return _completed; + } + + public Boolean isSearchByUserRoles() { + return _searchByUserRoles; + } + + public void setAndOperator(boolean andOperator) { + _andOperator = andOperator; + } + + public void setAssetPrimaryKeys(Long[] assetPrimaryKeys) { + _assetPrimaryKeys = assetPrimaryKeys; + } + + public void setAssetTypes(String[] assetTypes) { + _assetTypes = assetTypes; + } + + public void setAssigneeClassName(String assigneeClassName) { + _assigneeClassName = assigneeClassName; + } + + public void setAssigneeClassPK(Long assigneeClassPK) { + _assigneeClassPK = assigneeClassPK; + } + + public void setCompanyId(long companyId) { + _companyId = companyId; + } + + public void setCompleted(Boolean completed) { + _completed = completed; + } + + public void setDueDateGT(Date dueDateGT) { + _dueDateGT = dueDateGT; + } + + public void setDueDateLT(Date dueDateLT) { + _dueDateLT = dueDateLT; + } + + public void setEnd(int end) { + _end = end; + } + + public void setKaleoInstanceId(Long kaleoInstanceId) { + _kaleoInstanceId = kaleoInstanceId; + } + + public void setOrderByComparator(OrderByComparator orderByComparator) { + _orderByComparator = orderByComparator; + } + + public void setRoleIds(List roleIds) { + _roleIds = roleIds; + } + + public void setSearchByUserRoles(Boolean searchByUserRoles) { + _searchByUserRoles = searchByUserRoles; + } + + public void setServiceContext(ServiceContext serviceContext) { + _serviceContext = serviceContext; + } + + public void setStart(int start) { + _start = start; + } + + public void setTaskName(String taskName) { + _taskName = taskName; + } + + public void setUserId(long userId) { + _userId = userId; + } + + private boolean _andOperator = true; + private Long[] _assetPrimaryKeys; + private String[] _assetTypes; + private String _assigneeClassName; + private Long _assigneeClassPK; + private long _companyId; + private Boolean _completed; + private Date _dueDateGT; + private Date _dueDateLT; + private int _end = QueryUtil.ALL_POS; + private Long _kaleoInstanceId; + private OrderByComparator _orderByComparator; + private List _roleIds; + private Boolean _searchByUserRoles; + private ServiceContext _serviceContext; + private int _start = QueryUtil.ALL_POS; + private String _taskName; + private long _userId; + +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/META-INF/ext-spring.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/META-INF/ext-spring.xml index 77efa2ed..7901bfd4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/META-INF/ext-spring.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/META-INF/ext-spring.xml @@ -1,19 +1,19 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/BaseKaleoBean.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/BaseKaleoBean.java index 79b994af..7aaefdf6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/BaseKaleoBean.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/BaseKaleoBean.java @@ -1,87 +1,87 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.workflow.kaleo.service.KaleoActionLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoConditionLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoNodeLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoNotificationLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoNotificationRecipientLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTimerLocalService; -import com.liferay.portal.workflow.kaleo.service.KaleoTransitionLocalService; - -/** - * @author Brian Wing Shun Chan - */ -public class BaseKaleoBean { - - @BeanReference(type = KaleoActionLocalService.class) - protected KaleoActionLocalService kaleoActionLocalService; - - @BeanReference(type = KaleoConditionLocalService.class) - protected KaleoConditionLocalService kaleoConditionLocalService; - - @BeanReference(type = KaleoDefinitionLocalService.class) - protected KaleoDefinitionLocalService kaleoDefinitionLocalService; - - @BeanReference(type = KaleoInstanceLocalService.class) - protected KaleoInstanceLocalService kaleoInstanceLocalService; - - @BeanReference(type = KaleoInstanceTokenLocalService.class) - protected KaleoInstanceTokenLocalService kaleoInstanceTokenLocalService; - - @BeanReference(type = KaleoLogLocalService.class) - protected KaleoLogLocalService kaleoLogLocalService; - - @BeanReference(type = KaleoNodeLocalService.class) - protected KaleoNodeLocalService kaleoNodeLocalService; - - @BeanReference(type = KaleoNotificationLocalService.class) - protected KaleoNotificationLocalService kaleoNotificationLocalService; - - @BeanReference(type = KaleoNotificationRecipientLocalService.class) - protected KaleoNotificationRecipientLocalService - kaleoNotificationRecipientLocalService; - - @BeanReference(type = KaleoTaskAssignmentLocalService.class) - protected KaleoTaskAssignmentLocalService kaleoTaskAssignmentLocalService; - - @BeanReference(type = KaleoTaskInstanceTokenLocalService.class) - protected KaleoTaskInstanceTokenLocalService - kaleoTaskInstanceTokenLocalService; - - @BeanReference(type = KaleoTaskLocalService.class) - protected KaleoTaskLocalService kaleoTaskLocalService; - - @BeanReference(type = KaleoTimerInstanceTokenLocalService.class) - protected KaleoTimerInstanceTokenLocalService - kaleoTimerInstanceTokenLocalService; - - @BeanReference(type = KaleoTimerLocalService.class) - protected KaleoTimerLocalService kaleoTimerLocalService; - - @BeanReference(type = KaleoTransitionLocalService.class) - protected KaleoTransitionLocalService kaleoTransitionLocalService; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.portal.kernel.bean.BeanReference; +import com.liferay.portal.workflow.kaleo.service.KaleoActionLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoConditionLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoNodeLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoNotificationLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoNotificationRecipientLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTimerLocalService; +import com.liferay.portal.workflow.kaleo.service.KaleoTransitionLocalService; + +/** + * @author Brian Wing Shun Chan + */ +public class BaseKaleoBean { + + @BeanReference(type = KaleoActionLocalService.class) + protected KaleoActionLocalService kaleoActionLocalService; + + @BeanReference(type = KaleoConditionLocalService.class) + protected KaleoConditionLocalService kaleoConditionLocalService; + + @BeanReference(type = KaleoDefinitionLocalService.class) + protected KaleoDefinitionLocalService kaleoDefinitionLocalService; + + @BeanReference(type = KaleoInstanceLocalService.class) + protected KaleoInstanceLocalService kaleoInstanceLocalService; + + @BeanReference(type = KaleoInstanceTokenLocalService.class) + protected KaleoInstanceTokenLocalService kaleoInstanceTokenLocalService; + + @BeanReference(type = KaleoLogLocalService.class) + protected KaleoLogLocalService kaleoLogLocalService; + + @BeanReference(type = KaleoNodeLocalService.class) + protected KaleoNodeLocalService kaleoNodeLocalService; + + @BeanReference(type = KaleoNotificationLocalService.class) + protected KaleoNotificationLocalService kaleoNotificationLocalService; + + @BeanReference(type = KaleoNotificationRecipientLocalService.class) + protected KaleoNotificationRecipientLocalService + kaleoNotificationRecipientLocalService; + + @BeanReference(type = KaleoTaskAssignmentLocalService.class) + protected KaleoTaskAssignmentLocalService kaleoTaskAssignmentLocalService; + + @BeanReference(type = KaleoTaskInstanceTokenLocalService.class) + protected KaleoTaskInstanceTokenLocalService + kaleoTaskInstanceTokenLocalService; + + @BeanReference(type = KaleoTaskLocalService.class) + protected KaleoTaskLocalService kaleoTaskLocalService; + + @BeanReference(type = KaleoTimerInstanceTokenLocalService.class) + protected KaleoTimerInstanceTokenLocalService + kaleoTimerInstanceTokenLocalService; + + @BeanReference(type = KaleoTimerLocalService.class) + protected KaleoTimerLocalService kaleoTimerLocalService; + + @BeanReference(type = KaleoTransitionLocalService.class) + protected KaleoTransitionLocalService kaleoTransitionLocalService; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowDefinitionManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowDefinitionManagerImpl.java index ade170dd..90b2e0d4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowDefinitionManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowDefinitionManagerImpl.java @@ -1,354 +1,354 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo; - -import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowDefinitionManager; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Michael C. Han - * @author Eduardo Lundgren - */ -public class WorkflowDefinitionManagerImpl - implements WorkflowDefinitionManager { - - - public WorkflowDefinition deployWorkflowDefinition( - long companyId, long userId, String title, byte[] bytes) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return _workflowEngine.deployWorkflowDefinition( - title, new UnsyncByteArrayInputStream(bytes), serviceContext); - } - - - public int getActiveWorkflowDefinitionCount(long companyId) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( - true, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getActiveWorkflowDefinitionCount(long companyId, String name) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( - name, true, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getActiveWorkflowDefinitions( - long companyId, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - try { - if (orderByComparator == null) { - orderByComparator = - WorkflowComparatorFactoryUtil.getDefinitionNameComparator( - true); - } - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoDefinitions = - KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( - true, start, end, orderByComparator, serviceContext); - - return toWorkflowDefinitions(kaleoDefinitions); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getActiveWorkflowDefinitions( - long companyId, String name, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoDefinitions = - KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( - name, true, start, end, orderByComparator, serviceContext); - - return toWorkflowDefinitions(kaleoDefinitions); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowDefinition getLatestKaleoDefinition( - long companyId, String name) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - KaleoDefinition kaleoDefinition = - KaleoDefinitionLocalServiceUtil.getLatestKaleoDefinition( - name, serviceContext); - - return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowDefinition getWorkflowDefinition( - long companyId, String name, int version) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - KaleoDefinition kaleoDefinition = - KaleoDefinitionLocalServiceUtil.getKaleoDefinition( - name, version, serviceContext); - - return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowDefinitionCount(long companyId) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( - serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowDefinitionCount(long companyId, String name) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( - name, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowDefinitions( - long companyId, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoDefinitions = - KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( - start, end, orderByComparator, serviceContext); - - return toWorkflowDefinitions(kaleoDefinitions); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowDefinitions( - long companyId, String name, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoDefinitions = - KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( - name, start, end, orderByComparator, serviceContext); - - return toWorkflowDefinitions(kaleoDefinitions); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - public void setWorkflowEngine(WorkflowEngine workflowEngine) { - _workflowEngine = workflowEngine; - } - - - public void undeployWorkflowDefinition( - long companyId, long userId, String name, int version) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - _workflowEngine.deleteWorkflowDefinition( - name, version, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowDefinition updateActive( - long companyId, long userId, String name, int version, - boolean active) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - if (active) { - KaleoDefinitionLocalServiceUtil.activateKaleoDefinition( - name, version, serviceContext); - } - else { - KaleoDefinitionLocalServiceUtil.deactivateKaleoDefinition( - name, version, serviceContext); - } - - return getWorkflowDefinition(companyId, name, version); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowDefinition updateTitle( - long companyId, long userId, String name, int version, String title) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - KaleoDefinition kaleoDefinition = - KaleoDefinitionLocalServiceUtil.updateTitle( - name, version, title, serviceContext); - - return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public void validateWorkflowDefinition(byte[] bytes) - throws WorkflowException { - - _workflowEngine.validateWorkflowDefinition( - new UnsyncByteArrayInputStream(bytes)); - } - - protected List toWorkflowDefinitions( - List kaleoDefinitions) { - - List workflowDefinitions = - new ArrayList(kaleoDefinitions.size()); - - for (KaleoDefinition kaleoDefinition : kaleoDefinitions) { - workflowDefinitions.add( - WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition)); - } - - return workflowDefinitions; - } - - private WorkflowEngine _workflowEngine; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowDefinitionManager; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Michael C. Han + * @author Eduardo Lundgren + */ +public class WorkflowDefinitionManagerImpl + implements WorkflowDefinitionManager { + + + public WorkflowDefinition deployWorkflowDefinition( + long companyId, long userId, String title, byte[] bytes) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return _workflowEngine.deployWorkflowDefinition( + title, new UnsyncByteArrayInputStream(bytes), serviceContext); + } + + + public int getActiveWorkflowDefinitionCount(long companyId) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( + true, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getActiveWorkflowDefinitionCount(long companyId, String name) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( + name, true, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getActiveWorkflowDefinitions( + long companyId, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + try { + if (orderByComparator == null) { + orderByComparator = + WorkflowComparatorFactoryUtil.getDefinitionNameComparator( + true); + } + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoDefinitions = + KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( + true, start, end, orderByComparator, serviceContext); + + return toWorkflowDefinitions(kaleoDefinitions); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getActiveWorkflowDefinitions( + long companyId, String name, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoDefinitions = + KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( + name, true, start, end, orderByComparator, serviceContext); + + return toWorkflowDefinitions(kaleoDefinitions); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowDefinition getLatestKaleoDefinition( + long companyId, String name) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + KaleoDefinition kaleoDefinition = + KaleoDefinitionLocalServiceUtil.getLatestKaleoDefinition( + name, serviceContext); + + return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowDefinition getWorkflowDefinition( + long companyId, String name, int version) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + KaleoDefinition kaleoDefinition = + KaleoDefinitionLocalServiceUtil.getKaleoDefinition( + name, version, serviceContext); + + return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowDefinitionCount(long companyId) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( + serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowDefinitionCount(long companyId, String name) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoDefinitionLocalServiceUtil.getKaleoDefinitionsCount( + name, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowDefinitions( + long companyId, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoDefinitions = + KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( + start, end, orderByComparator, serviceContext); + + return toWorkflowDefinitions(kaleoDefinitions); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowDefinitions( + long companyId, String name, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoDefinitions = + KaleoDefinitionLocalServiceUtil.getKaleoDefinitions( + name, start, end, orderByComparator, serviceContext); + + return toWorkflowDefinitions(kaleoDefinitions); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + public void setWorkflowEngine(WorkflowEngine workflowEngine) { + _workflowEngine = workflowEngine; + } + + + public void undeployWorkflowDefinition( + long companyId, long userId, String name, int version) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + _workflowEngine.deleteWorkflowDefinition( + name, version, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowDefinition updateActive( + long companyId, long userId, String name, int version, + boolean active) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + if (active) { + KaleoDefinitionLocalServiceUtil.activateKaleoDefinition( + name, version, serviceContext); + } + else { + KaleoDefinitionLocalServiceUtil.deactivateKaleoDefinition( + name, version, serviceContext); + } + + return getWorkflowDefinition(companyId, name, version); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowDefinition updateTitle( + long companyId, long userId, String name, int version, String title) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + KaleoDefinition kaleoDefinition = + KaleoDefinitionLocalServiceUtil.updateTitle( + name, version, title, serviceContext); + + return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public void validateWorkflowDefinition(byte[] bytes) + throws WorkflowException { + + _workflowEngine.validateWorkflowDefinition( + new UnsyncByteArrayInputStream(bytes)); + } + + protected List toWorkflowDefinitions( + List kaleoDefinitions) { + + List workflowDefinitions = + new ArrayList(kaleoDefinitions.size()); + + for (KaleoDefinition kaleoDefinition : kaleoDefinitions) { + workflowDefinitions.add( + WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition)); + } + + return workflowDefinitions; + } + + private WorkflowEngine _workflowEngine; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowEngineManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowEngineManagerImpl.java index 8fd7ad3d..886cbf9b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowEngineManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowEngineManagerImpl.java @@ -1,58 +1,58 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo; - -import java.util.Collections; -import java.util.Map; - -import com.liferay.portal.kernel.workflow.WorkflowEngineManager; - -/** - * @author Michael C. Han - */ -public class WorkflowEngineManagerImpl implements WorkflowEngineManager { - - - public String getKey() { - return _KEY; - } - - - public String getName() { - return _NAME; - } - - - public Map getOptionalAttributes() { - return _OPTIONAL_ATTRIBUTES; - } - - - public String getVersion() { - return _VERSION; - } - - - public boolean isDeployed() { - return true; - } - - private static final String _KEY = "portos"; - - private static final String _NAME = "Portos Liferay Kaleo Workflow Engine"; - - private static final Map _OPTIONAL_ATTRIBUTES = Collections.emptyMap(); - - private static final String _VERSION = "1.0.0"; - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo; + +import java.util.Collections; +import java.util.Map; + +import com.liferay.portal.kernel.workflow.WorkflowEngineManager; + +/** + * @author Michael C. Han + */ +public class WorkflowEngineManagerImpl implements WorkflowEngineManager { + + + public String getKey() { + return _KEY; + } + + + public String getName() { + return _NAME; + } + + + public Map getOptionalAttributes() { + return _OPTIONAL_ATTRIBUTES; + } + + + public String getVersion() { + return _VERSION; + } + + + public boolean isDeployed() { + return true; + } + + private static final String _KEY = "portos"; + + private static final String _NAME = "Portos Liferay Kaleo Workflow Engine"; + + private static final Map _OPTIONAL_ATTRIBUTES = Collections.emptyMap(); + + private static final String _VERSION = "1.0.0"; + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowInstanceManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowInstanceManagerImpl.java index acb00ed6..ed8db20f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowInstanceManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowInstanceManagerImpl.java @@ -1,226 +1,226 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo; - -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowInstance; -import com.liferay.portal.kernel.workflow.WorkflowInstanceManager; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; - -import java.io.Serializable; - -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class WorkflowInstanceManagerImpl implements WorkflowInstanceManager { - - - public void deleteWorkflowInstance(long companyId, long workflowInstanceId) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - _workflowEngine.deleteWorkflowInstance( - workflowInstanceId, serviceContext); - } - - - public List getNextTransitionNames( - long companyId, long userId, long workflowInstanceId) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return _workflowEngine.getNextTransitionNames( - workflowInstanceId, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowInstance getWorkflowInstance( - long companyId, long workflowInstanceId) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstance( - workflowInstanceId, serviceContext); - } - - - public int getWorkflowInstanceCount( - long companyId, Long userId, String assetClassName, - Long assetClassPK, Boolean completed) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstanceCount( - userId, assetClassName, assetClassPK, completed, serviceContext); - } - - - public int getWorkflowInstanceCount( - long companyId, Long userId, String[] assetClassNames, - Boolean completed) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstanceCount( - userId, assetClassNames, completed, serviceContext); - } - - - public int getWorkflowInstanceCount( - long companyId, String workflowDefinitionName, - Integer workflowDefinitionVersion, Boolean completed) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstanceCount( - workflowDefinitionName, workflowDefinitionVersion, completed, - serviceContext); - } - - - public List getWorkflowInstances( - long companyId, Long userId, String assetClassName, - Long assetClassPK, Boolean completed, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstances( - userId, assetClassName, assetClassPK, completed, start, end, - orderByComparator, serviceContext); - } - - - public List getWorkflowInstances( - long companyId, Long userId, String[] assetClassNames, - Boolean completed, int start, int end, - OrderByComparator orderByComparator) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstances( - userId, assetClassNames, completed, start, end, orderByComparator, - serviceContext); - } - - - public List getWorkflowInstances( - long companyId, String workflowDefinitionName, - Integer workflowDefinitionVersion, Boolean completed, int start, - int end, OrderByComparator orderByComparator) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.getWorkflowInstances( - workflowDefinitionName, workflowDefinitionVersion, completed, start, - end, orderByComparator, serviceContext); - } - - public void setWorkflowEngine(WorkflowEngine workflowEngine) { - _workflowEngine = workflowEngine; - } - - - public WorkflowInstance signalWorkflowInstance( - long companyId, long userId, long workflowInstanceId, - String transitionName, Map workflowContext) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return _workflowEngine.signalWorkflowInstance( - workflowInstanceId, transitionName, workflowContext, - serviceContext); - } - - - public WorkflowInstance startWorkflowInstance( - long companyId, long groupId, long userId, - String workflowDefinitionName, Integer workflowDefinitionVersion, - String transitionName, Map workflowContext) - throws WorkflowException { - - ServiceContext serviceContext = (ServiceContext)workflowContext.get( - WorkflowConstants.CONTEXT_SERVICE_CONTEXT); - - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(groupId); - serviceContext.setUserId(userId); - - return _workflowEngine.startWorkflowInstance( - workflowDefinitionName, workflowDefinitionVersion, transitionName, - workflowContext, serviceContext); - } - - - public WorkflowInstance updateWorkflowContext( - long companyId, long workflowInstanceId, - Map workflowContext) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return _workflowEngine.updateContext( - workflowInstanceId, workflowContext, serviceContext); - } - - private WorkflowEngine _workflowEngine; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowInstance; +import com.liferay.portal.kernel.workflow.WorkflowInstanceManager; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; + +import java.io.Serializable; + +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class WorkflowInstanceManagerImpl implements WorkflowInstanceManager { + + + public void deleteWorkflowInstance(long companyId, long workflowInstanceId) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + _workflowEngine.deleteWorkflowInstance( + workflowInstanceId, serviceContext); + } + + + public List getNextTransitionNames( + long companyId, long userId, long workflowInstanceId) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return _workflowEngine.getNextTransitionNames( + workflowInstanceId, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowInstance getWorkflowInstance( + long companyId, long workflowInstanceId) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstance( + workflowInstanceId, serviceContext); + } + + + public int getWorkflowInstanceCount( + long companyId, Long userId, String assetClassName, + Long assetClassPK, Boolean completed) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstanceCount( + userId, assetClassName, assetClassPK, completed, serviceContext); + } + + + public int getWorkflowInstanceCount( + long companyId, Long userId, String[] assetClassNames, + Boolean completed) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstanceCount( + userId, assetClassNames, completed, serviceContext); + } + + + public int getWorkflowInstanceCount( + long companyId, String workflowDefinitionName, + Integer workflowDefinitionVersion, Boolean completed) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstanceCount( + workflowDefinitionName, workflowDefinitionVersion, completed, + serviceContext); + } + + + public List getWorkflowInstances( + long companyId, Long userId, String assetClassName, + Long assetClassPK, Boolean completed, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstances( + userId, assetClassName, assetClassPK, completed, start, end, + orderByComparator, serviceContext); + } + + + public List getWorkflowInstances( + long companyId, Long userId, String[] assetClassNames, + Boolean completed, int start, int end, + OrderByComparator orderByComparator) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstances( + userId, assetClassNames, completed, start, end, orderByComparator, + serviceContext); + } + + + public List getWorkflowInstances( + long companyId, String workflowDefinitionName, + Integer workflowDefinitionVersion, Boolean completed, int start, + int end, OrderByComparator orderByComparator) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.getWorkflowInstances( + workflowDefinitionName, workflowDefinitionVersion, completed, start, + end, orderByComparator, serviceContext); + } + + public void setWorkflowEngine(WorkflowEngine workflowEngine) { + _workflowEngine = workflowEngine; + } + + + public WorkflowInstance signalWorkflowInstance( + long companyId, long userId, long workflowInstanceId, + String transitionName, Map workflowContext) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return _workflowEngine.signalWorkflowInstance( + workflowInstanceId, transitionName, workflowContext, + serviceContext); + } + + + public WorkflowInstance startWorkflowInstance( + long companyId, long groupId, long userId, + String workflowDefinitionName, Integer workflowDefinitionVersion, + String transitionName, Map workflowContext) + throws WorkflowException { + + ServiceContext serviceContext = (ServiceContext)workflowContext.get( + WorkflowConstants.CONTEXT_SERVICE_CONTEXT); + + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(groupId); + serviceContext.setUserId(userId); + + return _workflowEngine.startWorkflowInstance( + workflowDefinitionName, workflowDefinitionVersion, transitionName, + workflowContext, serviceContext); + } + + + public WorkflowInstance updateWorkflowContext( + long companyId, long workflowInstanceId, + Map workflowContext) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return _workflowEngine.updateContext( + workflowInstanceId, workflowContext, serviceContext); + } + + private WorkflowEngine _workflowEngine; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowLogManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowLogManagerImpl.java index fa424c28..bfd563dc 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowLogManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowLogManagerImpl.java @@ -1,110 +1,110 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo; - -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowLog; -import com.liferay.portal.kernel.workflow.WorkflowLogManager; -import com.liferay.portal.workflow.kaleo.model.KaleoLog; -import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class WorkflowLogManagerImpl implements WorkflowLogManager { - - - public int getWorkflowLogCountByWorkflowInstance( - long companyId, long workflowInstanceId, List logTypes) - throws WorkflowException { - - try { - return KaleoLogLocalServiceUtil.getKaleoInstanceKaleoLogsCount( - workflowInstanceId, logTypes); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowLogCountByWorkflowTask( - long companyId, long workflowTaskId, List logTypes) - throws WorkflowException { - - try { - return KaleoLogLocalServiceUtil. - getKaleoTaskInstanceTokenKaleoLogsCount( - workflowTaskId, logTypes); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowLogsByWorkflowInstance( - long companyId, long workflowInstanceId, List logTypes, - int start, int end, OrderByComparator orderByComparator) - throws WorkflowException { - - try { - List kaleoLogs = - KaleoLogLocalServiceUtil.getKaleoInstanceKaleoLogs( - workflowInstanceId, logTypes, start, end, - orderByComparator); - - return toWorkflowLogs(kaleoLogs); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowLogsByWorkflowTask( - long companyId, long workflowTaskId, List logTypes, - int start, int end, OrderByComparator orderByComparator) - throws WorkflowException { - - try { - List kaleoLogs = - KaleoLogLocalServiceUtil.getKaleoTaskInstanceTokenKaleoLogs( - workflowTaskId, logTypes, start, end, orderByComparator); - - return toWorkflowLogs(kaleoLogs); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - protected List toWorkflowLogs(List kaleoLogs) { - List workflowLogs = new ArrayList( - kaleoLogs.size()); - - for (KaleoLog kaleoLog : kaleoLogs) { - workflowLogs.add(WorkflowModelUtil.toWorkflowLog(kaleoLog)); - } - - return workflowLogs; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowLog; +import com.liferay.portal.kernel.workflow.WorkflowLogManager; +import com.liferay.portal.workflow.kaleo.model.KaleoLog; +import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class WorkflowLogManagerImpl implements WorkflowLogManager { + + + public int getWorkflowLogCountByWorkflowInstance( + long companyId, long workflowInstanceId, List logTypes) + throws WorkflowException { + + try { + return KaleoLogLocalServiceUtil.getKaleoInstanceKaleoLogsCount( + workflowInstanceId, logTypes); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowLogCountByWorkflowTask( + long companyId, long workflowTaskId, List logTypes) + throws WorkflowException { + + try { + return KaleoLogLocalServiceUtil. + getKaleoTaskInstanceTokenKaleoLogsCount( + workflowTaskId, logTypes); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowLogsByWorkflowInstance( + long companyId, long workflowInstanceId, List logTypes, + int start, int end, OrderByComparator orderByComparator) + throws WorkflowException { + + try { + List kaleoLogs = + KaleoLogLocalServiceUtil.getKaleoInstanceKaleoLogs( + workflowInstanceId, logTypes, start, end, + orderByComparator); + + return toWorkflowLogs(kaleoLogs); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowLogsByWorkflowTask( + long companyId, long workflowTaskId, List logTypes, + int start, int end, OrderByComparator orderByComparator) + throws WorkflowException { + + try { + List kaleoLogs = + KaleoLogLocalServiceUtil.getKaleoTaskInstanceTokenKaleoLogs( + workflowTaskId, logTypes, start, end, orderByComparator); + + return toWorkflowLogs(kaleoLogs); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + protected List toWorkflowLogs(List kaleoLogs) { + List workflowLogs = new ArrayList( + kaleoLogs.size()); + + for (KaleoLog kaleoLog : kaleoLogs) { + workflowLogs.add(WorkflowModelUtil.toWorkflowLog(kaleoLog)); + } + + return workflowLogs; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowTaskManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowTaskManagerImpl.java index 38f38377..523615c9 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowTaskManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/WorkflowTaskManagerImpl.java @@ -1,719 +1,719 @@ -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo; - -import com.liferay.compat.portal.kernel.util.MapUtil; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONArray; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.json.JSONSerializer; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.PrimitiveLongSet; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowHandler; -import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; -import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowTaskManager; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.model.UserGroupGroupRole; -import com.liferay.portal.model.UserGroupRole; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.KaleoSignaler; -import com.liferay.portal.workflow.kaleo.runtime.TaskManager; -import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; -import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; -import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil; -import com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil; - -import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; -import it.tref.liferay.portos.kaleo.model.FormTemplateLink; -import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; -import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; -import it.tref.liferay.portos.kaleo.service.FormTemplateLinkLocalServiceUtil; -import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Locale; -import java.util.Map; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class WorkflowTaskManagerImpl implements WorkflowTaskManager { - - - public WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskInstanceId, long roleId, - String comment, Date dueDate, Map workflowContext) throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return _taskManager.assignWorkflowTaskToRole(workflowTaskInstanceId, roleId, comment, dueDate, workflowContext, - serviceContext); - } - - - public WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskInstanceId, - long assigneeUserId, String comment, Date dueDate, Map workflowContext) - throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - WorkflowTask workflowTask = - _taskManager.assignWorkflowTaskToUser(workflowTaskInstanceId, assigneeUserId, comment, dueDate, - workflowContext, serviceContext); - - return workflowTask; - } - - - public WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskInstanceId, - String transitionName, String comment, Map workflowContext) throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - // Validate - - validateWorkflowTask(companyId, userId, workflowTaskInstanceId, transitionName, comment, workflowContext, - serviceContext); - - WorkflowTask workflowTask = - _taskManager.completeWorkflowTask(workflowTaskInstanceId, transitionName, comment, workflowContext, - serviceContext); - - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTask.getWorkflowTaskId()); - - KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); - - if (workflowContext == null) { - workflowContext = WorkflowContextUtil.convert(kaleoInstanceToken.getKaleoInstance().getWorkflowContext()); - } - - WorkflowHandler workflowHandler = - WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken.getClassName()); - if (workflowHandler != null) { - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); - } - - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); - workflowContext - .put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, String.valueOf(kaleoTaskInstanceToken.getClassPK())); - workflowContext.put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); - workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); - workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(userId)); - workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); - - workflowContext.put(WorkflowConstants.CONTEXT_TASK_COMMENTS, comment); - workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); - - String jsonFormParameters = null; - if (workflowContext.containsKey(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS)) { - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); - jsonFormParameters = - jsonSerializer.serialize(workflowContext.get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS)); - } - - WorkflowInstanceManagerUtil.updateWorkflowContext(companyId, workflowTask.getWorkflowInstanceId(), - workflowContext); - - // Form Log - - FormLogLocalServiceUtil.addFormLog(workflowTask.getWorkflowInstanceId(), workflowTask.getWorkflowTaskId(), - transitionName, jsonFormParameters, serviceContext); - - ExecutionContext executionContext = new ExecutionContext(kaleoInstanceToken, workflowContext, serviceContext); - - _kaleoSignaler.signalExit(transitionName, executionContext); - - } catch (Exception e) { - throw new WorkflowException("Unable to complete task", e); - } - - return workflowTask; - } - - public List getNextTransitionNames(long companyId, long userId, long workflowTaskInstanceId) - throws WorkflowException { - - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - KaleoNode kaleoNode = kaleoTask.getKaleoNode(); - - List kaleoTransitions = kaleoNode.getKaleoTransitions(); - - List transitionNames = new ArrayList(kaleoTransitions.size()); - - for (KaleoTransition kaleoTransition : kaleoTransitions) { - transitionNames.add(kaleoTransition.getName()); - } - - return transitionNames; - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public long[] getPooledActorsIds(long companyId, long workflowTaskInstanceId) throws WorkflowException { - - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - List kaleoTaskAssignments = - KaleoTaskAssignmentLocalServiceUtil.getKaleoTaskAssignments(kaleoTask.getKaleoTaskId(), Role.class.getName()); - - PrimitiveLongSet pooledActors = new PrimitiveLongSet(); - - for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { - - Role role = RoleLocalServiceUtil.getRole(kaleoTaskAssignment.getAssigneeClassPK()); - - if ((role.getType() == RoleConstants.TYPE_SITE) || (role.getType() == RoleConstants.TYPE_ORGANIZATION)) { - - List userGroupRoles = - UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(kaleoTaskInstanceToken.getGroupId(), - kaleoTaskAssignment.getAssigneeClassPK()); - - for (UserGroupRole userGroupRole : userGroupRoles) { - pooledActors.add(userGroupRole.getUserId()); - } - - List userGroupGroupRoles = - UserGroupGroupRoleLocalServiceUtil.getUserGroupGroupRolesByGroupAndRole( - kaleoTaskInstanceToken.getGroupId(), kaleoTaskAssignment.getAssigneeClassPK()); - - for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { - - List userGroupUsers = UserLocalServiceUtil.getUserGroupUsers(userGroupGroupRole.getUserGroupId()); - - for (User user : userGroupUsers) { - pooledActors.add(user.getUserId()); - } - } - } else { - List inheritedRoleUsers = - UserLocalServiceUtil.getInheritedRoleUsers(kaleoTaskAssignment.getAssigneeClassPK(), QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - - for (User user : inheritedRoleUsers) { - pooledActors.add(user.getUserId()); - } - } - } - - return pooledActors.getArray(); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowTask getWorkflowTask(long companyId, long workflowTaskInstanceId) throws WorkflowException { - - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); - - return WorkflowModelUtil.toWorkflowTask(kaleoTaskInstanceToken, - WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext())); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCount(long companyId, Boolean completed) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(completed, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(Role.class.getName(), roleId, - completed, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - return KaleoTaskInstanceTokenLocalServiceUtil.getSubmittingUserKaleoTaskInstanceTokensCount(userId, completed, - serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCountByUser(long companyId, long userId, Boolean completed) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(User.class.getName(), - serviceContext.getUserId(), completed, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(null, completed, Boolean.TRUE, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, - Boolean completed) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - if (userId != null) { - serviceContext.setUserId(userId); - } - - return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(workflowInstanceId, completed, - serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasks(long companyId, Boolean completed, int start, int end, - OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(completed, start, end, orderByComparator, - serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, - OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(Role.class.getName(), roleId, completed, - start, end, orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, - int end, OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.getSubmittingUserKaleoTaskInstanceTokens(userId, completed, start, - end, orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, - OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(User.class.getName(), userId, completed, - start, end, orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, - int end, OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.search(null, completed, Boolean.TRUE, start, end, orderByComparator, - serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, - Boolean completed, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - if (userId != null) { - serviceContext.setUserId(userId); - } - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(workflowInstanceId, completed, start, end, - orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List search(long companyId, long userId, String keywords, Boolean completed, - Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.search(keywords, completed, searchByUserRoles, start, end, - orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List search(long companyId, long userId, String taskName, String assetType, - Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, - boolean andOperator, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.search(taskName, assetType, assetPrimaryKey, dueDateGT, dueDateLT, - completed, searchByUserRoles, andOperator, start, end, orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List search(long companyId, long userId, String keywords, String[] assetTypes, - Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - List kaleoTaskInstanceTokens = - KaleoTaskInstanceTokenLocalServiceUtil.search(keywords, assetTypes, completed, searchByUserRoles, start, end, - orderByComparator, serviceContext); - - return toWorkflowTasks(kaleoTaskInstanceTokens); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int searchCount(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(keywords, completed, searchByUserRoles, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int searchCount(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, - Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator) - throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(taskName, assetType, assetPrimaryKey, dueDateGT, - dueDateLT, completed, searchByUserRoles, andOperator, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int searchCount(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, - Boolean searchByUserRoles) throws WorkflowException { - - try { - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(keywords, assetTypes, completed, searchByUserRoles, - serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - public void setKaleoSignaler(KaleoSignaler kaleoSignaler) { - _kaleoSignaler = kaleoSignaler; - } - - public void setTaskManager(TaskManager taskManager) { - _taskManager = taskManager; - } - - - public WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskInstanceId, String comment, - Date dueDate) throws WorkflowException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(userId); - - return _taskManager.updateDueDate(workflowTaskInstanceId, comment, dueDate, serviceContext); - } - - protected List toWorkflowTasks(List kaleoTaskInstanceTokens) - throws PortalException, SystemException { - - List workflowTasks = new ArrayList(kaleoTaskInstanceTokens.size()); - - for (KaleoTaskInstanceToken kaleoTaskInstanceToken : kaleoTaskInstanceTokens) { - - workflowTasks.add(WorkflowModelUtil.toWorkflowTask(kaleoTaskInstanceToken, - WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext()))); - } - - return workflowTasks; - } - - private void validateWorkflowTask(long companyId, long userId, long workflowTaskInstanceId, String transitionName, - String comment, Map workflowContext, ServiceContext serviceContext) - throws WorkflowException { - - try { - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); - - KaleoDefinition kaleoDefinition = - KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken.getKaleoDefinitionId()); - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - FormDefinitionLink formDefinitionLink = - FormDefinitionLinkLocalServiceUtil.fetchByC_DefinitionName_DefinitionVersion(companyId, - kaleoDefinition.getName(), kaleoDefinition.getVersion()); - - if (formDefinitionLink != null) { - - FormTemplateLink formTemplateLink = - FormTemplateLinkLocalServiceUtil.fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName( - formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName); - - if (formTemplateLink != null) { - - DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink.getDdmTemplateId()); - - String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class), ddmTemplate.getTemplateId()); - - JSONArray jsonArray = DDMXSDUtil.getJSONArray(xsd); - - Map formParameters = - (Map) workflowContext.get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS); - - if (formParameters != null) { - for (int i = 0; i < jsonArray.length(); i++) { - JSONObject jsonObject = jsonArray.getJSONObject(i); - String name = jsonObject.getString("name"); - boolean required = GetterUtil.getBoolean(jsonObject.getString("required")); - if (required) { - String value = formParameters.get(name); - if (Validator.isNull(value)) { - throw new Exception("required field -> outcome errors"); - } - } - } - } - } - } - - ExecutionContext executionContext = - new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), kaleoTaskInstanceToken, workflowContext, - serviceContext); - - ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), - ExecutionType.ON_VALIDATION, executionContext); - - if (executionContext.getWorkflowContext().containsKey(WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER)) { - String json = - MapUtil.getString(executionContext.getWorkflowContext(), - WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER); - JSONObject validationJSON = JSONFactoryUtil.createJSONObject(json); - JSONArray validationErrorsJSON = validationJSON.getJSONArray("errors"); - if (validationErrorsJSON != null && validationErrorsJSON.length() > 0) { - throw new Exception("onValidation -> outcome errors"); - } - } - - } catch (Exception e) { - throw new WorkflowException("Unable to validate task", e); - } - } - - private KaleoSignaler _kaleoSignaler; - private TaskManager _taskManager; - -} +/** + * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo; + +import com.liferay.compat.portal.kernel.util.MapUtil; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONArray; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.PrimitiveLongSet; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowHandler; +import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; +import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowTaskManager; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.model.UserGroupGroupRole; +import com.liferay.portal.model.UserGroupRole; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.KaleoSignaler; +import com.liferay.portal.workflow.kaleo.runtime.TaskManager; +import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; +import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; +import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil; +import com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil; + +import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; +import it.tref.liferay.portos.kaleo.model.FormTemplateLink; +import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; +import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; +import it.tref.liferay.portos.kaleo.service.FormTemplateLinkLocalServiceUtil; +import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class WorkflowTaskManagerImpl implements WorkflowTaskManager { + + + public WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskInstanceId, long roleId, + String comment, Date dueDate, Map workflowContext) throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return _taskManager.assignWorkflowTaskToRole(workflowTaskInstanceId, roleId, comment, dueDate, workflowContext, + serviceContext); + } + + + public WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskInstanceId, + long assigneeUserId, String comment, Date dueDate, Map workflowContext) + throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + WorkflowTask workflowTask = + _taskManager.assignWorkflowTaskToUser(workflowTaskInstanceId, assigneeUserId, comment, dueDate, + workflowContext, serviceContext); + + return workflowTask; + } + + + public WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskInstanceId, + String transitionName, String comment, Map workflowContext) throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + // Validate + + validateWorkflowTask(companyId, userId, workflowTaskInstanceId, transitionName, comment, workflowContext, + serviceContext); + + WorkflowTask workflowTask = + _taskManager.completeWorkflowTask(workflowTaskInstanceId, transitionName, comment, workflowContext, + serviceContext); + + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTask.getWorkflowTaskId()); + + KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); + + if (workflowContext == null) { + workflowContext = WorkflowContextUtil.convert(kaleoInstanceToken.getKaleoInstance().getWorkflowContext()); + } + + WorkflowHandler workflowHandler = + WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken.getClassName()); + if (workflowHandler != null) { + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); + } + + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); + workflowContext + .put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, String.valueOf(kaleoTaskInstanceToken.getClassPK())); + workflowContext.put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); + workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); + workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(userId)); + workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); + + workflowContext.put(WorkflowConstants.CONTEXT_TASK_COMMENTS, comment); + workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); + + String jsonFormParameters = null; + if (workflowContext.containsKey(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS)) { + JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); + jsonFormParameters = + jsonSerializer.serialize(workflowContext.get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS)); + } + + WorkflowInstanceManagerUtil.updateWorkflowContext(companyId, workflowTask.getWorkflowInstanceId(), + workflowContext); + + // Form Log + + FormLogLocalServiceUtil.addFormLog(workflowTask.getWorkflowInstanceId(), workflowTask.getWorkflowTaskId(), + transitionName, jsonFormParameters, serviceContext); + + ExecutionContext executionContext = new ExecutionContext(kaleoInstanceToken, workflowContext, serviceContext); + + _kaleoSignaler.signalExit(transitionName, executionContext); + + } catch (Exception e) { + throw new WorkflowException("Unable to complete task", e); + } + + return workflowTask; + } + + public List getNextTransitionNames(long companyId, long userId, long workflowTaskInstanceId) + throws WorkflowException { + + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + KaleoNode kaleoNode = kaleoTask.getKaleoNode(); + + List kaleoTransitions = kaleoNode.getKaleoTransitions(); + + List transitionNames = new ArrayList(kaleoTransitions.size()); + + for (KaleoTransition kaleoTransition : kaleoTransitions) { + transitionNames.add(kaleoTransition.getName()); + } + + return transitionNames; + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public long[] getPooledActorsIds(long companyId, long workflowTaskInstanceId) throws WorkflowException { + + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + List kaleoTaskAssignments = + KaleoTaskAssignmentLocalServiceUtil.getKaleoTaskAssignments(kaleoTask.getKaleoTaskId(), Role.class.getName()); + + PrimitiveLongSet pooledActors = new PrimitiveLongSet(); + + for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { + + Role role = RoleLocalServiceUtil.getRole(kaleoTaskAssignment.getAssigneeClassPK()); + + if ((role.getType() == RoleConstants.TYPE_SITE) || (role.getType() == RoleConstants.TYPE_ORGANIZATION)) { + + List userGroupRoles = + UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(kaleoTaskInstanceToken.getGroupId(), + kaleoTaskAssignment.getAssigneeClassPK()); + + for (UserGroupRole userGroupRole : userGroupRoles) { + pooledActors.add(userGroupRole.getUserId()); + } + + List userGroupGroupRoles = + UserGroupGroupRoleLocalServiceUtil.getUserGroupGroupRolesByGroupAndRole( + kaleoTaskInstanceToken.getGroupId(), kaleoTaskAssignment.getAssigneeClassPK()); + + for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { + + List userGroupUsers = UserLocalServiceUtil.getUserGroupUsers(userGroupGroupRole.getUserGroupId()); + + for (User user : userGroupUsers) { + pooledActors.add(user.getUserId()); + } + } + } else { + List inheritedRoleUsers = + UserLocalServiceUtil.getInheritedRoleUsers(kaleoTaskAssignment.getAssigneeClassPK(), QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + + for (User user : inheritedRoleUsers) { + pooledActors.add(user.getUserId()); + } + } + } + + return pooledActors.getArray(); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowTask getWorkflowTask(long companyId, long workflowTaskInstanceId) throws WorkflowException { + + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); + + return WorkflowModelUtil.toWorkflowTask(kaleoTaskInstanceToken, + WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext())); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCount(long companyId, Boolean completed) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(completed, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(Role.class.getName(), roleId, + completed, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + return KaleoTaskInstanceTokenLocalServiceUtil.getSubmittingUserKaleoTaskInstanceTokensCount(userId, completed, + serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCountByUser(long companyId, long userId, Boolean completed) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(User.class.getName(), + serviceContext.getUserId(), completed, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(null, completed, Boolean.TRUE, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, + Boolean completed) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + if (userId != null) { + serviceContext.setUserId(userId); + } + + return KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokensCount(workflowInstanceId, completed, + serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasks(long companyId, Boolean completed, int start, int end, + OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(completed, start, end, orderByComparator, + serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, + OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(Role.class.getName(), roleId, completed, + start, end, orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, + int end, OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.getSubmittingUserKaleoTaskInstanceTokens(userId, completed, start, + end, orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, + OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(User.class.getName(), userId, completed, + start, end, orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, + int end, OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.search(null, completed, Boolean.TRUE, start, end, orderByComparator, + serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, + Boolean completed, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + if (userId != null) { + serviceContext.setUserId(userId); + } + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens(workflowInstanceId, completed, start, end, + orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List search(long companyId, long userId, String keywords, Boolean completed, + Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.search(keywords, completed, searchByUserRoles, start, end, + orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List search(long companyId, long userId, String taskName, String assetType, + Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, + boolean andOperator, int start, int end, OrderByComparator orderByComparator) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.search(taskName, assetType, assetPrimaryKey, dueDateGT, dueDateLT, + completed, searchByUserRoles, andOperator, start, end, orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List search(long companyId, long userId, String keywords, String[] assetTypes, + Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + List kaleoTaskInstanceTokens = + KaleoTaskInstanceTokenLocalServiceUtil.search(keywords, assetTypes, completed, searchByUserRoles, start, end, + orderByComparator, serviceContext); + + return toWorkflowTasks(kaleoTaskInstanceTokens); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int searchCount(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(keywords, completed, searchByUserRoles, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int searchCount(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, + Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator) + throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(taskName, assetType, assetPrimaryKey, dueDateGT, + dueDateLT, completed, searchByUserRoles, andOperator, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int searchCount(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, + Boolean searchByUserRoles) throws WorkflowException { + + try { + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return KaleoTaskInstanceTokenLocalServiceUtil.searchCount(keywords, assetTypes, completed, searchByUserRoles, + serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + public void setKaleoSignaler(KaleoSignaler kaleoSignaler) { + _kaleoSignaler = kaleoSignaler; + } + + public void setTaskManager(TaskManager taskManager) { + _taskManager = taskManager; + } + + + public WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskInstanceId, String comment, + Date dueDate) throws WorkflowException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(userId); + + return _taskManager.updateDueDate(workflowTaskInstanceId, comment, dueDate, serviceContext); + } + + protected List toWorkflowTasks(List kaleoTaskInstanceTokens) + throws PortalException, SystemException { + + List workflowTasks = new ArrayList(kaleoTaskInstanceTokens.size()); + + for (KaleoTaskInstanceToken kaleoTaskInstanceToken : kaleoTaskInstanceTokens) { + + workflowTasks.add(WorkflowModelUtil.toWorkflowTask(kaleoTaskInstanceToken, + WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext()))); + } + + return workflowTasks; + } + + private void validateWorkflowTask(long companyId, long userId, long workflowTaskInstanceId, String transitionName, + String comment, Map workflowContext, ServiceContext serviceContext) + throws WorkflowException { + + try { + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceToken(workflowTaskInstanceId); + + KaleoDefinition kaleoDefinition = + KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken.getKaleoDefinitionId()); + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + FormDefinitionLink formDefinitionLink = + FormDefinitionLinkLocalServiceUtil.fetchByC_DefinitionName_DefinitionVersion(companyId, + kaleoDefinition.getName(), kaleoDefinition.getVersion()); + + if (formDefinitionLink != null) { + + FormTemplateLink formTemplateLink = + FormTemplateLinkLocalServiceUtil.fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName( + formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName); + + if (formTemplateLink != null) { + + DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink.getDdmTemplateId()); + + String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class), ddmTemplate.getTemplateId()); + + JSONArray jsonArray = DDMXSDUtil.getJSONArray(xsd); + + Map formParameters = + (Map) workflowContext.get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS); + + if (formParameters != null) { + for (int i = 0; i < jsonArray.length(); i++) { + JSONObject jsonObject = jsonArray.getJSONObject(i); + String name = jsonObject.getString("name"); + boolean required = GetterUtil.getBoolean(jsonObject.getString("required")); + if (required) { + String value = formParameters.get(name); + if (Validator.isNull(value)) { + throw new Exception("required field -> outcome errors"); + } + } + } + } + } + } + + ExecutionContext executionContext = + new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), kaleoTaskInstanceToken, workflowContext, + serviceContext); + + ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), + ExecutionType.ON_VALIDATION, executionContext); + + if (executionContext.getWorkflowContext().containsKey(WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER)) { + String json = + MapUtil.getString(executionContext.getWorkflowContext(), + WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER); + JSONObject validationJSON = JSONFactoryUtil.createJSONObject(json); + JSONArray validationErrorsJSON = validationJSON.getJSONArray("errors"); + if (validationErrorsJSON != null && validationErrorsJSON.length() > 0) { + throw new Exception("onValidation -> outcome errors"); + } + } + + } catch (Exception e) { + throw new WorkflowException("Unable to validate task", e); + } + } + + private KaleoSignaler _kaleoSignaler; + private TaskManager _taskManager; + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/comparator/WorkflowComparatorFactoryImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/comparator/WorkflowComparatorFactoryImpl.java index 488402bf..0ec0dd4d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/comparator/WorkflowComparatorFactoryImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/comparator/WorkflowComparatorFactoryImpl.java @@ -1,126 +1,126 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.comparator; - -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactory; -import com.liferay.portal.kernel.workflow.comparator.WorkflowDefinitionNameComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceEndDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceStartDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceStateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowLogCreateDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowLogUserIdComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskCompletionDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskCreateDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskDueDateComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskNameComparator; -import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskUserIdComparator; - -/** - * @author Michael C. Han - */ -public class WorkflowComparatorFactoryImpl - implements WorkflowComparatorFactory { - - - public OrderByComparator getDefinitionNameComparator(boolean ascending) { - return new WorkflowDefinitionNameComparator( - ascending, "name ASC, version ASC", "name DESC, version DESC", - new String[] {"name", "version"}); - } - - - public OrderByComparator getInstanceEndDateComparator(boolean ascending) { - return new WorkflowInstanceEndDateComparator( - ascending, "endDate ASC, kaleoInstanceId ASC", - "endDate DESC, kaleoInstanceId DESC", - new String[] {"endDate", "kaleoInstanceId"}); - } - - - public OrderByComparator getInstanceStartDateComparator(boolean ascending) { - return new WorkflowInstanceStartDateComparator( - ascending, "createDate ASC, kaleoInstanceId ASC", - "createDate DESC, kaleoInstanceId DESC", - new String[] {"createDate", "kaleoInstanceId"}); - } - - - public OrderByComparator getInstanceStateComparator(boolean ascending) { - return new WorkflowInstanceStateComparator( - ascending, "state ASC, kaleoInstanceId ASC", - "state DESC, kaleoInstanceId DESC", - new String[] {"state", "kaleoInstanceId"}); - } - - - public OrderByComparator getLogCreateDateComparator(boolean ascending) { - return new WorkflowLogCreateDateComparator( - ascending, "createDate ASC, kaleoLogId ASC", - "createDate DESC, kaleoLogId DESC", - new String[] {"createDate", "kaleoLogId"}); - } - - - public OrderByComparator getLogUserIdComparator(boolean ascending) { - return new WorkflowLogUserIdComparator( - ascending, "userId ASC, kaleoLogId ASC", - "userId DESC, kaleoLogId DESC", - new String[] {"userId", "kaleoLogId"}); - } - - - public OrderByComparator getTaskCompletionDateComparator( - boolean ascending) { - - return new WorkflowTaskCompletionDateComparator( - ascending, "completionDate ASC, kaleoTaskId ASC", - "completionDate DESC, kaleoTaskId DESC", - new String[] {"completionDate", "kaleoTaskId"}); - } - - - public OrderByComparator getTaskCreateDateComparator(boolean ascending) { - return new WorkflowTaskCreateDateComparator( - ascending, "createDate ASC, kaleoTaskInstanceTokenId ASC", - "createDate DESC, kaleoTaskInstanceTokenId DESC", - new String[] {"createDate", "kaleoTaskInstanceTokenId"}); - } - - - public OrderByComparator getTaskDueDateComparator(boolean ascending) { - return new WorkflowTaskDueDateComparator( - ascending, "dueDate ASC, modifiedDate ASC, kaleoTaskId ASC", - "dueDate DESC, modifiedDate DESC, kaleoTaskId DESC", - new String[] {"dueDate", "modifiedDate", "kaleoTaskId"}); - } - - - public OrderByComparator getTaskNameComparator(boolean ascending) { - return new WorkflowTaskNameComparator( - ascending, "name ASC, kaleoTaskId ASC", - "name DESC, kaleoTaskId DESC", - new String[] {"name", "kaleoTaskId"}); - } - - - public OrderByComparator getTaskUserIdComparator(boolean ascending) { - return new WorkflowTaskUserIdComparator( - ascending, "userId ASC, kaleoTaskId ASC", - "userId DESC, kaleoTaskId DESC", - new String[] {"userId", "kaleoTaskId"}); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.comparator; + +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactory; +import com.liferay.portal.kernel.workflow.comparator.WorkflowDefinitionNameComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceEndDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceStartDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowInstanceStateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowLogCreateDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowLogUserIdComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskCompletionDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskCreateDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskDueDateComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskNameComparator; +import com.liferay.portal.kernel.workflow.comparator.WorkflowTaskUserIdComparator; + +/** + * @author Michael C. Han + */ +public class WorkflowComparatorFactoryImpl + implements WorkflowComparatorFactory { + + + public OrderByComparator getDefinitionNameComparator(boolean ascending) { + return new WorkflowDefinitionNameComparator( + ascending, "name ASC, version ASC", "name DESC, version DESC", + new String[] {"name", "version"}); + } + + + public OrderByComparator getInstanceEndDateComparator(boolean ascending) { + return new WorkflowInstanceEndDateComparator( + ascending, "endDate ASC, kaleoInstanceId ASC", + "endDate DESC, kaleoInstanceId DESC", + new String[] {"endDate", "kaleoInstanceId"}); + } + + + public OrderByComparator getInstanceStartDateComparator(boolean ascending) { + return new WorkflowInstanceStartDateComparator( + ascending, "createDate ASC, kaleoInstanceId ASC", + "createDate DESC, kaleoInstanceId DESC", + new String[] {"createDate", "kaleoInstanceId"}); + } + + + public OrderByComparator getInstanceStateComparator(boolean ascending) { + return new WorkflowInstanceStateComparator( + ascending, "state ASC, kaleoInstanceId ASC", + "state DESC, kaleoInstanceId DESC", + new String[] {"state", "kaleoInstanceId"}); + } + + + public OrderByComparator getLogCreateDateComparator(boolean ascending) { + return new WorkflowLogCreateDateComparator( + ascending, "createDate ASC, kaleoLogId ASC", + "createDate DESC, kaleoLogId DESC", + new String[] {"createDate", "kaleoLogId"}); + } + + + public OrderByComparator getLogUserIdComparator(boolean ascending) { + return new WorkflowLogUserIdComparator( + ascending, "userId ASC, kaleoLogId ASC", + "userId DESC, kaleoLogId DESC", + new String[] {"userId", "kaleoLogId"}); + } + + + public OrderByComparator getTaskCompletionDateComparator( + boolean ascending) { + + return new WorkflowTaskCompletionDateComparator( + ascending, "completionDate ASC, kaleoTaskId ASC", + "completionDate DESC, kaleoTaskId DESC", + new String[] {"completionDate", "kaleoTaskId"}); + } + + + public OrderByComparator getTaskCreateDateComparator(boolean ascending) { + return new WorkflowTaskCreateDateComparator( + ascending, "createDate ASC, kaleoTaskInstanceTokenId ASC", + "createDate DESC, kaleoTaskInstanceTokenId DESC", + new String[] {"createDate", "kaleoTaskInstanceTokenId"}); + } + + + public OrderByComparator getTaskDueDateComparator(boolean ascending) { + return new WorkflowTaskDueDateComparator( + ascending, "dueDate ASC, modifiedDate ASC, kaleoTaskId ASC", + "dueDate DESC, modifiedDate DESC, kaleoTaskId DESC", + new String[] {"dueDate", "modifiedDate", "kaleoTaskId"}); + } + + + public OrderByComparator getTaskNameComparator(boolean ascending) { + return new WorkflowTaskNameComparator( + ascending, "name ASC, kaleoTaskId ASC", + "name DESC, kaleoTaskId DESC", + new String[] {"name", "kaleoTaskId"}); + } + + + public OrderByComparator getTaskUserIdComparator(boolean ascending) { + return new WorkflowTaskUserIdComparator( + ascending, "userId ASC, kaleoTaskId ASC", + "userId DESC, kaleoTaskId DESC", + new String[] {"userId", "kaleoTaskId"}); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java index ac8b4e8c..ee01c593 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/definition/ExecutionType.java @@ -1,56 +1,56 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.definition; - -/** - * @author Michael C. Han - */ -public enum ExecutionType { - - ON_ASSIGNMENT("onAssignment"), ON_ENTRY("onEntry"), ON_EXIT("onExit"), ON_TIMER("onTimer"), ON_VALIDATION( - "onValidation"), ON_OPEN_FORM("onOperForm"); - - public static ExecutionType parse(String value) { - if (ON_ASSIGNMENT.getValue().equals(value)) { - return ON_ASSIGNMENT; - } else if (ON_ENTRY.getValue().equals(value)) { - return ON_ENTRY; - } else if (ON_EXIT.getValue().equals(value)) { - return ON_EXIT; - } else if (ON_TIMER.getValue().equals(value)) { - return ON_TIMER; - } else if (ON_VALIDATION.getValue().equals(value)) { - return ON_VALIDATION; - } else if (ON_OPEN_FORM.getValue().equals(value)) { - return ON_OPEN_FORM; - } else { - throw new IllegalArgumentException("Invalid value " + value); - } - } - - public String getValue() { - return _value; - } - - - public String toString() { - return _value; - } - - private ExecutionType(String value) { - _value = value; - } - - private String _value; - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.definition; + +/** + * @author Michael C. Han + */ +public enum ExecutionType { + + ON_ASSIGNMENT("onAssignment"), ON_ENTRY("onEntry"), ON_EXIT("onExit"), ON_TIMER("onTimer"), ON_VALIDATION( + "onValidation"), ON_OPEN_FORM("onOperForm"); + + public static ExecutionType parse(String value) { + if (ON_ASSIGNMENT.getValue().equals(value)) { + return ON_ASSIGNMENT; + } else if (ON_ENTRY.getValue().equals(value)) { + return ON_ENTRY; + } else if (ON_EXIT.getValue().equals(value)) { + return ON_EXIT; + } else if (ON_TIMER.getValue().equals(value)) { + return ON_TIMER; + } else if (ON_VALIDATION.getValue().equals(value)) { + return ON_VALIDATION; + } else if (ON_OPEN_FORM.getValue().equals(value)) { + return ON_OPEN_FORM; + } else { + throw new IllegalArgumentException("Invalid value " + value); + } + } + + public String getValue() { + return _value; + } + + + public String toString() { + return _value; + } + + private ExecutionType(String value) { + _value = value; + } + + private String _value; + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/deployment/DefaultWorkflowDeployer.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/deployment/DefaultWorkflowDeployer.java index 3d99c5b6..e1f98897 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/deployment/DefaultWorkflowDeployer.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/deployment/DefaultWorkflowDeployer.java @@ -1,143 +1,143 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.deployment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.NoSuchDefinitionException; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.NodeType; -import com.liferay.portal.workflow.kaleo.definition.State; -import com.liferay.portal.workflow.kaleo.definition.Task; -import com.liferay.portal.workflow.kaleo.definition.Transition; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.service.KaleoConditionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoNodeLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTransitionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; - -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class DefaultWorkflowDeployer implements WorkflowDeployer { - - - public WorkflowDefinition deploy( - String title, Definition definition, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = null; - - try { - kaleoDefinition = - KaleoDefinitionLocalServiceUtil.incrementKaleoDefinition( - definition, title, serviceContext); - } - catch (NoSuchDefinitionException nsde) { - kaleoDefinition = - KaleoDefinitionLocalServiceUtil.addKaleoDefinition( - definition.getName(), title, definition.getDescription(), - definition.getContent(), definition.getVersion(), - serviceContext); - } - - long kaleoDefinitionId = kaleoDefinition.getKaleoDefinitionId(); - - Collection nodes = definition.getNodes(); - - Map kaleoNodesMap = new HashMap(); - - for (Node node : nodes) { - KaleoNode kaleoNode = KaleoNodeLocalServiceUtil.addKaleoNode( - kaleoDefinitionId, node, serviceContext); - - kaleoNodesMap.put(node.getName(), kaleoNode); - - NodeType nodeType = node.getNodeType(); - - if (nodeType.equals(NodeType.TASK)) { - Task task = (Task)node; - - KaleoTaskLocalServiceUtil.addKaleoTask( - kaleoDefinitionId, kaleoNode.getKaleoNodeId(), task, - serviceContext); - } - else if (nodeType.equals(NodeType.CONDITION)) { - Condition condition = (Condition)node; - - KaleoConditionLocalServiceUtil.addKaleoCondition( - kaleoDefinitionId, kaleoNode.getKaleoNodeId(), condition, - serviceContext); - } - } - - for (Node node : nodes) { - KaleoNode kaleoNode = kaleoNodesMap.get(node.getName()); - - for (Transition transition : node.getOutgoingTransitionsList()) { - KaleoNode sourceKaleoNode = kaleoNodesMap.get( - transition.getSourceNode().getName()); - - if (sourceKaleoNode == null) { - throw new WorkflowException( - "Unable to find source node " + - transition.getSourceNode()); - } - - KaleoNode targetKaleoNode = kaleoNodesMap.get( - transition.getTargetNode().getName()); - - if (targetKaleoNode == null) { - throw new WorkflowException( - "Unable to find target node " + - transition.getTargetNode()); - } - - KaleoTransitionLocalServiceUtil.addKaleoTransition( - kaleoNode.getKaleoDefinitionId(), - kaleoNode.getKaleoNodeId(), transition, sourceKaleoNode, - targetKaleoNode, serviceContext); - } - } - - State initialState = definition.getInitialState(); - - if (initialState == null) { - throw new WorkflowException("No initial state found in definition"); - } - - String startKaleoNodeName = initialState.getName(); - - KaleoNode kaleoNode = kaleoNodesMap.get(startKaleoNodeName); - - KaleoDefinitionLocalServiceUtil.activateKaleoDefinition( - kaleoDefinitionId, kaleoNode.getKaleoNodeId(), serviceContext); - - return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.deployment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.NoSuchDefinitionException; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.NodeType; +import com.liferay.portal.workflow.kaleo.definition.State; +import com.liferay.portal.workflow.kaleo.definition.Task; +import com.liferay.portal.workflow.kaleo.definition.Transition; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.service.KaleoConditionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoNodeLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTransitionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; + +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class DefaultWorkflowDeployer implements WorkflowDeployer { + + + public WorkflowDefinition deploy( + String title, Definition definition, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = null; + + try { + kaleoDefinition = + KaleoDefinitionLocalServiceUtil.incrementKaleoDefinition( + definition, title, serviceContext); + } + catch (NoSuchDefinitionException nsde) { + kaleoDefinition = + KaleoDefinitionLocalServiceUtil.addKaleoDefinition( + definition.getName(), title, definition.getDescription(), + definition.getContent(), definition.getVersion(), + serviceContext); + } + + long kaleoDefinitionId = kaleoDefinition.getKaleoDefinitionId(); + + Collection nodes = definition.getNodes(); + + Map kaleoNodesMap = new HashMap(); + + for (Node node : nodes) { + KaleoNode kaleoNode = KaleoNodeLocalServiceUtil.addKaleoNode( + kaleoDefinitionId, node, serviceContext); + + kaleoNodesMap.put(node.getName(), kaleoNode); + + NodeType nodeType = node.getNodeType(); + + if (nodeType.equals(NodeType.TASK)) { + Task task = (Task)node; + + KaleoTaskLocalServiceUtil.addKaleoTask( + kaleoDefinitionId, kaleoNode.getKaleoNodeId(), task, + serviceContext); + } + else if (nodeType.equals(NodeType.CONDITION)) { + Condition condition = (Condition)node; + + KaleoConditionLocalServiceUtil.addKaleoCondition( + kaleoDefinitionId, kaleoNode.getKaleoNodeId(), condition, + serviceContext); + } + } + + for (Node node : nodes) { + KaleoNode kaleoNode = kaleoNodesMap.get(node.getName()); + + for (Transition transition : node.getOutgoingTransitionsList()) { + KaleoNode sourceKaleoNode = kaleoNodesMap.get( + transition.getSourceNode().getName()); + + if (sourceKaleoNode == null) { + throw new WorkflowException( + "Unable to find source node " + + transition.getSourceNode()); + } + + KaleoNode targetKaleoNode = kaleoNodesMap.get( + transition.getTargetNode().getName()); + + if (targetKaleoNode == null) { + throw new WorkflowException( + "Unable to find target node " + + transition.getTargetNode()); + } + + KaleoTransitionLocalServiceUtil.addKaleoTransition( + kaleoNode.getKaleoDefinitionId(), + kaleoNode.getKaleoNodeId(), transition, sourceKaleoNode, + targetKaleoNode, serviceContext); + } + } + + State initialState = definition.getInitialState(); + + if (initialState == null) { + throw new WorkflowException("No initial state found in definition"); + } + + String startKaleoNodeName = initialState.getName(); + + KaleoNode kaleoNode = kaleoNodesMap.get(startKaleoNodeName); + + KaleoDefinitionLocalServiceUtil.activateKaleoDefinition( + kaleoDefinitionId, kaleoNode.getKaleoNodeId(), serviceContext); + + return WorkflowModelUtil.toWorkflowDefinition(kaleoDefinition); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/BaseNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/BaseNodeExporter.java index 624a622b..94cbdb23 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/BaseNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/BaseNodeExporter.java @@ -1,447 +1,447 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.AssignmentType; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.NotificationType; -import com.liferay.portal.workflow.kaleo.definition.Recipient; -import com.liferay.portal.workflow.kaleo.definition.RecipientType; -import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; -import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.definition.Transition; -import com.liferay.portal.workflow.kaleo.definition.UserAssignment; -import com.liferay.portal.workflow.kaleo.definition.UserRecipient; - -import java.util.List; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public abstract class BaseNodeExporter implements NodeExporter { - - - public void exportNode(Node node, Element element, String namespace) { - Element nodeElement = createNodeElement(element, namespace); - - addTextElement(nodeElement, "name", node.getName()); - - if (Validator.isNotNull(node.getDescription())) { - addTextElement(nodeElement, "description", node.getDescription()); - } - - if (Validator.isNotNull(node.getMetadata())) { - addCDataElement(nodeElement, "metadata", node.getMetadata()); - } - - Set actions = node.getActions(); - Set notifications = node.getNotifications(); - - if (!actions.isEmpty() || !notifications.isEmpty()) { - Element actionsElement = nodeElement.addElement("actions"); - - exportActionsElement( - actions, notifications, actionsElement, "action", - "notification"); - } - - exportAdditionalNodeElements(node, nodeElement); - exportTransitionsElement(node, nodeElement); - } - - protected void addCDataElement( - Element element, String elementName, String text) { - - Element childElement = element.addElement(elementName); - - childElement.addCDATA(text); - } - - protected void addDelayDuration( - Element timerElement, String elementName, DelayDuration delayDuration) { - - Element delayElement = timerElement.addElement(elementName); - - addTextElement( - delayElement, "duration", - String.valueOf(delayDuration.getDuration())); - addTextElement( - delayElement, "scale", delayDuration.getDurationScale().getValue()); - } - - protected void addTextElement( - Element element, String elementName, String text) { - - Element childElement = element.addElement(elementName); - - if (Validator.isNotNull(text)) { - childElement.addText(text); - } - } - - protected abstract Element createNodeElement( - Element element, String namespace); - - protected void exportActionElement(Element actionElement, Action action) { - addTextElement(actionElement, "name", action.getName()); - - if (Validator.isNotNull(action.getDescription())) { - addTextElement( - actionElement, "description", action.getDescription()); - } - - populateScriptingElement( - actionElement, action.getScript(), - action.getScriptLanguage().getValue(), - action.getScriptRequiredContexts()); - - if (action.getPriority() > 0) { - addTextElement( - actionElement, "priority", - String.valueOf(action.getPriority())); - } - - addTextElement( - actionElement, "execution-type", - action.getExecutionType().getValue()); - } - - protected void exportActionsElement( - Set actions, Set notifications, - Element actionsElement, String actionElementName, - String notificationElementName) { - - for (Action action : actions) { - Element actionElement = actionsElement.addElement( - actionElementName); - - exportActionElement(actionElement, action); - } - - for (Notification notification : notifications) { - Element notificationElement = actionsElement.addElement( - notificationElementName); - - exportNotificationElement(notificationElement, notification); - } - } - - protected abstract void exportAdditionalNodeElements( - Node node, Element nodeElement); - - protected void exportAssignmentsElement( - Set assignments, Element parentElement, - String assignmentsElementName) { - - if (assignments.isEmpty()) { - return; - } - - Element assignmentsElement = parentElement.addElement( - assignmentsElementName); - - Element resourceActionsElement = null; - - Element rolesElement = null; - - for (Assignment assignment : assignments) { - AssignmentType assignmentType = assignment.getAssignmentType(); - - if (assignmentType.equals(AssignmentType.RESOURCE_ACTION)) { - if (resourceActionsElement == null) { - resourceActionsElement = assignmentsElement.addElement( - "resource-actions"); - } - - ResourceActionAssignment resourceActionAssignment = - (ResourceActionAssignment)assignment; - - addTextElement( - resourceActionsElement, "resource-action", - resourceActionAssignment.getActionId()); - } - else if (assignmentType.equals(AssignmentType.ROLE)) { - if (rolesElement == null) { - rolesElement = assignmentsElement.addElement("roles"); - } - - Element roleElement = rolesElement.addElement("role"); - - RoleAssignment roleAssignment = (RoleAssignment)assignment; - - populateRoleElement( - roleElement, roleAssignment.getRoleId(), - roleAssignment.getRoleType(), roleAssignment.getRoleName(), - roleAssignment.isAutoCreate()); - } - else if (assignmentType.equals(AssignmentType.SCRIPT)) { - Element scriptedAssignmentElement = - assignmentsElement.addElement("scripted-assignment"); - - ScriptAssignment scriptAssignment = - (ScriptAssignment)assignment; - - populateScriptingElement( - scriptedAssignmentElement, scriptAssignment.getScript(), - scriptAssignment.getScriptLanguage().getValue(), - scriptAssignment.getScriptRequiredContexts()); - } - else if (assignmentType.equals(AssignmentType.USER)) { - Element userElement = assignmentsElement.addElement("user"); - - UserAssignment userAssignment = (UserAssignment)assignment; - - populateUserElement( - userElement, userAssignment.getUserId(), - userAssignment.getEmailAddress(), - userAssignment.getScreenName()); - } - } - } - - protected void exportNotificationElement( - Element notificationElement, Notification notification) { - - addTextElement(notificationElement, "name", notification.getName()); - - if (Validator.isNotNull(notification.getDescription())) { - addTextElement( - notificationElement, "description", - notification.getDescription()); - } - - addCDataElement( - notificationElement, "template", notification.getTemplate()); - addTextElement( - notificationElement, "template-language", - notification.getTemplateLanguage().getValue()); - - Set notificationTypes = - notification.getNotificationTypes(); - - for (NotificationType notificationType : notificationTypes) { - addTextElement( - notificationElement, "notification-type", - notificationType.getValue()); - } - - Set recipients = notification.getRecipients(); - - exportRecipientsElement(notificationElement, recipients); - - addTextElement( - notificationElement, "execution-type", - notification.getExecutionType().getValue()); - } - - protected void exportRecipientsElement( - Element notificationElement, Set recipients) { - - if (recipients.isEmpty()) { - return; - } - - Element recipientsElement = notificationElement.addElement( - "recipients"); - - Element rolesElement = null; - - for (Recipient recipient : recipients) { - RecipientType recipientType = recipient.getRecipientType(); - - if (recipientType.equals(RecipientType.ADDRESS)) { - AddressRecipient addressRecipient = (AddressRecipient)recipient; - - addTextElement( - recipientsElement, "address", - addressRecipient.getAddress()); - } - else if (recipientType.equals(RecipientType.ASSIGNEES)) { - addTextElement(recipientsElement, "assignees", null); - } - else if (recipientType.equals(RecipientType.ROLE)) { - if (rolesElement == null) { - rolesElement = recipientsElement.addElement("roles"); - } - - Element roleElement = rolesElement.addElement("role"); - - RoleRecipient roleRecipient = (RoleRecipient)recipient; - - populateRoleElement( - roleElement, roleRecipient.getRoleId(), - roleRecipient.getRoleType(), roleRecipient.getRoleName(), - roleRecipient.isAutoCreate()); - } - else if (recipientType.equals(RecipientType.USER)) { - Element userElement = recipientsElement.addElement("user"); - - UserRecipient userRecipient = (UserRecipient)recipient; - - populateUserElement( - userElement, userRecipient.getUserId(), - userRecipient.getEmailAddress(), - userRecipient.getScreenName()); - } - } - } - - protected void exportTimersElement( - Node node, Element nodeElement, String timersElementName, - String timerElementName) { - - Set timers = node.getTimers(); - - if (timers.isEmpty()) { - return; - } - - Element timersElement = nodeElement.addElement(timersElementName); - - for (Timer timer : timers) { - Element timerElement = timersElement.addElement(timerElementName); - - addTextElement(timerElement, "name", timer.getName()); - - if (Validator.isNotNull(timer.getDescription())) { - addTextElement( - timerElement, "description", timer.getDescription()); - } - - DelayDuration delayDuration = timer.getDelayDuration(); - - addDelayDuration(timerElement, "delay", delayDuration); - - DelayDuration recurrenceDelayDuration = timer.getRecurrence(); - - if (recurrenceDelayDuration != null) { - addDelayDuration( - timerElement, "recurrence", recurrenceDelayDuration); - } - - if (timer.isBlocking()) { - addTextElement( - timerElement, "blocking", - String.valueOf(timer.isBlocking())); - } - - Set actions = timer.getActions(); - - Set notifications = timer.getNotifications(); - - Set assignments = timer.getReassignments(); - - if (!actions.isEmpty() || !notifications.isEmpty() || - !assignments.isEmpty()) { - - Element timerActionsElement = timerElement.addElement( - "timer-actions"); - - exportActionsElement( - actions, notifications, timerActionsElement, "timer-action", - "timer-notification"); - exportAssignmentsElement( - assignments, timerActionsElement, "reassignments"); - } - } - } - - protected void exportTransitionsElement(Node node, Element nodeElement) { - List outgoingTransitions = - node.getOutgoingTransitionsList(); - - if (outgoingTransitions.isEmpty()) { - return; - } - - Element transitionsElement = nodeElement.addElement("transitions"); - - for (Transition outgoingTransition : outgoingTransitions) { - Element transition = transitionsElement.addElement("transition"); - - addTextElement(transition, "name", outgoingTransition.getName()); - addTextElement( - transition, "target", - outgoingTransition.getTargetNode().getName()); - - if (outgoingTransition.isDefault()) { - addTextElement( - transition, "default", - String.valueOf(outgoingTransition.isDefault())); - } - } - } - - protected void populateRoleElement( - Element roleElement, long roleId, String roleType, String roleName, - boolean autoCreate) { - - if (roleId > 0) { - addTextElement(roleElement, "role-id", String.valueOf(roleId)); - } - else { - addTextElement(roleElement, "role-type", roleType); - addTextElement(roleElement, "name", roleName); - - if (!autoCreate) { - addTextElement( - roleElement, "auto-create", String.valueOf(autoCreate)); - } - } - } - - protected void populateScriptingElement( - Element scriptingElement, String script, String scriptLanguage, - String scriptRequiredContexts) { - - addCDataElement(scriptingElement, "script", script); - addTextElement(scriptingElement, "script-language", scriptLanguage); - - if (Validator.isNotNull(scriptRequiredContexts)) { - addTextElement( - scriptingElement, "script-required-contexts", - scriptRequiredContexts); - } - } - - protected void populateUserElement( - Element userElement, long userId, String emailAddress, - String screenName) { - - if (userId > 0) { - addTextElement(userElement, "user-id", String.valueOf(userId)); - } - - if (Validator.isNotNull(emailAddress)) { - addTextElement(userElement, "email-address", emailAddress); - } - - if (Validator.isNotNull(screenName)) { - addTextElement(userElement, "screen-name", screenName); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.AssignmentType; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.NotificationType; +import com.liferay.portal.workflow.kaleo.definition.Recipient; +import com.liferay.portal.workflow.kaleo.definition.RecipientType; +import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; +import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.definition.Transition; +import com.liferay.portal.workflow.kaleo.definition.UserAssignment; +import com.liferay.portal.workflow.kaleo.definition.UserRecipient; + +import java.util.List; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public abstract class BaseNodeExporter implements NodeExporter { + + + public void exportNode(Node node, Element element, String namespace) { + Element nodeElement = createNodeElement(element, namespace); + + addTextElement(nodeElement, "name", node.getName()); + + if (Validator.isNotNull(node.getDescription())) { + addTextElement(nodeElement, "description", node.getDescription()); + } + + if (Validator.isNotNull(node.getMetadata())) { + addCDataElement(nodeElement, "metadata", node.getMetadata()); + } + + Set actions = node.getActions(); + Set notifications = node.getNotifications(); + + if (!actions.isEmpty() || !notifications.isEmpty()) { + Element actionsElement = nodeElement.addElement("actions"); + + exportActionsElement( + actions, notifications, actionsElement, "action", + "notification"); + } + + exportAdditionalNodeElements(node, nodeElement); + exportTransitionsElement(node, nodeElement); + } + + protected void addCDataElement( + Element element, String elementName, String text) { + + Element childElement = element.addElement(elementName); + + childElement.addCDATA(text); + } + + protected void addDelayDuration( + Element timerElement, String elementName, DelayDuration delayDuration) { + + Element delayElement = timerElement.addElement(elementName); + + addTextElement( + delayElement, "duration", + String.valueOf(delayDuration.getDuration())); + addTextElement( + delayElement, "scale", delayDuration.getDurationScale().getValue()); + } + + protected void addTextElement( + Element element, String elementName, String text) { + + Element childElement = element.addElement(elementName); + + if (Validator.isNotNull(text)) { + childElement.addText(text); + } + } + + protected abstract Element createNodeElement( + Element element, String namespace); + + protected void exportActionElement(Element actionElement, Action action) { + addTextElement(actionElement, "name", action.getName()); + + if (Validator.isNotNull(action.getDescription())) { + addTextElement( + actionElement, "description", action.getDescription()); + } + + populateScriptingElement( + actionElement, action.getScript(), + action.getScriptLanguage().getValue(), + action.getScriptRequiredContexts()); + + if (action.getPriority() > 0) { + addTextElement( + actionElement, "priority", + String.valueOf(action.getPriority())); + } + + addTextElement( + actionElement, "execution-type", + action.getExecutionType().getValue()); + } + + protected void exportActionsElement( + Set actions, Set notifications, + Element actionsElement, String actionElementName, + String notificationElementName) { + + for (Action action : actions) { + Element actionElement = actionsElement.addElement( + actionElementName); + + exportActionElement(actionElement, action); + } + + for (Notification notification : notifications) { + Element notificationElement = actionsElement.addElement( + notificationElementName); + + exportNotificationElement(notificationElement, notification); + } + } + + protected abstract void exportAdditionalNodeElements( + Node node, Element nodeElement); + + protected void exportAssignmentsElement( + Set assignments, Element parentElement, + String assignmentsElementName) { + + if (assignments.isEmpty()) { + return; + } + + Element assignmentsElement = parentElement.addElement( + assignmentsElementName); + + Element resourceActionsElement = null; + + Element rolesElement = null; + + for (Assignment assignment : assignments) { + AssignmentType assignmentType = assignment.getAssignmentType(); + + if (assignmentType.equals(AssignmentType.RESOURCE_ACTION)) { + if (resourceActionsElement == null) { + resourceActionsElement = assignmentsElement.addElement( + "resource-actions"); + } + + ResourceActionAssignment resourceActionAssignment = + (ResourceActionAssignment)assignment; + + addTextElement( + resourceActionsElement, "resource-action", + resourceActionAssignment.getActionId()); + } + else if (assignmentType.equals(AssignmentType.ROLE)) { + if (rolesElement == null) { + rolesElement = assignmentsElement.addElement("roles"); + } + + Element roleElement = rolesElement.addElement("role"); + + RoleAssignment roleAssignment = (RoleAssignment)assignment; + + populateRoleElement( + roleElement, roleAssignment.getRoleId(), + roleAssignment.getRoleType(), roleAssignment.getRoleName(), + roleAssignment.isAutoCreate()); + } + else if (assignmentType.equals(AssignmentType.SCRIPT)) { + Element scriptedAssignmentElement = + assignmentsElement.addElement("scripted-assignment"); + + ScriptAssignment scriptAssignment = + (ScriptAssignment)assignment; + + populateScriptingElement( + scriptedAssignmentElement, scriptAssignment.getScript(), + scriptAssignment.getScriptLanguage().getValue(), + scriptAssignment.getScriptRequiredContexts()); + } + else if (assignmentType.equals(AssignmentType.USER)) { + Element userElement = assignmentsElement.addElement("user"); + + UserAssignment userAssignment = (UserAssignment)assignment; + + populateUserElement( + userElement, userAssignment.getUserId(), + userAssignment.getEmailAddress(), + userAssignment.getScreenName()); + } + } + } + + protected void exportNotificationElement( + Element notificationElement, Notification notification) { + + addTextElement(notificationElement, "name", notification.getName()); + + if (Validator.isNotNull(notification.getDescription())) { + addTextElement( + notificationElement, "description", + notification.getDescription()); + } + + addCDataElement( + notificationElement, "template", notification.getTemplate()); + addTextElement( + notificationElement, "template-language", + notification.getTemplateLanguage().getValue()); + + Set notificationTypes = + notification.getNotificationTypes(); + + for (NotificationType notificationType : notificationTypes) { + addTextElement( + notificationElement, "notification-type", + notificationType.getValue()); + } + + Set recipients = notification.getRecipients(); + + exportRecipientsElement(notificationElement, recipients); + + addTextElement( + notificationElement, "execution-type", + notification.getExecutionType().getValue()); + } + + protected void exportRecipientsElement( + Element notificationElement, Set recipients) { + + if (recipients.isEmpty()) { + return; + } + + Element recipientsElement = notificationElement.addElement( + "recipients"); + + Element rolesElement = null; + + for (Recipient recipient : recipients) { + RecipientType recipientType = recipient.getRecipientType(); + + if (recipientType.equals(RecipientType.ADDRESS)) { + AddressRecipient addressRecipient = (AddressRecipient)recipient; + + addTextElement( + recipientsElement, "address", + addressRecipient.getAddress()); + } + else if (recipientType.equals(RecipientType.ASSIGNEES)) { + addTextElement(recipientsElement, "assignees", null); + } + else if (recipientType.equals(RecipientType.ROLE)) { + if (rolesElement == null) { + rolesElement = recipientsElement.addElement("roles"); + } + + Element roleElement = rolesElement.addElement("role"); + + RoleRecipient roleRecipient = (RoleRecipient)recipient; + + populateRoleElement( + roleElement, roleRecipient.getRoleId(), + roleRecipient.getRoleType(), roleRecipient.getRoleName(), + roleRecipient.isAutoCreate()); + } + else if (recipientType.equals(RecipientType.USER)) { + Element userElement = recipientsElement.addElement("user"); + + UserRecipient userRecipient = (UserRecipient)recipient; + + populateUserElement( + userElement, userRecipient.getUserId(), + userRecipient.getEmailAddress(), + userRecipient.getScreenName()); + } + } + } + + protected void exportTimersElement( + Node node, Element nodeElement, String timersElementName, + String timerElementName) { + + Set timers = node.getTimers(); + + if (timers.isEmpty()) { + return; + } + + Element timersElement = nodeElement.addElement(timersElementName); + + for (Timer timer : timers) { + Element timerElement = timersElement.addElement(timerElementName); + + addTextElement(timerElement, "name", timer.getName()); + + if (Validator.isNotNull(timer.getDescription())) { + addTextElement( + timerElement, "description", timer.getDescription()); + } + + DelayDuration delayDuration = timer.getDelayDuration(); + + addDelayDuration(timerElement, "delay", delayDuration); + + DelayDuration recurrenceDelayDuration = timer.getRecurrence(); + + if (recurrenceDelayDuration != null) { + addDelayDuration( + timerElement, "recurrence", recurrenceDelayDuration); + } + + if (timer.isBlocking()) { + addTextElement( + timerElement, "blocking", + String.valueOf(timer.isBlocking())); + } + + Set actions = timer.getActions(); + + Set notifications = timer.getNotifications(); + + Set assignments = timer.getReassignments(); + + if (!actions.isEmpty() || !notifications.isEmpty() || + !assignments.isEmpty()) { + + Element timerActionsElement = timerElement.addElement( + "timer-actions"); + + exportActionsElement( + actions, notifications, timerActionsElement, "timer-action", + "timer-notification"); + exportAssignmentsElement( + assignments, timerActionsElement, "reassignments"); + } + } + } + + protected void exportTransitionsElement(Node node, Element nodeElement) { + List outgoingTransitions = + node.getOutgoingTransitionsList(); + + if (outgoingTransitions.isEmpty()) { + return; + } + + Element transitionsElement = nodeElement.addElement("transitions"); + + for (Transition outgoingTransition : outgoingTransitions) { + Element transition = transitionsElement.addElement("transition"); + + addTextElement(transition, "name", outgoingTransition.getName()); + addTextElement( + transition, "target", + outgoingTransition.getTargetNode().getName()); + + if (outgoingTransition.isDefault()) { + addTextElement( + transition, "default", + String.valueOf(outgoingTransition.isDefault())); + } + } + } + + protected void populateRoleElement( + Element roleElement, long roleId, String roleType, String roleName, + boolean autoCreate) { + + if (roleId > 0) { + addTextElement(roleElement, "role-id", String.valueOf(roleId)); + } + else { + addTextElement(roleElement, "role-type", roleType); + addTextElement(roleElement, "name", roleName); + + if (!autoCreate) { + addTextElement( + roleElement, "auto-create", String.valueOf(autoCreate)); + } + } + } + + protected void populateScriptingElement( + Element scriptingElement, String script, String scriptLanguage, + String scriptRequiredContexts) { + + addCDataElement(scriptingElement, "script", script); + addTextElement(scriptingElement, "script-language", scriptLanguage); + + if (Validator.isNotNull(scriptRequiredContexts)) { + addTextElement( + scriptingElement, "script-required-contexts", + scriptRequiredContexts); + } + } + + protected void populateUserElement( + Element userElement, long userId, String emailAddress, + String screenName) { + + if (userId > 0) { + addTextElement(userElement, "user-id", String.valueOf(userId)); + } + + if (Validator.isNotNull(emailAddress)) { + addTextElement(userElement, "email-address", emailAddress); + } + + if (Validator.isNotNull(screenName)) { + addTextElement(userElement, "screen-name", screenName); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ConditionNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ConditionNodeExporter.java index 2a0ae8b9..49dcb26e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ConditionNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ConditionNodeExporter.java @@ -1,46 +1,46 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.definition.Node; - -/** - * @author Michael C. Han - */ -public class ConditionNodeExporter - extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("condition", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - exportTimersElement(node, nodeElement, "timers", "timer"); - - Condition condition = (Condition)node; - - populateScriptingElement( - nodeElement, condition.getScript(), - condition.getScriptLanguage().getValue(), - condition.getScriptRequiredContexts()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public class ConditionNodeExporter + extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("condition", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + exportTimersElement(node, nodeElement, "timers", "timer"); + + Condition condition = (Condition)node; + + populateScriptingElement( + nodeElement, condition.getScript(), + condition.getScriptLanguage().getValue(), + condition.getScriptRequiredContexts()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporter.java index 735083d8..921a497d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporter.java @@ -1,31 +1,31 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; - -/** - * @author Michael C. Han - */ -public interface DefinitionExporter { - - public String export(long kaleoDefinitionId) - throws PortalException, SystemException; - - public String export(long companyId, String name, int version) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; + +/** + * @author Michael C. Han + */ +public interface DefinitionExporter { + + public String export(long kaleoDefinitionId) + throws PortalException, SystemException; + + public String export(long companyId, String name, int version) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporterUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporterUtil.java index 477ae2f2..89e8bd97 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporterUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/DefinitionExporterUtil.java @@ -1,47 +1,47 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; - -/** - * @author Michael C. Han - */ -public class DefinitionExporterUtil { - - public static String export(long kaleoDefinitionId) - throws PortalException, SystemException { - - return getDefinitionExporter().export(kaleoDefinitionId); - } - - public static String export(long companyId, String name, int version) - throws PortalException, SystemException { - - return getDefinitionExporter().export(companyId, name, version); - } - - public static DefinitionExporter getDefinitionExporter() { - return _definitionExporter; - } - - public void setDefinitionExporter(DefinitionExporter definitionExporter) { - _definitionExporter = definitionExporter; - } - - private static DefinitionExporter _definitionExporter; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; + +/** + * @author Michael C. Han + */ +public class DefinitionExporterUtil { + + public static String export(long kaleoDefinitionId) + throws PortalException, SystemException { + + return getDefinitionExporter().export(kaleoDefinitionId); + } + + public static String export(long companyId, String name, int version) + throws PortalException, SystemException { + + return getDefinitionExporter().export(companyId, name, version); + } + + public static DefinitionExporter getDefinitionExporter() { + return _definitionExporter; + } + + public void setDefinitionExporter(DefinitionExporter definitionExporter) { + _definitionExporter = definitionExporter; + } + + private static DefinitionExporter _definitionExporter; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ForkNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ForkNodeExporter.java index e84358ab..e77d6912 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ForkNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/ForkNodeExporter.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; - -/** - * @author Michael C. Han - */ -public class ForkNodeExporter extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("fork", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - exportTimersElement(node, nodeElement, "timers", "timer"); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public class ForkNodeExporter extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("fork", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + exportTimersElement(node, nodeElement, "timers", "timer"); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinNodeExporter.java index 5d77a2d4..6851c4bf 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinNodeExporter.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; - -/** - * @author Michael C. Han - */ -public class JoinNodeExporter extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("join", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - exportTimersElement(node, nodeElement, "timers", "timer"); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public class JoinNodeExporter extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("join", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + exportTimersElement(node, nodeElement, "timers", "timer"); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinXorNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinXorNodeExporter.java index 24cbf091..31cd7599 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinXorNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/JoinXorNodeExporter.java @@ -1,38 +1,38 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; - -/** - * @author Michael C. Han - */ -public class JoinXorNodeExporter - extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("join-xor", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - exportTimersElement(node, nodeElement, "timers", "timer"); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public class JoinXorNodeExporter + extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("join-xor", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + exportTimersElement(node, nodeElement, "timers", "timer"); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporter.java index 3fd9e6e2..af58522f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporter.java @@ -1,27 +1,27 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; - -/** - * @author Michael C. Han - */ -public interface NodeExporter { - - public void exportNode(Node node, Element element, String namespace); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; + +/** + * @author Michael C. Han + */ +public interface NodeExporter { + + public void exportNode(Node node, Element element, String namespace); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporterRegistry.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporterRegistry.java index 25aa6fd2..187fd434 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporterRegistry.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/NodeExporterRegistry.java @@ -1,38 +1,38 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.workflow.kaleo.definition.NodeType; -import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NodeExporterRegistry { - - public static NodeExporter getNodeExporter(NodeType nodeType) { - return _nodeExporters.getNodeTypeDependentObjects(nodeType); - } - - public void setNodeExporter(Map nodeExporters) { - _nodeExporters.setNodeTypeDependentObjects(nodeExporters); - } - - private static NodeTypeDependentObjectRegistry - _nodeExporters = new NodeTypeDependentObjectRegistry(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.workflow.kaleo.definition.NodeType; +import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NodeExporterRegistry { + + public static NodeExporter getNodeExporter(NodeType nodeType) { + return _nodeExporters.getNodeTypeDependentObjects(nodeType); + } + + public void setNodeExporter(Map nodeExporters) { + _nodeExporters.setNodeTypeDependentObjects(nodeExporters); + } + + private static NodeTypeDependentObjectRegistry + _nodeExporters = new NodeTypeDependentObjectRegistry(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/StateNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/StateNodeExporter.java index 1bb23cfa..7a974ae6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/StateNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/StateNodeExporter.java @@ -1,47 +1,47 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.State; - -/** - * @author Michael C. Han - */ -public class StateNodeExporter - extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("state", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - exportTimersElement(node, nodeElement, "timers", "timer"); - - State state = (State)node; - - boolean initial = state.isInitial(); - - if (initial) { - addTextElement(nodeElement, "initial", String.valueOf(initial)); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.State; + +/** + * @author Michael C. Han + */ +public class StateNodeExporter + extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("state", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + exportTimersElement(node, nodeElement, "timers", "timer"); + + State state = (State)node; + + boolean initial = state.isInitial(); + + if (initial) { + addTextElement(nodeElement, "initial", String.valueOf(initial)); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/TaskNodeExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/TaskNodeExporter.java index a50f77c2..797f4a22 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/TaskNodeExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/TaskNodeExporter.java @@ -1,43 +1,43 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Task; - -/** - * @author Michael C. Han - */ -public class TaskNodeExporter extends BaseNodeExporter implements NodeExporter { - - - protected Element createNodeElement(Element element, String namespace) { - return element.addElement("task", namespace); - } - - - protected void exportAdditionalNodeElements( - Node node, Element nodeElement) { - - Task task = (Task)node; - - exportAssignmentsElement( - task.getAssignments(), nodeElement, "assignments"); - - exportTimersElement(task, nodeElement, "task-timers", "task-timer"); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Task; + +/** + * @author Michael C. Han + */ +public class TaskNodeExporter extends BaseNodeExporter implements NodeExporter { + + + protected Element createNodeElement(Element element, String namespace) { + return element.addElement("task", namespace); + } + + + protected void exportAdditionalNodeElements( + Node node, Element nodeElement) { + + Task task = (Task)node; + + exportAssignmentsElement( + task.getAssignments(), nodeElement, "assignments"); + + exportTimersElement(task, nodeElement, "task-timers", "task-timer"); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/XMLDefinitionExporter.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/XMLDefinitionExporter.java index 62bc2d73..e548bc67 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/XMLDefinitionExporter.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/XMLDefinitionExporter.java @@ -1,130 +1,130 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.ReleaseInfo; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.xml.Document; -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.kernel.xml.SAXReaderUtil; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.export.builder.DefinitionBuilder; - -import java.io.IOException; - -import java.util.Collection; - -/** - * @author Michael C. Han - */ -public class XMLDefinitionExporter implements DefinitionExporter { - - public void afterPropertiesSet() { - _namespace = "urn:liferay.com:liferay-workflow_" + _version; - _schemaVersion = StringUtil.replace( - _version, StringPool.PERIOD, StringPool.UNDERLINE); - } - - - public String export(long kaleoDefinitionId) - throws PortalException, SystemException { - - Definition definition = _definitionBuilder.buildDefinition( - kaleoDefinitionId); - - return doExport(definition); - } - - - public String export(long companyId, String name, int version) - throws PortalException, SystemException { - - Definition definition = _definitionBuilder.buildDefinition( - companyId, name, version); - - return doExport(definition); - } - - public void setDefinitionBuilder(DefinitionBuilder definitionBuilder) { - _definitionBuilder = definitionBuilder; - } - - public void setVersion(String version) { - _version = version; - } - - protected String doExport(Definition definition) throws SystemException { - try { - Document document = SAXReaderUtil.createDocument(); - - Element workflowDefinitionElement = document.addElement( - "workflow-definition"); - - workflowDefinitionElement.addAttribute( - "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - workflowDefinitionElement.addAttribute( - "xsi:schemaLocation", - "urn:liferay.com:liferay-workflow_" + _version + - " http://www.liferay.com/dtd/liferay-workflow-definition_" + - _schemaVersion + ".xsd"); - workflowDefinitionElement.addNamespace( - "", "urn:liferay.com:liferay-workflow_" + _version); - - Element nameElement = workflowDefinitionElement.addElement( - "name", _namespace); - - nameElement.addText(definition.getName()); - - if (Validator.isNotNull(definition.getDescription())) { - Element descriptionElement = - workflowDefinitionElement.addElement( - "description", _namespace); - - descriptionElement.addText(definition.getDescription()); - } - - Element versionElement = workflowDefinitionElement.addElement( - "version", _namespace); - - versionElement.addText(String.valueOf(definition.getVersion())); - - Collection nodes = definition.getNodes(); - - for (Node node : nodes) { - NodeExporter nodeExporter = - NodeExporterRegistry.getNodeExporter(node.getNodeType()); - - nodeExporter.exportNode( - node, workflowDefinitionElement, _namespace); - } - - return document.formattedString(); - } - catch (IOException ioe) { - throw new SystemException("Unable to export definition", ioe); - } - } - - private DefinitionBuilder _definitionBuilder; - private String _namespace; - private String _schemaVersion; - private String _version = ReleaseInfo.getVersion(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.ReleaseInfo; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.xml.Document; +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.kernel.xml.SAXReaderUtil; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.export.builder.DefinitionBuilder; + +import java.io.IOException; + +import java.util.Collection; + +/** + * @author Michael C. Han + */ +public class XMLDefinitionExporter implements DefinitionExporter { + + public void afterPropertiesSet() { + _namespace = "urn:liferay.com:liferay-workflow_" + _version; + _schemaVersion = StringUtil.replace( + _version, StringPool.PERIOD, StringPool.UNDERLINE); + } + + + public String export(long kaleoDefinitionId) + throws PortalException, SystemException { + + Definition definition = _definitionBuilder.buildDefinition( + kaleoDefinitionId); + + return doExport(definition); + } + + + public String export(long companyId, String name, int version) + throws PortalException, SystemException { + + Definition definition = _definitionBuilder.buildDefinition( + companyId, name, version); + + return doExport(definition); + } + + public void setDefinitionBuilder(DefinitionBuilder definitionBuilder) { + _definitionBuilder = definitionBuilder; + } + + public void setVersion(String version) { + _version = version; + } + + protected String doExport(Definition definition) throws SystemException { + try { + Document document = SAXReaderUtil.createDocument(); + + Element workflowDefinitionElement = document.addElement( + "workflow-definition"); + + workflowDefinitionElement.addAttribute( + "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + workflowDefinitionElement.addAttribute( + "xsi:schemaLocation", + "urn:liferay.com:liferay-workflow_" + _version + + " http://www.liferay.com/dtd/liferay-workflow-definition_" + + _schemaVersion + ".xsd"); + workflowDefinitionElement.addNamespace( + "", "urn:liferay.com:liferay-workflow_" + _version); + + Element nameElement = workflowDefinitionElement.addElement( + "name", _namespace); + + nameElement.addText(definition.getName()); + + if (Validator.isNotNull(definition.getDescription())) { + Element descriptionElement = + workflowDefinitionElement.addElement( + "description", _namespace); + + descriptionElement.addText(definition.getDescription()); + } + + Element versionElement = workflowDefinitionElement.addElement( + "version", _namespace); + + versionElement.addText(String.valueOf(definition.getVersion())); + + Collection nodes = definition.getNodes(); + + for (Node node : nodes) { + NodeExporter nodeExporter = + NodeExporterRegistry.getNodeExporter(node.getNodeType()); + + nodeExporter.exportNode( + node, workflowDefinitionElement, _namespace); + } + + return document.formattedString(); + } + catch (IOException ioe) { + throw new SystemException("Unable to export definition", ioe); + } + } + + private DefinitionBuilder _definitionBuilder; + private String _namespace; + private String _schemaVersion; + private String _version = ReleaseInfo.getVersion(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/BaseNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/BaseNodeBuilder.java index d7fb1747..54357ad4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/BaseNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/BaseNodeBuilder.java @@ -1,314 +1,314 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.ResourceAction; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.service.RoleLocalService; -import com.liferay.portal.service.UserLocalService; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; -import com.liferay.portal.workflow.kaleo.definition.AssigneesRecipient; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.AssignmentType; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.DurationScale; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.Recipient; -import com.liferay.portal.workflow.kaleo.definition.RecipientType; -import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; -import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.definition.UserAssignment; -import com.liferay.portal.workflow.kaleo.definition.UserRecipient; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoNotification; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; - -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public abstract class BaseNodeBuilder - extends BaseKaleoBean implements NodeBuilder { - - - public Node buildNode(KaleoNode kaleoNode) - throws PortalException, SystemException { - - Node node = createNode(kaleoNode); - - Set actions = buildActions( - KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); - - node.setActions(actions); - - node.setMetadata(kaleoNode.getMetadata()); - - Set notifications = buildNotifications( - KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); - - node.setNotifications(notifications); - - Set timers = buildTimers( - KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); - - node.setTimers(timers); - - return node; - } - - protected void addNotificationRecipients( - KaleoNotification kaleoNotification, Notification notification) - throws PortalException, SystemException { - - List kaleoNotificationRecipients = - kaleoNotificationRecipientLocalService. - getKaleoNotificationRecipients( - kaleoNotification.getKaleoNotificationId()); - - for (KaleoNotificationRecipient kaleoNotificationRecipient : - kaleoNotificationRecipients) { - - String recipientClassName = - kaleoNotificationRecipient.getRecipientClassName(); - - long recipientClassPK = - kaleoNotificationRecipient.getRecipientClassPK(); - - Recipient recipient = null; - - if (recipientClassName.equals(RecipientType.ADDRESS.name())) { - recipient = new AddressRecipient( - kaleoNotificationRecipient.getAddress()); - } - else if (recipientClassName.equals( - RecipientType.ASSIGNEES.name())) { - - recipient = new AssigneesRecipient(); - } - else if (recipientClassName.equals(Role.class.getName())) { - Role role = _roleLocalService.fetchRole(recipientClassPK); - - recipient = new RoleRecipient( - role.getName(), role.getTypeLabel()); - } - else if (recipientClassName.equals(User.class.getName())) { - if (recipientClassPK > 0) { - User user = _userLocalService.getUser(recipientClassPK); - - recipient = new UserRecipient( - user.getUserId(), user.getScreenName(), - user.getEmailAddress()); - } - else { - recipient = new UserRecipient(); - } - } - - notification.addRecipients(recipient); - } - } - - protected Set buildActions(String kaleoClassName, long kaleoClassPK) - throws SystemException { - - List kaleoActions = - kaleoActionLocalService.getKaleoActions( - kaleoClassName, kaleoClassPK); - - Set actions = new HashSet(kaleoActions.size()); - - for (KaleoAction kaleoAction : kaleoActions) { - Action action = new Action( - kaleoAction.getName(), kaleoAction.getDescription(), - kaleoAction.getExecutionType(), kaleoAction.getScript(), - kaleoAction.getScriptLanguage(), - kaleoAction.getScriptRequiredContexts(), - kaleoAction.getPriority()); - - actions.add(action); - } - - return actions; - } - - protected Set buildAssigments( - String kaleoClassName, long kaleoClassPK) - throws PortalException, SystemException { - - List kaleoTaskAssignments = - kaleoTaskAssignmentLocalService.getKaleoTaskAssignments( - kaleoClassName, kaleoClassPK); - - Set assignments = new HashSet( - kaleoTaskAssignments.size()); - - for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { - String assigneeClassName = - kaleoTaskAssignment.getAssigneeClassName(); - - long assigneeClassPK = kaleoTaskAssignment.getAssigneeClassPK(); - - Assignment assignment = null; - - if (assigneeClassName.equals(AssignmentType.SCRIPT.name())) { - assignment = new ScriptAssignment( - kaleoTaskAssignment.getAssigneeScript(), - kaleoTaskAssignment.getAssigneeScriptLanguage(), - kaleoTaskAssignment.getAssigneeScriptRequiredContexts()); - } - else if (assigneeClassName.equals(ResourceAction.class.getName())) { - assignment = new ResourceActionAssignment( - kaleoTaskAssignment.getAssigneeActionId()); - } - else if (assigneeClassName.equals(Role.class.getName())) { - Role role = _roleLocalService.fetchRole(assigneeClassPK); - - assignment = new RoleAssignment( - role.getName(), role.getTypeLabel()); - } - else if (assigneeClassName.equals(User.class.getName())) { - if (assigneeClassPK == 0) { - assignment = new UserAssignment(); - } - else { - User user = _userLocalService.getUser(assigneeClassPK); - - assignment = new UserAssignment( - user.getUserId(), user.getScreenName(), - user.getEmailAddress()); - } - } - - assignments.add(assignment); - } - - return assignments; - } - - protected Set buildNotifications( - String kaleoClassName, long kaleoClassPK) - throws PortalException, SystemException { - - List kaleoNotifications = - kaleoNotificationLocalService.getKaleoNotifications( - kaleoClassName, kaleoClassPK); - - Set notifications = new HashSet( - kaleoNotifications.size()); - - for (KaleoNotification kaleoNotification : kaleoNotifications) { - Notification notification = new Notification( - kaleoNotification.getName(), kaleoNotification.getDescription(), - kaleoNotification.getExecutionType(), - kaleoNotification.getTemplate(), - kaleoNotification.getTemplateLanguage()); - - notifications.add(notification); - - String notificationTypes = kaleoNotification.getNotificationTypes(); - - String[] notificationTypeValues = StringUtil.split( - notificationTypes, StringPool.COMMA); - - for (String notificationTypeValue : notificationTypeValues) { - notification.addNotificationType(notificationTypeValue); - } - - addNotificationRecipients(kaleoNotification, notification); - } - - return notifications; - } - - protected Set buildTimers(String kaleoClassName, long kaleoClassPK) - throws PortalException, SystemException { - - List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( - kaleoClassName, kaleoClassPK); - - Set timers = new HashSet(kaleoTimers.size()); - - for (KaleoTimer kaleoTimer : kaleoTimers) { - Timer timer = new Timer( - kaleoTimer.getName(), kaleoTimer.getDescription(), - kaleoTimer.isBlocking()); - - timers.add(timer); - - DelayDuration delayDuration = new DelayDuration( - kaleoTimer.getDuration(), - DurationScale.parse(kaleoTimer.getScale())); - - timer.setDelayDuration(delayDuration); - - String recurrenceScale = kaleoTimer.getRecurrenceScale(); - - if (Validator.isNotNull(recurrenceScale)) { - DelayDuration recurrenceDelayDuration = - new DelayDuration( - kaleoTimer.getRecurrenceDuration(), - DurationScale.parse(recurrenceScale)); - - timer.setRecurrence(recurrenceDelayDuration); - } - - Set timerActions = buildActions( - KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); - - timer.setActions(timerActions); - - Set reassignments = buildAssigments( - KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); - - timer.setReassignments(reassignments); - - Set timerNotifications = buildNotifications( - KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); - - timer.setNotifications(timerNotifications); - } - - return timers; - } - - protected abstract Node createNode(KaleoNode kaleoNode) - throws PortalException, SystemException; - - @BeanReference(type = RoleLocalService.class) - private RoleLocalService _roleLocalService; - - @BeanReference(type = UserLocalService.class) - private UserLocalService _userLocalService; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.bean.BeanReference; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.ResourceAction; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.service.RoleLocalService; +import com.liferay.portal.service.UserLocalService; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; +import com.liferay.portal.workflow.kaleo.definition.AssigneesRecipient; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.AssignmentType; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.DurationScale; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.Recipient; +import com.liferay.portal.workflow.kaleo.definition.RecipientType; +import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; +import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.definition.UserAssignment; +import com.liferay.portal.workflow.kaleo.definition.UserRecipient; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoNotification; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public abstract class BaseNodeBuilder + extends BaseKaleoBean implements NodeBuilder { + + + public Node buildNode(KaleoNode kaleoNode) + throws PortalException, SystemException { + + Node node = createNode(kaleoNode); + + Set actions = buildActions( + KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); + + node.setActions(actions); + + node.setMetadata(kaleoNode.getMetadata()); + + Set notifications = buildNotifications( + KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); + + node.setNotifications(notifications); + + Set timers = buildTimers( + KaleoNode.class.getName(), kaleoNode.getKaleoNodeId()); + + node.setTimers(timers); + + return node; + } + + protected void addNotificationRecipients( + KaleoNotification kaleoNotification, Notification notification) + throws PortalException, SystemException { + + List kaleoNotificationRecipients = + kaleoNotificationRecipientLocalService. + getKaleoNotificationRecipients( + kaleoNotification.getKaleoNotificationId()); + + for (KaleoNotificationRecipient kaleoNotificationRecipient : + kaleoNotificationRecipients) { + + String recipientClassName = + kaleoNotificationRecipient.getRecipientClassName(); + + long recipientClassPK = + kaleoNotificationRecipient.getRecipientClassPK(); + + Recipient recipient = null; + + if (recipientClassName.equals(RecipientType.ADDRESS.name())) { + recipient = new AddressRecipient( + kaleoNotificationRecipient.getAddress()); + } + else if (recipientClassName.equals( + RecipientType.ASSIGNEES.name())) { + + recipient = new AssigneesRecipient(); + } + else if (recipientClassName.equals(Role.class.getName())) { + Role role = _roleLocalService.fetchRole(recipientClassPK); + + recipient = new RoleRecipient( + role.getName(), role.getTypeLabel()); + } + else if (recipientClassName.equals(User.class.getName())) { + if (recipientClassPK > 0) { + User user = _userLocalService.getUser(recipientClassPK); + + recipient = new UserRecipient( + user.getUserId(), user.getScreenName(), + user.getEmailAddress()); + } + else { + recipient = new UserRecipient(); + } + } + + notification.addRecipients(recipient); + } + } + + protected Set buildActions(String kaleoClassName, long kaleoClassPK) + throws SystemException { + + List kaleoActions = + kaleoActionLocalService.getKaleoActions( + kaleoClassName, kaleoClassPK); + + Set actions = new HashSet(kaleoActions.size()); + + for (KaleoAction kaleoAction : kaleoActions) { + Action action = new Action( + kaleoAction.getName(), kaleoAction.getDescription(), + kaleoAction.getExecutionType(), kaleoAction.getScript(), + kaleoAction.getScriptLanguage(), + kaleoAction.getScriptRequiredContexts(), + kaleoAction.getPriority()); + + actions.add(action); + } + + return actions; + } + + protected Set buildAssigments( + String kaleoClassName, long kaleoClassPK) + throws PortalException, SystemException { + + List kaleoTaskAssignments = + kaleoTaskAssignmentLocalService.getKaleoTaskAssignments( + kaleoClassName, kaleoClassPK); + + Set assignments = new HashSet( + kaleoTaskAssignments.size()); + + for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { + String assigneeClassName = + kaleoTaskAssignment.getAssigneeClassName(); + + long assigneeClassPK = kaleoTaskAssignment.getAssigneeClassPK(); + + Assignment assignment = null; + + if (assigneeClassName.equals(AssignmentType.SCRIPT.name())) { + assignment = new ScriptAssignment( + kaleoTaskAssignment.getAssigneeScript(), + kaleoTaskAssignment.getAssigneeScriptLanguage(), + kaleoTaskAssignment.getAssigneeScriptRequiredContexts()); + } + else if (assigneeClassName.equals(ResourceAction.class.getName())) { + assignment = new ResourceActionAssignment( + kaleoTaskAssignment.getAssigneeActionId()); + } + else if (assigneeClassName.equals(Role.class.getName())) { + Role role = _roleLocalService.fetchRole(assigneeClassPK); + + assignment = new RoleAssignment( + role.getName(), role.getTypeLabel()); + } + else if (assigneeClassName.equals(User.class.getName())) { + if (assigneeClassPK == 0) { + assignment = new UserAssignment(); + } + else { + User user = _userLocalService.getUser(assigneeClassPK); + + assignment = new UserAssignment( + user.getUserId(), user.getScreenName(), + user.getEmailAddress()); + } + } + + assignments.add(assignment); + } + + return assignments; + } + + protected Set buildNotifications( + String kaleoClassName, long kaleoClassPK) + throws PortalException, SystemException { + + List kaleoNotifications = + kaleoNotificationLocalService.getKaleoNotifications( + kaleoClassName, kaleoClassPK); + + Set notifications = new HashSet( + kaleoNotifications.size()); + + for (KaleoNotification kaleoNotification : kaleoNotifications) { + Notification notification = new Notification( + kaleoNotification.getName(), kaleoNotification.getDescription(), + kaleoNotification.getExecutionType(), + kaleoNotification.getTemplate(), + kaleoNotification.getTemplateLanguage()); + + notifications.add(notification); + + String notificationTypes = kaleoNotification.getNotificationTypes(); + + String[] notificationTypeValues = StringUtil.split( + notificationTypes, StringPool.COMMA); + + for (String notificationTypeValue : notificationTypeValues) { + notification.addNotificationType(notificationTypeValue); + } + + addNotificationRecipients(kaleoNotification, notification); + } + + return notifications; + } + + protected Set buildTimers(String kaleoClassName, long kaleoClassPK) + throws PortalException, SystemException { + + List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( + kaleoClassName, kaleoClassPK); + + Set timers = new HashSet(kaleoTimers.size()); + + for (KaleoTimer kaleoTimer : kaleoTimers) { + Timer timer = new Timer( + kaleoTimer.getName(), kaleoTimer.getDescription(), + kaleoTimer.isBlocking()); + + timers.add(timer); + + DelayDuration delayDuration = new DelayDuration( + kaleoTimer.getDuration(), + DurationScale.parse(kaleoTimer.getScale())); + + timer.setDelayDuration(delayDuration); + + String recurrenceScale = kaleoTimer.getRecurrenceScale(); + + if (Validator.isNotNull(recurrenceScale)) { + DelayDuration recurrenceDelayDuration = + new DelayDuration( + kaleoTimer.getRecurrenceDuration(), + DurationScale.parse(recurrenceScale)); + + timer.setRecurrence(recurrenceDelayDuration); + } + + Set timerActions = buildActions( + KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); + + timer.setActions(timerActions); + + Set reassignments = buildAssigments( + KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); + + timer.setReassignments(reassignments); + + Set timerNotifications = buildNotifications( + KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId()); + + timer.setNotifications(timerNotifications); + } + + return timers; + } + + protected abstract Node createNode(KaleoNode kaleoNode) + throws PortalException, SystemException; + + @BeanReference(type = RoleLocalService.class) + private RoleLocalService _roleLocalService; + + @BeanReference(type = UserLocalService.class) + private UserLocalService _userLocalService; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ConditionNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ConditionNodeBuilder.java index adbf15c3..151b0428 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ConditionNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ConditionNodeBuilder.java @@ -1,44 +1,44 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public class ConditionNodeBuilder - extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) - throws PortalException, SystemException { - - KaleoCondition kaleoCondition = - kaleoConditionLocalService.getKaleoNodeKaleoCondition( - kaleoNode.getKaleoNodeId()); - - return new Condition( - kaleoNode.getName(), kaleoNode.getDescription(), - kaleoCondition.getScript(), kaleoCondition.getScriptLanguage(), - kaleoCondition.getScriptRequiredContexts()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public class ConditionNodeBuilder + extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) + throws PortalException, SystemException { + + KaleoCondition kaleoCondition = + kaleoConditionLocalService.getKaleoNodeKaleoCondition( + kaleoNode.getKaleoNodeId()); + + return new Condition( + kaleoNode.getName(), kaleoNode.getDescription(), + kaleoCondition.getScript(), kaleoCondition.getScriptLanguage(), + kaleoCondition.getScriptRequiredContexts()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefaultDefinitionBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefaultDefinitionBuilder.java index d618f6a4..30c8af69 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefaultDefinitionBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefaultDefinitionBuilder.java @@ -1,106 +1,106 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Transition; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class DefaultDefinitionBuilder - extends BaseKaleoBean implements DefinitionBuilder { - - - public Definition buildDefinition(long kaleoDefinitionId) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = - kaleoDefinitionLocalService.getKaleoDefinition(kaleoDefinitionId); - - return doBuildDefinition(kaleoDefinition); - } - - - public Definition buildDefinition(long companyId, String name, int version) - throws PortalException, SystemException { - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - KaleoDefinition kaleoDefinition = - kaleoDefinitionLocalService.getKaleoDefinition( - name, version, serviceContext); - - return doBuildDefinition(kaleoDefinition); - } - - protected Definition doBuildDefinition(KaleoDefinition kaleoDefinition) - throws PortalException, SystemException { - - Definition definition = new Definition( - kaleoDefinition.getName(), kaleoDefinition.getDescription(), - kaleoDefinition.getContent(), kaleoDefinition.getVersion()); - - List kaleoNodes = - kaleoNodeLocalService.getKaleoDefinitionKaleoNodes( - kaleoDefinition.getKaleoDefinitionId()); - - for (KaleoNode kaleoNode : kaleoNodes) { - NodeBuilder nodeBuilder = NodeBuilderRegistry.getNodeBuilder( - kaleoNode.getType()); - - Node node = nodeBuilder.buildNode(kaleoNode); - - definition.addNode(node); - } - - List kaleoTransitions = - kaleoTransitionLocalService.getKaleoDefinitionKaleoTransitions( - kaleoDefinition.getKaleoDefinitionId()); - - for (KaleoTransition kaleoTransition : kaleoTransitions) { - String sourceNodeName = kaleoTransition.getSourceKaleoNodeName(); - - Node sourceNode = definition.getNode(sourceNodeName); - - String targetNodeName = kaleoTransition.getTargetKaleoNodeName(); - - Node targetNode = definition.getNode(targetNodeName); - - Transition transition = new Transition( - kaleoTransition.getName(), sourceNode, targetNode, - kaleoTransition.isDefaultTransition()); - - sourceNode.addOutgoingTransition(transition); - - targetNode.addIncomingTransition(transition); - } - - return definition; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Transition; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class DefaultDefinitionBuilder + extends BaseKaleoBean implements DefinitionBuilder { + + + public Definition buildDefinition(long kaleoDefinitionId) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = + kaleoDefinitionLocalService.getKaleoDefinition(kaleoDefinitionId); + + return doBuildDefinition(kaleoDefinition); + } + + + public Definition buildDefinition(long companyId, String name, int version) + throws PortalException, SystemException { + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + KaleoDefinition kaleoDefinition = + kaleoDefinitionLocalService.getKaleoDefinition( + name, version, serviceContext); + + return doBuildDefinition(kaleoDefinition); + } + + protected Definition doBuildDefinition(KaleoDefinition kaleoDefinition) + throws PortalException, SystemException { + + Definition definition = new Definition( + kaleoDefinition.getName(), kaleoDefinition.getDescription(), + kaleoDefinition.getContent(), kaleoDefinition.getVersion()); + + List kaleoNodes = + kaleoNodeLocalService.getKaleoDefinitionKaleoNodes( + kaleoDefinition.getKaleoDefinitionId()); + + for (KaleoNode kaleoNode : kaleoNodes) { + NodeBuilder nodeBuilder = NodeBuilderRegistry.getNodeBuilder( + kaleoNode.getType()); + + Node node = nodeBuilder.buildNode(kaleoNode); + + definition.addNode(node); + } + + List kaleoTransitions = + kaleoTransitionLocalService.getKaleoDefinitionKaleoTransitions( + kaleoDefinition.getKaleoDefinitionId()); + + for (KaleoTransition kaleoTransition : kaleoTransitions) { + String sourceNodeName = kaleoTransition.getSourceKaleoNodeName(); + + Node sourceNode = definition.getNode(sourceNodeName); + + String targetNodeName = kaleoTransition.getTargetKaleoNodeName(); + + Node targetNode = definition.getNode(targetNodeName); + + Transition transition = new Transition( + kaleoTransition.getName(), sourceNode, targetNode, + kaleoTransition.isDefaultTransition()); + + sourceNode.addOutgoingTransition(transition); + + targetNode.addIncomingTransition(transition); + } + + return definition; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefinitionBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefinitionBuilder.java index d6ffb547..224c587c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefinitionBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/DefinitionBuilder.java @@ -1,32 +1,32 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.definition.Definition; - -/** - * @author Michael C. Han - */ -public interface DefinitionBuilder { - - public Definition buildDefinition(long kaleoDefinitionId) - throws PortalException, SystemException; - - public Definition buildDefinition(long companyId, String name, int version) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.definition.Definition; + +/** + * @author Michael C. Han + */ +public interface DefinitionBuilder { + + public Definition buildDefinition(long kaleoDefinitionId) + throws PortalException, SystemException; + + public Definition buildDefinition(long companyId, String name, int version) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ForkNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ForkNodeBuilder.java index 297e1739..fd94759a 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ForkNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/ForkNodeBuilder.java @@ -1,31 +1,31 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.workflow.kaleo.definition.Fork; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public class ForkNodeBuilder extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) { - return new Fork(kaleoNode.getName(), kaleoNode.getDescription()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.workflow.kaleo.definition.Fork; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public class ForkNodeBuilder extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) { + return new Fork(kaleoNode.getName(), kaleoNode.getDescription()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinNodeBuilder.java index a346abdc..1fb67a73 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinNodeBuilder.java @@ -1,31 +1,31 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.workflow.kaleo.definition.Join; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public class JoinNodeBuilder extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) { - return new Join(kaleoNode.getName(), kaleoNode.getDescription()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.workflow.kaleo.definition.Join; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public class JoinNodeBuilder extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) { + return new Join(kaleoNode.getName(), kaleoNode.getDescription()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinXorNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinXorNodeBuilder.java index a0eb0910..8e3372e6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinXorNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/JoinXorNodeBuilder.java @@ -1,31 +1,31 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.workflow.kaleo.definition.JoinXor; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public class JoinXorNodeBuilder extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) { - return new JoinXor(kaleoNode.getName(), kaleoNode.getDescription()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.workflow.kaleo.definition.JoinXor; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public class JoinXorNodeBuilder extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) { + return new JoinXor(kaleoNode.getName(), kaleoNode.getDescription()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilder.java index 8f62773c..4e6ed0a6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilder.java @@ -1,30 +1,30 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public interface NodeBuilder { - - public Node buildNode(KaleoNode kaleoNode) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public interface NodeBuilder { + + public Node buildNode(KaleoNode kaleoNode) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilderRegistry.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilderRegistry.java index 232d6511..9a972f90 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilderRegistry.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/NodeBuilderRegistry.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NodeBuilderRegistry { - - public static NodeBuilder getNodeBuilder(String nodeTypeString) { - return _nodeBuilders.getNodeTypeDependentObjects(nodeTypeString); - } - - public void setNodeBuilders(Map nodeBuilders) { - _nodeBuilders.setNodeTypeDependentObjects(nodeBuilders); - } - - protected static NodeTypeDependentObjectRegistry - _nodeBuilders = new NodeTypeDependentObjectRegistry(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NodeBuilderRegistry { + + public static NodeBuilder getNodeBuilder(String nodeTypeString) { + return _nodeBuilders.getNodeTypeDependentObjects(nodeTypeString); + } + + public void setNodeBuilders(Map nodeBuilders) { + _nodeBuilders.setNodeTypeDependentObjects(nodeBuilders); + } + + protected static NodeTypeDependentObjectRegistry + _nodeBuilders = new NodeTypeDependentObjectRegistry(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/StateNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/StateNodeBuilder.java index f2624434..a0e840d6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/StateNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/StateNodeBuilder.java @@ -1,33 +1,33 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.State; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public class StateNodeBuilder extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) { - return new State( - kaleoNode.getName(), kaleoNode.getDescription(), - kaleoNode.isInitial()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.State; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public class StateNodeBuilder extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) { + return new State( + kaleoNode.getName(), kaleoNode.getDescription(), + kaleoNode.isInitial()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/TaskNodeBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/TaskNodeBuilder.java index da033ca1..8b9e8546 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/TaskNodeBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/export/builder/TaskNodeBuilder.java @@ -1,49 +1,49 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.export.builder; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Task; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; - -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class TaskNodeBuilder extends BaseNodeBuilder implements NodeBuilder { - - - protected Node createNode(KaleoNode kaleoNode) - throws PortalException, SystemException { - - KaleoTask kaleoTask = kaleoTaskLocalService.getKaleoNodeKaleoTask( - kaleoNode.getKaleoNodeId()); - - Task task = new Task(kaleoNode.getName(), kaleoNode.getDescription()); - - Set assignments = buildAssigments( - KaleoTask.class.getName(), kaleoTask.getKaleoTaskId()); - - task.setAssignments(assignments); - - return task; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.export.builder; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Task; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class TaskNodeBuilder extends BaseNodeBuilder implements NodeBuilder { + + + protected Node createNode(KaleoNode kaleoNode) + throws PortalException, SystemException { + + KaleoTask kaleoTask = kaleoTaskLocalService.getKaleoNodeKaleoTask( + kaleoNode.getKaleoNodeId()); + + Task task = new Task(kaleoNode.getName(), kaleoNode.getDescription()); + + Set assignments = buildAssigments( + KaleoTask.class.getName(), kaleoTask.getKaleoTaskId()); + + task.setAssignments(assignments); + + return task; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/CompanyModelListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/CompanyModelListener.java index a3d140fb..f3a8dbea 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/CompanyModelListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/CompanyModelListener.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.listeners; - -import com.liferay.portal.ModelListenerException; -import com.liferay.portal.model.BaseModelListener; -import com.liferay.portal.model.Company; -import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManagerUtil; - -/** - * @author Michael C. Han - */ -public class CompanyModelListener extends BaseModelListener { - - - public void onAfterRemove(Company company) throws ModelListenerException { - try { - PortalKaleoManagerUtil.deleteKaleoData(company.getCompanyId()); - } - catch (Exception e) { - throw new ModelListenerException(e); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.listeners; + +import com.liferay.portal.ModelListenerException; +import com.liferay.portal.model.BaseModelListener; +import com.liferay.portal.model.Company; +import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManagerUtil; + +/** + * @author Michael C. Han + */ +public class CompanyModelListener extends BaseModelListener { + + + public void onAfterRemove(Company company) throws ModelListenerException { + try { + PortalKaleoManagerUtil.deleteKaleoData(company.getCompanyId()); + } + catch (Exception e) { + throw new ModelListenerException(e); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/KaleoDefinitionModelListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/KaleoDefinitionModelListener.java index e8f70e0b..2e081040 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/KaleoDefinitionModelListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/listeners/KaleoDefinitionModelListener.java @@ -1,51 +1,51 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.listeners; - -import com.liferay.portal.ModelListenerException; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageBusUtil; -import com.liferay.portal.model.BaseModelListener; -import com.liferay.portal.service.ServiceContextThreadLocal; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; - -/** - * @author Kenneth Chang - */ -public class KaleoDefinitionModelListener - extends BaseModelListener { - - - public void onAfterRemove(KaleoDefinition kaleoDefinition) - throws ModelListenerException { - - try { - Message message = new Message(); - - message.put("command", "delete"); - message.put("name", kaleoDefinition.getName()); - message.put( - "serviceContext", - ServiceContextThreadLocal.getServiceContext()); - message.put("version", kaleoDefinition.getVersion()); - - MessageBusUtil.sendMessage("liferay/kaleo_definition", message); - } - catch (Exception e) { - throw new ModelListenerException(e); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.listeners; + +import com.liferay.portal.ModelListenerException; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.messaging.MessageBusUtil; +import com.liferay.portal.model.BaseModelListener; +import com.liferay.portal.service.ServiceContextThreadLocal; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; + +/** + * @author Kenneth Chang + */ +public class KaleoDefinitionModelListener + extends BaseModelListener { + + + public void onAfterRemove(KaleoDefinition kaleoDefinition) + throws ModelListenerException { + + try { + Message message = new Message(); + + message.put("command", "delete"); + message.put("name", kaleoDefinition.getName()); + message.put( + "serviceContext", + ServiceContextThreadLocal.getServiceContext()); + message.put("version", kaleoDefinition.getVersion()); + + MessageBusUtil.sendMessage("liferay/kaleo_definition", message); + } + catch (Exception e) { + throw new ModelListenerException(e); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/service/impl/KaleoCompanyLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/service/impl/KaleoCompanyLocalServiceImpl.java index f4def362..435eff99 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/service/impl/KaleoCompanyLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/service/impl/KaleoCompanyLocalServiceImpl.java @@ -1,57 +1,57 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.Company; -import com.liferay.portal.service.CompanyLocalService; -import com.liferay.portal.service.CompanyLocalServiceWrapper; -import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManagerUtil; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoCompanyLocalServiceImpl extends CompanyLocalServiceWrapper { - - public KaleoCompanyLocalServiceImpl( - CompanyLocalService companyLocalService) { - - super(companyLocalService); - } - - - public Company checkCompany(String webId, String mx, String shardName) - throws PortalException, SystemException { - - Company company = super.checkCompany(webId, mx, shardName); - - try { - PortalKaleoManagerUtil.deployKaleoDefaults(company.getCompanyId()); - } - catch (PortalException pe) { - throw pe; - } - catch (SystemException se) { - throw se; - } - catch (Exception e) { - throw new SystemException(e); - } - - return company; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.Company; +import com.liferay.portal.service.CompanyLocalService; +import com.liferay.portal.service.CompanyLocalServiceWrapper; +import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManagerUtil; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoCompanyLocalServiceImpl extends CompanyLocalServiceWrapper { + + public KaleoCompanyLocalServiceImpl( + CompanyLocalService companyLocalService) { + + super(companyLocalService); + } + + + public Company checkCompany(String webId, String mx, String shardName) + throws PortalException, SystemException { + + Company company = super.checkCompany(webId, mx, shardName); + + try { + PortalKaleoManagerUtil.deployKaleoDefaults(company.getCompanyId()); + } + catch (PortalException pe) { + throw pe; + } + catch (SystemException se) { + throw se; + } + catch (Exception e) { + throw new SystemException(e); + } + + return company; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_0_0.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_0_0.java index 710851fa..d1ee216c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_0_0.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_0_0.java @@ -1,35 +1,35 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade; - -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_0_0.UpgradeKaleoTaskInstanceToken; - -/** - * @author Marcellus Tavares - */ -public class UpgradeProcess_1_0_0 extends UpgradeProcess { - - - public int getThreshold() { - return 100; - } - - - protected void doUpgrade() throws Exception { - upgrade(UpgradeKaleoTaskInstanceToken.class); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade; + +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_0_0.UpgradeKaleoTaskInstanceToken; + +/** + * @author Marcellus Tavares + */ +public class UpgradeProcess_1_0_0 extends UpgradeProcess { + + + public int getThreshold() { + return 100; + } + + + protected void doUpgrade() throws Exception { + upgrade(UpgradeKaleoTaskInstanceToken.class); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_1_0.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_1_0.java index a425c699..a29592f7 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_1_0.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_1_0.java @@ -1,35 +1,35 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade; - -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_1_0.UpgradeWorkflowContext; - -/** - * @author Jang Kim - */ -public class UpgradeProcess_1_1_0 extends UpgradeProcess { - - - public int getThreshold() { - return 110; - } - - - protected void doUpgrade() throws Exception { - upgrade(UpgradeWorkflowContext.class); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade; + +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_1_0.UpgradeWorkflowContext; + +/** + * @author Jang Kim + */ +public class UpgradeProcess_1_1_0 extends UpgradeProcess { + + + public int getThreshold() { + return 110; + } + + + protected void doUpgrade() throws Exception { + upgrade(UpgradeWorkflowContext.class); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_2_0.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_2_0.java index 3321d9bc..4d9bbe4e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_2_0.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/UpgradeProcess_1_2_0.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade; - -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.UpgradeKaleoLog; -import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.UpgradeKaleoNotificationRecipient; - -/** - * @author Michael C. Han - */ -public class UpgradeProcess_1_2_0 extends UpgradeProcess { - - - public int getThreshold() { - return 120; - } - - - protected void doUpgrade() throws Exception { - upgrade(UpgradeKaleoLog.class); - upgrade(UpgradeKaleoNotificationRecipient.class); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade; + +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.UpgradeKaleoLog; +import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.UpgradeKaleoNotificationRecipient; + +/** + * @author Michael C. Han + */ +public class UpgradeProcess_1_2_0 extends UpgradeProcess { + + + public int getThreshold() { + return 120; + } + + + protected void doUpgrade() throws Exception { + upgrade(UpgradeKaleoLog.class); + upgrade(UpgradeKaleoNotificationRecipient.class); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_0_0/UpgradeKaleoTaskInstanceToken.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_0_0/UpgradeKaleoTaskInstanceToken.java index 989ace53..ad9e9a74 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_0_0/UpgradeKaleoTaskInstanceToken.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_0_0/UpgradeKaleoTaskInstanceToken.java @@ -1,161 +1,161 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_0_0; - -import com.liferay.portal.kernel.dao.jdbc.DataAccess; -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.workflow.kaleo.definition.NodeType; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; - -import java.util.HashSet; -import java.util.Set; - -/** - * @author Marcellus Tavares - */ -public class UpgradeKaleoTaskInstanceToken extends UpgradeProcess { - - protected void deleteKaleoInstanceTokens() throws Exception { - if (_kaleoInstanceTokenIds.isEmpty()) { - return; - } - - StringBundler sb = new StringBundler( - _kaleoInstanceTokenIds.size() * 4 + 1); - - sb.append("delete from KaleoInstanceToken where "); - - for (long kaleoInstanceTokenId : _kaleoInstanceTokenIds) { - sb.append("(kaleoInstanceTokenId = "); - sb.append(kaleoInstanceTokenId); - sb.append(StringPool.CLOSE_PARENTHESIS); - sb.append(" OR "); - } - - sb.setIndex(sb.index() - 1); - - String sql = sb.toString(); - - runSQL(sql); - } - - - protected void doUpgrade() throws Exception { - Connection con = null; - PreparedStatement ps = null; - ResultSet rs = null; - - try { - con = DataAccess.getUpgradeOptimizedConnection(); - - ps = con.prepareStatement( - "select kaleoTaskInstanceTokenId, kaleoInstanceTokenId from " + - "KaleoTaskInstanceToken"); - - rs = ps.executeQuery(); - - while (rs.next()) { - long kaleoTaskInstanceTokenId = rs.getLong( - "kaleoTaskInstanceTokenId"); - long oldKaleoInstanceTokenId = rs.getLong( - "kaleoInstanceTokenId"); - - long newKaleoInstanceTokenId = getKaleoInstanceTokenId( - oldKaleoInstanceTokenId); - - if (oldKaleoInstanceTokenId == newKaleoInstanceTokenId) { - continue; - } - - StringBundler sb = new StringBundler(); - - sb.append("update KaleoTaskInstanceToken set "); - sb.append("kaleoInstanceTokenId = "); - sb.append(newKaleoInstanceTokenId); - sb.append(" where kaleoTaskInstanceTokenId = "); - sb.append(kaleoTaskInstanceTokenId); - - String sql = sb.toString(); - - runSQL(sql); - } - } - finally { - DataAccess.cleanUp(con, ps, rs); - } - - deleteKaleoInstanceTokens(); - } - - protected long getKaleoInstanceTokenId(long kaleoInstanceTokenId) - throws Exception { - - Connection con = null; - PreparedStatement ps = null; - ResultSet rs = null; - - try { - con = DataAccess.getUpgradeOptimizedConnection(); - - StringBundler sb = new StringBundler(); - - sb.append("select KaleoNode.type_, "); - sb.append("KaleoInstanceToken.kaleoInstanceTokenId "); - sb.append("from KaleoNode inner join KaleoInstanceToken on "); - sb.append("(KaleoNode.kaleoNodeId = "); - sb.append("KaleoInstanceToken.currentKaleoNodeId) "); - sb.append("where KaleoInstanceToken.kaleoInstanceTokenId = "); - sb.append("(select parentKaleoInstanceTokenId from "); - sb.append("KaleoInstanceToken where KaleoInstanceTokenId = ?)"); - - String sql = sb.toString(); - - ps = con.prepareStatement(sql); - - ps.setLong(1, kaleoInstanceTokenId); - - rs = ps.executeQuery(); - - if (rs.next()) { - String type = rs.getString("type_"); - - if (!type.equals(NodeType.TASK.toString())) { - return kaleoInstanceTokenId; - } - - long parentKaleoInstanceTokenId = rs.getLong( - "kaleoInstanceTokenId"); - - _kaleoInstanceTokenIds.add(kaleoInstanceTokenId); - - return getKaleoInstanceTokenId(parentKaleoInstanceTokenId); - } - else { - return kaleoInstanceTokenId; - } - } - finally { - DataAccess.cleanUp(con, ps, rs); - } - } - - private Set _kaleoInstanceTokenIds = new HashSet(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_0_0; + +import com.liferay.portal.kernel.dao.jdbc.DataAccess; +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.workflow.kaleo.definition.NodeType; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +import java.util.HashSet; +import java.util.Set; + +/** + * @author Marcellus Tavares + */ +public class UpgradeKaleoTaskInstanceToken extends UpgradeProcess { + + protected void deleteKaleoInstanceTokens() throws Exception { + if (_kaleoInstanceTokenIds.isEmpty()) { + return; + } + + StringBundler sb = new StringBundler( + _kaleoInstanceTokenIds.size() * 4 + 1); + + sb.append("delete from KaleoInstanceToken where "); + + for (long kaleoInstanceTokenId : _kaleoInstanceTokenIds) { + sb.append("(kaleoInstanceTokenId = "); + sb.append(kaleoInstanceTokenId); + sb.append(StringPool.CLOSE_PARENTHESIS); + sb.append(" OR "); + } + + sb.setIndex(sb.index() - 1); + + String sql = sb.toString(); + + runSQL(sql); + } + + + protected void doUpgrade() throws Exception { + Connection con = null; + PreparedStatement ps = null; + ResultSet rs = null; + + try { + con = DataAccess.getUpgradeOptimizedConnection(); + + ps = con.prepareStatement( + "select kaleoTaskInstanceTokenId, kaleoInstanceTokenId from " + + "KaleoTaskInstanceToken"); + + rs = ps.executeQuery(); + + while (rs.next()) { + long kaleoTaskInstanceTokenId = rs.getLong( + "kaleoTaskInstanceTokenId"); + long oldKaleoInstanceTokenId = rs.getLong( + "kaleoInstanceTokenId"); + + long newKaleoInstanceTokenId = getKaleoInstanceTokenId( + oldKaleoInstanceTokenId); + + if (oldKaleoInstanceTokenId == newKaleoInstanceTokenId) { + continue; + } + + StringBundler sb = new StringBundler(); + + sb.append("update KaleoTaskInstanceToken set "); + sb.append("kaleoInstanceTokenId = "); + sb.append(newKaleoInstanceTokenId); + sb.append(" where kaleoTaskInstanceTokenId = "); + sb.append(kaleoTaskInstanceTokenId); + + String sql = sb.toString(); + + runSQL(sql); + } + } + finally { + DataAccess.cleanUp(con, ps, rs); + } + + deleteKaleoInstanceTokens(); + } + + protected long getKaleoInstanceTokenId(long kaleoInstanceTokenId) + throws Exception { + + Connection con = null; + PreparedStatement ps = null; + ResultSet rs = null; + + try { + con = DataAccess.getUpgradeOptimizedConnection(); + + StringBundler sb = new StringBundler(); + + sb.append("select KaleoNode.type_, "); + sb.append("KaleoInstanceToken.kaleoInstanceTokenId "); + sb.append("from KaleoNode inner join KaleoInstanceToken on "); + sb.append("(KaleoNode.kaleoNodeId = "); + sb.append("KaleoInstanceToken.currentKaleoNodeId) "); + sb.append("where KaleoInstanceToken.kaleoInstanceTokenId = "); + sb.append("(select parentKaleoInstanceTokenId from "); + sb.append("KaleoInstanceToken where KaleoInstanceTokenId = ?)"); + + String sql = sb.toString(); + + ps = con.prepareStatement(sql); + + ps.setLong(1, kaleoInstanceTokenId); + + rs = ps.executeQuery(); + + if (rs.next()) { + String type = rs.getString("type_"); + + if (!type.equals(NodeType.TASK.toString())) { + return kaleoInstanceTokenId; + } + + long parentKaleoInstanceTokenId = rs.getLong( + "kaleoInstanceTokenId"); + + _kaleoInstanceTokenIds.add(kaleoInstanceTokenId); + + return getKaleoInstanceTokenId(parentKaleoInstanceTokenId); + } + else { + return kaleoInstanceTokenId; + } + } + finally { + DataAccess.cleanUp(con, ps, rs); + } + } + + private Set _kaleoInstanceTokenIds = new HashSet(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_1_0/UpgradeWorkflowContext.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_1_0/UpgradeWorkflowContext.java index 58ceff1c..4c1d54a3 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_1_0/UpgradeWorkflowContext.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_1_0/UpgradeWorkflowContext.java @@ -1,111 +1,111 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_1_0; - -import com.liferay.portal.kernel.dao.jdbc.DataAccess; -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; - -import java.util.Map; - -import org.jabsorb.JSONSerializer; - -/** - * @author Jang Kim - */ -public class UpgradeWorkflowContext extends UpgradeProcess { - - - protected void doUpgrade() throws Exception { - updateTable("KaleoInstance", "kaleoInstanceId"); - updateTable("KaleoLog", "kaleoLogId"); - updateTable("KaleoTaskInstanceToken", "kaleoTaskInstanceTokenId"); - } - - protected void updateTable(String tableName, String fieldName) - throws Exception { - - Connection con = null; - PreparedStatement ps = null; - ResultSet rs = null; - - try { - con = DataAccess.getConnection(); - - ps = con.prepareStatement( - "select " + fieldName + ", workflowContext from " + tableName + - " where workflowContext is not null and workflowContext " + - "not like '%serializable%'"); - - rs = ps.executeQuery(); - - JSONSerializer jsonSerializer = new JSONSerializer(); - - jsonSerializer.registerDefaultSerializers(); - - while (rs.next()) { - long fieldValue = rs.getLong(fieldName); - String workflowContext = rs.getString("workflowContext"); - - if (Validator.isNull(workflowContext)) { - continue; - } - - workflowContext = WorkflowContextUtil.convert( - (Map)jsonSerializer.fromJSON( - workflowContext)); - - updateWorkflowContext( - tableName, fieldName, fieldValue, workflowContext); - } - } - finally { - DataAccess.cleanUp(con, ps, rs); - } - } - - protected void updateWorkflowContext( - String tableName, String fieldName, long fieldValue, - String workflowContext) - throws Exception { - - Connection con = null; - PreparedStatement ps = null; - - try { - con = DataAccess.getUpgradeOptimizedConnection(); - - ps = con.prepareStatement( - "update " + tableName + " set workflowContext = ? where " + - fieldName + " = ?"); - - ps.setString(1, workflowContext); - ps.setLong(2, fieldValue); - - ps.executeUpdate(); - } - finally { - DataAccess.cleanUp(con, ps); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_1_0; + +import com.liferay.portal.kernel.dao.jdbc.DataAccess; +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +import java.util.Map; + +import org.jabsorb.JSONSerializer; + +/** + * @author Jang Kim + */ +public class UpgradeWorkflowContext extends UpgradeProcess { + + + protected void doUpgrade() throws Exception { + updateTable("KaleoInstance", "kaleoInstanceId"); + updateTable("KaleoLog", "kaleoLogId"); + updateTable("KaleoTaskInstanceToken", "kaleoTaskInstanceTokenId"); + } + + protected void updateTable(String tableName, String fieldName) + throws Exception { + + Connection con = null; + PreparedStatement ps = null; + ResultSet rs = null; + + try { + con = DataAccess.getConnection(); + + ps = con.prepareStatement( + "select " + fieldName + ", workflowContext from " + tableName + + " where workflowContext is not null and workflowContext " + + "not like '%serializable%'"); + + rs = ps.executeQuery(); + + JSONSerializer jsonSerializer = new JSONSerializer(); + + jsonSerializer.registerDefaultSerializers(); + + while (rs.next()) { + long fieldValue = rs.getLong(fieldName); + String workflowContext = rs.getString("workflowContext"); + + if (Validator.isNull(workflowContext)) { + continue; + } + + workflowContext = WorkflowContextUtil.convert( + (Map)jsonSerializer.fromJSON( + workflowContext)); + + updateWorkflowContext( + tableName, fieldName, fieldValue, workflowContext); + } + } + finally { + DataAccess.cleanUp(con, ps, rs); + } + } + + protected void updateWorkflowContext( + String tableName, String fieldName, long fieldValue, + String workflowContext) + throws Exception { + + Connection con = null; + PreparedStatement ps = null; + + try { + con = DataAccess.getUpgradeOptimizedConnection(); + + ps = con.prepareStatement( + "update " + tableName + " set workflowContext = ? where " + + fieldName + " = ?"); + + ps.setString(1, workflowContext); + ps.setLong(2, fieldValue); + + ps.executeUpdate(); + } + finally { + DataAccess.cleanUp(con, ps); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoLog.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoLog.java index 6b7b06d1..943ee36b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoLog.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoLog.java @@ -1,40 +1,40 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0; - -import com.liferay.portal.kernel.upgrade.UpgradeProcess; -import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.util.KaleoLogTable; - -import java.sql.SQLException; - -/** - * @author Kenneth Chang - */ -public class UpgradeKaleoLog extends UpgradeProcess { - - - protected void doUpgrade() throws Exception { - try { - runSQL("alter_column_type KaleoLog comment TEXT null"); - } - catch (SQLException sqle) { - upgradeTable( - KaleoLogTable.TABLE_NAME, KaleoLogTable.TABLE_COLUMNS, - KaleoLogTable.TABLE_SQL_CREATE, - KaleoLogTable.TABLE_SQL_ADD_INDEXES); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0; + +import com.liferay.portal.kernel.upgrade.UpgradeProcess; +import com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.util.KaleoLogTable; + +import java.sql.SQLException; + +/** + * @author Kenneth Chang + */ +public class UpgradeKaleoLog extends UpgradeProcess { + + + protected void doUpgrade() throws Exception { + try { + runSQL("alter_column_type KaleoLog comment TEXT null"); + } + catch (SQLException sqle) { + upgradeTable( + KaleoLogTable.TABLE_NAME, KaleoLogTable.TABLE_COLUMNS, + KaleoLogTable.TABLE_SQL_CREATE, + KaleoLogTable.TABLE_SQL_ADD_INDEXES); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoNotificationRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoNotificationRecipient.java index f480f8b3..5faabc84 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoNotificationRecipient.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/UpgradeKaleoNotificationRecipient.java @@ -1,48 +1,48 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0; - -import com.liferay.portal.kernel.dao.jdbc.DataAccess; -import com.liferay.portal.kernel.upgrade.UpgradeProcess; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -/** - * @author Michael C. Han - */ -public class UpgradeKaleoNotificationRecipient extends UpgradeProcess { - - - protected void doUpgrade() throws Exception { - Connection con = null; - PreparedStatement ps = null; - - try { - con = DataAccess.getUpgradeOptimizedConnection(); - - ps = con.prepareStatement( - "update KaleoNotificationRecipient set recipientClassName = " + - "'ADDRESS' where recipientClassName is null or " + - "recipientClassName = ''"); - - ps.executeUpdate(); - } - finally { - DataAccess.cleanUp(con, ps); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0; + +import com.liferay.portal.kernel.dao.jdbc.DataAccess; +import com.liferay.portal.kernel.upgrade.UpgradeProcess; + +import java.sql.Connection; +import java.sql.PreparedStatement; + +/** + * @author Michael C. Han + */ +public class UpgradeKaleoNotificationRecipient extends UpgradeProcess { + + + protected void doUpgrade() throws Exception { + Connection con = null; + PreparedStatement ps = null; + + try { + con = DataAccess.getUpgradeOptimizedConnection(); + + ps = con.prepareStatement( + "update KaleoNotificationRecipient set recipientClassName = " + + "'ADDRESS' where recipientClassName is null or " + + "recipientClassName = ''"); + + ps.executeUpdate(); + } + finally { + DataAccess.cleanUp(con, ps); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/util/KaleoLogTable.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/util/KaleoLogTable.java index 5cb25eea..393d6a09 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/util/KaleoLogTable.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/hook/upgrade/v1_2_0/util/KaleoLogTable.java @@ -1,72 +1,72 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.util; - -import java.sql.Types; - -/** - * @author Kenneth Chang - */ -public class KaleoLogTable { - - public static final Object[][] TABLE_COLUMNS = { - {"kaleoLogId", Types.BIGINT}, - {"groupId", Types.BIGINT}, - {"companyId", Types.BIGINT}, - {"userId", Types.BIGINT}, - {"userName", Types.VARCHAR}, - {"createDate", Types.TIMESTAMP}, - {"modifiedDate", Types.TIMESTAMP}, - {"kaleoClassName", Types.VARCHAR}, - {"kaleoClassPK", Types.BIGINT}, - {"kaleoDefinitionId", Types.BIGINT}, - {"kaleoInstanceId", Types.BIGINT}, - {"kaleoInstanceTokenId", Types.BIGINT}, - {"kaleoTaskInstanceTokenId", Types.BIGINT}, - {"kaleoNodeName", Types.VARCHAR}, - {"terminalKaleoNode", Types.BOOLEAN}, - {"kaleoActionId", Types.BIGINT}, - {"kaleoActionName", Types.VARCHAR}, - {"kaleoActionDescription", Types.VARCHAR}, - {"previousKaleoNodeId", Types.BIGINT}, - {"previousKaleoNodeName", Types.VARCHAR}, - {"previousAssigneeClassName", Types.VARCHAR}, - {"previousAssigneeClassPK", Types.BIGINT}, - {"currentAssigneeClassName", Types.VARCHAR}, - {"currentAssigneeClassPK", Types.BIGINT}, - {"type_", Types.VARCHAR}, - {"comment_", Types.CLOB}, - {"startDate", Types.TIMESTAMP}, - {"endDate", Types.TIMESTAMP}, - {"duration", Types.BIGINT}, - {"workflowContext", Types.CLOB} - }; - - public static final String TABLE_NAME = "KaleoLog"; - - public static final String[] TABLE_SQL_ADD_INDEXES = { - "create index IX_73B5F4DE on KaleoLog (companyId)", - "create index IX_E66A153A on KaleoLog (kaleoClassName, kaleoClassPK, kaleoInstanceTokenId, type_)", - "create index IX_6C64B7D4 on KaleoLog (kaleoDefinitionId)", - "create index IX_5BC6AB16 on KaleoLog (kaleoInstanceId)", - "create index IX_470B9FF8 on KaleoLog (kaleoInstanceTokenId, type_)", - "create index IX_B0CDCA38 on KaleoLog (kaleoTaskInstanceTokenId)" - }; - - public static final String TABLE_SQL_CREATE = "create table KaleoLog (kaleoLogId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(200) null,createDate DATE null,modifiedDate DATE null,kaleoClassName VARCHAR(200) null,kaleoClassPK LONG,kaleoDefinitionId LONG,kaleoInstanceId LONG,kaleoInstanceTokenId LONG,kaleoTaskInstanceTokenId LONG,kaleoNodeName VARCHAR(200) null,terminalKaleoNode BOOLEAN,kaleoActionId LONG,kaleoActionName VARCHAR(200) null,kaleoActionDescription STRING null,previousKaleoNodeId LONG,previousKaleoNodeName VARCHAR(200) null,previousAssigneeClassName VARCHAR(200) null,previousAssigneeClassPK LONG,currentAssigneeClassName VARCHAR(200) null,currentAssigneeClassPK LONG,type_ VARCHAR(50) null,comment_ TEXT null,startDate DATE null,endDate DATE null,duration LONG,workflowContext TEXT null)"; - - public static final String TABLE_SQL_DROP = "drop table KaleoLog"; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.hook.upgrade.v1_2_0.util; + +import java.sql.Types; + +/** + * @author Kenneth Chang + */ +public class KaleoLogTable { + + public static final Object[][] TABLE_COLUMNS = { + {"kaleoLogId", Types.BIGINT}, + {"groupId", Types.BIGINT}, + {"companyId", Types.BIGINT}, + {"userId", Types.BIGINT}, + {"userName", Types.VARCHAR}, + {"createDate", Types.TIMESTAMP}, + {"modifiedDate", Types.TIMESTAMP}, + {"kaleoClassName", Types.VARCHAR}, + {"kaleoClassPK", Types.BIGINT}, + {"kaleoDefinitionId", Types.BIGINT}, + {"kaleoInstanceId", Types.BIGINT}, + {"kaleoInstanceTokenId", Types.BIGINT}, + {"kaleoTaskInstanceTokenId", Types.BIGINT}, + {"kaleoNodeName", Types.VARCHAR}, + {"terminalKaleoNode", Types.BOOLEAN}, + {"kaleoActionId", Types.BIGINT}, + {"kaleoActionName", Types.VARCHAR}, + {"kaleoActionDescription", Types.VARCHAR}, + {"previousKaleoNodeId", Types.BIGINT}, + {"previousKaleoNodeName", Types.VARCHAR}, + {"previousAssigneeClassName", Types.VARCHAR}, + {"previousAssigneeClassPK", Types.BIGINT}, + {"currentAssigneeClassName", Types.VARCHAR}, + {"currentAssigneeClassPK", Types.BIGINT}, + {"type_", Types.VARCHAR}, + {"comment_", Types.CLOB}, + {"startDate", Types.TIMESTAMP}, + {"endDate", Types.TIMESTAMP}, + {"duration", Types.BIGINT}, + {"workflowContext", Types.CLOB} + }; + + public static final String TABLE_NAME = "KaleoLog"; + + public static final String[] TABLE_SQL_ADD_INDEXES = { + "create index IX_73B5F4DE on KaleoLog (companyId)", + "create index IX_E66A153A on KaleoLog (kaleoClassName, kaleoClassPK, kaleoInstanceTokenId, type_)", + "create index IX_6C64B7D4 on KaleoLog (kaleoDefinitionId)", + "create index IX_5BC6AB16 on KaleoLog (kaleoInstanceId)", + "create index IX_470B9FF8 on KaleoLog (kaleoInstanceTokenId, type_)", + "create index IX_B0CDCA38 on KaleoLog (kaleoTaskInstanceTokenId)" + }; + + public static final String TABLE_SQL_CREATE = "create table KaleoLog (kaleoLogId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(200) null,createDate DATE null,modifiedDate DATE null,kaleoClassName VARCHAR(200) null,kaleoClassPK LONG,kaleoDefinitionId LONG,kaleoInstanceId LONG,kaleoInstanceTokenId LONG,kaleoTaskInstanceTokenId LONG,kaleoNodeName VARCHAR(200) null,terminalKaleoNode BOOLEAN,kaleoActionId LONG,kaleoActionName VARCHAR(200) null,kaleoActionDescription STRING null,previousKaleoNodeId LONG,previousKaleoNodeName VARCHAR(200) null,previousAssigneeClassName VARCHAR(200) null,previousAssigneeClassPK LONG,currentAssigneeClassName VARCHAR(200) null,currentAssigneeClassPK LONG,type_ VARCHAR(50) null,comment_ TEXT null,startDate DATE null,endDate DATE null,duration LONG,workflowContext TEXT null)"; + + public static final String TABLE_SQL_DROP = "drop table KaleoLog"; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/DefaultPortalKaleoManager.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/DefaultPortalKaleoManager.java index 3cae8397..4f70d524 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/DefaultPortalKaleoManager.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/DefaultPortalKaleoManager.java @@ -1,287 +1,287 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.manager; - -import com.liferay.portal.NoSuchRoleException; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.LocaleUtil; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowDefinitionManager; -import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; -import com.liferay.portal.model.Company; -import com.liferay.portal.model.Group; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.model.WorkflowDefinitionLink; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.service.WorkflowDefinitionLinkLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; - -import java.io.InputStream; - -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class DefaultPortalKaleoManager - extends BaseKaleoBean implements PortalKaleoManager { - - - public void deleteKaleoData(long companyId) throws Exception { - kaleoDefinitionLocalService.deleteCompanyKaleoDefinitions(companyId); - - kaleoLogLocalService.deleteCompanyKaleoLogs(companyId); - } - - - public void deployDefaultDefinitionLink(String assetClassName) - throws Exception { - - List companies = CompanyLocalServiceUtil.getCompanies(); - - for (Company company : companies) { - long companyId = company.getCompanyId(); - - User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); - - Group companyGroup = GroupLocalServiceUtil.getCompanyGroup( - companyId); - - String definitionName = _defaultDefinitionName; - - if (_definitionAssets.containsKey(assetClassName)) { - definitionName = _definitionAssets.get(assetClassName); - } - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - deployDefaultDefinitionLink( - defaultUser, companyId, companyGroup, assetClassName, - definitionName); - } - } - - - public void deployDefaultDefinitionLinks() throws Exception { - List companies = CompanyLocalServiceUtil.getCompanies(false); - - for (Company company : companies) { - PortalKaleoManagerUtil.deployDefaultDefinitionLinks( - company.getCompanyId()); - } - } - - - public void deployDefaultDefinitionLinks(long companyId) throws Exception { - User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); - - Group companyGroup = GroupLocalServiceUtil.getCompanyGroup(companyId); - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - for (Map.Entry entry : _definitionAssets.entrySet()) { - String assetClassName = entry.getKey(); - String definitionName = entry.getValue(); - - deployDefaultDefinitionLink( - defaultUser, companyId, companyGroup, assetClassName, - definitionName); - } - } - - - public void deployDefaultDefinitions() throws Exception { - List companies = CompanyLocalServiceUtil.getCompanies(); - - for (Company company : companies) { - PortalKaleoManagerUtil.deployDefaultDefinitions( - company.getCompanyId()); - } - } - - - public void deployDefaultDefinitions(long companyId) throws Exception { - for (Map.Entry entry : _definitionFiles.entrySet()) { - String definitionName = entry.getKey(); - String fileName = entry.getValue(); - - ServiceContext serviceContext = new ServiceContext(); - - serviceContext.setCompanyId(companyId); - - int kaleoDefinitionsCount = - kaleoDefinitionLocalService.getKaleoDefinitionsCount( - definitionName, serviceContext); - - if (kaleoDefinitionsCount > 0) { - return; - } - - ClassLoader classLoader = getClass().getClassLoader(); - - InputStream inputStream = classLoader.getResourceAsStream(fileName); - - if (inputStream == null) { - if (_log.isWarnEnabled()) { - _log.warn( - "Unable to find definition file for " + definitionName + - " with file name " + fileName); - } - - return; - } - - User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); - - _workflowDefinitionManager.deployWorkflowDefinition( - serviceContext.getCompanyId(), defaultUser.getUserId(), - definitionName, FileUtil.getBytes(inputStream)); - } - } - - - public void deployDefaultRoles() throws Exception { - List companies = CompanyLocalServiceUtil.getCompanies(); - - for (Company company : companies) { - PortalKaleoManagerUtil.deployDefaultRoles(company.getCompanyId()); - } - } - - - public void deployDefaultRoles(long companyId) throws Exception { - User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); - - for (Map.Entry entry : _defaultRoles.entrySet()) { - String name = entry.getKey(); - - try { - RoleLocalServiceUtil.getRole(companyId, name); - } - catch (NoSuchRoleException nsre) { - Map descriptionMap = - new HashMap(); - - descriptionMap.put(LocaleUtil.getDefault(), entry.getValue()); - - RoleLocalServiceUtil.addRole( - defaultUser.getUserId(), null, 0, name, null, - descriptionMap, RoleConstants.TYPE_REGULAR, null, null); - } - } - } - - - public void deployKaleoDefaults() throws Exception { - deployDefaultRoles(); - deployDefaultDefinitions(); - deployDefaultDefinitionLinks(); - } - - - public void deployKaleoDefaults(long companyId) throws Exception { - deployDefaultRoles(companyId); - deployDefaultDefinitions(companyId); - deployDefaultDefinitionLinks(companyId); - } - - public void setDefaultDefinitionName(String defaultDefinitionName) { - _defaultDefinitionName = defaultDefinitionName; - } - - public void setDefaultRoles(Map defaultRoles) { - _defaultRoles.putAll(defaultRoles); - } - - public void setDefinitionAssets(Map definitionAssets) { - _definitionAssets.putAll(definitionAssets); - } - - public void setDefinitionFiles(Map definitionFiles) { - _definitionFiles.putAll(definitionFiles); - } - - public void setWorkflowDefinitionManager( - WorkflowDefinitionManager workflowDefinitionManager) { - - _workflowDefinitionManager = workflowDefinitionManager; - } - - protected void deployDefaultDefinitionLink( - User defaultUser, long companyId, Group companyGroup, - String assetClassName, String workflowDefinitionName) - throws PortalException, SystemException { - - WorkflowDefinitionLink workflowDefinitionLink = - WorkflowDefinitionLinkLocalServiceUtil. - fetchDefaultWorkflowDefinitionLink( - companyId, assetClassName, 0, 0); - - if (workflowDefinitionLink != null) { - return; - } - - List workflowDefinitions = - _workflowDefinitionManager.getActiveWorkflowDefinitions( - companyId, workflowDefinitionName, 0, 20, - WorkflowComparatorFactoryUtil.getDefinitionNameComparator( - false)); - - if (workflowDefinitions.isEmpty()) { - if (_log.isWarnEnabled()) { - _log.warn( - "No workflow definitions found for " + - workflowDefinitionName); - } - - return; - } - - WorkflowDefinition workflowDefinition = workflowDefinitions.get(0); - - WorkflowDefinitionLinkLocalServiceUtil.addWorkflowDefinitionLink( - defaultUser.getUserId(), companyId, companyGroup.getGroupId(), - assetClassName, 0, 0, workflowDefinition.getName(), - workflowDefinition.getVersion()); - } - - private static Log _log = LogFactoryUtil.getLog( - DefaultPortalKaleoManager.class); - - private String _defaultDefinitionName; - private Map _defaultRoles = new HashMap(); - private Map _definitionAssets = - new HashMap(); - private Map _definitionFiles = - new HashMap(); - private WorkflowDefinitionManager _workflowDefinitionManager; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.manager; + +import com.liferay.portal.NoSuchRoleException; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.FileUtil; +import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowDefinitionManager; +import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; +import com.liferay.portal.model.Company; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.model.WorkflowDefinitionLink; +import com.liferay.portal.service.CompanyLocalServiceUtil; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.service.WorkflowDefinitionLinkLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; + +import java.io.InputStream; + +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class DefaultPortalKaleoManager + extends BaseKaleoBean implements PortalKaleoManager { + + + public void deleteKaleoData(long companyId) throws Exception { + kaleoDefinitionLocalService.deleteCompanyKaleoDefinitions(companyId); + + kaleoLogLocalService.deleteCompanyKaleoLogs(companyId); + } + + + public void deployDefaultDefinitionLink(String assetClassName) + throws Exception { + + List companies = CompanyLocalServiceUtil.getCompanies(); + + for (Company company : companies) { + long companyId = company.getCompanyId(); + + User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); + + Group companyGroup = GroupLocalServiceUtil.getCompanyGroup( + companyId); + + String definitionName = _defaultDefinitionName; + + if (_definitionAssets.containsKey(assetClassName)) { + definitionName = _definitionAssets.get(assetClassName); + } + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + deployDefaultDefinitionLink( + defaultUser, companyId, companyGroup, assetClassName, + definitionName); + } + } + + + public void deployDefaultDefinitionLinks() throws Exception { + List companies = CompanyLocalServiceUtil.getCompanies(false); + + for (Company company : companies) { + PortalKaleoManagerUtil.deployDefaultDefinitionLinks( + company.getCompanyId()); + } + } + + + public void deployDefaultDefinitionLinks(long companyId) throws Exception { + User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); + + Group companyGroup = GroupLocalServiceUtil.getCompanyGroup(companyId); + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + for (Map.Entry entry : _definitionAssets.entrySet()) { + String assetClassName = entry.getKey(); + String definitionName = entry.getValue(); + + deployDefaultDefinitionLink( + defaultUser, companyId, companyGroup, assetClassName, + definitionName); + } + } + + + public void deployDefaultDefinitions() throws Exception { + List companies = CompanyLocalServiceUtil.getCompanies(); + + for (Company company : companies) { + PortalKaleoManagerUtil.deployDefaultDefinitions( + company.getCompanyId()); + } + } + + + public void deployDefaultDefinitions(long companyId) throws Exception { + for (Map.Entry entry : _definitionFiles.entrySet()) { + String definitionName = entry.getKey(); + String fileName = entry.getValue(); + + ServiceContext serviceContext = new ServiceContext(); + + serviceContext.setCompanyId(companyId); + + int kaleoDefinitionsCount = + kaleoDefinitionLocalService.getKaleoDefinitionsCount( + definitionName, serviceContext); + + if (kaleoDefinitionsCount > 0) { + return; + } + + ClassLoader classLoader = getClass().getClassLoader(); + + InputStream inputStream = classLoader.getResourceAsStream(fileName); + + if (inputStream == null) { + if (_log.isWarnEnabled()) { + _log.warn( + "Unable to find definition file for " + definitionName + + " with file name " + fileName); + } + + return; + } + + User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); + + _workflowDefinitionManager.deployWorkflowDefinition( + serviceContext.getCompanyId(), defaultUser.getUserId(), + definitionName, FileUtil.getBytes(inputStream)); + } + } + + + public void deployDefaultRoles() throws Exception { + List companies = CompanyLocalServiceUtil.getCompanies(); + + for (Company company : companies) { + PortalKaleoManagerUtil.deployDefaultRoles(company.getCompanyId()); + } + } + + + public void deployDefaultRoles(long companyId) throws Exception { + User defaultUser = UserLocalServiceUtil.getDefaultUser(companyId); + + for (Map.Entry entry : _defaultRoles.entrySet()) { + String name = entry.getKey(); + + try { + RoleLocalServiceUtil.getRole(companyId, name); + } + catch (NoSuchRoleException nsre) { + Map descriptionMap = + new HashMap(); + + descriptionMap.put(LocaleUtil.getDefault(), entry.getValue()); + + RoleLocalServiceUtil.addRole( + defaultUser.getUserId(), null, 0, name, null, + descriptionMap, RoleConstants.TYPE_REGULAR, null, null); + } + } + } + + + public void deployKaleoDefaults() throws Exception { + deployDefaultRoles(); + deployDefaultDefinitions(); + deployDefaultDefinitionLinks(); + } + + + public void deployKaleoDefaults(long companyId) throws Exception { + deployDefaultRoles(companyId); + deployDefaultDefinitions(companyId); + deployDefaultDefinitionLinks(companyId); + } + + public void setDefaultDefinitionName(String defaultDefinitionName) { + _defaultDefinitionName = defaultDefinitionName; + } + + public void setDefaultRoles(Map defaultRoles) { + _defaultRoles.putAll(defaultRoles); + } + + public void setDefinitionAssets(Map definitionAssets) { + _definitionAssets.putAll(definitionAssets); + } + + public void setDefinitionFiles(Map definitionFiles) { + _definitionFiles.putAll(definitionFiles); + } + + public void setWorkflowDefinitionManager( + WorkflowDefinitionManager workflowDefinitionManager) { + + _workflowDefinitionManager = workflowDefinitionManager; + } + + protected void deployDefaultDefinitionLink( + User defaultUser, long companyId, Group companyGroup, + String assetClassName, String workflowDefinitionName) + throws PortalException, SystemException { + + WorkflowDefinitionLink workflowDefinitionLink = + WorkflowDefinitionLinkLocalServiceUtil. + fetchDefaultWorkflowDefinitionLink( + companyId, assetClassName, 0, 0); + + if (workflowDefinitionLink != null) { + return; + } + + List workflowDefinitions = + _workflowDefinitionManager.getActiveWorkflowDefinitions( + companyId, workflowDefinitionName, 0, 20, + WorkflowComparatorFactoryUtil.getDefinitionNameComparator( + false)); + + if (workflowDefinitions.isEmpty()) { + if (_log.isWarnEnabled()) { + _log.warn( + "No workflow definitions found for " + + workflowDefinitionName); + } + + return; + } + + WorkflowDefinition workflowDefinition = workflowDefinitions.get(0); + + WorkflowDefinitionLinkLocalServiceUtil.addWorkflowDefinitionLink( + defaultUser.getUserId(), companyId, companyGroup.getGroupId(), + assetClassName, 0, 0, workflowDefinition.getName(), + workflowDefinition.getVersion()); + } + + private static Log _log = LogFactoryUtil.getLog( + DefaultPortalKaleoManager.class); + + private String _defaultDefinitionName; + private Map _defaultRoles = new HashMap(); + private Map _definitionAssets = + new HashMap(); + private Map _definitionFiles = + new HashMap(); + private WorkflowDefinitionManager _workflowDefinitionManager; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManager.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManager.java index d76aab40..34d297fa 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManager.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManager.java @@ -1,43 +1,43 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.manager; - -/** - * @author Michael C. Han - */ -public interface PortalKaleoManager { - - public void deleteKaleoData(long companyId) throws Exception; - - public void deployDefaultDefinitionLink(String assetClassName) - throws Exception; - - public void deployDefaultDefinitionLinks() throws Exception; - - public void deployDefaultDefinitionLinks(long companyId) throws Exception; - - public void deployDefaultDefinitions() throws Exception; - - public void deployDefaultDefinitions(long companyId) throws Exception; - - public void deployDefaultRoles() throws Exception; - - public void deployDefaultRoles(long companyId) throws Exception; - - public void deployKaleoDefaults() throws Exception; - - public void deployKaleoDefaults(long companyId) throws Exception; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.manager; + +/** + * @author Michael C. Han + */ +public interface PortalKaleoManager { + + public void deleteKaleoData(long companyId) throws Exception; + + public void deployDefaultDefinitionLink(String assetClassName) + throws Exception; + + public void deployDefaultDefinitionLinks() throws Exception; + + public void deployDefaultDefinitionLinks(long companyId) throws Exception; + + public void deployDefaultDefinitions() throws Exception; + + public void deployDefaultDefinitions(long companyId) throws Exception; + + public void deployDefaultRoles() throws Exception; + + public void deployDefaultRoles(long companyId) throws Exception; + + public void deployKaleoDefaults() throws Exception; + + public void deployKaleoDefaults(long companyId) throws Exception; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManagerUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManagerUtil.java index c21bf69d..18f42b8e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManagerUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/PortalKaleoManagerUtil.java @@ -1,78 +1,78 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.manager; - -/** - * @author Michael C. Han - */ -public class PortalKaleoManagerUtil { - - public static void deleteKaleoData(long companyId) throws Exception { - _portalKaleoManager.deleteKaleoData(companyId); - } - - public static void deployDefaultDefinitionLink(String assetClassName) - throws Exception { - - _portalKaleoManager.deployDefaultDefinitionLink(assetClassName); - } - - public static void deployDefaultDefinitionLinks() throws Exception { - _portalKaleoManager.deployDefaultDefinitionLinks(); - } - - public static void deployDefaultDefinitionLinks(long companyId) - throws Exception { - - _portalKaleoManager.deployDefaultDefinitionLinks(companyId); - } - - public static void deployDefaultDefinitions() throws Exception { - _portalKaleoManager.deployDefaultDefinitions(); - } - - public static void deployDefaultDefinitions(long companyId) - throws Exception { - - _portalKaleoManager.deployDefaultDefinitions(companyId); - } - - public static void deployDefaultRoles() throws Exception { - _portalKaleoManager.deployDefaultRoles(); - } - - public static void deployDefaultRoles(long companyId) throws Exception { - _portalKaleoManager.deployDefaultRoles(companyId); - } - - public static void deployKaleoDefaults() throws Exception { - _portalKaleoManager.deployKaleoDefaults(); - } - - public static void deployKaleoDefaults(long companyId) throws Exception { - _portalKaleoManager.deployKaleoDefaults(companyId); - } - - public static PortalKaleoManager getPortalKaleoManager() { - return _portalKaleoManager; - } - - public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { - _portalKaleoManager = portalKaleoManager; - } - - private static PortalKaleoManager _portalKaleoManager; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.manager; + +/** + * @author Michael C. Han + */ +public class PortalKaleoManagerUtil { + + public static void deleteKaleoData(long companyId) throws Exception { + _portalKaleoManager.deleteKaleoData(companyId); + } + + public static void deployDefaultDefinitionLink(String assetClassName) + throws Exception { + + _portalKaleoManager.deployDefaultDefinitionLink(assetClassName); + } + + public static void deployDefaultDefinitionLinks() throws Exception { + _portalKaleoManager.deployDefaultDefinitionLinks(); + } + + public static void deployDefaultDefinitionLinks(long companyId) + throws Exception { + + _portalKaleoManager.deployDefaultDefinitionLinks(companyId); + } + + public static void deployDefaultDefinitions() throws Exception { + _portalKaleoManager.deployDefaultDefinitions(); + } + + public static void deployDefaultDefinitions(long companyId) + throws Exception { + + _portalKaleoManager.deployDefaultDefinitions(companyId); + } + + public static void deployDefaultRoles() throws Exception { + _portalKaleoManager.deployDefaultRoles(); + } + + public static void deployDefaultRoles(long companyId) throws Exception { + _portalKaleoManager.deployDefaultRoles(companyId); + } + + public static void deployKaleoDefaults() throws Exception { + _portalKaleoManager.deployKaleoDefaults(); + } + + public static void deployKaleoDefaults(long companyId) throws Exception { + _portalKaleoManager.deployKaleoDefaults(companyId); + } + + public static PortalKaleoManager getPortalKaleoManager() { + return _portalKaleoManager; + } + + public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { + _portalKaleoManager = portalKaleoManager; + } + + private static PortalKaleoManager _portalKaleoManager; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoAssetDeploymentMessageListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoAssetDeploymentMessageListener.java index e6d06387..e1c19625 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoAssetDeploymentMessageListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoAssetDeploymentMessageListener.java @@ -1,39 +1,39 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.manager.messaging; - -import com.liferay.portal.kernel.messaging.BaseMessageListener; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManager; - -/** - * @author Michael C. Han - */ -public class KaleoAssetDeploymentMessageListener extends BaseMessageListener { - - public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { - _portalKaleoManager = portalKaleoManager; - } - - - protected void doReceive(Message message) throws Exception { - String assetClassName = (String)message.get("ASSET_CLASS_NAME"); - - _portalKaleoManager.deployDefaultDefinitionLink(assetClassName); - } - - private PortalKaleoManager _portalKaleoManager; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.manager.messaging; + +import com.liferay.portal.kernel.messaging.BaseMessageListener; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManager; + +/** + * @author Michael C. Han + */ +public class KaleoAssetDeploymentMessageListener extends BaseMessageListener { + + public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { + _portalKaleoManager = portalKaleoManager; + } + + + protected void doReceive(Message message) throws Exception { + String assetClassName = (String)message.get("ASSET_CLASS_NAME"); + + _portalKaleoManager.deployDefaultDefinitionLink(assetClassName); + } + + private PortalKaleoManager _portalKaleoManager; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoDeploymentEventMessageListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoDeploymentEventMessageListener.java index c001fc17..34afbeab 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoDeploymentEventMessageListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/manager/messaging/KaleoDeploymentEventMessageListener.java @@ -1,54 +1,54 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.manager.messaging; - -import com.liferay.portal.kernel.messaging.BaseMessageListener; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManager; - -/** - * @author Michael C. Han - */ -public class KaleoDeploymentEventMessageListener extends BaseMessageListener { - - public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { - _portalKaleoManager = portalKaleoManager; - } - - public void setServletContextName(String servletContextName) { - _servletContextName = servletContextName; - } - - - protected void doReceive(Message message) throws Exception { - String command = message.getString("command"); - - if (!command.equals("deploy")) { - return; - } - - String servletContextName = (String)message.get("servletContextName"); - - if (!_servletContextName.equals(servletContextName)) { - return; - } - - _portalKaleoManager.deployKaleoDefaults(); - } - - private PortalKaleoManager _portalKaleoManager; - private String _servletContextName; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.manager.messaging; + +import com.liferay.portal.kernel.messaging.BaseMessageListener; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.workflow.kaleo.manager.PortalKaleoManager; + +/** + * @author Michael C. Han + */ +public class KaleoDeploymentEventMessageListener extends BaseMessageListener { + + public void setPortalKaleoManager(PortalKaleoManager portalKaleoManager) { + _portalKaleoManager = portalKaleoManager; + } + + public void setServletContextName(String servletContextName) { + _servletContextName = servletContextName; + } + + + protected void doReceive(Message message) throws Exception { + String command = message.getString("command"); + + if (!command.equals("deploy")) { + return; + } + + String servletContextName = (String)message.get("servletContextName"); + + if (!_servletContextName.equals(servletContextName)) { + return; + } + + _portalKaleoManager.deployKaleoDefaults(); + } + + private PortalKaleoManager _portalKaleoManager; + private String _servletContextName; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/BaseKaleoUpgradeTableListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/BaseKaleoUpgradeTableListener.java index cbe9d942..49ac055e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/BaseKaleoUpgradeTableListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/BaseKaleoUpgradeTableListener.java @@ -1,115 +1,115 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.model.upgrade; - -import com.liferay.portal.kernel.dao.jdbc.DataAccess; -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.upgrade.util.BaseUpgradeTableListener; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.model.ServiceComponent; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class BaseKaleoUpgradeTableListener extends BaseUpgradeTableListener { - - protected Map getKeyValueMap( - String tableName, String keyColumnName, String valueColumnName) - throws SystemException { - - Map keyValueMap = new HashMap(); - - Connection con = null; - PreparedStatement ps = null; - ResultSet rs = null; - - try { - con = DataAccess.getUpgradeOptimizedConnection(); - - ps = con.prepareStatement( - "select " + keyColumnName + ", " + valueColumnName + " from " + - tableName); - - rs = ps.executeQuery(); - - while (rs.next()) { - long key = rs.getLong(keyColumnName); - long value = rs.getLong(valueColumnName); - - if (_log.isDebugEnabled()) { - _log.debug( - "{" + keyColumnName + "=" + key + ", " + - valueColumnName + "=" + value + "}"); - } - - keyValueMap.put(key, value); - } - } - catch (Exception e) { - throw new SystemException(e); - } - finally { - DataAccess.cleanUp(con, ps, rs); - } - - return keyValueMap; - } - - protected boolean isFixAutoUpgrade( - ServiceComponent previousServiceComponent) { - - if (previousServiceComponent.getBuildNumber() >= 4) { - return false; - } - - return true; - } - - protected void updateKeyValueMap( - Map keyValueMap, String kaleoClassName, - String tableName, String keyColumnName) - throws Exception { - - for (Map.Entry entry : keyValueMap.entrySet()) { - StringBundler sb = new StringBundler(10); - - sb.append("update "); - sb.append(tableName); - sb.append(" set kaleoClassName = '"); - sb.append(kaleoClassName); - sb.append("', kaleoClassPK = "); - sb.append(entry.getValue()); - sb.append(" where "); - sb.append(keyColumnName); - sb.append(" = "); - sb.append(entry.getKey()); - - runSQL(sb.toString()); - } - } - - private static Log _log = LogFactoryUtil.getLog( - BaseKaleoUpgradeTableListener.class); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.model.upgrade; + +import com.liferay.portal.kernel.dao.jdbc.DataAccess; +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.upgrade.util.BaseUpgradeTableListener; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.model.ServiceComponent; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class BaseKaleoUpgradeTableListener extends BaseUpgradeTableListener { + + protected Map getKeyValueMap( + String tableName, String keyColumnName, String valueColumnName) + throws SystemException { + + Map keyValueMap = new HashMap(); + + Connection con = null; + PreparedStatement ps = null; + ResultSet rs = null; + + try { + con = DataAccess.getUpgradeOptimizedConnection(); + + ps = con.prepareStatement( + "select " + keyColumnName + ", " + valueColumnName + " from " + + tableName); + + rs = ps.executeQuery(); + + while (rs.next()) { + long key = rs.getLong(keyColumnName); + long value = rs.getLong(valueColumnName); + + if (_log.isDebugEnabled()) { + _log.debug( + "{" + keyColumnName + "=" + key + ", " + + valueColumnName + "=" + value + "}"); + } + + keyValueMap.put(key, value); + } + } + catch (Exception e) { + throw new SystemException(e); + } + finally { + DataAccess.cleanUp(con, ps, rs); + } + + return keyValueMap; + } + + protected boolean isFixAutoUpgrade( + ServiceComponent previousServiceComponent) { + + if (previousServiceComponent.getBuildNumber() >= 4) { + return false; + } + + return true; + } + + protected void updateKeyValueMap( + Map keyValueMap, String kaleoClassName, + String tableName, String keyColumnName) + throws Exception { + + for (Map.Entry entry : keyValueMap.entrySet()) { + StringBundler sb = new StringBundler(10); + + sb.append("update "); + sb.append(tableName); + sb.append(" set kaleoClassName = '"); + sb.append(kaleoClassName); + sb.append("', kaleoClassPK = "); + sb.append(entry.getValue()); + sb.append(" where "); + sb.append(keyColumnName); + sb.append(" = "); + sb.append(entry.getKey()); + + runSQL(sb.toString()); + } + } + + private static Log _log = LogFactoryUtil.getLog( + BaseKaleoUpgradeTableListener.class); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoActionUpgradeTableListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoActionUpgradeTableListener.java index 66f8c5ad..dd51a51c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoActionUpgradeTableListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoActionUpgradeTableListener.java @@ -1,63 +1,63 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.model.upgrade; - -import com.liferay.portal.kernel.upgrade.util.UpgradeTable; -import com.liferay.portal.model.ServiceComponent; - -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoActionUpgradeTableListener - extends BaseKaleoUpgradeTableListener { - - - public void onAfterUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (_keyValueMap == null) { - return; - } - - Map keyValueMap = _keyValueMap; - - _keyValueMap = null; - - updateKeyValueMap( - keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", - "KaleoAction", "kaleoActionId"); - } - - - public void onBeforeUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (!isFixAutoUpgrade(previousServiceComponent)) { - return; - } - - _keyValueMap = getKeyValueMap( - "KaleoAction", "kaleoActionId", "kaleoNodeId"); - } - - private Map _keyValueMap; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.model.upgrade; + +import com.liferay.portal.kernel.upgrade.util.UpgradeTable; +import com.liferay.portal.model.ServiceComponent; + +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoActionUpgradeTableListener + extends BaseKaleoUpgradeTableListener { + + + public void onAfterUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (_keyValueMap == null) { + return; + } + + Map keyValueMap = _keyValueMap; + + _keyValueMap = null; + + updateKeyValueMap( + keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", + "KaleoAction", "kaleoActionId"); + } + + + public void onBeforeUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (!isFixAutoUpgrade(previousServiceComponent)) { + return; + } + + _keyValueMap = getKeyValueMap( + "KaleoAction", "kaleoActionId", "kaleoNodeId"); + } + + private Map _keyValueMap; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoLogUpgradeTableListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoLogUpgradeTableListener.java index da25b7b6..465ebe25 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoLogUpgradeTableListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoLogUpgradeTableListener.java @@ -1,62 +1,62 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.model.upgrade; - -import com.liferay.portal.kernel.upgrade.util.UpgradeTable; -import com.liferay.portal.model.ServiceComponent; - -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoLogUpgradeTableListener - extends BaseKaleoUpgradeTableListener { - - - public void onAfterUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (_keyValueMap == null) { - return; - } - - Map keyValueMap = _keyValueMap; - - _keyValueMap = null; - - updateKeyValueMap( - keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", - "KaleoLog", "kaleoLogId"); - } - - - public void onBeforeUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (!isFixAutoUpgrade(previousServiceComponent)) { - return; - } - - _keyValueMap = getKeyValueMap("KaleoLog", "kaleoLogId", "kaleoNodeId"); - } - - private Map _keyValueMap; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.model.upgrade; + +import com.liferay.portal.kernel.upgrade.util.UpgradeTable; +import com.liferay.portal.model.ServiceComponent; + +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoLogUpgradeTableListener + extends BaseKaleoUpgradeTableListener { + + + public void onAfterUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (_keyValueMap == null) { + return; + } + + Map keyValueMap = _keyValueMap; + + _keyValueMap = null; + + updateKeyValueMap( + keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", + "KaleoLog", "kaleoLogId"); + } + + + public void onBeforeUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (!isFixAutoUpgrade(previousServiceComponent)) { + return; + } + + _keyValueMap = getKeyValueMap("KaleoLog", "kaleoLogId", "kaleoNodeId"); + } + + private Map _keyValueMap; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoNotificationUpgradeTableListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoNotificationUpgradeTableListener.java index 81094ca9..9c9f50ea 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoNotificationUpgradeTableListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoNotificationUpgradeTableListener.java @@ -1,63 +1,63 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.model.upgrade; - -import com.liferay.portal.kernel.upgrade.util.UpgradeTable; -import com.liferay.portal.model.ServiceComponent; - -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoNotificationUpgradeTableListener - extends BaseKaleoUpgradeTableListener { - - - public void onAfterUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (_keyValueMap == null) { - return; - } - - Map keyValueMap = _keyValueMap; - - _keyValueMap = null; - - updateKeyValueMap( - keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", - "KaleoNotification", "kaleoNotificationId"); - } - - - public void onBeforeUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (!isFixAutoUpgrade(previousServiceComponent)) { - return; - } - - _keyValueMap = getKeyValueMap( - "KaleoNotification", "kaleoNotificationId", "kaleoNodeId"); - } - - private Map _keyValueMap; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.model.upgrade; + +import com.liferay.portal.kernel.upgrade.util.UpgradeTable; +import com.liferay.portal.model.ServiceComponent; + +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoNotificationUpgradeTableListener + extends BaseKaleoUpgradeTableListener { + + + public void onAfterUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (_keyValueMap == null) { + return; + } + + Map keyValueMap = _keyValueMap; + + _keyValueMap = null; + + updateKeyValueMap( + keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoNode", + "KaleoNotification", "kaleoNotificationId"); + } + + + public void onBeforeUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (!isFixAutoUpgrade(previousServiceComponent)) { + return; + } + + _keyValueMap = getKeyValueMap( + "KaleoNotification", "kaleoNotificationId", "kaleoNodeId"); + } + + private Map _keyValueMap; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoTaskAssignmentUpgradeTableListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoTaskAssignmentUpgradeTableListener.java index c76f9767..f159a254 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoTaskAssignmentUpgradeTableListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/model/upgrade/KaleoTaskAssignmentUpgradeTableListener.java @@ -1,63 +1,63 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.model.upgrade; - -import com.liferay.portal.kernel.upgrade.util.UpgradeTable; -import com.liferay.portal.model.ServiceComponent; - -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoTaskAssignmentUpgradeTableListener - extends BaseKaleoUpgradeTableListener { - - - public void onAfterUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (_keyValueMap == null) { - return; - } - - Map keyValueMap = _keyValueMap; - - _keyValueMap = null; - - updateKeyValueMap( - keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoTask", - "KaleoTaskAssignment", "kaleoTaskAssignmentId"); - } - - - public void onBeforeUpdateTable( - ServiceComponent previousServiceComponent, - UpgradeTable upgradeTable) - throws Exception { - - if (!isFixAutoUpgrade(previousServiceComponent)) { - return; - } - - _keyValueMap = getKeyValueMap( - "KaleoTaskAssignment", "kaleoTaskAssignmentId", "kaleoTaskId"); - } - - private Map _keyValueMap; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.model.upgrade; + +import com.liferay.portal.kernel.upgrade.util.UpgradeTable; +import com.liferay.portal.model.ServiceComponent; + +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoTaskAssignmentUpgradeTableListener + extends BaseKaleoUpgradeTableListener { + + + public void onAfterUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (_keyValueMap == null) { + return; + } + + Map keyValueMap = _keyValueMap; + + _keyValueMap = null; + + updateKeyValueMap( + keyValueMap, "com.liferay.portal.workflow.kaleo.model.KaleoTask", + "KaleoTaskAssignment", "kaleoTaskAssignmentId"); + } + + + public void onBeforeUpdateTable( + ServiceComponent previousServiceComponent, + UpgradeTable upgradeTable) + throws Exception { + + if (!isFixAutoUpgrade(previousServiceComponent)) { + return; + } + + _keyValueMap = getKeyValueMap( + "KaleoTaskAssignment", "kaleoTaskAssignmentId", "kaleoTaskId"); + } + + private Map _keyValueMap; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/BaseNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/BaseNodeValidator.java index 13c3bf09..c693939d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/BaseNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/BaseNodeValidator.java @@ -1,60 +1,60 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Transition; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public abstract class BaseNodeValidator - implements NodeValidator { - - - public void validate(Definition definition, T node) - throws WorkflowException { - - doValidate(definition, node); - - validateTransitions(node.getOutgoingTransitions()); - } - - protected abstract void doValidate(Definition definition, T node) - throws WorkflowException; - - protected void validateTransition(Transition transition) - throws WorkflowException { - - if (transition.getTargetNode() == null) { - throw new WorkflowException( - "Unable to find target node for transition " + - transition.getName()); - } - } - - protected void validateTransitions(Map transitions) - throws WorkflowException { - - for (Transition transition : transitions.values()) { - validateTransition(transition); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Transition; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public abstract class BaseNodeValidator + implements NodeValidator { + + + public void validate(Definition definition, T node) + throws WorkflowException { + + doValidate(definition, node); + + validateTransitions(node.getOutgoingTransitions()); + } + + protected abstract void doValidate(Definition definition, T node) + throws WorkflowException; + + protected void validateTransition(Transition transition) + throws WorkflowException { + + if (transition.getTargetNode() == null) { + throw new WorkflowException( + "Unable to find target node for transition " + + transition.getName()); + } + } + + protected void validateTransitions(Map transitions) + throws WorkflowException { + + for (Transition transition : transitions.values()) { + validateTransition(transition); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ConditionNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ConditionNodeValidator.java index 7ae1119c..98445f23 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ConditionNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ConditionNodeValidator.java @@ -1,44 +1,44 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.definition.Definition; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class ConditionNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, Condition condition) - throws WorkflowException { - - if (condition.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for condition " + - condition.getName()); - } - - if (condition.getOutgoingTransitionsCount() < 2) { - throw new WorkflowException( - "Less than 2 outgoing transitions found for condition " + - condition.getName()); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.definition.Definition; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class ConditionNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, Condition condition) + throws WorkflowException { + + if (condition.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for condition " + + condition.getName()); + } + + if (condition.getOutgoingTransitionsCount() < 2) { + throw new WorkflowException( + "Less than 2 outgoing transitions found for condition " + + condition.getName()); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/DefaultWorkflowValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/DefaultWorkflowValidator.java index 259f3298..f42e64eb 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/DefaultWorkflowValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/DefaultWorkflowValidator.java @@ -1,68 +1,68 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.State; - -import java.util.Collection; -import java.util.List; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class DefaultWorkflowValidator implements WorkflowValidator { - - public void setNodeValidatorRegistry( - NodeValidatorRegistry nodeValidatorRegistry) { - - _nodeValidatorRegistry = nodeValidatorRegistry; - } - - - public void validate(Definition definition) throws WorkflowException { - State initialState = definition.getInitialState(); - - if (initialState == null) { - throw new WorkflowException("No initial state defined"); - } - - List terminalStates = definition.getTerminalStates(); - - if (terminalStates.isEmpty()) { - throw new WorkflowException("No terminal states defined"); - } - - if (definition.getForksCount() != definition.getJoinsCount()) { - throw new WorkflowException( - "There are unbalanced fork and join nodes"); - } - - Collection nodes = definition.getNodes(); - - for (Node node : nodes) { - NodeValidator nodeValidator = - _nodeValidatorRegistry.getNodeValidator(node.getNodeType()); - - nodeValidator.validate(definition, node); - } - } - - private NodeValidatorRegistry _nodeValidatorRegistry; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.State; + +import java.util.Collection; +import java.util.List; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class DefaultWorkflowValidator implements WorkflowValidator { + + public void setNodeValidatorRegistry( + NodeValidatorRegistry nodeValidatorRegistry) { + + _nodeValidatorRegistry = nodeValidatorRegistry; + } + + + public void validate(Definition definition) throws WorkflowException { + State initialState = definition.getInitialState(); + + if (initialState == null) { + throw new WorkflowException("No initial state defined"); + } + + List terminalStates = definition.getTerminalStates(); + + if (terminalStates.isEmpty()) { + throw new WorkflowException("No terminal states defined"); + } + + if (definition.getForksCount() != definition.getJoinsCount()) { + throw new WorkflowException( + "There are unbalanced fork and join nodes"); + } + + Collection nodes = definition.getNodes(); + + for (Node node : nodes) { + NodeValidator nodeValidator = + _nodeValidatorRegistry.getNodeValidator(node.getNodeType()); + + nodeValidator.validate(definition, node); + } + } + + private NodeValidatorRegistry _nodeValidatorRegistry; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ForkNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ForkNodeValidator.java index f555a054..6675bfe2 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ForkNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/ForkNodeValidator.java @@ -1,181 +1,181 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Fork; -import com.liferay.portal.workflow.kaleo.definition.Join; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.NodeType; -import com.liferay.portal.workflow.kaleo.definition.Transition; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - * @author Norbert Kocsis - */ -public class ForkNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, Fork fork) - throws WorkflowException { - - if (fork.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for fork " + fork.getName()); - } - - if (fork.getOutgoingTransitionsCount() < 2) { - throw new WorkflowException( - "Less than 2 outgoing transitions found for fork " + - fork.getName()); - } - - traverse(fork); - } - - protected List getUnvisitedNodes( - List nodes, Collection transitions, boolean target) { - - List unvisitedNodes = new ArrayList(); - - for (Transition transition : transitions) { - Node node = transition.getSourceNode(); - - if (target) { - node = transition.getTargetNode(); - } - - if (!nodes.contains(node)) { - unvisitedNodes.add(node); - } - } - - return unvisitedNodes; - } - - protected void reverseTraverse( - Fork fork, Join join, List targetNodes, - Map joinForkMap) - throws WorkflowException { - - List sourceNodes = new ArrayList(); - - sourceNodes.add(join); - - for (Transition transition : join.getIncomingTransitions()) { - sourceNodes.add(transition.getSourceNode()); - } - - for (int i = 1; i < sourceNodes.size(); i++) { - Node sourceNode = sourceNodes.get(i); - - NodeType nodeType = sourceNode.getNodeType(); - - if (nodeType.equals(NodeType.FORK) && - Validator.equals(fork, sourceNode)) { - - continue; - } - else if (nodeType.equals(NodeType.JOIN) || - nodeType.equals(NodeType.JOIN_XOR)) { - - sourceNode = joinForkMap.get((Join)sourceNode); - - sourceNodes.set(i, sourceNode); - } - - List unvisitedSourceNodes = getUnvisitedNodes( - sourceNodes, sourceNode.getIncomingTransitions(), false); - - sourceNodes.addAll(unvisitedSourceNodes); - } - - if ((sourceNodes.size() != targetNodes.size()) || - !sourceNodes.containsAll(targetNodes)) { - - throw new WorkflowException( - "There are errors between fork " + fork.getName() + - " and join " + join.getName()); - } - } - - protected Join traverse(Fork fork) throws WorkflowException { - Join join = null; - - List targetNodes = new ArrayList(); - - Map joinForkMap = new HashMap(); - - targetNodes.add(fork); - - for (Transition transition : fork.getOutgoingTransitionsList()) { - targetNodes.add(transition.getTargetNode()); - } - - for (int i = 1; i < targetNodes.size(); i++) { - Node targetNode = targetNodes.get(i); - - NodeType nodeType = targetNode.getNodeType(); - - if (nodeType.equals(NodeType.FORK)) { - Join localJoin = traverse((Fork)targetNode); - - joinForkMap.put(localJoin, (Fork)targetNode); - - List unvisitedTargetNodes = getUnvisitedNodes( - targetNodes, localJoin.getOutgoingTransitionsList(), true); - - targetNodes.addAll(unvisitedTargetNodes); - } - else if (nodeType.equals(NodeType.JOIN) || - nodeType.equals(NodeType.JOIN_XOR)) { - - if (Validator.isNull(join)) { - join = (Join)targetNode; - } - else if (!Validator.equals(join, targetNode)) { - throw new WorkflowException( - "Fork " + fork.getName() + " and join " + - targetNode.getName() + " are not paired"); - } - } - else { - List unvisitedTargetNodes = getUnvisitedNodes( - targetNodes, targetNode.getOutgoingTransitionsList(), true); - - targetNodes.addAll(unvisitedTargetNodes); - } - } - - if (join == null) { - throw new WorkflowException( - "No matching join found for fork " + fork.getName()); - } - - reverseTraverse(fork, join, targetNodes, joinForkMap); - - return join; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Fork; +import com.liferay.portal.workflow.kaleo.definition.Join; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.NodeType; +import com.liferay.portal.workflow.kaleo.definition.Transition; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + * @author Norbert Kocsis + */ +public class ForkNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, Fork fork) + throws WorkflowException { + + if (fork.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for fork " + fork.getName()); + } + + if (fork.getOutgoingTransitionsCount() < 2) { + throw new WorkflowException( + "Less than 2 outgoing transitions found for fork " + + fork.getName()); + } + + traverse(fork); + } + + protected List getUnvisitedNodes( + List nodes, Collection transitions, boolean target) { + + List unvisitedNodes = new ArrayList(); + + for (Transition transition : transitions) { + Node node = transition.getSourceNode(); + + if (target) { + node = transition.getTargetNode(); + } + + if (!nodes.contains(node)) { + unvisitedNodes.add(node); + } + } + + return unvisitedNodes; + } + + protected void reverseTraverse( + Fork fork, Join join, List targetNodes, + Map joinForkMap) + throws WorkflowException { + + List sourceNodes = new ArrayList(); + + sourceNodes.add(join); + + for (Transition transition : join.getIncomingTransitions()) { + sourceNodes.add(transition.getSourceNode()); + } + + for (int i = 1; i < sourceNodes.size(); i++) { + Node sourceNode = sourceNodes.get(i); + + NodeType nodeType = sourceNode.getNodeType(); + + if (nodeType.equals(NodeType.FORK) && + Validator.equals(fork, sourceNode)) { + + continue; + } + else if (nodeType.equals(NodeType.JOIN) || + nodeType.equals(NodeType.JOIN_XOR)) { + + sourceNode = joinForkMap.get((Join)sourceNode); + + sourceNodes.set(i, sourceNode); + } + + List unvisitedSourceNodes = getUnvisitedNodes( + sourceNodes, sourceNode.getIncomingTransitions(), false); + + sourceNodes.addAll(unvisitedSourceNodes); + } + + if ((sourceNodes.size() != targetNodes.size()) || + !sourceNodes.containsAll(targetNodes)) { + + throw new WorkflowException( + "There are errors between fork " + fork.getName() + + " and join " + join.getName()); + } + } + + protected Join traverse(Fork fork) throws WorkflowException { + Join join = null; + + List targetNodes = new ArrayList(); + + Map joinForkMap = new HashMap(); + + targetNodes.add(fork); + + for (Transition transition : fork.getOutgoingTransitionsList()) { + targetNodes.add(transition.getTargetNode()); + } + + for (int i = 1; i < targetNodes.size(); i++) { + Node targetNode = targetNodes.get(i); + + NodeType nodeType = targetNode.getNodeType(); + + if (nodeType.equals(NodeType.FORK)) { + Join localJoin = traverse((Fork)targetNode); + + joinForkMap.put(localJoin, (Fork)targetNode); + + List unvisitedTargetNodes = getUnvisitedNodes( + targetNodes, localJoin.getOutgoingTransitionsList(), true); + + targetNodes.addAll(unvisitedTargetNodes); + } + else if (nodeType.equals(NodeType.JOIN) || + nodeType.equals(NodeType.JOIN_XOR)) { + + if (Validator.isNull(join)) { + join = (Join)targetNode; + } + else if (!Validator.equals(join, targetNode)) { + throw new WorkflowException( + "Fork " + fork.getName() + " and join " + + targetNode.getName() + " are not paired"); + } + } + else { + List unvisitedTargetNodes = getUnvisitedNodes( + targetNodes, targetNode.getOutgoingTransitionsList(), true); + + targetNodes.addAll(unvisitedTargetNodes); + } + } + + if (join == null) { + throw new WorkflowException( + "No matching join found for fork " + fork.getName()); + } + + reverseTraverse(fork, join, targetNodes, joinForkMap); + + return join; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinNodeValidator.java index 80e11f4d..806d154b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinNodeValidator.java @@ -1,42 +1,42 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Join; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class JoinNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, Join join) - throws WorkflowException { - - if (join.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for join " + join.getName()); - } - - if (join.getOutgoingTransitionsCount() == 0) { - throw new WorkflowException( - "No outgoing transition found for join " + join.getName()); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Join; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class JoinNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, Join join) + throws WorkflowException { + + if (join.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for join " + join.getName()); + } + + if (join.getOutgoingTransitionsCount() == 0) { + throw new WorkflowException( + "No outgoing transition found for join " + join.getName()); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinXorNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinXorNodeValidator.java index c2f6748a..28654fef 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinXorNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/JoinXorNodeValidator.java @@ -1,43 +1,43 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.JoinXor; - -/** - * @author Michael C. Han - */ -public class JoinXorNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, JoinXor joinXor) - throws WorkflowException { - - if (joinXor.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for join-xor " + - joinXor.getName()); - } - - if (joinXor.getOutgoingTransitionsCount() == 0) { - throw new WorkflowException( - "No outgoing transition found for join-xor " + - joinXor.getName()); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.JoinXor; + +/** + * @author Michael C. Han + */ +public class JoinXorNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, JoinXor joinXor) + throws WorkflowException { + + if (joinXor.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for join-xor " + + joinXor.getName()); + } + + if (joinXor.getOutgoingTransitionsCount() == 0) { + throw new WorkflowException( + "No outgoing transition found for join-xor " + + joinXor.getName()); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/NodeValidatorRegistry.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/NodeValidatorRegistry.java index 28153a79..ddeff468 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/NodeValidatorRegistry.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/NodeValidatorRegistry.java @@ -1,42 +1,42 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.NodeType; -import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NodeValidatorRegistry { - - public NodeValidator getNodeValidator(NodeType nodeType) { - return _nodeValidators.getNodeTypeDependentObjects(nodeType); - } - - public void setNodeValidators( - Map> nodeValidators) { - - _nodeValidators.setNodeTypeDependentObjects(nodeValidators); - } - - private static NodeTypeDependentObjectRegistry> - _nodeValidators = - new NodeTypeDependentObjectRegistry>(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.NodeType; +import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NodeValidatorRegistry { + + public NodeValidator getNodeValidator(NodeType nodeType) { + return _nodeValidators.getNodeTypeDependentObjects(nodeType); + } + + public void setNodeValidators( + Map> nodeValidators) { + + _nodeValidators.setNodeTypeDependentObjects(nodeValidators); + } + + private static NodeTypeDependentObjectRegistry> + _nodeValidators = + new NodeTypeDependentObjectRegistry>(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/StateNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/StateNodeValidator.java index f67affc2..e544af6c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/StateNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/StateNodeValidator.java @@ -1,65 +1,65 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.State; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class StateNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, State state) - throws WorkflowException { - - if (state.isInitial()) { - validateInitialState(definition, state); - } - else if (state.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for state " + state.getName()); - } - } - - protected void validateInitialState(Definition definition, State state) - throws WorkflowException { - - State initialState = definition.getInitialState(); - - if (!Validator.equals(initialState, state)) { - throw new WorkflowException( - "Multiple initial states " + state.getName() + " and " + - initialState.getName()); - } - - if (state.getIncomingTransitionsCount() > 0) { - throw new WorkflowException( - "An incoming transition was found for initial state " + - state.getName()); - } - - if (state.getOutgoingTransitionsCount() == 0) { - throw new WorkflowException( - "No outgoing transition found for initial state " + - state.getName()); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.State; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class StateNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, State state) + throws WorkflowException { + + if (state.isInitial()) { + validateInitialState(definition, state); + } + else if (state.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for state " + state.getName()); + } + } + + protected void validateInitialState(Definition definition, State state) + throws WorkflowException { + + State initialState = definition.getInitialState(); + + if (!Validator.equals(initialState, state)) { + throw new WorkflowException( + "Multiple initial states " + state.getName() + " and " + + initialState.getName()); + } + + if (state.getIncomingTransitionsCount() > 0) { + throw new WorkflowException( + "An incoming transition was found for initial state " + + state.getName()); + } + + if (state.getOutgoingTransitionsCount() == 0) { + throw new WorkflowException( + "No outgoing transition found for initial state " + + state.getName()); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/TaskNodeValidator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/TaskNodeValidator.java index 79371a88..525f640e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/TaskNodeValidator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/TaskNodeValidator.java @@ -1,52 +1,52 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.Task; - -import java.util.Set; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public class TaskNodeValidator extends BaseNodeValidator { - - - protected void doValidate(Definition definition, Task task) - throws WorkflowException { - - if (task.getIncomingTransitionsCount() == 0) { - throw new WorkflowException( - "No incoming transition found for task " + task.getName()); - } - - if (task.getOutgoingTransitionsCount() == 0) { - throw new WorkflowException( - "No outgoing transition found for task " + task.getName()); - } - - Set assignments = task.getAssignments(); - - if ((assignments == null) || assignments.isEmpty()) { - throw new WorkflowException( - "No assignments for task " + task.getName()); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.Task; + +import java.util.Set; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public class TaskNodeValidator extends BaseNodeValidator { + + + protected void doValidate(Definition definition, Task task) + throws WorkflowException { + + if (task.getIncomingTransitionsCount() == 0) { + throw new WorkflowException( + "No incoming transition found for task " + task.getName()); + } + + if (task.getOutgoingTransitionsCount() == 0) { + throw new WorkflowException( + "No outgoing transition found for task " + task.getName()); + } + + Set assignments = task.getAssignments(); + + if ((assignments == null) || assignments.isEmpty()) { + throw new WorkflowException( + "No assignments for task " + task.getName()); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/XMLWorkflowModelParser.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/XMLWorkflowModelParser.java index 706266cc..f835fdd5 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/XMLWorkflowModelParser.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/parser/XMLWorkflowModelParser.java @@ -1,733 +1,733 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.parser; - -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.xml.Document; -import com.liferay.portal.kernel.xml.Element; -import com.liferay.portal.kernel.xml.SAXReaderUtil; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.definition.ActionAware; -import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; -import com.liferay.portal.workflow.kaleo.definition.AssigneesRecipient; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.DurationScale; -import com.liferay.portal.workflow.kaleo.definition.Fork; -import com.liferay.portal.workflow.kaleo.definition.Join; -import com.liferay.portal.workflow.kaleo.definition.JoinXor; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.NotificationAware; -import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; -import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; -import com.liferay.portal.workflow.kaleo.definition.State; -import com.liferay.portal.workflow.kaleo.definition.Task; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.definition.Transition; -import com.liferay.portal.workflow.kaleo.definition.UserAssignment; -import com.liferay.portal.workflow.kaleo.definition.UserRecipient; - -import java.io.InputStream; - -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - * @author Eduardo Lundgren - */ -public class XMLWorkflowModelParser implements WorkflowModelParser { - - - public Definition parse(InputStream inputStream) throws WorkflowException { - try { - return doParse(inputStream); - } - catch (Exception e) { - throw new WorkflowException("Unable to parse definition", e); - } - } - - public void setValidate(boolean validate) { - _validate = validate; - } - - protected Definition doParse(InputStream inputStream) throws Exception { - Document document = SAXReaderUtil.read(inputStream, _validate); - - Element rootElement = document.getRootElement(); - - String name = rootElement.elementText("name"); - String description = rootElement.elementText("description"); - int version = GetterUtil.getInteger(rootElement.elementText("version")); - - Definition definition = new Definition( - name, description, document.formattedString(), version); - - List conditionElements = rootElement.elements("condition"); - - for (Element conditionElement : conditionElements) { - Condition condition = parseCondition(conditionElement); - - definition.addNode(condition); - } - - List forkElements = rootElement.elements("fork"); - - for (Element forkElement : forkElements) { - Fork fork = parseFork(forkElement); - - definition.addNode(fork); - } - - List joinElements = rootElement.elements("join"); - - for (Element joinElement : joinElements) { - Join join = parseJoin(joinElement); - - definition.addNode(join); - } - - List joinXorElements = rootElement.elements("join-xor"); - - for (Element joinXorElement : joinXorElements) { - JoinXor joinXor = parseJoinXor(joinXorElement); - - definition.addNode(joinXor); - } - - List stateElements = rootElement.elements("state"); - - for (Element stateElement : stateElements) { - State state = parseState(stateElement); - - definition.addNode(state); - } - - List taskElements = rootElement.elements("task"); - - for (Element taskElement : taskElements) { - Task task = parseTask(taskElement); - - definition.addNode(task); - } - - parseTransitions( - definition, conditionElements, forkElements, joinElements, - joinXorElements, stateElements, taskElements); - - return definition; - } - - protected void parseActionElements( - List actionElements, ActionAware actionAware) { - - if (actionElements.isEmpty()) { - return; - } - - Set actions = new HashSet(actionElements.size()); - - for (Element actionElement : actionElements) { - String name = actionElement.elementText("name"); - String description = actionElement.elementText("description"); - String executionType = actionElement.elementText("execution-type"); - String script = actionElement.elementText("script"); - String scriptLanguage = actionElement.elementText( - "script-language"); - String scriptRequiredContexts = actionElement.elementText( - "script-required-contexts"); - int priority = GetterUtil.getInteger( - actionElement.elementText("priority")); - - Action action = new Action( - name, description, executionType, script, scriptLanguage, - scriptRequiredContexts, priority); - - actions.add(action); - } - - actionAware.setActions(actions); - } - - protected void parseActionsElement(Element actionsElement, Node node) { - if (actionsElement == null) { - return; - } - - List actionElements = actionsElement.elements("action"); - - parseActionElements(actionElements, node); - - List notificationElements = actionsElement.elements( - "notification"); - - parseNotificationElements(notificationElements, node); - } - - protected Set parseAssignments(Element assignmentsElement) { - if (assignmentsElement == null) { - return Collections.emptySet(); - } - - Set assignments = new HashSet(); - - Element resourceActionsElement = assignmentsElement.element( - "resource-actions"); - - if (resourceActionsElement != null) { - List resourceActionElements = - resourceActionsElement.elements("resource-action"); - - for (Element resourceActionElement : resourceActionElements) { - String actionId = resourceActionElement.getText(); - - if (Validator.isNotNull(actionId)) { - ResourceActionAssignment resourceActionAssignment = - new ResourceActionAssignment(actionId); - - assignments.add(resourceActionAssignment); - } - } - } - - Element rolesElement = assignmentsElement.element("roles"); - - if (rolesElement != null) { - List roleAssignmentElements = rolesElement.elements( - "role"); - - for (Element roleAssignmentElement : roleAssignmentElements) { - long roleId = GetterUtil.getLong( - roleAssignmentElement.elementText("role-id")); - String roleType = roleAssignmentElement.elementText( - "role-type"); - String name = roleAssignmentElement.elementText("name"); - - RoleAssignment roleAssignment = null; - - if (Validator.isNotNull(name)) { - roleAssignment = new RoleAssignment(name, roleType); - - boolean autoCreate = GetterUtil.getBoolean( - roleAssignmentElement.elementText("auto-create"), true); - - roleAssignment.setAutoCreate(autoCreate); - } - else { - roleAssignment = new RoleAssignment(roleId); - } - - assignments.add(roleAssignment); - } - } - - List scriptedAssignmentElements = assignmentsElement.elements( - "scripted-assignment"); - - for (Element scriptedAssignmentElement : scriptedAssignmentElements) { - String script = scriptedAssignmentElement.elementText("script"); - String scriptLanguage = scriptedAssignmentElement.elementText( - "script-language"); - String scriptRequiredContexts = - scriptedAssignmentElement.elementText( - "script-required-contexts"); - - ScriptAssignment scriptAssignment = new ScriptAssignment( - script, scriptLanguage, scriptRequiredContexts); - - assignments.add(scriptAssignment); - } - - List userAssignmentElements = assignmentsElement.elements( - "user"); - - for (Element userAssignmentElement : userAssignmentElements) { - long userId = GetterUtil.getLong( - userAssignmentElement.elementText("user-id")); - String screenName = userAssignmentElement.elementText( - "screen-name"); - String emailAddress = userAssignmentElement.elementText( - "email-address"); - - UserAssignment userAssignment = new UserAssignment( - userId, screenName, emailAddress); - - assignments.add(userAssignment); - } - - return assignments; - } - - protected Condition parseCondition(Element conditionElement) { - String name = conditionElement.elementText("name"); - String description = conditionElement.elementText("description"); - String script = conditionElement.elementText("script"); - String scriptLanguage = conditionElement.elementText("script-language"); - String scriptRequiredContexts = conditionElement.elementText( - "script-required-contexts"); - - Condition condition = new Condition( - name, description, script, scriptLanguage, scriptRequiredContexts); - - String metadata = conditionElement.elementText("metadata"); - - condition.setMetadata(metadata); - - Element actionsElement = conditionElement.element("actions"); - - parseActionsElement(actionsElement, condition); - - Element timersElement = conditionElement.element("timers"); - - parseTimerElements(timersElement, condition); - - return condition; - } - - protected DelayDuration parseDelay(Element delayElement) { - if (delayElement == null) { - return null; - } - - double duration = GetterUtil.getDouble( - delayElement.elementText("duration")); - DurationScale durationScale = DurationScale.parse( - delayElement.elementText("scale")); - - return new DelayDuration(duration, durationScale); - } - - protected Fork parseFork(Element forkElement) { - String name = forkElement.elementText("name"); - String description = forkElement.elementText("description"); - - Fork fork = new Fork(name, description); - - String metadata = forkElement.elementText("metadata"); - - fork.setMetadata(metadata); - - Element actionsElement = forkElement.element("actions"); - - parseActionsElement(actionsElement, fork); - - Element timersElement = forkElement.element("timers"); - - parseTimerElements(timersElement, fork); - - return fork; - } - - protected Join parseJoin(Element joinElement) { - String name = joinElement.elementText("name"); - String description = joinElement.elementText("description"); - - Join join = new Join(name, description); - - String metadata = joinElement.elementText("metadata"); - - join.setMetadata(metadata); - - Element actionsElement = joinElement.element("actions"); - - parseActionsElement(actionsElement, join); - - Element timersElement = joinElement.element("timers"); - - parseTimerElements(timersElement, join); - - return join; - } - - protected JoinXor parseJoinXor(Element joinXorElement) { - String name = joinXorElement.elementText("name"); - String description = joinXorElement.elementText("description"); - - JoinXor joinXor = new JoinXor(name, description); - - String metadata = joinXorElement.elementText("metadata"); - - joinXor.setMetadata(metadata); - - Element actionsElement = joinXorElement.element("actions"); - - parseActionsElement(actionsElement, joinXor); - - Element timersElement = joinXorElement.element("timers"); - - parseTimerElements(timersElement, joinXor); - - return joinXor; - } - - protected void parseNotificationElements( - List notificationElements, - NotificationAware notificationAware) { - - if (notificationElements.isEmpty()) { - return; - } - - Set notifications = new HashSet( - notificationElements.size()); - - for (Element notificationElement : notificationElements) { - String name = notificationElement.elementText("name"); - String description = notificationElement.elementText("description"); - String executionType = notificationElement.elementText( - "execution-type"); - String template = notificationElement.elementText("template"); - String templateLanguage = notificationElement.elementText( - "template-language"); - - Notification notification = new Notification( - name, description, executionType, template, templateLanguage); - - List notificationTypeElements = - notificationElement.elements("notification-type"); - - for (Element notificationTypeElement : notificationTypeElements) { - notification.addNotificationType( - notificationTypeElement.getText()); - } - - Element recipientsElement = notificationElement.element( - "recipients"); - - parseRecipients(recipientsElement, notification); - - notifications.add(notification); - } - - notificationAware.setNotifications(notifications); - } - - protected void parseRecipients( - Element recipientsElement, Notification notification) { - - if (recipientsElement == null) { - return; - } - - List addressRecipientElements = recipientsElement.elements( - "address"); - - for (Element addressRecipientElement : addressRecipientElements) { - AddressRecipient addressRecipient = new AddressRecipient( - addressRecipientElement.getText()); - - notification.addRecipients(addressRecipient); - } - - Element assigneesRecipientElement = recipientsElement.element( - "assignees"); - - if (assigneesRecipientElement != null) { - AssigneesRecipient assigneesRecipient = new AssigneesRecipient(); - - notification.addRecipients(assigneesRecipient); - } - - Element rolesElement = recipientsElement.element("roles"); - - if (rolesElement != null) { - List roleReceipientElements = rolesElement.elements( - "role"); - - for (Element roleReceipientElement : roleReceipientElements) { - long roleId = GetterUtil.getLong( - roleReceipientElement.elementText("role-id")); - String roleType = roleReceipientElement.elementText( - "role-type"); - String name = roleReceipientElement.elementText("name"); - - RoleRecipient roleRecipient = null; - - if (roleId > 0) { - roleRecipient = new RoleRecipient(roleId, roleType); - } - else { - roleRecipient = new RoleRecipient(name, roleType); - - boolean autoCreate = GetterUtil.getBoolean( - roleReceipientElement.elementText("auto-create"), true); - - roleRecipient.setAutoCreate(autoCreate); - } - - notification.addRecipients(roleRecipient); - } - } - - List userRecipientElements = recipientsElement.elements( - "user"); - - for (Element userRecipientElement : userRecipientElements) { - long userId = GetterUtil.getLong( - userRecipientElement.elementText("user-id")); - String screenName = userRecipientElement.elementText("screen-name"); - String emailAddress = userRecipientElement.elementText( - "email-address"); - - UserRecipient userRecipient = new UserRecipient( - userId, screenName, emailAddress); - - notification.addRecipients(userRecipient); - } - } - - protected State parseState(Element stateElement) { - String name = stateElement.elementText("name"); - String description = stateElement.elementText("description"); - boolean initial = GetterUtil.getBoolean( - stateElement.elementText("initial"), false); - - State state = new State(name, description, initial); - - String metadata = stateElement.elementText("metadata"); - - state.setMetadata(metadata); - - Element actionsElement = stateElement.element("actions"); - - parseActionsElement(actionsElement, state); - - Element timersElement = stateElement.element("timers"); - - parseTimerElements(timersElement, state); - - return state; - } - - protected Task parseTask(Element taskElement) { - String name = taskElement.elementText("name"); - String description = taskElement.elementText("description"); - - Task task = new Task(name, description); - - String metadata = taskElement.elementText("metadata"); - - task.setMetadata(metadata); - - Element actionsElement = taskElement.element("actions"); - - parseActionsElement(actionsElement, task); - - Element assignmentsElement = taskElement.element("assignments"); - - if (assignmentsElement != null) { - Set assignments = parseAssignments(assignmentsElement); - - task.setAssignments(assignments); - } - - Element timersElement = taskElement.element("task-timers"); - - parseTaskTimerElements(timersElement, task); - - return task; - } - - protected void parseTaskTimerElements( - Element taskTimersElement, Node node) { - - if (taskTimersElement == null) { - return; - } - - List taskTimerElements = taskTimersElement.elements( - "task-timer"); - - if (taskTimerElements.isEmpty()) { - return; - } - - Set timers = new HashSet(taskTimerElements.size()); - - for (Element timerElement : taskTimerElements) { - Timer timer = parseTimerElement(timerElement, true); - - timers.add(timer); - } - - node.setTimers(timers); - } - - protected void parseTimerActions(Element timersElement, Timer timer) { - if (timersElement == null) { - return; - } - - List timerActionElements = timersElement.elements( - "timer-action"); - - parseActionElements(timerActionElements, timer); - - List timerNotificationElements = timersElement.elements( - "timer-notification"); - - parseNotificationElements(timerNotificationElements, timer); - - Element reassignmentsElement = timersElement.element("reassignments"); - - if (reassignmentsElement != null) { - Set assignments = parseAssignments( - reassignmentsElement); - - timer.setReassignments(assignments); - } - } - - protected Timer parseTimerElement( - Element timerElement, boolean isTaskTimer) { - - String name = timerElement.elementText("name"); - String description = timerElement.elementText("description"); - boolean blocking = GetterUtil.getBoolean( - timerElement.elementText("blocking"), !isTaskTimer); - - Timer timer = new Timer(name, description, blocking); - - Element delayElement = timerElement.element("delay"); - - DelayDuration delayDuration = parseDelay(delayElement); - - timer.setDelayDuration(delayDuration); - - if (!blocking) { - Element recurrenceElement = timerElement.element("recurrence"); - - DelayDuration recurrence = parseDelay(recurrenceElement); - - timer.setRecurrence(recurrence); - } - - Element timerActions = timerElement.element("timer-actions"); - - parseTimerActions(timerActions, timer); - - return timer; - } - - protected void parseTimerElements(Element timersElement, Node node) { - if (timersElement == null) { - return; - } - - List timerElements = timersElement.elements("timer"); - - if (timerElements.isEmpty()) { - return; - } - - Set timers = new HashSet(timerElements.size()); - - for (Element timerElement : timerElements) { - Timer timer = parseTimerElement(timerElement, false); - - timers.add(timer); - } - - node.setTimers(timers); - } - - protected void parseTransition(Definition definition, Element nodeElement) { - String sourceName = nodeElement.elementText("name"); - - Node sourceNode = definition.getNode(sourceName); - - Element transitionsElement = nodeElement.element("transitions"); - - if (transitionsElement == null) { - return; - } - - List transitionElements = transitionsElement.elements( - "transition"); - - for (Element transitionElement : transitionElements) { - String transitionName = transitionElement.elementText("name"); - - String targetName = transitionElement.elementText("target"); - - Node targetNode = definition.getNode(targetName); - - boolean defaultValue = GetterUtil.getBoolean( - transitionElement.elementText("default"), true); - - Transition transition = new Transition( - transitionName, sourceNode, targetNode, defaultValue); - - Element timerElement = transitionElement.element("timer"); - - if (timerElement != null) { - Timer timer = parseTimerElement(timerElement, false); - - transition.setTimers(timer); - } - - sourceNode.addOutgoingTransition(transition); - - if (Validator.isNotNull(targetNode)) { - targetNode.addIncomingTransition(transition); - } - } - } - - protected void parseTransitions( - Definition definition, List conditionElements, - List forkElements, List joinElements, - List joinXorElements, List stateElements, - List taskElements) { - - for (Element conditionElement : conditionElements) { - parseTransition(definition, conditionElement); - } - - for (Element forkElement : forkElements) { - parseTransition(definition, forkElement); - } - - for (Element joinElement : joinElements) { - parseTransition(definition, joinElement); - } - - for (Element joinXorElement : joinXorElements) { - parseTransition(definition, joinXorElement); - } - - for (Element stateElement : stateElements) { - parseTransition(definition, stateElement); - } - - for (Element taskElement : taskElements) { - parseTransition(definition, taskElement); - } - } - - private boolean _validate; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.parser; + +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.xml.Document; +import com.liferay.portal.kernel.xml.Element; +import com.liferay.portal.kernel.xml.SAXReaderUtil; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.definition.ActionAware; +import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; +import com.liferay.portal.workflow.kaleo.definition.AssigneesRecipient; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.DurationScale; +import com.liferay.portal.workflow.kaleo.definition.Fork; +import com.liferay.portal.workflow.kaleo.definition.Join; +import com.liferay.portal.workflow.kaleo.definition.JoinXor; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.NotificationAware; +import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; +import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; +import com.liferay.portal.workflow.kaleo.definition.State; +import com.liferay.portal.workflow.kaleo.definition.Task; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.definition.Transition; +import com.liferay.portal.workflow.kaleo.definition.UserAssignment; +import com.liferay.portal.workflow.kaleo.definition.UserRecipient; + +import java.io.InputStream; + +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + * @author Eduardo Lundgren + */ +public class XMLWorkflowModelParser implements WorkflowModelParser { + + + public Definition parse(InputStream inputStream) throws WorkflowException { + try { + return doParse(inputStream); + } + catch (Exception e) { + throw new WorkflowException("Unable to parse definition", e); + } + } + + public void setValidate(boolean validate) { + _validate = validate; + } + + protected Definition doParse(InputStream inputStream) throws Exception { + Document document = SAXReaderUtil.read(inputStream, _validate); + + Element rootElement = document.getRootElement(); + + String name = rootElement.elementText("name"); + String description = rootElement.elementText("description"); + int version = GetterUtil.getInteger(rootElement.elementText("version")); + + Definition definition = new Definition( + name, description, document.formattedString(), version); + + List conditionElements = rootElement.elements("condition"); + + for (Element conditionElement : conditionElements) { + Condition condition = parseCondition(conditionElement); + + definition.addNode(condition); + } + + List forkElements = rootElement.elements("fork"); + + for (Element forkElement : forkElements) { + Fork fork = parseFork(forkElement); + + definition.addNode(fork); + } + + List joinElements = rootElement.elements("join"); + + for (Element joinElement : joinElements) { + Join join = parseJoin(joinElement); + + definition.addNode(join); + } + + List joinXorElements = rootElement.elements("join-xor"); + + for (Element joinXorElement : joinXorElements) { + JoinXor joinXor = parseJoinXor(joinXorElement); + + definition.addNode(joinXor); + } + + List stateElements = rootElement.elements("state"); + + for (Element stateElement : stateElements) { + State state = parseState(stateElement); + + definition.addNode(state); + } + + List taskElements = rootElement.elements("task"); + + for (Element taskElement : taskElements) { + Task task = parseTask(taskElement); + + definition.addNode(task); + } + + parseTransitions( + definition, conditionElements, forkElements, joinElements, + joinXorElements, stateElements, taskElements); + + return definition; + } + + protected void parseActionElements( + List actionElements, ActionAware actionAware) { + + if (actionElements.isEmpty()) { + return; + } + + Set actions = new HashSet(actionElements.size()); + + for (Element actionElement : actionElements) { + String name = actionElement.elementText("name"); + String description = actionElement.elementText("description"); + String executionType = actionElement.elementText("execution-type"); + String script = actionElement.elementText("script"); + String scriptLanguage = actionElement.elementText( + "script-language"); + String scriptRequiredContexts = actionElement.elementText( + "script-required-contexts"); + int priority = GetterUtil.getInteger( + actionElement.elementText("priority")); + + Action action = new Action( + name, description, executionType, script, scriptLanguage, + scriptRequiredContexts, priority); + + actions.add(action); + } + + actionAware.setActions(actions); + } + + protected void parseActionsElement(Element actionsElement, Node node) { + if (actionsElement == null) { + return; + } + + List actionElements = actionsElement.elements("action"); + + parseActionElements(actionElements, node); + + List notificationElements = actionsElement.elements( + "notification"); + + parseNotificationElements(notificationElements, node); + } + + protected Set parseAssignments(Element assignmentsElement) { + if (assignmentsElement == null) { + return Collections.emptySet(); + } + + Set assignments = new HashSet(); + + Element resourceActionsElement = assignmentsElement.element( + "resource-actions"); + + if (resourceActionsElement != null) { + List resourceActionElements = + resourceActionsElement.elements("resource-action"); + + for (Element resourceActionElement : resourceActionElements) { + String actionId = resourceActionElement.getText(); + + if (Validator.isNotNull(actionId)) { + ResourceActionAssignment resourceActionAssignment = + new ResourceActionAssignment(actionId); + + assignments.add(resourceActionAssignment); + } + } + } + + Element rolesElement = assignmentsElement.element("roles"); + + if (rolesElement != null) { + List roleAssignmentElements = rolesElement.elements( + "role"); + + for (Element roleAssignmentElement : roleAssignmentElements) { + long roleId = GetterUtil.getLong( + roleAssignmentElement.elementText("role-id")); + String roleType = roleAssignmentElement.elementText( + "role-type"); + String name = roleAssignmentElement.elementText("name"); + + RoleAssignment roleAssignment = null; + + if (Validator.isNotNull(name)) { + roleAssignment = new RoleAssignment(name, roleType); + + boolean autoCreate = GetterUtil.getBoolean( + roleAssignmentElement.elementText("auto-create"), true); + + roleAssignment.setAutoCreate(autoCreate); + } + else { + roleAssignment = new RoleAssignment(roleId); + } + + assignments.add(roleAssignment); + } + } + + List scriptedAssignmentElements = assignmentsElement.elements( + "scripted-assignment"); + + for (Element scriptedAssignmentElement : scriptedAssignmentElements) { + String script = scriptedAssignmentElement.elementText("script"); + String scriptLanguage = scriptedAssignmentElement.elementText( + "script-language"); + String scriptRequiredContexts = + scriptedAssignmentElement.elementText( + "script-required-contexts"); + + ScriptAssignment scriptAssignment = new ScriptAssignment( + script, scriptLanguage, scriptRequiredContexts); + + assignments.add(scriptAssignment); + } + + List userAssignmentElements = assignmentsElement.elements( + "user"); + + for (Element userAssignmentElement : userAssignmentElements) { + long userId = GetterUtil.getLong( + userAssignmentElement.elementText("user-id")); + String screenName = userAssignmentElement.elementText( + "screen-name"); + String emailAddress = userAssignmentElement.elementText( + "email-address"); + + UserAssignment userAssignment = new UserAssignment( + userId, screenName, emailAddress); + + assignments.add(userAssignment); + } + + return assignments; + } + + protected Condition parseCondition(Element conditionElement) { + String name = conditionElement.elementText("name"); + String description = conditionElement.elementText("description"); + String script = conditionElement.elementText("script"); + String scriptLanguage = conditionElement.elementText("script-language"); + String scriptRequiredContexts = conditionElement.elementText( + "script-required-contexts"); + + Condition condition = new Condition( + name, description, script, scriptLanguage, scriptRequiredContexts); + + String metadata = conditionElement.elementText("metadata"); + + condition.setMetadata(metadata); + + Element actionsElement = conditionElement.element("actions"); + + parseActionsElement(actionsElement, condition); + + Element timersElement = conditionElement.element("timers"); + + parseTimerElements(timersElement, condition); + + return condition; + } + + protected DelayDuration parseDelay(Element delayElement) { + if (delayElement == null) { + return null; + } + + double duration = GetterUtil.getDouble( + delayElement.elementText("duration")); + DurationScale durationScale = DurationScale.parse( + delayElement.elementText("scale")); + + return new DelayDuration(duration, durationScale); + } + + protected Fork parseFork(Element forkElement) { + String name = forkElement.elementText("name"); + String description = forkElement.elementText("description"); + + Fork fork = new Fork(name, description); + + String metadata = forkElement.elementText("metadata"); + + fork.setMetadata(metadata); + + Element actionsElement = forkElement.element("actions"); + + parseActionsElement(actionsElement, fork); + + Element timersElement = forkElement.element("timers"); + + parseTimerElements(timersElement, fork); + + return fork; + } + + protected Join parseJoin(Element joinElement) { + String name = joinElement.elementText("name"); + String description = joinElement.elementText("description"); + + Join join = new Join(name, description); + + String metadata = joinElement.elementText("metadata"); + + join.setMetadata(metadata); + + Element actionsElement = joinElement.element("actions"); + + parseActionsElement(actionsElement, join); + + Element timersElement = joinElement.element("timers"); + + parseTimerElements(timersElement, join); + + return join; + } + + protected JoinXor parseJoinXor(Element joinXorElement) { + String name = joinXorElement.elementText("name"); + String description = joinXorElement.elementText("description"); + + JoinXor joinXor = new JoinXor(name, description); + + String metadata = joinXorElement.elementText("metadata"); + + joinXor.setMetadata(metadata); + + Element actionsElement = joinXorElement.element("actions"); + + parseActionsElement(actionsElement, joinXor); + + Element timersElement = joinXorElement.element("timers"); + + parseTimerElements(timersElement, joinXor); + + return joinXor; + } + + protected void parseNotificationElements( + List notificationElements, + NotificationAware notificationAware) { + + if (notificationElements.isEmpty()) { + return; + } + + Set notifications = new HashSet( + notificationElements.size()); + + for (Element notificationElement : notificationElements) { + String name = notificationElement.elementText("name"); + String description = notificationElement.elementText("description"); + String executionType = notificationElement.elementText( + "execution-type"); + String template = notificationElement.elementText("template"); + String templateLanguage = notificationElement.elementText( + "template-language"); + + Notification notification = new Notification( + name, description, executionType, template, templateLanguage); + + List notificationTypeElements = + notificationElement.elements("notification-type"); + + for (Element notificationTypeElement : notificationTypeElements) { + notification.addNotificationType( + notificationTypeElement.getText()); + } + + Element recipientsElement = notificationElement.element( + "recipients"); + + parseRecipients(recipientsElement, notification); + + notifications.add(notification); + } + + notificationAware.setNotifications(notifications); + } + + protected void parseRecipients( + Element recipientsElement, Notification notification) { + + if (recipientsElement == null) { + return; + } + + List addressRecipientElements = recipientsElement.elements( + "address"); + + for (Element addressRecipientElement : addressRecipientElements) { + AddressRecipient addressRecipient = new AddressRecipient( + addressRecipientElement.getText()); + + notification.addRecipients(addressRecipient); + } + + Element assigneesRecipientElement = recipientsElement.element( + "assignees"); + + if (assigneesRecipientElement != null) { + AssigneesRecipient assigneesRecipient = new AssigneesRecipient(); + + notification.addRecipients(assigneesRecipient); + } + + Element rolesElement = recipientsElement.element("roles"); + + if (rolesElement != null) { + List roleReceipientElements = rolesElement.elements( + "role"); + + for (Element roleReceipientElement : roleReceipientElements) { + long roleId = GetterUtil.getLong( + roleReceipientElement.elementText("role-id")); + String roleType = roleReceipientElement.elementText( + "role-type"); + String name = roleReceipientElement.elementText("name"); + + RoleRecipient roleRecipient = null; + + if (roleId > 0) { + roleRecipient = new RoleRecipient(roleId, roleType); + } + else { + roleRecipient = new RoleRecipient(name, roleType); + + boolean autoCreate = GetterUtil.getBoolean( + roleReceipientElement.elementText("auto-create"), true); + + roleRecipient.setAutoCreate(autoCreate); + } + + notification.addRecipients(roleRecipient); + } + } + + List userRecipientElements = recipientsElement.elements( + "user"); + + for (Element userRecipientElement : userRecipientElements) { + long userId = GetterUtil.getLong( + userRecipientElement.elementText("user-id")); + String screenName = userRecipientElement.elementText("screen-name"); + String emailAddress = userRecipientElement.elementText( + "email-address"); + + UserRecipient userRecipient = new UserRecipient( + userId, screenName, emailAddress); + + notification.addRecipients(userRecipient); + } + } + + protected State parseState(Element stateElement) { + String name = stateElement.elementText("name"); + String description = stateElement.elementText("description"); + boolean initial = GetterUtil.getBoolean( + stateElement.elementText("initial"), false); + + State state = new State(name, description, initial); + + String metadata = stateElement.elementText("metadata"); + + state.setMetadata(metadata); + + Element actionsElement = stateElement.element("actions"); + + parseActionsElement(actionsElement, state); + + Element timersElement = stateElement.element("timers"); + + parseTimerElements(timersElement, state); + + return state; + } + + protected Task parseTask(Element taskElement) { + String name = taskElement.elementText("name"); + String description = taskElement.elementText("description"); + + Task task = new Task(name, description); + + String metadata = taskElement.elementText("metadata"); + + task.setMetadata(metadata); + + Element actionsElement = taskElement.element("actions"); + + parseActionsElement(actionsElement, task); + + Element assignmentsElement = taskElement.element("assignments"); + + if (assignmentsElement != null) { + Set assignments = parseAssignments(assignmentsElement); + + task.setAssignments(assignments); + } + + Element timersElement = taskElement.element("task-timers"); + + parseTaskTimerElements(timersElement, task); + + return task; + } + + protected void parseTaskTimerElements( + Element taskTimersElement, Node node) { + + if (taskTimersElement == null) { + return; + } + + List taskTimerElements = taskTimersElement.elements( + "task-timer"); + + if (taskTimerElements.isEmpty()) { + return; + } + + Set timers = new HashSet(taskTimerElements.size()); + + for (Element timerElement : taskTimerElements) { + Timer timer = parseTimerElement(timerElement, true); + + timers.add(timer); + } + + node.setTimers(timers); + } + + protected void parseTimerActions(Element timersElement, Timer timer) { + if (timersElement == null) { + return; + } + + List timerActionElements = timersElement.elements( + "timer-action"); + + parseActionElements(timerActionElements, timer); + + List timerNotificationElements = timersElement.elements( + "timer-notification"); + + parseNotificationElements(timerNotificationElements, timer); + + Element reassignmentsElement = timersElement.element("reassignments"); + + if (reassignmentsElement != null) { + Set assignments = parseAssignments( + reassignmentsElement); + + timer.setReassignments(assignments); + } + } + + protected Timer parseTimerElement( + Element timerElement, boolean isTaskTimer) { + + String name = timerElement.elementText("name"); + String description = timerElement.elementText("description"); + boolean blocking = GetterUtil.getBoolean( + timerElement.elementText("blocking"), !isTaskTimer); + + Timer timer = new Timer(name, description, blocking); + + Element delayElement = timerElement.element("delay"); + + DelayDuration delayDuration = parseDelay(delayElement); + + timer.setDelayDuration(delayDuration); + + if (!blocking) { + Element recurrenceElement = timerElement.element("recurrence"); + + DelayDuration recurrence = parseDelay(recurrenceElement); + + timer.setRecurrence(recurrence); + } + + Element timerActions = timerElement.element("timer-actions"); + + parseTimerActions(timerActions, timer); + + return timer; + } + + protected void parseTimerElements(Element timersElement, Node node) { + if (timersElement == null) { + return; + } + + List timerElements = timersElement.elements("timer"); + + if (timerElements.isEmpty()) { + return; + } + + Set timers = new HashSet(timerElements.size()); + + for (Element timerElement : timerElements) { + Timer timer = parseTimerElement(timerElement, false); + + timers.add(timer); + } + + node.setTimers(timers); + } + + protected void parseTransition(Definition definition, Element nodeElement) { + String sourceName = nodeElement.elementText("name"); + + Node sourceNode = definition.getNode(sourceName); + + Element transitionsElement = nodeElement.element("transitions"); + + if (transitionsElement == null) { + return; + } + + List transitionElements = transitionsElement.elements( + "transition"); + + for (Element transitionElement : transitionElements) { + String transitionName = transitionElement.elementText("name"); + + String targetName = transitionElement.elementText("target"); + + Node targetNode = definition.getNode(targetName); + + boolean defaultValue = GetterUtil.getBoolean( + transitionElement.elementText("default"), true); + + Transition transition = new Transition( + transitionName, sourceNode, targetNode, defaultValue); + + Element timerElement = transitionElement.element("timer"); + + if (timerElement != null) { + Timer timer = parseTimerElement(timerElement, false); + + transition.setTimers(timer); + } + + sourceNode.addOutgoingTransition(transition); + + if (Validator.isNotNull(targetNode)) { + targetNode.addIncomingTransition(transition); + } + } + } + + protected void parseTransitions( + Definition definition, List conditionElements, + List forkElements, List joinElements, + List joinXorElements, List stateElements, + List taskElements) { + + for (Element conditionElement : conditionElements) { + parseTransition(definition, conditionElement); + } + + for (Element forkElement : forkElements) { + parseTransition(definition, forkElement); + } + + for (Element joinElement : joinElements) { + parseTransition(definition, joinElement); + } + + for (Element joinXorElement : joinXorElements) { + parseTransition(definition, joinXorElement); + } + + for (Element stateElement : stateElements) { + parseTransition(definition, stateElement); + } + + for (Element taskElement : taskElements) { + parseTransition(definition, taskElement); + } + } + + private boolean _validate; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultKaleoSignaler.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultKaleoSignaler.java index 908d84b5..734e2a4b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultKaleoSignaler.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultKaleoSignaler.java @@ -1,115 +1,115 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.messaging.MessageBusUtil; -import com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender; -import com.liferay.portal.kernel.messaging.sender.SingleDestinationMessageSender; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; -import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Michael C. Han - */ -@Transactional( - isolation = Isolation.PORTAL, propagation = Propagation.SUPPORTS, - rollbackFor = {Exception.class}) -public class DefaultKaleoSignaler - extends BaseKaleoBean implements KaleoSignaler { - - public void setDestinationName(String destinationName) { - DefaultSingleDestinationMessageSender singleDestinationMessageSender = - new DefaultSingleDestinationMessageSender(); - - singleDestinationMessageSender.setDestinationName(destinationName); - singleDestinationMessageSender.setMessageSender( - MessageBusUtil.getMessageSender()); - - _singleDestinationMessageSender = singleDestinationMessageSender; - } - - - public void signalEntry( - String transitionName, ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - executionContext.setTransitionName(transitionName); - - PathElement startPathElement = new PathElement( - null, kaleoInstanceToken.getCurrentKaleoNode(), executionContext); - - _singleDestinationMessageSender.send(startPathElement); - } - - - @Transactional( - isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, - rollbackFor = {Exception.class}) - public void signalExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( - currentKaleoNode.getType()); - - List remainingPathElements = new ArrayList(); - - nodeExecutor.execute( - currentKaleoNode, executionContext, remainingPathElements); - - ExecutionUtil.checkKaleoInstanceComplete(executionContext); - - for (PathElement remainingPathElement : remainingPathElements) { - _singleDestinationMessageSender.send(remainingPathElement); - } - } - - - public void signalExit( - String transitionName, ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - executionContext.setTransitionName(transitionName); - - KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - PathElement pathElement = new PathElement( - currentKaleoNode, null, executionContext); - - _singleDestinationMessageSender.send(pathElement); - } - - private SingleDestinationMessageSender _singleDestinationMessageSender; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.messaging.MessageBusUtil; +import com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender; +import com.liferay.portal.kernel.messaging.sender.SingleDestinationMessageSender; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; +import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Michael C. Han + */ +@Transactional( + isolation = Isolation.PORTAL, propagation = Propagation.SUPPORTS, + rollbackFor = {Exception.class}) +public class DefaultKaleoSignaler + extends BaseKaleoBean implements KaleoSignaler { + + public void setDestinationName(String destinationName) { + DefaultSingleDestinationMessageSender singleDestinationMessageSender = + new DefaultSingleDestinationMessageSender(); + + singleDestinationMessageSender.setDestinationName(destinationName); + singleDestinationMessageSender.setMessageSender( + MessageBusUtil.getMessageSender()); + + _singleDestinationMessageSender = singleDestinationMessageSender; + } + + + public void signalEntry( + String transitionName, ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + executionContext.setTransitionName(transitionName); + + PathElement startPathElement = new PathElement( + null, kaleoInstanceToken.getCurrentKaleoNode(), executionContext); + + _singleDestinationMessageSender.send(startPathElement); + } + + + @Transactional( + isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, + rollbackFor = {Exception.class}) + public void signalExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( + currentKaleoNode.getType()); + + List remainingPathElements = new ArrayList(); + + nodeExecutor.execute( + currentKaleoNode, executionContext, remainingPathElements); + + ExecutionUtil.checkKaleoInstanceComplete(executionContext); + + for (PathElement remainingPathElement : remainingPathElements) { + _singleDestinationMessageSender.send(remainingPathElement); + } + } + + + public void signalExit( + String transitionName, ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + executionContext.setTransitionName(transitionName); + + KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + PathElement pathElement = new PathElement( + currentKaleoNode, null, executionContext); + + _singleDestinationMessageSender.send(pathElement); + } + + private SingleDestinationMessageSender _singleDestinationMessageSender; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultTaskManagerImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultTaskManagerImpl.java index 1d6221fd..811fc988 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultTaskManagerImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultTaskManagerImpl.java @@ -1,279 +1,279 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; -import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; - -import java.io.Serializable; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -@Transactional( - isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, - rollbackFor = {Exception.class}) -public class DefaultTaskManagerImpl - extends BaseKaleoBean implements TaskManager { - - - public WorkflowTask assignWorkflowTaskToRole( - long workflowTaskInstanceId, long roleId, String comment, - Date dueDate, Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException { - - try { - return assignWorkflowTask( - workflowTaskInstanceId, Role.class.getName(), roleId, comment, - dueDate, workflowContext, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowTask assignWorkflowTaskToUser( - long workflowTaskInstanceId, long assigneeUserId, String comment, - Date dueDate, Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException { - - try { - return assignWorkflowTask( - workflowTaskInstanceId, User.class.getName(), assigneeUserId, - comment, dueDate, workflowContext, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowTask completeWorkflowTask( - long workflowTaskInstanceId, String transitionName, String comment, - Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException { - - try { - return doCompleteWorkflowTask( - workflowTaskInstanceId, transitionName, comment, - workflowContext, serviceContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowTask updateDueDate( - long workflowTaskInstanceId, String comment, Date dueDate, - ServiceContext serviceContext) - throws WorkflowException { - - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( - workflowTaskInstanceId); - - if (kaleoTaskInstanceToken.isCompleted()) { - throw new WorkflowException( - "Cannot update due date for completed task " + - workflowTaskInstanceId); - } - - if (dueDate != null) { - kaleoTaskInstanceTokenLocalService.updateDueDate( - workflowTaskInstanceId, dueDate, serviceContext); - } - - Map workflowContext = - WorkflowContextUtil.convert( - kaleoTaskInstanceToken.getWorkflowContext()); - - kaleoLogLocalService.addTaskUpdateKaleoLog( - kaleoTaskInstanceToken, comment, workflowContext, - serviceContext); - - return WorkflowModelUtil.toWorkflowTask( - kaleoTaskInstanceToken, workflowContext); - } - catch (Exception e) { - throw new WorkflowException(e); - } - } - - protected WorkflowTask assignWorkflowTask( - long workflowTaskInstanceId, String assigneeClassName, - long assigneeClassPK, String comment, Date dueDate, - Map workflowContext, - ServiceContext serviceContext) - throws Exception { - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( - workflowTaskInstanceId); - - List previousTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - workflowContext = updateWorkflowContext( - workflowContext, kaleoTaskInstanceToken); - - if (kaleoTaskInstanceToken.isCompleted()) { - throw new WorkflowException( - "Cannot reassign a completed task " + workflowTaskInstanceId); - } - - if (dueDate != null) { - kaleoTaskInstanceTokenLocalService.updateDueDate( - workflowTaskInstanceId, dueDate, serviceContext); - } - - kaleoTaskInstanceToken = - kaleoTaskInstanceTokenLocalService.assignKaleoTaskInstanceToken( - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(), - assigneeClassName, assigneeClassPK, workflowContext, - serviceContext); - - workflowContext.put(WorkflowConstants.CONTEXT_TASK_COMMENTS, comment); - - ExecutionContext executionContext = new ExecutionContext( - kaleoTaskInstanceToken.getKaleoInstanceToken(), - kaleoTaskInstanceToken, workflowContext, serviceContext); - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - ActionExecutorUtil.executeKaleoActions( - KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), - ExecutionType.ON_ASSIGNMENT, executionContext); - - NotificationUtil.sendKaleoNotifications( - KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), - ExecutionType.ON_ASSIGNMENT, executionContext); - - kaleoLogLocalService.addTaskAssignmentKaleoLog( - previousTaskAssignmentInstances, kaleoTaskInstanceToken, comment, - workflowContext, serviceContext); - - return WorkflowModelUtil.toWorkflowTask( - kaleoTaskInstanceToken, workflowContext); - } - - protected WorkflowTask doCompleteWorkflowTask( - long workflowTaskInstanceId, String transitionName, String comment, - Map workflowContext, - ServiceContext serviceContext) - throws Exception { - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( - workflowTaskInstanceId); - - if (Validator.isNotNull(transitionName)) { - - // Validate that the transition actually exists before moving - // forward - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - KaleoNode currentKaleoNode = kaleoTask.getKaleoNode(); - - currentKaleoNode.getKaleoTransition(transitionName); - } - - workflowContext = updateWorkflowContext( - workflowContext, kaleoTaskInstanceToken); - - if (kaleoTaskInstanceToken.isCompleted()) { - throw new WorkflowException( - "Cannot complete an already completed task " + - workflowTaskInstanceId + " for user " + - serviceContext.getUserId()); - } - - serviceContext.setScopeGroupId(kaleoTaskInstanceToken.getGroupId()); - - kaleoTaskInstanceToken = - kaleoTaskInstanceTokenLocalService.completeKaleoTaskInstanceToken( - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(), - serviceContext); - - kaleoLogLocalService.addTaskCompletionKaleoLog( - kaleoTaskInstanceToken, comment, workflowContext, serviceContext); - - return WorkflowModelUtil.toWorkflowTask( - kaleoTaskInstanceToken, workflowContext); - } - - protected Map updateWorkflowContext( - Map workflowContext, - KaleoTaskInstanceToken kaleoTaskInstanceToken) - throws PortalException, SystemException { - - KaleoInstance kaleoInstance = - kaleoInstanceLocalService.getKaleoInstance( - kaleoTaskInstanceToken.getKaleoInstanceId()); - - if (workflowContext == null) { - workflowContext = WorkflowContextUtil.convert( - kaleoInstance.getWorkflowContext()); - } - else { - Map storedWorkflowContext = - WorkflowContextUtil.convert(kaleoInstance.getWorkflowContext()); - - for (Map.Entry entry : - storedWorkflowContext.entrySet()) { - - String key = entry.getKey(); - - if (!workflowContext.containsKey(key)) { - workflowContext.put(key, entry.getValue()); - } - } - } - - return workflowContext; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; +import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; + +import java.io.Serializable; + +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +@Transactional( + isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, + rollbackFor = {Exception.class}) +public class DefaultTaskManagerImpl + extends BaseKaleoBean implements TaskManager { + + + public WorkflowTask assignWorkflowTaskToRole( + long workflowTaskInstanceId, long roleId, String comment, + Date dueDate, Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException { + + try { + return assignWorkflowTask( + workflowTaskInstanceId, Role.class.getName(), roleId, comment, + dueDate, workflowContext, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowTask assignWorkflowTaskToUser( + long workflowTaskInstanceId, long assigneeUserId, String comment, + Date dueDate, Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException { + + try { + return assignWorkflowTask( + workflowTaskInstanceId, User.class.getName(), assigneeUserId, + comment, dueDate, workflowContext, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowTask completeWorkflowTask( + long workflowTaskInstanceId, String transitionName, String comment, + Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException { + + try { + return doCompleteWorkflowTask( + workflowTaskInstanceId, transitionName, comment, + workflowContext, serviceContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowTask updateDueDate( + long workflowTaskInstanceId, String comment, Date dueDate, + ServiceContext serviceContext) + throws WorkflowException { + + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( + workflowTaskInstanceId); + + if (kaleoTaskInstanceToken.isCompleted()) { + throw new WorkflowException( + "Cannot update due date for completed task " + + workflowTaskInstanceId); + } + + if (dueDate != null) { + kaleoTaskInstanceTokenLocalService.updateDueDate( + workflowTaskInstanceId, dueDate, serviceContext); + } + + Map workflowContext = + WorkflowContextUtil.convert( + kaleoTaskInstanceToken.getWorkflowContext()); + + kaleoLogLocalService.addTaskUpdateKaleoLog( + kaleoTaskInstanceToken, comment, workflowContext, + serviceContext); + + return WorkflowModelUtil.toWorkflowTask( + kaleoTaskInstanceToken, workflowContext); + } + catch (Exception e) { + throw new WorkflowException(e); + } + } + + protected WorkflowTask assignWorkflowTask( + long workflowTaskInstanceId, String assigneeClassName, + long assigneeClassPK, String comment, Date dueDate, + Map workflowContext, + ServiceContext serviceContext) + throws Exception { + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( + workflowTaskInstanceId); + + List previousTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + workflowContext = updateWorkflowContext( + workflowContext, kaleoTaskInstanceToken); + + if (kaleoTaskInstanceToken.isCompleted()) { + throw new WorkflowException( + "Cannot reassign a completed task " + workflowTaskInstanceId); + } + + if (dueDate != null) { + kaleoTaskInstanceTokenLocalService.updateDueDate( + workflowTaskInstanceId, dueDate, serviceContext); + } + + kaleoTaskInstanceToken = + kaleoTaskInstanceTokenLocalService.assignKaleoTaskInstanceToken( + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(), + assigneeClassName, assigneeClassPK, workflowContext, + serviceContext); + + workflowContext.put(WorkflowConstants.CONTEXT_TASK_COMMENTS, comment); + + ExecutionContext executionContext = new ExecutionContext( + kaleoTaskInstanceToken.getKaleoInstanceToken(), + kaleoTaskInstanceToken, workflowContext, serviceContext); + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + ActionExecutorUtil.executeKaleoActions( + KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), + ExecutionType.ON_ASSIGNMENT, executionContext); + + NotificationUtil.sendKaleoNotifications( + KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), + ExecutionType.ON_ASSIGNMENT, executionContext); + + kaleoLogLocalService.addTaskAssignmentKaleoLog( + previousTaskAssignmentInstances, kaleoTaskInstanceToken, comment, + workflowContext, serviceContext); + + return WorkflowModelUtil.toWorkflowTask( + kaleoTaskInstanceToken, workflowContext); + } + + protected WorkflowTask doCompleteWorkflowTask( + long workflowTaskInstanceId, String transitionName, String comment, + Map workflowContext, + ServiceContext serviceContext) + throws Exception { + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenLocalService.getKaleoTaskInstanceToken( + workflowTaskInstanceId); + + if (Validator.isNotNull(transitionName)) { + + // Validate that the transition actually exists before moving + // forward + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + KaleoNode currentKaleoNode = kaleoTask.getKaleoNode(); + + currentKaleoNode.getKaleoTransition(transitionName); + } + + workflowContext = updateWorkflowContext( + workflowContext, kaleoTaskInstanceToken); + + if (kaleoTaskInstanceToken.isCompleted()) { + throw new WorkflowException( + "Cannot complete an already completed task " + + workflowTaskInstanceId + " for user " + + serviceContext.getUserId()); + } + + serviceContext.setScopeGroupId(kaleoTaskInstanceToken.getGroupId()); + + kaleoTaskInstanceToken = + kaleoTaskInstanceTokenLocalService.completeKaleoTaskInstanceToken( + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(), + serviceContext); + + kaleoLogLocalService.addTaskCompletionKaleoLog( + kaleoTaskInstanceToken, comment, workflowContext, serviceContext); + + return WorkflowModelUtil.toWorkflowTask( + kaleoTaskInstanceToken, workflowContext); + } + + protected Map updateWorkflowContext( + Map workflowContext, + KaleoTaskInstanceToken kaleoTaskInstanceToken) + throws PortalException, SystemException { + + KaleoInstance kaleoInstance = + kaleoInstanceLocalService.getKaleoInstance( + kaleoTaskInstanceToken.getKaleoInstanceId()); + + if (workflowContext == null) { + workflowContext = WorkflowContextUtil.convert( + kaleoInstance.getWorkflowContext()); + } + else { + Map storedWorkflowContext = + WorkflowContextUtil.convert(kaleoInstance.getWorkflowContext()); + + for (Map.Entry entry : + storedWorkflowContext.entrySet()) { + + String key = entry.getKey(); + + if (!workflowContext.containsKey(key)) { + workflowContext.put(key, entry.getValue()); + } + } + } + + return workflowContext; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultWorkflowEngineImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultWorkflowEngineImpl.java index dfa1cea6..f10e13cf 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultWorkflowEngineImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/DefaultWorkflowEngineImpl.java @@ -1,470 +1,470 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import java.io.InputStream; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.concurrent.Callable; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.TransactionCommitCallbackRegistryUtil; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowInstance; -import com.liferay.portal.model.Group; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.deployment.WorkflowDeployer; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.parser.WorkflowModelParser; -import com.liferay.portal.workflow.kaleo.parser.WorkflowValidator; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; -import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; - -/** - * @author Michael C. Han - */ -@Transactional(isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) -public class DefaultWorkflowEngineImpl extends BaseKaleoBean implements WorkflowEngine { - - - public void deleteWorkflowDefinition(String name, int version, ServiceContext serviceContext) - throws WorkflowException { - - try { - kaleoDefinitionLocalService.deleteKaleoDefinition(name, version, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public void deleteWorkflowInstance(long workflowInstanceId, ServiceContext serviceContext) throws WorkflowException { - - try { - kaleoInstanceLocalService.deleteKaleoInstance(workflowInstanceId); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowDefinition deployWorkflowDefinition(String title, InputStream inputStream, - ServiceContext serviceContext) throws WorkflowException { - - try { - Definition definition = _workflowModelParser.parse(inputStream); - - if (_workflowValidator != null) { - _workflowValidator.validate(definition); - } - - WorkflowDefinition workflowDefinition = _workflowDeployer.deploy(title, definition, serviceContext); - - return workflowDefinition; - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public ExecutionContext executeTimerWorkflowInstance(long kaleoTimerInstanceTokenId, ServiceContext serviceContext, - Map workflowContext) throws WorkflowException { - - try { - KaleoTimerInstanceToken kaleoTimerInstanceToken = - kaleoTimerInstanceTokenLocalService.getKaleoTimerInstanceToken(kaleoTimerInstanceTokenId); - - KaleoInstanceToken kaleoInstanceToken = kaleoTimerInstanceToken.getKaleoInstanceToken(); - - final ExecutionContext executionContext = - new ExecutionContext(kaleoInstanceToken, kaleoTimerInstanceToken, workflowContext, serviceContext); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = kaleoTimerInstanceToken.getKaleoTaskInstanceToken(); - - executionContext.setKaleoTaskInstanceToken(kaleoTaskInstanceToken); - - final KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor(currentKaleoNode.getType()); - - nodeExecutor.executeTimer(currentKaleoNode, executionContext); - - TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { - - - public Void call() throws Exception { - _kaleoSignaler.signalExecute(currentKaleoNode, executionContext); - - return null; - } - - }); - - return executionContext; - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getNextTransitionNames(long workflowInstanceId, ServiceContext serviceContext) - throws WorkflowException { - - try { - KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(workflowInstanceId); - - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(null, serviceContext); - - List transitionNames = new ArrayList(); - - getNextTransitionNames(rootKaleoInstanceToken, transitionNames); - - return transitionNames; - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowInstance getWorkflowInstance(long workflowInstanceId, ServiceContext serviceContext) - throws WorkflowException { - - try { - KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(workflowInstanceId); - - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); - - return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowInstanceCount(Long userId, String assetClassName, Long assetClassPK, Boolean completed, - ServiceContext serviceContext) throws WorkflowException { - - try { - return kaleoInstanceLocalService.getKaleoInstancesCount(userId, assetClassName, assetClassPK, completed, - serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowInstanceCount(Long userId, String[] assetClassNames, Boolean completed, - ServiceContext serviceContext) throws WorkflowException { - - try { - return kaleoInstanceLocalService.getKaleoInstancesCount(userId, assetClassNames, completed, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public int getWorkflowInstanceCount(String workflowDefinitionName, int workflowDefinitionVersion, boolean completed, - ServiceContext serviceContext) throws WorkflowException { - - try { - return kaleoInstanceLocalService.getKaleoInstancesCount(workflowDefinitionName, workflowDefinitionVersion, - completed, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowInstances(Long userId, String assetClassName, Long assetClassPK, - Boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) - throws WorkflowException { - - try { - List kaleoInstances = - kaleoInstanceLocalService.getKaleoInstances(userId, assetClassName, assetClassPK, completed, start, end, - orderByComparator, serviceContext); - - return toWorkflowInstances(kaleoInstances, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowInstances(Long userId, String[] assetClassNames, Boolean completed, - int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) throws WorkflowException { - - try { - List kaleoInstances = - kaleoInstanceLocalService.getKaleoInstances(userId, assetClassNames, completed, start, end, - orderByComparator, serviceContext); - - return toWorkflowInstances(kaleoInstances, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public List getWorkflowInstances(String workflowDefinitionName, int workflowDefinitionVersion, - boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) - throws WorkflowException { - - try { - List kaleoInstances = - kaleoInstanceLocalService.getKaleoInstances(workflowDefinitionName, workflowDefinitionVersion, completed, - start, end, orderByComparator, serviceContext); - - return toWorkflowInstances(kaleoInstances, serviceContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - public void setKaleoSignaler(KaleoSignaler kaleoSignaler) { - _kaleoSignaler = kaleoSignaler; - } - - public void setWorkflowDeployer(WorkflowDeployer workflowDeployer) { - _workflowDeployer = workflowDeployer; - } - - public void setWorkflowModelParser(WorkflowModelParser workflowModelParser) { - - _workflowModelParser = workflowModelParser; - } - - public void setWorkflowValidator(WorkflowValidator workflowValidator) { - _workflowValidator = workflowValidator; - } - - - public WorkflowInstance signalWorkflowInstance(long workflowInstanceId, final String transitionName, - Map workflowContext, ServiceContext serviceContext) throws WorkflowException { - - try { - KaleoInstance kaleoInstance = doUpdateContext(workflowInstanceId, workflowContext, serviceContext); - - KaleoInstanceToken kaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); - - if (Validator.isNotNull(transitionName)) { - - // Validate that the transition actually exists before moving - // forward - - KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - currentKaleoNode.getKaleoTransition(transitionName); - } - - serviceContext.setScopeGroupId(kaleoInstanceToken.getGroupId()); - - final ExecutionContext executionContext = - new ExecutionContext(kaleoInstanceToken, workflowContext, serviceContext); - - // TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { - // - // - // public Void call() throws Exception { - // try { - // _kaleoSignaler.signalExit(transitionName, executionContext); - // } catch (Exception e) { - // throw new WorkflowException("Unable to signal next transition", e); - // } - // - // return null; - // } - // - // }); - - kaleoLogLocalService.addNodeExitKaleoLog(kaleoInstanceToken, kaleoInstanceToken.getCurrentKaleoNode(), - serviceContext); - - _kaleoSignaler.signalExit(transitionName, executionContext); - - return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, kaleoInstanceToken, workflowContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowInstance startWorkflowInstance(String workflowDefinitionName, Integer workflowDefinitionVersion, - final String transitionName, Map workflowContext, ServiceContext serviceContext) - throws WorkflowException { - - try { - KaleoDefinition kaleoDefinition = - kaleoDefinitionLocalService.getKaleoDefinition(workflowDefinitionName, workflowDefinitionVersion, - serviceContext); - - if (!kaleoDefinition.isActive()) { - throw new WorkflowException("Inactive workflow definition with name " + workflowDefinitionName - + " and version " + workflowDefinitionVersion); - } - - KaleoNode kaleoStartNode = kaleoDefinition.getKaleoStartNode(); - - if (Validator.isNotNull(transitionName)) { - - // Validate that the transition actually exists before moving - // forward - - kaleoStartNode.getKaleoTransition(transitionName); - } - - long scopeGroupId = serviceContext.getScopeGroupId(); - - if (scopeGroupId != WorkflowConstants.DEFAULT_GROUP_ID) { - Group group = GroupLocalServiceUtil.getGroup(scopeGroupId); - - if (group.isLayout()) { - group = GroupLocalServiceUtil.getGroup(group.getParentGroupId()); - - serviceContext.setScopeGroupId(group.getGroupId()); - } - } - - KaleoInstance kaleoInstance = - kaleoInstanceLocalService.addKaleoInstance(kaleoDefinition.getKaleoDefinitionId(), kaleoDefinition.getName(), - kaleoDefinition.getVersion(), workflowContext, serviceContext); - - KaleoInstanceToken rootKaleoInstanceToken = - kaleoInstance.getRootKaleoInstanceToken(workflowContext, serviceContext); - - rootKaleoInstanceToken.setCurrentKaleoNode(kaleoStartNode); - - kaleoLogLocalService.addWorkflowInstanceStartKaleoLog(rootKaleoInstanceToken, serviceContext); - - final ExecutionContext executionContext = - new ExecutionContext(rootKaleoInstanceToken, workflowContext, serviceContext); - - TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { - - - public Void call() throws Exception { - try { - _kaleoSignaler.signalEntry(transitionName, executionContext); - } catch (Exception e) { - throw new WorkflowException("Unable to start workflow", e); - } - - return null; - } - - }); - - return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken, workflowContext); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public WorkflowInstance updateContext(long workflowInstanceId, Map workflowContext, - ServiceContext serviceContext) throws WorkflowException { - - try { - KaleoInstance kaleoInstance = doUpdateContext(workflowInstanceId, workflowContext, serviceContext); - - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); - - return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken); - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - - public void validateWorkflowDefinition(InputStream inputStream) throws WorkflowException { - - try { - Definition definition = _workflowModelParser.parse(inputStream); - - if (_workflowValidator != null) { - _workflowValidator.validate(definition); - } - } catch (Exception e) { - throw new WorkflowException(e); - } - } - - protected KaleoInstance doUpdateContext(long workflowInstanceId, Map workflowContext, - ServiceContext serviceContext) throws Exception { - - return kaleoInstanceLocalService.updateKaleoInstance(workflowInstanceId, workflowContext, serviceContext); - } - - protected void getNextTransitionNames(KaleoInstanceToken kaleoInstanceToken, List transitionNames) - throws Exception { - - if (kaleoInstanceToken.hasIncompleteChildrenKaleoInstanceToken()) { - List incompleteChildrenKaleoInstanceTokens = - kaleoInstanceToken.getIncompleteChildrenKaleoInstanceTokens(); - - for (KaleoInstanceToken incompleteChildrenKaleoInstanceToken : incompleteChildrenKaleoInstanceTokens) { - - getNextTransitionNames(incompleteChildrenKaleoInstanceToken, transitionNames); - } - } else { - KaleoNode kaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - List kaleoTransitions = kaleoNode.getKaleoTransitions(); - - for (KaleoTransition kaleoTransition : kaleoTransitions) { - transitionNames.add(kaleoTransition.getName()); - } - } - } - - protected List toWorkflowInstances(List kaleoInstances, ServiceContext serviceContext) - throws PortalException, SystemException { - - List workflowInstances = new ArrayList(kaleoInstances.size()); - - for (KaleoInstance kaleoInstance : kaleoInstances) { - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); - - workflowInstances.add(WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken)); - } - - return workflowInstances; - } - - private KaleoSignaler _kaleoSignaler; - private WorkflowDeployer _workflowDeployer; - private WorkflowModelParser _workflowModelParser; - private WorkflowValidator _workflowValidator; - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import java.io.InputStream; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.Callable; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.TransactionCommitCallbackRegistryUtil; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowInstance; +import com.liferay.portal.model.Group; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.deployment.WorkflowDeployer; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.parser.WorkflowModelParser; +import com.liferay.portal.workflow.kaleo.parser.WorkflowValidator; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; +import com.liferay.portal.workflow.kaleo.util.WorkflowModelUtil; + +/** + * @author Michael C. Han + */ +@Transactional(isolation = Isolation.PORTAL, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) +public class DefaultWorkflowEngineImpl extends BaseKaleoBean implements WorkflowEngine { + + + public void deleteWorkflowDefinition(String name, int version, ServiceContext serviceContext) + throws WorkflowException { + + try { + kaleoDefinitionLocalService.deleteKaleoDefinition(name, version, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public void deleteWorkflowInstance(long workflowInstanceId, ServiceContext serviceContext) throws WorkflowException { + + try { + kaleoInstanceLocalService.deleteKaleoInstance(workflowInstanceId); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowDefinition deployWorkflowDefinition(String title, InputStream inputStream, + ServiceContext serviceContext) throws WorkflowException { + + try { + Definition definition = _workflowModelParser.parse(inputStream); + + if (_workflowValidator != null) { + _workflowValidator.validate(definition); + } + + WorkflowDefinition workflowDefinition = _workflowDeployer.deploy(title, definition, serviceContext); + + return workflowDefinition; + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public ExecutionContext executeTimerWorkflowInstance(long kaleoTimerInstanceTokenId, ServiceContext serviceContext, + Map workflowContext) throws WorkflowException { + + try { + KaleoTimerInstanceToken kaleoTimerInstanceToken = + kaleoTimerInstanceTokenLocalService.getKaleoTimerInstanceToken(kaleoTimerInstanceTokenId); + + KaleoInstanceToken kaleoInstanceToken = kaleoTimerInstanceToken.getKaleoInstanceToken(); + + final ExecutionContext executionContext = + new ExecutionContext(kaleoInstanceToken, kaleoTimerInstanceToken, workflowContext, serviceContext); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = kaleoTimerInstanceToken.getKaleoTaskInstanceToken(); + + executionContext.setKaleoTaskInstanceToken(kaleoTaskInstanceToken); + + final KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor(currentKaleoNode.getType()); + + nodeExecutor.executeTimer(currentKaleoNode, executionContext); + + TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { + + + public Void call() throws Exception { + _kaleoSignaler.signalExecute(currentKaleoNode, executionContext); + + return null; + } + + }); + + return executionContext; + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getNextTransitionNames(long workflowInstanceId, ServiceContext serviceContext) + throws WorkflowException { + + try { + KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(workflowInstanceId); + + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(null, serviceContext); + + List transitionNames = new ArrayList(); + + getNextTransitionNames(rootKaleoInstanceToken, transitionNames); + + return transitionNames; + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowInstance getWorkflowInstance(long workflowInstanceId, ServiceContext serviceContext) + throws WorkflowException { + + try { + KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(workflowInstanceId); + + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); + + return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowInstanceCount(Long userId, String assetClassName, Long assetClassPK, Boolean completed, + ServiceContext serviceContext) throws WorkflowException { + + try { + return kaleoInstanceLocalService.getKaleoInstancesCount(userId, assetClassName, assetClassPK, completed, + serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowInstanceCount(Long userId, String[] assetClassNames, Boolean completed, + ServiceContext serviceContext) throws WorkflowException { + + try { + return kaleoInstanceLocalService.getKaleoInstancesCount(userId, assetClassNames, completed, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public int getWorkflowInstanceCount(String workflowDefinitionName, int workflowDefinitionVersion, boolean completed, + ServiceContext serviceContext) throws WorkflowException { + + try { + return kaleoInstanceLocalService.getKaleoInstancesCount(workflowDefinitionName, workflowDefinitionVersion, + completed, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowInstances(Long userId, String assetClassName, Long assetClassPK, + Boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) + throws WorkflowException { + + try { + List kaleoInstances = + kaleoInstanceLocalService.getKaleoInstances(userId, assetClassName, assetClassPK, completed, start, end, + orderByComparator, serviceContext); + + return toWorkflowInstances(kaleoInstances, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowInstances(Long userId, String[] assetClassNames, Boolean completed, + int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) throws WorkflowException { + + try { + List kaleoInstances = + kaleoInstanceLocalService.getKaleoInstances(userId, assetClassNames, completed, start, end, + orderByComparator, serviceContext); + + return toWorkflowInstances(kaleoInstances, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public List getWorkflowInstances(String workflowDefinitionName, int workflowDefinitionVersion, + boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) + throws WorkflowException { + + try { + List kaleoInstances = + kaleoInstanceLocalService.getKaleoInstances(workflowDefinitionName, workflowDefinitionVersion, completed, + start, end, orderByComparator, serviceContext); + + return toWorkflowInstances(kaleoInstances, serviceContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + public void setKaleoSignaler(KaleoSignaler kaleoSignaler) { + _kaleoSignaler = kaleoSignaler; + } + + public void setWorkflowDeployer(WorkflowDeployer workflowDeployer) { + _workflowDeployer = workflowDeployer; + } + + public void setWorkflowModelParser(WorkflowModelParser workflowModelParser) { + + _workflowModelParser = workflowModelParser; + } + + public void setWorkflowValidator(WorkflowValidator workflowValidator) { + _workflowValidator = workflowValidator; + } + + + public WorkflowInstance signalWorkflowInstance(long workflowInstanceId, final String transitionName, + Map workflowContext, ServiceContext serviceContext) throws WorkflowException { + + try { + KaleoInstance kaleoInstance = doUpdateContext(workflowInstanceId, workflowContext, serviceContext); + + KaleoInstanceToken kaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); + + if (Validator.isNotNull(transitionName)) { + + // Validate that the transition actually exists before moving + // forward + + KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + currentKaleoNode.getKaleoTransition(transitionName); + } + + serviceContext.setScopeGroupId(kaleoInstanceToken.getGroupId()); + + final ExecutionContext executionContext = + new ExecutionContext(kaleoInstanceToken, workflowContext, serviceContext); + + // TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { + // + // + // public Void call() throws Exception { + // try { + // _kaleoSignaler.signalExit(transitionName, executionContext); + // } catch (Exception e) { + // throw new WorkflowException("Unable to signal next transition", e); + // } + // + // return null; + // } + // + // }); + + kaleoLogLocalService.addNodeExitKaleoLog(kaleoInstanceToken, kaleoInstanceToken.getCurrentKaleoNode(), + serviceContext); + + _kaleoSignaler.signalExit(transitionName, executionContext); + + return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, kaleoInstanceToken, workflowContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowInstance startWorkflowInstance(String workflowDefinitionName, Integer workflowDefinitionVersion, + final String transitionName, Map workflowContext, ServiceContext serviceContext) + throws WorkflowException { + + try { + KaleoDefinition kaleoDefinition = + kaleoDefinitionLocalService.getKaleoDefinition(workflowDefinitionName, workflowDefinitionVersion, + serviceContext); + + if (!kaleoDefinition.isActive()) { + throw new WorkflowException("Inactive workflow definition with name " + workflowDefinitionName + + " and version " + workflowDefinitionVersion); + } + + KaleoNode kaleoStartNode = kaleoDefinition.getKaleoStartNode(); + + if (Validator.isNotNull(transitionName)) { + + // Validate that the transition actually exists before moving + // forward + + kaleoStartNode.getKaleoTransition(transitionName); + } + + long scopeGroupId = serviceContext.getScopeGroupId(); + + if (scopeGroupId != WorkflowConstants.DEFAULT_GROUP_ID) { + Group group = GroupLocalServiceUtil.getGroup(scopeGroupId); + + if (group.isLayout()) { + group = GroupLocalServiceUtil.getGroup(group.getParentGroupId()); + + serviceContext.setScopeGroupId(group.getGroupId()); + } + } + + KaleoInstance kaleoInstance = + kaleoInstanceLocalService.addKaleoInstance(kaleoDefinition.getKaleoDefinitionId(), kaleoDefinition.getName(), + kaleoDefinition.getVersion(), workflowContext, serviceContext); + + KaleoInstanceToken rootKaleoInstanceToken = + kaleoInstance.getRootKaleoInstanceToken(workflowContext, serviceContext); + + rootKaleoInstanceToken.setCurrentKaleoNode(kaleoStartNode); + + kaleoLogLocalService.addWorkflowInstanceStartKaleoLog(rootKaleoInstanceToken, serviceContext); + + final ExecutionContext executionContext = + new ExecutionContext(rootKaleoInstanceToken, workflowContext, serviceContext); + + TransactionCommitCallbackRegistryUtil.registerCallback(new Callable() { + + + public Void call() throws Exception { + try { + _kaleoSignaler.signalEntry(transitionName, executionContext); + } catch (Exception e) { + throw new WorkflowException("Unable to start workflow", e); + } + + return null; + } + + }); + + return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken, workflowContext); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public WorkflowInstance updateContext(long workflowInstanceId, Map workflowContext, + ServiceContext serviceContext) throws WorkflowException { + + try { + KaleoInstance kaleoInstance = doUpdateContext(workflowInstanceId, workflowContext, serviceContext); + + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); + + return WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken); + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + + public void validateWorkflowDefinition(InputStream inputStream) throws WorkflowException { + + try { + Definition definition = _workflowModelParser.parse(inputStream); + + if (_workflowValidator != null) { + _workflowValidator.validate(definition); + } + } catch (Exception e) { + throw new WorkflowException(e); + } + } + + protected KaleoInstance doUpdateContext(long workflowInstanceId, Map workflowContext, + ServiceContext serviceContext) throws Exception { + + return kaleoInstanceLocalService.updateKaleoInstance(workflowInstanceId, workflowContext, serviceContext); + } + + protected void getNextTransitionNames(KaleoInstanceToken kaleoInstanceToken, List transitionNames) + throws Exception { + + if (kaleoInstanceToken.hasIncompleteChildrenKaleoInstanceToken()) { + List incompleteChildrenKaleoInstanceTokens = + kaleoInstanceToken.getIncompleteChildrenKaleoInstanceTokens(); + + for (KaleoInstanceToken incompleteChildrenKaleoInstanceToken : incompleteChildrenKaleoInstanceTokens) { + + getNextTransitionNames(incompleteChildrenKaleoInstanceToken, transitionNames); + } + } else { + KaleoNode kaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + List kaleoTransitions = kaleoNode.getKaleoTransitions(); + + for (KaleoTransition kaleoTransition : kaleoTransitions) { + transitionNames.add(kaleoTransition.getName()); + } + } + } + + protected List toWorkflowInstances(List kaleoInstances, ServiceContext serviceContext) + throws PortalException, SystemException { + + List workflowInstances = new ArrayList(kaleoInstances.size()); + + for (KaleoInstance kaleoInstance : kaleoInstances) { + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); + + workflowInstances.add(WorkflowModelUtil.toWorkflowInstance(kaleoInstance, rootKaleoInstanceToken)); + } + + return workflowInstances; + } + + private KaleoSignaler _kaleoSignaler; + private WorkflowDeployer _workflowDeployer; + private WorkflowModelParser _workflowModelParser; + private WorkflowValidator _workflowValidator; + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/ExecutionContext.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/ExecutionContext.java index 674d2b20..f7ce0f25 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/ExecutionContext.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/ExecutionContext.java @@ -1,111 +1,111 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; - -import java.io.Serializable; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class ExecutionContext implements Serializable { - - public ExecutionContext( - KaleoInstanceToken kaleoInstanceToken, - KaleoTaskInstanceToken kaleoTaskInstanceToken, - Map workflowContext, - ServiceContext serviceContext) { - - this(kaleoInstanceToken, workflowContext, serviceContext); - - _kaleoTaskInstanceToken = kaleoTaskInstanceToken; - } - - public ExecutionContext( - KaleoInstanceToken kaleoInstanceToken, - KaleoTimerInstanceToken kaleoTimerInstanceToken, - Map workflowContext, - ServiceContext serviceContext) { - - this(kaleoInstanceToken, workflowContext, serviceContext); - - _kaleoTimerInstanceToken = kaleoTimerInstanceToken; - } - - public ExecutionContext( - KaleoInstanceToken kaleoInstanceToken, - Map workflowContext, - ServiceContext serviceContext) { - - _kaleoInstanceToken = kaleoInstanceToken; - _workflowContext = new HashMap(workflowContext); - _serviceContext = serviceContext; - } - - public KaleoInstanceToken getKaleoInstanceToken() { - return _kaleoInstanceToken; - } - - public KaleoTaskInstanceToken getKaleoTaskInstanceToken() { - return _kaleoTaskInstanceToken; - } - - public KaleoTimerInstanceToken getKaleoTimerInstanceToken() { - return _kaleoTimerInstanceToken; - } - - public ServiceContext getServiceContext() { - return _serviceContext; - } - - public String getTransitionName() { - return _transitionName; - } - - public Map getWorkflowContext() { - return _workflowContext; - } - - public void setKaleoTaskInstanceToken( - KaleoTaskInstanceToken kaleoTaskInstanceToken) { - - _kaleoTaskInstanceToken = kaleoTaskInstanceToken; - } - - public void setKaleoTimerInstanceToken( - KaleoTimerInstanceToken kaleoTimerInstanceToken) { - - _kaleoTimerInstanceToken = kaleoTimerInstanceToken; - } - - public void setTransitionName(String transitionName) { - _transitionName = transitionName; - } - - private KaleoInstanceToken _kaleoInstanceToken; - private KaleoTaskInstanceToken _kaleoTaskInstanceToken; - private KaleoTimerInstanceToken _kaleoTimerInstanceToken; - private ServiceContext _serviceContext; - private String _transitionName; - private Map _workflowContext; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; + +import java.io.Serializable; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class ExecutionContext implements Serializable { + + public ExecutionContext( + KaleoInstanceToken kaleoInstanceToken, + KaleoTaskInstanceToken kaleoTaskInstanceToken, + Map workflowContext, + ServiceContext serviceContext) { + + this(kaleoInstanceToken, workflowContext, serviceContext); + + _kaleoTaskInstanceToken = kaleoTaskInstanceToken; + } + + public ExecutionContext( + KaleoInstanceToken kaleoInstanceToken, + KaleoTimerInstanceToken kaleoTimerInstanceToken, + Map workflowContext, + ServiceContext serviceContext) { + + this(kaleoInstanceToken, workflowContext, serviceContext); + + _kaleoTimerInstanceToken = kaleoTimerInstanceToken; + } + + public ExecutionContext( + KaleoInstanceToken kaleoInstanceToken, + Map workflowContext, + ServiceContext serviceContext) { + + _kaleoInstanceToken = kaleoInstanceToken; + _workflowContext = new HashMap(workflowContext); + _serviceContext = serviceContext; + } + + public KaleoInstanceToken getKaleoInstanceToken() { + return _kaleoInstanceToken; + } + + public KaleoTaskInstanceToken getKaleoTaskInstanceToken() { + return _kaleoTaskInstanceToken; + } + + public KaleoTimerInstanceToken getKaleoTimerInstanceToken() { + return _kaleoTimerInstanceToken; + } + + public ServiceContext getServiceContext() { + return _serviceContext; + } + + public String getTransitionName() { + return _transitionName; + } + + public Map getWorkflowContext() { + return _workflowContext; + } + + public void setKaleoTaskInstanceToken( + KaleoTaskInstanceToken kaleoTaskInstanceToken) { + + _kaleoTaskInstanceToken = kaleoTaskInstanceToken; + } + + public void setKaleoTimerInstanceToken( + KaleoTimerInstanceToken kaleoTimerInstanceToken) { + + _kaleoTimerInstanceToken = kaleoTimerInstanceToken; + } + + public void setTransitionName(String transitionName) { + _transitionName = transitionName; + } + + private KaleoInstanceToken _kaleoInstanceToken; + private KaleoTaskInstanceToken _kaleoTaskInstanceToken; + private KaleoTimerInstanceToken _kaleoTimerInstanceToken; + private ServiceContext _serviceContext; + private String _transitionName; + private Map _workflowContext; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/KaleoSignaler.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/KaleoSignaler.java index c2eda613..03363af6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/KaleoSignaler.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/KaleoSignaler.java @@ -1,38 +1,38 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; - -/** - * @author Michael C. Han - */ -public interface KaleoSignaler { - - public void signalEntry( - String transitionName, ExecutionContext executionContext) - throws PortalException, SystemException; - - public void signalExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException; - - public void signalExit( - String transitionName, ExecutionContext executionContext) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; + +/** + * @author Michael C. Han + */ +public interface KaleoSignaler { + + public void signalEntry( + String transitionName, ExecutionContext executionContext) + throws PortalException, SystemException; + + public void signalExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException; + + public void signalExit( + String transitionName, ExecutionContext executionContext) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/TaskManager.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/TaskManager.java index 25d1c3ed..bc745b3e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/TaskManager.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/TaskManager.java @@ -1,54 +1,54 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.service.ServiceContext; - -import java.io.Serializable; - -import java.util.Date; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public interface TaskManager { - - public WorkflowTask assignWorkflowTaskToRole( - long workflowTaskId, long roleId, String comment, Date dueDate, - Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowTask assignWorkflowTaskToUser( - long workflowTaskId, long assigneeUserId, String comment, - Date dueDate, Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowTask completeWorkflowTask( - long workflowTaskId, String transitionName, String comment, - Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowTask updateDueDate( - long workflowTaskId, String comment, Date dueDate, - ServiceContext serviceContext) - throws WorkflowException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.service.ServiceContext; + +import java.io.Serializable; + +import java.util.Date; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public interface TaskManager { + + public WorkflowTask assignWorkflowTaskToRole( + long workflowTaskId, long roleId, String comment, Date dueDate, + Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowTask assignWorkflowTaskToUser( + long workflowTaskId, long assigneeUserId, String comment, + Date dueDate, Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowTask completeWorkflowTask( + long workflowTaskId, String transitionName, String comment, + Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowTask updateDueDate( + long workflowTaskId, String comment, Date dueDate, + ServiceContext serviceContext) + throws WorkflowException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/WorkflowEngine.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/WorkflowEngine.java index 431173a8..f27921d7 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/WorkflowEngine.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/WorkflowEngine.java @@ -1,114 +1,114 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime; - -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowInstance; -import com.liferay.portal.service.ServiceContext; - -import java.io.InputStream; -import java.io.Serializable; - -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - * @author Marcellus Tavares - */ -public interface WorkflowEngine { - - public void deleteWorkflowDefinition( - String name, int version, ServiceContext serviceContext) - throws WorkflowException; - - public void deleteWorkflowInstance( - long workflowInstanceId, ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowDefinition deployWorkflowDefinition( - String title, InputStream inputStream, - ServiceContext serviceContext) - throws WorkflowException; - - public ExecutionContext executeTimerWorkflowInstance( - long kaleoTimerInstanceTokenId, ServiceContext serviceContext, - Map workflowContext) - throws WorkflowException; - - public List getNextTransitionNames( - long workflowInstanceId, ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowInstance getWorkflowInstance( - long workflowInstanceId, ServiceContext serviceContext) - throws WorkflowException; - - public int getWorkflowInstanceCount( - Long userId, String assetClassName, Long assetClassPK, - Boolean completed, ServiceContext serviceContext) - throws WorkflowException; - - public int getWorkflowInstanceCount( - Long userId, String[] assetClassNames, Boolean completed, - ServiceContext serviceContext) - throws WorkflowException; - - public int getWorkflowInstanceCount( - String workflowDefinitionName, int workflowDefinitionVersion, - boolean completed, ServiceContext serviceContext) - throws WorkflowException; - - public List getWorkflowInstances( - Long userId, String assetClassName, Long assetClassPK, - Boolean completed, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws WorkflowException; - - public List getWorkflowInstances( - Long userId, String[] assetClassNames, Boolean completed, int start, - int end, OrderByComparator orderByComparator, - ServiceContext serviceContext) - throws WorkflowException; - - public List getWorkflowInstances( - String workflowDefinitionName, int workflowDefinitionVersion, - boolean completed, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowInstance signalWorkflowInstance( - long workflowInstanceId, String transitionName, - Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowInstance startWorkflowInstance( - String workflowDefinitionName, Integer workflowDefinitionVersion, - String transitionName, Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public WorkflowInstance updateContext( - long workflowInstanceId, Map workflowContext, - ServiceContext serviceContext) - throws WorkflowException; - - public void validateWorkflowDefinition(InputStream inputStream) - throws WorkflowException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime; + +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowInstance; +import com.liferay.portal.service.ServiceContext; + +import java.io.InputStream; +import java.io.Serializable; + +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + * @author Marcellus Tavares + */ +public interface WorkflowEngine { + + public void deleteWorkflowDefinition( + String name, int version, ServiceContext serviceContext) + throws WorkflowException; + + public void deleteWorkflowInstance( + long workflowInstanceId, ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowDefinition deployWorkflowDefinition( + String title, InputStream inputStream, + ServiceContext serviceContext) + throws WorkflowException; + + public ExecutionContext executeTimerWorkflowInstance( + long kaleoTimerInstanceTokenId, ServiceContext serviceContext, + Map workflowContext) + throws WorkflowException; + + public List getNextTransitionNames( + long workflowInstanceId, ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowInstance getWorkflowInstance( + long workflowInstanceId, ServiceContext serviceContext) + throws WorkflowException; + + public int getWorkflowInstanceCount( + Long userId, String assetClassName, Long assetClassPK, + Boolean completed, ServiceContext serviceContext) + throws WorkflowException; + + public int getWorkflowInstanceCount( + Long userId, String[] assetClassNames, Boolean completed, + ServiceContext serviceContext) + throws WorkflowException; + + public int getWorkflowInstanceCount( + String workflowDefinitionName, int workflowDefinitionVersion, + boolean completed, ServiceContext serviceContext) + throws WorkflowException; + + public List getWorkflowInstances( + Long userId, String assetClassName, Long assetClassPK, + Boolean completed, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws WorkflowException; + + public List getWorkflowInstances( + Long userId, String[] assetClassNames, Boolean completed, int start, + int end, OrderByComparator orderByComparator, + ServiceContext serviceContext) + throws WorkflowException; + + public List getWorkflowInstances( + String workflowDefinitionName, int workflowDefinitionVersion, + boolean completed, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowInstance signalWorkflowInstance( + long workflowInstanceId, String transitionName, + Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowInstance startWorkflowInstance( + String workflowDefinitionName, Integer workflowDefinitionVersion, + String transitionName, Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public WorkflowInstance updateContext( + long workflowInstanceId, Map workflowContext, + ServiceContext serviceContext) + throws WorkflowException; + + public void validateWorkflowDefinition(InputStream inputStream) + throws WorkflowException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutor.java index ee2dac54..ac379d27 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutor.java @@ -1,30 +1,30 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -/** - * @author Michael C. Han - */ -public interface ActionExecutor { - - public void execute( - KaleoAction kaleoAction, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws ActionExecutorException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +/** + * @author Michael C. Han + */ +public interface ActionExecutor { + + public void execute( + KaleoAction kaleoAction, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws ActionExecutorException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorException.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorException.java index a36122e9..26638996 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorException.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorException.java @@ -1,40 +1,40 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -/** - * @author Michael C. Han - */ -public class ActionExecutorException extends WorkflowException { - - public ActionExecutorException() { - super(); - } - - public ActionExecutorException(String msg) { - super(msg); - } - - public ActionExecutorException(String msg, Throwable cause) { - super(msg, cause); - } - - public ActionExecutorException(Throwable cause) { - super(cause); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +/** + * @author Michael C. Han + */ +public class ActionExecutorException extends WorkflowException { + + public ActionExecutorException() { + super(); + } + + public ActionExecutorException(String msg) { + super(msg); + } + + public ActionExecutorException(String msg, Throwable cause) { + super(msg, cause); + } + + public ActionExecutorException(Throwable cause) { + super(cause); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorFactory.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorFactory.java index 62945c06..6a59a623 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorFactory.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorFactory.java @@ -1,47 +1,47 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class ActionExecutorFactory { - - public static ActionExecutor getActionExecutor(String scriptLanguage) - throws WorkflowException { - - ActionExecutor actionExecutor = _actionExecutors.get(scriptLanguage); - - if (actionExecutor == null) { - throw new WorkflowException( - "Invalid script language " + scriptLanguage); - } - - return actionExecutor; - } - - public void setActionExecutors( - Map actionExecutors) { - - _actionExecutors = actionExecutors; - } - - private static Map _actionExecutors; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class ActionExecutorFactory { + + public static ActionExecutor getActionExecutor(String scriptLanguage) + throws WorkflowException { + + ActionExecutor actionExecutor = _actionExecutors.get(scriptLanguage); + + if (actionExecutor == null) { + throw new WorkflowException( + "Invalid script language " + scriptLanguage); + } + + return actionExecutor; + } + + public void setActionExecutors( + Map actionExecutors) { + + _actionExecutors = actionExecutors; + } + + private static Map _actionExecutors; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorUtil.java index 688aa65e..2d5e69e4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ActionExecutorUtil.java @@ -1,95 +1,95 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoActionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class ActionExecutorUtil { - - public static void executeKaleoActions( - String kaleoClassName, long kaleoClassPK, - ExecutionType executionType, ExecutionContext executionContext) - throws PortalException, SystemException { - - List kaleoActions = - KaleoActionLocalServiceUtil.getKaleoActions( - kaleoClassName, kaleoClassPK, executionType.getValue()); - - for (KaleoAction kaleoAction : kaleoActions) { - long startTime = System.currentTimeMillis(); - - String comment = _COMMENT_ACTION_SUCCESS; - - try { - String[] scriptRequiredContexts = StringUtil.split( - kaleoAction.getScriptRequiredContexts()); - - ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( - scriptRequiredContexts); - - ActionExecutor actionExecutor = - ActionExecutorFactory.getActionExecutor( - kaleoAction.getScriptLanguage()); - - actionExecutor.execute( - kaleoAction, executionContext, classLoaders); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstanceLocalServiceUtil.updateKaleoInstance( - kaleoInstanceToken.getKaleoInstanceId(), - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - } - catch (Exception e) { - if (_log.isDebugEnabled()) { - _log.debug(e, e); - } - - comment = e.getMessage(); - } - finally { - KaleoLogLocalServiceUtil.addActionExecutionKaleoLog( - executionContext.getKaleoInstanceToken(), kaleoAction, - startTime, System.currentTimeMillis(), comment, - executionContext.getServiceContext()); - } - } - } - - private static final String _COMMENT_ACTION_SUCCESS = - "Action completed successfully."; - - private static Log _log = LogFactoryUtil.getLog(ActionExecutorUtil.class); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoActionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class ActionExecutorUtil { + + public static void executeKaleoActions( + String kaleoClassName, long kaleoClassPK, + ExecutionType executionType, ExecutionContext executionContext) + throws PortalException, SystemException { + + List kaleoActions = + KaleoActionLocalServiceUtil.getKaleoActions( + kaleoClassName, kaleoClassPK, executionType.getValue()); + + for (KaleoAction kaleoAction : kaleoActions) { + long startTime = System.currentTimeMillis(); + + String comment = _COMMENT_ACTION_SUCCESS; + + try { + String[] scriptRequiredContexts = StringUtil.split( + kaleoAction.getScriptRequiredContexts()); + + ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( + scriptRequiredContexts); + + ActionExecutor actionExecutor = + ActionExecutorFactory.getActionExecutor( + kaleoAction.getScriptLanguage()); + + actionExecutor.execute( + kaleoAction, executionContext, classLoaders); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstanceLocalServiceUtil.updateKaleoInstance( + kaleoInstanceToken.getKaleoInstanceId(), + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + } + catch (Exception e) { + if (_log.isDebugEnabled()) { + _log.debug(e, e); + } + + comment = e.getMessage(); + } + finally { + KaleoLogLocalServiceUtil.addActionExecutionKaleoLog( + executionContext.getKaleoInstanceToken(), kaleoAction, + startTime, System.currentTimeMillis(), comment, + executionContext.getServiceContext()); + } + } + } + + private static final String _COMMENT_ACTION_SUCCESS = + "Action completed successfully."; + + private static Log _log = LogFactoryUtil.getLog(ActionExecutorUtil.class); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/DRLActionExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/DRLActionExecutor.java index 128171ad..2d6cbc16 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/DRLActionExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/DRLActionExecutor.java @@ -1,75 +1,75 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.kernel.bi.rules.Fact; -import com.liferay.portal.kernel.bi.rules.Query; -import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; -import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; -import com.liferay.portal.kernel.resource.StringResourceRetriever; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class DRLActionExecutor implements ActionExecutor { - - - public void execute( - KaleoAction kaleoAction, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws ActionExecutorException { - - try { - doExecute(kaleoAction, executionContext, classLoaders); - } - catch (Exception e) { - throw new ActionExecutorException(e); - } - } - - protected void doExecute( - KaleoAction kaleoAction, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws Exception { - - List> facts = RulesContextBuilder.buildRulesContext( - executionContext); - - RulesResourceRetriever rulesResourceRetriever = - new RulesResourceRetriever( - new StringResourceRetriever(kaleoAction.getScript())); - - Map results = RulesEngineUtil.execute( - rulesResourceRetriever, facts, Query.createStandardQuery(), - classLoaders); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.kernel.bi.rules.Fact; +import com.liferay.portal.kernel.bi.rules.Query; +import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; +import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; +import com.liferay.portal.kernel.resource.StringResourceRetriever; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class DRLActionExecutor implements ActionExecutor { + + + public void execute( + KaleoAction kaleoAction, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws ActionExecutorException { + + try { + doExecute(kaleoAction, executionContext, classLoaders); + } + catch (Exception e) { + throw new ActionExecutorException(e); + } + } + + protected void doExecute( + KaleoAction kaleoAction, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws Exception { + + List> facts = RulesContextBuilder.buildRulesContext( + executionContext); + + RulesResourceRetriever rulesResourceRetriever = + new RulesResourceRetriever( + new StringResourceRetriever(kaleoAction.getScript())); + + Map results = RulesEngineUtil.execute( + rulesResourceRetriever, facts, Query.createStandardQuery(), + classLoaders); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ScriptActionExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ScriptActionExecutor.java index 58b3afdd..92e2ed20 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ScriptActionExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/action/ScriptActionExecutor.java @@ -1,78 +1,78 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.action; - -import com.liferay.portal.kernel.scripting.ScriptingUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class ScriptActionExecutor implements ActionExecutor { - - public ScriptActionExecutor() { - _outputObjects.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - } - - - public void execute( - KaleoAction kaleoAction, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws ActionExecutorException { - - try { - doExecute(kaleoAction, executionContext, classLoaders); - } - catch (Exception e) { - throw new ActionExecutorException(e); - } - } - - public void setOutputObjects(Set outputObjects) { - _outputObjects.addAll(outputObjects); - } - - protected void doExecute( - KaleoAction kaleoAction, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws Exception { - - Map inputObjects = - ScriptingContextBuilderUtil.buildScriptingContext(executionContext); - - Map results = ScriptingUtil.eval( - null, inputObjects, _outputObjects, kaleoAction.getScriptLanguage(), - kaleoAction.getScript(), classLoaders); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - } - - private Set _outputObjects = new HashSet(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.action; + +import com.liferay.portal.kernel.scripting.ScriptingUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class ScriptActionExecutor implements ActionExecutor { + + public ScriptActionExecutor() { + _outputObjects.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + } + + + public void execute( + KaleoAction kaleoAction, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws ActionExecutorException { + + try { + doExecute(kaleoAction, executionContext, classLoaders); + } + catch (Exception e) { + throw new ActionExecutorException(e); + } + } + + public void setOutputObjects(Set outputObjects) { + _outputObjects.addAll(outputObjects); + } + + protected void doExecute( + KaleoAction kaleoAction, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws Exception { + + Map inputObjects = + ScriptingContextBuilderUtil.buildScriptingContext(executionContext); + + Map results = ScriptingUtil.eval( + null, inputObjects, _outputObjects, kaleoAction.getScriptLanguage(), + kaleoAction.getScript(), classLoaders); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + } + + private Set _outputObjects = new HashSet(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/BaseTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/BaseTaskAssignmentSelector.java index c31139a4..e287961d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/BaseTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/BaseTaskAssignmentSelector.java @@ -1,87 +1,87 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public abstract class BaseTaskAssignmentSelector - implements TaskAssignmentSelector { - - protected Collection getKaleoTaskAssignments( - Map results) { - - List kaleoTaskAssignments = - new ArrayList(); - - User user = (User)results.get(USER_ASSIGNMENT); - - if (user != null) { - KaleoTaskAssignment kaleoTaskAssignment = - getUserKaleoTaskAssignment(user); - - kaleoTaskAssignments.add(kaleoTaskAssignment); - } - else { - List roles = (List)results.get(ROLES_ASSIGNMENT); - - getRoleKaleoTaskAssignments(roles, kaleoTaskAssignments); - } - - return kaleoTaskAssignments; - } - - protected void getRoleKaleoTaskAssignments( - List roles, List kaleoTaskAssignments) { - - if (roles == null) { - return; - } - - for (Role role : roles) { - KaleoTaskAssignment kaleoTaskAssignment = - new KaleoTaskAssignmentImpl(); - - kaleoTaskAssignment.setAssigneeClassName(Role.class.getName()); - kaleoTaskAssignment.setAssigneeClassPK(role.getRoleId()); - - kaleoTaskAssignments.add(kaleoTaskAssignment); - } - } - - protected KaleoTaskAssignment getUserKaleoTaskAssignment(User user) { - KaleoTaskAssignment kaleoTaskAssignment = new KaleoTaskAssignmentImpl(); - - kaleoTaskAssignment.setAssigneeClassName(User.class.getName()); - kaleoTaskAssignment.setAssigneeClassPK(user.getUserId()); - - return kaleoTaskAssignment; - } - - protected static final String ROLES_ASSIGNMENT = "roles"; - - protected static final String USER_ASSIGNMENT = "user"; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public abstract class BaseTaskAssignmentSelector + implements TaskAssignmentSelector { + + protected Collection getKaleoTaskAssignments( + Map results) { + + List kaleoTaskAssignments = + new ArrayList(); + + User user = (User)results.get(USER_ASSIGNMENT); + + if (user != null) { + KaleoTaskAssignment kaleoTaskAssignment = + getUserKaleoTaskAssignment(user); + + kaleoTaskAssignments.add(kaleoTaskAssignment); + } + else { + List roles = (List)results.get(ROLES_ASSIGNMENT); + + getRoleKaleoTaskAssignments(roles, kaleoTaskAssignments); + } + + return kaleoTaskAssignments; + } + + protected void getRoleKaleoTaskAssignments( + List roles, List kaleoTaskAssignments) { + + if (roles == null) { + return; + } + + for (Role role : roles) { + KaleoTaskAssignment kaleoTaskAssignment = + new KaleoTaskAssignmentImpl(); + + kaleoTaskAssignment.setAssigneeClassName(Role.class.getName()); + kaleoTaskAssignment.setAssigneeClassPK(role.getRoleId()); + + kaleoTaskAssignments.add(kaleoTaskAssignment); + } + } + + protected KaleoTaskAssignment getUserKaleoTaskAssignment(User user) { + KaleoTaskAssignment kaleoTaskAssignment = new KaleoTaskAssignmentImpl(); + + kaleoTaskAssignment.setAssigneeClassName(User.class.getName()); + kaleoTaskAssignment.setAssigneeClassPK(user.getUserId()); + + return kaleoTaskAssignment; + } + + protected static final String ROLES_ASSIGNMENT = "roles"; + + protected static final String USER_ASSIGNMENT = "user"; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/CompositeTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/CompositeTaskAssignmentSelector.java index 8a9661cb..807fd337 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/CompositeTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/CompositeTaskAssignmentSelector.java @@ -1,61 +1,61 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class CompositeTaskAssignmentSelector implements TaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException { - - String assigneeClassName = kaleoTaskAssignment.getAssigneeClassName(); - - TaskAssignmentSelector taskAssignmentSelector = - _taskAssignmentSelectors.get(assigneeClassName); - - if (taskAssignmentSelector == null) { - throw new IllegalArgumentException( - "No task assignment selector found for class name " + - assigneeClassName); - } - - return taskAssignmentSelector.calculateTaskAssignments( - kaleoTaskAssignment, executionContext, classLoaders); - } - - public void setTaskAssignmentSelectors( - Map taskAssignmentSelectors) { - - _taskAssignmentSelectors.putAll(taskAssignmentSelectors); - } - - private Map _taskAssignmentSelectors = - new HashMap(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class CompositeTaskAssignmentSelector implements TaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException { + + String assigneeClassName = kaleoTaskAssignment.getAssigneeClassName(); + + TaskAssignmentSelector taskAssignmentSelector = + _taskAssignmentSelectors.get(assigneeClassName); + + if (taskAssignmentSelector == null) { + throw new IllegalArgumentException( + "No task assignment selector found for class name " + + assigneeClassName); + } + + return taskAssignmentSelector.calculateTaskAssignments( + kaleoTaskAssignment, executionContext, classLoaders); + } + + public void setTaskAssignmentSelectors( + Map taskAssignmentSelectors) { + + _taskAssignmentSelectors.putAll(taskAssignmentSelectors); + } + + private Map _taskAssignmentSelectors = + new HashMap(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DRLScriptingTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DRLScriptingTaskAssignmentSelector.java index 7fa1e685..5da88a26 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DRLScriptingTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DRLScriptingTaskAssignmentSelector.java @@ -1,71 +1,71 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.bi.rules.Fact; -import com.liferay.portal.kernel.bi.rules.Query; -import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; -import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.resource.StringResourceRetriever; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.Collection; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class DRLScriptingTaskAssignmentSelector - extends BaseTaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException { - - List> facts = RulesContextBuilder.buildRulesContext( - executionContext); - - String assigneeScript = kaleoTaskAssignment.getAssigneeScript(); - - RulesResourceRetriever rulesResourceRetriever = - new RulesResourceRetriever( - new StringResourceRetriever(assigneeScript)); - - Query query = Query.createStandardQuery(); - - Map results = RulesEngineUtil.execute( - rulesResourceRetriever, facts, query, classLoaders); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - - return getKaleoTaskAssignments(results); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.bi.rules.Fact; +import com.liferay.portal.kernel.bi.rules.Query; +import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; +import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.resource.StringResourceRetriever; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.Collection; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class DRLScriptingTaskAssignmentSelector + extends BaseTaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException { + + List> facts = RulesContextBuilder.buildRulesContext( + executionContext); + + String assigneeScript = kaleoTaskAssignment.getAssigneeScript(); + + RulesResourceRetriever rulesResourceRetriever = + new RulesResourceRetriever( + new StringResourceRetriever(assigneeScript)); + + Query query = Query.createStandardQuery(); + + Map results = RulesEngineUtil.execute( + rulesResourceRetriever, facts, query, classLoaders); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + + return getKaleoTaskAssignments(results); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DefaultTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DefaultTaskAssignmentSelector.java index b6f44b9f..def8727c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DefaultTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/DefaultTaskAssignmentSelector.java @@ -1,42 +1,42 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class DefaultTaskAssignmentSelector implements TaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) { - - List taskAssignments = - new ArrayList(1); - - taskAssignments.add(kaleoTaskAssignment); - - return taskAssignments; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class DefaultTaskAssignmentSelector implements TaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) { + + List taskAssignments = + new ArrayList(1); + + taskAssignments.add(kaleoTaskAssignment); + + return taskAssignments; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/GroupAwareRoleTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/GroupAwareRoleTaskAssignmentSelector.java index 3f6eef03..871f8ce0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/GroupAwareRoleTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/GroupAwareRoleTaskAssignmentSelector.java @@ -1,96 +1,96 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.Group; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class GroupAwareRoleTaskAssignmentSelector - implements TaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - Group group = null; - - long groupId = kaleoInstanceToken.getGroupId(); - - if (groupId != WorkflowConstants.DEFAULT_GROUP_ID) { - group = GroupLocalServiceUtil.getGroup(groupId); - - if (group.isLayout()) { - group = GroupLocalServiceUtil.getGroup( - group.getParentGroupId()); - } - } - - List calculatedKaleoTaskAssignments = - new ArrayList(); - - if (isValidAssignment(kaleoTaskAssignment, group)) { - calculatedKaleoTaskAssignments.add(kaleoTaskAssignment); - } - - return calculatedKaleoTaskAssignments; - } - - protected boolean isValidAssignment( - KaleoTaskAssignment kaleoTaskAssignment, Group group) - throws PortalException, SystemException { - - long roleId = kaleoTaskAssignment.getAssigneeClassPK(); - - Role role = RoleLocalServiceUtil.getRole(roleId); - - if (role.getType() == RoleConstants.TYPE_REGULAR) { - return true; - } - else if ((group != null) && group.isOrganization() && - (role.getType() == RoleConstants.TYPE_ORGANIZATION)) { - - return true; - } - else if ((group != null) && group.isSite() && - (role.getType() == RoleConstants.TYPE_SITE)) { - - return true; - } - - return false; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class GroupAwareRoleTaskAssignmentSelector + implements TaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + Group group = null; + + long groupId = kaleoInstanceToken.getGroupId(); + + if (groupId != WorkflowConstants.DEFAULT_GROUP_ID) { + group = GroupLocalServiceUtil.getGroup(groupId); + + if (group.isLayout()) { + group = GroupLocalServiceUtil.getGroup( + group.getParentGroupId()); + } + } + + List calculatedKaleoTaskAssignments = + new ArrayList(); + + if (isValidAssignment(kaleoTaskAssignment, group)) { + calculatedKaleoTaskAssignments.add(kaleoTaskAssignment); + } + + return calculatedKaleoTaskAssignments; + } + + protected boolean isValidAssignment( + KaleoTaskAssignment kaleoTaskAssignment, Group group) + throws PortalException, SystemException { + + long roleId = kaleoTaskAssignment.getAssigneeClassPK(); + + Role role = RoleLocalServiceUtil.getRole(roleId); + + if (role.getType() == RoleConstants.TYPE_REGULAR) { + return true; + } + else if ((group != null) && group.isOrganization() && + (role.getType() == RoleConstants.TYPE_ORGANIZATION)) { + + return true; + } + else if ((group != null) && group.isSite() && + (role.getType() == RoleConstants.TYPE_SITE)) { + + return true; + } + + return false; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/MultiLanguageTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/MultiLanguageTaskAssignmentSelector.java index e4acffbc..78f299da 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/MultiLanguageTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/MultiLanguageTaskAssignmentSelector.java @@ -1,87 +1,87 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.ResourceAction; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; - -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class MultiLanguageTaskAssignmentSelector - extends BaseTaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException { - - String assigneeClassName = kaleoTaskAssignment.getAssigneeClassName(); - - TaskAssignmentSelector taskAssignmentSelector = null; - - if (assigneeClassName.equals(ResourceAction.class.getName())) { - taskAssignmentSelector = _taskAssignmentSelectors.get( - assigneeClassName); - } - else { - String assigneeScriptLanguage = - kaleoTaskAssignment.getAssigneeScriptLanguage(); - - taskAssignmentSelector = _taskAssignmentSelectors.get( - assigneeScriptLanguage); - } - - if (taskAssignmentSelector == null) { - throw new IllegalArgumentException( - "No task assignment selector found for " + - kaleoTaskAssignment.toXmlString()); - } - - Collection taskAssignments = - taskAssignmentSelector.calculateTaskAssignments( - kaleoTaskAssignment, executionContext, classLoaders); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstanceLocalServiceUtil.updateKaleoInstance( - kaleoInstanceToken.getKaleoInstanceId(), - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - return taskAssignments; - } - - public void setTaskAssignmentSelectors( - Map taskAssignmentSelectors) { - - _taskAssignmentSelectors.putAll(taskAssignmentSelectors); - } - - private Map _taskAssignmentSelectors = - new HashMap(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.ResourceAction; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; + +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class MultiLanguageTaskAssignmentSelector + extends BaseTaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException { + + String assigneeClassName = kaleoTaskAssignment.getAssigneeClassName(); + + TaskAssignmentSelector taskAssignmentSelector = null; + + if (assigneeClassName.equals(ResourceAction.class.getName())) { + taskAssignmentSelector = _taskAssignmentSelectors.get( + assigneeClassName); + } + else { + String assigneeScriptLanguage = + kaleoTaskAssignment.getAssigneeScriptLanguage(); + + taskAssignmentSelector = _taskAssignmentSelectors.get( + assigneeScriptLanguage); + } + + if (taskAssignmentSelector == null) { + throw new IllegalArgumentException( + "No task assignment selector found for " + + kaleoTaskAssignment.toXmlString()); + } + + Collection taskAssignments = + taskAssignmentSelector.calculateTaskAssignments( + kaleoTaskAssignment, executionContext, classLoaders); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstanceLocalServiceUtil.updateKaleoInstance( + kaleoInstanceToken.getKaleoInstanceId(), + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + return taskAssignments; + } + + public void setTaskAssignmentSelectors( + Map taskAssignmentSelectors) { + + _taskAssignmentSelectors.putAll(taskAssignmentSelectors); + } + + private Map _taskAssignmentSelectors = + new HashMap(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ResourceActionTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ResourceActionTaskAssignmentSelector.java index 8091355f..58bf0941 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ResourceActionTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ResourceActionTaskAssignmentSelector.java @@ -1,81 +1,81 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.ResourceConstants; -import com.liferay.portal.model.Role; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - * @author Eduardo Lundgren - */ -public class ResourceActionTaskAssignmentSelector - extends BaseTaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws SystemException { - - ServiceContext serviceContext = executionContext.getServiceContext(); - - Map workflowContext = - executionContext.getWorkflowContext(); - - ServiceContext workflowContextServiceContext = - (ServiceContext)workflowContext.get( - WorkflowConstants.CONTEXT_SERVICE_CONTEXT); - - String resourceName = GetterUtil.getString( - (String)workflowContextServiceContext.getAttribute( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME), - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - - String resourceClassPK = GetterUtil.getString( - (String)workflowContextServiceContext.getAttribute( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK), - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); - - List roles = RoleLocalServiceUtil.getResourceRoles( - serviceContext.getCompanyId(), resourceName, - ResourceConstants.SCOPE_INDIVIDUAL, resourceClassPK, - kaleoTaskAssignment.getAssigneeActionId()); - - List kaleoTaskAssignments = - new ArrayList(roles.size()); - - getRoleKaleoTaskAssignments(roles, kaleoTaskAssignments); - - return kaleoTaskAssignments; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.ResourceConstants; +import com.liferay.portal.model.Role; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + * @author Eduardo Lundgren + */ +public class ResourceActionTaskAssignmentSelector + extends BaseTaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws SystemException { + + ServiceContext serviceContext = executionContext.getServiceContext(); + + Map workflowContext = + executionContext.getWorkflowContext(); + + ServiceContext workflowContextServiceContext = + (ServiceContext)workflowContext.get( + WorkflowConstants.CONTEXT_SERVICE_CONTEXT); + + String resourceName = GetterUtil.getString( + (String)workflowContextServiceContext.getAttribute( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME), + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + + String resourceClassPK = GetterUtil.getString( + (String)workflowContextServiceContext.getAttribute( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK), + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); + + List roles = RoleLocalServiceUtil.getResourceRoles( + serviceContext.getCompanyId(), resourceName, + ResourceConstants.SCOPE_INDIVIDUAL, resourceClassPK, + kaleoTaskAssignment.getAssigneeActionId()); + + List kaleoTaskAssignments = + new ArrayList(roles.size()); + + getRoleKaleoTaskAssignments(roles, kaleoTaskAssignments); + + return kaleoTaskAssignments; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ScriptingLanguagesTaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ScriptingLanguagesTaskAssignmentSelector.java index ed9cd9b5..d47e0574 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ScriptingLanguagesTaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/ScriptingLanguagesTaskAssignmentSelector.java @@ -1,74 +1,74 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.scripting.ScriptingUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.Collection; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class ScriptingLanguagesTaskAssignmentSelector - extends BaseTaskAssignmentSelector { - - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException { - - Map inputObjects = - ScriptingContextBuilderUtil.buildScriptingContext(executionContext); - - String assigneeScript = kaleoTaskAssignment.getAssigneeScript(); - - String assigneeScriptingLanguage = - kaleoTaskAssignment.getAssigneeScriptLanguage(); - - Map results = ScriptingUtil.eval( - null, inputObjects, _outputNames, assigneeScriptingLanguage, - assigneeScript, classLoaders); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - - return getKaleoTaskAssignments(results); - } - - private static Set _outputNames = new HashSet(); - - static { - _outputNames.add(ROLES_ASSIGNMENT); - _outputNames.add(USER_ASSIGNMENT); - _outputNames.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.scripting.ScriptingUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.Collection; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class ScriptingLanguagesTaskAssignmentSelector + extends BaseTaskAssignmentSelector { + + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException { + + Map inputObjects = + ScriptingContextBuilderUtil.buildScriptingContext(executionContext); + + String assigneeScript = kaleoTaskAssignment.getAssigneeScript(); + + String assigneeScriptingLanguage = + kaleoTaskAssignment.getAssigneeScriptLanguage(); + + Map results = ScriptingUtil.eval( + null, inputObjects, _outputNames, assigneeScriptingLanguage, + assigneeScript, classLoaders); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + + return getKaleoTaskAssignments(results); + } + + private static Set _outputNames = new HashSet(); + + static { + _outputNames.add(ROLES_ASSIGNMENT); + _outputNames.add(USER_ASSIGNMENT); + _outputNames.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignerUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignerUtil.java index 27e908a9..79deabb6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignerUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignerUtil.java @@ -1,78 +1,78 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentInstanceLocalServiceUtil; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * @author Marcellus Tavares - */ -public class TaskAssignerUtil { - - public static void reassignKaleoTask( - List kaleoTaskAssignments, - ExecutionContext executionContext) - throws PortalException, SystemException { - - List reassignedKaleoTaskAssignments = - new ArrayList(); - - for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { - String[] assigneeScriptRequiredContexts = StringUtil.split( - kaleoTaskAssignment.getAssigneeScriptRequiredContexts()); - - ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( - assigneeScriptRequiredContexts); - - Collection calculatedKaleoTaskAssignments = - _taskAssignmentSelector.calculateTaskAssignments( - kaleoTaskAssignment, executionContext, classLoaders); - - reassignedKaleoTaskAssignments.addAll( - calculatedKaleoTaskAssignments); - } - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - KaleoTaskAssignmentInstanceLocalServiceUtil. - deleteKaleoTaskAssignmentInstances(kaleoTaskInstanceToken); - - KaleoTaskAssignmentInstanceLocalServiceUtil.addTaskAssignmentInstances( - kaleoTaskInstanceToken, reassignedKaleoTaskAssignments, - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - } - - public void setTaskAssignmentSelector( - TaskAssignmentSelector taskAssignmentSelector) { - - _taskAssignmentSelector = taskAssignmentSelector; - } - - private static TaskAssignmentSelector _taskAssignmentSelector; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentInstanceLocalServiceUtil; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * @author Marcellus Tavares + */ +public class TaskAssignerUtil { + + public static void reassignKaleoTask( + List kaleoTaskAssignments, + ExecutionContext executionContext) + throws PortalException, SystemException { + + List reassignedKaleoTaskAssignments = + new ArrayList(); + + for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { + String[] assigneeScriptRequiredContexts = StringUtil.split( + kaleoTaskAssignment.getAssigneeScriptRequiredContexts()); + + ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( + assigneeScriptRequiredContexts); + + Collection calculatedKaleoTaskAssignments = + _taskAssignmentSelector.calculateTaskAssignments( + kaleoTaskAssignment, executionContext, classLoaders); + + reassignedKaleoTaskAssignments.addAll( + calculatedKaleoTaskAssignments); + } + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + KaleoTaskAssignmentInstanceLocalServiceUtil. + deleteKaleoTaskAssignmentInstances(kaleoTaskInstanceToken); + + KaleoTaskAssignmentInstanceLocalServiceUtil.addTaskAssignmentInstances( + kaleoTaskInstanceToken, reassignedKaleoTaskAssignments, + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + } + + public void setTaskAssignmentSelector( + TaskAssignmentSelector taskAssignmentSelector) { + + _taskAssignmentSelector = taskAssignmentSelector; + } + + private static TaskAssignmentSelector _taskAssignmentSelector; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignmentSelector.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignmentSelector.java index 181e453a..7ca33123 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignmentSelector.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/assignment/TaskAssignmentSelector.java @@ -1,34 +1,34 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.assignment; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Collection; - -/** - * @author Michael C. Han - */ -public interface TaskAssignmentSelector { - - public Collection calculateTaskAssignments( - KaleoTaskAssignment kaleoTaskAssignment, - ExecutionContext executionContext, ClassLoader... classLoaders) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.assignment; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Collection; + +/** + * @author Michael C. Han + */ +public interface TaskAssignmentSelector { + + public Collection calculateTaskAssignments( + KaleoTaskAssignment kaleoTaskAssignment, + ExecutionContext executionContext, ClassLoader... classLoaders) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DefaultDueDateCalculator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DefaultDueDateCalculator.java index 0e5f9f27..ebefe6a3 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DefaultDueDateCalculator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DefaultDueDateCalculator.java @@ -1,61 +1,61 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.calendar; - -import com.liferay.portal.kernel.util.CalendarFactoryUtil; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.DurationScale; - -import java.util.Calendar; -import java.util.Date; - -/** - * @author Michael C. Han - */ -public class DefaultDueDateCalculator implements DueDateCalculator { - - - public Date getDueDate(Date startDate, DelayDuration delayDuration) { - Calendar cal = CalendarFactoryUtil.getCalendar(); - - cal.setTime(startDate); - - DurationScale durationScale = delayDuration.getDurationScale(); - - int duration = (int)Math.round(delayDuration.getDuration()); - - if (durationScale.equals(DurationScale.SECOND)) { - cal.add(Calendar.SECOND, duration); - } - else if (durationScale.equals(DurationScale.MINUTE)) { - cal.add(Calendar.MINUTE, duration); - } - else if (durationScale.equals(DurationScale.HOUR)) { - cal.add(Calendar.HOUR, duration); - } - else if (durationScale.equals(DurationScale.DAY)) { - cal.add(Calendar.DAY_OF_YEAR, duration); - } - else if (durationScale.equals(DurationScale.MONTH)) { - cal.add(Calendar.MONTH, duration); - } - else if (durationScale.equals(DurationScale.YEAR)) { - cal.add(Calendar.YEAR, duration); - } - - return cal.getTime(); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.calendar; + +import com.liferay.portal.kernel.util.CalendarFactoryUtil; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.DurationScale; + +import java.util.Calendar; +import java.util.Date; + +/** + * @author Michael C. Han + */ +public class DefaultDueDateCalculator implements DueDateCalculator { + + + public Date getDueDate(Date startDate, DelayDuration delayDuration) { + Calendar cal = CalendarFactoryUtil.getCalendar(); + + cal.setTime(startDate); + + DurationScale durationScale = delayDuration.getDurationScale(); + + int duration = (int)Math.round(delayDuration.getDuration()); + + if (durationScale.equals(DurationScale.SECOND)) { + cal.add(Calendar.SECOND, duration); + } + else if (durationScale.equals(DurationScale.MINUTE)) { + cal.add(Calendar.MINUTE, duration); + } + else if (durationScale.equals(DurationScale.HOUR)) { + cal.add(Calendar.HOUR, duration); + } + else if (durationScale.equals(DurationScale.DAY)) { + cal.add(Calendar.DAY_OF_YEAR, duration); + } + else if (durationScale.equals(DurationScale.MONTH)) { + cal.add(Calendar.MONTH, duration); + } + else if (durationScale.equals(DurationScale.YEAR)) { + cal.add(Calendar.YEAR, duration); + } + + return cal.getTime(); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DueDateCalculator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DueDateCalculator.java index 6f74cd6b..5500b6b7 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DueDateCalculator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/calendar/DueDateCalculator.java @@ -1,28 +1,28 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.calendar; - -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; - -import java.util.Date; - -/** - * @author Michael C. Han - */ -public interface DueDateCalculator { - - public Date getDueDate(Date startDate, DelayDuration delayDuration); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.calendar; + +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; + +import java.util.Date; + +/** + * @author Michael C. Han + */ +public interface DueDateCalculator { + + public Date getDueDate(Date startDate, DelayDuration delayDuration); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ConditionEvaluator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ConditionEvaluator.java index 1cbf342f..ba578f2a 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ConditionEvaluator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ConditionEvaluator.java @@ -1,32 +1,32 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.condition; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -/** - * @author Michael C. Han - */ -public interface ConditionEvaluator { - - public String evaluate( - KaleoCondition kaleoCondition, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.condition; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +/** + * @author Michael C. Han + */ +public interface ConditionEvaluator { + + public String evaluate( + KaleoCondition kaleoCondition, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/DRLConditionEvaluator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/DRLConditionEvaluator.java index 8a836058..ed6800aa 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/DRLConditionEvaluator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/DRLConditionEvaluator.java @@ -1,77 +1,77 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.condition; - -import com.liferay.portal.kernel.bi.rules.Fact; -import com.liferay.portal.kernel.bi.rules.Query; -import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; -import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.resource.StringResourceRetriever; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class DRLConditionEvaluator implements ConditionEvaluator { - - - public String evaluate( - KaleoCondition kaleoCondition, ExecutionContext executionContext, - ClassLoader... classloaders) - throws PortalException, SystemException { - - List> facts = RulesContextBuilder.buildRulesContext( - executionContext); - - RulesResourceRetriever rulesResourceRetriever = - new RulesResourceRetriever( - new StringResourceRetriever(kaleoCondition.getScript())); - - Query query = Query.createStandardQuery(); - - Map results = RulesEngineUtil.execute( - rulesResourceRetriever, facts, query, classloaders); - - String returnValue = (String)results.get(_RETURN_VALUE); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - - if (returnValue != null) { - return returnValue; - } - - throw new IllegalStateException( - "Conditional did not return value for script " + - kaleoCondition.getScript()); - } - - private static final String _RETURN_VALUE = "returnValue"; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.condition; + +import com.liferay.portal.kernel.bi.rules.Fact; +import com.liferay.portal.kernel.bi.rules.Query; +import com.liferay.portal.kernel.bi.rules.RulesEngineUtil; +import com.liferay.portal.kernel.bi.rules.RulesResourceRetriever; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.resource.StringResourceRetriever; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.RulesContextBuilder; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class DRLConditionEvaluator implements ConditionEvaluator { + + + public String evaluate( + KaleoCondition kaleoCondition, ExecutionContext executionContext, + ClassLoader... classloaders) + throws PortalException, SystemException { + + List> facts = RulesContextBuilder.buildRulesContext( + executionContext); + + RulesResourceRetriever rulesResourceRetriever = + new RulesResourceRetriever( + new StringResourceRetriever(kaleoCondition.getScript())); + + Query query = Query.createStandardQuery(); + + Map results = RulesEngineUtil.execute( + rulesResourceRetriever, facts, query, classloaders); + + String returnValue = (String)results.get(_RETURN_VALUE); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + + if (returnValue != null) { + return returnValue; + } + + throw new IllegalStateException( + "Conditional did not return value for script " + + kaleoCondition.getScript()); + } + + private static final String _RETURN_VALUE = "returnValue"; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/MultiLanguageConditionEvaluator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/MultiLanguageConditionEvaluator.java index bb64daa1..3b7a0a87 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/MultiLanguageConditionEvaluator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/MultiLanguageConditionEvaluator.java @@ -1,69 +1,69 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.condition; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.definition.ScriptLanguage; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class MultiLanguageConditionEvaluator implements ConditionEvaluator { - - - public String evaluate( - KaleoCondition kaleoCondition, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws PortalException, SystemException { - - ScriptLanguage scriptLanguage = ScriptLanguage.parse( - kaleoCondition.getScriptLanguage()); - - ConditionEvaluator conditionEvaluator = _conditionEvaluators.get( - scriptLanguage); - - if (conditionEvaluator == null) { - throw new IllegalArgumentException( - "No condition evaluator found for script language " + - scriptLanguage); - } - - return conditionEvaluator.evaluate( - kaleoCondition, executionContext, classLoaders); - } - - public void setConditionEvaluators( - Map conditionEvaluators) { - - for (Map.Entry entry : - conditionEvaluators.entrySet()) { - - ScriptLanguage scriptLanguage = ScriptLanguage.parse( - entry.getKey()); - - _conditionEvaluators.put(scriptLanguage, entry.getValue()); - } - } - - private Map _conditionEvaluators = - new HashMap(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.condition; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.definition.ScriptLanguage; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class MultiLanguageConditionEvaluator implements ConditionEvaluator { + + + public String evaluate( + KaleoCondition kaleoCondition, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws PortalException, SystemException { + + ScriptLanguage scriptLanguage = ScriptLanguage.parse( + kaleoCondition.getScriptLanguage()); + + ConditionEvaluator conditionEvaluator = _conditionEvaluators.get( + scriptLanguage); + + if (conditionEvaluator == null) { + throw new IllegalArgumentException( + "No condition evaluator found for script language " + + scriptLanguage); + } + + return conditionEvaluator.evaluate( + kaleoCondition, executionContext, classLoaders); + } + + public void setConditionEvaluators( + Map conditionEvaluators) { + + for (Map.Entry entry : + conditionEvaluators.entrySet()) { + + ScriptLanguage scriptLanguage = ScriptLanguage.parse( + entry.getKey()); + + _conditionEvaluators.put(scriptLanguage, entry.getValue()); + } + } + + private Map _conditionEvaluators = + new HashMap(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ScriptingConditionEvaluator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ScriptingConditionEvaluator.java index fe5124bf..f8a15cdf 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ScriptingConditionEvaluator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/condition/ScriptingConditionEvaluator.java @@ -1,77 +1,77 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.condition; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.scripting.ScriptingUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class ScriptingConditionEvaluator implements ConditionEvaluator { - - - public String evaluate( - KaleoCondition kaleoCondition, ExecutionContext executionContext, - ClassLoader... classLoaders) - throws PortalException, SystemException { - - Map inputObjects = - ScriptingContextBuilderUtil.buildScriptingContext(executionContext); - - Map results = ScriptingUtil.eval( - null, inputObjects, _outputNames, - kaleoCondition.getScriptLanguage(), kaleoCondition.getScript(), - classLoaders); - - Map resultsWorkflowContext = - (Map)results.get( - WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - - WorkflowContextUtil.mergeWorkflowContexts( - executionContext, resultsWorkflowContext); - - String returnValue = (String)results.get(_RETURN_VALUE); - - if (returnValue != null) { - return returnValue; - } - - throw new IllegalStateException( - "Conditional did not return value for script " + - kaleoCondition.getScript()); - } - - private static final String _RETURN_VALUE = "returnValue"; - - private static Set _outputNames = new HashSet(); - - static { - _outputNames.add(_RETURN_VALUE); - _outputNames.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.condition; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.scripting.ScriptingUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.util.ScriptingContextBuilderUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class ScriptingConditionEvaluator implements ConditionEvaluator { + + + public String evaluate( + KaleoCondition kaleoCondition, ExecutionContext executionContext, + ClassLoader... classLoaders) + throws PortalException, SystemException { + + Map inputObjects = + ScriptingContextBuilderUtil.buildScriptingContext(executionContext); + + Map results = ScriptingUtil.eval( + null, inputObjects, _outputNames, + kaleoCondition.getScriptLanguage(), kaleoCondition.getScript(), + classLoaders); + + Map resultsWorkflowContext = + (Map)results.get( + WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + + WorkflowContextUtil.mergeWorkflowContexts( + executionContext, resultsWorkflowContext); + + String returnValue = (String)results.get(_RETURN_VALUE); + + if (returnValue != null) { + return returnValue; + } + + throw new IllegalStateException( + "Conditional did not return value for script " + + kaleoCondition.getScript()); + } + + private static final String _RETURN_VALUE = "returnValue"; + + private static Set _outputNames = new HashSet(); + + static { + _outputNames.add(_RETURN_VALUE); + _outputNames.add(WorkflowContextUtil.WORKFLOW_CONTEXT_NAME); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/DefaultGraphWalker.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/DefaultGraphWalker.java index 71740674..fcc53e7f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/DefaultGraphWalker.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/DefaultGraphWalker.java @@ -1,74 +1,74 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.graph; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; -import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; -import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; - -import java.util.List; - -/** - * @author Michael C. Han - */ -@Transactional( - isolation = Isolation.PORTAL, propagation = Propagation.REQUIRES_NEW, - rollbackFor = {Exception.class}) -public class DefaultGraphWalker extends BaseKaleoBean implements GraphWalker { - - - public void follow( - KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, - List remainingPathElements, - ExecutionContext executionContext) - throws PortalException, SystemException { - - if (sourceKaleoNode != null) { - NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( - sourceKaleoNode.getType()); - - nodeExecutor.exit( - sourceKaleoNode, executionContext, remainingPathElements); - } - - if (targetKaleoNode != null) { - kaleoLogLocalService.addNodeEntryKaleoLog( - executionContext.getKaleoInstanceToken(), sourceKaleoNode, - targetKaleoNode, executionContext.getServiceContext()); - - NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( - targetKaleoNode.getType()); - - boolean performExecute = nodeExecutor.enter( - targetKaleoNode, executionContext); - - if (performExecute) { - nodeExecutor.execute( - targetKaleoNode, executionContext, remainingPathElements); - } - } - - ExecutionUtil.checkKaleoInstanceComplete(executionContext); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.graph; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutor; +import com.liferay.portal.workflow.kaleo.runtime.node.NodeExecutorFactory; +import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; + +import java.util.List; + +/** + * @author Michael C. Han + */ +@Transactional( + isolation = Isolation.PORTAL, propagation = Propagation.REQUIRES_NEW, + rollbackFor = {Exception.class}) +public class DefaultGraphWalker extends BaseKaleoBean implements GraphWalker { + + + public void follow( + KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, + List remainingPathElements, + ExecutionContext executionContext) + throws PortalException, SystemException { + + if (sourceKaleoNode != null) { + NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( + sourceKaleoNode.getType()); + + nodeExecutor.exit( + sourceKaleoNode, executionContext, remainingPathElements); + } + + if (targetKaleoNode != null) { + kaleoLogLocalService.addNodeEntryKaleoLog( + executionContext.getKaleoInstanceToken(), sourceKaleoNode, + targetKaleoNode, executionContext.getServiceContext()); + + NodeExecutor nodeExecutor = NodeExecutorFactory.getNodeExecutor( + targetKaleoNode.getType()); + + boolean performExecute = nodeExecutor.enter( + targetKaleoNode, executionContext); + + if (performExecute) { + nodeExecutor.execute( + targetKaleoNode, executionContext, remainingPathElements); + } + } + + ExecutionUtil.checkKaleoInstanceComplete(executionContext); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/GraphWalker.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/GraphWalker.java index 82a19202..2afc2c03 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/GraphWalker.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/GraphWalker.java @@ -1,35 +1,35 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.graph; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public interface GraphWalker { - - public void follow( - KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, - List remainingPathElements, - ExecutionContext executionContext) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.graph; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public interface GraphWalker { + + public void follow( + KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, + List remainingPathElements, + ExecutionContext executionContext) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/PathElement.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/PathElement.java index 9f984e7a..bedef3bd 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/PathElement.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/PathElement.java @@ -1,52 +1,52 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.graph; - -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.io.Serializable; - -/** - * @author Michael C. Han - */ -public class PathElement implements Serializable { - - public PathElement( - KaleoNode startKaleoNode, KaleoNode targetKaleoNode, - ExecutionContext executionContext) { - - _startNode = startKaleoNode; - _targetNode = targetKaleoNode; - _executionContext = executionContext; - } - - public ExecutionContext getExecutionContext() { - return _executionContext; - } - - public KaleoNode getStartNode() { - return _startNode; - } - - public KaleoNode getTargetNode() { - return _targetNode; - } - - private ExecutionContext _executionContext; - private KaleoNode _startNode; - private KaleoNode _targetNode; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.graph; + +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.io.Serializable; + +/** + * @author Michael C. Han + */ +public class PathElement implements Serializable { + + public PathElement( + KaleoNode startKaleoNode, KaleoNode targetKaleoNode, + ExecutionContext executionContext) { + + _startNode = startKaleoNode; + _targetNode = targetKaleoNode; + _executionContext = executionContext; + } + + public ExecutionContext getExecutionContext() { + return _executionContext; + } + + public KaleoNode getStartNode() { + return _startNode; + } + + public KaleoNode getTargetNode() { + return _targetNode; + } + + private ExecutionContext _executionContext; + private KaleoNode _startNode; + private KaleoNode _targetNode; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/messaging/PathElementMessageListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/messaging/PathElementMessageListener.java index 0631ad55..d391ad73 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/messaging/PathElementMessageListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/graph/messaging/PathElementMessageListener.java @@ -1,66 +1,66 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.graph.messaging; - -import com.liferay.portal.kernel.messaging.BaseMessageListener; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageBusUtil; -import com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender; -import com.liferay.portal.kernel.messaging.sender.SingleDestinationMessageSender; -import com.liferay.portal.workflow.kaleo.runtime.graph.GraphWalker; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class PathElementMessageListener extends BaseMessageListener { - - public void setDestinationName(String destinationName) { - DefaultSingleDestinationMessageSender singleDestinationMessageSender = - new DefaultSingleDestinationMessageSender(); - - singleDestinationMessageSender.setDestinationName(destinationName); - singleDestinationMessageSender.setMessageSender( - MessageBusUtil.getMessageSender()); - - _singleDestinationMessageSender = singleDestinationMessageSender; - } - - public void setGraphWalker(GraphWalker graphWalker) { - _graphWalker = graphWalker; - } - - - protected void doReceive(Message message) throws Exception { - PathElement pathElement = (PathElement)message.getPayload(); - - List remainingPathElements = new ArrayList(); - - _graphWalker.follow( - pathElement.getStartNode(), pathElement.getTargetNode(), - remainingPathElements, pathElement.getExecutionContext()); - - for (PathElement remainingPathElement : remainingPathElements) { - _singleDestinationMessageSender.send(remainingPathElement); - } - } - - private GraphWalker _graphWalker; - private SingleDestinationMessageSender _singleDestinationMessageSender; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.graph.messaging; + +import com.liferay.portal.kernel.messaging.BaseMessageListener; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.messaging.MessageBusUtil; +import com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender; +import com.liferay.portal.kernel.messaging.sender.SingleDestinationMessageSender; +import com.liferay.portal.workflow.kaleo.runtime.graph.GraphWalker; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class PathElementMessageListener extends BaseMessageListener { + + public void setDestinationName(String destinationName) { + DefaultSingleDestinationMessageSender singleDestinationMessageSender = + new DefaultSingleDestinationMessageSender(); + + singleDestinationMessageSender.setDestinationName(destinationName); + singleDestinationMessageSender.setMessageSender( + MessageBusUtil.getMessageSender()); + + _singleDestinationMessageSender = singleDestinationMessageSender; + } + + public void setGraphWalker(GraphWalker graphWalker) { + _graphWalker = graphWalker; + } + + + protected void doReceive(Message message) throws Exception { + PathElement pathElement = (PathElement)message.getPayload(); + + List remainingPathElements = new ArrayList(); + + _graphWalker.follow( + pathElement.getStartNode(), pathElement.getTargetNode(), + remainingPathElements, pathElement.getExecutionContext()); + + for (PathElement remainingPathElement : remainingPathElements) { + _singleDestinationMessageSender.send(remainingPathElement); + } + } + + private GraphWalker _graphWalker; + private SingleDestinationMessageSender _singleDestinationMessageSender; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/BaseNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/BaseNodeExecutor.java index 962ec08f..14ed77d6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/BaseNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/BaseNodeExecutor.java @@ -1,152 +1,152 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.BaseKaleoBean; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; -import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; -import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public abstract class BaseNodeExecutor - extends BaseKaleoBean implements NodeExecutor { - - - public boolean enter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - kaleoInstanceToken.setCurrentKaleoNode(currentKaleoNode); - - boolean performExecute = doEnter(currentKaleoNode, executionContext); - - ActionExecutorUtil.executeKaleoActions( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_ENTRY, executionContext); - - NotificationUtil.sendKaleoNotifications( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_ENTRY, executionContext); - - List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId()); - - kaleoTimerInstanceTokenLocalService.addKaleoTimerInstanceTokens( - executionContext.getKaleoInstanceToken(), - executionContext.getKaleoTaskInstanceToken(), kaleoTimers, - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - return performExecute; - } - - - public void execute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - if (ExecutionUtil.isKaleoInstanceBlocked(executionContext)) { - return; - } - - doExecute(currentKaleoNode, executionContext, remainingPathElements); - } - - - public void executeTimer( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - ServiceContext serviceContext = executionContext.getServiceContext(); - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - executionContext.getKaleoTimerInstanceToken(); - - KaleoTimer kaleoTimer = kaleoTimerInstanceToken.getKaleoTimer(); - - ActionExecutorUtil.executeKaleoActions( - KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId(), - ExecutionType.ON_TIMER, executionContext); - - NotificationUtil.sendKaleoNotifications( - KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId(), - ExecutionType.ON_TIMER, executionContext); - - doExecuteTimer(currentKaleoNode, kaleoTimer, executionContext); - - if (!kaleoTimer.isRecurring()) { - kaleoTimerInstanceTokenLocalService.completeKaleoTimerInstanceToken( - kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId(), - serviceContext); - } - } - - - public void exit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - ExecutionUtil.completeKaleoTimerInstances(executionContext); - - doExit(currentKaleoNode, executionContext, remainingPathElements); - - ActionExecutorUtil.executeKaleoActions( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_EXIT, executionContext); - - NotificationUtil.sendKaleoNotifications( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_EXIT, executionContext); - } - - protected abstract boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException; - - protected abstract void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException; - - protected abstract void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) - throws PortalException, SystemException; - - protected abstract void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.BaseKaleoBean; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; +import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; +import com.liferay.portal.workflow.kaleo.runtime.util.ExecutionUtil; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public abstract class BaseNodeExecutor + extends BaseKaleoBean implements NodeExecutor { + + + public boolean enter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + kaleoInstanceToken.setCurrentKaleoNode(currentKaleoNode); + + boolean performExecute = doEnter(currentKaleoNode, executionContext); + + ActionExecutorUtil.executeKaleoActions( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_ENTRY, executionContext); + + NotificationUtil.sendKaleoNotifications( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_ENTRY, executionContext); + + List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId()); + + kaleoTimerInstanceTokenLocalService.addKaleoTimerInstanceTokens( + executionContext.getKaleoInstanceToken(), + executionContext.getKaleoTaskInstanceToken(), kaleoTimers, + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + return performExecute; + } + + + public void execute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + if (ExecutionUtil.isKaleoInstanceBlocked(executionContext)) { + return; + } + + doExecute(currentKaleoNode, executionContext, remainingPathElements); + } + + + public void executeTimer( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + ServiceContext serviceContext = executionContext.getServiceContext(); + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + executionContext.getKaleoTimerInstanceToken(); + + KaleoTimer kaleoTimer = kaleoTimerInstanceToken.getKaleoTimer(); + + ActionExecutorUtil.executeKaleoActions( + KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId(), + ExecutionType.ON_TIMER, executionContext); + + NotificationUtil.sendKaleoNotifications( + KaleoTimer.class.getName(), kaleoTimer.getKaleoTimerId(), + ExecutionType.ON_TIMER, executionContext); + + doExecuteTimer(currentKaleoNode, kaleoTimer, executionContext); + + if (!kaleoTimer.isRecurring()) { + kaleoTimerInstanceTokenLocalService.completeKaleoTimerInstanceToken( + kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId(), + serviceContext); + } + } + + + public void exit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + ExecutionUtil.completeKaleoTimerInstances(executionContext); + + doExit(currentKaleoNode, executionContext, remainingPathElements); + + ActionExecutorUtil.executeKaleoActions( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_EXIT, executionContext); + + NotificationUtil.sendKaleoNotifications( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_EXIT, executionContext); + } + + protected abstract boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException; + + protected abstract void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException; + + protected abstract void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) + throws PortalException, SystemException; + + protected abstract void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ConditionNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ConditionNodeExecutor.java index 4dfa3280..68ec947d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ConditionNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ConditionNodeExecutor.java @@ -1,103 +1,103 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.condition.ConditionEvaluator; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; -import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class ConditionNodeExecutor extends BaseNodeExecutor { - - public void setConditionEvaluator(ConditionEvaluator conditionEvaluator) { - _conditionEvaluator = conditionEvaluator; - } - - - protected boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) { - - return true; - } - - - protected void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoCondition kaleoCondition = - kaleoConditionLocalService.getKaleoNodeKaleoCondition( - currentKaleoNode.getKaleoNodeId()); - - String[] scriptRequiredContexts = StringUtil.split( - kaleoCondition.getScriptRequiredContexts()); - - ClassLoader[] classloaders = ClassLoaderUtil.getClassLoaders( - scriptRequiredContexts); - - String transitionName = _conditionEvaluator.evaluate( - kaleoCondition, executionContext, classloaders); - - kaleoInstanceLocalService.updateKaleoInstance( - kaleoInstanceToken.getKaleoInstanceId(), - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - KaleoTransition kaleoTransition = currentKaleoNode.getKaleoTransition( - transitionName); - - ExecutionContext newExecutionContext = new ExecutionContext( - kaleoInstanceToken, executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = new PathElement( - currentKaleoNode, kaleoTransition.getTargetKaleoNode(), - newExecutionContext); - - remainingPathElements.add(pathElement); - } - - - protected void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) { - } - - - protected void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) { - } - - private ConditionEvaluator _conditionEvaluator; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.condition.ConditionEvaluator; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; +import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class ConditionNodeExecutor extends BaseNodeExecutor { + + public void setConditionEvaluator(ConditionEvaluator conditionEvaluator) { + _conditionEvaluator = conditionEvaluator; + } + + + protected boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) { + + return true; + } + + + protected void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoCondition kaleoCondition = + kaleoConditionLocalService.getKaleoNodeKaleoCondition( + currentKaleoNode.getKaleoNodeId()); + + String[] scriptRequiredContexts = StringUtil.split( + kaleoCondition.getScriptRequiredContexts()); + + ClassLoader[] classloaders = ClassLoaderUtil.getClassLoaders( + scriptRequiredContexts); + + String transitionName = _conditionEvaluator.evaluate( + kaleoCondition, executionContext, classloaders); + + kaleoInstanceLocalService.updateKaleoInstance( + kaleoInstanceToken.getKaleoInstanceId(), + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + KaleoTransition kaleoTransition = currentKaleoNode.getKaleoTransition( + transitionName); + + ExecutionContext newExecutionContext = new ExecutionContext( + kaleoInstanceToken, executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = new PathElement( + currentKaleoNode, kaleoTransition.getTargetKaleoNode(), + newExecutionContext); + + remainingPathElements.add(pathElement); + } + + + protected void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) { + } + + + protected void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) { + } + + private ConditionEvaluator _conditionEvaluator; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ForkNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ForkNodeExecutor.java index 576e82fc..fe09afe8 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ForkNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/ForkNodeExecutor.java @@ -1,96 +1,96 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class ForkNodeExecutor extends BaseNodeExecutor { - - - protected boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) { - - return true; - } - - - protected void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - List kaleoTransitions = - currentKaleoNode.getKaleoTransitions(); - - Map childKaleoInstanceTokens = - new HashMap(); - - for (KaleoTransition kaleoTransition : kaleoTransitions) { - KaleoInstanceToken parentKaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstanceToken childKaleoInstanceToken = - kaleoInstanceTokenLocalService.addKaleoInstanceToken( - parentKaleoInstanceToken.getKaleoInstanceTokenId(), - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - childKaleoInstanceTokens.put( - kaleoTransition.getName(), childKaleoInstanceToken); - } - - for (KaleoTransition kaleoTransition : kaleoTransitions) { - KaleoInstanceToken childKaleoInstanceToken = - childKaleoInstanceTokens.get(kaleoTransition.getName()); - - ExecutionContext forkedExecutionContext = new ExecutionContext( - childKaleoInstanceToken, executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = new PathElement( - currentKaleoNode, kaleoTransition.getTargetKaleoNode(), - forkedExecutionContext); - - remainingPathElements.add(pathElement); - } - } - - - protected void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) { - } - - - protected void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) { - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class ForkNodeExecutor extends BaseNodeExecutor { + + + protected boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) { + + return true; + } + + + protected void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + List kaleoTransitions = + currentKaleoNode.getKaleoTransitions(); + + Map childKaleoInstanceTokens = + new HashMap(); + + for (KaleoTransition kaleoTransition : kaleoTransitions) { + KaleoInstanceToken parentKaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstanceToken childKaleoInstanceToken = + kaleoInstanceTokenLocalService.addKaleoInstanceToken( + parentKaleoInstanceToken.getKaleoInstanceTokenId(), + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + childKaleoInstanceTokens.put( + kaleoTransition.getName(), childKaleoInstanceToken); + } + + for (KaleoTransition kaleoTransition : kaleoTransitions) { + KaleoInstanceToken childKaleoInstanceToken = + childKaleoInstanceTokens.get(kaleoTransition.getName()); + + ExecutionContext forkedExecutionContext = new ExecutionContext( + childKaleoInstanceToken, executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = new PathElement( + currentKaleoNode, kaleoTransition.getTargetKaleoNode(), + forkedExecutionContext); + + remainingPathElements.add(pathElement); + } + } + + + protected void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) { + } + + + protected void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) { + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinNodeExecutor.java index b87cc9dd..36f24bfb 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinNodeExecutor.java @@ -1,96 +1,96 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class JoinNodeExecutor extends BaseNodeExecutor { - - - protected boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - kaleoInstanceTokenLocalService.completeKaleoInstanceToken( - kaleoInstanceToken.getKaleoInstanceTokenId()); - - return true; - } - - - protected void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstanceToken parentKaleoInstanceToken = - kaleoInstanceToken.getParentKaleoInstanceToken(); - - if (parentKaleoInstanceToken. - hasIncompleteChildrenKaleoInstanceToken()) { - - return; - } - - parentKaleoInstanceToken = - kaleoInstanceTokenLocalService.updateKaleoInstanceToken( - parentKaleoInstanceToken.getKaleoInstanceTokenId(), - currentKaleoNode.getKaleoNodeId()); - - KaleoTransition kaleoTransition = - currentKaleoNode.getDefaultKaleoTransition(); - - ExecutionContext newExecutionContext = new ExecutionContext( - parentKaleoInstanceToken, executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = new PathElement( - currentKaleoNode, kaleoTransition.getTargetKaleoNode(), - newExecutionContext); - - remainingPathElements.add(pathElement); - } - - - protected void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) { - } - - - protected void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) { - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class JoinNodeExecutor extends BaseNodeExecutor { + + + protected boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + kaleoInstanceTokenLocalService.completeKaleoInstanceToken( + kaleoInstanceToken.getKaleoInstanceTokenId()); + + return true; + } + + + protected void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstanceToken parentKaleoInstanceToken = + kaleoInstanceToken.getParentKaleoInstanceToken(); + + if (parentKaleoInstanceToken. + hasIncompleteChildrenKaleoInstanceToken()) { + + return; + } + + parentKaleoInstanceToken = + kaleoInstanceTokenLocalService.updateKaleoInstanceToken( + parentKaleoInstanceToken.getKaleoInstanceTokenId(), + currentKaleoNode.getKaleoNodeId()); + + KaleoTransition kaleoTransition = + currentKaleoNode.getDefaultKaleoTransition(); + + ExecutionContext newExecutionContext = new ExecutionContext( + parentKaleoInstanceToken, executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = new PathElement( + currentKaleoNode, kaleoTransition.getTargetKaleoNode(), + newExecutionContext); + + remainingPathElements.add(pathElement); + } + + + protected void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) { + } + + + protected void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) { + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinXorNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinXorNodeExecutor.java index 8bd045b4..22450922 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinXorNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/JoinXorNodeExecutor.java @@ -1,124 +1,124 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class JoinXorNodeExecutor extends BaseNodeExecutor { - - - protected boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - kaleoInstanceToken = - kaleoInstanceTokenLocalService.getKaleoInstanceToken( - kaleoInstanceToken.getKaleoInstanceTokenId()); - - if (kaleoInstanceToken.isCompleted()) { - return false; - } - - kaleoInstanceToken = - kaleoInstanceTokenLocalService.completeKaleoInstanceToken( - kaleoInstanceToken.getKaleoInstanceTokenId()); - - KaleoInstanceToken parentKaleoInstanceToken = - kaleoInstanceToken.getParentKaleoInstanceToken(); - - if (!parentKaleoInstanceToken. - hasIncompleteChildrenKaleoInstanceToken()) { - - return false; - } - - List childrenKaleoInstanceTokens = - parentKaleoInstanceToken.getChildrenKaleoInstanceTokens(); - - for (KaleoInstanceToken childrenKaleoInstanceToken : - childrenKaleoInstanceTokens) { - - kaleoInstanceTokenLocalService.completeKaleoInstanceToken( - childrenKaleoInstanceToken.getKaleoInstanceTokenId()); - } - - return true; - } - - - protected void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstanceToken parentKaleoInstanceToken = - kaleoInstanceToken.getParentKaleoInstanceToken(); - - if (parentKaleoInstanceToken.getCurrentKaleoNodeId() == - currentKaleoNode.getKaleoNodeId()) { - - return; - } - - parentKaleoInstanceToken = - kaleoInstanceTokenLocalService.updateKaleoInstanceToken( - parentKaleoInstanceToken.getKaleoInstanceTokenId(), - currentKaleoNode.getKaleoNodeId()); - - KaleoTransition kaleoTransition = - currentKaleoNode.getDefaultKaleoTransition(); - - ExecutionContext newExecutionContext = new ExecutionContext( - parentKaleoInstanceToken, executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = new PathElement( - currentKaleoNode, kaleoTransition.getTargetKaleoNode(), - newExecutionContext); - - remainingPathElements.add(pathElement); - } - - - protected void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) { - } - - - protected void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) { - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class JoinXorNodeExecutor extends BaseNodeExecutor { + + + protected boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + kaleoInstanceToken = + kaleoInstanceTokenLocalService.getKaleoInstanceToken( + kaleoInstanceToken.getKaleoInstanceTokenId()); + + if (kaleoInstanceToken.isCompleted()) { + return false; + } + + kaleoInstanceToken = + kaleoInstanceTokenLocalService.completeKaleoInstanceToken( + kaleoInstanceToken.getKaleoInstanceTokenId()); + + KaleoInstanceToken parentKaleoInstanceToken = + kaleoInstanceToken.getParentKaleoInstanceToken(); + + if (!parentKaleoInstanceToken. + hasIncompleteChildrenKaleoInstanceToken()) { + + return false; + } + + List childrenKaleoInstanceTokens = + parentKaleoInstanceToken.getChildrenKaleoInstanceTokens(); + + for (KaleoInstanceToken childrenKaleoInstanceToken : + childrenKaleoInstanceTokens) { + + kaleoInstanceTokenLocalService.completeKaleoInstanceToken( + childrenKaleoInstanceToken.getKaleoInstanceTokenId()); + } + + return true; + } + + + protected void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstanceToken parentKaleoInstanceToken = + kaleoInstanceToken.getParentKaleoInstanceToken(); + + if (parentKaleoInstanceToken.getCurrentKaleoNodeId() == + currentKaleoNode.getKaleoNodeId()) { + + return; + } + + parentKaleoInstanceToken = + kaleoInstanceTokenLocalService.updateKaleoInstanceToken( + parentKaleoInstanceToken.getKaleoInstanceTokenId(), + currentKaleoNode.getKaleoNodeId()); + + KaleoTransition kaleoTransition = + currentKaleoNode.getDefaultKaleoTransition(); + + ExecutionContext newExecutionContext = new ExecutionContext( + parentKaleoInstanceToken, executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = new PathElement( + currentKaleoNode, kaleoTransition.getTargetKaleoNode(), + newExecutionContext); + + remainingPathElements.add(pathElement); + } + + + protected void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) { + } + + + protected void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) { + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutor.java index 90add746..d61f9195 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutor.java @@ -1,48 +1,48 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public interface NodeExecutor { - - public boolean enter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException; - - public void execute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException; - - public void executeTimer( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException; - - public void exit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public interface NodeExecutor { + + public boolean enter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException; + + public void execute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException; + + public void executeTimer( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException; + + public void exit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutorFactory.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutorFactory.java index 177c2298..4dea9c75 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutorFactory.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/NodeExecutorFactory.java @@ -1,37 +1,37 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NodeExecutorFactory { - - public static NodeExecutor getNodeExecutor(String nodeTypeString) { - return _nodeExecutors.getNodeTypeDependentObjects(nodeTypeString); - } - - public void setNodeExectors(Map nodeExecutors) { - _nodeExecutors.setNodeTypeDependentObjects(nodeExecutors); - } - - private static NodeTypeDependentObjectRegistry - _nodeExecutors = new NodeTypeDependentObjectRegistry(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.workflow.kaleo.util.NodeTypeDependentObjectRegistry; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NodeExecutorFactory { + + public static NodeExecutor getNodeExecutor(String nodeTypeString) { + return _nodeExecutors.getNodeTypeDependentObjects(nodeTypeString); + } + + public void setNodeExectors(Map nodeExecutors) { + _nodeExecutors.setNodeTypeDependentObjects(nodeExecutors); + } + + private static NodeTypeDependentObjectRegistry + _nodeExecutors = new NodeTypeDependentObjectRegistry(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/StateNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/StateNodeExecutor.java index 5ad36e09..a6434c62 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/StateNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/StateNodeExecutor.java @@ -1,115 +1,115 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class StateNodeExecutor extends BaseNodeExecutor { - - private final static String NAME_SIGNAL = "SIGNAL"; - - public static boolean isSignalNode(KaleoNode kaleoNode) { - return kaleoNode.getName().toUpperCase().startsWith(NAME_SIGNAL); - } - - protected boolean doEnter(KaleoNode currentKaleoNode, ExecutionContext executionContext) { - - return true; - } - - - protected void doExecute(KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) throws PortalException, SystemException { - - if (isSignalNode(currentKaleoNode)) { - return; - } - - KaleoInstanceToken kaleoInstanceToken = executionContext.getKaleoInstanceToken(); - - String transitionName = executionContext.getTransitionName(); - - if (!currentKaleoNode.hasKaleoTransition()) { - kaleoInstanceToken = - kaleoInstanceTokenLocalService.completeKaleoInstanceToken(kaleoInstanceToken.getKaleoInstanceTokenId()); - - if (kaleoInstanceToken.getParentKaleoInstanceTokenId() == KaleoInstanceTokenImpl.DEFAULT_PARENT_KALEO_INSTANCE_TOKEN_ID) { - - kaleoInstanceLocalService.completeKaleoInstance(kaleoInstanceToken.getKaleoInstanceId()); - } - - return; - } - - KaleoTransition kaleoTransition = null; - - if (Validator.isNull(transitionName)) { - kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); - } else { - kaleoTransition = currentKaleoNode.getKaleoTransition(transitionName); - } - - ExecutionContext newExecutionContext = - new ExecutionContext(kaleoInstanceToken, executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = - new PathElement(currentKaleoNode, kaleoTransition.getTargetKaleoNode(), newExecutionContext); - - remainingPathElements.add(pathElement); - } - - - protected void doExecuteTimer(KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, ExecutionContext executionContext) {} - - - protected void doExit(KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) throws PortalException, SystemException { - - if (isSignalNode(currentKaleoNode)) { - - String transitionName = executionContext.getTransitionName(); - - KaleoTransition kaleoTransition = null; - - if (Validator.isNull(transitionName)) { - kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); - } else { - kaleoTransition = currentKaleoNode.getKaleoTransition(transitionName); - } - - ExecutionContext newExecutionContext = - new ExecutionContext(executionContext.getKaleoInstanceToken(), executionContext.getKaleoTaskInstanceToken(), - executionContext.getWorkflowContext(), executionContext.getServiceContext()); - - PathElement pathElement = new PathElement(null, kaleoTransition.getTargetKaleoNode(), newExecutionContext); - - remainingPathElements.add(pathElement); - } - } - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class StateNodeExecutor extends BaseNodeExecutor { + + private final static String NAME_SIGNAL = "SIGNAL"; + + public static boolean isSignalNode(KaleoNode kaleoNode) { + return kaleoNode.getName().toUpperCase().startsWith(NAME_SIGNAL); + } + + protected boolean doEnter(KaleoNode currentKaleoNode, ExecutionContext executionContext) { + + return true; + } + + + protected void doExecute(KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) throws PortalException, SystemException { + + if (isSignalNode(currentKaleoNode)) { + return; + } + + KaleoInstanceToken kaleoInstanceToken = executionContext.getKaleoInstanceToken(); + + String transitionName = executionContext.getTransitionName(); + + if (!currentKaleoNode.hasKaleoTransition()) { + kaleoInstanceToken = + kaleoInstanceTokenLocalService.completeKaleoInstanceToken(kaleoInstanceToken.getKaleoInstanceTokenId()); + + if (kaleoInstanceToken.getParentKaleoInstanceTokenId() == KaleoInstanceTokenImpl.DEFAULT_PARENT_KALEO_INSTANCE_TOKEN_ID) { + + kaleoInstanceLocalService.completeKaleoInstance(kaleoInstanceToken.getKaleoInstanceId()); + } + + return; + } + + KaleoTransition kaleoTransition = null; + + if (Validator.isNull(transitionName)) { + kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); + } else { + kaleoTransition = currentKaleoNode.getKaleoTransition(transitionName); + } + + ExecutionContext newExecutionContext = + new ExecutionContext(kaleoInstanceToken, executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = + new PathElement(currentKaleoNode, kaleoTransition.getTargetKaleoNode(), newExecutionContext); + + remainingPathElements.add(pathElement); + } + + + protected void doExecuteTimer(KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, ExecutionContext executionContext) {} + + + protected void doExit(KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) throws PortalException, SystemException { + + if (isSignalNode(currentKaleoNode)) { + + String transitionName = executionContext.getTransitionName(); + + KaleoTransition kaleoTransition = null; + + if (Validator.isNull(transitionName)) { + kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); + } else { + kaleoTransition = currentKaleoNode.getKaleoTransition(transitionName); + } + + ExecutionContext newExecutionContext = + new ExecutionContext(executionContext.getKaleoInstanceToken(), executionContext.getKaleoTaskInstanceToken(), + executionContext.getWorkflowContext(), executionContext.getServiceContext()); + + PathElement pathElement = new PathElement(null, kaleoTransition.getTargetKaleoNode(), newExecutionContext); + + remainingPathElements.add(pathElement); + } + } + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/TaskNodeExecutor.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/TaskNodeExecutor.java index 6b83aef5..f89ed426 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/TaskNodeExecutor.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/node/TaskNodeExecutor.java @@ -1,291 +1,291 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.node; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.Organization; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.DurationScale; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; -import com.liferay.portal.workflow.kaleo.runtime.assignment.TaskAssignerUtil; -import com.liferay.portal.workflow.kaleo.runtime.assignment.TaskAssignmentSelector; -import com.liferay.portal.workflow.kaleo.runtime.calendar.DueDateCalculator; -import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; -import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; -import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; - -/** - * @author Michael C. Han - */ -public class TaskNodeExecutor extends BaseNodeExecutor { - - public void setDueDateCalculator(DueDateCalculator dueDateCalculator) { - _dueDateCalculator = dueDateCalculator; - } - - public void setTaskAssignmentSelector( - TaskAssignmentSelector taskAssignmentSelector) { - - _taskAssignmentSelector = taskAssignmentSelector; - } - - protected Date calculateDueDate(KaleoTask kaleoTask) - throws SystemException { - - List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( - KaleoNode.class.getName(), kaleoTask.getKaleoNodeId()); - - if (kaleoTimers.isEmpty()) { - return null; - } - - TreeSet sortedDueDates = new TreeSet(); - - for (KaleoTimer kaleoTimer : kaleoTimers) { - DelayDuration delayDuration = new DelayDuration( - kaleoTimer.getDuration(), - DurationScale.parse(kaleoTimer.getScale())); - - Date dueDate = _dueDateCalculator.getDueDate( - new Date(), delayDuration); - - sortedDueDates.add(dueDate); - } - - return sortedDueDates.first(); - } - - protected KaleoTaskInstanceToken createTaskInstanceToken( - ExecutionContext executionContext, - Map workflowContext, - ServiceContext serviceContext, - KaleoInstanceToken kaleoInstanceToken, KaleoTask kaleoTask, - Date dueDate) - throws PortalException, SystemException { - - Collection configuredKaleoTaskAssignments = - kaleoTask.getKaleoTaskAssignments(); - - Collection kaleoTaskAssignments = - new ArrayList(); - - for (KaleoTaskAssignment configuredKaleoTaskAssignment : - configuredKaleoTaskAssignments) { - - String[] assigneeScriptRequiredContexts = StringUtil.split( - configuredKaleoTaskAssignment. - getAssigneeScriptRequiredContexts()); - - ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( - assigneeScriptRequiredContexts); - - Collection calculatedKaleoTaskAssignments = - _taskAssignmentSelector.calculateTaskAssignments( - configuredKaleoTaskAssignment, executionContext, - classLoaders); - - kaleoTaskAssignments.addAll(calculatedKaleoTaskAssignments); - } - - if (kaleoTaskAssignments.isEmpty()) { - Collection organizationKaleoTaskAssignments = - getOrganizationKaleoTaskAssignments( - configuredKaleoTaskAssignments, executionContext); - - kaleoTaskAssignments.addAll(organizationKaleoTaskAssignments); - } - - return kaleoTaskInstanceTokenLocalService.addKaleoTaskInstanceToken( - kaleoInstanceToken.getKaleoInstanceTokenId(), - kaleoTask.getKaleoTaskId(), kaleoTask.getName(), - kaleoTaskAssignments, dueDate, workflowContext, serviceContext); - } - - - protected boolean doEnter( - KaleoNode currentKaleoNode, ExecutionContext executionContext) - throws PortalException, SystemException { - - Map workflowContext = - executionContext.getWorkflowContext(); - ServiceContext serviceContext = executionContext.getServiceContext(); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoTask kaleoTask = kaleoTaskLocalService.getKaleoNodeKaleoTask( - currentKaleoNode.getKaleoNodeId()); - - Date dueDate = calculateDueDate(kaleoTask); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = createTaskInstanceToken( - executionContext, workflowContext, serviceContext, - kaleoInstanceToken, kaleoTask, dueDate); - - executionContext.setKaleoTaskInstanceToken(kaleoTaskInstanceToken); - - ActionExecutorUtil.executeKaleoActions( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_ASSIGNMENT, executionContext); - - NotificationUtil.sendKaleoNotifications( - KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), - ExecutionType.ON_ASSIGNMENT, executionContext); - - kaleoLogLocalService.addTaskAssignmentKaleoLog( - null, kaleoTaskInstanceToken, "Assigned initial task.", - workflowContext, serviceContext); - - return true; - } - - - protected void doExecute( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) { - } - - - protected void doExecuteTimer( - KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, - ExecutionContext executionContext) - throws PortalException, SystemException { - - List kaleoTaskReassignments = - kaleoTimer.getKaleoTaskReassignments(); - - if (kaleoTaskReassignments.isEmpty()) { - return; - } - - TaskAssignerUtil.reassignKaleoTask( - kaleoTaskReassignments, executionContext); - } - - - protected void doExit( - KaleoNode currentKaleoNode, ExecutionContext executionContext, - List remainingPathElements) - throws PortalException, SystemException { - - String transitionName = executionContext.getTransitionName(); - - KaleoTransition kaleoTransition = null; - - if (Validator.isNull(transitionName)) { - kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); - } - else { - kaleoTransition = currentKaleoNode.getKaleoTransition( - transitionName); - } - - ExecutionContext newExecutionContext = new ExecutionContext( - executionContext.getKaleoInstanceToken(), - executionContext.getKaleoTaskInstanceToken(), - executionContext.getWorkflowContext(), - executionContext.getServiceContext()); - - PathElement pathElement = new PathElement( - null, kaleoTransition.getTargetKaleoNode(), newExecutionContext); - - remainingPathElements.add(pathElement); - } - - protected Collection - getOrganizationKaleoTaskAssignments( - Collection kaleoTaskAssignments, - ExecutionContext executionContext) - throws PortalException, SystemException { - - long userId = executionContext.getKaleoInstanceToken().getUserId(); - - User user = UserLocalServiceUtil.getUser(userId); - - List organizations = user.getOrganizations(); - - Collection organizationKaleoTaskAssignments = - new HashSet(); - - for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { - String assigneeClassName = - kaleoTaskAssignment.getAssigneeClassName(); - - if (!assigneeClassName.equals(Role.class.getName())) { - continue; - } - - long roleId = kaleoTaskAssignment.getAssigneeClassPK(); - - Role role = RoleLocalServiceUtil.getRole(roleId); - - if (role.getType() != RoleConstants.TYPE_ORGANIZATION) { - continue; - } - - for (Organization organization : organizations) { - KaleoTaskAssignment organizationKaleoTaskAssignment = - new KaleoTaskAssignmentImpl(); - - organizationKaleoTaskAssignment.setGroupId( - organization.getGroup().getGroupId()); - organizationKaleoTaskAssignment.setCompanyId( - kaleoTaskAssignment.getCompanyId()); - organizationKaleoTaskAssignment.setAssigneeClassName( - kaleoTaskAssignment.getAssigneeClassName()); - organizationKaleoTaskAssignment.setAssigneeClassPK( - kaleoTaskAssignment.getAssigneeClassPK()); - - organizationKaleoTaskAssignments.add( - organizationKaleoTaskAssignment); - } - } - - return organizationKaleoTaskAssignments; - } - - private DueDateCalculator _dueDateCalculator; - private TaskAssignmentSelector _taskAssignmentSelector; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.node; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.Organization; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.DurationScale; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; +import com.liferay.portal.workflow.kaleo.runtime.assignment.TaskAssignerUtil; +import com.liferay.portal.workflow.kaleo.runtime.assignment.TaskAssignmentSelector; +import com.liferay.portal.workflow.kaleo.runtime.calendar.DueDateCalculator; +import com.liferay.portal.workflow.kaleo.runtime.graph.PathElement; +import com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil; +import com.liferay.portal.workflow.kaleo.runtime.util.ClassLoaderUtil; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.TreeSet; + +/** + * @author Michael C. Han + */ +public class TaskNodeExecutor extends BaseNodeExecutor { + + public void setDueDateCalculator(DueDateCalculator dueDateCalculator) { + _dueDateCalculator = dueDateCalculator; + } + + public void setTaskAssignmentSelector( + TaskAssignmentSelector taskAssignmentSelector) { + + _taskAssignmentSelector = taskAssignmentSelector; + } + + protected Date calculateDueDate(KaleoTask kaleoTask) + throws SystemException { + + List kaleoTimers = kaleoTimerLocalService.getKaleoTimers( + KaleoNode.class.getName(), kaleoTask.getKaleoNodeId()); + + if (kaleoTimers.isEmpty()) { + return null; + } + + TreeSet sortedDueDates = new TreeSet(); + + for (KaleoTimer kaleoTimer : kaleoTimers) { + DelayDuration delayDuration = new DelayDuration( + kaleoTimer.getDuration(), + DurationScale.parse(kaleoTimer.getScale())); + + Date dueDate = _dueDateCalculator.getDueDate( + new Date(), delayDuration); + + sortedDueDates.add(dueDate); + } + + return sortedDueDates.first(); + } + + protected KaleoTaskInstanceToken createTaskInstanceToken( + ExecutionContext executionContext, + Map workflowContext, + ServiceContext serviceContext, + KaleoInstanceToken kaleoInstanceToken, KaleoTask kaleoTask, + Date dueDate) + throws PortalException, SystemException { + + Collection configuredKaleoTaskAssignments = + kaleoTask.getKaleoTaskAssignments(); + + Collection kaleoTaskAssignments = + new ArrayList(); + + for (KaleoTaskAssignment configuredKaleoTaskAssignment : + configuredKaleoTaskAssignments) { + + String[] assigneeScriptRequiredContexts = StringUtil.split( + configuredKaleoTaskAssignment. + getAssigneeScriptRequiredContexts()); + + ClassLoader[] classLoaders = ClassLoaderUtil.getClassLoaders( + assigneeScriptRequiredContexts); + + Collection calculatedKaleoTaskAssignments = + _taskAssignmentSelector.calculateTaskAssignments( + configuredKaleoTaskAssignment, executionContext, + classLoaders); + + kaleoTaskAssignments.addAll(calculatedKaleoTaskAssignments); + } + + if (kaleoTaskAssignments.isEmpty()) { + Collection organizationKaleoTaskAssignments = + getOrganizationKaleoTaskAssignments( + configuredKaleoTaskAssignments, executionContext); + + kaleoTaskAssignments.addAll(organizationKaleoTaskAssignments); + } + + return kaleoTaskInstanceTokenLocalService.addKaleoTaskInstanceToken( + kaleoInstanceToken.getKaleoInstanceTokenId(), + kaleoTask.getKaleoTaskId(), kaleoTask.getName(), + kaleoTaskAssignments, dueDate, workflowContext, serviceContext); + } + + + protected boolean doEnter( + KaleoNode currentKaleoNode, ExecutionContext executionContext) + throws PortalException, SystemException { + + Map workflowContext = + executionContext.getWorkflowContext(); + ServiceContext serviceContext = executionContext.getServiceContext(); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoTask kaleoTask = kaleoTaskLocalService.getKaleoNodeKaleoTask( + currentKaleoNode.getKaleoNodeId()); + + Date dueDate = calculateDueDate(kaleoTask); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = createTaskInstanceToken( + executionContext, workflowContext, serviceContext, + kaleoInstanceToken, kaleoTask, dueDate); + + executionContext.setKaleoTaskInstanceToken(kaleoTaskInstanceToken); + + ActionExecutorUtil.executeKaleoActions( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_ASSIGNMENT, executionContext); + + NotificationUtil.sendKaleoNotifications( + KaleoNode.class.getName(), currentKaleoNode.getKaleoNodeId(), + ExecutionType.ON_ASSIGNMENT, executionContext); + + kaleoLogLocalService.addTaskAssignmentKaleoLog( + null, kaleoTaskInstanceToken, "Assigned initial task.", + workflowContext, serviceContext); + + return true; + } + + + protected void doExecute( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) { + } + + + protected void doExecuteTimer( + KaleoNode currentKaleoNode, KaleoTimer kaleoTimer, + ExecutionContext executionContext) + throws PortalException, SystemException { + + List kaleoTaskReassignments = + kaleoTimer.getKaleoTaskReassignments(); + + if (kaleoTaskReassignments.isEmpty()) { + return; + } + + TaskAssignerUtil.reassignKaleoTask( + kaleoTaskReassignments, executionContext); + } + + + protected void doExit( + KaleoNode currentKaleoNode, ExecutionContext executionContext, + List remainingPathElements) + throws PortalException, SystemException { + + String transitionName = executionContext.getTransitionName(); + + KaleoTransition kaleoTransition = null; + + if (Validator.isNull(transitionName)) { + kaleoTransition = currentKaleoNode.getDefaultKaleoTransition(); + } + else { + kaleoTransition = currentKaleoNode.getKaleoTransition( + transitionName); + } + + ExecutionContext newExecutionContext = new ExecutionContext( + executionContext.getKaleoInstanceToken(), + executionContext.getKaleoTaskInstanceToken(), + executionContext.getWorkflowContext(), + executionContext.getServiceContext()); + + PathElement pathElement = new PathElement( + null, kaleoTransition.getTargetKaleoNode(), newExecutionContext); + + remainingPathElements.add(pathElement); + } + + protected Collection + getOrganizationKaleoTaskAssignments( + Collection kaleoTaskAssignments, + ExecutionContext executionContext) + throws PortalException, SystemException { + + long userId = executionContext.getKaleoInstanceToken().getUserId(); + + User user = UserLocalServiceUtil.getUser(userId); + + List organizations = user.getOrganizations(); + + Collection organizationKaleoTaskAssignments = + new HashSet(); + + for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { + String assigneeClassName = + kaleoTaskAssignment.getAssigneeClassName(); + + if (!assigneeClassName.equals(Role.class.getName())) { + continue; + } + + long roleId = kaleoTaskAssignment.getAssigneeClassPK(); + + Role role = RoleLocalServiceUtil.getRole(roleId); + + if (role.getType() != RoleConstants.TYPE_ORGANIZATION) { + continue; + } + + for (Organization organization : organizations) { + KaleoTaskAssignment organizationKaleoTaskAssignment = + new KaleoTaskAssignmentImpl(); + + organizationKaleoTaskAssignment.setGroupId( + organization.getGroup().getGroupId()); + organizationKaleoTaskAssignment.setCompanyId( + kaleoTaskAssignment.getCompanyId()); + organizationKaleoTaskAssignment.setAssigneeClassName( + kaleoTaskAssignment.getAssigneeClassName()); + organizationKaleoTaskAssignment.setAssigneeClassPK( + kaleoTaskAssignment.getAssigneeClassPK()); + + organizationKaleoTaskAssignments.add( + organizationKaleoTaskAssignment); + } + } + + return organizationKaleoTaskAssignments; + } + + private DueDateCalculator _dueDateCalculator; + private TaskAssignmentSelector _taskAssignmentSelector; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/BaseNotificationSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/BaseNotificationSender.java index 3acbe906..cc919905 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/BaseNotificationSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/BaseNotificationSender.java @@ -1,255 +1,255 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.model.UserGroupGroupRole; -import com.liferay.portal.model.UserGroupRole; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.definition.RecipientType; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public abstract class BaseNotificationSender implements NotificationSender { - - - public void sendNotification( - List kaleoNotificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws NotificationMessageSenderException { - - try { - Set notificationRecipients = - getNotificationRecipients( - kaleoNotificationRecipients, executionContext); - - if (notificationRecipients.isEmpty()) { - return; - } - - doSendNotification( - notificationRecipients, defaultSubject, notificationMessage, - executionContext); - } - catch (Exception e) { - throw new NotificationMessageSenderException( - "Unable to send notification message", e); - } - } - - protected void addAssignedRecipients( - Set notificationRecipients, - ExecutionContext executionContext) - throws Exception { - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - if (kaleoTaskInstanceToken == null) { - return; - } - - List kaleoTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : - kaleoTaskAssignmentInstances) { - - String assigneeClassName = - kaleoTaskAssignmentInstance.getAssigneeClassName(); - - if (assigneeClassName.equals(User.class.getName())) { - addUserNotificationRecipient( - notificationRecipients, - kaleoTaskAssignmentInstance.getAssigneeClassPK(), - executionContext); - } - else { - long roleId = kaleoTaskAssignmentInstance.getAssigneeClassPK(); - - Role role = RoleLocalServiceUtil.getRole(roleId); - - addRoleRecipientAddresses( - notificationRecipients, roleId, role.getType(), - executionContext); - } - } - } - - protected void addRoleRecipientAddresses( - Set notificationRecipients, long roleId, - int roleType, ExecutionContext executionContext) - throws Exception { - - List users = getRoleUsers(roleId, roleType, executionContext); - - for (User user : users) { - if (user.isActive()) { - NotificationRecipient notificationRecipient = - new NotificationRecipient(user); - - notificationRecipients.add(notificationRecipient); - } - } - } - - protected void addUserNotificationRecipient( - Set notificationRecipients, long userId, - ExecutionContext executionContext) - throws Exception { - - if (userId <= 0) { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - userId = kaleoInstance.getUserId(); - } - - User user = UserLocalServiceUtil.getUser(userId); - - if (user.isActive()) { - NotificationRecipient notificationRecipient = - new NotificationRecipient(user); - - notificationRecipients.add(notificationRecipient); - } - } - - protected abstract void doSendNotification( - Set notificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws Exception; - - protected Set getNotificationRecipients( - List kaleoNotificationRecipients, - ExecutionContext executionContext) - throws Exception { - - Set notificationRecipients = - new HashSet(); - - if (kaleoNotificationRecipients.isEmpty()) { - addAssignedRecipients(notificationRecipients, executionContext); - - return notificationRecipients; - } - - for (KaleoNotificationRecipient kaleoNotificationRecipient : - kaleoNotificationRecipients) { - - String recipientClassName = - kaleoNotificationRecipient.getRecipientClassName(); - - if (recipientClassName.equals(RecipientType.ADDRESS.name())) { - String address = kaleoNotificationRecipient.getAddress(); - - NotificationRecipient notificationRecipient = - new NotificationRecipient(address); - - notificationRecipients.add(notificationRecipient); - } - else if (recipientClassName.equals( - RecipientType.ASSIGNEES.name())) { - - addAssignedRecipients(notificationRecipients, executionContext); - } - else if (recipientClassName.equals(Role.class.getName())) { - addRoleRecipientAddresses( - notificationRecipients, - kaleoNotificationRecipient.getRecipientClassPK(), - kaleoNotificationRecipient.getRecipientRoleType(), - executionContext); - } - else if (recipientClassName.equals(User.class.getName())) { - addUserNotificationRecipient( - notificationRecipients, - kaleoNotificationRecipient.getRecipientClassPK(), - executionContext); - } - else { - if (_log.isWarnEnabled()) { - _log.warn( - "Unsupported recipient " + kaleoNotificationRecipient); - } - } - } - - return notificationRecipients; - } - - protected List getRoleUsers( - long roleId, int roleType, ExecutionContext executionContext) - throws Exception { - - if (roleType == RoleConstants.TYPE_REGULAR) { - return UserLocalServiceUtil.getInheritedRoleUsers( - roleId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - List users = new ArrayList(); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - List userGroupRoles = - UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( - kaleoInstanceToken.getGroupId(), roleId); - - for (UserGroupRole userGroupRole : userGroupRoles) { - users.add(userGroupRole.getUser()); - } - - List userGroupGroupRoles = - UserGroupGroupRoleLocalServiceUtil. - getUserGroupGroupRolesByGroupAndRole( - kaleoInstanceToken.getGroupId(), roleId); - - for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { - users.addAll( - UserLocalServiceUtil.getUserGroupUsers( - userGroupGroupRole.getUserGroupId())); - } - - return users; - } - - private static Log _log = LogFactoryUtil.getLog( - BaseNotificationSender.class); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.model.UserGroupGroupRole; +import com.liferay.portal.model.UserGroupRole; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.definition.RecipientType; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public abstract class BaseNotificationSender implements NotificationSender { + + + public void sendNotification( + List kaleoNotificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws NotificationMessageSenderException { + + try { + Set notificationRecipients = + getNotificationRecipients( + kaleoNotificationRecipients, executionContext); + + if (notificationRecipients.isEmpty()) { + return; + } + + doSendNotification( + notificationRecipients, defaultSubject, notificationMessage, + executionContext); + } + catch (Exception e) { + throw new NotificationMessageSenderException( + "Unable to send notification message", e); + } + } + + protected void addAssignedRecipients( + Set notificationRecipients, + ExecutionContext executionContext) + throws Exception { + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + if (kaleoTaskInstanceToken == null) { + return; + } + + List kaleoTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : + kaleoTaskAssignmentInstances) { + + String assigneeClassName = + kaleoTaskAssignmentInstance.getAssigneeClassName(); + + if (assigneeClassName.equals(User.class.getName())) { + addUserNotificationRecipient( + notificationRecipients, + kaleoTaskAssignmentInstance.getAssigneeClassPK(), + executionContext); + } + else { + long roleId = kaleoTaskAssignmentInstance.getAssigneeClassPK(); + + Role role = RoleLocalServiceUtil.getRole(roleId); + + addRoleRecipientAddresses( + notificationRecipients, roleId, role.getType(), + executionContext); + } + } + } + + protected void addRoleRecipientAddresses( + Set notificationRecipients, long roleId, + int roleType, ExecutionContext executionContext) + throws Exception { + + List users = getRoleUsers(roleId, roleType, executionContext); + + for (User user : users) { + if (user.isActive()) { + NotificationRecipient notificationRecipient = + new NotificationRecipient(user); + + notificationRecipients.add(notificationRecipient); + } + } + } + + protected void addUserNotificationRecipient( + Set notificationRecipients, long userId, + ExecutionContext executionContext) + throws Exception { + + if (userId <= 0) { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + userId = kaleoInstance.getUserId(); + } + + User user = UserLocalServiceUtil.getUser(userId); + + if (user.isActive()) { + NotificationRecipient notificationRecipient = + new NotificationRecipient(user); + + notificationRecipients.add(notificationRecipient); + } + } + + protected abstract void doSendNotification( + Set notificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws Exception; + + protected Set getNotificationRecipients( + List kaleoNotificationRecipients, + ExecutionContext executionContext) + throws Exception { + + Set notificationRecipients = + new HashSet(); + + if (kaleoNotificationRecipients.isEmpty()) { + addAssignedRecipients(notificationRecipients, executionContext); + + return notificationRecipients; + } + + for (KaleoNotificationRecipient kaleoNotificationRecipient : + kaleoNotificationRecipients) { + + String recipientClassName = + kaleoNotificationRecipient.getRecipientClassName(); + + if (recipientClassName.equals(RecipientType.ADDRESS.name())) { + String address = kaleoNotificationRecipient.getAddress(); + + NotificationRecipient notificationRecipient = + new NotificationRecipient(address); + + notificationRecipients.add(notificationRecipient); + } + else if (recipientClassName.equals( + RecipientType.ASSIGNEES.name())) { + + addAssignedRecipients(notificationRecipients, executionContext); + } + else if (recipientClassName.equals(Role.class.getName())) { + addRoleRecipientAddresses( + notificationRecipients, + kaleoNotificationRecipient.getRecipientClassPK(), + kaleoNotificationRecipient.getRecipientRoleType(), + executionContext); + } + else if (recipientClassName.equals(User.class.getName())) { + addUserNotificationRecipient( + notificationRecipients, + kaleoNotificationRecipient.getRecipientClassPK(), + executionContext); + } + else { + if (_log.isWarnEnabled()) { + _log.warn( + "Unsupported recipient " + kaleoNotificationRecipient); + } + } + } + + return notificationRecipients; + } + + protected List getRoleUsers( + long roleId, int roleType, ExecutionContext executionContext) + throws Exception { + + if (roleType == RoleConstants.TYPE_REGULAR) { + return UserLocalServiceUtil.getInheritedRoleUsers( + roleId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + List users = new ArrayList(); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + List userGroupRoles = + UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( + kaleoInstanceToken.getGroupId(), roleId); + + for (UserGroupRole userGroupRole : userGroupRoles) { + users.add(userGroupRole.getUser()); + } + + List userGroupGroupRoles = + UserGroupGroupRoleLocalServiceUtil. + getUserGroupGroupRolesByGroupAndRole( + kaleoInstanceToken.getGroupId(), roleId); + + for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { + users.addAll( + UserLocalServiceUtil.getUserGroupUsers( + userGroupGroupRole.getUserGroupId())); + } + + return users; + } + + private static Log _log = LogFactoryUtil.getLog( + BaseNotificationSender.class); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/EmailNotificationSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/EmailNotificationSender.java index 39a472ac..1c349eab 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/EmailNotificationSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/EmailNotificationSender.java @@ -1,109 +1,109 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.mail.service.MailServiceUtil; -import com.liferay.portal.kernel.mail.MailMessage; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.io.Serializable; -import java.io.UnsupportedEncodingException; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import javax.mail.internet.AddressException; -import javax.mail.internet.InternetAddress; - -/** - * @author Michael C. Han - */ -public class EmailNotificationSender - extends BaseNotificationSender implements NotificationSender { - - public void setFromAddress(String fromAddress) { - _fromAddress = fromAddress; - } - - public void setFromName(String fromName) { - _fromName = fromName; - } - - - protected void doSendNotification( - Set notificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws Exception { - - Map workflowContext = - executionContext.getWorkflowContext(); - - String fromAddress = (String)workflowContext.get( - WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_ADDRESS); - - if (Validator.isNull(fromAddress)) { - fromAddress = _fromAddress; - } - - String fromName = (String)workflowContext.get( - WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_NAME); - - if (Validator.isNull(fromName)) { - fromName = _fromName; - } - - InternetAddress from = new InternetAddress(fromAddress, fromName); - - String subject = (String)workflowContext.get( - WorkflowConstants.CONTEXT_NOTIFICATION_SUBJECT); - - if (Validator.isNull(subject)) { - subject = defaultSubject; - } - - MailMessage mailMessage = new MailMessage( - from, subject, notificationMessage, true); - - mailMessage.setTo(getInternetAddresses(notificationRecipients)); - - MailServiceUtil.sendEmail(mailMessage); - } - - protected InternetAddress[] getInternetAddresses( - Set notificationRecipients) - throws AddressException, UnsupportedEncodingException { - - List internetAddresses = - new ArrayList(notificationRecipients.size()); - - for (NotificationRecipient notificationRecipient : - notificationRecipients) { - - internetAddresses.add(notificationRecipient.getInternetAddress()); - } - - return internetAddresses.toArray( - new InternetAddress[internetAddresses.size()]); - } - - private String _fromAddress; - private String _fromName; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.mail.service.MailServiceUtil; +import com.liferay.portal.kernel.mail.MailMessage; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.mail.internet.AddressException; +import javax.mail.internet.InternetAddress; + +/** + * @author Michael C. Han + */ +public class EmailNotificationSender + extends BaseNotificationSender implements NotificationSender { + + public void setFromAddress(String fromAddress) { + _fromAddress = fromAddress; + } + + public void setFromName(String fromName) { + _fromName = fromName; + } + + + protected void doSendNotification( + Set notificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws Exception { + + Map workflowContext = + executionContext.getWorkflowContext(); + + String fromAddress = (String)workflowContext.get( + WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_ADDRESS); + + if (Validator.isNull(fromAddress)) { + fromAddress = _fromAddress; + } + + String fromName = (String)workflowContext.get( + WorkflowConstants.CONTEXT_NOTIFICATION_SENDER_NAME); + + if (Validator.isNull(fromName)) { + fromName = _fromName; + } + + InternetAddress from = new InternetAddress(fromAddress, fromName); + + String subject = (String)workflowContext.get( + WorkflowConstants.CONTEXT_NOTIFICATION_SUBJECT); + + if (Validator.isNull(subject)) { + subject = defaultSubject; + } + + MailMessage mailMessage = new MailMessage( + from, subject, notificationMessage, true); + + mailMessage.setTo(getInternetAddresses(notificationRecipients)); + + MailServiceUtil.sendEmail(mailMessage); + } + + protected InternetAddress[] getInternetAddresses( + Set notificationRecipients) + throws AddressException, UnsupportedEncodingException { + + List internetAddresses = + new ArrayList(notificationRecipients.size()); + + for (NotificationRecipient notificationRecipient : + notificationRecipients) { + + internetAddresses.add(notificationRecipient.getInternetAddress()); + } + + return internetAddresses.toArray( + new InternetAddress[internetAddresses.size()]); + } + + private String _fromAddress; + private String _fromName; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/IMNotificationSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/IMNotificationSender.java index ec0c63cd..b94851fb 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/IMNotificationSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/IMNotificationSender.java @@ -1,35 +1,35 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class IMNotificationSender - extends BaseNotificationSender implements NotificationSender { - - - protected void doSendNotification( - Set notificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws Exception { - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class IMNotificationSender + extends BaseNotificationSender implements NotificationSender { + + + protected void doSendNotification( + Set notificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws Exception { + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerationException.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerationException.java index 251b9ab7..984953c6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerationException.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerationException.java @@ -1,40 +1,40 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -/** - * @author Michael C. Han - */ -public class NotificationMessageGenerationException extends WorkflowException { - - public NotificationMessageGenerationException() { - super(); - } - - public NotificationMessageGenerationException(String msg) { - super(msg); - } - - public NotificationMessageGenerationException(String msg, Throwable cause) { - super(msg, cause); - } - - public NotificationMessageGenerationException(Throwable cause) { - super(cause); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +/** + * @author Michael C. Han + */ +public class NotificationMessageGenerationException extends WorkflowException { + + public NotificationMessageGenerationException() { + super(); + } + + public NotificationMessageGenerationException(String msg) { + super(msg); + } + + public NotificationMessageGenerationException(String msg, Throwable cause) { + super(msg, cause); + } + + public NotificationMessageGenerationException(Throwable cause) { + super(cause); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerator.java index 0800a77c..d3c574b6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGenerator.java @@ -1,30 +1,30 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -/** - * @author Michael C. Han - */ -public interface NotificationMessageGenerator { - - public String generateMessage( - String kaleoClassName, long kaleoClassPK, String notificationName, - String notificationTemplateLanguage, String notificationTemplate, - ExecutionContext executionContext) - throws NotificationMessageGenerationException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +/** + * @author Michael C. Han + */ +public interface NotificationMessageGenerator { + + public String generateMessage( + String kaleoClassName, long kaleoClassPK, String notificationName, + String notificationTemplateLanguage, String notificationTemplate, + ExecutionContext executionContext) + throws NotificationMessageGenerationException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGeneratorFactory.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGeneratorFactory.java index 86ce7bd1..5380a6d9 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGeneratorFactory.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageGeneratorFactory.java @@ -1,51 +1,51 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NotificationMessageGeneratorFactory { - - public static NotificationMessageGenerator getNotificationMessageGenerator( - String templateLanguage) - throws WorkflowException { - - NotificationMessageGenerator notificationMessageGenerator = - _notificationMessageGenerators.get(templateLanguage); - - if (notificationMessageGenerator == null) { - throw new WorkflowException( - "Invalid template language " + templateLanguage); - } - - return notificationMessageGenerator; - } - - public void setNotificationMessageGenerators( - Map - notificationMessageGenerators) { - - _notificationMessageGenerators = notificationMessageGenerators; - } - - private static Map - _notificationMessageGenerators; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NotificationMessageGeneratorFactory { + + public static NotificationMessageGenerator getNotificationMessageGenerator( + String templateLanguage) + throws WorkflowException { + + NotificationMessageGenerator notificationMessageGenerator = + _notificationMessageGenerators.get(templateLanguage); + + if (notificationMessageGenerator == null) { + throw new WorkflowException( + "Invalid template language " + templateLanguage); + } + + return notificationMessageGenerator; + } + + public void setNotificationMessageGenerators( + Map + notificationMessageGenerators) { + + _notificationMessageGenerators = notificationMessageGenerators; + } + + private static Map + _notificationMessageGenerators; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageSenderException.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageSenderException.java index 3c893a07..6f54c81b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageSenderException.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationMessageSenderException.java @@ -1,40 +1,40 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -/** - * @author Michael C. Han - */ -public class NotificationMessageSenderException extends WorkflowException { - - public NotificationMessageSenderException() { - super(); - } - - public NotificationMessageSenderException(String msg) { - super(msg); - } - - public NotificationMessageSenderException(String msg, Throwable cause) { - super(msg, cause); - } - - public NotificationMessageSenderException(Throwable cause) { - super(cause); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +/** + * @author Michael C. Han + */ +public class NotificationMessageSenderException extends WorkflowException { + + public NotificationMessageSenderException() { + super(); + } + + public NotificationMessageSenderException(String msg) { + super(msg); + } + + public NotificationMessageSenderException(String msg, Throwable cause) { + super(msg, cause); + } + + public NotificationMessageSenderException(Throwable cause) { + super(cause); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationRecipient.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationRecipient.java index 151b7b21..92ad1647 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationRecipient.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationRecipient.java @@ -1,120 +1,120 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.util.HashCode; -import com.liferay.portal.kernel.util.HashCodeFactoryUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.User; - -import java.io.UnsupportedEncodingException; - -import javax.mail.internet.AddressException; -import javax.mail.internet.InternetAddress; - -/** - * @author Michael C. Han - */ -public class NotificationRecipient { - - public NotificationRecipient(String emailAddress) { - _emailAddress = emailAddress; - } - - public NotificationRecipient(User user) { - _companyId = user.getCompanyId(); - _emailAddress = user.getEmailAddress(); - _fullName = user.getFullName(); - _screenName = user.getScreenName(); - _userId = user.getUserId(); - } - - - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof NotificationRecipient)) { - return false; - } - - NotificationRecipient notificationRecipient = - (NotificationRecipient)obj; - - if (Validator.equals(_companyId, notificationRecipient._companyId) && - Validator.equals( - _emailAddress, notificationRecipient._emailAddress) && - Validator.equals(_userId, notificationRecipient._userId)) { - - return true; - } - - return false; - } - - public long getCompanyId() { - return _companyId; - } - - public String getEmailAddress() { - return _emailAddress; - } - - public String getFullName() { - return _fullName; - } - - public InternetAddress getInternetAddress() - throws AddressException, UnsupportedEncodingException { - - if (Validator.isNull(_fullName)) { - return new InternetAddress(_emailAddress); - } - else { - return new InternetAddress(_emailAddress, _fullName); - } - } - - public String getScreenName() { - return _screenName; - } - - public long getUserId() { - return _userId; - } - - - public int hashCode() { - HashCode hashCode = HashCodeFactoryUtil.getHashCode(); - - hashCode.append(_companyId); - - if (Validator.isNotNull(_emailAddress)) { - hashCode.append(_emailAddress); - } - - hashCode.append(_userId); - - return hashCode.toHashCode(); - } - - private long _companyId; - private String _emailAddress; - private String _fullName; - private String _screenName; - private long _userId; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.util.HashCode; +import com.liferay.portal.kernel.util.HashCodeFactoryUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.User; + +import java.io.UnsupportedEncodingException; + +import javax.mail.internet.AddressException; +import javax.mail.internet.InternetAddress; + +/** + * @author Michael C. Han + */ +public class NotificationRecipient { + + public NotificationRecipient(String emailAddress) { + _emailAddress = emailAddress; + } + + public NotificationRecipient(User user) { + _companyId = user.getCompanyId(); + _emailAddress = user.getEmailAddress(); + _fullName = user.getFullName(); + _screenName = user.getScreenName(); + _userId = user.getUserId(); + } + + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof NotificationRecipient)) { + return false; + } + + NotificationRecipient notificationRecipient = + (NotificationRecipient)obj; + + if (Validator.equals(_companyId, notificationRecipient._companyId) && + Validator.equals( + _emailAddress, notificationRecipient._emailAddress) && + Validator.equals(_userId, notificationRecipient._userId)) { + + return true; + } + + return false; + } + + public long getCompanyId() { + return _companyId; + } + + public String getEmailAddress() { + return _emailAddress; + } + + public String getFullName() { + return _fullName; + } + + public InternetAddress getInternetAddress() + throws AddressException, UnsupportedEncodingException { + + if (Validator.isNull(_fullName)) { + return new InternetAddress(_emailAddress); + } + else { + return new InternetAddress(_emailAddress, _fullName); + } + } + + public String getScreenName() { + return _screenName; + } + + public long getUserId() { + return _userId; + } + + + public int hashCode() { + HashCode hashCode = HashCodeFactoryUtil.getHashCode(); + + hashCode.append(_companyId); + + if (Validator.isNotNull(_emailAddress)) { + hashCode.append(_emailAddress); + } + + hashCode.append(_userId); + + return hashCode.toHashCode(); + } + + private long _companyId; + private String _emailAddress; + private String _fullName; + private String _screenName; + private long _userId; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSender.java index c30f77d7..c9cb056f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSender.java @@ -1,33 +1,33 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public interface NotificationSender { - - public void sendNotification( - List notificationRecipients, - String subject, String notificationMessage, - ExecutionContext executionContext) - throws NotificationMessageSenderException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public interface NotificationSender { + + public void sendNotification( + List notificationRecipients, + String subject, String notificationMessage, + ExecutionContext executionContext) + throws NotificationMessageSenderException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSenderFactory.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSenderFactory.java index f44b7572..d00b3f2f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSenderFactory.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationSenderFactory.java @@ -1,49 +1,49 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.workflow.WorkflowException; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NotificationSenderFactory { - - public static NotificationSender getNotificationSender( - String notificationType) - throws WorkflowException { - - NotificationSender notificationSender = _notificationSenders.get( - notificationType); - - if (notificationSender == null) { - throw new WorkflowException( - "Invalid notification type " + notificationType); - } - - return notificationSender; - } - - public void setNotificationSenders( - Map notificationSenders) { - - _notificationSenders = notificationSenders; - } - - private static Map _notificationSenders; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.workflow.WorkflowException; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NotificationSenderFactory { + + public static NotificationSender getNotificationSender( + String notificationType) + throws WorkflowException { + + NotificationSender notificationSender = _notificationSenders.get( + notificationType); + + if (notificationSender == null) { + throw new WorkflowException( + "Invalid notification type " + notificationType); + } + + return notificationSender; + } + + public void setNotificationSenders( + Map notificationSenders) { + + _notificationSenders = notificationSenders; + } + + private static Map _notificationSenders; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationUtil.java index cf89a408..cd57842b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/NotificationUtil.java @@ -1,86 +1,86 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoNotification; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.service.KaleoNotificationLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoNotificationRecipientLocalServiceUtil; - -import java.util.List; - -/** - * @author Michael C. Han - */ -public class NotificationUtil { - - public static void sendKaleoNotifications( - String kaleoClassName, long kaleoClassPK, - ExecutionType executionType, ExecutionContext executionContext) - throws PortalException, SystemException { - - List kaleoNotifications = - KaleoNotificationLocalServiceUtil.getKaleoNotifications( - kaleoClassName, kaleoClassPK, executionType.getValue()); - - for (KaleoNotification kaleoNotification : kaleoNotifications) { - _sendKaleoNotification(kaleoNotification, executionContext); - } - } - - private static void _sendKaleoNotification( - KaleoNotification kaleoNotification, - ExecutionContext executionContext) - throws PortalException, SystemException { - - NotificationMessageGenerator notificationMessageGenerator = - NotificationMessageGeneratorFactory.getNotificationMessageGenerator( - kaleoNotification.getTemplateLanguage()); - - String notificationMessage = - notificationMessageGenerator.generateMessage( - kaleoNotification.getKaleoClassName(), - kaleoNotification.getKaleoClassPK(), - kaleoNotification.getName(), - kaleoNotification.getTemplateLanguage(), - kaleoNotification.getTemplate(), executionContext); - - String notificationSubject = kaleoNotification.getDescription(); - - String[] notificationTypes = StringUtil.split( - kaleoNotification.getNotificationTypes()); - - List kaleoNotificationRecipient = - KaleoNotificationRecipientLocalServiceUtil. - getKaleoNotificationRecipients( - kaleoNotification.getKaleoNotificationId()); - - for (String notificationType : notificationTypes) { - NotificationSender notificationSender = - NotificationSenderFactory.getNotificationSender( - notificationType); - - notificationSender.sendNotification( - kaleoNotificationRecipient, notificationSubject, - notificationMessage, executionContext); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoNotification; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.service.KaleoNotificationLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoNotificationRecipientLocalServiceUtil; + +import java.util.List; + +/** + * @author Michael C. Han + */ +public class NotificationUtil { + + public static void sendKaleoNotifications( + String kaleoClassName, long kaleoClassPK, + ExecutionType executionType, ExecutionContext executionContext) + throws PortalException, SystemException { + + List kaleoNotifications = + KaleoNotificationLocalServiceUtil.getKaleoNotifications( + kaleoClassName, kaleoClassPK, executionType.getValue()); + + for (KaleoNotification kaleoNotification : kaleoNotifications) { + _sendKaleoNotification(kaleoNotification, executionContext); + } + } + + private static void _sendKaleoNotification( + KaleoNotification kaleoNotification, + ExecutionContext executionContext) + throws PortalException, SystemException { + + NotificationMessageGenerator notificationMessageGenerator = + NotificationMessageGeneratorFactory.getNotificationMessageGenerator( + kaleoNotification.getTemplateLanguage()); + + String notificationMessage = + notificationMessageGenerator.generateMessage( + kaleoNotification.getKaleoClassName(), + kaleoNotification.getKaleoClassPK(), + kaleoNotification.getName(), + kaleoNotification.getTemplateLanguage(), + kaleoNotification.getTemplate(), executionContext); + + String notificationSubject = kaleoNotification.getDescription(); + + String[] notificationTypes = StringUtil.split( + kaleoNotification.getNotificationTypes()); + + List kaleoNotificationRecipient = + KaleoNotificationRecipientLocalServiceUtil. + getKaleoNotificationRecipients( + kaleoNotification.getKaleoNotificationId()); + + for (String notificationType : notificationTypes) { + NotificationSender notificationSender = + NotificationSenderFactory.getNotificationSender( + notificationType); + + notificationSender.sendNotification( + kaleoNotificationRecipient, notificationSubject, + notificationMessage, executionContext); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/PrivateMessageNotificationSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/PrivateMessageNotificationSender.java index af495401..d90d5d05 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/PrivateMessageNotificationSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/PrivateMessageNotificationSender.java @@ -1,35 +1,35 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class PrivateMessageNotificationSender - extends BaseNotificationSender implements NotificationSender { - - - protected void doSendNotification( - Set notificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws Exception { - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class PrivateMessageNotificationSender + extends BaseNotificationSender implements NotificationSender { + + + protected void doSendNotification( + Set notificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws Exception { + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TemplateNotificationMessageGenerator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TemplateNotificationMessageGenerator.java index 735ab0a8..d7569406 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TemplateNotificationMessageGenerator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TemplateNotificationMessageGenerator.java @@ -1,152 +1,152 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.template.StringTemplateResource; -import com.liferay.portal.kernel.template.Template; -import com.liferay.portal.kernel.template.TemplateManagerUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; -import java.io.StringWriter; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author Marcellus Tavares - * @author Michael C. Han - */ -public class TemplateNotificationMessageGenerator - implements NotificationMessageGenerator { - - - public String generateMessage( - String kaleoClassName, long kaleoClassPK, String notificationName, - String notificationTemplateLanguage, String notificationTemplate, - ExecutionContext executionContext) - throws NotificationMessageGenerationException { - - String templateManagerName = _templateManagerNames.get( - notificationTemplateLanguage); - - if (Validator.isNull(templateManagerName)) { - throw new NotificationMessageGenerationException( - "Unsupported notification template language " + - notificationTemplateLanguage); - } - - try { - String templateId = - notificationName + kaleoClassName + kaleoClassPK; - - Template template = TemplateManagerUtil.getTemplate( - templateManagerName, - new StringTemplateResource(templateId, notificationTemplate), - false); - - populateContextVariables(template, executionContext); - - StringWriter stringWriter = new StringWriter(); - - template.processTemplate(stringWriter); - - return stringWriter.toString(); - } - catch (Exception e) { - throw new NotificationMessageGenerationException( - "Unable to generate notification message", e); - } - } - - public void setTemplateManagerNames( - Map templateManagerNames) { - - _templateManagerNames = templateManagerNames; - } - - protected void populateContextVariables( - Template template, ExecutionContext executionContext) - throws Exception { - - Map workflowContext = - executionContext.getWorkflowContext(); - - if (workflowContext == null) { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - workflowContext = WorkflowContextUtil.convert( - kaleoInstance.getWorkflowContext()); - } - - for (Map.Entry entry : - workflowContext.entrySet()) { - - template.put(entry.getKey(), entry.getValue()); - } - - template.put( - "kaleoInstanceToken", executionContext.getKaleoInstanceToken()); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - if (kaleoTaskInstanceToken != null) { - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - template.put("kaleoTaskInstanceToken", kaleoTaskInstanceToken); - template.put("taskName", kaleoTask.getName()); - template.put("userId", kaleoTaskInstanceToken.getUserId()); - template.put("userName", kaleoTaskInstanceToken.getUserName()); - - List workflowTaskAssignees = - KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( - kaleoTaskInstanceToken); - - template.put("workflowTaskAssignees", workflowTaskAssignees); - } - else { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - template.put("userId", kaleoInstanceToken.getUserId()); - template.put("userName", kaleoInstanceToken.getUserName()); - } - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - executionContext.getKaleoTimerInstanceToken(); - - if (kaleoTimerInstanceToken != null) { - template.put("kaleoTimerInstanceToken", kaleoTimerInstanceToken); - } - } - - private Map _templateManagerNames = - new HashMap(); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.template.StringTemplateResource; +import com.liferay.portal.kernel.template.Template; +import com.liferay.portal.kernel.template.TemplateManagerUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; +import java.io.StringWriter; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author Marcellus Tavares + * @author Michael C. Han + */ +public class TemplateNotificationMessageGenerator + implements NotificationMessageGenerator { + + + public String generateMessage( + String kaleoClassName, long kaleoClassPK, String notificationName, + String notificationTemplateLanguage, String notificationTemplate, + ExecutionContext executionContext) + throws NotificationMessageGenerationException { + + String templateManagerName = _templateManagerNames.get( + notificationTemplateLanguage); + + if (Validator.isNull(templateManagerName)) { + throw new NotificationMessageGenerationException( + "Unsupported notification template language " + + notificationTemplateLanguage); + } + + try { + String templateId = + notificationName + kaleoClassName + kaleoClassPK; + + Template template = TemplateManagerUtil.getTemplate( + templateManagerName, + new StringTemplateResource(templateId, notificationTemplate), + false); + + populateContextVariables(template, executionContext); + + StringWriter stringWriter = new StringWriter(); + + template.processTemplate(stringWriter); + + return stringWriter.toString(); + } + catch (Exception e) { + throw new NotificationMessageGenerationException( + "Unable to generate notification message", e); + } + } + + public void setTemplateManagerNames( + Map templateManagerNames) { + + _templateManagerNames = templateManagerNames; + } + + protected void populateContextVariables( + Template template, ExecutionContext executionContext) + throws Exception { + + Map workflowContext = + executionContext.getWorkflowContext(); + + if (workflowContext == null) { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + workflowContext = WorkflowContextUtil.convert( + kaleoInstance.getWorkflowContext()); + } + + for (Map.Entry entry : + workflowContext.entrySet()) { + + template.put(entry.getKey(), entry.getValue()); + } + + template.put( + "kaleoInstanceToken", executionContext.getKaleoInstanceToken()); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + if (kaleoTaskInstanceToken != null) { + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + template.put("kaleoTaskInstanceToken", kaleoTaskInstanceToken); + template.put("taskName", kaleoTask.getName()); + template.put("userId", kaleoTaskInstanceToken.getUserId()); + template.put("userName", kaleoTaskInstanceToken.getUserName()); + + List workflowTaskAssignees = + KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( + kaleoTaskInstanceToken); + + template.put("workflowTaskAssignees", workflowTaskAssignees); + } + else { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + template.put("userId", kaleoInstanceToken.getUserId()); + template.put("userName", kaleoInstanceToken.getUserName()); + } + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + executionContext.getKaleoTimerInstanceToken(); + + if (kaleoTimerInstanceToken != null) { + template.put("kaleoTimerInstanceToken", kaleoTimerInstanceToken); + } + } + + private Map _templateManagerNames = + new HashMap(); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TextNotificationMessageGenerator.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TextNotificationMessageGenerator.java index f69dc28a..d74fe0ee 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TextNotificationMessageGenerator.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/TextNotificationMessageGenerator.java @@ -1,34 +1,34 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -/** - * @author Michael C. Han - */ -public class TextNotificationMessageGenerator - implements NotificationMessageGenerator { - - - public String generateMessage( - String kaleoClassName, long kaleoClassPK, String notificationName, - String notificationTemplateLanguage, String notificationTemplate, - ExecutionContext executionContext) { - - return notificationTemplate; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +/** + * @author Michael C. Han + */ +public class TextNotificationMessageGenerator + implements NotificationMessageGenerator { + + + public String generateMessage( + String kaleoClassName, long kaleoClassPK, String notificationName, + String notificationTemplateLanguage, String notificationTemplate, + ExecutionContext executionContext) { + + return notificationTemplate; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/UserNotificationMessageSender.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/UserNotificationMessageSender.java index faa49d73..3f0b8267 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/UserNotificationMessageSender.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/notification/UserNotificationMessageSender.java @@ -1,116 +1,116 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.notification; - -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.notifications.NotificationEvent; -import com.liferay.portal.kernel.notifications.NotificationEventFactoryUtil; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.service.UserNotificationEventLocalServiceUtil; -import com.liferay.portal.util.PortletKeys; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.io.Serializable; - -import java.util.Map; -import java.util.Set; - -/** - * @author Michael C. Han - */ -public class UserNotificationMessageSender - extends BaseNotificationSender implements NotificationSender { - - - protected void doSendNotification( - Set notificationRecipients, - String defaultSubject, String notificationMessage, - ExecutionContext executionContext) - throws Exception { - - JSONObject jsonObject = populateJSONObject( - notificationMessage, executionContext); - - NotificationEvent notificationEvent = - NotificationEventFactoryUtil.createNotificationEvent( - System.currentTimeMillis(), PortletKeys.MY_WORKFLOW_TASKS, - jsonObject); - - notificationEvent.setDeliveryRequired(0); - - for (NotificationRecipient notificationRecipient : - notificationRecipients) { - - if (notificationRecipient.getUserId() > 0) { - UserNotificationEventLocalServiceUtil.addUserNotificationEvent( - notificationRecipient.getUserId(), notificationEvent); - } - } - } - - protected JSONObject populateJSONObject( - String notificationMessage, ExecutionContext executionContext) { - - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - - Map workflowContext = - executionContext.getWorkflowContext(); - - jsonObject.put( - WorkflowConstants.CONTEXT_COMPANY_ID, - String.valueOf( - workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID))); - jsonObject.put( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - jsonObject.put( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, - String.valueOf( - workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); - jsonObject.put( - WorkflowConstants.CONTEXT_ENTRY_TYPE, - (String)workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_TYPE)); - jsonObject.put( - WorkflowConstants.CONTEXT_GROUP_ID, - String.valueOf( - workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID))); - jsonObject.put( - WorkflowConstants.CONTEXT_USER_ID, - String.valueOf( - workflowContext.get(WorkflowConstants.CONTEXT_USER_ID))); - - jsonObject.put("notificationMessage", notificationMessage); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - jsonObject.put( - "workflowInstanceId", kaleoInstanceToken.getKaleoInstanceId()); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - jsonObject.put( - "workflowTaskId", - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - - return jsonObject; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.notification; + +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.notifications.NotificationEvent; +import com.liferay.portal.kernel.notifications.NotificationEventFactoryUtil; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.service.UserNotificationEventLocalServiceUtil; +import com.liferay.portal.util.PortletKeys; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.io.Serializable; + +import java.util.Map; +import java.util.Set; + +/** + * @author Michael C. Han + */ +public class UserNotificationMessageSender + extends BaseNotificationSender implements NotificationSender { + + + protected void doSendNotification( + Set notificationRecipients, + String defaultSubject, String notificationMessage, + ExecutionContext executionContext) + throws Exception { + + JSONObject jsonObject = populateJSONObject( + notificationMessage, executionContext); + + NotificationEvent notificationEvent = + NotificationEventFactoryUtil.createNotificationEvent( + System.currentTimeMillis(), PortletKeys.MY_WORKFLOW_TASKS, + jsonObject); + + notificationEvent.setDeliveryRequired(0); + + for (NotificationRecipient notificationRecipient : + notificationRecipients) { + + if (notificationRecipient.getUserId() > 0) { + UserNotificationEventLocalServiceUtil.addUserNotificationEvent( + notificationRecipient.getUserId(), notificationEvent); + } + } + } + + protected JSONObject populateJSONObject( + String notificationMessage, ExecutionContext executionContext) { + + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); + + Map workflowContext = + executionContext.getWorkflowContext(); + + jsonObject.put( + WorkflowConstants.CONTEXT_COMPANY_ID, + String.valueOf( + workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID))); + jsonObject.put( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + jsonObject.put( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, + String.valueOf( + workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); + jsonObject.put( + WorkflowConstants.CONTEXT_ENTRY_TYPE, + (String)workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_TYPE)); + jsonObject.put( + WorkflowConstants.CONTEXT_GROUP_ID, + String.valueOf( + workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID))); + jsonObject.put( + WorkflowConstants.CONTEXT_USER_ID, + String.valueOf( + workflowContext.get(WorkflowConstants.CONTEXT_USER_ID))); + + jsonObject.put("notificationMessage", notificationMessage); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + jsonObject.put( + "workflowInstanceId", kaleoInstanceToken.getKaleoInstanceId()); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + jsonObject.put( + "workflowTaskId", + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + + return jsonObject; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/timer/messaging/TimerMessageListener.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/timer/messaging/TimerMessageListener.java index 90028a11..c4670d8f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/timer/messaging/TimerMessageListener.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/timer/messaging/TimerMessageListener.java @@ -1,98 +1,98 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.timer.messaging; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.messaging.BaseMessageListener; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil; -import com.liferay.portal.kernel.scheduler.StorageType; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; -import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.SchedulerUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.Map; - -/** - * @author Marcellus Tavares - */ -public class TimerMessageListener extends BaseMessageListener { - - public void setWorkflowEngine(WorkflowEngine workflowEngine) { - _workflowEngine = workflowEngine; - } - - - protected void doReceive(Message message) throws Exception { - long kaleoTimerInstanceTokenId = message.getLong( - "kaleoTimerInstanceTokenId"); - - try { - KaleoTimerInstanceToken kaleoTimerInstanceToken = - getKaleoTimerInstanceToken(message); - - Map workflowContext = - WorkflowContextUtil.convert( - kaleoTimerInstanceToken.getWorkflowContext()); - - ServiceContext serviceContext = (ServiceContext)workflowContext.get( - WorkflowConstants.CONTEXT_SERVICE_CONTEXT); - - _workflowEngine.executeTimerWorkflowInstance( - kaleoTimerInstanceTokenId, serviceContext, workflowContext); - } - catch (Exception e) { - if (_log.isWarnEnabled()) { - _log.warn( - "Unable to execute scheduled job. Unregistering job " + - message, - e); - } - - String groupName = SchedulerUtil.getGroupName( - kaleoTimerInstanceTokenId); - - SchedulerEngineHelperUtil.delete(groupName, StorageType.PERSISTED); - } - } - - protected KaleoTimerInstanceToken getKaleoTimerInstanceToken( - Message message) - throws PortalException, SystemException { - - long kaleoTimerInstanceTokenId = message.getLong( - "kaleoTimerInstanceTokenId"); - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - KaleoTimerInstanceTokenLocalServiceUtil.getKaleoTimerInstanceToken( - kaleoTimerInstanceTokenId); - - return kaleoTimerInstanceToken; - } - - private static Log _log = LogFactoryUtil.getLog(TimerMessageListener.class); - - private WorkflowEngine _workflowEngine; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.timer.messaging; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.messaging.BaseMessageListener; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil; +import com.liferay.portal.kernel.scheduler.StorageType; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.WorkflowEngine; +import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.SchedulerUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.Map; + +/** + * @author Marcellus Tavares + */ +public class TimerMessageListener extends BaseMessageListener { + + public void setWorkflowEngine(WorkflowEngine workflowEngine) { + _workflowEngine = workflowEngine; + } + + + protected void doReceive(Message message) throws Exception { + long kaleoTimerInstanceTokenId = message.getLong( + "kaleoTimerInstanceTokenId"); + + try { + KaleoTimerInstanceToken kaleoTimerInstanceToken = + getKaleoTimerInstanceToken(message); + + Map workflowContext = + WorkflowContextUtil.convert( + kaleoTimerInstanceToken.getWorkflowContext()); + + ServiceContext serviceContext = (ServiceContext)workflowContext.get( + WorkflowConstants.CONTEXT_SERVICE_CONTEXT); + + _workflowEngine.executeTimerWorkflowInstance( + kaleoTimerInstanceTokenId, serviceContext, workflowContext); + } + catch (Exception e) { + if (_log.isWarnEnabled()) { + _log.warn( + "Unable to execute scheduled job. Unregistering job " + + message, + e); + } + + String groupName = SchedulerUtil.getGroupName( + kaleoTimerInstanceTokenId); + + SchedulerEngineHelperUtil.delete(groupName, StorageType.PERSISTED); + } + } + + protected KaleoTimerInstanceToken getKaleoTimerInstanceToken( + Message message) + throws PortalException, SystemException { + + long kaleoTimerInstanceTokenId = message.getLong( + "kaleoTimerInstanceTokenId"); + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + KaleoTimerInstanceTokenLocalServiceUtil.getKaleoTimerInstanceToken( + kaleoTimerInstanceTokenId); + + return kaleoTimerInstanceToken; + } + + private static Log _log = LogFactoryUtil.getLog(TimerMessageListener.class); + + private WorkflowEngine _workflowEngine; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ClassLoaderUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ClassLoaderUtil.java index 1abe4b01..8bf9fef0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ClassLoaderUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ClassLoaderUtil.java @@ -1,58 +1,58 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.servlet.PluginContextListener; -import com.liferay.portal.kernel.servlet.ServletContextPool; -import com.liferay.portal.kernel.util.PortalClassLoaderUtil; - -import java.util.ArrayList; -import java.util.List; - -import javax.servlet.ServletContext; - -/** - * @author Michael C. Han - */ -public class ClassLoaderUtil { - - public static ClassLoader[] getClassLoaders(String[] servletContextNames) { - List classLoaders = new ArrayList( - servletContextNames.length + 2); - - classLoaders.add(_getContextClassLoader()); - classLoaders.add(PortalClassLoaderUtil.getClassLoader()); - - for (String servletContextName : servletContextNames) { - ServletContext servletContext = ServletContextPool.get( - servletContextName); - - ClassLoader pluginClassLoader = - (ClassLoader)servletContext.getAttribute( - PluginContextListener.PLUGIN_CLASS_LOADER); - - classLoaders.add(pluginClassLoader); - } - - return classLoaders.toArray(new ClassLoader[classLoaders.size()]); - } - - private static ClassLoader _getContextClassLoader() { - Thread currentThread = Thread.currentThread(); - - return currentThread.getContextClassLoader(); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.servlet.PluginContextListener; +import com.liferay.portal.kernel.servlet.ServletContextPool; +import com.liferay.portal.kernel.util.PortalClassLoaderUtil; + +import java.util.ArrayList; +import java.util.List; + +import javax.servlet.ServletContext; + +/** + * @author Michael C. Han + */ +public class ClassLoaderUtil { + + public static ClassLoader[] getClassLoaders(String[] servletContextNames) { + List classLoaders = new ArrayList( + servletContextNames.length + 2); + + classLoaders.add(_getContextClassLoader()); + classLoaders.add(PortalClassLoaderUtil.getClassLoader()); + + for (String servletContextName : servletContextNames) { + ServletContext servletContext = ServletContextPool.get( + servletContextName); + + ClassLoader pluginClassLoader = + (ClassLoader)servletContext.getAttribute( + PluginContextListener.PLUGIN_CLASS_LOADER); + + classLoaders.add(pluginClassLoader); + } + + return classLoaders.toArray(new ClassLoader[classLoaders.size()]); + } + + private static ClassLoader _getContextClassLoader() { + Thread currentThread = Thread.currentThread(); + + return currentThread.getContextClassLoader(); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionContextUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionContextUtil.java index 195a8e87..3efffa29 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionContextUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionContextUtil.java @@ -1,109 +1,109 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.Map; - -/** - * @author Marcellus Tavares - */ -public class ExecutionContextUtil { - - public static String convert(ExecutionContext executionContext) { - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - if (kaleoInstanceToken != null) { - jsonObject.put( - "kaleoInstanceTokenId", - kaleoInstanceToken.getKaleoInstanceTokenId()); - } - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - if (kaleoTaskInstanceToken != null) { - jsonObject.put( - "kaleoTaskInstanceTokenId", - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - } - - Map workflowContext = - executionContext.getWorkflowContext(); - - jsonObject.put( - "workflowContext", WorkflowContextUtil.convert(workflowContext)); - - ServiceContext serviceContext = executionContext.getServiceContext(); - - jsonObject.put( - "serviceContext", JSONFactoryUtil.serialize(serviceContext)); - - jsonObject.put("transitionName", executionContext.getTransitionName()); - - return jsonObject.toString(); - } - - public static ExecutionContext convert(String json) throws Exception { - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(json); - - KaleoInstanceToken kaleoInstanceToken = null; - - long kaleoInstanceTokenId = jsonObject.getLong("kaleoInstanceTokenId"); - - if (kaleoInstanceTokenId > 0) { - kaleoInstanceToken = - KaleoInstanceTokenLocalServiceUtil.getKaleoInstanceToken( - kaleoInstanceTokenId); - } - - KaleoTaskInstanceToken kaleoTaskInstanceToken = null; - - long kaleoTaskInstanceTokenId = jsonObject.getLong( - "kaleoTaskInstanceTokenId"); - - if (kaleoTaskInstanceTokenId > 0) { - kaleoTaskInstanceToken = - KaleoTaskInstanceTokenLocalServiceUtil. - getKaleoTaskInstanceToken(kaleoTaskInstanceTokenId); - } - - Map workflowContext = WorkflowContextUtil.convert( - jsonObject.getString("workflowContext")); - - ServiceContext serviceContext = - (ServiceContext)JSONFactoryUtil.deserialize( - jsonObject.getString("serviceContext")); - - return new ExecutionContext( - kaleoInstanceToken, kaleoTaskInstanceToken, workflowContext, - serviceContext); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.Map; + +/** + * @author Marcellus Tavares + */ +public class ExecutionContextUtil { + + public static String convert(ExecutionContext executionContext) { + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + if (kaleoInstanceToken != null) { + jsonObject.put( + "kaleoInstanceTokenId", + kaleoInstanceToken.getKaleoInstanceTokenId()); + } + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + if (kaleoTaskInstanceToken != null) { + jsonObject.put( + "kaleoTaskInstanceTokenId", + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + } + + Map workflowContext = + executionContext.getWorkflowContext(); + + jsonObject.put( + "workflowContext", WorkflowContextUtil.convert(workflowContext)); + + ServiceContext serviceContext = executionContext.getServiceContext(); + + jsonObject.put( + "serviceContext", JSONFactoryUtil.serialize(serviceContext)); + + jsonObject.put("transitionName", executionContext.getTransitionName()); + + return jsonObject.toString(); + } + + public static ExecutionContext convert(String json) throws Exception { + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(json); + + KaleoInstanceToken kaleoInstanceToken = null; + + long kaleoInstanceTokenId = jsonObject.getLong("kaleoInstanceTokenId"); + + if (kaleoInstanceTokenId > 0) { + kaleoInstanceToken = + KaleoInstanceTokenLocalServiceUtil.getKaleoInstanceToken( + kaleoInstanceTokenId); + } + + KaleoTaskInstanceToken kaleoTaskInstanceToken = null; + + long kaleoTaskInstanceTokenId = jsonObject.getLong( + "kaleoTaskInstanceTokenId"); + + if (kaleoTaskInstanceTokenId > 0) { + kaleoTaskInstanceToken = + KaleoTaskInstanceTokenLocalServiceUtil. + getKaleoTaskInstanceToken(kaleoTaskInstanceTokenId); + } + + Map workflowContext = WorkflowContextUtil.convert( + jsonObject.getString("workflowContext")); + + ServiceContext serviceContext = + (ServiceContext)JSONFactoryUtil.deserialize( + jsonObject.getString("serviceContext")); + + return new ExecutionContext( + kaleoInstanceToken, kaleoTaskInstanceToken, workflowContext, + serviceContext); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionUtil.java index c596052a..084dd21f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ExecutionUtil.java @@ -1,91 +1,91 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalServiceUtil; - -import java.util.List; - -/** - * @author Marcellus Tavares - */ -public class ExecutionUtil { - - public static void checkKaleoInstanceComplete( - ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - if (!kaleoInstanceToken.isCompleted()) { - return; - } - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - if (!kaleoInstance.isCompleted()) { - return; - } - - KaleoLogLocalServiceUtil.addWorkflowInstanceEndKaleoLog( - kaleoInstanceToken, executionContext.getServiceContext()); - } - - public static void completeKaleoTimerInstances( - ExecutionContext executionContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - List kaleoTimerInstanceTokens = - KaleoTimerInstanceTokenLocalServiceUtil.getKaleoTimerInstanceTokens( - kaleoInstanceToken.getKaleoInstanceTokenId(), false, false, - executionContext.getServiceContext()); - - KaleoTimerInstanceTokenLocalServiceUtil. - completeKaleoTimerInstanceTokens( - kaleoTimerInstanceTokens, executionContext.getServiceContext()); - } - - public static boolean isKaleoInstanceBlocked( - ExecutionContext executionContext) - throws SystemException { - - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - int count = - KaleoTimerInstanceTokenLocalServiceUtil. - getKaleoTimerInstanceTokensCount( - kaleoInstanceToken.getKaleoInstanceTokenId(), false, true, - executionContext.getServiceContext()); - - if (count > 0) { - return true; - } - - return false; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTimerInstanceTokenLocalServiceUtil; + +import java.util.List; + +/** + * @author Marcellus Tavares + */ +public class ExecutionUtil { + + public static void checkKaleoInstanceComplete( + ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + if (!kaleoInstanceToken.isCompleted()) { + return; + } + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + if (!kaleoInstance.isCompleted()) { + return; + } + + KaleoLogLocalServiceUtil.addWorkflowInstanceEndKaleoLog( + kaleoInstanceToken, executionContext.getServiceContext()); + } + + public static void completeKaleoTimerInstances( + ExecutionContext executionContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + List kaleoTimerInstanceTokens = + KaleoTimerInstanceTokenLocalServiceUtil.getKaleoTimerInstanceTokens( + kaleoInstanceToken.getKaleoInstanceTokenId(), false, false, + executionContext.getServiceContext()); + + KaleoTimerInstanceTokenLocalServiceUtil. + completeKaleoTimerInstanceTokens( + kaleoTimerInstanceTokens, executionContext.getServiceContext()); + } + + public static boolean isKaleoInstanceBlocked( + ExecutionContext executionContext) + throws SystemException { + + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + int count = + KaleoTimerInstanceTokenLocalServiceUtil. + getKaleoTimerInstanceTokensCount( + kaleoInstanceToken.getKaleoInstanceTokenId(), false, true, + executionContext.getServiceContext()); + + if (count > 0) { + return true; + } + + return false; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/RulesContextBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/RulesContextBuilder.java index 36dbc89b..c5e57c8f 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/RulesContextBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/RulesContextBuilder.java @@ -1,118 +1,118 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.bi.rules.Fact; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class RulesContextBuilder { - - public static List> buildRulesContext( - ExecutionContext executionContext) - throws PortalException, SystemException { - - Map workflowContext = - executionContext.getWorkflowContext(); - - if (workflowContext == null) { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - workflowContext = WorkflowContextUtil.convert( - kaleoInstance.getWorkflowContext()); - } - - List> facts = new ArrayList>( - workflowContext.size() + 4); - - facts.add( - new Fact( - "kaleoInstanceToken", - executionContext.getKaleoInstanceToken())); - facts.add( - new Fact>( - "workflowContext", workflowContext)); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - if (kaleoTaskInstanceToken != null) { - facts.add( - new Fact( - "kaleoTaskInstanceToken", kaleoTaskInstanceToken)); - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - facts.add(new Fact("taskName", kaleoTask.getName())); - - if (kaleoTaskInstanceToken.getCompletionUserId() != 0) { - facts.add( - new Fact( - "userId", - kaleoTaskInstanceToken.getCompletionUserId())); - } - else { - facts.add( - new Fact( - "userId", kaleoTaskInstanceToken.getUserId())); - } - - List workflowTaskAssignees = - KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( - kaleoTaskInstanceToken); - - facts.add( - new Fact>( - "workflowTaskAssignees", workflowTaskAssignees)); - } - else { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - facts.add(new Fact("userId", kaleoInstanceToken.getUserId())); - } - - if (executionContext.getKaleoTimerInstanceToken() != null) { - facts.add( - new Fact( - "kaleoTimerInstanceToken", - executionContext.getKaleoTimerInstanceToken())); - } - - return facts; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.bi.rules.Fact; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class RulesContextBuilder { + + public static List> buildRulesContext( + ExecutionContext executionContext) + throws PortalException, SystemException { + + Map workflowContext = + executionContext.getWorkflowContext(); + + if (workflowContext == null) { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + workflowContext = WorkflowContextUtil.convert( + kaleoInstance.getWorkflowContext()); + } + + List> facts = new ArrayList>( + workflowContext.size() + 4); + + facts.add( + new Fact( + "kaleoInstanceToken", + executionContext.getKaleoInstanceToken())); + facts.add( + new Fact>( + "workflowContext", workflowContext)); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + if (kaleoTaskInstanceToken != null) { + facts.add( + new Fact( + "kaleoTaskInstanceToken", kaleoTaskInstanceToken)); + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + facts.add(new Fact("taskName", kaleoTask.getName())); + + if (kaleoTaskInstanceToken.getCompletionUserId() != 0) { + facts.add( + new Fact( + "userId", + kaleoTaskInstanceToken.getCompletionUserId())); + } + else { + facts.add( + new Fact( + "userId", kaleoTaskInstanceToken.getUserId())); + } + + List workflowTaskAssignees = + KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( + kaleoTaskInstanceToken); + + facts.add( + new Fact>( + "workflowTaskAssignees", workflowTaskAssignees)); + } + else { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + facts.add(new Fact("userId", kaleoInstanceToken.getUserId())); + } + + if (executionContext.getKaleoTimerInstanceToken() != null) { + facts.add( + new Fact( + "kaleoTimerInstanceToken", + executionContext.getKaleoTimerInstanceToken())); + } + + return facts; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilder.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilder.java index c251304d..b4aab724 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilder.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilder.java @@ -1,32 +1,32 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public interface ScriptingContextBuilder { - - public Map buildScriptingContext( - ExecutionContext executionContext) - throws PortalException, SystemException; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public interface ScriptingContextBuilder { + + public Map buildScriptingContext( + ExecutionContext executionContext) + throws PortalException, SystemException; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderImpl.java index ab2baeec..f5f9ec88 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderImpl.java @@ -1,104 +1,104 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class ScriptingContextBuilderImpl implements ScriptingContextBuilder { - - - public Map buildScriptingContext( - ExecutionContext executionContext) - throws PortalException, SystemException { - - Map workflowContext = - executionContext.getWorkflowContext(); - - if (workflowContext == null) { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - workflowContext = WorkflowContextUtil.convert( - kaleoInstance.getWorkflowContext()); - } - - Map inputObjects = new HashMap( - workflowContext); - - inputObjects.put( - "kaleoInstanceToken", executionContext.getKaleoInstanceToken()); - inputObjects.put("workflowContext", workflowContext); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - executionContext.getKaleoTaskInstanceToken(); - - if (kaleoTaskInstanceToken != null) { - inputObjects.put("kaleoTaskInstanceToken", kaleoTaskInstanceToken); - - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - - inputObjects.put("taskName", kaleoTask.getName()); - - if (kaleoTaskInstanceToken.getCompletionUserId() != 0) { - inputObjects.put( - "userId", kaleoTaskInstanceToken.getCompletionUserId()); - } - else { - inputObjects.put("userId", kaleoTaskInstanceToken.getUserId()); - } - - List workflowTaskAssignees = - KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( - kaleoTaskInstanceToken); - - inputObjects.put("workflowTaskAssignees", workflowTaskAssignees); - } - else { - KaleoInstanceToken kaleoInstanceToken = - executionContext.getKaleoInstanceToken(); - - inputObjects.put("userId", kaleoInstanceToken.getUserId()); - } - - if (executionContext.getKaleoTimerInstanceToken() != null) { - inputObjects.put( - "kaleoTimerInstanceToken", - executionContext.getKaleoTimerInstanceToken()); - } - - return inputObjects; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.util.KaleoTaskAssignmentInstanceUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class ScriptingContextBuilderImpl implements ScriptingContextBuilder { + + + public Map buildScriptingContext( + ExecutionContext executionContext) + throws PortalException, SystemException { + + Map workflowContext = + executionContext.getWorkflowContext(); + + if (workflowContext == null) { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + workflowContext = WorkflowContextUtil.convert( + kaleoInstance.getWorkflowContext()); + } + + Map inputObjects = new HashMap( + workflowContext); + + inputObjects.put( + "kaleoInstanceToken", executionContext.getKaleoInstanceToken()); + inputObjects.put("workflowContext", workflowContext); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + executionContext.getKaleoTaskInstanceToken(); + + if (kaleoTaskInstanceToken != null) { + inputObjects.put("kaleoTaskInstanceToken", kaleoTaskInstanceToken); + + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + + inputObjects.put("taskName", kaleoTask.getName()); + + if (kaleoTaskInstanceToken.getCompletionUserId() != 0) { + inputObjects.put( + "userId", kaleoTaskInstanceToken.getCompletionUserId()); + } + else { + inputObjects.put("userId", kaleoTaskInstanceToken.getUserId()); + } + + List workflowTaskAssignees = + KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees( + kaleoTaskInstanceToken); + + inputObjects.put("workflowTaskAssignees", workflowTaskAssignees); + } + else { + KaleoInstanceToken kaleoInstanceToken = + executionContext.getKaleoInstanceToken(); + + inputObjects.put("userId", kaleoInstanceToken.getUserId()); + } + + if (executionContext.getKaleoTimerInstanceToken() != null) { + inputObjects.put( + "kaleoTimerInstanceToken", + executionContext.getKaleoTimerInstanceToken()); + } + + return inputObjects; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderUtil.java index 21c6fad4..20287cc7 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/runtime/util/ScriptingContextBuilderUtil.java @@ -1,48 +1,48 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.runtime.util; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class ScriptingContextBuilderUtil { - - public static Map buildScriptingContext( - ExecutionContext executionContext) - throws PortalException, SystemException { - - return getScriptingContextBuilder().buildScriptingContext( - executionContext); - } - - public static ScriptingContextBuilder getScriptingContextBuilder() { - return _scriptingContextBuilder; - } - - public void setScriptingContextBuilder( - ScriptingContextBuilder scriptingContextBuilder) { - - _scriptingContextBuilder = scriptingContextBuilder; - } - - private static ScriptingContextBuilder _scriptingContextBuilder; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.runtime.util; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class ScriptingContextBuilderUtil { + + public static Map buildScriptingContext( + ExecutionContext executionContext) + throws PortalException, SystemException { + + return getScriptingContextBuilder().buildScriptingContext( + executionContext); + } + + public static ScriptingContextBuilder getScriptingContextBuilder() { + return _scriptingContextBuilder; + } + + public void setScriptingContextBuilder( + ScriptingContextBuilder scriptingContextBuilder) { + + _scriptingContextBuilder = scriptingContextBuilder; + } + + private static ScriptingContextBuilder _scriptingContextBuilder; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/ClpSerializer.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/ClpSerializer.java index 34129e11..4907b3dd 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/ClpSerializer.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/ClpSerializer.java @@ -1,1170 +1,1170 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.service; - -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.List; - -import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream; -import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.util.ClassLoaderObjectInputStream; -import com.liferay.portal.kernel.util.PropsUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.workflow.kaleo.model.KaleoActionClp; -import com.liferay.portal.workflow.kaleo.model.KaleoConditionClp; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinitionClp; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceClp; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceTokenClp; -import com.liferay.portal.workflow.kaleo.model.KaleoLogClp; -import com.liferay.portal.workflow.kaleo.model.KaleoNodeClp; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationClp; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipientClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstanceClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceTokenClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceTokenClp; -import com.liferay.portal.workflow.kaleo.model.KaleoTransitionClp; - -/** - * @author Brian Wing Shun Chan - */ -public class ClpSerializer { - public static String getServletContextName() { - if (Validator.isNotNull(_servletContextName)) { - return _servletContextName; - } - - synchronized (ClpSerializer.class) { - if (Validator.isNotNull(_servletContextName)) { - return _servletContextName; - } - - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Class portletPropsClass = classLoader.loadClass("com.liferay.util.portlet.PortletProps"); - - Method getMethod = portletPropsClass.getMethod("get", new Class[] {String.class}); - - String portletPropsServletContextName = (String) getMethod.invoke(null, "kaleo-web-deployment-context"); - - if (Validator.isNotNull(portletPropsServletContextName)) { - _servletContextName = portletPropsServletContextName; - } - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to locate deployment context from portlet properties"); - } - } - - if (Validator.isNull(_servletContextName)) { - try { - String propsUtilServletContextName = PropsUtil.get("kaleo-web-deployment-context"); - - if (Validator.isNotNull(propsUtilServletContextName)) { - _servletContextName = propsUtilServletContextName; - } - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to locate deployment context from portal properties"); - } - } - } - - if (Validator.isNull(_servletContextName)) { - _servletContextName = "portos-kaleo-web"; - } - - return _servletContextName; - } - } - - public static Object translateInput(BaseModel oldModel) { - Class oldModelClass = oldModel.getClass(); - - String oldModelClassName = oldModelClass.getName(); - - if (oldModelClassName.equals(KaleoActionClp.class.getName())) { - return translateInputKaleoAction(oldModel); - } - - if (oldModelClassName.equals(KaleoConditionClp.class.getName())) { - return translateInputKaleoCondition(oldModel); - } - - if (oldModelClassName.equals(KaleoDefinitionClp.class.getName())) { - return translateInputKaleoDefinition(oldModel); - } - - if (oldModelClassName.equals(KaleoInstanceClp.class.getName())) { - return translateInputKaleoInstance(oldModel); - } - - if (oldModelClassName.equals(KaleoInstanceTokenClp.class.getName())) { - return translateInputKaleoInstanceToken(oldModel); - } - - if (oldModelClassName.equals(KaleoLogClp.class.getName())) { - return translateInputKaleoLog(oldModel); - } - - if (oldModelClassName.equals(KaleoNodeClp.class.getName())) { - return translateInputKaleoNode(oldModel); - } - - if (oldModelClassName.equals(KaleoNotificationClp.class.getName())) { - return translateInputKaleoNotification(oldModel); - } - - if (oldModelClassName.equals(KaleoNotificationRecipientClp.class.getName())) { - return translateInputKaleoNotificationRecipient(oldModel); - } - - if (oldModelClassName.equals(KaleoTaskClp.class.getName())) { - return translateInputKaleoTask(oldModel); - } - - if (oldModelClassName.equals(KaleoTaskAssignmentClp.class.getName())) { - return translateInputKaleoTaskAssignment(oldModel); - } - - if (oldModelClassName.equals(KaleoTaskAssignmentInstanceClp.class.getName())) { - return translateInputKaleoTaskAssignmentInstance(oldModel); - } - - if (oldModelClassName.equals(KaleoTaskInstanceTokenClp.class.getName())) { - return translateInputKaleoTaskInstanceToken(oldModel); - } - - if (oldModelClassName.equals(KaleoTimerClp.class.getName())) { - return translateInputKaleoTimer(oldModel); - } - - if (oldModelClassName.equals(KaleoTimerInstanceTokenClp.class.getName())) { - return translateInputKaleoTimerInstanceToken(oldModel); - } - - if (oldModelClassName.equals(KaleoTransitionClp.class.getName())) { - return translateInputKaleoTransition(oldModel); - } - - return oldModel; - } - - public static Object translateInput(List oldList) { - List newList = new ArrayList(oldList.size()); - - for (int i = 0; i < oldList.size(); i++) { - Object curObj = oldList.get(i); - - newList.add(translateInput(curObj)); - } - - return newList; - } - - public static Object translateInputKaleoAction(BaseModel oldModel) { - KaleoActionClp oldClpModel = (KaleoActionClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoActionRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoCondition(BaseModel oldModel) { - KaleoConditionClp oldClpModel = (KaleoConditionClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoConditionRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoDefinition(BaseModel oldModel) { - KaleoDefinitionClp oldClpModel = (KaleoDefinitionClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoDefinitionRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoInstance(BaseModel oldModel) { - KaleoInstanceClp oldClpModel = (KaleoInstanceClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoInstanceRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoInstanceToken(BaseModel oldModel) { - KaleoInstanceTokenClp oldClpModel = (KaleoInstanceTokenClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoInstanceTokenRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoLog(BaseModel oldModel) { - KaleoLogClp oldClpModel = (KaleoLogClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoLogRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoNode(BaseModel oldModel) { - KaleoNodeClp oldClpModel = (KaleoNodeClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoNodeRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoNotification(BaseModel oldModel) { - KaleoNotificationClp oldClpModel = (KaleoNotificationClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoNotificationRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoNotificationRecipient(BaseModel oldModel) { - KaleoNotificationRecipientClp oldClpModel = (KaleoNotificationRecipientClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoNotificationRecipientRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTask(BaseModel oldModel) { - KaleoTaskClp oldClpModel = (KaleoTaskClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTaskRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTaskAssignment(BaseModel oldModel) { - KaleoTaskAssignmentClp oldClpModel = (KaleoTaskAssignmentClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTaskAssignmentRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTaskAssignmentInstance(BaseModel oldModel) { - KaleoTaskAssignmentInstanceClp oldClpModel = (KaleoTaskAssignmentInstanceClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTaskAssignmentInstanceRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTaskInstanceToken(BaseModel oldModel) { - KaleoTaskInstanceTokenClp oldClpModel = (KaleoTaskInstanceTokenClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTaskInstanceTokenRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTimer(BaseModel oldModel) { - KaleoTimerClp oldClpModel = (KaleoTimerClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTimerRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTimerInstanceToken(BaseModel oldModel) { - KaleoTimerInstanceTokenClp oldClpModel = (KaleoTimerInstanceTokenClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTimerInstanceTokenRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInputKaleoTransition(BaseModel oldModel) { - KaleoTransitionClp oldClpModel = (KaleoTransitionClp) oldModel; - - BaseModel newModel = oldClpModel.getKaleoTransitionRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - - public static Object translateInput(Object obj) { - if (obj instanceof BaseModel) { - return translateInput((BaseModel) obj); - } else if (obj instanceof List) { - return translateInput((List) obj); - } else { - return obj; - } - } - - public static Object translateOutput(BaseModel oldModel) { - Class oldModelClass = oldModel.getClass(); - - String oldModelClassName = oldModelClass.getName(); - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoActionImpl")) { - return translateOutputKaleoAction(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoConditionImpl")) { - return translateOutputKaleoCondition(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionImpl")) { - return translateOutputKaleoDefinition(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl")) { - return translateOutputKaleoInstance(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl")) { - return translateOutputKaleoInstanceToken(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoLogImpl")) { - return translateOutputKaleoLog(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeImpl")) { - return translateOutputKaleoNode(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNotificationImpl")) { - return translateOutputKaleoNotification(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNotificationRecipientImpl")) { - return translateOutputKaleoNotificationRecipient(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskImpl")) { - return translateOutputKaleoTask(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl")) { - return translateOutputKaleoTaskAssignment(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentInstanceImpl")) { - return translateOutputKaleoTaskAssignmentInstance(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskInstanceTokenImpl")) { - return translateOutputKaleoTaskInstanceToken(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerImpl")) { - return translateOutputKaleoTimer(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerInstanceTokenImpl")) { - return translateOutputKaleoTimerInstanceToken(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTransitionImpl")) { - return translateOutputKaleoTransition(oldModel); - } else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); - - Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = - oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); - - return newModel; - } catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - - return oldModel; - } - - public static Object translateOutput(List oldList) { - List newList = new ArrayList(oldList.size()); - - for (int i = 0; i < oldList.size(); i++) { - Object curObj = oldList.get(i); - - newList.add(translateOutput(curObj)); - } - - return newList; - } - - public static Object translateOutput(Object obj) { - if (obj instanceof BaseModel) { - return translateOutput((BaseModel) obj); - } else if (obj instanceof List) { - return translateOutput((List) obj); - } else { - return obj; - } - } - - public static Throwable translateThrowable(Throwable throwable) { - if (_useReflectionToTranslateThrowable) { - try { - UnsyncByteArrayOutputStream unsyncByteArrayOutputStream = new UnsyncByteArrayOutputStream(); - ObjectOutputStream objectOutputStream = new ObjectOutputStream(unsyncByteArrayOutputStream); - - objectOutputStream.writeObject(throwable); - - objectOutputStream.flush(); - objectOutputStream.close(); - - UnsyncByteArrayInputStream unsyncByteArrayInputStream = - new UnsyncByteArrayInputStream(unsyncByteArrayOutputStream.unsafeGetByteArray(), 0, - unsyncByteArrayOutputStream.size()); - - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - ObjectInputStream objectInputStream = - new ClassLoaderObjectInputStream(unsyncByteArrayInputStream, contextClassLoader); - - throwable = (Throwable) objectInputStream.readObject(); - - objectInputStream.close(); - - return throwable; - } catch (ClassNotFoundException cnfe) { - if (_log.isInfoEnabled()) { - _log.info("Do not use reflection to translate throwable"); - } - - _useReflectionToTranslateThrowable = false; - } catch (SecurityException se) { - if (_log.isInfoEnabled()) { - _log.info("Do not use reflection to translate throwable"); - } - - _useReflectionToTranslateThrowable = false; - } catch (Throwable throwable2) { - _log.error(throwable2, throwable2); - - return throwable2; - } - } - - Class clazz = throwable.getClass(); - - String className = clazz.getName(); - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchActionException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchActionException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchConditionException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchConditionException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchDefinitionException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchDefinitionException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchInstanceException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchInstanceException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchInstanceTokenException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchInstanceTokenException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchLogException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchLogException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNodeException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchNodeException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNotificationException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchNotificationException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNotificationRecipientException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchNotificationRecipientException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTaskException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentInstanceException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentInstanceException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTimerException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTimerException(throwable.getMessage(), throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTimerInstanceTokenException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTimerInstanceTokenException(throwable.getMessage(), - throwable.getCause()); - } - - if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTransitionException")) { - return new com.liferay.portal.workflow.kaleo.NoSuchTransitionException(throwable.getMessage(), - throwable.getCause()); - } - - return throwable; - } - - public static Object translateOutputKaleoAction(BaseModel oldModel) { - KaleoActionClp newModel = new KaleoActionClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoActionRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoCondition(BaseModel oldModel) { - KaleoConditionClp newModel = new KaleoConditionClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoConditionRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoDefinition(BaseModel oldModel) { - KaleoDefinitionClp newModel = new KaleoDefinitionClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoDefinitionRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoInstance(BaseModel oldModel) { - KaleoInstanceClp newModel = new KaleoInstanceClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoInstanceRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoInstanceToken(BaseModel oldModel) { - KaleoInstanceTokenClp newModel = new KaleoInstanceTokenClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoInstanceTokenRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoLog(BaseModel oldModel) { - KaleoLogClp newModel = new KaleoLogClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoLogRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoNode(BaseModel oldModel) { - KaleoNodeClp newModel = new KaleoNodeClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoNodeRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoNotification(BaseModel oldModel) { - KaleoNotificationClp newModel = new KaleoNotificationClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoNotificationRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoNotificationRecipient(BaseModel oldModel) { - KaleoNotificationRecipientClp newModel = new KaleoNotificationRecipientClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoNotificationRecipientRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTask(BaseModel oldModel) { - KaleoTaskClp newModel = new KaleoTaskClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTaskRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTaskAssignment(BaseModel oldModel) { - KaleoTaskAssignmentClp newModel = new KaleoTaskAssignmentClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTaskAssignmentRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTaskAssignmentInstance(BaseModel oldModel) { - KaleoTaskAssignmentInstanceClp newModel = new KaleoTaskAssignmentInstanceClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTaskAssignmentInstanceRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTaskInstanceToken(BaseModel oldModel) { - KaleoTaskInstanceTokenClp newModel = new KaleoTaskInstanceTokenClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTaskInstanceTokenRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTimer(BaseModel oldModel) { - KaleoTimerClp newModel = new KaleoTimerClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTimerRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTimerInstanceToken(BaseModel oldModel) { - KaleoTimerInstanceTokenClp newModel = new KaleoTimerInstanceTokenClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTimerInstanceTokenRemoteModel(oldModel); - - return newModel; - } - - public static Object translateOutputKaleoTransition(BaseModel oldModel) { - KaleoTransitionClp newModel = new KaleoTransitionClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setKaleoTransitionRemoteModel(oldModel); - - return newModel; - } - - private static Log _log = LogFactoryUtil.getLog(ClpSerializer.class); - private static String _servletContextName; - private static boolean _useReflectionToTranslateThrowable = true; -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.service; + +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.List; + +import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream; +import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.ClassLoaderObjectInputStream; +import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.BaseModel; +import com.liferay.portal.workflow.kaleo.model.KaleoActionClp; +import com.liferay.portal.workflow.kaleo.model.KaleoConditionClp; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinitionClp; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceClp; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceTokenClp; +import com.liferay.portal.workflow.kaleo.model.KaleoLogClp; +import com.liferay.portal.workflow.kaleo.model.KaleoNodeClp; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationClp; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipientClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstanceClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceTokenClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceTokenClp; +import com.liferay.portal.workflow.kaleo.model.KaleoTransitionClp; + +/** + * @author Brian Wing Shun Chan + */ +public class ClpSerializer { + public static String getServletContextName() { + if (Validator.isNotNull(_servletContextName)) { + return _servletContextName; + } + + synchronized (ClpSerializer.class) { + if (Validator.isNotNull(_servletContextName)) { + return _servletContextName; + } + + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Class portletPropsClass = classLoader.loadClass("com.liferay.util.portlet.PortletProps"); + + Method getMethod = portletPropsClass.getMethod("get", new Class[] {String.class}); + + String portletPropsServletContextName = (String) getMethod.invoke(null, "kaleo-web-deployment-context"); + + if (Validator.isNotNull(portletPropsServletContextName)) { + _servletContextName = portletPropsServletContextName; + } + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to locate deployment context from portlet properties"); + } + } + + if (Validator.isNull(_servletContextName)) { + try { + String propsUtilServletContextName = PropsUtil.get("kaleo-web-deployment-context"); + + if (Validator.isNotNull(propsUtilServletContextName)) { + _servletContextName = propsUtilServletContextName; + } + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to locate deployment context from portal properties"); + } + } + } + + if (Validator.isNull(_servletContextName)) { + _servletContextName = "portos-kaleo-web"; + } + + return _servletContextName; + } + } + + public static Object translateInput(BaseModel oldModel) { + Class oldModelClass = oldModel.getClass(); + + String oldModelClassName = oldModelClass.getName(); + + if (oldModelClassName.equals(KaleoActionClp.class.getName())) { + return translateInputKaleoAction(oldModel); + } + + if (oldModelClassName.equals(KaleoConditionClp.class.getName())) { + return translateInputKaleoCondition(oldModel); + } + + if (oldModelClassName.equals(KaleoDefinitionClp.class.getName())) { + return translateInputKaleoDefinition(oldModel); + } + + if (oldModelClassName.equals(KaleoInstanceClp.class.getName())) { + return translateInputKaleoInstance(oldModel); + } + + if (oldModelClassName.equals(KaleoInstanceTokenClp.class.getName())) { + return translateInputKaleoInstanceToken(oldModel); + } + + if (oldModelClassName.equals(KaleoLogClp.class.getName())) { + return translateInputKaleoLog(oldModel); + } + + if (oldModelClassName.equals(KaleoNodeClp.class.getName())) { + return translateInputKaleoNode(oldModel); + } + + if (oldModelClassName.equals(KaleoNotificationClp.class.getName())) { + return translateInputKaleoNotification(oldModel); + } + + if (oldModelClassName.equals(KaleoNotificationRecipientClp.class.getName())) { + return translateInputKaleoNotificationRecipient(oldModel); + } + + if (oldModelClassName.equals(KaleoTaskClp.class.getName())) { + return translateInputKaleoTask(oldModel); + } + + if (oldModelClassName.equals(KaleoTaskAssignmentClp.class.getName())) { + return translateInputKaleoTaskAssignment(oldModel); + } + + if (oldModelClassName.equals(KaleoTaskAssignmentInstanceClp.class.getName())) { + return translateInputKaleoTaskAssignmentInstance(oldModel); + } + + if (oldModelClassName.equals(KaleoTaskInstanceTokenClp.class.getName())) { + return translateInputKaleoTaskInstanceToken(oldModel); + } + + if (oldModelClassName.equals(KaleoTimerClp.class.getName())) { + return translateInputKaleoTimer(oldModel); + } + + if (oldModelClassName.equals(KaleoTimerInstanceTokenClp.class.getName())) { + return translateInputKaleoTimerInstanceToken(oldModel); + } + + if (oldModelClassName.equals(KaleoTransitionClp.class.getName())) { + return translateInputKaleoTransition(oldModel); + } + + return oldModel; + } + + public static Object translateInput(List oldList) { + List newList = new ArrayList(oldList.size()); + + for (int i = 0; i < oldList.size(); i++) { + Object curObj = oldList.get(i); + + newList.add(translateInput(curObj)); + } + + return newList; + } + + public static Object translateInputKaleoAction(BaseModel oldModel) { + KaleoActionClp oldClpModel = (KaleoActionClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoActionRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoCondition(BaseModel oldModel) { + KaleoConditionClp oldClpModel = (KaleoConditionClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoConditionRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoDefinition(BaseModel oldModel) { + KaleoDefinitionClp oldClpModel = (KaleoDefinitionClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoDefinitionRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoInstance(BaseModel oldModel) { + KaleoInstanceClp oldClpModel = (KaleoInstanceClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoInstanceRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoInstanceToken(BaseModel oldModel) { + KaleoInstanceTokenClp oldClpModel = (KaleoInstanceTokenClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoInstanceTokenRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoLog(BaseModel oldModel) { + KaleoLogClp oldClpModel = (KaleoLogClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoLogRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoNode(BaseModel oldModel) { + KaleoNodeClp oldClpModel = (KaleoNodeClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoNodeRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoNotification(BaseModel oldModel) { + KaleoNotificationClp oldClpModel = (KaleoNotificationClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoNotificationRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoNotificationRecipient(BaseModel oldModel) { + KaleoNotificationRecipientClp oldClpModel = (KaleoNotificationRecipientClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoNotificationRecipientRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTask(BaseModel oldModel) { + KaleoTaskClp oldClpModel = (KaleoTaskClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTaskRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTaskAssignment(BaseModel oldModel) { + KaleoTaskAssignmentClp oldClpModel = (KaleoTaskAssignmentClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTaskAssignmentRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTaskAssignmentInstance(BaseModel oldModel) { + KaleoTaskAssignmentInstanceClp oldClpModel = (KaleoTaskAssignmentInstanceClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTaskAssignmentInstanceRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTaskInstanceToken(BaseModel oldModel) { + KaleoTaskInstanceTokenClp oldClpModel = (KaleoTaskInstanceTokenClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTaskInstanceTokenRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTimer(BaseModel oldModel) { + KaleoTimerClp oldClpModel = (KaleoTimerClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTimerRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTimerInstanceToken(BaseModel oldModel) { + KaleoTimerInstanceTokenClp oldClpModel = (KaleoTimerInstanceTokenClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTimerInstanceTokenRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInputKaleoTransition(BaseModel oldModel) { + KaleoTransitionClp oldClpModel = (KaleoTransitionClp) oldModel; + + BaseModel newModel = oldClpModel.getKaleoTransitionRemoteModel(); + + newModel.setModelAttributes(oldClpModel.getModelAttributes()); + + return newModel; + } + + public static Object translateInput(Object obj) { + if (obj instanceof BaseModel) { + return translateInput((BaseModel) obj); + } else if (obj instanceof List) { + return translateInput((List) obj); + } else { + return obj; + } + } + + public static Object translateOutput(BaseModel oldModel) { + Class oldModelClass = oldModel.getClass(); + + String oldModelClassName = oldModelClass.getName(); + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoActionImpl")) { + return translateOutputKaleoAction(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoConditionImpl")) { + return translateOutputKaleoCondition(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionImpl")) { + return translateOutputKaleoDefinition(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl")) { + return translateOutputKaleoInstance(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl")) { + return translateOutputKaleoInstanceToken(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoLogImpl")) { + return translateOutputKaleoLog(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeImpl")) { + return translateOutputKaleoNode(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNotificationImpl")) { + return translateOutputKaleoNotification(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoNotificationRecipientImpl")) { + return translateOutputKaleoNotificationRecipient(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskImpl")) { + return translateOutputKaleoTask(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentImpl")) { + return translateOutputKaleoTaskAssignment(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskAssignmentInstanceImpl")) { + return translateOutputKaleoTaskAssignmentInstance(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTaskInstanceTokenImpl")) { + return translateOutputKaleoTaskInstanceToken(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerImpl")) { + return translateOutputKaleoTimer(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerInstanceTokenImpl")) { + return translateOutputKaleoTimerInstanceToken(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + if (oldModelClassName.equals("com.liferay.portal.workflow.kaleo.model.impl.KaleoTransitionImpl")) { + return translateOutputKaleoTransition(oldModel); + } else if (oldModelClassName.endsWith("Clp")) { + try { + ClassLoader classLoader = ClpSerializer.class.getClassLoader(); + + Method getClpSerializerClassMethod = oldModelClass.getMethod("getClpSerializerClass"); + + Class oldClpSerializerClass = (Class) getClpSerializerClassMethod.invoke(oldModel); + + Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); + + Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", BaseModel.class); + + Class oldModelModelClass = oldModel.getModelClass(); + + Method getRemoteModelMethod = + oldModelClass.getMethod("get" + oldModelModelClass.getSimpleName() + "RemoteModel"); + + Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); + + BaseModel newModel = (BaseModel) translateOutputMethod.invoke(null, oldRemoteModel); + + return newModel; + } catch (Throwable t) { + if (_log.isInfoEnabled()) { + _log.info("Unable to translate " + oldModelClassName, t); + } + } + } + + return oldModel; + } + + public static Object translateOutput(List oldList) { + List newList = new ArrayList(oldList.size()); + + for (int i = 0; i < oldList.size(); i++) { + Object curObj = oldList.get(i); + + newList.add(translateOutput(curObj)); + } + + return newList; + } + + public static Object translateOutput(Object obj) { + if (obj instanceof BaseModel) { + return translateOutput((BaseModel) obj); + } else if (obj instanceof List) { + return translateOutput((List) obj); + } else { + return obj; + } + } + + public static Throwable translateThrowable(Throwable throwable) { + if (_useReflectionToTranslateThrowable) { + try { + UnsyncByteArrayOutputStream unsyncByteArrayOutputStream = new UnsyncByteArrayOutputStream(); + ObjectOutputStream objectOutputStream = new ObjectOutputStream(unsyncByteArrayOutputStream); + + objectOutputStream.writeObject(throwable); + + objectOutputStream.flush(); + objectOutputStream.close(); + + UnsyncByteArrayInputStream unsyncByteArrayInputStream = + new UnsyncByteArrayInputStream(unsyncByteArrayOutputStream.unsafeGetByteArray(), 0, + unsyncByteArrayOutputStream.size()); + + Thread currentThread = Thread.currentThread(); + + ClassLoader contextClassLoader = currentThread.getContextClassLoader(); + + ObjectInputStream objectInputStream = + new ClassLoaderObjectInputStream(unsyncByteArrayInputStream, contextClassLoader); + + throwable = (Throwable) objectInputStream.readObject(); + + objectInputStream.close(); + + return throwable; + } catch (ClassNotFoundException cnfe) { + if (_log.isInfoEnabled()) { + _log.info("Do not use reflection to translate throwable"); + } + + _useReflectionToTranslateThrowable = false; + } catch (SecurityException se) { + if (_log.isInfoEnabled()) { + _log.info("Do not use reflection to translate throwable"); + } + + _useReflectionToTranslateThrowable = false; + } catch (Throwable throwable2) { + _log.error(throwable2, throwable2); + + return throwable2; + } + } + + Class clazz = throwable.getClass(); + + String className = clazz.getName(); + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchActionException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchActionException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchConditionException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchConditionException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchDefinitionException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchDefinitionException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchInstanceException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchInstanceException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchInstanceTokenException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchInstanceTokenException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchLogException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchLogException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNodeException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchNodeException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNotificationException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchNotificationException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchNotificationRecipientException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchNotificationRecipientException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTaskException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentInstanceException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTaskAssignmentInstanceException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTimerException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTimerException(throwable.getMessage(), throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTimerInstanceTokenException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTimerInstanceTokenException(throwable.getMessage(), + throwable.getCause()); + } + + if (className.equals("com.liferay.portal.workflow.kaleo.NoSuchTransitionException")) { + return new com.liferay.portal.workflow.kaleo.NoSuchTransitionException(throwable.getMessage(), + throwable.getCause()); + } + + return throwable; + } + + public static Object translateOutputKaleoAction(BaseModel oldModel) { + KaleoActionClp newModel = new KaleoActionClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoActionRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoCondition(BaseModel oldModel) { + KaleoConditionClp newModel = new KaleoConditionClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoConditionRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoDefinition(BaseModel oldModel) { + KaleoDefinitionClp newModel = new KaleoDefinitionClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoDefinitionRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoInstance(BaseModel oldModel) { + KaleoInstanceClp newModel = new KaleoInstanceClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoInstanceRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoInstanceToken(BaseModel oldModel) { + KaleoInstanceTokenClp newModel = new KaleoInstanceTokenClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoInstanceTokenRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoLog(BaseModel oldModel) { + KaleoLogClp newModel = new KaleoLogClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoLogRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoNode(BaseModel oldModel) { + KaleoNodeClp newModel = new KaleoNodeClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoNodeRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoNotification(BaseModel oldModel) { + KaleoNotificationClp newModel = new KaleoNotificationClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoNotificationRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoNotificationRecipient(BaseModel oldModel) { + KaleoNotificationRecipientClp newModel = new KaleoNotificationRecipientClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoNotificationRecipientRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTask(BaseModel oldModel) { + KaleoTaskClp newModel = new KaleoTaskClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTaskRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTaskAssignment(BaseModel oldModel) { + KaleoTaskAssignmentClp newModel = new KaleoTaskAssignmentClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTaskAssignmentRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTaskAssignmentInstance(BaseModel oldModel) { + KaleoTaskAssignmentInstanceClp newModel = new KaleoTaskAssignmentInstanceClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTaskAssignmentInstanceRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTaskInstanceToken(BaseModel oldModel) { + KaleoTaskInstanceTokenClp newModel = new KaleoTaskInstanceTokenClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTaskInstanceTokenRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTimer(BaseModel oldModel) { + KaleoTimerClp newModel = new KaleoTimerClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTimerRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTimerInstanceToken(BaseModel oldModel) { + KaleoTimerInstanceTokenClp newModel = new KaleoTimerInstanceTokenClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTimerInstanceTokenRemoteModel(oldModel); + + return newModel; + } + + public static Object translateOutputKaleoTransition(BaseModel oldModel) { + KaleoTransitionClp newModel = new KaleoTransitionClp(); + + newModel.setModelAttributes(oldModel.getModelAttributes()); + + newModel.setKaleoTransitionRemoteModel(oldModel); + + return newModel; + } + + private static Log _log = LogFactoryUtil.getLog(ClpSerializer.class); + private static String _servletContextName; + private static boolean _useReflectionToTranslateThrowable = true; +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_deploy.wsdd b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_deploy.wsdd index 647bc1cd..496fb70b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_deploy.wsdd +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_deploy.wsdd @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_undeploy.wsdd b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_undeploy.wsdd index 874c4d84..3219dfe4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_undeploy.wsdd +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/http/KaleoDefinitionService_undeploy.wsdd @@ -1,5 +1,5 @@ - - - - + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoActionLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoActionLocalServiceImpl.java index 75d0dbc0..341ea9aa 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoActionLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoActionLocalServiceImpl.java @@ -1,103 +1,103 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.service.base.KaleoActionLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoActionLocalServiceImpl - extends KaleoActionLocalServiceBaseImpl { - - - public KaleoAction addKaleoAction( - String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, - String kaleoNodeName, Action action, ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoActionId = counterLocalService.increment(); - - KaleoAction kaleoAction = kaleoActionPersistence.create(kaleoActionId); - - kaleoAction.setCompanyId(user.getCompanyId()); - kaleoAction.setUserId(user.getUserId()); - kaleoAction.setUserName(user.getFullName()); - kaleoAction.setCreateDate(now); - kaleoAction.setModifiedDate(now); - kaleoAction.setKaleoClassName(kaleoClassName); - kaleoAction.setKaleoClassPK(kaleoClassPK); - kaleoAction.setKaleoDefinitionId(kaleoDefinitionId); - kaleoAction.setKaleoNodeName(kaleoNodeName); - kaleoAction.setName(action.getName()); - kaleoAction.setDescription(action.getDescription()); - kaleoAction.setExecutionType(action.getExecutionType().getValue()); - kaleoAction.setScript(action.getScript()); - kaleoAction.setScriptLanguage(action.getScriptLanguage().getValue()); - kaleoAction.setScriptRequiredContexts( - action.getScriptRequiredContexts()); - kaleoAction.setPriority(action.getPriority()); - - kaleoActionPersistence.update(kaleoAction); - - return kaleoAction; - } - - - public void deleteCompanyKaleoActions(long companyId) - throws SystemException { - - kaleoActionPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoActions(long kaleoDefinitionId) - throws SystemException { - - kaleoActionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - } - - - public List getKaleoActions( - String kaleoClassName, long kaleoClassPK) - throws SystemException { - - return kaleoActionPersistence.findByKCN_KCPK( - kaleoClassName, kaleoClassPK); - } - - - public List getKaleoActions( - String kaleoClassName, long kaleoClassPK, String executionType) - throws SystemException { - - return kaleoActionPersistence.findByKCN_KCPK_ET( - kaleoClassName, kaleoClassPK, executionType); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.service.base.KaleoActionLocalServiceBaseImpl; + +import java.util.Date; +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoActionLocalServiceImpl + extends KaleoActionLocalServiceBaseImpl { + + + public KaleoAction addKaleoAction( + String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, + String kaleoNodeName, Action action, ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoActionId = counterLocalService.increment(); + + KaleoAction kaleoAction = kaleoActionPersistence.create(kaleoActionId); + + kaleoAction.setCompanyId(user.getCompanyId()); + kaleoAction.setUserId(user.getUserId()); + kaleoAction.setUserName(user.getFullName()); + kaleoAction.setCreateDate(now); + kaleoAction.setModifiedDate(now); + kaleoAction.setKaleoClassName(kaleoClassName); + kaleoAction.setKaleoClassPK(kaleoClassPK); + kaleoAction.setKaleoDefinitionId(kaleoDefinitionId); + kaleoAction.setKaleoNodeName(kaleoNodeName); + kaleoAction.setName(action.getName()); + kaleoAction.setDescription(action.getDescription()); + kaleoAction.setExecutionType(action.getExecutionType().getValue()); + kaleoAction.setScript(action.getScript()); + kaleoAction.setScriptLanguage(action.getScriptLanguage().getValue()); + kaleoAction.setScriptRequiredContexts( + action.getScriptRequiredContexts()); + kaleoAction.setPriority(action.getPriority()); + + kaleoActionPersistence.update(kaleoAction); + + return kaleoAction; + } + + + public void deleteCompanyKaleoActions(long companyId) + throws SystemException { + + kaleoActionPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoActions(long kaleoDefinitionId) + throws SystemException { + + kaleoActionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + } + + + public List getKaleoActions( + String kaleoClassName, long kaleoClassPK) + throws SystemException { + + return kaleoActionPersistence.findByKCN_KCPK( + kaleoClassName, kaleoClassPK); + } + + + public List getKaleoActions( + String kaleoClassName, long kaleoClassPK, String executionType) + throws SystemException { + + return kaleoActionPersistence.findByKCN_KCPK_ET( + kaleoClassName, kaleoClassPK, executionType); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoConditionLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoConditionLocalServiceImpl.java index cb7b9c16..390a2d35 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoConditionLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoConditionLocalServiceImpl.java @@ -1,88 +1,88 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Condition; -import com.liferay.portal.workflow.kaleo.model.KaleoCondition; -import com.liferay.portal.workflow.kaleo.service.base.KaleoConditionLocalServiceBaseImpl; - -import java.util.Date; - -/** - * @author Michael C. Han - * @author Brian Wing Shun Chan - */ -public class KaleoConditionLocalServiceImpl - extends KaleoConditionLocalServiceBaseImpl { - - - public KaleoCondition addKaleoCondition( - long kaleoDefinitionId, long kaleoNodeId, Condition condition, - ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoConditionId = counterLocalService.increment(); - - KaleoCondition kaleoCondition = kaleoConditionPersistence.create( - kaleoConditionId); - - kaleoCondition.setCompanyId(user.getCompanyId()); - kaleoCondition.setUserId(user.getUserId()); - kaleoCondition.setUserName(user.getFullName()); - kaleoCondition.setCreateDate(now); - kaleoCondition.setModifiedDate(now); - kaleoCondition.setKaleoDefinitionId(kaleoDefinitionId); - kaleoCondition.setKaleoNodeId(kaleoNodeId); - kaleoCondition.setScript(condition.getScript()); - kaleoCondition.setScriptLanguage( - condition.getScriptLanguage().getValue()); - kaleoCondition.setScriptRequiredContexts( - condition.getScriptRequiredContexts()); - - kaleoConditionPersistence.update(kaleoCondition); - - return kaleoCondition; - } - - - public void deleteCompanyKaleoConditions(long companyId) - throws SystemException { - - kaleoConditionPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoCondition(long kaleoDefinitionId) - throws SystemException { - - kaleoConditionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - } - - - public KaleoCondition getKaleoNodeKaleoCondition(long kaleoNodeId) - throws PortalException, SystemException { - - return kaleoConditionPersistence.findByKaleoNodeId(kaleoNodeId); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Condition; +import com.liferay.portal.workflow.kaleo.model.KaleoCondition; +import com.liferay.portal.workflow.kaleo.service.base.KaleoConditionLocalServiceBaseImpl; + +import java.util.Date; + +/** + * @author Michael C. Han + * @author Brian Wing Shun Chan + */ +public class KaleoConditionLocalServiceImpl + extends KaleoConditionLocalServiceBaseImpl { + + + public KaleoCondition addKaleoCondition( + long kaleoDefinitionId, long kaleoNodeId, Condition condition, + ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoConditionId = counterLocalService.increment(); + + KaleoCondition kaleoCondition = kaleoConditionPersistence.create( + kaleoConditionId); + + kaleoCondition.setCompanyId(user.getCompanyId()); + kaleoCondition.setUserId(user.getUserId()); + kaleoCondition.setUserName(user.getFullName()); + kaleoCondition.setCreateDate(now); + kaleoCondition.setModifiedDate(now); + kaleoCondition.setKaleoDefinitionId(kaleoDefinitionId); + kaleoCondition.setKaleoNodeId(kaleoNodeId); + kaleoCondition.setScript(condition.getScript()); + kaleoCondition.setScriptLanguage( + condition.getScriptLanguage().getValue()); + kaleoCondition.setScriptRequiredContexts( + condition.getScriptRequiredContexts()); + + kaleoConditionPersistence.update(kaleoCondition); + + return kaleoCondition; + } + + + public void deleteCompanyKaleoConditions(long companyId) + throws SystemException { + + kaleoConditionPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoCondition(long kaleoDefinitionId) + throws SystemException { + + kaleoConditionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + } + + + public KaleoCondition getKaleoNodeKaleoCondition(long kaleoNodeId) + throws PortalException, SystemException { + + return kaleoConditionPersistence.findByKaleoNodeId(kaleoNodeId); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionLocalServiceImpl.java index 89d95f37..970c5232 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionLocalServiceImpl.java @@ -1,303 +1,303 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; -import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; - -import java.util.Date; -import java.util.List; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.NoSuchDefinitionException; -import com.liferay.portal.workflow.kaleo.definition.Definition; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.service.base.KaleoDefinitionLocalServiceBaseImpl; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoDefinitionLocalServiceImpl extends KaleoDefinitionLocalServiceBaseImpl { - - - public void activateKaleoDefinition(long kaleoDefinitionId, long startKaleoNodeId, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.findByPrimaryKey(kaleoDefinitionId); - - try { - KaleoDefinition previousKaleoDefinition = getLatestKaleoDefinition(kaleoDefinition.getName(), serviceContext); - - previousKaleoDefinition.setModifiedDate(new Date()); - previousKaleoDefinition.setActive(false); - - kaleoDefinitionPersistence.update(previousKaleoDefinition); - } catch (NoSuchDefinitionException nsde) { - } - - kaleoDefinition.setStartKaleoNodeId(startKaleoNodeId); - kaleoDefinition.setModifiedDate(new Date()); - kaleoDefinition.setActive(true); - - kaleoDefinitionPersistence.update(kaleoDefinition); - } - - - public void activateKaleoDefinition(long kaleoDefinitionId, ServiceContext serviceContext) throws PortalException, - SystemException { - - KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.findByPrimaryKey(kaleoDefinitionId); - - kaleoDefinition.setModifiedDate(new Date()); - kaleoDefinition.setActive(true); - - kaleoDefinitionPersistence.update(kaleoDefinition); - } - - - public void activateKaleoDefinition(String name, int version, ServiceContext serviceContext) throws PortalException, - SystemException { - - KaleoDefinition kaleoDefinition = - kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); - - kaleoDefinition.setModifiedDate(new Date()); - kaleoDefinition.setActive(true); - - kaleoDefinitionPersistence.update(kaleoDefinition); - } - - - public KaleoDefinition addKaleoDefinition(String name, String title, String description, String content, int version, - ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey(serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoDefinitionId = counterLocalService.increment(); - - KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.create(kaleoDefinitionId); - - kaleoDefinition.setCompanyId(user.getCompanyId()); - kaleoDefinition.setUserId(user.getUserId()); - kaleoDefinition.setUserName(user.getFullName()); - kaleoDefinition.setCreateDate(now); - kaleoDefinition.setModifiedDate(now); - kaleoDefinition.setName(name); - kaleoDefinition.setTitle(title); - kaleoDefinition.setDescription(description); - kaleoDefinition.setContent(content); - kaleoDefinition.setVersion(version); - kaleoDefinition.setActive(false); - - kaleoDefinitionPersistence.update(kaleoDefinition); - - return kaleoDefinition; - } - - - public void deactivateKaleoDefinition(String name, int version, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = - kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); - - kaleoDefinition.setModifiedDate(new Date()); - kaleoDefinition.setActive(false); - - kaleoDefinitionPersistence.update(kaleoDefinition); - } - - - public void deleteCompanyKaleoDefinitions(long companyId) throws SystemException { - - // Kaleo definitions - - kaleoDefinitionPersistence.removeByCompanyId(companyId); - - // Kaleo condition - - kaleoConditionLocalService.deleteCompanyKaleoConditions(companyId); - - // Kaleo instances - - kaleoInstanceLocalService.deleteCompanyKaleoInstances(companyId); - - // Kaleo nodes - - kaleoNodeLocalService.deleteCompanyKaleoNodes(companyId); - - // Kaleo tasks - - kaleoTaskLocalService.deleteCompanyKaleoTasks(companyId); - - // Kaleo transitions - - kaleoTransitionLocalService.deleteCompanyKaleoTransitions(companyId); - } - - - public void deleteKaleoDefinition(String name, int version, ServiceContext serviceContext) throws PortalException, - SystemException { - - // Kaleo definition - - KaleoDefinition kaleoDefinition = getKaleoDefinition(name, version, serviceContext); - - if (kaleoDefinition.isActive()) { - throw new WorkflowException("Cannot delete active workflow definition " + kaleoDefinition.getKaleoDefinitionId()); - } - - if (kaleoDefinition.hasIncompleteKaleoInstances()) { - throw new WorkflowException("Cannot delete incomplete workflow definition " - + kaleoDefinition.getKaleoDefinitionId()); - } - - kaleoDefinitionPersistence.remove(kaleoDefinition); - - // Kaleo condition - - kaleoConditionLocalService.deleteKaleoDefinitionKaleoCondition(kaleoDefinition.getKaleoDefinitionId()); - - // Kaleo instances - - kaleoInstanceLocalService.deleteKaleoDefinitionKaleoInstances(kaleoDefinition.getKaleoDefinitionId()); - - // Kaleo nodes - - kaleoNodeLocalService.deleteKaleoDefinitionKaleoNodes(kaleoDefinition.getKaleoDefinitionId()); - - // Kaleo tasks - - kaleoTaskLocalService.deleteKaleoDefinitionKaleoTasks(kaleoDefinition.getKaleoDefinitionId()); - - // Kaleo transitions - - kaleoTransitionLocalService.deleteKaleoDefinitionKaleoTransitions(kaleoDefinition.getKaleoDefinitionId()); - - // Form Definition Links - - FormDefinitionLink formDefinitionLink = - FormDefinitionLinkLocalServiceUtil.fetchByC_DefinitionName_DefinitionVersion(kaleoDefinition.getCompanyId(), - kaleoDefinition.getName(), kaleoDefinition.getVersion()); - - if (formDefinitionLink != null) { - throw new SystemException("Definition related to structure"); - } - } - - - public KaleoDefinition getKaleoDefinition(String name, int version, ServiceContext serviceContext) - throws PortalException, SystemException { - - return kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); - } - - - public List getKaleoDefinitions(boolean active, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.findByC_A(serviceContext.getCompanyId(), active, start, end, orderByComparator); - } - - - public List getKaleoDefinitions(int start, int end, OrderByComparator orderByComparator, - ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.findByCompanyId(serviceContext.getCompanyId(), start, end, orderByComparator); - } - - - public List getKaleoDefinitions(String name, boolean active, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.findByC_N_A(serviceContext.getCompanyId(), name, active, start, end, - orderByComparator); - } - - - public List getKaleoDefinitions(String name, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.findByC_N(serviceContext.getCompanyId(), name, start, end, orderByComparator); - } - - - public int getKaleoDefinitionsCount(boolean active, ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.countByC_A(serviceContext.getCompanyId(), active); - } - - - public int getKaleoDefinitionsCount(ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.countByCompanyId(serviceContext.getCompanyId()); - } - - - public int getKaleoDefinitionsCount(String name, boolean active, ServiceContext serviceContext) - throws SystemException { - - return kaleoDefinitionPersistence.countByC_N_A(serviceContext.getCompanyId(), name, active); - } - - - public int getKaleoDefinitionsCount(String name, ServiceContext serviceContext) throws SystemException { - - return kaleoDefinitionPersistence.countByC_N(serviceContext.getCompanyId(), name); - } - - - public KaleoDefinition getLatestKaleoDefinition(String name, ServiceContext serviceContext) throws PortalException, - SystemException { - - List kaleoDefinitions = - kaleoDefinitionPersistence.findByC_N(serviceContext.getCompanyId(), name, 0, 1); - - if (kaleoDefinitions.isEmpty()) { - throw new NoSuchDefinitionException(); - } - - return kaleoDefinitions.get(0); - } - - - public KaleoDefinition incrementKaleoDefinition(Definition definition, String title, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = getLatestKaleoDefinition(definition.getName(), serviceContext); - - return addKaleoDefinition(definition.getName(), title, definition.getDescription(), definition.getContent(), - kaleoDefinition.getVersion() + 1, serviceContext); - } - - - public KaleoDefinition updateTitle(String name, int version, String title, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoDefinition kaleoDefinition = - kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); - - kaleoDefinition.setTitle(title); - - kaleoDefinitionPersistence.update(kaleoDefinition); - - return kaleoDefinition; - } - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; +import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; + +import java.util.Date; +import java.util.List; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.NoSuchDefinitionException; +import com.liferay.portal.workflow.kaleo.definition.Definition; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.service.base.KaleoDefinitionLocalServiceBaseImpl; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoDefinitionLocalServiceImpl extends KaleoDefinitionLocalServiceBaseImpl { + + + public void activateKaleoDefinition(long kaleoDefinitionId, long startKaleoNodeId, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.findByPrimaryKey(kaleoDefinitionId); + + try { + KaleoDefinition previousKaleoDefinition = getLatestKaleoDefinition(kaleoDefinition.getName(), serviceContext); + + previousKaleoDefinition.setModifiedDate(new Date()); + previousKaleoDefinition.setActive(false); + + kaleoDefinitionPersistence.update(previousKaleoDefinition); + } catch (NoSuchDefinitionException nsde) { + } + + kaleoDefinition.setStartKaleoNodeId(startKaleoNodeId); + kaleoDefinition.setModifiedDate(new Date()); + kaleoDefinition.setActive(true); + + kaleoDefinitionPersistence.update(kaleoDefinition); + } + + + public void activateKaleoDefinition(long kaleoDefinitionId, ServiceContext serviceContext) throws PortalException, + SystemException { + + KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.findByPrimaryKey(kaleoDefinitionId); + + kaleoDefinition.setModifiedDate(new Date()); + kaleoDefinition.setActive(true); + + kaleoDefinitionPersistence.update(kaleoDefinition); + } + + + public void activateKaleoDefinition(String name, int version, ServiceContext serviceContext) throws PortalException, + SystemException { + + KaleoDefinition kaleoDefinition = + kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); + + kaleoDefinition.setModifiedDate(new Date()); + kaleoDefinition.setActive(true); + + kaleoDefinitionPersistence.update(kaleoDefinition); + } + + + public KaleoDefinition addKaleoDefinition(String name, String title, String description, String content, int version, + ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey(serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoDefinitionId = counterLocalService.increment(); + + KaleoDefinition kaleoDefinition = kaleoDefinitionPersistence.create(kaleoDefinitionId); + + kaleoDefinition.setCompanyId(user.getCompanyId()); + kaleoDefinition.setUserId(user.getUserId()); + kaleoDefinition.setUserName(user.getFullName()); + kaleoDefinition.setCreateDate(now); + kaleoDefinition.setModifiedDate(now); + kaleoDefinition.setName(name); + kaleoDefinition.setTitle(title); + kaleoDefinition.setDescription(description); + kaleoDefinition.setContent(content); + kaleoDefinition.setVersion(version); + kaleoDefinition.setActive(false); + + kaleoDefinitionPersistence.update(kaleoDefinition); + + return kaleoDefinition; + } + + + public void deactivateKaleoDefinition(String name, int version, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = + kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); + + kaleoDefinition.setModifiedDate(new Date()); + kaleoDefinition.setActive(false); + + kaleoDefinitionPersistence.update(kaleoDefinition); + } + + + public void deleteCompanyKaleoDefinitions(long companyId) throws SystemException { + + // Kaleo definitions + + kaleoDefinitionPersistence.removeByCompanyId(companyId); + + // Kaleo condition + + kaleoConditionLocalService.deleteCompanyKaleoConditions(companyId); + + // Kaleo instances + + kaleoInstanceLocalService.deleteCompanyKaleoInstances(companyId); + + // Kaleo nodes + + kaleoNodeLocalService.deleteCompanyKaleoNodes(companyId); + + // Kaleo tasks + + kaleoTaskLocalService.deleteCompanyKaleoTasks(companyId); + + // Kaleo transitions + + kaleoTransitionLocalService.deleteCompanyKaleoTransitions(companyId); + } + + + public void deleteKaleoDefinition(String name, int version, ServiceContext serviceContext) throws PortalException, + SystemException { + + // Kaleo definition + + KaleoDefinition kaleoDefinition = getKaleoDefinition(name, version, serviceContext); + + if (kaleoDefinition.isActive()) { + throw new WorkflowException("Cannot delete active workflow definition " + kaleoDefinition.getKaleoDefinitionId()); + } + + if (kaleoDefinition.hasIncompleteKaleoInstances()) { + throw new WorkflowException("Cannot delete incomplete workflow definition " + + kaleoDefinition.getKaleoDefinitionId()); + } + + kaleoDefinitionPersistence.remove(kaleoDefinition); + + // Kaleo condition + + kaleoConditionLocalService.deleteKaleoDefinitionKaleoCondition(kaleoDefinition.getKaleoDefinitionId()); + + // Kaleo instances + + kaleoInstanceLocalService.deleteKaleoDefinitionKaleoInstances(kaleoDefinition.getKaleoDefinitionId()); + + // Kaleo nodes + + kaleoNodeLocalService.deleteKaleoDefinitionKaleoNodes(kaleoDefinition.getKaleoDefinitionId()); + + // Kaleo tasks + + kaleoTaskLocalService.deleteKaleoDefinitionKaleoTasks(kaleoDefinition.getKaleoDefinitionId()); + + // Kaleo transitions + + kaleoTransitionLocalService.deleteKaleoDefinitionKaleoTransitions(kaleoDefinition.getKaleoDefinitionId()); + + // Form Definition Links + + FormDefinitionLink formDefinitionLink = + FormDefinitionLinkLocalServiceUtil.fetchByC_DefinitionName_DefinitionVersion(kaleoDefinition.getCompanyId(), + kaleoDefinition.getName(), kaleoDefinition.getVersion()); + + if (formDefinitionLink != null) { + throw new SystemException("Definition related to structure"); + } + } + + + public KaleoDefinition getKaleoDefinition(String name, int version, ServiceContext serviceContext) + throws PortalException, SystemException { + + return kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); + } + + + public List getKaleoDefinitions(boolean active, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.findByC_A(serviceContext.getCompanyId(), active, start, end, orderByComparator); + } + + + public List getKaleoDefinitions(int start, int end, OrderByComparator orderByComparator, + ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.findByCompanyId(serviceContext.getCompanyId(), start, end, orderByComparator); + } + + + public List getKaleoDefinitions(String name, boolean active, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.findByC_N_A(serviceContext.getCompanyId(), name, active, start, end, + orderByComparator); + } + + + public List getKaleoDefinitions(String name, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.findByC_N(serviceContext.getCompanyId(), name, start, end, orderByComparator); + } + + + public int getKaleoDefinitionsCount(boolean active, ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.countByC_A(serviceContext.getCompanyId(), active); + } + + + public int getKaleoDefinitionsCount(ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.countByCompanyId(serviceContext.getCompanyId()); + } + + + public int getKaleoDefinitionsCount(String name, boolean active, ServiceContext serviceContext) + throws SystemException { + + return kaleoDefinitionPersistence.countByC_N_A(serviceContext.getCompanyId(), name, active); + } + + + public int getKaleoDefinitionsCount(String name, ServiceContext serviceContext) throws SystemException { + + return kaleoDefinitionPersistence.countByC_N(serviceContext.getCompanyId(), name); + } + + + public KaleoDefinition getLatestKaleoDefinition(String name, ServiceContext serviceContext) throws PortalException, + SystemException { + + List kaleoDefinitions = + kaleoDefinitionPersistence.findByC_N(serviceContext.getCompanyId(), name, 0, 1); + + if (kaleoDefinitions.isEmpty()) { + throw new NoSuchDefinitionException(); + } + + return kaleoDefinitions.get(0); + } + + + public KaleoDefinition incrementKaleoDefinition(Definition definition, String title, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = getLatestKaleoDefinition(definition.getName(), serviceContext); + + return addKaleoDefinition(definition.getName(), title, definition.getDescription(), definition.getContent(), + kaleoDefinition.getVersion() + 1, serviceContext); + } + + + public KaleoDefinition updateTitle(String name, int version, String title, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoDefinition kaleoDefinition = + kaleoDefinitionPersistence.findByC_N_V(serviceContext.getCompanyId(), name, version); + + kaleoDefinition.setTitle(title); + + kaleoDefinitionPersistence.update(kaleoDefinition); + + return kaleoDefinition; + } + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionServiceImpl.java index 78c21c29..00928d8c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoDefinitionServiceImpl.java @@ -1,44 +1,44 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.service.base.KaleoDefinitionServiceBaseImpl; - -import java.util.List; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoDefinitionServiceImpl extends KaleoDefinitionServiceBaseImpl { - - - public List getKaleoDefinitions(int start, int end) - throws SystemException { - - return kaleoDefinitionPersistence.findAll(start, end); - } - - - public List getKaleoDefinitions( - long companyId, int start, int end) - throws SystemException { - - return kaleoDefinitionPersistence.findByCompanyId( - companyId, start, end); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.service.base.KaleoDefinitionServiceBaseImpl; + +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoDefinitionServiceImpl extends KaleoDefinitionServiceBaseImpl { + + + public List getKaleoDefinitions(int start, int end) + throws SystemException { + + return kaleoDefinitionPersistence.findAll(start, end); + } + + + public List getKaleoDefinitions( + long companyId, int start, int end) + throws SystemException { + + return kaleoDefinitionPersistence.findByCompanyId( + companyId, start, end); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceLocalServiceImpl.java index 0f799abf..642a277d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceLocalServiceImpl.java @@ -1,374 +1,374 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import it.tref.liferay.portos.kaleo.model.FormLog; -import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; -import java.util.Map; - -import com.liferay.portal.kernel.dao.orm.Criterion; -import com.liferay.portal.kernel.dao.orm.Disjunction; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Property; -import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.staging.StagingUtil; -import com.liferay.portal.kernel.util.ArrayUtil; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.NoSuchInstanceException; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.service.base.KaleoInstanceLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -/** - * @author Brian Wing Shun Chan - * @author Marcellus Tavares - */ -public class KaleoInstanceLocalServiceImpl extends KaleoInstanceLocalServiceBaseImpl { - - - public KaleoInstance addKaleoInstance(long kaleoDefinitionId, String kaleoDefinitionName, int kaleoDefinitionVersion, - Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId()); - - if (user == null) { - user = userLocalService.getDefaultUser(serviceContext.getCompanyId()); - } - - Date now = new Date(); - - long kaleoInstanceId = counterLocalService.increment(); - - KaleoInstance kaleoInstance = kaleoInstancePersistence.create(kaleoInstanceId); - - long groupId = StagingUtil.getLiveGroupId(serviceContext.getScopeGroupId()); - - kaleoInstance.setGroupId(groupId); - - kaleoInstance.setCompanyId(user.getCompanyId()); - kaleoInstance.setUserId(user.getUserId()); - kaleoInstance.setUserName(user.getFullName()); - kaleoInstance.setCreateDate(now); - kaleoInstance.setModifiedDate(now); - kaleoInstance.setKaleoDefinitionId(kaleoDefinitionId); - kaleoInstance.setKaleoDefinitionName(kaleoDefinitionName); - kaleoInstance.setKaleoDefinitionVersion(kaleoDefinitionVersion); - kaleoInstance.setClassName((String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - - if (workflowContext.containsKey(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { - - kaleoInstance.setClassPK(GetterUtil.getLong((String) workflowContext - .get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); - } - - kaleoInstance.setCompleted(false); - kaleoInstance.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); - - kaleoInstancePersistence.update(kaleoInstance); - - return kaleoInstance; - } - - - public KaleoInstance completeKaleoInstance(long kaleoInstanceId) throws PortalException, SystemException { - - KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey(kaleoInstanceId); - - kaleoInstance.setCompleted(true); - kaleoInstance.setCompletionDate(new Date()); - - kaleoInstancePersistence.update(kaleoInstance); - - return kaleoInstance; - } - - - public void deleteCompanyKaleoInstances(long companyId) throws SystemException { - - // Kaleo instances - - kaleoInstancePersistence.removeByCompanyId(companyId); - - // Kaleo instance tokens - - kaleoInstanceTokenLocalService.deleteKaleoDefinitionKaleoInstanceTokens(companyId); - - // Kaleo logs - - kaleoLogLocalService.deleteKaleoDefinitionKaleoLogs(companyId); - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenLocalService.deleteKaleoDefinitionKaleoTaskInstanceTokens(companyId); - } - - - public void deleteKaleoDefinitionKaleoInstances(long kaleoDefinitionId) throws SystemException { - - // Kaleo instances - - kaleoInstancePersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - - // Kaleo instance tokens - - kaleoInstanceTokenLocalService.deleteKaleoDefinitionKaleoInstanceTokens(kaleoDefinitionId); - - // Kaleo logs - - kaleoLogLocalService.deleteKaleoDefinitionKaleoLogs(kaleoDefinitionId); - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenLocalService.deleteKaleoDefinitionKaleoTaskInstanceTokens(kaleoDefinitionId); - } - - - public KaleoInstance deleteKaleoInstance(long kaleoInstanceId) throws SystemException { - - KaleoInstance kaleoInstance = null; - - try { - kaleoInstance = kaleoInstancePersistence.remove(kaleoInstanceId); - } catch (NoSuchInstanceException nsie) { - return null; - } - - // Kaleo instance tokens - - kaleoInstanceTokenLocalService.deleteKaleoInstanceKaleoInstanceTokens(kaleoInstanceId); - - // Kaleo logs - - kaleoLogLocalService.deleteKaleoInstanceKaleoLogs(kaleoInstanceId); - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenLocalService.deleteKaleoInstanceKaleoTaskInstanceTokens(kaleoInstanceId); - - // Kaleo timer instance tokens - - kaleoTimerInstanceTokenLocalService.deleteKaleoTimerInstanceTokens(kaleoInstanceId); - - // Form Logs - - List formLogs = - FormLogLocalServiceUtil.findByC_Instance(kaleoInstance.getCompanyId(), kaleoInstanceId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS); - for (FormLog formLog : formLogs) { - FormLogLocalServiceUtil.deleteFormLog(formLog); - } - - return kaleoInstance; - } - - public List getKaleoInstances(Long userId, String assetClassName, Long assetClassPK, - Boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassName, assetClassPK, completed, serviceContext); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - - public List getKaleoInstances(Long userId, String[] assetClassNames, Boolean completed, int start, - int end, OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassNames, null, completed, serviceContext); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - - public List getKaleoInstances(String kaleoDefinitionName, int kaleoDefinitionVersion, - boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = - buildDynamicQuery(kaleoDefinitionName, kaleoDefinitionVersion, completed, serviceContext); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - - public int getKaleoInstancesCount(long kaleoDefinitionId, boolean completed) throws SystemException { - - return kaleoInstancePersistence.countByKDI_C(kaleoDefinitionId, completed); - } - - - public int getKaleoInstancesCount(Long userId, String assetClassName, Long assetClassPK, Boolean completed, - ServiceContext serviceContext) throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassName, assetClassPK, completed, serviceContext); - - return (int) dynamicQueryCount(dynamicQuery); - } - - - public int getKaleoInstancesCount(Long userId, String[] assetClassNames, Boolean completed, - ServiceContext serviceContext) throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassNames, null, completed, serviceContext); - - return (int) dynamicQueryCount(dynamicQuery); - } - - - public int getKaleoInstancesCount(String kaleoDefinitionName, int kaleoDefinitionVersion, boolean completed, - ServiceContext serviceContext) throws SystemException { - - DynamicQuery dynamicQuery = - buildDynamicQuery(kaleoDefinitionName, kaleoDefinitionVersion, completed, serviceContext); - - return (int) dynamicQueryCount(dynamicQuery); - } - - - public KaleoInstance updateKaleoInstance(long kaleoInstanceId, Map workflowContext, - ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey(kaleoInstanceId); - - kaleoInstance.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); - - kaleoInstancePersistence.update(kaleoInstance); - - return kaleoInstance; - } - - protected DynamicQuery buildDynamicQuery(Long userId, String assetClassName, Long assetClassPK, Boolean completed, - ServiceContext serviceContext) { - - String[] assetClassNames = null; - - if (Validator.isNotNull(assetClassName)) { - assetClassNames = new String[] {assetClassName}; - } - - Long[] assetClassPKs = null; - - if (Validator.isNotNull(assetClassPK)) { - assetClassPKs = new Long[] {assetClassPK}; - } - - return buildDynamicQuery(userId, assetClassNames, assetClassPKs, completed, serviceContext); - } - - protected DynamicQuery buildDynamicQuery(Long userId, String[] assetClassNames, Long[] assetClassPKs, - Boolean completed, ServiceContext serviceContext) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, getClassLoader()); - - Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); - - if (userId != null) { - Property userIdProperty = PropertyFactoryUtil.forName("userId"); - - dynamicQuery.add(userIdProperty.eq(userId)); - } - - if (ArrayUtil.isNotEmpty(assetClassNames)) { - dynamicQuery.add(getAssetClassNames(assetClassNames)); - } - - if (ArrayUtil.isNotEmpty(assetClassPKs)) { - dynamicQuery.add(getAssetClassPKs(assetClassPKs)); - } - - if (completed != null) { - if (completed) { - Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); - - dynamicQuery.add(completionDateProperty.isNotNull()); - } else { - Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); - - dynamicQuery.add(completionDateProperty.isNull()); - } - } - - return dynamicQuery; - } - - protected DynamicQuery buildDynamicQuery(String kaleoDefinitionName, int kaleoDefinitionVersion, boolean completed, - ServiceContext serviceContext) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, getClassLoader()); - - Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); - - Property kaleoDefinitionNameProperty = PropertyFactoryUtil.forName("kaleoDefinitionName"); - - dynamicQuery.add(kaleoDefinitionNameProperty.eq(kaleoDefinitionName)); - - Property kaleoDefinitionVersionProperty = PropertyFactoryUtil.forName("kaleoDefinitionVersion"); - - dynamicQuery.add(kaleoDefinitionVersionProperty.eq(kaleoDefinitionVersion)); - - if (completed) { - Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); - - dynamicQuery.add(completionDateProperty.isNotNull()); - } else { - Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); - - dynamicQuery.add(completionDateProperty.isNull()); - } - - return dynamicQuery; - } - - protected Criterion getAssetClassNames(String[] assetClassNames) { - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); - - for (String assetClassName : assetClassNames) { - Property classNameProperty = PropertyFactoryUtil.forName("className"); - - disjunction.add(classNameProperty.like(assetClassName)); - } - - return disjunction; - } - - protected Criterion getAssetClassPKs(Long[] assetClassPKs) { - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); - - for (Long assetClassPK : assetClassPKs) { - Property classPKProperty = PropertyFactoryUtil.forName("classPK"); - - disjunction.add(classPKProperty.eq(assetClassPK)); - } - - return disjunction; - } - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import it.tref.liferay.portos.kaleo.model.FormLog; +import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import com.liferay.portal.kernel.dao.orm.Criterion; +import com.liferay.portal.kernel.dao.orm.Disjunction; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.Property; +import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.staging.StagingUtil; +import com.liferay.portal.kernel.util.ArrayUtil; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.NoSuchInstanceException; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.service.base.KaleoInstanceLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +/** + * @author Brian Wing Shun Chan + * @author Marcellus Tavares + */ +public class KaleoInstanceLocalServiceImpl extends KaleoInstanceLocalServiceBaseImpl { + + + public KaleoInstance addKaleoInstance(long kaleoDefinitionId, String kaleoDefinitionName, int kaleoDefinitionVersion, + Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId()); + + if (user == null) { + user = userLocalService.getDefaultUser(serviceContext.getCompanyId()); + } + + Date now = new Date(); + + long kaleoInstanceId = counterLocalService.increment(); + + KaleoInstance kaleoInstance = kaleoInstancePersistence.create(kaleoInstanceId); + + long groupId = StagingUtil.getLiveGroupId(serviceContext.getScopeGroupId()); + + kaleoInstance.setGroupId(groupId); + + kaleoInstance.setCompanyId(user.getCompanyId()); + kaleoInstance.setUserId(user.getUserId()); + kaleoInstance.setUserName(user.getFullName()); + kaleoInstance.setCreateDate(now); + kaleoInstance.setModifiedDate(now); + kaleoInstance.setKaleoDefinitionId(kaleoDefinitionId); + kaleoInstance.setKaleoDefinitionName(kaleoDefinitionName); + kaleoInstance.setKaleoDefinitionVersion(kaleoDefinitionVersion); + kaleoInstance.setClassName((String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + + if (workflowContext.containsKey(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { + + kaleoInstance.setClassPK(GetterUtil.getLong((String) workflowContext + .get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); + } + + kaleoInstance.setCompleted(false); + kaleoInstance.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); + + kaleoInstancePersistence.update(kaleoInstance); + + return kaleoInstance; + } + + + public KaleoInstance completeKaleoInstance(long kaleoInstanceId) throws PortalException, SystemException { + + KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey(kaleoInstanceId); + + kaleoInstance.setCompleted(true); + kaleoInstance.setCompletionDate(new Date()); + + kaleoInstancePersistence.update(kaleoInstance); + + return kaleoInstance; + } + + + public void deleteCompanyKaleoInstances(long companyId) throws SystemException { + + // Kaleo instances + + kaleoInstancePersistence.removeByCompanyId(companyId); + + // Kaleo instance tokens + + kaleoInstanceTokenLocalService.deleteKaleoDefinitionKaleoInstanceTokens(companyId); + + // Kaleo logs + + kaleoLogLocalService.deleteKaleoDefinitionKaleoLogs(companyId); + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenLocalService.deleteKaleoDefinitionKaleoTaskInstanceTokens(companyId); + } + + + public void deleteKaleoDefinitionKaleoInstances(long kaleoDefinitionId) throws SystemException { + + // Kaleo instances + + kaleoInstancePersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + + // Kaleo instance tokens + + kaleoInstanceTokenLocalService.deleteKaleoDefinitionKaleoInstanceTokens(kaleoDefinitionId); + + // Kaleo logs + + kaleoLogLocalService.deleteKaleoDefinitionKaleoLogs(kaleoDefinitionId); + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenLocalService.deleteKaleoDefinitionKaleoTaskInstanceTokens(kaleoDefinitionId); + } + + + public KaleoInstance deleteKaleoInstance(long kaleoInstanceId) throws SystemException { + + KaleoInstance kaleoInstance = null; + + try { + kaleoInstance = kaleoInstancePersistence.remove(kaleoInstanceId); + } catch (NoSuchInstanceException nsie) { + return null; + } + + // Kaleo instance tokens + + kaleoInstanceTokenLocalService.deleteKaleoInstanceKaleoInstanceTokens(kaleoInstanceId); + + // Kaleo logs + + kaleoLogLocalService.deleteKaleoInstanceKaleoLogs(kaleoInstanceId); + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenLocalService.deleteKaleoInstanceKaleoTaskInstanceTokens(kaleoInstanceId); + + // Kaleo timer instance tokens + + kaleoTimerInstanceTokenLocalService.deleteKaleoTimerInstanceTokens(kaleoInstanceId); + + // Form Logs + + List formLogs = + FormLogLocalServiceUtil.findByC_Instance(kaleoInstance.getCompanyId(), kaleoInstanceId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); + for (FormLog formLog : formLogs) { + FormLogLocalServiceUtil.deleteFormLog(formLog); + } + + return kaleoInstance; + } + + public List getKaleoInstances(Long userId, String assetClassName, Long assetClassPK, + Boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassName, assetClassPK, completed, serviceContext); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + + public List getKaleoInstances(Long userId, String[] assetClassNames, Boolean completed, int start, + int end, OrderByComparator orderByComparator, ServiceContext serviceContext) throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassNames, null, completed, serviceContext); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + + public List getKaleoInstances(String kaleoDefinitionName, int kaleoDefinitionVersion, + boolean completed, int start, int end, OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = + buildDynamicQuery(kaleoDefinitionName, kaleoDefinitionVersion, completed, serviceContext); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + + public int getKaleoInstancesCount(long kaleoDefinitionId, boolean completed) throws SystemException { + + return kaleoInstancePersistence.countByKDI_C(kaleoDefinitionId, completed); + } + + + public int getKaleoInstancesCount(Long userId, String assetClassName, Long assetClassPK, Boolean completed, + ServiceContext serviceContext) throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassName, assetClassPK, completed, serviceContext); + + return (int) dynamicQueryCount(dynamicQuery); + } + + + public int getKaleoInstancesCount(Long userId, String[] assetClassNames, Boolean completed, + ServiceContext serviceContext) throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery(userId, assetClassNames, null, completed, serviceContext); + + return (int) dynamicQueryCount(dynamicQuery); + } + + + public int getKaleoInstancesCount(String kaleoDefinitionName, int kaleoDefinitionVersion, boolean completed, + ServiceContext serviceContext) throws SystemException { + + DynamicQuery dynamicQuery = + buildDynamicQuery(kaleoDefinitionName, kaleoDefinitionVersion, completed, serviceContext); + + return (int) dynamicQueryCount(dynamicQuery); + } + + + public KaleoInstance updateKaleoInstance(long kaleoInstanceId, Map workflowContext, + ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey(kaleoInstanceId); + + kaleoInstance.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); + + kaleoInstancePersistence.update(kaleoInstance); + + return kaleoInstance; + } + + protected DynamicQuery buildDynamicQuery(Long userId, String assetClassName, Long assetClassPK, Boolean completed, + ServiceContext serviceContext) { + + String[] assetClassNames = null; + + if (Validator.isNotNull(assetClassName)) { + assetClassNames = new String[] {assetClassName}; + } + + Long[] assetClassPKs = null; + + if (Validator.isNotNull(assetClassPK)) { + assetClassPKs = new Long[] {assetClassPK}; + } + + return buildDynamicQuery(userId, assetClassNames, assetClassPKs, completed, serviceContext); + } + + protected DynamicQuery buildDynamicQuery(Long userId, String[] assetClassNames, Long[] assetClassPKs, + Boolean completed, ServiceContext serviceContext) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, getClassLoader()); + + Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); + + if (userId != null) { + Property userIdProperty = PropertyFactoryUtil.forName("userId"); + + dynamicQuery.add(userIdProperty.eq(userId)); + } + + if (ArrayUtil.isNotEmpty(assetClassNames)) { + dynamicQuery.add(getAssetClassNames(assetClassNames)); + } + + if (ArrayUtil.isNotEmpty(assetClassPKs)) { + dynamicQuery.add(getAssetClassPKs(assetClassPKs)); + } + + if (completed != null) { + if (completed) { + Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); + + dynamicQuery.add(completionDateProperty.isNotNull()); + } else { + Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); + + dynamicQuery.add(completionDateProperty.isNull()); + } + } + + return dynamicQuery; + } + + protected DynamicQuery buildDynamicQuery(String kaleoDefinitionName, int kaleoDefinitionVersion, boolean completed, + ServiceContext serviceContext) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, getClassLoader()); + + Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); + + Property kaleoDefinitionNameProperty = PropertyFactoryUtil.forName("kaleoDefinitionName"); + + dynamicQuery.add(kaleoDefinitionNameProperty.eq(kaleoDefinitionName)); + + Property kaleoDefinitionVersionProperty = PropertyFactoryUtil.forName("kaleoDefinitionVersion"); + + dynamicQuery.add(kaleoDefinitionVersionProperty.eq(kaleoDefinitionVersion)); + + if (completed) { + Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); + + dynamicQuery.add(completionDateProperty.isNotNull()); + } else { + Property completionDateProperty = PropertyFactoryUtil.forName("completionDate"); + + dynamicQuery.add(completionDateProperty.isNull()); + } + + return dynamicQuery; + } + + protected Criterion getAssetClassNames(String[] assetClassNames) { + Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); + + for (String assetClassName : assetClassNames) { + Property classNameProperty = PropertyFactoryUtil.forName("className"); + + disjunction.add(classNameProperty.like(assetClassName)); + } + + return disjunction; + } + + protected Criterion getAssetClassPKs(Long[] assetClassPKs) { + Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); + + for (Long assetClassPK : assetClassPKs) { + Property classPKProperty = PropertyFactoryUtil.forName("classPK"); + + disjunction.add(classPKProperty.eq(assetClassPK)); + } + + return disjunction; + } + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceTokenLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceTokenLocalServiceImpl.java index 7c7e6c38..7aa1a737 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceTokenLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoInstanceTokenLocalServiceImpl.java @@ -1,279 +1,279 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.staging.StagingUtil; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl; -import com.liferay.portal.workflow.kaleo.service.base.KaleoInstanceTokenLocalServiceBaseImpl; - -import java.io.Serializable; - -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoInstanceTokenLocalServiceImpl - extends KaleoInstanceTokenLocalServiceBaseImpl { - - - public KaleoInstanceToken addKaleoInstanceToken( - long parentKaleoInstanceTokenId, - Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - KaleoInstanceToken parentKaleoInstanceToken = - kaleoInstanceTokenPersistence.findByPrimaryKey( - parentKaleoInstanceTokenId); - Date now = new Date(); - - long kaleoInstanceTokenId = counterLocalService.increment(); - - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.create(kaleoInstanceTokenId); - - long groupId = StagingUtil.getLiveGroupId( - serviceContext.getScopeGroupId()); - - kaleoInstanceToken.setGroupId(groupId); - - kaleoInstanceToken.setCompanyId(user.getCompanyId()); - kaleoInstanceToken.setUserId(user.getUserId()); - kaleoInstanceToken.setUserName(user.getFullName()); - kaleoInstanceToken.setCreateDate(now); - kaleoInstanceToken.setModifiedDate(now); - kaleoInstanceToken.setKaleoDefinitionId( - parentKaleoInstanceToken.getKaleoDefinitionId()); - kaleoInstanceToken.setKaleoInstanceId( - parentKaleoInstanceToken.getKaleoInstanceId()); - kaleoInstanceToken.setParentKaleoInstanceTokenId( - parentKaleoInstanceToken.getKaleoInstanceTokenId()); - - setCurrentKaleoNode( - kaleoInstanceToken, - parentKaleoInstanceToken.getCurrentKaleoNodeId()); - - kaleoInstanceToken.setClassName( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - - if (workflowContext.containsKey( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { - - kaleoInstanceToken.setClassPK( - GetterUtil.getLong( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); - } - - kaleoInstanceToken.setCompleted(false); - - kaleoInstanceTokenPersistence.update(kaleoInstanceToken); - - return kaleoInstanceToken; - } - - - public KaleoInstanceToken completeKaleoInstanceToken( - long kaleoInstanceTokenId) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.findByPrimaryKey( - kaleoInstanceTokenId); - - kaleoInstanceToken.setCompleted(true); - kaleoInstanceToken.setCompletionDate(new Date()); - - kaleoInstanceTokenPersistence.update(kaleoInstanceToken); - - return kaleoInstanceToken; - } - - - public void deleteCompanyKaleoInstanceTokens(long companyId) - throws SystemException { - - kaleoInstanceTokenPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoInstanceTokens(long kaleoDefinitionId) - throws SystemException { - - kaleoInstanceTokenPersistence.removeByKaleoDefinitionId( - kaleoDefinitionId); - } - - - public void deleteKaleoInstanceKaleoInstanceTokens(long kaleoInstanceId) - throws SystemException { - - kaleoInstanceTokenPersistence.removeByKaleoInstanceId(kaleoInstanceId); - } - - - public List getKaleoInstanceTokens( - long parentKaleoInstanceTokenId, Date completionDate, - ServiceContext serviceContext) - throws SystemException { - - return kaleoInstanceTokenPersistence.findByC_PKITI_CD( - serviceContext.getCompanyId(), parentKaleoInstanceTokenId, - completionDate); - } - - - public List getKaleoInstanceTokens( - long parentKaleoInstanceTokenId, ServiceContext serviceContext) - throws SystemException { - - return kaleoInstanceTokenPersistence.findByC_PKITI( - serviceContext.getCompanyId(), parentKaleoInstanceTokenId); - } - - - public int getKaleoInstanceTokensCount( - long parentKaleoInstanceTokenId, Date completionDate, - ServiceContext serviceContext) - throws SystemException { - - return kaleoInstanceTokenPersistence.countByC_PKITI_CD( - serviceContext.getCompanyId(), parentKaleoInstanceTokenId, - completionDate); - } - - - public int getKaleoInstanceTokensCount( - long parentKaleoInstanceTokenId, ServiceContext serviceContext) - throws SystemException { - - return kaleoInstanceTokenPersistence.countByC_PKITI( - serviceContext.getCompanyId(), parentKaleoInstanceTokenId); - } - - - public KaleoInstanceToken getRootKaleoInstanceToken( - long kaleoInstanceId, Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey( - kaleoInstanceId); - - long rootKaleoInstanceTokenId = - kaleoInstance.getRootKaleoInstanceTokenId(); - - if (rootKaleoInstanceTokenId > 0) { - return kaleoInstanceTokenPersistence.findByPrimaryKey( - rootKaleoInstanceTokenId); - } - - // Kaleo instance token - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - rootKaleoInstanceTokenId = counterLocalService.increment(); - - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.create(rootKaleoInstanceTokenId); - - long groupId = StagingUtil.getLiveGroupId( - serviceContext.getScopeGroupId()); - - kaleoInstanceToken.setGroupId(groupId); - - kaleoInstanceToken.setCompanyId(user.getCompanyId()); - kaleoInstanceToken.setUserId(user.getUserId()); - kaleoInstanceToken.setUserName(user.getFullName()); - kaleoInstanceToken.setCreateDate(now); - kaleoInstanceToken.setModifiedDate(now); - kaleoInstanceToken.setKaleoDefinitionId( - kaleoInstance.getKaleoDefinitionId()); - kaleoInstanceToken.setKaleoInstanceId( - kaleoInstance.getKaleoInstanceId()); - kaleoInstanceToken.setParentKaleoInstanceTokenId( - KaleoInstanceTokenImpl.DEFAULT_PARENT_KALEO_INSTANCE_TOKEN_ID); - kaleoInstanceToken.setClassName( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - - if (workflowContext.containsKey( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { - - kaleoInstanceToken.setClassPK( - GetterUtil.getLong( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); - } - - kaleoInstanceTokenPersistence.update(kaleoInstanceToken); - - // Kaleo instance - - kaleoInstance.setRootKaleoInstanceTokenId(rootKaleoInstanceTokenId); - - kaleoInstancePersistence.update(kaleoInstance); - - return kaleoInstanceToken; - } - - - public KaleoInstanceToken updateKaleoInstanceToken( - long kaleoInstanceTokenId, long currentKaleoNodeId) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.findByPrimaryKey( - kaleoInstanceTokenId); - - kaleoInstanceToken.setModifiedDate(new Date()); - - setCurrentKaleoNode(kaleoInstanceToken, currentKaleoNodeId); - - kaleoInstanceTokenPersistence.update(kaleoInstanceToken); - - return kaleoInstanceToken; - } - - protected void setCurrentKaleoNode( - KaleoInstanceToken kaleoInstanceToken, long currentKaleoNodeId) - throws PortalException, SystemException { - - kaleoInstanceToken.setCurrentKaleoNodeId(currentKaleoNodeId); - - KaleoNode currentKaleoNode = kaleoNodeLocalService.getKaleoNode( - currentKaleoNodeId); - - kaleoInstanceToken.setCurrentKaleoNodeName(currentKaleoNode.getName()); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.staging.StagingUtil; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceTokenImpl; +import com.liferay.portal.workflow.kaleo.service.base.KaleoInstanceTokenLocalServiceBaseImpl; + +import java.io.Serializable; + +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoInstanceTokenLocalServiceImpl + extends KaleoInstanceTokenLocalServiceBaseImpl { + + + public KaleoInstanceToken addKaleoInstanceToken( + long parentKaleoInstanceTokenId, + Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + KaleoInstanceToken parentKaleoInstanceToken = + kaleoInstanceTokenPersistence.findByPrimaryKey( + parentKaleoInstanceTokenId); + Date now = new Date(); + + long kaleoInstanceTokenId = counterLocalService.increment(); + + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.create(kaleoInstanceTokenId); + + long groupId = StagingUtil.getLiveGroupId( + serviceContext.getScopeGroupId()); + + kaleoInstanceToken.setGroupId(groupId); + + kaleoInstanceToken.setCompanyId(user.getCompanyId()); + kaleoInstanceToken.setUserId(user.getUserId()); + kaleoInstanceToken.setUserName(user.getFullName()); + kaleoInstanceToken.setCreateDate(now); + kaleoInstanceToken.setModifiedDate(now); + kaleoInstanceToken.setKaleoDefinitionId( + parentKaleoInstanceToken.getKaleoDefinitionId()); + kaleoInstanceToken.setKaleoInstanceId( + parentKaleoInstanceToken.getKaleoInstanceId()); + kaleoInstanceToken.setParentKaleoInstanceTokenId( + parentKaleoInstanceToken.getKaleoInstanceTokenId()); + + setCurrentKaleoNode( + kaleoInstanceToken, + parentKaleoInstanceToken.getCurrentKaleoNodeId()); + + kaleoInstanceToken.setClassName( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + + if (workflowContext.containsKey( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { + + kaleoInstanceToken.setClassPK( + GetterUtil.getLong( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); + } + + kaleoInstanceToken.setCompleted(false); + + kaleoInstanceTokenPersistence.update(kaleoInstanceToken); + + return kaleoInstanceToken; + } + + + public KaleoInstanceToken completeKaleoInstanceToken( + long kaleoInstanceTokenId) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.findByPrimaryKey( + kaleoInstanceTokenId); + + kaleoInstanceToken.setCompleted(true); + kaleoInstanceToken.setCompletionDate(new Date()); + + kaleoInstanceTokenPersistence.update(kaleoInstanceToken); + + return kaleoInstanceToken; + } + + + public void deleteCompanyKaleoInstanceTokens(long companyId) + throws SystemException { + + kaleoInstanceTokenPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoInstanceTokens(long kaleoDefinitionId) + throws SystemException { + + kaleoInstanceTokenPersistence.removeByKaleoDefinitionId( + kaleoDefinitionId); + } + + + public void deleteKaleoInstanceKaleoInstanceTokens(long kaleoInstanceId) + throws SystemException { + + kaleoInstanceTokenPersistence.removeByKaleoInstanceId(kaleoInstanceId); + } + + + public List getKaleoInstanceTokens( + long parentKaleoInstanceTokenId, Date completionDate, + ServiceContext serviceContext) + throws SystemException { + + return kaleoInstanceTokenPersistence.findByC_PKITI_CD( + serviceContext.getCompanyId(), parentKaleoInstanceTokenId, + completionDate); + } + + + public List getKaleoInstanceTokens( + long parentKaleoInstanceTokenId, ServiceContext serviceContext) + throws SystemException { + + return kaleoInstanceTokenPersistence.findByC_PKITI( + serviceContext.getCompanyId(), parentKaleoInstanceTokenId); + } + + + public int getKaleoInstanceTokensCount( + long parentKaleoInstanceTokenId, Date completionDate, + ServiceContext serviceContext) + throws SystemException { + + return kaleoInstanceTokenPersistence.countByC_PKITI_CD( + serviceContext.getCompanyId(), parentKaleoInstanceTokenId, + completionDate); + } + + + public int getKaleoInstanceTokensCount( + long parentKaleoInstanceTokenId, ServiceContext serviceContext) + throws SystemException { + + return kaleoInstanceTokenPersistence.countByC_PKITI( + serviceContext.getCompanyId(), parentKaleoInstanceTokenId); + } + + + public KaleoInstanceToken getRootKaleoInstanceToken( + long kaleoInstanceId, Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoInstance kaleoInstance = kaleoInstancePersistence.findByPrimaryKey( + kaleoInstanceId); + + long rootKaleoInstanceTokenId = + kaleoInstance.getRootKaleoInstanceTokenId(); + + if (rootKaleoInstanceTokenId > 0) { + return kaleoInstanceTokenPersistence.findByPrimaryKey( + rootKaleoInstanceTokenId); + } + + // Kaleo instance token + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + rootKaleoInstanceTokenId = counterLocalService.increment(); + + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.create(rootKaleoInstanceTokenId); + + long groupId = StagingUtil.getLiveGroupId( + serviceContext.getScopeGroupId()); + + kaleoInstanceToken.setGroupId(groupId); + + kaleoInstanceToken.setCompanyId(user.getCompanyId()); + kaleoInstanceToken.setUserId(user.getUserId()); + kaleoInstanceToken.setUserName(user.getFullName()); + kaleoInstanceToken.setCreateDate(now); + kaleoInstanceToken.setModifiedDate(now); + kaleoInstanceToken.setKaleoDefinitionId( + kaleoInstance.getKaleoDefinitionId()); + kaleoInstanceToken.setKaleoInstanceId( + kaleoInstance.getKaleoInstanceId()); + kaleoInstanceToken.setParentKaleoInstanceTokenId( + KaleoInstanceTokenImpl.DEFAULT_PARENT_KALEO_INSTANCE_TOKEN_ID); + kaleoInstanceToken.setClassName( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + + if (workflowContext.containsKey( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { + + kaleoInstanceToken.setClassPK( + GetterUtil.getLong( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); + } + + kaleoInstanceTokenPersistence.update(kaleoInstanceToken); + + // Kaleo instance + + kaleoInstance.setRootKaleoInstanceTokenId(rootKaleoInstanceTokenId); + + kaleoInstancePersistence.update(kaleoInstance); + + return kaleoInstanceToken; + } + + + public KaleoInstanceToken updateKaleoInstanceToken( + long kaleoInstanceTokenId, long currentKaleoNodeId) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.findByPrimaryKey( + kaleoInstanceTokenId); + + kaleoInstanceToken.setModifiedDate(new Date()); + + setCurrentKaleoNode(kaleoInstanceToken, currentKaleoNodeId); + + kaleoInstanceTokenPersistence.update(kaleoInstanceToken); + + return kaleoInstanceToken; + } + + protected void setCurrentKaleoNode( + KaleoInstanceToken kaleoInstanceToken, long currentKaleoNodeId) + throws PortalException, SystemException { + + kaleoInstanceToken.setCurrentKaleoNodeId(currentKaleoNodeId); + + KaleoNode currentKaleoNode = kaleoNodeLocalService.getKaleoNode( + currentKaleoNodeId); + + kaleoInstanceToken.setCurrentKaleoNodeName(currentKaleoNode.getName()); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoLogLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoLogLocalServiceImpl.java index 067f4f42..43fb8b99 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoLogLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoLogLocalServiceImpl.java @@ -1,431 +1,431 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; -import java.util.Map; - -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Junction; -import com.liferay.portal.kernel.dao.orm.Property; -import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; -import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.NoSuchLogException; -import com.liferay.portal.workflow.kaleo.definition.LogType; -import com.liferay.portal.workflow.kaleo.model.KaleoAction; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoLog; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.base.KaleoLogLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.util.KaleoLogUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoLogLocalServiceImpl extends KaleoLogLocalServiceBaseImpl { - - - public KaleoLog addActionExecutionKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoAction kaleoAction, - long startTime, long endTime, String comment, ServiceContext serviceContext) throws PortalException, - SystemException { - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.ACTION_EXECUTION, serviceContext); - - kaleoLog.setKaleoClassName(kaleoAction.getKaleoClassName()); - kaleoLog.setKaleoClassPK(kaleoAction.getKaleoClassPK()); - kaleoLog.setKaleoDefinitionId(kaleoAction.getKaleoDefinitionId()); - kaleoLog.setKaleoNodeName(kaleoAction.getKaleoNodeName()); - kaleoLog.setComment(comment); - kaleoLog.setStartDate(new Date(startTime)); - kaleoLog.setEndDate(new Date(endTime)); - kaleoLog.setDuration(endTime - startTime); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addNodeEntryKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoNode sourceKaleoNode, - KaleoNode targetKaleoNode, ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.NODE_ENTRY, serviceContext); - - kaleoLog.setKaleoClassName(KaleoNode.class.getName()); - kaleoLog.setKaleoClassPK(targetKaleoNode.getKaleoNodeId()); - kaleoLog.setKaleoDefinitionId(targetKaleoNode.getKaleoDefinitionId()); - kaleoLog.setKaleoNodeName(targetKaleoNode.getName()); - kaleoLog.setTerminalKaleoNode(targetKaleoNode.isTerminal()); - - if (sourceKaleoNode != null) { - kaleoLog.setPreviousKaleoNodeId(sourceKaleoNode.getKaleoNodeId()); - kaleoLog.setPreviousKaleoNodeName(sourceKaleoNode.getName()); - } - - kaleoLog.setStartDate(kaleoLog.getCreateDate()); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addNodeExitKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoNode departingKaleoNode, - ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.NODE_EXIT, serviceContext); - - kaleoLog.setKaleoClassName(KaleoNode.class.getName()); - kaleoLog.setKaleoClassPK(departingKaleoNode.getKaleoNodeId()); - kaleoLog.setKaleoDefinitionId(departingKaleoNode.getKaleoDefinitionId()); - kaleoLog.setKaleoNodeName(departingKaleoNode.getName()); - kaleoLog.setEndDate(kaleoLog.getCreateDate()); - - try { - KaleoLog previousKaleoLog = - getPreviousLog(kaleoLog.getKaleoInstanceTokenId(), kaleoLog.getKaleoClassPK(), LogType.NODE_ENTRY); - - Date startDate = previousKaleoLog.getStartDate(); - Date endDate = kaleoLog.getEndDate(); - - kaleoLog.setDuration(endDate.getTime() - startDate.getTime()); - } catch (NoSuchLogException nsle) { - } - - KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(kaleoInstanceToken.getKaleoInstanceId()); - - kaleoLog.setWorkflowContext(kaleoInstance.getWorkflowContext()); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addTaskAssignmentKaleoLog(List previousKaleoTaskAssignmentInstances, - KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, Map workflowContext, - ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_ASSIGNMENT, serviceContext); - - kaleoLog.setKaleoTaskInstanceTokenId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - - KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - kaleoLog.setKaleoClassName(KaleoNode.class.getName()); - kaleoLog.setKaleoClassPK(currentKaleoNode.getKaleoNodeId()); - kaleoLog.setKaleoDefinitionId(currentKaleoNode.getKaleoDefinitionId()); - kaleoLog.setKaleoNodeName(currentKaleoNode.getName()); - - if (previousKaleoTaskAssignmentInstances != null) { - if (previousKaleoTaskAssignmentInstances.size() == 1) { - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = previousKaleoTaskAssignmentInstances.get(0); - - kaleoLog.setPreviousAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); - kaleoLog.setPreviousAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); - } - } - - List kaleoTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - if (!kaleoTaskAssignmentInstances.isEmpty()) { - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); - - kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); - kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); - } - - kaleoLog.setComment(comment); - kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addTaskCompletionKaleoLog(KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, - Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_COMPLETION, serviceContext); - - kaleoLog.setKaleoTaskInstanceTokenId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - - KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); - - kaleoLog.setKaleoClassName(KaleoNode.class.getName()); - kaleoLog.setKaleoClassPK(currentKaleoNode.getKaleoNodeId()); - kaleoLog.setKaleoDefinitionId(currentKaleoNode.getKaleoDefinitionId()); - kaleoLog.setKaleoNodeName(currentKaleoNode.getName()); - - List kaleoTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - if (!kaleoTaskAssignmentInstances.isEmpty()) { - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); - - kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); - kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); - } - - kaleoLog.setComment(comment); - kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addTaskUpdateKaleoLog(KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, - Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_UPDATE, serviceContext); - - List kaleoTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - if (!kaleoTaskAssignmentInstances.isEmpty()) { - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); - - kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); - kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); - } - - kaleoLog.setComment(comment); - kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addWorkflowInstanceEndKaleoLog(KaleoInstanceToken kaleoInstanceToken, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.WORKFLOW_INSTANCE_END, serviceContext); - - kaleoLog.setEndDate(kaleoLog.getCreateDate()); - - try { - KaleoLog previousKaleoLog = - getPreviousLog(kaleoLog.getKaleoInstanceTokenId(), 0, LogType.WORKFLOW_INSTANCE_START); - - Date startDate = previousKaleoLog.getStartDate(); - Date endDate = kaleoLog.getEndDate(); - - kaleoLog.setDuration(endDate.getTime() - startDate.getTime()); - } catch (NoSuchLogException nsle) { - } - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public KaleoLog addWorkflowInstanceStartKaleoLog(KaleoInstanceToken kaleoInstanceToken, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.WORKFLOW_INSTANCE_START, serviceContext); - - kaleoLog.setStartDate(kaleoLog.getCreateDate()); - - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - kaleoLog.setWorkflowContext(kaleoInstance.getWorkflowContext()); - - kaleoLogPersistence.update(kaleoLog); - - return kaleoLog; - } - - - public void deleteCompanyKaleoLogs(long companyId) throws SystemException { - kaleoLogPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoLogs(long kaleoDefinitionId) throws SystemException { - - kaleoLogPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - } - - - public void deleteKaleoInstanceKaleoLogs(long kaleoInstanceId) throws SystemException { - - kaleoLogPersistence.removeByKaleoInstanceId(kaleoInstanceId); - } - - - public List getKaleoInstanceKaleoLogs(long kaleoInstanceId, List logTypes, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - if ((logTypes == null) || logTypes.isEmpty()) { - return kaleoLogPersistence.findByKaleoInstanceId(kaleoInstanceId, start, end, orderByComparator); - } else { - DynamicQuery dynamicQuery = buildKaleoInstanceDynamicQuery(kaleoInstanceId, logTypes); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - } - - - public int getKaleoInstanceKaleoLogsCount(long kaleoInstanceId, List logTypes) throws SystemException { - - if ((logTypes == null) || logTypes.isEmpty()) { - return kaleoLogPersistence.countByKaleoInstanceId(kaleoInstanceId); - } - - DynamicQuery dynamicQuery = buildKaleoInstanceDynamicQuery(kaleoInstanceId, logTypes); - - return (int) dynamicQueryCount(dynamicQuery); - } - - - public List getKaleoTaskInstanceTokenKaleoLogs(long kaleoTaskInstanceTokenId, List logTypes, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - - if ((logTypes == null) || logTypes.isEmpty()) { - return kaleoLogPersistence - .findByKaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId, start, end, orderByComparator); - } else { - DynamicQuery dynamicQuery = buildKaleoTaskInstanceTokenDynamicQuery(kaleoTaskInstanceTokenId, logTypes); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - } - - - public int getKaleoTaskInstanceTokenKaleoLogsCount(long kaleoTaskInstanceTokenId, List logTypes) - throws SystemException { - - if ((logTypes == null) || logTypes.isEmpty()) { - return kaleoLogPersistence.countByKaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); - } else { - DynamicQuery dynamicQuery = buildKaleoTaskInstanceTokenDynamicQuery(kaleoTaskInstanceTokenId, logTypes); - - return (int) dynamicQueryCount(dynamicQuery); - } - } - - protected void addLogTypesJunction(DynamicQuery dynamicQuery, List logTypes) { - - Junction junction = RestrictionsFactoryUtil.disjunction(); - - for (Integer logType : logTypes) { - String logTypeString = KaleoLogUtil.convert(logType); - - if (Validator.isNull(logTypeString)) { - continue; - } - - Property property = PropertyFactoryUtil.forName("type"); - - junction.add(property.eq(logTypeString)); - } - - dynamicQuery.add(junction); - } - - protected DynamicQuery buildKaleoInstanceDynamicQuery(long kaleoInstanceId, List logTypes) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoLog.class, getClassLoader()); - - Property property = PropertyFactoryUtil.forName("kaleoInstanceId"); - - dynamicQuery.add(property.eq(kaleoInstanceId)); - - addLogTypesJunction(dynamicQuery, logTypes); - - return dynamicQuery; - } - - protected DynamicQuery buildKaleoTaskInstanceTokenDynamicQuery(long kaleoTaskId, List logTypes) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoLog.class, getClassLoader()); - - Property property = PropertyFactoryUtil.forName("kaleoTaskInstanceTokenId"); - - dynamicQuery.add(property.eq(kaleoTaskId)); - - addLogTypesJunction(dynamicQuery, logTypes); - - return dynamicQuery; - } - - protected KaleoLog createKaleoLog(KaleoInstanceToken kaleoInstanceToken, LogType logType, - ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey(serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoLogId = counterLocalService.increment(); - - KaleoLog kaleoLog = kaleoLogPersistence.create(kaleoLogId); - - kaleoLog.setCompanyId(user.getCompanyId()); - kaleoLog.setUserId(user.getUserId()); - kaleoLog.setUserName(user.getFullName()); - kaleoLog.setCreateDate(now); - kaleoLog.setModifiedDate(now); - kaleoLog.setKaleoDefinitionId(kaleoInstanceToken.getKaleoDefinitionId()); - kaleoLog.setKaleoInstanceId(kaleoInstanceToken.getKaleoInstanceId()); - kaleoLog.setKaleoInstanceTokenId(kaleoInstanceToken.getKaleoInstanceTokenId()); - kaleoLog.setType(logType.name()); - - return kaleoLog; - } - - protected KaleoLog getPreviousLog(long kaleoInstanceTokenId, long kaleoNodeId, LogType logType) - throws PortalException, SystemException { - - List kaleoLogEntries = null; - - if (kaleoNodeId > 0) { - kaleoLogEntries = - kaleoLogPersistence.findByKCN_KCPK_KITI_T(KaleoNode.class.getName(), kaleoNodeId, kaleoInstanceTokenId, - logType.name()); - } else { - kaleoLogEntries = kaleoLogPersistence.findByKITI_T(kaleoInstanceTokenId, logType.name()); - } - - if (!kaleoLogEntries.isEmpty()) { - return kaleoLogEntries.get(0); - } - - throw new NoSuchLogException(); - } - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.Junction; +import com.liferay.portal.kernel.dao.orm.Property; +import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; +import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.NoSuchLogException; +import com.liferay.portal.workflow.kaleo.definition.LogType; +import com.liferay.portal.workflow.kaleo.model.KaleoAction; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoLog; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.base.KaleoLogLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.util.KaleoLogUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoLogLocalServiceImpl extends KaleoLogLocalServiceBaseImpl { + + + public KaleoLog addActionExecutionKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoAction kaleoAction, + long startTime, long endTime, String comment, ServiceContext serviceContext) throws PortalException, + SystemException { + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.ACTION_EXECUTION, serviceContext); + + kaleoLog.setKaleoClassName(kaleoAction.getKaleoClassName()); + kaleoLog.setKaleoClassPK(kaleoAction.getKaleoClassPK()); + kaleoLog.setKaleoDefinitionId(kaleoAction.getKaleoDefinitionId()); + kaleoLog.setKaleoNodeName(kaleoAction.getKaleoNodeName()); + kaleoLog.setComment(comment); + kaleoLog.setStartDate(new Date(startTime)); + kaleoLog.setEndDate(new Date(endTime)); + kaleoLog.setDuration(endTime - startTime); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addNodeEntryKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoNode sourceKaleoNode, + KaleoNode targetKaleoNode, ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.NODE_ENTRY, serviceContext); + + kaleoLog.setKaleoClassName(KaleoNode.class.getName()); + kaleoLog.setKaleoClassPK(targetKaleoNode.getKaleoNodeId()); + kaleoLog.setKaleoDefinitionId(targetKaleoNode.getKaleoDefinitionId()); + kaleoLog.setKaleoNodeName(targetKaleoNode.getName()); + kaleoLog.setTerminalKaleoNode(targetKaleoNode.isTerminal()); + + if (sourceKaleoNode != null) { + kaleoLog.setPreviousKaleoNodeId(sourceKaleoNode.getKaleoNodeId()); + kaleoLog.setPreviousKaleoNodeName(sourceKaleoNode.getName()); + } + + kaleoLog.setStartDate(kaleoLog.getCreateDate()); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addNodeExitKaleoLog(KaleoInstanceToken kaleoInstanceToken, KaleoNode departingKaleoNode, + ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.NODE_EXIT, serviceContext); + + kaleoLog.setKaleoClassName(KaleoNode.class.getName()); + kaleoLog.setKaleoClassPK(departingKaleoNode.getKaleoNodeId()); + kaleoLog.setKaleoDefinitionId(departingKaleoNode.getKaleoDefinitionId()); + kaleoLog.setKaleoNodeName(departingKaleoNode.getName()); + kaleoLog.setEndDate(kaleoLog.getCreateDate()); + + try { + KaleoLog previousKaleoLog = + getPreviousLog(kaleoLog.getKaleoInstanceTokenId(), kaleoLog.getKaleoClassPK(), LogType.NODE_ENTRY); + + Date startDate = previousKaleoLog.getStartDate(); + Date endDate = kaleoLog.getEndDate(); + + kaleoLog.setDuration(endDate.getTime() - startDate.getTime()); + } catch (NoSuchLogException nsle) { + } + + KaleoInstance kaleoInstance = kaleoInstanceLocalService.getKaleoInstance(kaleoInstanceToken.getKaleoInstanceId()); + + kaleoLog.setWorkflowContext(kaleoInstance.getWorkflowContext()); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addTaskAssignmentKaleoLog(List previousKaleoTaskAssignmentInstances, + KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, Map workflowContext, + ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_ASSIGNMENT, serviceContext); + + kaleoLog.setKaleoTaskInstanceTokenId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + + KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + kaleoLog.setKaleoClassName(KaleoNode.class.getName()); + kaleoLog.setKaleoClassPK(currentKaleoNode.getKaleoNodeId()); + kaleoLog.setKaleoDefinitionId(currentKaleoNode.getKaleoDefinitionId()); + kaleoLog.setKaleoNodeName(currentKaleoNode.getName()); + + if (previousKaleoTaskAssignmentInstances != null) { + if (previousKaleoTaskAssignmentInstances.size() == 1) { + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = previousKaleoTaskAssignmentInstances.get(0); + + kaleoLog.setPreviousAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); + kaleoLog.setPreviousAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); + } + } + + List kaleoTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + if (!kaleoTaskAssignmentInstances.isEmpty()) { + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); + + kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); + kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); + } + + kaleoLog.setComment(comment); + kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addTaskCompletionKaleoLog(KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, + Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_COMPLETION, serviceContext); + + kaleoLog.setKaleoTaskInstanceTokenId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + + KaleoNode currentKaleoNode = kaleoInstanceToken.getCurrentKaleoNode(); + + kaleoLog.setKaleoClassName(KaleoNode.class.getName()); + kaleoLog.setKaleoClassPK(currentKaleoNode.getKaleoNodeId()); + kaleoLog.setKaleoDefinitionId(currentKaleoNode.getKaleoDefinitionId()); + kaleoLog.setKaleoNodeName(currentKaleoNode.getName()); + + List kaleoTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + if (!kaleoTaskAssignmentInstances.isEmpty()) { + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); + + kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); + kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); + } + + kaleoLog.setComment(comment); + kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addTaskUpdateKaleoLog(KaleoTaskInstanceToken kaleoTaskInstanceToken, String comment, + Map workflowContext, ServiceContext serviceContext) throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.TASK_UPDATE, serviceContext); + + List kaleoTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + if (!kaleoTaskAssignmentInstances.isEmpty()) { + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = kaleoTaskAssignmentInstances.get(0); + + kaleoLog.setCurrentAssigneeClassPK(kaleoTaskAssignmentInstance.getAssigneeClassPK()); + kaleoLog.setCurrentAssigneeClassName(kaleoTaskAssignmentInstance.getAssigneeClassName()); + } + + kaleoLog.setComment(comment); + kaleoLog.setWorkflowContext(WorkflowContextUtil.convert(workflowContext)); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addWorkflowInstanceEndKaleoLog(KaleoInstanceToken kaleoInstanceToken, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.WORKFLOW_INSTANCE_END, serviceContext); + + kaleoLog.setEndDate(kaleoLog.getCreateDate()); + + try { + KaleoLog previousKaleoLog = + getPreviousLog(kaleoLog.getKaleoInstanceTokenId(), 0, LogType.WORKFLOW_INSTANCE_START); + + Date startDate = previousKaleoLog.getStartDate(); + Date endDate = kaleoLog.getEndDate(); + + kaleoLog.setDuration(endDate.getTime() - startDate.getTime()); + } catch (NoSuchLogException nsle) { + } + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public KaleoLog addWorkflowInstanceStartKaleoLog(KaleoInstanceToken kaleoInstanceToken, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoLog kaleoLog = createKaleoLog(kaleoInstanceToken, LogType.WORKFLOW_INSTANCE_START, serviceContext); + + kaleoLog.setStartDate(kaleoLog.getCreateDate()); + + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + kaleoLog.setWorkflowContext(kaleoInstance.getWorkflowContext()); + + kaleoLogPersistence.update(kaleoLog); + + return kaleoLog; + } + + + public void deleteCompanyKaleoLogs(long companyId) throws SystemException { + kaleoLogPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoLogs(long kaleoDefinitionId) throws SystemException { + + kaleoLogPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + } + + + public void deleteKaleoInstanceKaleoLogs(long kaleoInstanceId) throws SystemException { + + kaleoLogPersistence.removeByKaleoInstanceId(kaleoInstanceId); + } + + + public List getKaleoInstanceKaleoLogs(long kaleoInstanceId, List logTypes, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + if ((logTypes == null) || logTypes.isEmpty()) { + return kaleoLogPersistence.findByKaleoInstanceId(kaleoInstanceId, start, end, orderByComparator); + } else { + DynamicQuery dynamicQuery = buildKaleoInstanceDynamicQuery(kaleoInstanceId, logTypes); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + } + + + public int getKaleoInstanceKaleoLogsCount(long kaleoInstanceId, List logTypes) throws SystemException { + + if ((logTypes == null) || logTypes.isEmpty()) { + return kaleoLogPersistence.countByKaleoInstanceId(kaleoInstanceId); + } + + DynamicQuery dynamicQuery = buildKaleoInstanceDynamicQuery(kaleoInstanceId, logTypes); + + return (int) dynamicQueryCount(dynamicQuery); + } + + + public List getKaleoTaskInstanceTokenKaleoLogs(long kaleoTaskInstanceTokenId, List logTypes, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + if ((logTypes == null) || logTypes.isEmpty()) { + return kaleoLogPersistence + .findByKaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId, start, end, orderByComparator); + } else { + DynamicQuery dynamicQuery = buildKaleoTaskInstanceTokenDynamicQuery(kaleoTaskInstanceTokenId, logTypes); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + } + + + public int getKaleoTaskInstanceTokenKaleoLogsCount(long kaleoTaskInstanceTokenId, List logTypes) + throws SystemException { + + if ((logTypes == null) || logTypes.isEmpty()) { + return kaleoLogPersistence.countByKaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); + } else { + DynamicQuery dynamicQuery = buildKaleoTaskInstanceTokenDynamicQuery(kaleoTaskInstanceTokenId, logTypes); + + return (int) dynamicQueryCount(dynamicQuery); + } + } + + protected void addLogTypesJunction(DynamicQuery dynamicQuery, List logTypes) { + + Junction junction = RestrictionsFactoryUtil.disjunction(); + + for (Integer logType : logTypes) { + String logTypeString = KaleoLogUtil.convert(logType); + + if (Validator.isNull(logTypeString)) { + continue; + } + + Property property = PropertyFactoryUtil.forName("type"); + + junction.add(property.eq(logTypeString)); + } + + dynamicQuery.add(junction); + } + + protected DynamicQuery buildKaleoInstanceDynamicQuery(long kaleoInstanceId, List logTypes) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoLog.class, getClassLoader()); + + Property property = PropertyFactoryUtil.forName("kaleoInstanceId"); + + dynamicQuery.add(property.eq(kaleoInstanceId)); + + addLogTypesJunction(dynamicQuery, logTypes); + + return dynamicQuery; + } + + protected DynamicQuery buildKaleoTaskInstanceTokenDynamicQuery(long kaleoTaskId, List logTypes) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(KaleoLog.class, getClassLoader()); + + Property property = PropertyFactoryUtil.forName("kaleoTaskInstanceTokenId"); + + dynamicQuery.add(property.eq(kaleoTaskId)); + + addLogTypesJunction(dynamicQuery, logTypes); + + return dynamicQuery; + } + + protected KaleoLog createKaleoLog(KaleoInstanceToken kaleoInstanceToken, LogType logType, + ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey(serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoLogId = counterLocalService.increment(); + + KaleoLog kaleoLog = kaleoLogPersistence.create(kaleoLogId); + + kaleoLog.setCompanyId(user.getCompanyId()); + kaleoLog.setUserId(user.getUserId()); + kaleoLog.setUserName(user.getFullName()); + kaleoLog.setCreateDate(now); + kaleoLog.setModifiedDate(now); + kaleoLog.setKaleoDefinitionId(kaleoInstanceToken.getKaleoDefinitionId()); + kaleoLog.setKaleoInstanceId(kaleoInstanceToken.getKaleoInstanceId()); + kaleoLog.setKaleoInstanceTokenId(kaleoInstanceToken.getKaleoInstanceTokenId()); + kaleoLog.setType(logType.name()); + + return kaleoLog; + } + + protected KaleoLog getPreviousLog(long kaleoInstanceTokenId, long kaleoNodeId, LogType logType) + throws PortalException, SystemException { + + List kaleoLogEntries = null; + + if (kaleoNodeId > 0) { + kaleoLogEntries = + kaleoLogPersistence.findByKCN_KCPK_KITI_T(KaleoNode.class.getName(), kaleoNodeId, kaleoInstanceTokenId, + logType.name()); + } else { + kaleoLogEntries = kaleoLogPersistence.findByKITI_T(kaleoInstanceTokenId, logType.name()); + } + + if (!kaleoLogEntries.isEmpty()) { + return kaleoLogEntries.get(0); + } + + throw new NoSuchLogException(); + } + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNodeLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNodeLocalServiceImpl.java index 4661bf02..03c30c6b 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNodeLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNodeLocalServiceImpl.java @@ -1,158 +1,158 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.definition.Node; -import com.liferay.portal.workflow.kaleo.definition.NodeType; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.State; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.service.base.KaleoNodeLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoNodeLocalServiceImpl extends KaleoNodeLocalServiceBaseImpl { - - - public KaleoNode addKaleoNode( - long kaleoDefinitionId, Node node, ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo node - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoNodeId = counterLocalService.increment(); - - KaleoNode kaleoNode = kaleoNodePersistence.create(kaleoNodeId); - - kaleoNode.setCompanyId(user.getCompanyId()); - kaleoNode.setUserId(user.getUserId()); - kaleoNode.setUserName(user.getFullName()); - kaleoNode.setCreateDate(now); - kaleoNode.setModifiedDate(now); - kaleoNode.setKaleoDefinitionId(kaleoDefinitionId); - kaleoNode.setName(node.getName()); - kaleoNode.setMetadata(node.getMetadata()); - kaleoNode.setDescription(node.getDescription()); - kaleoNode.setType(node.getNodeType().name()); - - boolean initial = false; - boolean terminal = false; - - NodeType nodeType = node.getNodeType(); - - if (nodeType.equals(NodeType.STATE)) { - State state = (State)node; - - initial = state.isInitial(); - terminal = state.isTerminal(); - } - - kaleoNode.setInitial(initial); - kaleoNode.setTerminal(terminal); - - kaleoNodePersistence.update(kaleoNode); - - // Kaleo actions - - Set actions = node.getActions(); - - for (Action action : actions) { - kaleoActionLocalService.addKaleoAction( - KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, - node.getName(), action, serviceContext); - } - - // Kaleo notifications - - Set notifications = node.getNotifications(); - - for (Notification notification : notifications) { - kaleoNotificationLocalService.addKaleoNotification( - KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, - node.getName(), notification, serviceContext); - } - - // Kaleo timers - - Set timers = node.getTimers(); - - for (Timer timer : timers) { - kaleoTimerLocalService.addKaleoTimer( - KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, - timer, serviceContext); - } - - return kaleoNode; - } - - - public void deleteCompanyKaleoNodes(long companyId) throws SystemException { - - // Kaleo nodes - - kaleoNodePersistence.removeByCompanyId(companyId); - - // Kaleo actions - - kaleoActionLocalService.deleteCompanyKaleoActions(companyId); - - // Kaleo notifications - - kaleoNotificationLocalService.deleteCompanyKaleoNotifications( - companyId); - } - - - public void deleteKaleoDefinitionKaleoNodes(long kaleoDefinitionId) - throws SystemException { - - // Kaleo nodes - - kaleoNodePersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - - // Kaleo actions - - kaleoActionLocalService.deleteKaleoDefinitionKaleoActions( - kaleoDefinitionId); - - // Kaleo notifications - - kaleoNotificationLocalService.deleteKaleoDefinitionKaleoNotifications( - kaleoDefinitionId); - } - - - public List getKaleoDefinitionKaleoNodes(long kaleoDefinitionId) - throws SystemException { - - return kaleoNodePersistence.findByKaleoDefinitionId(kaleoDefinitionId); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.definition.Node; +import com.liferay.portal.workflow.kaleo.definition.NodeType; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.State; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.service.base.KaleoNodeLocalServiceBaseImpl; + +import java.util.Date; +import java.util.List; +import java.util.Set; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoNodeLocalServiceImpl extends KaleoNodeLocalServiceBaseImpl { + + + public KaleoNode addKaleoNode( + long kaleoDefinitionId, Node node, ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo node + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoNodeId = counterLocalService.increment(); + + KaleoNode kaleoNode = kaleoNodePersistence.create(kaleoNodeId); + + kaleoNode.setCompanyId(user.getCompanyId()); + kaleoNode.setUserId(user.getUserId()); + kaleoNode.setUserName(user.getFullName()); + kaleoNode.setCreateDate(now); + kaleoNode.setModifiedDate(now); + kaleoNode.setKaleoDefinitionId(kaleoDefinitionId); + kaleoNode.setName(node.getName()); + kaleoNode.setMetadata(node.getMetadata()); + kaleoNode.setDescription(node.getDescription()); + kaleoNode.setType(node.getNodeType().name()); + + boolean initial = false; + boolean terminal = false; + + NodeType nodeType = node.getNodeType(); + + if (nodeType.equals(NodeType.STATE)) { + State state = (State)node; + + initial = state.isInitial(); + terminal = state.isTerminal(); + } + + kaleoNode.setInitial(initial); + kaleoNode.setTerminal(terminal); + + kaleoNodePersistence.update(kaleoNode); + + // Kaleo actions + + Set actions = node.getActions(); + + for (Action action : actions) { + kaleoActionLocalService.addKaleoAction( + KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, + node.getName(), action, serviceContext); + } + + // Kaleo notifications + + Set notifications = node.getNotifications(); + + for (Notification notification : notifications) { + kaleoNotificationLocalService.addKaleoNotification( + KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, + node.getName(), notification, serviceContext); + } + + // Kaleo timers + + Set timers = node.getTimers(); + + for (Timer timer : timers) { + kaleoTimerLocalService.addKaleoTimer( + KaleoNode.class.getName(), kaleoNodeId, kaleoDefinitionId, + timer, serviceContext); + } + + return kaleoNode; + } + + + public void deleteCompanyKaleoNodes(long companyId) throws SystemException { + + // Kaleo nodes + + kaleoNodePersistence.removeByCompanyId(companyId); + + // Kaleo actions + + kaleoActionLocalService.deleteCompanyKaleoActions(companyId); + + // Kaleo notifications + + kaleoNotificationLocalService.deleteCompanyKaleoNotifications( + companyId); + } + + + public void deleteKaleoDefinitionKaleoNodes(long kaleoDefinitionId) + throws SystemException { + + // Kaleo nodes + + kaleoNodePersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + + // Kaleo actions + + kaleoActionLocalService.deleteKaleoDefinitionKaleoActions( + kaleoDefinitionId); + + // Kaleo notifications + + kaleoNotificationLocalService.deleteKaleoDefinitionKaleoNotifications( + kaleoDefinitionId); + } + + + public List getKaleoDefinitionKaleoNodes(long kaleoDefinitionId) + throws SystemException { + + return kaleoNodePersistence.findByKaleoDefinitionId(kaleoDefinitionId); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationLocalServiceImpl.java index 16122657..e1ce9b95 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationLocalServiceImpl.java @@ -1,153 +1,153 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.NotificationType; -import com.liferay.portal.workflow.kaleo.definition.Recipient; -import com.liferay.portal.workflow.kaleo.model.KaleoNotification; -import com.liferay.portal.workflow.kaleo.service.base.KaleoNotificationLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoNotificationLocalServiceImpl - extends KaleoNotificationLocalServiceBaseImpl { - - - public KaleoNotification addKaleoNotification( - String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, - String kaleoNodeName, Notification notification, - ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo notification - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoNotificationId = counterLocalService.increment(); - - KaleoNotification kaleoNotification = - kaleoNotificationPersistence.create(kaleoNotificationId); - - kaleoNotification.setCompanyId(user.getCompanyId()); - kaleoNotification.setUserId(user.getUserId()); - kaleoNotification.setUserName(user.getFullName()); - kaleoNotification.setCreateDate(now); - kaleoNotification.setModifiedDate(now); - kaleoNotification.setKaleoClassName(kaleoClassName); - kaleoNotification.setKaleoClassPK(kaleoClassPK); - kaleoNotification.setKaleoDefinitionId(kaleoDefinitionId); - kaleoNotification.setKaleoNodeName(kaleoNodeName); - kaleoNotification.setName(notification.getName()); - kaleoNotification.setDescription(notification.getDescription()); - kaleoNotification.setExecutionType( - notification.getExecutionType().getValue()); - kaleoNotification.setTemplate(notification.getTemplate()); - kaleoNotification.setTemplateLanguage( - notification.getTemplateLanguage().getValue()); - - Set notificationTypes = - notification.getNotificationTypes(); - - if (!notificationTypes.isEmpty()) { - StringBundler sb = new StringBundler(notificationTypes.size() * 2); - - for (NotificationType notificationType : notificationTypes) { - sb.append(notificationType.getValue()); - sb.append(StringPool.COMMA); - } - - sb.setIndex(sb.index() - 1); - - kaleoNotification.setNotificationTypes(sb.toString()); - } - - kaleoNotificationPersistence.update(kaleoNotification); - - // Kaleo notification recipients - - Set recipients = notification.getRecipients(); - - for (Recipient recipient : recipients) { - kaleoNotificationRecipientLocalService. - addKaleoNotificationRecipient( - kaleoDefinitionId, kaleoNotificationId, recipient, - serviceContext); - } - - return kaleoNotification; - } - - - public void deleteCompanyKaleoNotifications(long companyId) - throws SystemException { - - // Kaleo notifications - - kaleoNotificationPersistence.removeByCompanyId(companyId); - - // Kaleo notification recipients - - kaleoNotificationRecipientLocalService. - deleteCompanyKaleoNotificationRecipients(companyId); - } - - - public void deleteKaleoDefinitionKaleoNotifications(long kaleoDefinitionId) - throws SystemException { - - // Kaleo notifications - - kaleoNotificationPersistence.removeByKaleoDefinitionId( - kaleoDefinitionId); - - // Kaleo notification recipients - - kaleoNotificationRecipientLocalService. - deleteKaleoDefinitionKaleoNotificationRecipients(kaleoDefinitionId); - } - - - public List getKaleoNotifications( - String kaleoClassName, long kaleoClassPK) - throws SystemException { - - return kaleoNotificationPersistence.findByKCN_KCPK( - kaleoClassName, kaleoClassPK); - } - - - public List getKaleoNotifications( - String kaleoClassName, long kaleoClassPK, String executionType) - throws SystemException { - - return kaleoNotificationPersistence.findByKCN_KCPK_ET( - kaleoClassName, kaleoClassPK, executionType); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.NotificationType; +import com.liferay.portal.workflow.kaleo.definition.Recipient; +import com.liferay.portal.workflow.kaleo.model.KaleoNotification; +import com.liferay.portal.workflow.kaleo.service.base.KaleoNotificationLocalServiceBaseImpl; + +import java.util.Date; +import java.util.List; +import java.util.Set; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoNotificationLocalServiceImpl + extends KaleoNotificationLocalServiceBaseImpl { + + + public KaleoNotification addKaleoNotification( + String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, + String kaleoNodeName, Notification notification, + ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo notification + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoNotificationId = counterLocalService.increment(); + + KaleoNotification kaleoNotification = + kaleoNotificationPersistence.create(kaleoNotificationId); + + kaleoNotification.setCompanyId(user.getCompanyId()); + kaleoNotification.setUserId(user.getUserId()); + kaleoNotification.setUserName(user.getFullName()); + kaleoNotification.setCreateDate(now); + kaleoNotification.setModifiedDate(now); + kaleoNotification.setKaleoClassName(kaleoClassName); + kaleoNotification.setKaleoClassPK(kaleoClassPK); + kaleoNotification.setKaleoDefinitionId(kaleoDefinitionId); + kaleoNotification.setKaleoNodeName(kaleoNodeName); + kaleoNotification.setName(notification.getName()); + kaleoNotification.setDescription(notification.getDescription()); + kaleoNotification.setExecutionType( + notification.getExecutionType().getValue()); + kaleoNotification.setTemplate(notification.getTemplate()); + kaleoNotification.setTemplateLanguage( + notification.getTemplateLanguage().getValue()); + + Set notificationTypes = + notification.getNotificationTypes(); + + if (!notificationTypes.isEmpty()) { + StringBundler sb = new StringBundler(notificationTypes.size() * 2); + + for (NotificationType notificationType : notificationTypes) { + sb.append(notificationType.getValue()); + sb.append(StringPool.COMMA); + } + + sb.setIndex(sb.index() - 1); + + kaleoNotification.setNotificationTypes(sb.toString()); + } + + kaleoNotificationPersistence.update(kaleoNotification); + + // Kaleo notification recipients + + Set recipients = notification.getRecipients(); + + for (Recipient recipient : recipients) { + kaleoNotificationRecipientLocalService. + addKaleoNotificationRecipient( + kaleoDefinitionId, kaleoNotificationId, recipient, + serviceContext); + } + + return kaleoNotification; + } + + + public void deleteCompanyKaleoNotifications(long companyId) + throws SystemException { + + // Kaleo notifications + + kaleoNotificationPersistence.removeByCompanyId(companyId); + + // Kaleo notification recipients + + kaleoNotificationRecipientLocalService. + deleteCompanyKaleoNotificationRecipients(companyId); + } + + + public void deleteKaleoDefinitionKaleoNotifications(long kaleoDefinitionId) + throws SystemException { + + // Kaleo notifications + + kaleoNotificationPersistence.removeByKaleoDefinitionId( + kaleoDefinitionId); + + // Kaleo notification recipients + + kaleoNotificationRecipientLocalService. + deleteKaleoDefinitionKaleoNotificationRecipients(kaleoDefinitionId); + } + + + public List getKaleoNotifications( + String kaleoClassName, long kaleoClassPK) + throws SystemException { + + return kaleoNotificationPersistence.findByKCN_KCPK( + kaleoClassName, kaleoClassPK); + } + + + public List getKaleoNotifications( + String kaleoClassName, long kaleoClassPK, String executionType) + throws SystemException { + + return kaleoNotificationPersistence.findByKCN_KCPK_ET( + kaleoClassName, kaleoClassPK, executionType); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationRecipientLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationRecipientLocalServiceImpl.java index 45a543ca..22c0a251 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationRecipientLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoNotificationRecipientLocalServiceImpl.java @@ -1,171 +1,171 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; -import com.liferay.portal.workflow.kaleo.definition.Recipient; -import com.liferay.portal.workflow.kaleo.definition.RecipientType; -import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; -import com.liferay.portal.workflow.kaleo.definition.UserRecipient; -import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; -import com.liferay.portal.workflow.kaleo.service.base.KaleoNotificationRecipientLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.util.RoleUtil; - -import java.util.Date; -import java.util.List; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoNotificationRecipientLocalServiceImpl - extends KaleoNotificationRecipientLocalServiceBaseImpl { - - - public KaleoNotificationRecipient addKaleoNotificationRecipient( - long kaleoDefinitionId, long kaleoNotificationId, - Recipient recipient, ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoNotificationRecipientId = counterLocalService.increment(); - - KaleoNotificationRecipient kaleoNotificationRecipient = - kaleoNotificationRecipientPersistence.create( - kaleoNotificationRecipientId); - - kaleoNotificationRecipient.setCompanyId(user.getCompanyId()); - kaleoNotificationRecipient.setUserId(user.getUserId()); - kaleoNotificationRecipient.setUserName(user.getFullName()); - kaleoNotificationRecipient.setCreateDate(now); - kaleoNotificationRecipient.setModifiedDate(now); - kaleoNotificationRecipient.setKaleoDefinitionId(kaleoDefinitionId); - kaleoNotificationRecipient.setKaleoNotificationId(kaleoNotificationId); - - setRecipient(kaleoNotificationRecipient, recipient, serviceContext); - - kaleoNotificationRecipientPersistence.update( - kaleoNotificationRecipient); - - return kaleoNotificationRecipient; - } - - - public void deleteCompanyKaleoNotificationRecipients(long companyId) - throws SystemException { - - kaleoNotificationRecipientPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoNotificationRecipients( - long kaleoDefinitionId) - throws SystemException { - - kaleoNotificationRecipientPersistence.removeByKaleoDefinitionId( - kaleoDefinitionId); - } - - - public List getKaleoNotificationRecipients( - long kaleoNotificationId) - throws SystemException { - - return kaleoNotificationRecipientPersistence.findByKaleoNotificationId( - kaleoNotificationId); - } - - protected void setRecipient( - KaleoNotificationRecipient kaleoNotificationRecipient, - Recipient recipient, ServiceContext serviceContext) - throws PortalException, SystemException { - - RecipientType recipientType = recipient.getRecipientType(); - - if (recipientType.equals(RecipientType.ROLE)) { - kaleoNotificationRecipient.setRecipientClassName( - Role.class.getName()); - - RoleRecipient roleRecipient = (RoleRecipient)recipient; - - int roleType = 0; - - Role role = null; - - if (Validator.isNotNull(roleRecipient.getRoleName())) { - roleType = RoleUtil.getRoleType(roleRecipient.getRoleType()); - - role = RoleUtil.getRole( - roleRecipient.getRoleName(), roleType, - roleRecipient.isAutoCreate(), serviceContext); - } - else { - role = roleLocalService.getRole(roleRecipient.getRoleId()); - - roleType = role.getType(); - } - - kaleoNotificationRecipient.setRecipientClassPK(role.getClassPK()); - kaleoNotificationRecipient.setRecipientRoleType(roleType); - } - else if (recipientType.equals(RecipientType.USER)) { - kaleoNotificationRecipient.setRecipientClassName( - User.class.getName()); - - UserRecipient userRecipient = (UserRecipient)recipient; - - User user = null; - - if (userRecipient.getUserId() > 0) { - user = userLocalService.getUser(userRecipient.getUserId()); - } - else if (Validator.isNotNull(userRecipient.getScreenName())) { - user = userLocalService.getUserByScreenName( - serviceContext.getCompanyId(), - userRecipient.getScreenName()); - } - else if (Validator.isNotNull(userRecipient.getEmailAddress())) { - user = userLocalService.getUserByEmailAddress( - serviceContext.getCompanyId(), - userRecipient.getEmailAddress()); - } - - if (user != null) { - kaleoNotificationRecipient.setRecipientClassPK( - user.getUserId()); - } - } - else { - kaleoNotificationRecipient.setRecipientClassName( - recipientType.name()); - - if (recipientType.equals(RecipientType.ADDRESS)) { - AddressRecipient addressRecipient = (AddressRecipient)recipient; - - kaleoNotificationRecipient.setAddress( - addressRecipient.getAddress()); - } - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.AddressRecipient; +import com.liferay.portal.workflow.kaleo.definition.Recipient; +import com.liferay.portal.workflow.kaleo.definition.RecipientType; +import com.liferay.portal.workflow.kaleo.definition.RoleRecipient; +import com.liferay.portal.workflow.kaleo.definition.UserRecipient; +import com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient; +import com.liferay.portal.workflow.kaleo.service.base.KaleoNotificationRecipientLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.util.RoleUtil; + +import java.util.Date; +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoNotificationRecipientLocalServiceImpl + extends KaleoNotificationRecipientLocalServiceBaseImpl { + + + public KaleoNotificationRecipient addKaleoNotificationRecipient( + long kaleoDefinitionId, long kaleoNotificationId, + Recipient recipient, ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoNotificationRecipientId = counterLocalService.increment(); + + KaleoNotificationRecipient kaleoNotificationRecipient = + kaleoNotificationRecipientPersistence.create( + kaleoNotificationRecipientId); + + kaleoNotificationRecipient.setCompanyId(user.getCompanyId()); + kaleoNotificationRecipient.setUserId(user.getUserId()); + kaleoNotificationRecipient.setUserName(user.getFullName()); + kaleoNotificationRecipient.setCreateDate(now); + kaleoNotificationRecipient.setModifiedDate(now); + kaleoNotificationRecipient.setKaleoDefinitionId(kaleoDefinitionId); + kaleoNotificationRecipient.setKaleoNotificationId(kaleoNotificationId); + + setRecipient(kaleoNotificationRecipient, recipient, serviceContext); + + kaleoNotificationRecipientPersistence.update( + kaleoNotificationRecipient); + + return kaleoNotificationRecipient; + } + + + public void deleteCompanyKaleoNotificationRecipients(long companyId) + throws SystemException { + + kaleoNotificationRecipientPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoNotificationRecipients( + long kaleoDefinitionId) + throws SystemException { + + kaleoNotificationRecipientPersistence.removeByKaleoDefinitionId( + kaleoDefinitionId); + } + + + public List getKaleoNotificationRecipients( + long kaleoNotificationId) + throws SystemException { + + return kaleoNotificationRecipientPersistence.findByKaleoNotificationId( + kaleoNotificationId); + } + + protected void setRecipient( + KaleoNotificationRecipient kaleoNotificationRecipient, + Recipient recipient, ServiceContext serviceContext) + throws PortalException, SystemException { + + RecipientType recipientType = recipient.getRecipientType(); + + if (recipientType.equals(RecipientType.ROLE)) { + kaleoNotificationRecipient.setRecipientClassName( + Role.class.getName()); + + RoleRecipient roleRecipient = (RoleRecipient)recipient; + + int roleType = 0; + + Role role = null; + + if (Validator.isNotNull(roleRecipient.getRoleName())) { + roleType = RoleUtil.getRoleType(roleRecipient.getRoleType()); + + role = RoleUtil.getRole( + roleRecipient.getRoleName(), roleType, + roleRecipient.isAutoCreate(), serviceContext); + } + else { + role = roleLocalService.getRole(roleRecipient.getRoleId()); + + roleType = role.getType(); + } + + kaleoNotificationRecipient.setRecipientClassPK(role.getClassPK()); + kaleoNotificationRecipient.setRecipientRoleType(roleType); + } + else if (recipientType.equals(RecipientType.USER)) { + kaleoNotificationRecipient.setRecipientClassName( + User.class.getName()); + + UserRecipient userRecipient = (UserRecipient)recipient; + + User user = null; + + if (userRecipient.getUserId() > 0) { + user = userLocalService.getUser(userRecipient.getUserId()); + } + else if (Validator.isNotNull(userRecipient.getScreenName())) { + user = userLocalService.getUserByScreenName( + serviceContext.getCompanyId(), + userRecipient.getScreenName()); + } + else if (Validator.isNotNull(userRecipient.getEmailAddress())) { + user = userLocalService.getUserByEmailAddress( + serviceContext.getCompanyId(), + userRecipient.getEmailAddress()); + } + + if (user != null) { + kaleoNotificationRecipient.setRecipientClassPK( + user.getUserId()); + } + } + else { + kaleoNotificationRecipient.setRecipientClassName( + recipientType.name()); + + if (recipientType.equals(RecipientType.ADDRESS)) { + AddressRecipient addressRecipient = (AddressRecipient)recipient; + + kaleoNotificationRecipient.setAddress( + addressRecipient.getAddress()); + } + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentInstanceLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentInstanceLocalServiceImpl.java index 9d6aca2d..1e4b8ed0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentInstanceLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentInstanceLocalServiceImpl.java @@ -1,227 +1,227 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskAssignmentInstanceLocalServiceBaseImpl; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - * @author Marcellus Tavares - */ -public class KaleoTaskAssignmentInstanceLocalServiceImpl - extends KaleoTaskAssignmentInstanceLocalServiceBaseImpl { - - - public KaleoTaskAssignmentInstance addKaleoTaskAssignmentInstance( - long groupId, KaleoTaskInstanceToken kaleoTaskInstanceToken, - String assigneeClassName, long assigneeClassPK, - ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTaskAssignmentInstanceId = counterLocalService.increment(); - - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = - kaleoTaskAssignmentInstancePersistence.create( - kaleoTaskAssignmentInstanceId); - - kaleoTaskAssignmentInstance.setGroupId(groupId); - kaleoTaskAssignmentInstance.setCompanyId(user.getCompanyId()); - kaleoTaskAssignmentInstance.setUserId(user.getUserId()); - kaleoTaskAssignmentInstance.setUserName(user.getFullName()); - kaleoTaskAssignmentInstance.setCreateDate(now); - kaleoTaskAssignmentInstance.setModifiedDate(now); - kaleoTaskAssignmentInstance.setKaleoDefinitionId( - kaleoTaskInstanceToken.getKaleoDefinitionId()); - kaleoTaskAssignmentInstance.setKaleoInstanceId( - kaleoTaskInstanceToken.getKaleoInstanceId()); - kaleoTaskAssignmentInstance.setKaleoTaskInstanceTokenId( - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - kaleoTaskAssignmentInstance.setKaleoTaskId( - kaleoTaskInstanceToken.getKaleoTaskId()); - kaleoTaskAssignmentInstance.setKaleoTaskName( - kaleoTaskInstanceToken.getKaleoTaskName()); - kaleoTaskAssignmentInstance.setAssigneeClassName(assigneeClassName); - - if ((assigneeClassPK == 0) && - assigneeClassName.equals(User.class.getName())) { - - KaleoInstance kaleoInstance = - kaleoInstancePersistence.findByPrimaryKey( - kaleoTaskInstanceToken.getKaleoInstanceId()); - - kaleoTaskAssignmentInstance.setAssigneeClassPK( - kaleoInstance.getUserId()); - } - else { - kaleoTaskAssignmentInstance.setAssigneeClassPK(assigneeClassPK); - } - - kaleoTaskAssignmentInstance.setCompleted(false); - - kaleoTaskAssignmentInstancePersistence.update( - kaleoTaskAssignmentInstance); - - return kaleoTaskAssignmentInstance; - } - - - public List addTaskAssignmentInstances( - KaleoTaskInstanceToken kaleoTaskInstanceToken, - Collection kaleoTaskAssignments, - Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - List kaleoTaskAssignmentInstances = - new ArrayList( - kaleoTaskAssignments.size()); - - for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { - long groupId = kaleoTaskAssignment.getGroupId(); - - if (groupId <= 0) { - groupId = kaleoTaskInstanceToken.getGroupId(); - } - - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = - addKaleoTaskAssignmentInstance( - groupId, kaleoTaskInstanceToken, - kaleoTaskAssignment.getAssigneeClassName(), - kaleoTaskAssignment.getAssigneeClassPK(), serviceContext); - - kaleoTaskAssignmentInstances.add(kaleoTaskAssignmentInstance); - } - - return kaleoTaskAssignmentInstances; - } - - - public KaleoTaskAssignmentInstance assignKaleoTaskAssignmentInstance( - KaleoTaskInstanceToken kaleoTaskInstanceToken, - String assigneeClassName, long assigneeClassPK, - ServiceContext serviceContext) - throws PortalException, SystemException { - - deleteKaleoTaskAssignmentInstances(kaleoTaskInstanceToken); - - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = - addKaleoTaskAssignmentInstance( - kaleoTaskInstanceToken.getGroupId(), kaleoTaskInstanceToken, - assigneeClassName, assigneeClassPK, serviceContext); - - return kaleoTaskAssignmentInstance; - } - - - public KaleoTaskAssignmentInstance completeKaleoTaskInstanceToken( - long kaleoTaskInstanceTokenId, ServiceContext serviceContext) - throws PortalException, SystemException { - - List kaleoTaskAssignmentInstances = - kaleoTaskAssignmentInstancePersistence. - findBykaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); - - if (kaleoTaskAssignmentInstances.size() > 1) { - throw new WorkflowException( - "Cannot complete a task that is not assigned to an " + - "individual user"); - } - - KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = - kaleoTaskAssignmentInstances.get(0); - - kaleoTaskAssignmentInstance.setCompleted(true); - kaleoTaskAssignmentInstance.setCompletionDate(new Date()); - - kaleoTaskAssignmentInstancePersistence.update( - kaleoTaskAssignmentInstance); - - return kaleoTaskAssignmentInstance; - } - - - public void deleteCompanyKaleoTaskAssignmentInstances(long companyId) - throws SystemException { - - kaleoTaskAssignmentInstancePersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoTaskAssignmentInstances( - long kaleoDefintionId) - throws SystemException { - - kaleoTaskAssignmentInstancePersistence.removeByKaleoDefinitionId( - kaleoDefintionId); - } - - - public void deleteKaleoInstanceKaleoTaskAssignmentInstances( - long kaleoInstanceId) - throws SystemException { - - kaleoTaskAssignmentInstancePersistence.removeByKaleoInstanceId( - kaleoInstanceId); - } - - - public void deleteKaleoTaskAssignmentInstances( - KaleoTaskInstanceToken kaleoTaskInstanceToken) - throws SystemException { - - List kaleoTaskAssignmentInstances = - kaleoTaskAssignmentInstancePersistence. - findBykaleoTaskInstanceTokenId( - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - - for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : - kaleoTaskAssignmentInstances) { - - kaleoTaskAssignmentInstancePersistence.remove( - kaleoTaskAssignmentInstance); - } - } - - - public List getKaleoTaskAssignmentInstances( - long kaleoTaskInstanceTokenId) - throws SystemException { - - return kaleoTaskAssignmentInstancePersistence. - findBykaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskAssignmentInstanceLocalServiceBaseImpl; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + * @author Marcellus Tavares + */ +public class KaleoTaskAssignmentInstanceLocalServiceImpl + extends KaleoTaskAssignmentInstanceLocalServiceBaseImpl { + + + public KaleoTaskAssignmentInstance addKaleoTaskAssignmentInstance( + long groupId, KaleoTaskInstanceToken kaleoTaskInstanceToken, + String assigneeClassName, long assigneeClassPK, + ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTaskAssignmentInstanceId = counterLocalService.increment(); + + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = + kaleoTaskAssignmentInstancePersistence.create( + kaleoTaskAssignmentInstanceId); + + kaleoTaskAssignmentInstance.setGroupId(groupId); + kaleoTaskAssignmentInstance.setCompanyId(user.getCompanyId()); + kaleoTaskAssignmentInstance.setUserId(user.getUserId()); + kaleoTaskAssignmentInstance.setUserName(user.getFullName()); + kaleoTaskAssignmentInstance.setCreateDate(now); + kaleoTaskAssignmentInstance.setModifiedDate(now); + kaleoTaskAssignmentInstance.setKaleoDefinitionId( + kaleoTaskInstanceToken.getKaleoDefinitionId()); + kaleoTaskAssignmentInstance.setKaleoInstanceId( + kaleoTaskInstanceToken.getKaleoInstanceId()); + kaleoTaskAssignmentInstance.setKaleoTaskInstanceTokenId( + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + kaleoTaskAssignmentInstance.setKaleoTaskId( + kaleoTaskInstanceToken.getKaleoTaskId()); + kaleoTaskAssignmentInstance.setKaleoTaskName( + kaleoTaskInstanceToken.getKaleoTaskName()); + kaleoTaskAssignmentInstance.setAssigneeClassName(assigneeClassName); + + if ((assigneeClassPK == 0) && + assigneeClassName.equals(User.class.getName())) { + + KaleoInstance kaleoInstance = + kaleoInstancePersistence.findByPrimaryKey( + kaleoTaskInstanceToken.getKaleoInstanceId()); + + kaleoTaskAssignmentInstance.setAssigneeClassPK( + kaleoInstance.getUserId()); + } + else { + kaleoTaskAssignmentInstance.setAssigneeClassPK(assigneeClassPK); + } + + kaleoTaskAssignmentInstance.setCompleted(false); + + kaleoTaskAssignmentInstancePersistence.update( + kaleoTaskAssignmentInstance); + + return kaleoTaskAssignmentInstance; + } + + + public List addTaskAssignmentInstances( + KaleoTaskInstanceToken kaleoTaskInstanceToken, + Collection kaleoTaskAssignments, + Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + List kaleoTaskAssignmentInstances = + new ArrayList( + kaleoTaskAssignments.size()); + + for (KaleoTaskAssignment kaleoTaskAssignment : kaleoTaskAssignments) { + long groupId = kaleoTaskAssignment.getGroupId(); + + if (groupId <= 0) { + groupId = kaleoTaskInstanceToken.getGroupId(); + } + + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = + addKaleoTaskAssignmentInstance( + groupId, kaleoTaskInstanceToken, + kaleoTaskAssignment.getAssigneeClassName(), + kaleoTaskAssignment.getAssigneeClassPK(), serviceContext); + + kaleoTaskAssignmentInstances.add(kaleoTaskAssignmentInstance); + } + + return kaleoTaskAssignmentInstances; + } + + + public KaleoTaskAssignmentInstance assignKaleoTaskAssignmentInstance( + KaleoTaskInstanceToken kaleoTaskInstanceToken, + String assigneeClassName, long assigneeClassPK, + ServiceContext serviceContext) + throws PortalException, SystemException { + + deleteKaleoTaskAssignmentInstances(kaleoTaskInstanceToken); + + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = + addKaleoTaskAssignmentInstance( + kaleoTaskInstanceToken.getGroupId(), kaleoTaskInstanceToken, + assigneeClassName, assigneeClassPK, serviceContext); + + return kaleoTaskAssignmentInstance; + } + + + public KaleoTaskAssignmentInstance completeKaleoTaskInstanceToken( + long kaleoTaskInstanceTokenId, ServiceContext serviceContext) + throws PortalException, SystemException { + + List kaleoTaskAssignmentInstances = + kaleoTaskAssignmentInstancePersistence. + findBykaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); + + if (kaleoTaskAssignmentInstances.size() > 1) { + throw new WorkflowException( + "Cannot complete a task that is not assigned to an " + + "individual user"); + } + + KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance = + kaleoTaskAssignmentInstances.get(0); + + kaleoTaskAssignmentInstance.setCompleted(true); + kaleoTaskAssignmentInstance.setCompletionDate(new Date()); + + kaleoTaskAssignmentInstancePersistence.update( + kaleoTaskAssignmentInstance); + + return kaleoTaskAssignmentInstance; + } + + + public void deleteCompanyKaleoTaskAssignmentInstances(long companyId) + throws SystemException { + + kaleoTaskAssignmentInstancePersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoTaskAssignmentInstances( + long kaleoDefintionId) + throws SystemException { + + kaleoTaskAssignmentInstancePersistence.removeByKaleoDefinitionId( + kaleoDefintionId); + } + + + public void deleteKaleoInstanceKaleoTaskAssignmentInstances( + long kaleoInstanceId) + throws SystemException { + + kaleoTaskAssignmentInstancePersistence.removeByKaleoInstanceId( + kaleoInstanceId); + } + + + public void deleteKaleoTaskAssignmentInstances( + KaleoTaskInstanceToken kaleoTaskInstanceToken) + throws SystemException { + + List kaleoTaskAssignmentInstances = + kaleoTaskAssignmentInstancePersistence. + findBykaleoTaskInstanceTokenId( + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + + for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : + kaleoTaskAssignmentInstances) { + + kaleoTaskAssignmentInstancePersistence.remove( + kaleoTaskAssignmentInstance); + } + } + + + public List getKaleoTaskAssignmentInstances( + long kaleoTaskInstanceTokenId) + throws SystemException { + + return kaleoTaskAssignmentInstancePersistence. + findBykaleoTaskInstanceTokenId(kaleoTaskInstanceTokenId); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentLocalServiceImpl.java index e4b03b8b..eb35c6c0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskAssignmentLocalServiceImpl.java @@ -1,219 +1,219 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.ResourceAction; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.AssignmentType; -import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; -import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; -import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; -import com.liferay.portal.workflow.kaleo.definition.ScriptLanguage; -import com.liferay.portal.workflow.kaleo.definition.UserAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskAssignmentLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.util.RoleUtil; - -import java.util.Date; -import java.util.List; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoTaskAssignmentLocalServiceImpl - extends KaleoTaskAssignmentLocalServiceBaseImpl { - - - public KaleoTaskAssignment addKaleoTaskAssignment( - String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, - Assignment assignment, ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTaskAssignmentId = counterLocalService.increment(); - - KaleoTaskAssignment kaleoTaskAssignment = - kaleoTaskAssignmentPersistence.create(kaleoTaskAssignmentId); - - kaleoTaskAssignment.setCompanyId(user.getCompanyId()); - kaleoTaskAssignment.setUserId(user.getUserId()); - kaleoTaskAssignment.setUserName(user.getFullName()); - kaleoTaskAssignment.setCreateDate(now); - kaleoTaskAssignment.setModifiedDate(now); - kaleoTaskAssignment.setKaleoClassName(kaleoClassName); - kaleoTaskAssignment.setKaleoClassPK(kaleoClassPK); - kaleoTaskAssignment.setKaleoDefinitionId(kaleoDefinitionId); - setAssignee(kaleoTaskAssignment, assignment, serviceContext); - - kaleoTaskAssignmentPersistence.update(kaleoTaskAssignment); - - return kaleoTaskAssignment; - } - - - public void deleteCompanyKaleoTaskAssignments(long companyId) - throws SystemException { - - kaleoTaskAssignmentPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoTaskAssignments( - long kaleoDefinitionId) - throws SystemException { - - kaleoTaskAssignmentPersistence.removeByKaleoDefinitionId( - kaleoDefinitionId); - } - - - public List getKaleoTaskAssignments(long kaleoTaskId) - throws SystemException { - - return kaleoTaskAssignmentPersistence.findByKCN_KCPK( - KaleoTask.class.getName(), kaleoTaskId); - } - - - public List getKaleoTaskAssignments( - long kaleoTaskId, String assigneeClassName) - throws SystemException { - - return kaleoTaskAssignmentPersistence.findByKCN_KCPK_ACN( - KaleoTask.class.getName(), kaleoTaskId, assigneeClassName); - } - - - public List getKaleoTaskAssignments( - String kaleoClassName, long kaleoClassPK) - throws SystemException { - - return kaleoTaskAssignmentPersistence.findByKCN_KCPK( - kaleoClassName, kaleoClassPK); - } - - - public int getKaleoTaskAssignmentsCount(long kaleoTaskId) - throws SystemException { - - return kaleoTaskAssignmentPersistence.countByKCN_KCPK( - KaleoTask.class.getName(), kaleoTaskId); - } - - - public int getKaleoTaskAssignmentsCount( - long kaleoTaskId, String assigneeClassName) - throws SystemException { - - return kaleoTaskAssignmentPersistence.countByKCN_KCPK_ACN( - KaleoTask.class.getName(), kaleoTaskId, assigneeClassName); - } - - protected void setAssignee( - KaleoTaskAssignment kaleoTaskAssignment, Assignment assignment, - ServiceContext serviceContext) - throws PortalException, SystemException { - - AssignmentType assignmentType = assignment.getAssignmentType(); - - if (assignmentType.equals(AssignmentType.RESOURCE_ACTION)) { - kaleoTaskAssignment.setAssigneeClassName( - ResourceAction.class.getName()); - - ResourceActionAssignment resourceActionAssignment = - (ResourceActionAssignment)assignment; - - String actionId = resourceActionAssignment.getActionId(); - - kaleoTaskAssignment.setAssigneeActionId(actionId); - } - else if (assignmentType.equals(AssignmentType.ROLE)) { - kaleoTaskAssignment.setAssigneeClassName(Role.class.getName()); - - RoleAssignment roleAssignment = (RoleAssignment)assignment; - - Role role = null; - - if (Validator.isNotNull(roleAssignment.getRoleName())) { - int roleType = RoleUtil.getRoleType( - roleAssignment.getRoleType()); - - role = RoleUtil.getRole( - roleAssignment.getRoleName(), roleType, - roleAssignment.isAutoCreate(), serviceContext); - } - else { - role = roleLocalService.getRole(roleAssignment.getRoleId()); - } - - kaleoTaskAssignment.setAssigneeClassPK(role.getRoleId()); - } - else if (assignmentType.equals(AssignmentType.SCRIPT)) { - kaleoTaskAssignment.setAssigneeClassName( - AssignmentType.SCRIPT.name()); - - ScriptAssignment scriptAssignment = (ScriptAssignment)assignment; - - kaleoTaskAssignment.setAssigneeScript(scriptAssignment.getScript()); - - ScriptLanguage scriptLanguage = - scriptAssignment.getScriptLanguage(); - - kaleoTaskAssignment.setAssigneeScriptLanguage( - scriptLanguage.getValue()); - kaleoTaskAssignment.setAssigneeScriptRequiredContexts( - scriptAssignment.getScriptRequiredContexts()); - } - else if (assignmentType.equals(AssignmentType.USER)) { - kaleoTaskAssignment.setAssigneeClassName(User.class.getName()); - - UserAssignment userAssignment = (UserAssignment)assignment; - - User user = null; - - if (userAssignment.getUserId() > 0) { - user = userLocalService.getUser(userAssignment.getUserId()); - } - else if (Validator.isNotNull(userAssignment.getEmailAddress())) { - user = userLocalService.getUserByEmailAddress( - serviceContext.getCompanyId(), - userAssignment.getEmailAddress()); - } - else if (Validator.isNotNull(userAssignment.getScreenName())) { - user = userLocalService.getUserByScreenName( - serviceContext.getCompanyId(), - userAssignment.getScreenName()); - } - - if (user != null) { - kaleoTaskAssignment.setAssigneeClassPK(user.getUserId()); - } - else { - kaleoTaskAssignment.setAssigneeClassPK(0); - } - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.ResourceAction; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.AssignmentType; +import com.liferay.portal.workflow.kaleo.definition.ResourceActionAssignment; +import com.liferay.portal.workflow.kaleo.definition.RoleAssignment; +import com.liferay.portal.workflow.kaleo.definition.ScriptAssignment; +import com.liferay.portal.workflow.kaleo.definition.ScriptLanguage; +import com.liferay.portal.workflow.kaleo.definition.UserAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskAssignmentLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.util.RoleUtil; + +import java.util.Date; +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoTaskAssignmentLocalServiceImpl + extends KaleoTaskAssignmentLocalServiceBaseImpl { + + + public KaleoTaskAssignment addKaleoTaskAssignment( + String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, + Assignment assignment, ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTaskAssignmentId = counterLocalService.increment(); + + KaleoTaskAssignment kaleoTaskAssignment = + kaleoTaskAssignmentPersistence.create(kaleoTaskAssignmentId); + + kaleoTaskAssignment.setCompanyId(user.getCompanyId()); + kaleoTaskAssignment.setUserId(user.getUserId()); + kaleoTaskAssignment.setUserName(user.getFullName()); + kaleoTaskAssignment.setCreateDate(now); + kaleoTaskAssignment.setModifiedDate(now); + kaleoTaskAssignment.setKaleoClassName(kaleoClassName); + kaleoTaskAssignment.setKaleoClassPK(kaleoClassPK); + kaleoTaskAssignment.setKaleoDefinitionId(kaleoDefinitionId); + setAssignee(kaleoTaskAssignment, assignment, serviceContext); + + kaleoTaskAssignmentPersistence.update(kaleoTaskAssignment); + + return kaleoTaskAssignment; + } + + + public void deleteCompanyKaleoTaskAssignments(long companyId) + throws SystemException { + + kaleoTaskAssignmentPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoTaskAssignments( + long kaleoDefinitionId) + throws SystemException { + + kaleoTaskAssignmentPersistence.removeByKaleoDefinitionId( + kaleoDefinitionId); + } + + + public List getKaleoTaskAssignments(long kaleoTaskId) + throws SystemException { + + return kaleoTaskAssignmentPersistence.findByKCN_KCPK( + KaleoTask.class.getName(), kaleoTaskId); + } + + + public List getKaleoTaskAssignments( + long kaleoTaskId, String assigneeClassName) + throws SystemException { + + return kaleoTaskAssignmentPersistence.findByKCN_KCPK_ACN( + KaleoTask.class.getName(), kaleoTaskId, assigneeClassName); + } + + + public List getKaleoTaskAssignments( + String kaleoClassName, long kaleoClassPK) + throws SystemException { + + return kaleoTaskAssignmentPersistence.findByKCN_KCPK( + kaleoClassName, kaleoClassPK); + } + + + public int getKaleoTaskAssignmentsCount(long kaleoTaskId) + throws SystemException { + + return kaleoTaskAssignmentPersistence.countByKCN_KCPK( + KaleoTask.class.getName(), kaleoTaskId); + } + + + public int getKaleoTaskAssignmentsCount( + long kaleoTaskId, String assigneeClassName) + throws SystemException { + + return kaleoTaskAssignmentPersistence.countByKCN_KCPK_ACN( + KaleoTask.class.getName(), kaleoTaskId, assigneeClassName); + } + + protected void setAssignee( + KaleoTaskAssignment kaleoTaskAssignment, Assignment assignment, + ServiceContext serviceContext) + throws PortalException, SystemException { + + AssignmentType assignmentType = assignment.getAssignmentType(); + + if (assignmentType.equals(AssignmentType.RESOURCE_ACTION)) { + kaleoTaskAssignment.setAssigneeClassName( + ResourceAction.class.getName()); + + ResourceActionAssignment resourceActionAssignment = + (ResourceActionAssignment)assignment; + + String actionId = resourceActionAssignment.getActionId(); + + kaleoTaskAssignment.setAssigneeActionId(actionId); + } + else if (assignmentType.equals(AssignmentType.ROLE)) { + kaleoTaskAssignment.setAssigneeClassName(Role.class.getName()); + + RoleAssignment roleAssignment = (RoleAssignment)assignment; + + Role role = null; + + if (Validator.isNotNull(roleAssignment.getRoleName())) { + int roleType = RoleUtil.getRoleType( + roleAssignment.getRoleType()); + + role = RoleUtil.getRole( + roleAssignment.getRoleName(), roleType, + roleAssignment.isAutoCreate(), serviceContext); + } + else { + role = roleLocalService.getRole(roleAssignment.getRoleId()); + } + + kaleoTaskAssignment.setAssigneeClassPK(role.getRoleId()); + } + else if (assignmentType.equals(AssignmentType.SCRIPT)) { + kaleoTaskAssignment.setAssigneeClassName( + AssignmentType.SCRIPT.name()); + + ScriptAssignment scriptAssignment = (ScriptAssignment)assignment; + + kaleoTaskAssignment.setAssigneeScript(scriptAssignment.getScript()); + + ScriptLanguage scriptLanguage = + scriptAssignment.getScriptLanguage(); + + kaleoTaskAssignment.setAssigneeScriptLanguage( + scriptLanguage.getValue()); + kaleoTaskAssignment.setAssigneeScriptRequiredContexts( + scriptAssignment.getScriptRequiredContexts()); + } + else if (assignmentType.equals(AssignmentType.USER)) { + kaleoTaskAssignment.setAssigneeClassName(User.class.getName()); + + UserAssignment userAssignment = (UserAssignment)assignment; + + User user = null; + + if (userAssignment.getUserId() > 0) { + user = userLocalService.getUser(userAssignment.getUserId()); + } + else if (Validator.isNotNull(userAssignment.getEmailAddress())) { + user = userLocalService.getUserByEmailAddress( + serviceContext.getCompanyId(), + userAssignment.getEmailAddress()); + } + else if (Validator.isNotNull(userAssignment.getScreenName())) { + user = userLocalService.getUserByScreenName( + serviceContext.getCompanyId(), + userAssignment.getScreenName()); + } + + if (user != null) { + kaleoTaskAssignment.setAssigneeClassPK(user.getUserId()); + } + else { + kaleoTaskAssignment.setAssigneeClassPK(0); + } + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskInstanceTokenLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskInstanceTokenLocalServiceImpl.java index f71f30c1..feaeba72 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskInstanceTokenLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskInstanceTokenLocalServiceImpl.java @@ -1,661 +1,661 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Property; -import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.staging.StagingUtil; -import com.liferay.portal.kernel.util.CalendarFactoryUtil; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.LocaleUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskInstanceTokenLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.service.persistence.KaleoTaskInstanceTokenQuery; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.Calendar; -import java.util.Collection; -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @author Brian Wing Shun Chan - * @author Marcellus Tavares - */ -public class KaleoTaskInstanceTokenLocalServiceImpl - extends KaleoTaskInstanceTokenLocalServiceBaseImpl { - - - public KaleoTaskInstanceToken addKaleoTaskInstanceToken( - long kaleoInstanceTokenId, long kaleoTaskId, String kaleoTaskName, - Collection kaleoTaskAssignments, Date dueDate, - Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.findByPrimaryKey( - kaleoInstanceTokenId); - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTaskInstanceTokenId = counterLocalService.increment(); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenPersistence.create(kaleoTaskInstanceTokenId); - - long groupId = StagingUtil.getLiveGroupId( - serviceContext.getScopeGroupId()); - - kaleoTaskInstanceToken.setGroupId(groupId); - - kaleoTaskInstanceToken.setCompanyId(user.getCompanyId()); - kaleoTaskInstanceToken.setUserId(user.getUserId()); - kaleoTaskInstanceToken.setUserName(user.getFullName()); - kaleoTaskInstanceToken.setCreateDate(now); - kaleoTaskInstanceToken.setModifiedDate(now); - kaleoTaskInstanceToken.setDueDate(dueDate); - kaleoTaskInstanceToken.setKaleoDefinitionId( - kaleoInstanceToken.getKaleoDefinitionId()); - kaleoTaskInstanceToken.setKaleoInstanceId( - kaleoInstanceToken.getKaleoInstanceId()); - kaleoTaskInstanceToken.setKaleoInstanceTokenId(kaleoInstanceTokenId); - - kaleoTaskInstanceToken.setKaleoTaskId(kaleoTaskId); - kaleoTaskInstanceToken.setKaleoTaskName(kaleoTaskName); - - if (workflowContext != null) { - kaleoTaskInstanceToken.setClassName( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); - - if (workflowContext.containsKey( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { - - kaleoTaskInstanceToken.setClassPK( - GetterUtil.getLong( - (String)workflowContext.get( - WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); - } - } - - kaleoTaskInstanceToken.setCompleted(false); - kaleoTaskInstanceToken.setWorkflowContext( - WorkflowContextUtil.convert(workflowContext)); - - kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); - - kaleoTaskAssignmentInstanceLocalService.addTaskAssignmentInstances( - kaleoTaskInstanceToken, kaleoTaskAssignments, workflowContext, - serviceContext); - - return kaleoTaskInstanceToken; - } - - - public KaleoTaskInstanceToken assignKaleoTaskInstanceToken( - long kaleoTaskInstanceTokenId, String assigneeClassName, - long assigneeClassPK, Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenPersistence.findByPrimaryKey( - kaleoTaskInstanceTokenId); - - kaleoTaskInstanceToken.setModifiedDate(new Date()); - kaleoTaskInstanceToken.setWorkflowContext( - WorkflowContextUtil.convert(workflowContext)); - - kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); - - kaleoTaskAssignmentInstanceLocalService. - assignKaleoTaskAssignmentInstance( - kaleoTaskInstanceToken, assigneeClassName, assigneeClassPK, - serviceContext); - - return kaleoTaskInstanceToken; - } - - - public KaleoTaskInstanceToken completeKaleoTaskInstanceToken( - long kaleoTaskInstanceTokenId, ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo task instance token - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - kaleoTaskInstanceTokenPersistence.findByPrimaryKey( - kaleoTaskInstanceTokenId); - - kaleoTaskInstanceToken.setCompletionUserId(serviceContext.getUserId()); - kaleoTaskInstanceToken.setCompleted(true); - kaleoTaskInstanceToken.setCompletionDate(new Date()); - - kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); - - // Kaleo task assignment instance - - kaleoTaskAssignmentInstanceLocalService.completeKaleoTaskInstanceToken( - kaleoTaskInstanceTokenId, serviceContext); - - // Kaleo timers - - kaleoTimerInstanceTokenLocalService.completeKaleoTimerInstanceTokens( - kaleoTaskInstanceToken.getKaleoInstanceTokenId(), serviceContext); - - return kaleoTaskInstanceToken; - } - - - public void deleteCompanyKaleoTaskInstanceTokens(long companyId) - throws SystemException { - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenPersistence.removeByCompanyId(companyId); - - // Kaleo task assignment instances - - kaleoTaskAssignmentInstanceLocalService. - deleteCompanyKaleoTaskAssignmentInstances(companyId); - } - - - public void deleteKaleoDefinitionKaleoTaskInstanceTokens( - long kaleoDefinitionId) - throws SystemException { - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenPersistence.removeByKaleoDefinitionId( - kaleoDefinitionId); - - // Kaleo task assignment instances - - kaleoTaskAssignmentInstanceLocalService. - deleteKaleoDefinitionKaleoTaskAssignmentInstances( - kaleoDefinitionId); - } - - - public void deleteKaleoInstanceKaleoTaskInstanceTokens(long kaleoInstanceId) - throws SystemException { - - // Kaleo task instance tokens - - kaleoTaskInstanceTokenPersistence.removeByKaleoInstanceId( - kaleoInstanceId); - - // Kaleo task assignment instances - - kaleoTaskAssignmentInstanceLocalService. - deleteKaleoInstanceKaleoTaskAssignmentInstances(kaleoInstanceId); - } - - - public List getCompanyKaleoTaskInstanceTokens( - long companyId, int start, int end) - throws SystemException { - - return kaleoTaskInstanceTokenPersistence.findByCompanyId( - companyId, start, end); - } - - - public int getCompanyKaleoTaskInstanceTokensCount(long companyId) - throws SystemException { - - return kaleoTaskInstanceTokenPersistence.countByCompanyId(companyId); - } - - - public List getKaleoTaskInstanceTokens( - Boolean completed, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery( - completed, serviceContext); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - - public List getKaleoTaskInstanceTokens( - List roleIds, Boolean completed, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setEnd(end); - kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); - kaleoTaskInstanceTokenQuery.setRoleIds(roleIds); - kaleoTaskInstanceTokenQuery.setStart(start); - - return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public List getKaleoTaskInstanceTokens( - long kaleoInstanceId, Boolean completed, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - long userId = serviceContext.getUserId(); - - if (userId == 0) { - DynamicQuery dynamicQuery = buildDynamicQuery( - kaleoInstanceId, completed, serviceContext); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssigneeClassName(User.class.getName()); - kaleoTaskInstanceTokenQuery.setAssigneeClassPK( - serviceContext.getUserId()); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setEnd(end); - kaleoTaskInstanceTokenQuery.setKaleoInstanceId(kaleoInstanceId); - kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); - kaleoTaskInstanceTokenQuery.setStart(start); - - return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public KaleoTaskInstanceToken getKaleoTaskInstanceTokens( - long kaleoInstanceId, long kaleoTaskId) - throws PortalException, SystemException { - - return kaleoTaskInstanceTokenPersistence.findByKII_KTI( - kaleoInstanceId, kaleoTaskId); - } - - - public List getKaleoTaskInstanceTokens( - String assigneeClassName, long assigneeClassPK, Boolean completed, - int start, int end, OrderByComparator orderByComparator, - ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssigneeClassName(assigneeClassName); - kaleoTaskInstanceTokenQuery.setAssigneeClassPK(assigneeClassPK); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setEnd(end); - kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); - kaleoTaskInstanceTokenQuery.setStart(start); - - return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public int getKaleoTaskInstanceTokensCount( - Boolean completed, ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = buildDynamicQuery( - completed, serviceContext); - - return (int)dynamicQueryCount(dynamicQuery); - } - - - public int getKaleoTaskInstanceTokensCount( - List roleIds, Boolean completed, - ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setAssigneeClassName(Role.class.getName()); - - kaleoTaskInstanceTokenQuery.setRoleIds(roleIds); - - return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public int getKaleoTaskInstanceTokensCount( - long kaleoInstanceId, Boolean completed, - ServiceContext serviceContext) - throws SystemException { - - long userId = serviceContext.getUserId(); - - if (userId == 0) { - DynamicQuery dynamicQuery = buildDynamicQuery( - kaleoInstanceId, completed, serviceContext); - - return (int)dynamicQueryCount(dynamicQuery); - } - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssigneeClassName(User.class.getName()); - kaleoTaskInstanceTokenQuery.setAssigneeClassPK( - serviceContext.getUserId()); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - - return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public int getKaleoTaskInstanceTokensCount( - String assigneeClassName, long assigneeClassPK, Boolean completed, - ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssigneeClassName(assigneeClassName); - kaleoTaskInstanceTokenQuery.setAssigneeClassPK(assigneeClassPK); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - - return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public List - getSubmittingUserKaleoTaskInstanceTokens( - long userId, Boolean completed, int start, int end, - OrderByComparator orderByComparator, - ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( - KaleoTaskInstanceToken.class, getClassLoader()); - - Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); - - Property workflowContextProperty = PropertyFactoryUtil.forName( - "workflowContext"); - - dynamicQuery.add(workflowContextProperty.like("\"userId\":" + userId)); - - addCompletedCriterion(dynamicQuery, completed); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - - public int getSubmittingUserKaleoTaskInstanceTokensCount( - long userId, Boolean completed, ServiceContext serviceContext) - throws SystemException { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( - KaleoTaskInstanceToken.class, getClassLoader()); - - Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); - - Property workflowContextProperty = PropertyFactoryUtil.forName( - "workflowContext"); - - dynamicQuery.add(workflowContextProperty.like("\"userId\":" + userId)); - - addCompletedCriterion(dynamicQuery, completed); - - return (int)dynamicQueryCount(dynamicQuery); - } - - - public List search( - String keywords, Boolean completed, Boolean searchByUserRoles, - int start, int end, OrderByComparator orderByComparator, - ServiceContext serviceContext) - throws SystemException { - - return search( - keywords, keywords, null, null, null, completed, searchByUserRoles, - false, start, end, orderByComparator, serviceContext); - } - - - public List search( - String taskName, String assetType, Long[] assetPrimaryKeys, - Date dueDateGT, Date dueDateLT, Boolean completed, - Boolean searchByUserRoles, boolean andOperator, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - return search( - taskName, getAssetTypes(assetType), assetPrimaryKeys, dueDateGT, - dueDateLT, completed, searchByUserRoles, andOperator, start, end, - orderByComparator, serviceContext); - } - - - public List search( - String keywords, String[] assetTypes, Boolean completed, - Boolean searchByUserRoles, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - return search( - keywords, assetTypes, null, null, null, completed, - searchByUserRoles, true, start, end, orderByComparator, - serviceContext); - } - - - public List search( - String taskName, String[] assetTypes, Long[] assetPrimaryKeys, - Date dueDateGT, Date dueDateLT, Boolean completed, - Boolean searchByUserRoles, boolean andOperator, int start, int end, - OrderByComparator orderByComparator, ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssetPrimaryKeys(assetPrimaryKeys); - kaleoTaskInstanceTokenQuery.setAssetTypes(assetTypes); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setDueDateGT(dueDateGT); - kaleoTaskInstanceTokenQuery.setDueDateLT(dueDateLT); - kaleoTaskInstanceTokenQuery.setEnd(end); - kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); - kaleoTaskInstanceTokenQuery.setSearchByUserRoles(searchByUserRoles); - kaleoTaskInstanceTokenQuery.setStart(start); - kaleoTaskInstanceTokenQuery.setTaskName(taskName); - kaleoTaskInstanceTokenQuery.setAndOperator(andOperator); - - return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public int searchCount( - String keywords, Boolean completed, Boolean searchByUserRoles, - ServiceContext serviceContext) - throws SystemException { - - return searchCount( - keywords, keywords, null, null, null, completed, searchByUserRoles, - false, serviceContext); - } - - - public int searchCount( - String taskName, String assetType, Long[] assetPrimaryKeys, - Date dueDateGT, Date dueDateLT, Boolean completed, - Boolean searchByUserRoles, boolean andOperator, - ServiceContext serviceContext) - throws SystemException { - - return searchCount( - taskName, getAssetTypes(assetType), assetPrimaryKeys, dueDateGT, - dueDateLT, completed, searchByUserRoles, andOperator, - serviceContext); - } - - - public int searchCount( - String keywords, String[] assetTypes, Boolean completed, - Boolean searchByUserRoles, ServiceContext serviceContext) - throws SystemException { - - return searchCount( - keywords, assetTypes, null, null, null, completed, - searchByUserRoles, true, serviceContext); - } - - - public int searchCount( - String taskName, String[] assetTypes, Long[] assetPrimaryKeys, - Date dueDateGT, Date dueDateLT, Boolean completed, - Boolean searchByUserRoles, boolean andOperator, - ServiceContext serviceContext) - throws SystemException { - - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = - new KaleoTaskInstanceTokenQuery(serviceContext); - - kaleoTaskInstanceTokenQuery.setAssetPrimaryKeys(assetPrimaryKeys); - kaleoTaskInstanceTokenQuery.setAssetTypes(assetTypes); - kaleoTaskInstanceTokenQuery.setCompleted(completed); - kaleoTaskInstanceTokenQuery.setDueDateGT(dueDateGT); - kaleoTaskInstanceTokenQuery.setDueDateLT(dueDateLT); - kaleoTaskInstanceTokenQuery.setSearchByUserRoles(searchByUserRoles); - kaleoTaskInstanceTokenQuery.setTaskName(taskName); - kaleoTaskInstanceTokenQuery.setAndOperator(andOperator); - - return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( - kaleoTaskInstanceTokenQuery); - } - - - public KaleoTaskInstanceToken updateDueDate( - long kaleoTaskInstanceTokenId, Date dueDate, - ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoTaskInstanceToken kaleoTaskInstance = - kaleoTaskInstanceTokenPersistence.findByPrimaryKey( - kaleoTaskInstanceTokenId); - - kaleoTaskInstance.setModifiedDate(new Date()); - - if (dueDate != null) { - Calendar cal = CalendarFactoryUtil.getCalendar( - LocaleUtil.getDefault()); - - cal.setTime(dueDate); - - kaleoTaskInstance.setDueDate(cal.getTime()); - } - - kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstance); - - return kaleoTaskInstance; - } - - protected void addCompletedCriterion( - DynamicQuery dynamicQuery, Boolean completed) { - - if (completed == null) { - return; - } - - Property property = PropertyFactoryUtil.forName("completed"); - - dynamicQuery.add(property.eq(completed)); - } - - protected DynamicQuery buildDynamicQuery( - Boolean completed, ServiceContext serviceContext) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( - KaleoTaskInstanceToken.class, getClassLoader()); - - Property property = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(property.eq(serviceContext.getCompanyId())); - - addCompletedCriterion(dynamicQuery, completed); - - return dynamicQuery; - } - - protected DynamicQuery buildDynamicQuery( - long kaleoInstanceId, Boolean completed, - ServiceContext serviceContext) { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( - KaleoTaskInstanceToken.class, getClassLoader()); - - Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); - - dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); - - Property kaleoInstanceIdProperty = PropertyFactoryUtil.forName( - "kaleoInstanceId"); - - dynamicQuery.add(kaleoInstanceIdProperty.eq(kaleoInstanceId)); - - addCompletedCriterion(dynamicQuery, completed); - - return dynamicQuery; - } - - protected String[] getAssetTypes(String assetType) { - if (Validator.isNull(assetType)) { - return null; - } - - return new String[] {assetType}; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.Property; +import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.staging.StagingUtil; +import com.liferay.portal.kernel.util.CalendarFactoryUtil; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignment; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskInstanceTokenLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.service.persistence.KaleoTaskInstanceTokenQuery; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.Calendar; +import java.util.Collection; +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @author Brian Wing Shun Chan + * @author Marcellus Tavares + */ +public class KaleoTaskInstanceTokenLocalServiceImpl + extends KaleoTaskInstanceTokenLocalServiceBaseImpl { + + + public KaleoTaskInstanceToken addKaleoTaskInstanceToken( + long kaleoInstanceTokenId, long kaleoTaskId, String kaleoTaskName, + Collection kaleoTaskAssignments, Date dueDate, + Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.findByPrimaryKey( + kaleoInstanceTokenId); + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTaskInstanceTokenId = counterLocalService.increment(); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenPersistence.create(kaleoTaskInstanceTokenId); + + long groupId = StagingUtil.getLiveGroupId( + serviceContext.getScopeGroupId()); + + kaleoTaskInstanceToken.setGroupId(groupId); + + kaleoTaskInstanceToken.setCompanyId(user.getCompanyId()); + kaleoTaskInstanceToken.setUserId(user.getUserId()); + kaleoTaskInstanceToken.setUserName(user.getFullName()); + kaleoTaskInstanceToken.setCreateDate(now); + kaleoTaskInstanceToken.setModifiedDate(now); + kaleoTaskInstanceToken.setDueDate(dueDate); + kaleoTaskInstanceToken.setKaleoDefinitionId( + kaleoInstanceToken.getKaleoDefinitionId()); + kaleoTaskInstanceToken.setKaleoInstanceId( + kaleoInstanceToken.getKaleoInstanceId()); + kaleoTaskInstanceToken.setKaleoInstanceTokenId(kaleoInstanceTokenId); + + kaleoTaskInstanceToken.setKaleoTaskId(kaleoTaskId); + kaleoTaskInstanceToken.setKaleoTaskName(kaleoTaskName); + + if (workflowContext != null) { + kaleoTaskInstanceToken.setClassName( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME)); + + if (workflowContext.containsKey( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)) { + + kaleoTaskInstanceToken.setClassPK( + GetterUtil.getLong( + (String)workflowContext.get( + WorkflowConstants.CONTEXT_ENTRY_CLASS_PK))); + } + } + + kaleoTaskInstanceToken.setCompleted(false); + kaleoTaskInstanceToken.setWorkflowContext( + WorkflowContextUtil.convert(workflowContext)); + + kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); + + kaleoTaskAssignmentInstanceLocalService.addTaskAssignmentInstances( + kaleoTaskInstanceToken, kaleoTaskAssignments, workflowContext, + serviceContext); + + return kaleoTaskInstanceToken; + } + + + public KaleoTaskInstanceToken assignKaleoTaskInstanceToken( + long kaleoTaskInstanceTokenId, String assigneeClassName, + long assigneeClassPK, Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenPersistence.findByPrimaryKey( + kaleoTaskInstanceTokenId); + + kaleoTaskInstanceToken.setModifiedDate(new Date()); + kaleoTaskInstanceToken.setWorkflowContext( + WorkflowContextUtil.convert(workflowContext)); + + kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); + + kaleoTaskAssignmentInstanceLocalService. + assignKaleoTaskAssignmentInstance( + kaleoTaskInstanceToken, assigneeClassName, assigneeClassPK, + serviceContext); + + return kaleoTaskInstanceToken; + } + + + public KaleoTaskInstanceToken completeKaleoTaskInstanceToken( + long kaleoTaskInstanceTokenId, ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo task instance token + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + kaleoTaskInstanceTokenPersistence.findByPrimaryKey( + kaleoTaskInstanceTokenId); + + kaleoTaskInstanceToken.setCompletionUserId(serviceContext.getUserId()); + kaleoTaskInstanceToken.setCompleted(true); + kaleoTaskInstanceToken.setCompletionDate(new Date()); + + kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstanceToken); + + // Kaleo task assignment instance + + kaleoTaskAssignmentInstanceLocalService.completeKaleoTaskInstanceToken( + kaleoTaskInstanceTokenId, serviceContext); + + // Kaleo timers + + kaleoTimerInstanceTokenLocalService.completeKaleoTimerInstanceTokens( + kaleoTaskInstanceToken.getKaleoInstanceTokenId(), serviceContext); + + return kaleoTaskInstanceToken; + } + + + public void deleteCompanyKaleoTaskInstanceTokens(long companyId) + throws SystemException { + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenPersistence.removeByCompanyId(companyId); + + // Kaleo task assignment instances + + kaleoTaskAssignmentInstanceLocalService. + deleteCompanyKaleoTaskAssignmentInstances(companyId); + } + + + public void deleteKaleoDefinitionKaleoTaskInstanceTokens( + long kaleoDefinitionId) + throws SystemException { + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenPersistence.removeByKaleoDefinitionId( + kaleoDefinitionId); + + // Kaleo task assignment instances + + kaleoTaskAssignmentInstanceLocalService. + deleteKaleoDefinitionKaleoTaskAssignmentInstances( + kaleoDefinitionId); + } + + + public void deleteKaleoInstanceKaleoTaskInstanceTokens(long kaleoInstanceId) + throws SystemException { + + // Kaleo task instance tokens + + kaleoTaskInstanceTokenPersistence.removeByKaleoInstanceId( + kaleoInstanceId); + + // Kaleo task assignment instances + + kaleoTaskAssignmentInstanceLocalService. + deleteKaleoInstanceKaleoTaskAssignmentInstances(kaleoInstanceId); + } + + + public List getCompanyKaleoTaskInstanceTokens( + long companyId, int start, int end) + throws SystemException { + + return kaleoTaskInstanceTokenPersistence.findByCompanyId( + companyId, start, end); + } + + + public int getCompanyKaleoTaskInstanceTokensCount(long companyId) + throws SystemException { + + return kaleoTaskInstanceTokenPersistence.countByCompanyId(companyId); + } + + + public List getKaleoTaskInstanceTokens( + Boolean completed, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery( + completed, serviceContext); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + + public List getKaleoTaskInstanceTokens( + List roleIds, Boolean completed, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setEnd(end); + kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); + kaleoTaskInstanceTokenQuery.setRoleIds(roleIds); + kaleoTaskInstanceTokenQuery.setStart(start); + + return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public List getKaleoTaskInstanceTokens( + long kaleoInstanceId, Boolean completed, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + long userId = serviceContext.getUserId(); + + if (userId == 0) { + DynamicQuery dynamicQuery = buildDynamicQuery( + kaleoInstanceId, completed, serviceContext); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssigneeClassName(User.class.getName()); + kaleoTaskInstanceTokenQuery.setAssigneeClassPK( + serviceContext.getUserId()); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setEnd(end); + kaleoTaskInstanceTokenQuery.setKaleoInstanceId(kaleoInstanceId); + kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); + kaleoTaskInstanceTokenQuery.setStart(start); + + return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public KaleoTaskInstanceToken getKaleoTaskInstanceTokens( + long kaleoInstanceId, long kaleoTaskId) + throws PortalException, SystemException { + + return kaleoTaskInstanceTokenPersistence.findByKII_KTI( + kaleoInstanceId, kaleoTaskId); + } + + + public List getKaleoTaskInstanceTokens( + String assigneeClassName, long assigneeClassPK, Boolean completed, + int start, int end, OrderByComparator orderByComparator, + ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssigneeClassName(assigneeClassName); + kaleoTaskInstanceTokenQuery.setAssigneeClassPK(assigneeClassPK); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setEnd(end); + kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); + kaleoTaskInstanceTokenQuery.setStart(start); + + return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public int getKaleoTaskInstanceTokensCount( + Boolean completed, ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = buildDynamicQuery( + completed, serviceContext); + + return (int)dynamicQueryCount(dynamicQuery); + } + + + public int getKaleoTaskInstanceTokensCount( + List roleIds, Boolean completed, + ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setAssigneeClassName(Role.class.getName()); + + kaleoTaskInstanceTokenQuery.setRoleIds(roleIds); + + return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public int getKaleoTaskInstanceTokensCount( + long kaleoInstanceId, Boolean completed, + ServiceContext serviceContext) + throws SystemException { + + long userId = serviceContext.getUserId(); + + if (userId == 0) { + DynamicQuery dynamicQuery = buildDynamicQuery( + kaleoInstanceId, completed, serviceContext); + + return (int)dynamicQueryCount(dynamicQuery); + } + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssigneeClassName(User.class.getName()); + kaleoTaskInstanceTokenQuery.setAssigneeClassPK( + serviceContext.getUserId()); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + + return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public int getKaleoTaskInstanceTokensCount( + String assigneeClassName, long assigneeClassPK, Boolean completed, + ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssigneeClassName(assigneeClassName); + kaleoTaskInstanceTokenQuery.setAssigneeClassPK(assigneeClassPK); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + + return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public List + getSubmittingUserKaleoTaskInstanceTokens( + long userId, Boolean completed, int start, int end, + OrderByComparator orderByComparator, + ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( + KaleoTaskInstanceToken.class, getClassLoader()); + + Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); + + Property workflowContextProperty = PropertyFactoryUtil.forName( + "workflowContext"); + + dynamicQuery.add(workflowContextProperty.like("\"userId\":" + userId)); + + addCompletedCriterion(dynamicQuery, completed); + + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + + public int getSubmittingUserKaleoTaskInstanceTokensCount( + long userId, Boolean completed, ServiceContext serviceContext) + throws SystemException { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( + KaleoTaskInstanceToken.class, getClassLoader()); + + Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); + + Property workflowContextProperty = PropertyFactoryUtil.forName( + "workflowContext"); + + dynamicQuery.add(workflowContextProperty.like("\"userId\":" + userId)); + + addCompletedCriterion(dynamicQuery, completed); + + return (int)dynamicQueryCount(dynamicQuery); + } + + + public List search( + String keywords, Boolean completed, Boolean searchByUserRoles, + int start, int end, OrderByComparator orderByComparator, + ServiceContext serviceContext) + throws SystemException { + + return search( + keywords, keywords, null, null, null, completed, searchByUserRoles, + false, start, end, orderByComparator, serviceContext); + } + + + public List search( + String taskName, String assetType, Long[] assetPrimaryKeys, + Date dueDateGT, Date dueDateLT, Boolean completed, + Boolean searchByUserRoles, boolean andOperator, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + return search( + taskName, getAssetTypes(assetType), assetPrimaryKeys, dueDateGT, + dueDateLT, completed, searchByUserRoles, andOperator, start, end, + orderByComparator, serviceContext); + } + + + public List search( + String keywords, String[] assetTypes, Boolean completed, + Boolean searchByUserRoles, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + return search( + keywords, assetTypes, null, null, null, completed, + searchByUserRoles, true, start, end, orderByComparator, + serviceContext); + } + + + public List search( + String taskName, String[] assetTypes, Long[] assetPrimaryKeys, + Date dueDateGT, Date dueDateLT, Boolean completed, + Boolean searchByUserRoles, boolean andOperator, int start, int end, + OrderByComparator orderByComparator, ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssetPrimaryKeys(assetPrimaryKeys); + kaleoTaskInstanceTokenQuery.setAssetTypes(assetTypes); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setDueDateGT(dueDateGT); + kaleoTaskInstanceTokenQuery.setDueDateLT(dueDateLT); + kaleoTaskInstanceTokenQuery.setEnd(end); + kaleoTaskInstanceTokenQuery.setOrderByComparator(orderByComparator); + kaleoTaskInstanceTokenQuery.setSearchByUserRoles(searchByUserRoles); + kaleoTaskInstanceTokenQuery.setStart(start); + kaleoTaskInstanceTokenQuery.setTaskName(taskName); + kaleoTaskInstanceTokenQuery.setAndOperator(andOperator); + + return kaleoTaskInstanceTokenFinder.findKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public int searchCount( + String keywords, Boolean completed, Boolean searchByUserRoles, + ServiceContext serviceContext) + throws SystemException { + + return searchCount( + keywords, keywords, null, null, null, completed, searchByUserRoles, + false, serviceContext); + } + + + public int searchCount( + String taskName, String assetType, Long[] assetPrimaryKeys, + Date dueDateGT, Date dueDateLT, Boolean completed, + Boolean searchByUserRoles, boolean andOperator, + ServiceContext serviceContext) + throws SystemException { + + return searchCount( + taskName, getAssetTypes(assetType), assetPrimaryKeys, dueDateGT, + dueDateLT, completed, searchByUserRoles, andOperator, + serviceContext); + } + + + public int searchCount( + String keywords, String[] assetTypes, Boolean completed, + Boolean searchByUserRoles, ServiceContext serviceContext) + throws SystemException { + + return searchCount( + keywords, assetTypes, null, null, null, completed, + searchByUserRoles, true, serviceContext); + } + + + public int searchCount( + String taskName, String[] assetTypes, Long[] assetPrimaryKeys, + Date dueDateGT, Date dueDateLT, Boolean completed, + Boolean searchByUserRoles, boolean andOperator, + ServiceContext serviceContext) + throws SystemException { + + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery = + new KaleoTaskInstanceTokenQuery(serviceContext); + + kaleoTaskInstanceTokenQuery.setAssetPrimaryKeys(assetPrimaryKeys); + kaleoTaskInstanceTokenQuery.setAssetTypes(assetTypes); + kaleoTaskInstanceTokenQuery.setCompleted(completed); + kaleoTaskInstanceTokenQuery.setDueDateGT(dueDateGT); + kaleoTaskInstanceTokenQuery.setDueDateLT(dueDateLT); + kaleoTaskInstanceTokenQuery.setSearchByUserRoles(searchByUserRoles); + kaleoTaskInstanceTokenQuery.setTaskName(taskName); + kaleoTaskInstanceTokenQuery.setAndOperator(andOperator); + + return kaleoTaskInstanceTokenFinder.countKaleoTaskInstanceTokens( + kaleoTaskInstanceTokenQuery); + } + + + public KaleoTaskInstanceToken updateDueDate( + long kaleoTaskInstanceTokenId, Date dueDate, + ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoTaskInstanceToken kaleoTaskInstance = + kaleoTaskInstanceTokenPersistence.findByPrimaryKey( + kaleoTaskInstanceTokenId); + + kaleoTaskInstance.setModifiedDate(new Date()); + + if (dueDate != null) { + Calendar cal = CalendarFactoryUtil.getCalendar( + LocaleUtil.getDefault()); + + cal.setTime(dueDate); + + kaleoTaskInstance.setDueDate(cal.getTime()); + } + + kaleoTaskInstanceTokenPersistence.update(kaleoTaskInstance); + + return kaleoTaskInstance; + } + + protected void addCompletedCriterion( + DynamicQuery dynamicQuery, Boolean completed) { + + if (completed == null) { + return; + } + + Property property = PropertyFactoryUtil.forName("completed"); + + dynamicQuery.add(property.eq(completed)); + } + + protected DynamicQuery buildDynamicQuery( + Boolean completed, ServiceContext serviceContext) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( + KaleoTaskInstanceToken.class, getClassLoader()); + + Property property = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(property.eq(serviceContext.getCompanyId())); + + addCompletedCriterion(dynamicQuery, completed); + + return dynamicQuery; + } + + protected DynamicQuery buildDynamicQuery( + long kaleoInstanceId, Boolean completed, + ServiceContext serviceContext) { + + DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass( + KaleoTaskInstanceToken.class, getClassLoader()); + + Property companyIdProperty = PropertyFactoryUtil.forName("companyId"); + + dynamicQuery.add(companyIdProperty.eq(serviceContext.getCompanyId())); + + Property kaleoInstanceIdProperty = PropertyFactoryUtil.forName( + "kaleoInstanceId"); + + dynamicQuery.add(kaleoInstanceIdProperty.eq(kaleoInstanceId)); + + addCompletedCriterion(dynamicQuery, completed); + + return dynamicQuery; + } + + protected String[] getAssetTypes(String assetType) { + if (Validator.isNull(assetType)) { + return null; + } + + return new String[] {assetType}; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskLocalServiceImpl.java index 6c322671..0fc345db 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTaskLocalServiceImpl.java @@ -1,108 +1,108 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.Task; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskLocalServiceBaseImpl; - -import java.util.Date; -import java.util.Set; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoTaskLocalServiceImpl extends KaleoTaskLocalServiceBaseImpl { - - - public KaleoTask addKaleoTask( - long kaleoDefinitionId, long kaleoNodeId, Task task, - ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo task - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTaskId = counterLocalService.increment(); - - KaleoTask kaleoTask = kaleoTaskPersistence.create(kaleoTaskId); - - kaleoTask.setCompanyId(user.getCompanyId()); - kaleoTask.setUserId(user.getUserId()); - kaleoTask.setUserName(user.getFullName()); - kaleoTask.setCreateDate(now); - kaleoTask.setModifiedDate(now); - kaleoTask.setKaleoDefinitionId(kaleoDefinitionId); - kaleoTask.setKaleoNodeId(kaleoNodeId); - kaleoTask.setName(task.getName()); - - kaleoTaskPersistence.update(kaleoTask); - - // Kaleo assignments - - Set assignments = task.getAssignments(); - - for (Assignment assignment : assignments) { - kaleoTaskAssignmentLocalService.addKaleoTaskAssignment( - KaleoTask.class.getName(), kaleoTaskId, kaleoDefinitionId, - assignment, serviceContext); - } - - return kaleoTask; - } - - - public void deleteCompanyKaleoTasks(long companyId) throws SystemException { - - // Kaleo tasks - - kaleoTaskPersistence.removeByCompanyId(companyId); - - // Kaleo task assignments - - kaleoTaskAssignmentLocalService.deleteCompanyKaleoTaskAssignments( - companyId); - } - - - public void deleteKaleoDefinitionKaleoTasks(long kaleoDefinitionId) - throws SystemException { - - // Kaleo tasks - - kaleoTaskPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - - // Kaleo task assignments - - kaleoTaskAssignmentLocalService. - deleteKaleoDefinitionKaleoTaskAssignments(kaleoDefinitionId); - } - - - public KaleoTask getKaleoNodeKaleoTask(long kaleoNodeId) - throws PortalException, SystemException { - - return kaleoTaskPersistence.findByKaleoNodeId(kaleoNodeId); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.Task; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTaskLocalServiceBaseImpl; + +import java.util.Date; +import java.util.Set; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoTaskLocalServiceImpl extends KaleoTaskLocalServiceBaseImpl { + + + public KaleoTask addKaleoTask( + long kaleoDefinitionId, long kaleoNodeId, Task task, + ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo task + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTaskId = counterLocalService.increment(); + + KaleoTask kaleoTask = kaleoTaskPersistence.create(kaleoTaskId); + + kaleoTask.setCompanyId(user.getCompanyId()); + kaleoTask.setUserId(user.getUserId()); + kaleoTask.setUserName(user.getFullName()); + kaleoTask.setCreateDate(now); + kaleoTask.setModifiedDate(now); + kaleoTask.setKaleoDefinitionId(kaleoDefinitionId); + kaleoTask.setKaleoNodeId(kaleoNodeId); + kaleoTask.setName(task.getName()); + + kaleoTaskPersistence.update(kaleoTask); + + // Kaleo assignments + + Set assignments = task.getAssignments(); + + for (Assignment assignment : assignments) { + kaleoTaskAssignmentLocalService.addKaleoTaskAssignment( + KaleoTask.class.getName(), kaleoTaskId, kaleoDefinitionId, + assignment, serviceContext); + } + + return kaleoTask; + } + + + public void deleteCompanyKaleoTasks(long companyId) throws SystemException { + + // Kaleo tasks + + kaleoTaskPersistence.removeByCompanyId(companyId); + + // Kaleo task assignments + + kaleoTaskAssignmentLocalService.deleteCompanyKaleoTaskAssignments( + companyId); + } + + + public void deleteKaleoDefinitionKaleoTasks(long kaleoDefinitionId) + throws SystemException { + + // Kaleo tasks + + kaleoTaskPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + + // Kaleo task assignments + + kaleoTaskAssignmentLocalService. + deleteKaleoDefinitionKaleoTaskAssignments(kaleoDefinitionId); + } + + + public KaleoTask getKaleoNodeKaleoTask(long kaleoNodeId) + throws PortalException, SystemException { + + return kaleoTaskPersistence.findByKaleoNodeId(kaleoNodeId); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerInstanceTokenLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerInstanceTokenLocalServiceImpl.java index 2213447c..11746b9d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerInstanceTokenLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerInstanceTokenLocalServiceImpl.java @@ -1,343 +1,343 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.messaging.Message; -import com.liferay.portal.kernel.scheduler.CronText; -import com.liferay.portal.kernel.scheduler.CronTrigger; -import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil; -import com.liferay.portal.kernel.scheduler.StorageType; -import com.liferay.portal.kernel.scheduler.Trigger; -import com.liferay.portal.kernel.staging.StagingUtil; -import com.liferay.portal.kernel.util.CalendarFactoryUtil; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.DurationScale; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.calendar.DefaultDueDateCalculator; -import com.liferay.portal.workflow.kaleo.runtime.calendar.DueDateCalculator; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTimerInstanceTokenLocalServiceBaseImpl; -import com.liferay.portal.workflow.kaleo.util.SchedulerUtil; -import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import java.util.List; -import java.util.Map; - -/** - * @author Marcellus Tavares - */ -public class KaleoTimerInstanceTokenLocalServiceImpl - extends KaleoTimerInstanceTokenLocalServiceBaseImpl { - - - public KaleoTimerInstanceToken addKaleoTimerInstanceToken( - long kaleoInstanceTokenId, long kaleoTaskInstanceTokenId, - long kaleoTimerId, String kaleoTimerName, - Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - KaleoInstanceToken kaleoInstanceToken = - kaleoInstanceTokenPersistence.findByPrimaryKey( - kaleoInstanceTokenId); - KaleoTimer kaleoTimer = kaleoTimerPersistence.findByPrimaryKey( - kaleoTimerId); - Date now = new Date(); - - long kaleoTimerInstanceTokenId = counterLocalService.increment(); - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - kaleoTimerInstanceTokenPersistence.create( - kaleoTimerInstanceTokenId); - - long groupId = StagingUtil.getLiveGroupId( - serviceContext.getScopeGroupId()); - - kaleoTimerInstanceToken.setGroupId(groupId); - - kaleoTimerInstanceToken.setCompanyId(user.getCompanyId()); - kaleoTimerInstanceToken.setUserId(user.getUserId()); - kaleoTimerInstanceToken.setUserName(user.getFullName()); - kaleoTimerInstanceToken.setCreateDate(now); - kaleoTimerInstanceToken.setModifiedDate(now); - kaleoTimerInstanceToken.setKaleoClassName( - kaleoTimer.getKaleoClassName()); - kaleoTimerInstanceToken.setKaleoClassPK(kaleoTimer.getKaleoClassPK()); - kaleoTimerInstanceToken.setKaleoDefinitionId( - kaleoInstanceToken.getKaleoDefinitionId()); - kaleoTimerInstanceToken.setKaleoInstanceId( - kaleoInstanceToken.getKaleoInstanceId()); - kaleoTimerInstanceToken.setKaleoInstanceTokenId(kaleoInstanceTokenId); - kaleoTimerInstanceToken.setKaleoTaskInstanceTokenId( - kaleoTaskInstanceTokenId); - kaleoTimerInstanceToken.setKaleoTimerId(kaleoTimerId); - kaleoTimerInstanceToken.setKaleoTimerName(kaleoTimerName); - kaleoTimerInstanceToken.setBlocking(kaleoTimer.isBlocking()); - kaleoTimerInstanceToken.setCompleted(false); - kaleoTimerInstanceToken.setWorkflowContext( - WorkflowContextUtil.convert(workflowContext)); - - kaleoTimerInstanceTokenPersistence.update(kaleoTimerInstanceToken); - - scheduleTimer(kaleoTimerInstanceToken, kaleoTimer); - - return kaleoTimerInstanceToken; - } - - - public List addKaleoTimerInstanceTokens( - KaleoInstanceToken kaleoInstanceToken, - KaleoTaskInstanceToken kaleoTaskInstanceToken, - Collection kaleoTimers, - Map workflowContext, - ServiceContext serviceContext) - throws PortalException, SystemException { - - if (kaleoTimers.isEmpty()) { - return Collections.emptyList(); - } - - List kaleoTimerInstanceTokens = - new ArrayList(kaleoTimers.size()); - - long kaleoTaskInstanceTokenId = 0; - - if (kaleoTaskInstanceToken != null) { - kaleoTaskInstanceTokenId = - kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(); - } - - for (KaleoTimer kaleoTimer : kaleoTimers) { - KaleoTimerInstanceToken kaleoTimerInstanceToken = - addKaleoTimerInstanceToken( - kaleoInstanceToken.getKaleoInstanceTokenId(), - kaleoTaskInstanceTokenId, kaleoTimer.getKaleoTimerId(), - kaleoTimer.getName(), workflowContext, serviceContext); - - kaleoTimerInstanceTokens.add(kaleoTimerInstanceToken); - } - - return kaleoTimerInstanceTokens; - } - - - public KaleoTimerInstanceToken completeKaleoTimerInstanceToken( - long kaleoTimerInstanceTokenId, ServiceContext serviceContext) - throws PortalException, SystemException { - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - kaleoTimerInstanceTokenPersistence.findByPrimaryKey( - kaleoTimerInstanceTokenId); - - kaleoTimerInstanceToken.setCompletionUserId(serviceContext.getUserId()); - kaleoTimerInstanceToken.setCompleted(true); - kaleoTimerInstanceToken.setCompletionDate(new Date()); - - kaleoTimerInstanceTokenPersistence.update(kaleoTimerInstanceToken); - - deleteScheduledTimer(kaleoTimerInstanceToken); - - return kaleoTimerInstanceToken; - } - - - public void completeKaleoTimerInstanceTokens( - List kaleoTimerInstanceTokens, - ServiceContext serviceContext) - throws PortalException, SystemException { - - for (KaleoTimerInstanceToken kaleoTimerInstanceToken : - kaleoTimerInstanceTokens) { - - completeKaleoTimerInstanceToken( - kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId(), - serviceContext); - } - } - - - public void completeKaleoTimerInstanceTokens( - long kaleoInstanceTokenId, ServiceContext serviceContext) - throws PortalException, SystemException { - - List kaleoTimerInstanceTokens = - kaleoTimerInstanceTokenPersistence.findByKITI_C( - kaleoInstanceTokenId, false); - - completeKaleoTimerInstanceTokens( - kaleoTimerInstanceTokens, serviceContext); - } - - - public void deleteKaleoTimerInstanceToken( - long kaleoInstanceTokenId, long kaleoTimerId) - throws PortalException, SystemException { - - KaleoTimerInstanceToken kaleoTimerInstanceToken = - getKaleoTimerInstanceToken(kaleoInstanceTokenId, kaleoTimerId); - - deleteScheduledTimer(kaleoTimerInstanceToken); - - kaleoTimerInstanceTokenPersistence.remove(kaleoTimerInstanceToken); - } - - - public void deleteKaleoTimerInstanceTokens(long kaleoInstanceId) - throws SystemException { - - List kaleoTimerInstanceTokens = - kaleoTimerInstanceTokenPersistence.findByKaleoInstanceId( - kaleoInstanceId); - - for (KaleoTimerInstanceToken kaleoTimerInstanceToken : - kaleoTimerInstanceTokens) { - - if (kaleoTimerInstanceToken.isCompleted()) { - continue; - } - - try { - deleteScheduledTimer(kaleoTimerInstanceToken); - } - catch (PortalException pe) { - if (_log.isWarnEnabled()) { - _log.warn( - "Unable to unschedule " + kaleoTimerInstanceToken, pe); - } - } - - kaleoTimerInstanceTokenPersistence.remove(kaleoTimerInstanceToken); - } - } - - - public KaleoTimerInstanceToken getKaleoTimerInstanceToken( - long kaleoInstanceTokenId, long kaleoTimerId) - throws PortalException, SystemException { - - return kaleoTimerInstanceTokenPersistence.findByKITI_KTI( - kaleoInstanceTokenId, kaleoTimerId); - } - - - public List getKaleoTimerInstanceTokens( - long kaleoInstanceTokenId, boolean completed, boolean blocking, - ServiceContext serviceContext) - throws SystemException { - - return kaleoTimerInstanceTokenPersistence.findByKITI_C_B( - kaleoInstanceTokenId, completed, blocking); - } - - - public int getKaleoTimerInstanceTokensCount( - long kaleoInstanceTokenId, boolean completed, boolean blocking, - ServiceContext serviceContext) - throws SystemException { - - return kaleoTimerInstanceTokenPersistence.countByKITI_C_B( - kaleoInstanceTokenId, completed, blocking); - } - - protected void deleteScheduledTimer( - KaleoTimerInstanceToken kaleoTimerInstanceToken) - throws PortalException { - - String groupName = getSchedulerGroupName(kaleoTimerInstanceToken); - - SchedulerEngineHelperUtil.delete(groupName, StorageType.PERSISTED); - } - - protected String getSchedulerGroupName( - KaleoTimerInstanceToken kaleoTimerInstanceToken) { - - return SchedulerUtil.getGroupName( - kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId()); - } - - protected void scheduleTimer( - KaleoTimerInstanceToken kaleoTimerInstanceToken, - KaleoTimer kaleoTimer) - throws PortalException { - - deleteScheduledTimer(kaleoTimerInstanceToken); - - String groupName = getSchedulerGroupName(kaleoTimerInstanceToken); - - DelayDuration delayDuration = new DelayDuration( - kaleoTimer.getDuration(), - DurationScale.parse(kaleoTimer.getScale())); - - DueDateCalculator dueDateCalculator = new DefaultDueDateCalculator(); - - Date dueDate = dueDateCalculator.getDueDate(new Date(), delayDuration); - - Calendar dueDateCalendar = CalendarFactoryUtil.getCalendar(); - - dueDateCalendar.setTime(dueDate); - - CronText cronText = null; - - if (!kaleoTimer.isRecurring()) { - cronText = new CronText(dueDateCalendar); - } - else { - DelayDuration recurrenceDelayDuration = new DelayDuration( - kaleoTimer.getRecurrenceDuration(), - DurationScale.parse(kaleoTimer.getRecurrenceScale())); - - DurationScale durationScale = - recurrenceDelayDuration.getDurationScale(); - - cronText = new CronText( - dueDateCalendar, durationScale.getIntegerValue(), - (int)recurrenceDelayDuration.getDuration()); - } - - Trigger trigger = new CronTrigger( - groupName, groupName, cronText.toString()); - - Message message = new Message(); - - message.put( - "kaleoTimerInstanceTokenId", - kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId()); - - SchedulerEngineHelperUtil.schedule( - trigger, StorageType.PERSISTED, null, - SchedulerUtil.WORKFLOW_TIMER_DESTINATION_NAME, message, 0); - } - - private static Log _log = LogFactoryUtil.getLog( - KaleoTimerInstanceTokenLocalServiceImpl.class); - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.messaging.Message; +import com.liferay.portal.kernel.scheduler.CronText; +import com.liferay.portal.kernel.scheduler.CronTrigger; +import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil; +import com.liferay.portal.kernel.scheduler.StorageType; +import com.liferay.portal.kernel.scheduler.Trigger; +import com.liferay.portal.kernel.staging.StagingUtil; +import com.liferay.portal.kernel.util.CalendarFactoryUtil; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.DurationScale; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.calendar.DefaultDueDateCalculator; +import com.liferay.portal.workflow.kaleo.runtime.calendar.DueDateCalculator; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTimerInstanceTokenLocalServiceBaseImpl; +import com.liferay.portal.workflow.kaleo.util.SchedulerUtil; +import com.liferay.portal.workflow.kaleo.util.WorkflowContextUtil; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @author Marcellus Tavares + */ +public class KaleoTimerInstanceTokenLocalServiceImpl + extends KaleoTimerInstanceTokenLocalServiceBaseImpl { + + + public KaleoTimerInstanceToken addKaleoTimerInstanceToken( + long kaleoInstanceTokenId, long kaleoTaskInstanceTokenId, + long kaleoTimerId, String kaleoTimerName, + Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + KaleoInstanceToken kaleoInstanceToken = + kaleoInstanceTokenPersistence.findByPrimaryKey( + kaleoInstanceTokenId); + KaleoTimer kaleoTimer = kaleoTimerPersistence.findByPrimaryKey( + kaleoTimerId); + Date now = new Date(); + + long kaleoTimerInstanceTokenId = counterLocalService.increment(); + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + kaleoTimerInstanceTokenPersistence.create( + kaleoTimerInstanceTokenId); + + long groupId = StagingUtil.getLiveGroupId( + serviceContext.getScopeGroupId()); + + kaleoTimerInstanceToken.setGroupId(groupId); + + kaleoTimerInstanceToken.setCompanyId(user.getCompanyId()); + kaleoTimerInstanceToken.setUserId(user.getUserId()); + kaleoTimerInstanceToken.setUserName(user.getFullName()); + kaleoTimerInstanceToken.setCreateDate(now); + kaleoTimerInstanceToken.setModifiedDate(now); + kaleoTimerInstanceToken.setKaleoClassName( + kaleoTimer.getKaleoClassName()); + kaleoTimerInstanceToken.setKaleoClassPK(kaleoTimer.getKaleoClassPK()); + kaleoTimerInstanceToken.setKaleoDefinitionId( + kaleoInstanceToken.getKaleoDefinitionId()); + kaleoTimerInstanceToken.setKaleoInstanceId( + kaleoInstanceToken.getKaleoInstanceId()); + kaleoTimerInstanceToken.setKaleoInstanceTokenId(kaleoInstanceTokenId); + kaleoTimerInstanceToken.setKaleoTaskInstanceTokenId( + kaleoTaskInstanceTokenId); + kaleoTimerInstanceToken.setKaleoTimerId(kaleoTimerId); + kaleoTimerInstanceToken.setKaleoTimerName(kaleoTimerName); + kaleoTimerInstanceToken.setBlocking(kaleoTimer.isBlocking()); + kaleoTimerInstanceToken.setCompleted(false); + kaleoTimerInstanceToken.setWorkflowContext( + WorkflowContextUtil.convert(workflowContext)); + + kaleoTimerInstanceTokenPersistence.update(kaleoTimerInstanceToken); + + scheduleTimer(kaleoTimerInstanceToken, kaleoTimer); + + return kaleoTimerInstanceToken; + } + + + public List addKaleoTimerInstanceTokens( + KaleoInstanceToken kaleoInstanceToken, + KaleoTaskInstanceToken kaleoTaskInstanceToken, + Collection kaleoTimers, + Map workflowContext, + ServiceContext serviceContext) + throws PortalException, SystemException { + + if (kaleoTimers.isEmpty()) { + return Collections.emptyList(); + } + + List kaleoTimerInstanceTokens = + new ArrayList(kaleoTimers.size()); + + long kaleoTaskInstanceTokenId = 0; + + if (kaleoTaskInstanceToken != null) { + kaleoTaskInstanceTokenId = + kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId(); + } + + for (KaleoTimer kaleoTimer : kaleoTimers) { + KaleoTimerInstanceToken kaleoTimerInstanceToken = + addKaleoTimerInstanceToken( + kaleoInstanceToken.getKaleoInstanceTokenId(), + kaleoTaskInstanceTokenId, kaleoTimer.getKaleoTimerId(), + kaleoTimer.getName(), workflowContext, serviceContext); + + kaleoTimerInstanceTokens.add(kaleoTimerInstanceToken); + } + + return kaleoTimerInstanceTokens; + } + + + public KaleoTimerInstanceToken completeKaleoTimerInstanceToken( + long kaleoTimerInstanceTokenId, ServiceContext serviceContext) + throws PortalException, SystemException { + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + kaleoTimerInstanceTokenPersistence.findByPrimaryKey( + kaleoTimerInstanceTokenId); + + kaleoTimerInstanceToken.setCompletionUserId(serviceContext.getUserId()); + kaleoTimerInstanceToken.setCompleted(true); + kaleoTimerInstanceToken.setCompletionDate(new Date()); + + kaleoTimerInstanceTokenPersistence.update(kaleoTimerInstanceToken); + + deleteScheduledTimer(kaleoTimerInstanceToken); + + return kaleoTimerInstanceToken; + } + + + public void completeKaleoTimerInstanceTokens( + List kaleoTimerInstanceTokens, + ServiceContext serviceContext) + throws PortalException, SystemException { + + for (KaleoTimerInstanceToken kaleoTimerInstanceToken : + kaleoTimerInstanceTokens) { + + completeKaleoTimerInstanceToken( + kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId(), + serviceContext); + } + } + + + public void completeKaleoTimerInstanceTokens( + long kaleoInstanceTokenId, ServiceContext serviceContext) + throws PortalException, SystemException { + + List kaleoTimerInstanceTokens = + kaleoTimerInstanceTokenPersistence.findByKITI_C( + kaleoInstanceTokenId, false); + + completeKaleoTimerInstanceTokens( + kaleoTimerInstanceTokens, serviceContext); + } + + + public void deleteKaleoTimerInstanceToken( + long kaleoInstanceTokenId, long kaleoTimerId) + throws PortalException, SystemException { + + KaleoTimerInstanceToken kaleoTimerInstanceToken = + getKaleoTimerInstanceToken(kaleoInstanceTokenId, kaleoTimerId); + + deleteScheduledTimer(kaleoTimerInstanceToken); + + kaleoTimerInstanceTokenPersistence.remove(kaleoTimerInstanceToken); + } + + + public void deleteKaleoTimerInstanceTokens(long kaleoInstanceId) + throws SystemException { + + List kaleoTimerInstanceTokens = + kaleoTimerInstanceTokenPersistence.findByKaleoInstanceId( + kaleoInstanceId); + + for (KaleoTimerInstanceToken kaleoTimerInstanceToken : + kaleoTimerInstanceTokens) { + + if (kaleoTimerInstanceToken.isCompleted()) { + continue; + } + + try { + deleteScheduledTimer(kaleoTimerInstanceToken); + } + catch (PortalException pe) { + if (_log.isWarnEnabled()) { + _log.warn( + "Unable to unschedule " + kaleoTimerInstanceToken, pe); + } + } + + kaleoTimerInstanceTokenPersistence.remove(kaleoTimerInstanceToken); + } + } + + + public KaleoTimerInstanceToken getKaleoTimerInstanceToken( + long kaleoInstanceTokenId, long kaleoTimerId) + throws PortalException, SystemException { + + return kaleoTimerInstanceTokenPersistence.findByKITI_KTI( + kaleoInstanceTokenId, kaleoTimerId); + } + + + public List getKaleoTimerInstanceTokens( + long kaleoInstanceTokenId, boolean completed, boolean blocking, + ServiceContext serviceContext) + throws SystemException { + + return kaleoTimerInstanceTokenPersistence.findByKITI_C_B( + kaleoInstanceTokenId, completed, blocking); + } + + + public int getKaleoTimerInstanceTokensCount( + long kaleoInstanceTokenId, boolean completed, boolean blocking, + ServiceContext serviceContext) + throws SystemException { + + return kaleoTimerInstanceTokenPersistence.countByKITI_C_B( + kaleoInstanceTokenId, completed, blocking); + } + + protected void deleteScheduledTimer( + KaleoTimerInstanceToken kaleoTimerInstanceToken) + throws PortalException { + + String groupName = getSchedulerGroupName(kaleoTimerInstanceToken); + + SchedulerEngineHelperUtil.delete(groupName, StorageType.PERSISTED); + } + + protected String getSchedulerGroupName( + KaleoTimerInstanceToken kaleoTimerInstanceToken) { + + return SchedulerUtil.getGroupName( + kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId()); + } + + protected void scheduleTimer( + KaleoTimerInstanceToken kaleoTimerInstanceToken, + KaleoTimer kaleoTimer) + throws PortalException { + + deleteScheduledTimer(kaleoTimerInstanceToken); + + String groupName = getSchedulerGroupName(kaleoTimerInstanceToken); + + DelayDuration delayDuration = new DelayDuration( + kaleoTimer.getDuration(), + DurationScale.parse(kaleoTimer.getScale())); + + DueDateCalculator dueDateCalculator = new DefaultDueDateCalculator(); + + Date dueDate = dueDateCalculator.getDueDate(new Date(), delayDuration); + + Calendar dueDateCalendar = CalendarFactoryUtil.getCalendar(); + + dueDateCalendar.setTime(dueDate); + + CronText cronText = null; + + if (!kaleoTimer.isRecurring()) { + cronText = new CronText(dueDateCalendar); + } + else { + DelayDuration recurrenceDelayDuration = new DelayDuration( + kaleoTimer.getRecurrenceDuration(), + DurationScale.parse(kaleoTimer.getRecurrenceScale())); + + DurationScale durationScale = + recurrenceDelayDuration.getDurationScale(); + + cronText = new CronText( + dueDateCalendar, durationScale.getIntegerValue(), + (int)recurrenceDelayDuration.getDuration()); + } + + Trigger trigger = new CronTrigger( + groupName, groupName, cronText.toString()); + + Message message = new Message(); + + message.put( + "kaleoTimerInstanceTokenId", + kaleoTimerInstanceToken.getKaleoTimerInstanceTokenId()); + + SchedulerEngineHelperUtil.schedule( + trigger, StorageType.PERSISTED, null, + SchedulerUtil.WORKFLOW_TIMER_DESTINATION_NAME, message, 0); + } + + private static Log _log = LogFactoryUtil.getLog( + KaleoTimerInstanceTokenLocalServiceImpl.class); + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerLocalServiceImpl.java index f078621a..8603feeb 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTimerLocalServiceImpl.java @@ -1,132 +1,132 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Action; -import com.liferay.portal.workflow.kaleo.definition.Assignment; -import com.liferay.portal.workflow.kaleo.definition.DelayDuration; -import com.liferay.portal.workflow.kaleo.definition.Notification; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.model.KaleoTimer; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTimerLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * @author Marcellus Tavares - */ -public class KaleoTimerLocalServiceImpl extends KaleoTimerLocalServiceBaseImpl { - - - public KaleoTimer addKaleoTimer( - String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, - Timer timer, ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo timer - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTimerId = counterLocalService.increment(); - - KaleoTimer kaleoTimer = kaleoTimerPersistence.create(kaleoTimerId); - - kaleoTimer.setCompanyId(user.getCompanyId()); - kaleoTimer.setUserId(user.getUserId()); - kaleoTimer.setUserName(user.getFullName()); - kaleoTimer.setCreateDate(now); - kaleoTimer.setModifiedDate(now); - kaleoTimer.setKaleoClassName(kaleoClassName); - kaleoTimer.setKaleoClassPK(kaleoClassPK); - kaleoTimer.setKaleoDefinitionId(kaleoDefinitionId); - kaleoTimer.setName(timer.getName()); - kaleoTimer.setBlocking(timer.isBlocking()); - - DelayDuration delayDuration = timer.getDelayDuration(); - - kaleoTimer.setDuration(delayDuration.getDuration()); - kaleoTimer.setScale(delayDuration.getDurationScale().getValue()); - - DelayDuration recurrenceDelayDuration = timer.getRecurrence(); - - if (recurrenceDelayDuration != null) { - kaleoTimer.setRecurrenceDuration( - recurrenceDelayDuration.getDuration()); - kaleoTimer.setRecurrenceScale( - recurrenceDelayDuration.getDurationScale().getValue()); - } - - kaleoTimerPersistence.update(kaleoTimer); - - // Kaleo actions - - Set actions = timer.getActions(); - - for (Action action : actions) { - kaleoActionLocalService.addKaleoAction( - KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, - timer.getName(), action, serviceContext); - } - - // Kaleo assignments - - Set reassignments = timer.getReassignments(); - - for (Assignment reassignment : reassignments) { - kaleoTaskAssignmentLocalService.addKaleoTaskAssignment( - KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, - reassignment, serviceContext); - } - - // Kaleo notifications - - Set notifications = timer.getNotifications(); - - for (Notification notification : notifications) { - kaleoNotificationLocalService.addKaleoNotification( - KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, - timer.getName(), notification, serviceContext); - } - - return kaleoTimer; - } - - - public List getKaleoTimers( - String kaleoClassName, long kaleoClassPK) - throws SystemException { - - return kaleoTimerPersistence.findByKCN_KCPK( - kaleoClassName, kaleoClassPK); - } - - - public List getKaleoTimers( - String kaleoClassName, long kaleoClassPK, boolean blocking) - throws SystemException { - - return kaleoTimerPersistence.findByKCN_KCPK_Blocking( - kaleoClassName, kaleoClassPK, blocking); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Action; +import com.liferay.portal.workflow.kaleo.definition.Assignment; +import com.liferay.portal.workflow.kaleo.definition.DelayDuration; +import com.liferay.portal.workflow.kaleo.definition.Notification; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.model.KaleoTimer; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTimerLocalServiceBaseImpl; + +import java.util.Date; +import java.util.List; +import java.util.Set; + +/** + * @author Marcellus Tavares + */ +public class KaleoTimerLocalServiceImpl extends KaleoTimerLocalServiceBaseImpl { + + + public KaleoTimer addKaleoTimer( + String kaleoClassName, long kaleoClassPK, long kaleoDefinitionId, + Timer timer, ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo timer + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTimerId = counterLocalService.increment(); + + KaleoTimer kaleoTimer = kaleoTimerPersistence.create(kaleoTimerId); + + kaleoTimer.setCompanyId(user.getCompanyId()); + kaleoTimer.setUserId(user.getUserId()); + kaleoTimer.setUserName(user.getFullName()); + kaleoTimer.setCreateDate(now); + kaleoTimer.setModifiedDate(now); + kaleoTimer.setKaleoClassName(kaleoClassName); + kaleoTimer.setKaleoClassPK(kaleoClassPK); + kaleoTimer.setKaleoDefinitionId(kaleoDefinitionId); + kaleoTimer.setName(timer.getName()); + kaleoTimer.setBlocking(timer.isBlocking()); + + DelayDuration delayDuration = timer.getDelayDuration(); + + kaleoTimer.setDuration(delayDuration.getDuration()); + kaleoTimer.setScale(delayDuration.getDurationScale().getValue()); + + DelayDuration recurrenceDelayDuration = timer.getRecurrence(); + + if (recurrenceDelayDuration != null) { + kaleoTimer.setRecurrenceDuration( + recurrenceDelayDuration.getDuration()); + kaleoTimer.setRecurrenceScale( + recurrenceDelayDuration.getDurationScale().getValue()); + } + + kaleoTimerPersistence.update(kaleoTimer); + + // Kaleo actions + + Set actions = timer.getActions(); + + for (Action action : actions) { + kaleoActionLocalService.addKaleoAction( + KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, + timer.getName(), action, serviceContext); + } + + // Kaleo assignments + + Set reassignments = timer.getReassignments(); + + for (Assignment reassignment : reassignments) { + kaleoTaskAssignmentLocalService.addKaleoTaskAssignment( + KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, + reassignment, serviceContext); + } + + // Kaleo notifications + + Set notifications = timer.getNotifications(); + + for (Notification notification : notifications) { + kaleoNotificationLocalService.addKaleoNotification( + KaleoTimer.class.getName(), kaleoTimerId, kaleoDefinitionId, + timer.getName(), notification, serviceContext); + } + + return kaleoTimer; + } + + + public List getKaleoTimers( + String kaleoClassName, long kaleoClassPK) + throws SystemException { + + return kaleoTimerPersistence.findByKCN_KCPK( + kaleoClassName, kaleoClassPK); + } + + + public List getKaleoTimers( + String kaleoClassName, long kaleoClassPK, boolean blocking) + throws SystemException { + + return kaleoTimerPersistence.findByKCN_KCPK_Blocking( + kaleoClassName, kaleoClassPK, blocking); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTransitionLocalServiceImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTransitionLocalServiceImpl.java index 2d8c0937..297b40f2 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTransitionLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/impl/KaleoTransitionLocalServiceImpl.java @@ -1,134 +1,134 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.impl; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.workflow.kaleo.definition.Timer; -import com.liferay.portal.workflow.kaleo.definition.Transition; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTransition; -import com.liferay.portal.workflow.kaleo.service.base.KaleoTransitionLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; - -/** - * @author Brian Wing Shun Chan - */ -public class KaleoTransitionLocalServiceImpl - extends KaleoTransitionLocalServiceBaseImpl { - - - public KaleoTransition addKaleoTransition( - long kaleoDefinitionId, long kaleoNodeId, Transition transition, - KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, - ServiceContext serviceContext) - throws PortalException, SystemException { - - // Kaleo transition - - User user = userPersistence.findByPrimaryKey( - serviceContext.getGuestOrUserId()); - Date now = new Date(); - - long kaleoTransitionId = counterLocalService.increment(); - - KaleoTransition kaleoTransition = kaleoTransitionPersistence.create( - kaleoTransitionId); - - kaleoTransition.setCompanyId(user.getCompanyId()); - kaleoTransition.setUserId(user.getUserId()); - kaleoTransition.setUserName(user.getFullName()); - kaleoTransition.setCreateDate(now); - kaleoTransition.setModifiedDate(now); - kaleoTransition.setKaleoDefinitionId(kaleoDefinitionId); - kaleoTransition.setKaleoNodeId(kaleoNodeId); - kaleoTransition.setName(transition.getName()); - kaleoTransition.setSourceKaleoNodeId(sourceKaleoNode.getKaleoNodeId()); - kaleoTransition.setSourceKaleoNodeName(sourceKaleoNode.getName()); - kaleoTransition.setTargetKaleoNodeId(targetKaleoNode.getKaleoNodeId()); - kaleoTransition.setTargetKaleoNodeName(targetKaleoNode.getName()); - kaleoTransition.setDefaultTransition(transition.isDefault()); - - kaleoTransitionPersistence.update(kaleoTransition); - - // Kaleo timer - - Timer timer = transition.getTimer(); - - if (timer != null) { - kaleoTimerLocalService.addKaleoTimer( - KaleoTransition.class.getName(), kaleoTransitionId, - kaleoDefinitionId, timer, serviceContext); - } - - return kaleoTransition; - } - - - public void deleteCompanyKaleoTransitions(long companyId) - throws SystemException { - - kaleoTransitionPersistence.removeByCompanyId(companyId); - } - - - public void deleteKaleoDefinitionKaleoTransitions(long kaleoDefinitionId) - throws SystemException { - - kaleoTransitionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); - } - - - public KaleoTransition getDefaultKaleoTransition(long kaleoNodeId) - throws PortalException, SystemException { - - return kaleoTransitionPersistence.findByKNI_DT(kaleoNodeId, true); - } - - - public List getKaleoDefinitionKaleoTransitions( - long kaleoDefinitionId) - throws SystemException { - - return kaleoTransitionPersistence.findByKaleoDefinitionId( - kaleoDefinitionId); - } - - - public KaleoTransition getKaleoTransition(long kaleoNodeId, String name) - throws PortalException, SystemException { - - return kaleoTransitionPersistence.findByKNI_N(kaleoNodeId, name); - } - - - public List getKaleoTransitions(long kaleoNodeId) - throws SystemException { - - return kaleoTransitionPersistence.findByKaleoNodeId(kaleoNodeId); - } - - - public int getKaleoTransitionsCount(long kaleoNodeId) - throws SystemException { - - return kaleoTransitionPersistence.countByKaleoNodeId(kaleoNodeId); - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.impl; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.workflow.kaleo.definition.Timer; +import com.liferay.portal.workflow.kaleo.definition.Transition; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTransition; +import com.liferay.portal.workflow.kaleo.service.base.KaleoTransitionLocalServiceBaseImpl; + +import java.util.Date; +import java.util.List; + +/** + * @author Brian Wing Shun Chan + */ +public class KaleoTransitionLocalServiceImpl + extends KaleoTransitionLocalServiceBaseImpl { + + + public KaleoTransition addKaleoTransition( + long kaleoDefinitionId, long kaleoNodeId, Transition transition, + KaleoNode sourceKaleoNode, KaleoNode targetKaleoNode, + ServiceContext serviceContext) + throws PortalException, SystemException { + + // Kaleo transition + + User user = userPersistence.findByPrimaryKey( + serviceContext.getGuestOrUserId()); + Date now = new Date(); + + long kaleoTransitionId = counterLocalService.increment(); + + KaleoTransition kaleoTransition = kaleoTransitionPersistence.create( + kaleoTransitionId); + + kaleoTransition.setCompanyId(user.getCompanyId()); + kaleoTransition.setUserId(user.getUserId()); + kaleoTransition.setUserName(user.getFullName()); + kaleoTransition.setCreateDate(now); + kaleoTransition.setModifiedDate(now); + kaleoTransition.setKaleoDefinitionId(kaleoDefinitionId); + kaleoTransition.setKaleoNodeId(kaleoNodeId); + kaleoTransition.setName(transition.getName()); + kaleoTransition.setSourceKaleoNodeId(sourceKaleoNode.getKaleoNodeId()); + kaleoTransition.setSourceKaleoNodeName(sourceKaleoNode.getName()); + kaleoTransition.setTargetKaleoNodeId(targetKaleoNode.getKaleoNodeId()); + kaleoTransition.setTargetKaleoNodeName(targetKaleoNode.getName()); + kaleoTransition.setDefaultTransition(transition.isDefault()); + + kaleoTransitionPersistence.update(kaleoTransition); + + // Kaleo timer + + Timer timer = transition.getTimer(); + + if (timer != null) { + kaleoTimerLocalService.addKaleoTimer( + KaleoTransition.class.getName(), kaleoTransitionId, + kaleoDefinitionId, timer, serviceContext); + } + + return kaleoTransition; + } + + + public void deleteCompanyKaleoTransitions(long companyId) + throws SystemException { + + kaleoTransitionPersistence.removeByCompanyId(companyId); + } + + + public void deleteKaleoDefinitionKaleoTransitions(long kaleoDefinitionId) + throws SystemException { + + kaleoTransitionPersistence.removeByKaleoDefinitionId(kaleoDefinitionId); + } + + + public KaleoTransition getDefaultKaleoTransition(long kaleoNodeId) + throws PortalException, SystemException { + + return kaleoTransitionPersistence.findByKNI_DT(kaleoNodeId, true); + } + + + public List getKaleoDefinitionKaleoTransitions( + long kaleoDefinitionId) + throws SystemException { + + return kaleoTransitionPersistence.findByKaleoDefinitionId( + kaleoDefinitionId); + } + + + public KaleoTransition getKaleoTransition(long kaleoNodeId, String name) + throws PortalException, SystemException { + + return kaleoTransitionPersistence.findByKNI_N(kaleoNodeId, name); + } + + + public List getKaleoTransitions(long kaleoNodeId) + throws SystemException { + + return kaleoTransitionPersistence.findByKaleoNodeId(kaleoNodeId); + } + + + public int getKaleoTransitionsCount(long kaleoNodeId) + throws SystemException { + + return kaleoTransitionPersistence.countByKaleoNodeId(kaleoNodeId); + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenFinderImpl.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenFinderImpl.java index d6a312fd..f0b6d3f1 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenFinderImpl.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/service/persistence/KaleoTaskInstanceTokenFinderImpl.java @@ -1,866 +1,866 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.QueryPos; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.SQLQuery; -import com.liferay.portal.kernel.dao.orm.Session; -import com.liferay.portal.kernel.dao.orm.Type; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.ArrayUtil; -import com.liferay.portal.kernel.util.CalendarUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.Group; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.User; -import com.liferay.portal.model.UserGroup; -import com.liferay.portal.model.UserGroupGroupRole; -import com.liferay.portal.model.UserGroupRole; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserGroupLocalServiceUtil; -import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.util.RoleUtil; -import com.liferay.util.dao.orm.CustomSQLUtil; - -import java.sql.Timestamp; - -import java.util.ArrayList; -import java.util.Date; -import java.util.Iterator; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class KaleoTaskInstanceTokenFinderImpl - extends BasePersistenceImpl - implements KaleoTaskInstanceTokenFinder { - - public static final String COUNT_BY_C_KTAI = - KaleoTaskInstanceTokenFinder.class.getName() + ".countByC_KTAI"; - - public static final String FIND_BY_C_KTAI = - KaleoTaskInstanceTokenFinder.class.getName() + ".findByC_KTAI"; - - - public int countKaleoTaskInstanceTokens( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) - throws SystemException { - - Session session = null; - - try { - session = openSession(); - - SQLQuery q = buildKaleoTaskInstanceTokenQuerySQL( - kaleoTaskInstanceTokenQuery, true, session); - - Iterator itr = q.iterate(); - - if (itr.hasNext()) { - Long count = itr.next(); - - if (count != null) { - return count.intValue(); - } - } - - return 0; - } - catch (Exception e) { - throw new SystemException(e); - } - finally { - closeSession(session); - } - } - - - public List findKaleoTaskInstanceTokens( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) - throws SystemException { - - Session session = null; - - try { - session = openSession(); - - SQLQuery q = buildKaleoTaskInstanceTokenQuerySQL( - kaleoTaskInstanceTokenQuery, false, session); - - List kaleoTaskInstanceTokens = - new ArrayList(); - - Iterator itr = (Iterator)QueryUtil.iterate( - q, getDialect(), kaleoTaskInstanceTokenQuery.getStart(), - kaleoTaskInstanceTokenQuery.getEnd()); - - while (itr.hasNext()) { - long kaleoTaskInstanceTokenId = itr.next(); - - KaleoTaskInstanceToken kaleoTaskInstanceToken = - KaleoTaskInstanceTokenUtil.findByPrimaryKey( - kaleoTaskInstanceTokenId); - - kaleoTaskInstanceTokens.add(kaleoTaskInstanceToken); - } - - return kaleoTaskInstanceTokens; - } - catch (Exception e) { - throw new SystemException(e); - } - finally { - closeSession(session); - } - } - - protected boolean appendSearchCriteria( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - if (Validator.isNotNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys())) { - - return true; - } - - if (Validator.isNotNull(kaleoTaskInstanceTokenQuery.getAssetTypes())) { - return true; - } - - if (kaleoTaskInstanceTokenQuery.getDueDateGT() != null) { - return true; - } - - if (kaleoTaskInstanceTokenQuery.getDueDateLT() != null) { - return true; - } - - if (Validator.isNotNull(kaleoTaskInstanceTokenQuery.getTaskName())) { - return true; - } - - return false; - } - - protected SQLQuery buildKaleoTaskInstanceTokenQuerySQL( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, - boolean count, Session session) - throws Exception { - - String sql = null; - - if (count) { - sql = CustomSQLUtil.get(COUNT_BY_C_KTAI); - } - else { - sql = CustomSQLUtil.get(FIND_BY_C_KTAI); - } - - sql = CustomSQLUtil.appendCriteria( - sql, getAssigneeClassName(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, getAssigneeClassPK(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, getCompleted(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, getKaleoInstanceId(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, getRoleIds(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, getSearchByUserRoles(kaleoTaskInstanceTokenQuery)); - - if (appendSearchCriteria(kaleoTaskInstanceTokenQuery)) { - sql = CustomSQLUtil.appendCriteria(sql, " AND ("); - - if (Validator.isNotNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) || - Validator.isNotNull( - kaleoTaskInstanceTokenQuery.getAssetTypes())) { - - sql = CustomSQLUtil.appendCriteria(sql, " ("); - } - - sql = CustomSQLUtil.appendCriteria( - sql, getAssetPrimaryKey(kaleoTaskInstanceTokenQuery)); - sql = CustomSQLUtil.appendCriteria( - sql, - getAssetTypes( - kaleoTaskInstanceTokenQuery, - Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()))); - - if (Validator.isNotNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) || - Validator.isNotNull( - kaleoTaskInstanceTokenQuery.getAssetTypes())) { - - sql = CustomSQLUtil.appendCriteria(sql, ") "); - } - - sql = CustomSQLUtil.appendCriteria( - sql, - getDueDateGT( - kaleoTaskInstanceTokenQuery, - (Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && - Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetTypes())))); - sql = CustomSQLUtil.appendCriteria( - sql, - getDueDateLT( - kaleoTaskInstanceTokenQuery, - (Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && - Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetTypes()) && - (kaleoTaskInstanceTokenQuery.getDueDateGT() == null)))); - sql = CustomSQLUtil.appendCriteria( - sql, - getTaskName( - kaleoTaskInstanceTokenQuery, - (Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && - Validator.isNull( - kaleoTaskInstanceTokenQuery.getAssetTypes()) && - (kaleoTaskInstanceTokenQuery.getDueDateGT() == null) && - (kaleoTaskInstanceTokenQuery.getDueDateLT() == null)))); - sql = CustomSQLUtil.appendCriteria(sql, ")"); - - sql = CustomSQLUtil.replaceAndOperator( - sql, kaleoTaskInstanceTokenQuery.isAndOperator()); - } - - if (kaleoTaskInstanceTokenQuery.getOrderByComparator() != null) { - StringBundler sb = new StringBundler(sql); - - appendOrderByComparator( - sb, _ORDER_BY_ENTITY_ALIAS, - kaleoTaskInstanceTokenQuery.getOrderByComparator()); - - sql = sb.toString(); - - OrderByComparator obc = - kaleoTaskInstanceTokenQuery.getOrderByComparator(); - - String[] orderByFields = obc.getOrderByFields(); - - sb = new StringBundler(orderByFields.length * 3 + 1); - - sb.append( - "DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId"); - - for (String orderByField : orderByFields) { - sb.append(", "); - sb.append(_ORDER_BY_ENTITY_ALIAS); - sb.append(orderByField); - } - - sql = sql.replace( - "DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId", - sb.toString()); - } - - SQLQuery q = session.createSQLQuery(sql); - - if (count) { - q.addScalar(COUNT_COLUMN_NAME, Type.LONG); - } - else { - q.addScalar("KaleoTaskInstanceTokenId", Type.LONG); - } - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(kaleoTaskInstanceTokenQuery.getCompanyId()); - - setAssigneeClassName(qPos, kaleoTaskInstanceTokenQuery); - setAssigneeClassPK(qPos, kaleoTaskInstanceTokenQuery); - setCompleted(qPos, kaleoTaskInstanceTokenQuery); - setKaleoInstanceId(qPos, kaleoTaskInstanceTokenQuery); - setRoleIds(qPos, kaleoTaskInstanceTokenQuery); - setSearchByUserRoles(qPos, kaleoTaskInstanceTokenQuery); - - setAssetPrimaryKey(qPos, kaleoTaskInstanceTokenQuery); - setAssetType(qPos, kaleoTaskInstanceTokenQuery); - setDueDateGT(qPos, kaleoTaskInstanceTokenQuery); - setDueDateLT(qPos, kaleoTaskInstanceTokenQuery); - setTaskName(qPos, kaleoTaskInstanceTokenQuery); - - return q; - } - - protected String getAssetPrimaryKey( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long[] assetPrimaryKeys = - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys(); - - if (ArrayUtil.isEmpty(assetPrimaryKeys)) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(assetPrimaryKeys.length * 2 + 1); - - sb.append("("); - - for (int i = 0; i < assetPrimaryKeys.length; i++) { - sb.append("(KaleoTaskInstanceToken.classPK = ?)"); - - if ((i + 1) < assetPrimaryKeys.length) { - sb.append(" OR "); - } - else { - sb.append(")"); - } - } - - return sb.toString(); - } - - protected String getAssetTypes( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, - boolean firstCriteria) { - - String[] assetTypes = CustomSQLUtil.keywords( - kaleoTaskInstanceTokenQuery.getAssetTypes()); - - if (ArrayUtil.isEmpty(assetTypes)) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(assetTypes.length * 2 + 1); - - if (!firstCriteria) { - sb.append(" AND ("); - } - else { - sb.append("("); - } - - for (int i = 0; i < assetTypes.length; i++) { - sb.append("(lower(KaleoTaskInstanceToken.className) LIKE ?)"); - - if ((i + 1) < assetTypes.length) { - sb.append(" OR "); - } - else { - sb.append(")"); - } - } - - return sb.toString(); - } - - protected String getAssigneeClassName( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - String assigneeClassName = - kaleoTaskInstanceTokenQuery.getAssigneeClassName(); - - if (Validator.isNull(assigneeClassName)) { - return StringPool.BLANK; - } - - return "AND (KaleoTaskAssignmentInstance.assigneeClassName = ?)"; - } - - protected String getAssigneeClassPK( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long assigneeClassPK = kaleoTaskInstanceTokenQuery.getAssigneeClassPK(); - - if (assigneeClassPK == null) { - return StringPool.BLANK; - } - - return "AND (KaleoTaskAssignmentInstance.assigneeClassPK = ?)"; - } - - protected String getCompleted( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Boolean completed = kaleoTaskInstanceTokenQuery.isCompleted(); - - if (completed == null) { - return StringPool.BLANK; - } - - return "AND (KaleoTaskInstanceToken.completed = ?)"; - } - - protected String getDueDateGT( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, - boolean firstCriteria) { - - Date dueDateGT = kaleoTaskInstanceTokenQuery.getDueDateGT(); - - if (dueDateGT == null) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(3); - - if (!firstCriteria) { - sb.append("[$AND_OR_CONNECTOR$] ("); - } - else { - sb.append("("); - } - - sb.append("KaleoTaskInstanceToken.dueDate >= ? [$AND_OR_NULL_CHECK$])"); - - return sb.toString(); - } - - protected String getDueDateLT( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, - boolean firstCriteria) { - - Date dueDateLT = kaleoTaskInstanceTokenQuery.getDueDateLT(); - - if (dueDateLT == null) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(3); - - if (!firstCriteria) { - sb.append("[$AND_OR_CONNECTOR$] ("); - } - else { - sb.append("("); - } - - sb.append("KaleoTaskInstanceToken.dueDate <= ? [$AND_OR_NULL_CHECK$])"); - - return sb.toString(); - } - - protected String getKaleoInstanceId( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long kaleoInstanceId = kaleoTaskInstanceTokenQuery.getKaleoInstanceId(); - - if (kaleoInstanceId == null) { - return StringPool.BLANK; - } - - return "AND (KaleoTaskInstanceToken.kaleoInstanceId = ?)"; - } - - protected String getRoleIds( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Boolean searchByUserRoles = - kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); - - if (searchByUserRoles != null) { - return StringPool.BLANK; - } - - List roleIds = kaleoTaskInstanceTokenQuery.getRoleIds(); - - if ((roleIds == null) || roleIds.isEmpty()) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(roleIds.size() * 2 + 1); - - sb.append("AND ("); - - for (int i = 0; i < roleIds.size(); i++) { - sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?)"); - - if ((i + 1) < roleIds.size()) { - sb.append(" OR "); - } - else { - sb.append(")"); - } - } - - return sb.toString(); - } - - protected List getSearchByUserRoleIds( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) - throws Exception { - - List roleIds = RoleUtil.getRoleIds( - kaleoTaskInstanceTokenQuery.getServiceContext()); - - User user = UserLocalServiceUtil.getUserById( - kaleoTaskInstanceTokenQuery.getUserId()); - - List groups = new ArrayList(); - - groups.addAll(user.getGroups()); - groups.addAll( - GroupLocalServiceUtil.getOrganizationsGroups( - user.getOrganizations())); - groups.addAll( - GroupLocalServiceUtil.getOrganizationsRelatedGroups( - user.getOrganizations())); - groups.addAll( - GroupLocalServiceUtil.getUserGroupsGroups(user.getUserGroups())); - groups.addAll( - GroupLocalServiceUtil.getUserGroupsRelatedGroups( - user.getUserGroups())); - - for (Group group : groups) { - List roles = RoleLocalServiceUtil.getGroupRoles( - group.getGroupId()); - - for (Role role : roles) { - roleIds.add(role.getRoleId()); - } - } - - return roleIds; - } - - protected String getSearchByUserRoles( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) - throws Exception { - - Boolean searchByUserRoles = - kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); - - if (searchByUserRoles == null) { - return StringPool.BLANK; - } - - if (searchByUserRoles) { - List roleIds = getSearchByUserRoleIds( - kaleoTaskInstanceTokenQuery); - - List userGroupRoles = - UserGroupRoleLocalServiceUtil.getUserGroupRoles( - kaleoTaskInstanceTokenQuery.getUserId()); - - List userGroupGroupRoles = - getUserGroupGroupRoles(kaleoTaskInstanceTokenQuery.getUserId()); - - if (roleIds.isEmpty() && userGroupRoles.isEmpty() && - userGroupGroupRoles.isEmpty()) { - - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(); - - sb.append("AND (("); - sb.append("KaleoTaskAssignmentInstance.assigneeClassName = ?) "); - sb.append("AND ("); - - for (int i = 0; i < roleIds.size(); i++) { - sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?)"); - sb.append(" OR "); - } - - for (int i = 0; i < userGroupRoles.size(); i++) { - sb.append("((KaleoTaskAssignmentInstance.groupId = ?) AND "); - sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); - sb.append(" OR "); - } - - for (int i = 0; i < userGroupGroupRoles.size(); i++) { - sb.append("((KaleoTaskAssignmentInstance.groupId = ?) AND "); - sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); - sb.append(" OR "); - } - - sb.setIndex(sb.index() - 1); - - sb.append("))"); - - return sb.toString(); - } - - StringBundler sb = new StringBundler(3); - - sb.append("AND (("); - sb.append("KaleoTaskAssignmentInstance.assigneeClassName = ?) "); - sb.append("AND (KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); - - return sb.toString(); - } - - protected String getTaskName( - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, - boolean firstCriteria) { - - String taskName = kaleoTaskInstanceTokenQuery.getTaskName(); - - if (Validator.isNull(taskName)) { - return StringPool.BLANK; - } - - String[] taskNames = CustomSQLUtil.keywords(taskName, false); - - if (ArrayUtil.isEmpty(taskNames)) { - return StringPool.BLANK; - } - - StringBundler sb = new StringBundler(taskNames.length * 2 + 1); - - if (!firstCriteria) { - sb.append("[$AND_OR_CONNECTOR$] ("); - } - else { - sb.append("("); - } - - for (int i = 0; i < taskNames.length; i++) { - sb.append( - "(lower(KaleoTaskInstanceToken.kaleoTaskName) LIKE lower(?))"); - - if ((i + 1) < taskNames.length) { - sb.append(" OR "); - } - else { - sb.append(")"); - } - } - - return sb.toString(); - } - - protected List getUserGroupGroupRoles(long userId) - throws Exception { - - List userGroupGroupRoles = - new ArrayList(); - - List userGroups = - UserGroupLocalServiceUtil.getUserUserGroups(userId); - - for (UserGroup userGroup : userGroups) { - userGroupGroupRoles.addAll( - UserGroupGroupRoleLocalServiceUtil.getUserGroupGroupRoles( - userGroup.getUserGroupId())); - } - - return userGroupGroupRoles; - } - - protected void setAssetPrimaryKey( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long[] assetPrimaryKeys = - kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys(); - - if (ArrayUtil.isEmpty(assetPrimaryKeys)) { - return; - } - - qPos.add(assetPrimaryKeys); - } - - protected void setAssetType( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - String[] assetTypes = kaleoTaskInstanceTokenQuery.getAssetTypes(); - - if (ArrayUtil.isEmpty(assetTypes)) { - return; - } - - assetTypes = CustomSQLUtil.keywords(assetTypes, false); - - qPos.add(assetTypes); - } - - protected void setAssigneeClassName( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - String assigneeClassName = - kaleoTaskInstanceTokenQuery.getAssigneeClassName(); - - if (Validator.isNull(assigneeClassName)) { - return; - } - - qPos.add(assigneeClassName); - } - - protected void setAssigneeClassPK( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long assigneeClassPK = kaleoTaskInstanceTokenQuery.getAssigneeClassPK(); - - if (assigneeClassPK == null) { - return; - } - - qPos.add(assigneeClassPK); - } - - protected void setCompleted( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Boolean completed = kaleoTaskInstanceTokenQuery.isCompleted(); - - if (completed == null) { - return; - } - - qPos.add(completed); - } - - protected void setDueDateGT( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Date dueDateGT = kaleoTaskInstanceTokenQuery.getDueDateGT(); - - if (dueDateGT == null) { - return; - } - - Timestamp dueDateGT_TS = CalendarUtil.getTimestamp(dueDateGT); - - qPos.add(dueDateGT_TS); - } - - protected void setDueDateLT( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Date dueDateLT = kaleoTaskInstanceTokenQuery.getDueDateLT(); - - if (dueDateLT == null) { - return; - } - - Timestamp dueDateLT_TS = CalendarUtil.getTimestamp(dueDateLT); - - qPos.add(dueDateLT_TS); - } - - protected void setKaleoInstanceId( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Long kaleoInstanceId = kaleoTaskInstanceTokenQuery.getKaleoInstanceId(); - - if (kaleoInstanceId == null) { - return; - } - - qPos.add(kaleoInstanceId); - } - - protected void setRoleIds( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - Boolean searchByUserRoles = - kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); - - if (searchByUserRoles != null) { - return; - } - - List roleIds = kaleoTaskInstanceTokenQuery.getRoleIds(); - - if ((roleIds == null) || roleIds.isEmpty()) { - return; - } - - for (Long roleId : roleIds) { - qPos.add(roleId); - } - } - - protected void setSearchByUserRoles( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) - throws Exception { - - Boolean searchByUserRoles = - kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); - - if (searchByUserRoles == null) { - return; - } - - if (searchByUserRoles) { - qPos.add(Role.class.getName()); - - List roleIds = getSearchByUserRoleIds( - kaleoTaskInstanceTokenQuery); - - for (Long roleId : roleIds) { - qPos.add(roleId); - } - - List userGroupRoles = - UserGroupRoleLocalServiceUtil.getUserGroupRoles( - kaleoTaskInstanceTokenQuery.getUserId()); - - for (UserGroupRole userGroupRole : userGroupRoles) { - qPos.add(userGroupRole.getGroupId()); - qPos.add(userGroupRole.getRoleId()); - } - - List userGroupGroupRoles = - getUserGroupGroupRoles(kaleoTaskInstanceTokenQuery.getUserId()); - - for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { - qPos.add(userGroupGroupRole.getGroupId()); - qPos.add(userGroupGroupRole.getRoleId()); - } - } - else { - qPos.add(User.class.getName()); - qPos.add(kaleoTaskInstanceTokenQuery.getUserId()); - } - } - - protected void setTaskName( - QueryPos qPos, - KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { - - String taskName = kaleoTaskInstanceTokenQuery.getTaskName(); - - if (Validator.isNull(taskName)) { - return; - } - - String[] taskNames = CustomSQLUtil.keywords(taskName, false); - - qPos.add(taskNames); - } - - private static final String _ORDER_BY_ENTITY_ALIAS = - "KaleoTaskInstanceToken."; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.service.persistence; + +import com.liferay.portal.kernel.dao.orm.QueryPos; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.SQLQuery; +import com.liferay.portal.kernel.dao.orm.Session; +import com.liferay.portal.kernel.dao.orm.Type; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.ArrayUtil; +import com.liferay.portal.kernel.util.CalendarUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.User; +import com.liferay.portal.model.UserGroup; +import com.liferay.portal.model.UserGroupGroupRole; +import com.liferay.portal.model.UserGroupRole; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserGroupLocalServiceUtil; +import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.util.RoleUtil; +import com.liferay.util.dao.orm.CustomSQLUtil; + +import java.sql.Timestamp; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class KaleoTaskInstanceTokenFinderImpl + extends BasePersistenceImpl + implements KaleoTaskInstanceTokenFinder { + + public static final String COUNT_BY_C_KTAI = + KaleoTaskInstanceTokenFinder.class.getName() + ".countByC_KTAI"; + + public static final String FIND_BY_C_KTAI = + KaleoTaskInstanceTokenFinder.class.getName() + ".findByC_KTAI"; + + + public int countKaleoTaskInstanceTokens( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) + throws SystemException { + + Session session = null; + + try { + session = openSession(); + + SQLQuery q = buildKaleoTaskInstanceTokenQuerySQL( + kaleoTaskInstanceTokenQuery, true, session); + + Iterator itr = q.iterate(); + + if (itr.hasNext()) { + Long count = itr.next(); + + if (count != null) { + return count.intValue(); + } + } + + return 0; + } + catch (Exception e) { + throw new SystemException(e); + } + finally { + closeSession(session); + } + } + + + public List findKaleoTaskInstanceTokens( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) + throws SystemException { + + Session session = null; + + try { + session = openSession(); + + SQLQuery q = buildKaleoTaskInstanceTokenQuerySQL( + kaleoTaskInstanceTokenQuery, false, session); + + List kaleoTaskInstanceTokens = + new ArrayList(); + + Iterator itr = (Iterator)QueryUtil.iterate( + q, getDialect(), kaleoTaskInstanceTokenQuery.getStart(), + kaleoTaskInstanceTokenQuery.getEnd()); + + while (itr.hasNext()) { + long kaleoTaskInstanceTokenId = itr.next(); + + KaleoTaskInstanceToken kaleoTaskInstanceToken = + KaleoTaskInstanceTokenUtil.findByPrimaryKey( + kaleoTaskInstanceTokenId); + + kaleoTaskInstanceTokens.add(kaleoTaskInstanceToken); + } + + return kaleoTaskInstanceTokens; + } + catch (Exception e) { + throw new SystemException(e); + } + finally { + closeSession(session); + } + } + + protected boolean appendSearchCriteria( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + if (Validator.isNotNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys())) { + + return true; + } + + if (Validator.isNotNull(kaleoTaskInstanceTokenQuery.getAssetTypes())) { + return true; + } + + if (kaleoTaskInstanceTokenQuery.getDueDateGT() != null) { + return true; + } + + if (kaleoTaskInstanceTokenQuery.getDueDateLT() != null) { + return true; + } + + if (Validator.isNotNull(kaleoTaskInstanceTokenQuery.getTaskName())) { + return true; + } + + return false; + } + + protected SQLQuery buildKaleoTaskInstanceTokenQuerySQL( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, + boolean count, Session session) + throws Exception { + + String sql = null; + + if (count) { + sql = CustomSQLUtil.get(COUNT_BY_C_KTAI); + } + else { + sql = CustomSQLUtil.get(FIND_BY_C_KTAI); + } + + sql = CustomSQLUtil.appendCriteria( + sql, getAssigneeClassName(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, getAssigneeClassPK(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, getCompleted(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, getKaleoInstanceId(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, getRoleIds(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, getSearchByUserRoles(kaleoTaskInstanceTokenQuery)); + + if (appendSearchCriteria(kaleoTaskInstanceTokenQuery)) { + sql = CustomSQLUtil.appendCriteria(sql, " AND ("); + + if (Validator.isNotNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) || + Validator.isNotNull( + kaleoTaskInstanceTokenQuery.getAssetTypes())) { + + sql = CustomSQLUtil.appendCriteria(sql, " ("); + } + + sql = CustomSQLUtil.appendCriteria( + sql, getAssetPrimaryKey(kaleoTaskInstanceTokenQuery)); + sql = CustomSQLUtil.appendCriteria( + sql, + getAssetTypes( + kaleoTaskInstanceTokenQuery, + Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()))); + + if (Validator.isNotNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) || + Validator.isNotNull( + kaleoTaskInstanceTokenQuery.getAssetTypes())) { + + sql = CustomSQLUtil.appendCriteria(sql, ") "); + } + + sql = CustomSQLUtil.appendCriteria( + sql, + getDueDateGT( + kaleoTaskInstanceTokenQuery, + (Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && + Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetTypes())))); + sql = CustomSQLUtil.appendCriteria( + sql, + getDueDateLT( + kaleoTaskInstanceTokenQuery, + (Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && + Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetTypes()) && + (kaleoTaskInstanceTokenQuery.getDueDateGT() == null)))); + sql = CustomSQLUtil.appendCriteria( + sql, + getTaskName( + kaleoTaskInstanceTokenQuery, + (Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys()) && + Validator.isNull( + kaleoTaskInstanceTokenQuery.getAssetTypes()) && + (kaleoTaskInstanceTokenQuery.getDueDateGT() == null) && + (kaleoTaskInstanceTokenQuery.getDueDateLT() == null)))); + sql = CustomSQLUtil.appendCriteria(sql, ")"); + + sql = CustomSQLUtil.replaceAndOperator( + sql, kaleoTaskInstanceTokenQuery.isAndOperator()); + } + + if (kaleoTaskInstanceTokenQuery.getOrderByComparator() != null) { + StringBundler sb = new StringBundler(sql); + + appendOrderByComparator( + sb, _ORDER_BY_ENTITY_ALIAS, + kaleoTaskInstanceTokenQuery.getOrderByComparator()); + + sql = sb.toString(); + + OrderByComparator obc = + kaleoTaskInstanceTokenQuery.getOrderByComparator(); + + String[] orderByFields = obc.getOrderByFields(); + + sb = new StringBundler(orderByFields.length * 3 + 1); + + sb.append( + "DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId"); + + for (String orderByField : orderByFields) { + sb.append(", "); + sb.append(_ORDER_BY_ENTITY_ALIAS); + sb.append(orderByField); + } + + sql = sql.replace( + "DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId", + sb.toString()); + } + + SQLQuery q = session.createSQLQuery(sql); + + if (count) { + q.addScalar(COUNT_COLUMN_NAME, Type.LONG); + } + else { + q.addScalar("KaleoTaskInstanceTokenId", Type.LONG); + } + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(kaleoTaskInstanceTokenQuery.getCompanyId()); + + setAssigneeClassName(qPos, kaleoTaskInstanceTokenQuery); + setAssigneeClassPK(qPos, kaleoTaskInstanceTokenQuery); + setCompleted(qPos, kaleoTaskInstanceTokenQuery); + setKaleoInstanceId(qPos, kaleoTaskInstanceTokenQuery); + setRoleIds(qPos, kaleoTaskInstanceTokenQuery); + setSearchByUserRoles(qPos, kaleoTaskInstanceTokenQuery); + + setAssetPrimaryKey(qPos, kaleoTaskInstanceTokenQuery); + setAssetType(qPos, kaleoTaskInstanceTokenQuery); + setDueDateGT(qPos, kaleoTaskInstanceTokenQuery); + setDueDateLT(qPos, kaleoTaskInstanceTokenQuery); + setTaskName(qPos, kaleoTaskInstanceTokenQuery); + + return q; + } + + protected String getAssetPrimaryKey( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long[] assetPrimaryKeys = + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys(); + + if (ArrayUtil.isEmpty(assetPrimaryKeys)) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(assetPrimaryKeys.length * 2 + 1); + + sb.append("("); + + for (int i = 0; i < assetPrimaryKeys.length; i++) { + sb.append("(KaleoTaskInstanceToken.classPK = ?)"); + + if ((i + 1) < assetPrimaryKeys.length) { + sb.append(" OR "); + } + else { + sb.append(")"); + } + } + + return sb.toString(); + } + + protected String getAssetTypes( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, + boolean firstCriteria) { + + String[] assetTypes = CustomSQLUtil.keywords( + kaleoTaskInstanceTokenQuery.getAssetTypes()); + + if (ArrayUtil.isEmpty(assetTypes)) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(assetTypes.length * 2 + 1); + + if (!firstCriteria) { + sb.append(" AND ("); + } + else { + sb.append("("); + } + + for (int i = 0; i < assetTypes.length; i++) { + sb.append("(lower(KaleoTaskInstanceToken.className) LIKE ?)"); + + if ((i + 1) < assetTypes.length) { + sb.append(" OR "); + } + else { + sb.append(")"); + } + } + + return sb.toString(); + } + + protected String getAssigneeClassName( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + String assigneeClassName = + kaleoTaskInstanceTokenQuery.getAssigneeClassName(); + + if (Validator.isNull(assigneeClassName)) { + return StringPool.BLANK; + } + + return "AND (KaleoTaskAssignmentInstance.assigneeClassName = ?)"; + } + + protected String getAssigneeClassPK( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long assigneeClassPK = kaleoTaskInstanceTokenQuery.getAssigneeClassPK(); + + if (assigneeClassPK == null) { + return StringPool.BLANK; + } + + return "AND (KaleoTaskAssignmentInstance.assigneeClassPK = ?)"; + } + + protected String getCompleted( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Boolean completed = kaleoTaskInstanceTokenQuery.isCompleted(); + + if (completed == null) { + return StringPool.BLANK; + } + + return "AND (KaleoTaskInstanceToken.completed = ?)"; + } + + protected String getDueDateGT( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, + boolean firstCriteria) { + + Date dueDateGT = kaleoTaskInstanceTokenQuery.getDueDateGT(); + + if (dueDateGT == null) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(3); + + if (!firstCriteria) { + sb.append("[$AND_OR_CONNECTOR$] ("); + } + else { + sb.append("("); + } + + sb.append("KaleoTaskInstanceToken.dueDate >= ? [$AND_OR_NULL_CHECK$])"); + + return sb.toString(); + } + + protected String getDueDateLT( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, + boolean firstCriteria) { + + Date dueDateLT = kaleoTaskInstanceTokenQuery.getDueDateLT(); + + if (dueDateLT == null) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(3); + + if (!firstCriteria) { + sb.append("[$AND_OR_CONNECTOR$] ("); + } + else { + sb.append("("); + } + + sb.append("KaleoTaskInstanceToken.dueDate <= ? [$AND_OR_NULL_CHECK$])"); + + return sb.toString(); + } + + protected String getKaleoInstanceId( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long kaleoInstanceId = kaleoTaskInstanceTokenQuery.getKaleoInstanceId(); + + if (kaleoInstanceId == null) { + return StringPool.BLANK; + } + + return "AND (KaleoTaskInstanceToken.kaleoInstanceId = ?)"; + } + + protected String getRoleIds( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Boolean searchByUserRoles = + kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); + + if (searchByUserRoles != null) { + return StringPool.BLANK; + } + + List roleIds = kaleoTaskInstanceTokenQuery.getRoleIds(); + + if ((roleIds == null) || roleIds.isEmpty()) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(roleIds.size() * 2 + 1); + + sb.append("AND ("); + + for (int i = 0; i < roleIds.size(); i++) { + sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?)"); + + if ((i + 1) < roleIds.size()) { + sb.append(" OR "); + } + else { + sb.append(")"); + } + } + + return sb.toString(); + } + + protected List getSearchByUserRoleIds( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) + throws Exception { + + List roleIds = RoleUtil.getRoleIds( + kaleoTaskInstanceTokenQuery.getServiceContext()); + + User user = UserLocalServiceUtil.getUserById( + kaleoTaskInstanceTokenQuery.getUserId()); + + List groups = new ArrayList(); + + groups.addAll(user.getGroups()); + groups.addAll( + GroupLocalServiceUtil.getOrganizationsGroups( + user.getOrganizations())); + groups.addAll( + GroupLocalServiceUtil.getOrganizationsRelatedGroups( + user.getOrganizations())); + groups.addAll( + GroupLocalServiceUtil.getUserGroupsGroups(user.getUserGroups())); + groups.addAll( + GroupLocalServiceUtil.getUserGroupsRelatedGroups( + user.getUserGroups())); + + for (Group group : groups) { + List roles = RoleLocalServiceUtil.getGroupRoles( + group.getGroupId()); + + for (Role role : roles) { + roleIds.add(role.getRoleId()); + } + } + + return roleIds; + } + + protected String getSearchByUserRoles( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) + throws Exception { + + Boolean searchByUserRoles = + kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); + + if (searchByUserRoles == null) { + return StringPool.BLANK; + } + + if (searchByUserRoles) { + List roleIds = getSearchByUserRoleIds( + kaleoTaskInstanceTokenQuery); + + List userGroupRoles = + UserGroupRoleLocalServiceUtil.getUserGroupRoles( + kaleoTaskInstanceTokenQuery.getUserId()); + + List userGroupGroupRoles = + getUserGroupGroupRoles(kaleoTaskInstanceTokenQuery.getUserId()); + + if (roleIds.isEmpty() && userGroupRoles.isEmpty() && + userGroupGroupRoles.isEmpty()) { + + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(); + + sb.append("AND (("); + sb.append("KaleoTaskAssignmentInstance.assigneeClassName = ?) "); + sb.append("AND ("); + + for (int i = 0; i < roleIds.size(); i++) { + sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?)"); + sb.append(" OR "); + } + + for (int i = 0; i < userGroupRoles.size(); i++) { + sb.append("((KaleoTaskAssignmentInstance.groupId = ?) AND "); + sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); + sb.append(" OR "); + } + + for (int i = 0; i < userGroupGroupRoles.size(); i++) { + sb.append("((KaleoTaskAssignmentInstance.groupId = ?) AND "); + sb.append("(KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); + sb.append(" OR "); + } + + sb.setIndex(sb.index() - 1); + + sb.append("))"); + + return sb.toString(); + } + + StringBundler sb = new StringBundler(3); + + sb.append("AND (("); + sb.append("KaleoTaskAssignmentInstance.assigneeClassName = ?) "); + sb.append("AND (KaleoTaskAssignmentInstance.assigneeClassPK = ?))"); + + return sb.toString(); + } + + protected String getTaskName( + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery, + boolean firstCriteria) { + + String taskName = kaleoTaskInstanceTokenQuery.getTaskName(); + + if (Validator.isNull(taskName)) { + return StringPool.BLANK; + } + + String[] taskNames = CustomSQLUtil.keywords(taskName, false); + + if (ArrayUtil.isEmpty(taskNames)) { + return StringPool.BLANK; + } + + StringBundler sb = new StringBundler(taskNames.length * 2 + 1); + + if (!firstCriteria) { + sb.append("[$AND_OR_CONNECTOR$] ("); + } + else { + sb.append("("); + } + + for (int i = 0; i < taskNames.length; i++) { + sb.append( + "(lower(KaleoTaskInstanceToken.kaleoTaskName) LIKE lower(?))"); + + if ((i + 1) < taskNames.length) { + sb.append(" OR "); + } + else { + sb.append(")"); + } + } + + return sb.toString(); + } + + protected List getUserGroupGroupRoles(long userId) + throws Exception { + + List userGroupGroupRoles = + new ArrayList(); + + List userGroups = + UserGroupLocalServiceUtil.getUserUserGroups(userId); + + for (UserGroup userGroup : userGroups) { + userGroupGroupRoles.addAll( + UserGroupGroupRoleLocalServiceUtil.getUserGroupGroupRoles( + userGroup.getUserGroupId())); + } + + return userGroupGroupRoles; + } + + protected void setAssetPrimaryKey( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long[] assetPrimaryKeys = + kaleoTaskInstanceTokenQuery.getAssetPrimaryKeys(); + + if (ArrayUtil.isEmpty(assetPrimaryKeys)) { + return; + } + + qPos.add(assetPrimaryKeys); + } + + protected void setAssetType( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + String[] assetTypes = kaleoTaskInstanceTokenQuery.getAssetTypes(); + + if (ArrayUtil.isEmpty(assetTypes)) { + return; + } + + assetTypes = CustomSQLUtil.keywords(assetTypes, false); + + qPos.add(assetTypes); + } + + protected void setAssigneeClassName( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + String assigneeClassName = + kaleoTaskInstanceTokenQuery.getAssigneeClassName(); + + if (Validator.isNull(assigneeClassName)) { + return; + } + + qPos.add(assigneeClassName); + } + + protected void setAssigneeClassPK( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long assigneeClassPK = kaleoTaskInstanceTokenQuery.getAssigneeClassPK(); + + if (assigneeClassPK == null) { + return; + } + + qPos.add(assigneeClassPK); + } + + protected void setCompleted( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Boolean completed = kaleoTaskInstanceTokenQuery.isCompleted(); + + if (completed == null) { + return; + } + + qPos.add(completed); + } + + protected void setDueDateGT( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Date dueDateGT = kaleoTaskInstanceTokenQuery.getDueDateGT(); + + if (dueDateGT == null) { + return; + } + + Timestamp dueDateGT_TS = CalendarUtil.getTimestamp(dueDateGT); + + qPos.add(dueDateGT_TS); + } + + protected void setDueDateLT( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Date dueDateLT = kaleoTaskInstanceTokenQuery.getDueDateLT(); + + if (dueDateLT == null) { + return; + } + + Timestamp dueDateLT_TS = CalendarUtil.getTimestamp(dueDateLT); + + qPos.add(dueDateLT_TS); + } + + protected void setKaleoInstanceId( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Long kaleoInstanceId = kaleoTaskInstanceTokenQuery.getKaleoInstanceId(); + + if (kaleoInstanceId == null) { + return; + } + + qPos.add(kaleoInstanceId); + } + + protected void setRoleIds( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + Boolean searchByUserRoles = + kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); + + if (searchByUserRoles != null) { + return; + } + + List roleIds = kaleoTaskInstanceTokenQuery.getRoleIds(); + + if ((roleIds == null) || roleIds.isEmpty()) { + return; + } + + for (Long roleId : roleIds) { + qPos.add(roleId); + } + } + + protected void setSearchByUserRoles( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) + throws Exception { + + Boolean searchByUserRoles = + kaleoTaskInstanceTokenQuery.isSearchByUserRoles(); + + if (searchByUserRoles == null) { + return; + } + + if (searchByUserRoles) { + qPos.add(Role.class.getName()); + + List roleIds = getSearchByUserRoleIds( + kaleoTaskInstanceTokenQuery); + + for (Long roleId : roleIds) { + qPos.add(roleId); + } + + List userGroupRoles = + UserGroupRoleLocalServiceUtil.getUserGroupRoles( + kaleoTaskInstanceTokenQuery.getUserId()); + + for (UserGroupRole userGroupRole : userGroupRoles) { + qPos.add(userGroupRole.getGroupId()); + qPos.add(userGroupRole.getRoleId()); + } + + List userGroupGroupRoles = + getUserGroupGroupRoles(kaleoTaskInstanceTokenQuery.getUserId()); + + for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) { + qPos.add(userGroupGroupRole.getGroupId()); + qPos.add(userGroupGroupRole.getRoleId()); + } + } + else { + qPos.add(User.class.getName()); + qPos.add(kaleoTaskInstanceTokenQuery.getUserId()); + } + } + + protected void setTaskName( + QueryPos qPos, + KaleoTaskInstanceTokenQuery kaleoTaskInstanceTokenQuery) { + + String taskName = kaleoTaskInstanceTokenQuery.getTaskName(); + + if (Validator.isNull(taskName)) { + return; + } + + String[] taskNames = CustomSQLUtil.keywords(taskName, false); + + qPos.add(taskNames); + } + + private static final String _ORDER_BY_ENTITY_ALIAS = + "KaleoTaskInstanceToken."; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoLogUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoLogUtil.java index b8b85019..3bc8de4e 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoLogUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoLogUtil.java @@ -1,61 +1,61 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.kernel.workflow.WorkflowLog; -import com.liferay.portal.workflow.kaleo.definition.LogType; - -/** - * @author Michael C. Han - */ -public class KaleoLogUtil { - - public static String convert(int type) { - if (type == WorkflowLog.TASK_ASSIGN) { - return LogType.TASK_ASSIGNMENT.name(); - } - else if (type == WorkflowLog.TASK_COMPLETION) { - return LogType.TASK_COMPLETION.name(); - } - else if (type == WorkflowLog.TASK_UPDATE) { - return LogType.TASK_UPDATE.name(); - } - else if (type == WorkflowLog.TRANSITION) { - return LogType.NODE_EXIT.name(); - } - - return null; - } - - public static int convert(String type) { - LogType logType = LogType.valueOf(type); - - if (logType.equals(LogType.NODE_EXIT)) { - return WorkflowLog.TRANSITION; - } - else if (logType.equals(LogType.TASK_ASSIGNMENT)) { - return WorkflowLog.TASK_ASSIGN; - } - else if (logType.equals(LogType.TASK_COMPLETION)) { - return WorkflowLog.TASK_COMPLETION; - } - else if (logType.equals(LogType.TASK_UPDATE)) { - return WorkflowLog.TASK_UPDATE; - } - - return -1; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.kernel.workflow.WorkflowLog; +import com.liferay.portal.workflow.kaleo.definition.LogType; + +/** + * @author Michael C. Han + */ +public class KaleoLogUtil { + + public static String convert(int type) { + if (type == WorkflowLog.TASK_ASSIGN) { + return LogType.TASK_ASSIGNMENT.name(); + } + else if (type == WorkflowLog.TASK_COMPLETION) { + return LogType.TASK_COMPLETION.name(); + } + else if (type == WorkflowLog.TASK_UPDATE) { + return LogType.TASK_UPDATE.name(); + } + else if (type == WorkflowLog.TRANSITION) { + return LogType.NODE_EXIT.name(); + } + + return null; + } + + public static int convert(String type) { + LogType logType = LogType.valueOf(type); + + if (logType.equals(LogType.NODE_EXIT)) { + return WorkflowLog.TRANSITION; + } + else if (logType.equals(LogType.TASK_ASSIGNMENT)) { + return WorkflowLog.TASK_ASSIGN; + } + else if (logType.equals(LogType.TASK_COMPLETION)) { + return WorkflowLog.TASK_COMPLETION; + } + else if (logType.equals(LogType.TASK_UPDATE)) { + return WorkflowLog.TASK_UPDATE; + } + + return -1; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoTaskAssignmentInstanceUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoTaskAssignmentInstanceUtil.java index a331a11c..17e889ed 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoTaskAssignmentInstanceUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/KaleoTaskAssignmentInstanceUtil.java @@ -1,55 +1,55 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Michael C. Han - */ -public class KaleoTaskAssignmentInstanceUtil { - - public static List getWorkflowTaskAssignees( - KaleoTaskInstanceToken kaleoTaskInstanceToken) - throws SystemException { - - List kaleoTaskAssignmentInstances = - kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); - - List workflowTaskAssignees = - new ArrayList( - kaleoTaskAssignmentInstances.size()); - - for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : - kaleoTaskAssignmentInstances) { - - WorkflowTaskAssignee workflowTaskAssignee = - new WorkflowTaskAssignee( - kaleoTaskAssignmentInstance.getAssigneeClassName(), - kaleoTaskAssignmentInstance.getAssigneeClassPK()); - - workflowTaskAssignees.add(workflowTaskAssignee); - } - - return workflowTaskAssignees; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Michael C. Han + */ +public class KaleoTaskAssignmentInstanceUtil { + + public static List getWorkflowTaskAssignees( + KaleoTaskInstanceToken kaleoTaskInstanceToken) + throws SystemException { + + List kaleoTaskAssignmentInstances = + kaleoTaskInstanceToken.getKaleoTaskAssignmentInstances(); + + List workflowTaskAssignees = + new ArrayList( + kaleoTaskAssignmentInstances.size()); + + for (KaleoTaskAssignmentInstance kaleoTaskAssignmentInstance : + kaleoTaskAssignmentInstances) { + + WorkflowTaskAssignee workflowTaskAssignee = + new WorkflowTaskAssignee( + kaleoTaskAssignmentInstance.getAssigneeClassName(), + kaleoTaskAssignmentInstance.getAssigneeClassPK()); + + workflowTaskAssignees.add(workflowTaskAssignee); + } + + return workflowTaskAssignees; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/NodeTypeDependentObjectRegistry.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/NodeTypeDependentObjectRegistry.java index 7279abf6..3b0fcef5 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/NodeTypeDependentObjectRegistry.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/NodeTypeDependentObjectRegistry.java @@ -1,57 +1,57 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.workflow.kaleo.definition.NodeType; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class NodeTypeDependentObjectRegistry { - - public T getNodeTypeDependentObjects(NodeType nodeType) { - T nodeTypeDependentObject = _nodeTypeDependentObjects.get(nodeType); - - if (nodeTypeDependentObject == null) { - throw new IllegalArgumentException("Invalid node type " + nodeType); - } - - return nodeTypeDependentObject; - } - - public T getNodeTypeDependentObjects(String nodeTypeString) { - NodeType nodeType = NodeType.valueOf(nodeTypeString); - - return getNodeTypeDependentObjects(nodeType); - } - - public void setNodeTypeDependentObjects( - Map nodeTypeDependentObjects) { - - _nodeTypeDependentObjects = new HashMap(); - - for (Map.Entry entry : nodeTypeDependentObjects.entrySet()) { - NodeType nodeType = NodeType.valueOf(entry.getKey()); - - _nodeTypeDependentObjects.put(nodeType, entry.getValue()); - } - } - - private Map _nodeTypeDependentObjects; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.workflow.kaleo.definition.NodeType; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class NodeTypeDependentObjectRegistry { + + public T getNodeTypeDependentObjects(NodeType nodeType) { + T nodeTypeDependentObject = _nodeTypeDependentObjects.get(nodeType); + + if (nodeTypeDependentObject == null) { + throw new IllegalArgumentException("Invalid node type " + nodeType); + } + + return nodeTypeDependentObject; + } + + public T getNodeTypeDependentObjects(String nodeTypeString) { + NodeType nodeType = NodeType.valueOf(nodeTypeString); + + return getNodeTypeDependentObjects(nodeType); + } + + public void setNodeTypeDependentObjects( + Map nodeTypeDependentObjects) { + + _nodeTypeDependentObjects = new HashMap(); + + for (Map.Entry entry : nodeTypeDependentObjects.entrySet()) { + NodeType nodeType = NodeType.valueOf(entry.getKey()); + + _nodeTypeDependentObjects.put(nodeType, entry.getValue()); + } + } + + private Map _nodeTypeDependentObjects; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/RoleUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/RoleUtil.java index 82ef85d7..7bc6559a 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/RoleUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/RoleUtil.java @@ -1,104 +1,104 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.DuplicateRoleException; -import com.liferay.portal.NoSuchRoleException; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.LocaleUtil; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class RoleUtil { - - public static Role getRole( - String name, int roleType, boolean autoCreate, - ServiceContext serviceContext) - throws PortalException, SystemException { - - Role role = null; - - try { - role = RoleLocalServiceUtil.getRole( - serviceContext.getCompanyId(), name); - - if (role.getType() != roleType) { - throw new DuplicateRoleException( - "Role already exists with name " + name); - } - } - catch (NoSuchRoleException nsre) { - if (!autoCreate) { - throw nsre; - } - - Map descriptionMap = new HashMap(); - - descriptionMap.put( - LocaleUtil.getDefault(), - "Autogenerated role from workflow definition"); - - role = RoleLocalServiceUtil.addRole( - serviceContext.getUserId(), null, 0, name, null, descriptionMap, - roleType, null, null); - } - - return role; - } - - public static List getRoleIds(ServiceContext serviceContext) - throws SystemException { - - List roles = RoleLocalServiceUtil.getUserRoles( - serviceContext.getUserId()); - - List roleIds = new ArrayList(roles.size()); - - for (Role role : roles) { - roleIds.add(role.getRoleId()); - } - - return roleIds; - } - - public static int getRoleType(String roleType) { - if (roleType.equals(RoleConstants.TYPE_ORGANIZATION_LABEL)) { - return RoleConstants.TYPE_ORGANIZATION; - } - else if (roleType.equals(RoleConstants.TYPE_SITE_LABEL) || - roleType.equals(_LEGACY_TYPE_COMMUNITY_LABEL)) { - - return RoleConstants.TYPE_SITE; - } - else { - return RoleConstants.TYPE_REGULAR; - } - } - - private static final String _LEGACY_TYPE_COMMUNITY_LABEL = "community"; - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.DuplicateRoleException; +import com.liferay.portal.NoSuchRoleException; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; +import com.liferay.portal.service.RoleLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class RoleUtil { + + public static Role getRole( + String name, int roleType, boolean autoCreate, + ServiceContext serviceContext) + throws PortalException, SystemException { + + Role role = null; + + try { + role = RoleLocalServiceUtil.getRole( + serviceContext.getCompanyId(), name); + + if (role.getType() != roleType) { + throw new DuplicateRoleException( + "Role already exists with name " + name); + } + } + catch (NoSuchRoleException nsre) { + if (!autoCreate) { + throw nsre; + } + + Map descriptionMap = new HashMap(); + + descriptionMap.put( + LocaleUtil.getDefault(), + "Autogenerated role from workflow definition"); + + role = RoleLocalServiceUtil.addRole( + serviceContext.getUserId(), null, 0, name, null, descriptionMap, + roleType, null, null); + } + + return role; + } + + public static List getRoleIds(ServiceContext serviceContext) + throws SystemException { + + List roles = RoleLocalServiceUtil.getUserRoles( + serviceContext.getUserId()); + + List roleIds = new ArrayList(roles.size()); + + for (Role role : roles) { + roleIds.add(role.getRoleId()); + } + + return roleIds; + } + + public static int getRoleType(String roleType) { + if (roleType.equals(RoleConstants.TYPE_ORGANIZATION_LABEL)) { + return RoleConstants.TYPE_ORGANIZATION; + } + else if (roleType.equals(RoleConstants.TYPE_SITE_LABEL) || + roleType.equals(_LEGACY_TYPE_COMMUNITY_LABEL)) { + + return RoleConstants.TYPE_SITE; + } + else { + return RoleConstants.TYPE_REGULAR; + } + } + + private static final String _LEGACY_TYPE_COMMUNITY_LABEL = "community"; + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/SchedulerUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/SchedulerUtil.java index 87ae8350..62c5c1b0 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/SchedulerUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/SchedulerUtil.java @@ -1,34 +1,34 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.kernel.util.StringPool; - -/** - * @author Michael C. Han - */ -public class SchedulerUtil { - - public static final String WORKFLOW_TIMER_DESTINATION_NAME = - "liferay/workflow_timer"; - - public static final String getGroupName(long kaleoTimerInstanceTokenId) { - String groupName = WORKFLOW_TIMER_DESTINATION_NAME.concat( - StringPool.SLASH).concat(String.valueOf(kaleoTimerInstanceTokenId)); - - return groupName; - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.kernel.util.StringPool; + +/** + * @author Michael C. Han + */ +public class SchedulerUtil { + + public static final String WORKFLOW_TIMER_DESTINATION_NAME = + "liferay/workflow_timer"; + + public static final String getGroupName(long kaleoTimerInstanceTokenId) { + String groupName = WORKFLOW_TIMER_DESTINATION_NAME.concat( + StringPool.SLASH).concat(String.valueOf(kaleoTimerInstanceTokenId)); + + return groupName; + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowContextUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowContextUtil.java index 0de85974..fae8543d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowContextUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowContextUtil.java @@ -1,62 +1,62 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; - -import java.io.Serializable; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Michael C. Han - */ -public class WorkflowContextUtil { - - public static final String WORKFLOW_CONTEXT_NAME = "workflowContext"; - - public static String convert(Map workflowContext) { - if (workflowContext == null) { - return StringPool.BLANK; - } - - return JSONFactoryUtil.serialize(workflowContext); - } - - public static Map convert(String json) { - if (Validator.isNull(json)) { - return new HashMap(); - } - - return (Map)JSONFactoryUtil.deserialize(json); - } - - public static void mergeWorkflowContexts( - ExecutionContext executionContext, - Map workflowContext) { - - if ((workflowContext != null) && !workflowContext.isEmpty()) { - Map executionContextWorkflowContext = - executionContext.getWorkflowContext(); - - executionContextWorkflowContext.putAll(workflowContext); - } - } - +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; + +import java.io.Serializable; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author Michael C. Han + */ +public class WorkflowContextUtil { + + public static final String WORKFLOW_CONTEXT_NAME = "workflowContext"; + + public static String convert(Map workflowContext) { + if (workflowContext == null) { + return StringPool.BLANK; + } + + return JSONFactoryUtil.serialize(workflowContext); + } + + public static Map convert(String json) { + if (Validator.isNull(json)) { + return new HashMap(); + } + + return (Map)JSONFactoryUtil.deserialize(json); + } + + public static void mergeWorkflowContexts( + ExecutionContext executionContext, + Map workflowContext) { + + if ((workflowContext != null) && !workflowContext.isEmpty()) { + Map executionContextWorkflowContext = + executionContext.getWorkflowContext(); + + executionContextWorkflowContext.putAll(workflowContext); + } + } + } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowModelUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowModelUtil.java index b5a0c1d6..9d783fc6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowModelUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/com/liferay/portal/workflow/kaleo/util/WorkflowModelUtil.java @@ -1,212 +1,212 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation; either version - * 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -package com.liferay.portal.workflow.kaleo.util; - -import java.io.Serializable; -import java.util.List; -import java.util.Map; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.util.MapUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.DefaultWorkflowDefinition; -import com.liferay.portal.kernel.workflow.DefaultWorkflowInstance; -import com.liferay.portal.kernel.workflow.DefaultWorkflowLog; -import com.liferay.portal.kernel.workflow.DefaultWorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.kernel.workflow.WorkflowDefinition; -import com.liferay.portal.kernel.workflow.WorkflowInstance; -import com.liferay.portal.kernel.workflow.WorkflowLog; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; -import com.liferay.portal.model.Role; -import com.liferay.portal.workflow.kaleo.export.DefinitionExporterUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoLog; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; - -/** - * @author Shuyang Zhou - */ -public class WorkflowModelUtil { - - public static WorkflowDefinition toWorkflowDefinition(KaleoDefinition kaleoDefinition) { - - DefaultWorkflowDefinition defaultWorkflowDefinition = new DefaultWorkflowDefinition(); - - defaultWorkflowDefinition.setActive(kaleoDefinition.getActive()); - - String content = kaleoDefinition.getContent(); - - if (Validator.isNull(content)) { - try { - content = DefinitionExporterUtil.export(kaleoDefinition.getKaleoDefinitionId()); - - kaleoDefinition.setContent(content); - - KaleoDefinitionLocalServiceUtil.updateKaleoDefinition(kaleoDefinition); - } catch (Exception e) { - if (_log.isWarnEnabled()) { - _log.warn("Unable to export definition to string", e); - } - } - } - - defaultWorkflowDefinition.setContent(content); - - defaultWorkflowDefinition.setName(kaleoDefinition.getName()); - defaultWorkflowDefinition.setTitle(kaleoDefinition.getTitle()); - defaultWorkflowDefinition.setVersion(kaleoDefinition.getVersion()); - - return defaultWorkflowDefinition; - } - - public static WorkflowInstance toWorkflowInstance(KaleoInstance kaleoInstance, KaleoInstanceToken kaleoInstanceToken) - throws PortalException, SystemException { - - return toWorkflowInstance(kaleoInstance, kaleoInstanceToken, null); - } - - public static WorkflowInstance toWorkflowInstance(KaleoInstance kaleoInstance, KaleoInstanceToken kaleoInstanceToken, - Map workflowContext) throws PortalException, SystemException { - - DefaultWorkflowInstance defaultWorkflowInstance = new DefaultWorkflowInstance(); - - defaultWorkflowInstance.setEndDate(kaleoInstance.getCompletionDate()); - defaultWorkflowInstance.setStartDate(kaleoInstance.getCreateDate()); - defaultWorkflowInstance.setState(kaleoInstanceToken.getCurrentKaleoNode().getName()); - - if (workflowContext != null) { - defaultWorkflowInstance.setWorkflowContext(workflowContext); - } else { - defaultWorkflowInstance.setWorkflowContext(WorkflowContextUtil.convert(kaleoInstance.getWorkflowContext())); - } - - defaultWorkflowInstance.setWorkflowDefinitionName(kaleoInstance.getKaleoDefinitionName()); - defaultWorkflowInstance.setWorkflowDefinitionVersion(kaleoInstance.getKaleoDefinitionVersion()); - defaultWorkflowInstance.setWorkflowInstanceId(kaleoInstance.getKaleoInstanceId()); - - return defaultWorkflowInstance; - } - - public static WorkflowLog toWorkflowLog(KaleoLog kaleoLog) { - DefaultWorkflowLog defaultWorkflowLog = new DefaultWorkflowLog(); - - defaultWorkflowLog.setAuditUserId(kaleoLog.getUserId()); - defaultWorkflowLog.setComment(kaleoLog.getComment()); - defaultWorkflowLog.setCreateDate(kaleoLog.getCreateDate()); - defaultWorkflowLog.setPreviousState(kaleoLog.getPreviousKaleoNodeName()); - - long previousAssigneeClassPK = kaleoLog.getPreviousAssigneeClassPK(); - - if (previousAssigneeClassPK > 0) { - String previousAssigneeClassName = kaleoLog.getPreviousAssigneeClassName(); - - if (previousAssigneeClassName.equals(Role.class.getName())) { - defaultWorkflowLog.setPreviousRoleId(previousAssigneeClassPK); - } else { - defaultWorkflowLog.setPreviousUserId(previousAssigneeClassPK); - } - } - - long currentAssigneeClassPK = kaleoLog.getCurrentAssigneeClassPK(); - - if (currentAssigneeClassPK > 0) { - String currentAssigneeClassName = kaleoLog.getCurrentAssigneeClassName(); - - if (currentAssigneeClassName.equals(Role.class.getName())) { - defaultWorkflowLog.setRoleId(currentAssigneeClassPK); - } else { - defaultWorkflowLog.setUserId(currentAssigneeClassPK); - } - } - - defaultWorkflowLog.setType(KaleoLogUtil.convert(kaleoLog.getType())); - defaultWorkflowLog.setWorkflowLogId(kaleoLog.getKaleoLogId()); - defaultWorkflowLog.setWorkflowTaskId(kaleoLog.getKaleoTaskInstanceTokenId()); - - if (defaultWorkflowLog.getType() == WorkflowLog.TASK_COMPLETION) { - Map workflowContext = WorkflowContextUtil.convert(kaleoLog.getWorkflowContext()); - - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - jsonObject.put("kaleoNodeName", kaleoLog.getKaleoNodeName()); - - if (workflowContext.containsKey(WorkflowConstants.CONTEXT_TRANSITION_NAME)) { - jsonObject.put("transitionName", MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_TRANSITION_NAME)); - } - - defaultWorkflowLog.setState(jsonObject.toString()); - } else if (defaultWorkflowLog.getType() == WorkflowLog.TRANSITION) { - Map workflowContext = WorkflowContextUtil.convert(kaleoLog.getWorkflowContext()); - - String transitionName = MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_TRANSITION_NAME); - if (Validator.isNotNull(transitionName)) { - defaultWorkflowLog.setState(transitionName); - } - - defaultWorkflowLog.setUserId(kaleoLog.getUserId()); - - } else { - defaultWorkflowLog.setState(kaleoLog.getKaleoNodeName()); - } - - return defaultWorkflowLog; - } - - public static WorkflowTask toWorkflowTask(KaleoTaskInstanceToken kaleoTaskInstanceToken, - Map workflowContext) throws PortalException, SystemException { - - DefaultWorkflowTask defaultWorkflowTask = new DefaultWorkflowTask(); - - defaultWorkflowTask.setCreateDate(kaleoTaskInstanceToken.getCreateDate()); - defaultWorkflowTask.setCompletionDate(kaleoTaskInstanceToken.getCompletionDate()); - defaultWorkflowTask.setDescription(kaleoTaskInstanceToken.getKaleoTask().getDescription()); - defaultWorkflowTask.setDueDate(kaleoTaskInstanceToken.getDueDate()); - defaultWorkflowTask.setName(kaleoTaskInstanceToken.getKaleoTask().getName()); - - if (workflowContext != null) { - defaultWorkflowTask.setOptionalAttributes(workflowContext); - } else { - defaultWorkflowTask - .setOptionalAttributes(WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext())); - } - - KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); - KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); - - defaultWorkflowTask.setWorkflowDefinitionId(kaleoInstance.getKaleoDefinitionId()); - defaultWorkflowTask.setWorkflowDefinitionName(kaleoInstance.getKaleoDefinitionName()); - defaultWorkflowTask.setWorkflowDefinitionVersion(kaleoInstance.getKaleoDefinitionVersion()); - defaultWorkflowTask.setWorkflowInstanceId(kaleoInstance.getKaleoInstanceId()); - - List workflowTaskAssignees = - KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees(kaleoTaskInstanceToken); - - defaultWorkflowTask.setWorkflowTaskAssignees(workflowTaskAssignees); - - defaultWorkflowTask.setWorkflowTaskId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); - - return defaultWorkflowTask; - } - - private static Log _log = LogFactoryUtil.getLog(WorkflowModelUtil.class); - -} +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * GNU Lesser General Public License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package com.liferay.portal.workflow.kaleo.util; + +import java.io.Serializable; +import java.util.List; +import java.util.Map; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.MapUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.DefaultWorkflowDefinition; +import com.liferay.portal.kernel.workflow.DefaultWorkflowInstance; +import com.liferay.portal.kernel.workflow.DefaultWorkflowLog; +import com.liferay.portal.kernel.workflow.DefaultWorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowDefinition; +import com.liferay.portal.kernel.workflow.WorkflowInstance; +import com.liferay.portal.kernel.workflow.WorkflowLog; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowTaskAssignee; +import com.liferay.portal.model.Role; +import com.liferay.portal.workflow.kaleo.export.DefinitionExporterUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoLog; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; + +/** + * @author Shuyang Zhou + */ +public class WorkflowModelUtil { + + public static WorkflowDefinition toWorkflowDefinition(KaleoDefinition kaleoDefinition) { + + DefaultWorkflowDefinition defaultWorkflowDefinition = new DefaultWorkflowDefinition(); + + defaultWorkflowDefinition.setActive(kaleoDefinition.getActive()); + + String content = kaleoDefinition.getContent(); + + if (Validator.isNull(content)) { + try { + content = DefinitionExporterUtil.export(kaleoDefinition.getKaleoDefinitionId()); + + kaleoDefinition.setContent(content); + + KaleoDefinitionLocalServiceUtil.updateKaleoDefinition(kaleoDefinition); + } catch (Exception e) { + if (_log.isWarnEnabled()) { + _log.warn("Unable to export definition to string", e); + } + } + } + + defaultWorkflowDefinition.setContent(content); + + defaultWorkflowDefinition.setName(kaleoDefinition.getName()); + defaultWorkflowDefinition.setTitle(kaleoDefinition.getTitle()); + defaultWorkflowDefinition.setVersion(kaleoDefinition.getVersion()); + + return defaultWorkflowDefinition; + } + + public static WorkflowInstance toWorkflowInstance(KaleoInstance kaleoInstance, KaleoInstanceToken kaleoInstanceToken) + throws PortalException, SystemException { + + return toWorkflowInstance(kaleoInstance, kaleoInstanceToken, null); + } + + public static WorkflowInstance toWorkflowInstance(KaleoInstance kaleoInstance, KaleoInstanceToken kaleoInstanceToken, + Map workflowContext) throws PortalException, SystemException { + + DefaultWorkflowInstance defaultWorkflowInstance = new DefaultWorkflowInstance(); + + defaultWorkflowInstance.setEndDate(kaleoInstance.getCompletionDate()); + defaultWorkflowInstance.setStartDate(kaleoInstance.getCreateDate()); + defaultWorkflowInstance.setState(kaleoInstanceToken.getCurrentKaleoNode().getName()); + + if (workflowContext != null) { + defaultWorkflowInstance.setWorkflowContext(workflowContext); + } else { + defaultWorkflowInstance.setWorkflowContext(WorkflowContextUtil.convert(kaleoInstance.getWorkflowContext())); + } + + defaultWorkflowInstance.setWorkflowDefinitionName(kaleoInstance.getKaleoDefinitionName()); + defaultWorkflowInstance.setWorkflowDefinitionVersion(kaleoInstance.getKaleoDefinitionVersion()); + defaultWorkflowInstance.setWorkflowInstanceId(kaleoInstance.getKaleoInstanceId()); + + return defaultWorkflowInstance; + } + + public static WorkflowLog toWorkflowLog(KaleoLog kaleoLog) { + DefaultWorkflowLog defaultWorkflowLog = new DefaultWorkflowLog(); + + defaultWorkflowLog.setAuditUserId(kaleoLog.getUserId()); + defaultWorkflowLog.setComment(kaleoLog.getComment()); + defaultWorkflowLog.setCreateDate(kaleoLog.getCreateDate()); + defaultWorkflowLog.setPreviousState(kaleoLog.getPreviousKaleoNodeName()); + + long previousAssigneeClassPK = kaleoLog.getPreviousAssigneeClassPK(); + + if (previousAssigneeClassPK > 0) { + String previousAssigneeClassName = kaleoLog.getPreviousAssigneeClassName(); + + if (previousAssigneeClassName.equals(Role.class.getName())) { + defaultWorkflowLog.setPreviousRoleId(previousAssigneeClassPK); + } else { + defaultWorkflowLog.setPreviousUserId(previousAssigneeClassPK); + } + } + + long currentAssigneeClassPK = kaleoLog.getCurrentAssigneeClassPK(); + + if (currentAssigneeClassPK > 0) { + String currentAssigneeClassName = kaleoLog.getCurrentAssigneeClassName(); + + if (currentAssigneeClassName.equals(Role.class.getName())) { + defaultWorkflowLog.setRoleId(currentAssigneeClassPK); + } else { + defaultWorkflowLog.setUserId(currentAssigneeClassPK); + } + } + + defaultWorkflowLog.setType(KaleoLogUtil.convert(kaleoLog.getType())); + defaultWorkflowLog.setWorkflowLogId(kaleoLog.getKaleoLogId()); + defaultWorkflowLog.setWorkflowTaskId(kaleoLog.getKaleoTaskInstanceTokenId()); + + if (defaultWorkflowLog.getType() == WorkflowLog.TASK_COMPLETION) { + Map workflowContext = WorkflowContextUtil.convert(kaleoLog.getWorkflowContext()); + + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); + jsonObject.put("kaleoNodeName", kaleoLog.getKaleoNodeName()); + + if (workflowContext.containsKey(WorkflowConstants.CONTEXT_TRANSITION_NAME)) { + jsonObject.put("transitionName", MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_TRANSITION_NAME)); + } + + defaultWorkflowLog.setState(jsonObject.toString()); + } else if (defaultWorkflowLog.getType() == WorkflowLog.TRANSITION) { + Map workflowContext = WorkflowContextUtil.convert(kaleoLog.getWorkflowContext()); + + String transitionName = MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_TRANSITION_NAME); + if (Validator.isNotNull(transitionName)) { + defaultWorkflowLog.setState(transitionName); + } + + defaultWorkflowLog.setUserId(kaleoLog.getUserId()); + + } else { + defaultWorkflowLog.setState(kaleoLog.getKaleoNodeName()); + } + + return defaultWorkflowLog; + } + + public static WorkflowTask toWorkflowTask(KaleoTaskInstanceToken kaleoTaskInstanceToken, + Map workflowContext) throws PortalException, SystemException { + + DefaultWorkflowTask defaultWorkflowTask = new DefaultWorkflowTask(); + + defaultWorkflowTask.setCreateDate(kaleoTaskInstanceToken.getCreateDate()); + defaultWorkflowTask.setCompletionDate(kaleoTaskInstanceToken.getCompletionDate()); + defaultWorkflowTask.setDescription(kaleoTaskInstanceToken.getKaleoTask().getDescription()); + defaultWorkflowTask.setDueDate(kaleoTaskInstanceToken.getDueDate()); + defaultWorkflowTask.setName(kaleoTaskInstanceToken.getKaleoTask().getName()); + + if (workflowContext != null) { + defaultWorkflowTask.setOptionalAttributes(workflowContext); + } else { + defaultWorkflowTask + .setOptionalAttributes(WorkflowContextUtil.convert(kaleoTaskInstanceToken.getWorkflowContext())); + } + + KaleoInstanceToken kaleoInstanceToken = kaleoTaskInstanceToken.getKaleoInstanceToken(); + KaleoInstance kaleoInstance = kaleoInstanceToken.getKaleoInstance(); + + defaultWorkflowTask.setWorkflowDefinitionId(kaleoInstance.getKaleoDefinitionId()); + defaultWorkflowTask.setWorkflowDefinitionName(kaleoInstance.getKaleoDefinitionName()); + defaultWorkflowTask.setWorkflowDefinitionVersion(kaleoInstance.getKaleoDefinitionVersion()); + defaultWorkflowTask.setWorkflowInstanceId(kaleoInstance.getKaleoInstanceId()); + + List workflowTaskAssignees = + KaleoTaskAssignmentInstanceUtil.getWorkflowTaskAssignees(kaleoTaskInstanceToken); + + defaultWorkflowTask.setWorkflowTaskAssignees(workflowTaskAssignees); + + defaultWorkflowTask.setWorkflowTaskId(kaleoTaskInstanceToken.getKaleoTaskInstanceTokenId()); + + return defaultWorkflowTask; + } + + private static Log _log = LogFactoryUtil.getLog(WorkflowModelUtil.class); + +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties index 39af8759..f575e1d6 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties @@ -1,15 +1,15 @@ - -## KALEO - -label-portos-kaleo-there-are-no-results=There are no results. - -label-portos-kaleo-key = Key -label-portos-kaleo-value = Value - -error-portos-kaleo-required = {0} is required - -## HOOK - -x-assigned-the-task-to-x = Task assigned to {1} -x-completed-the-task-x-y={0} completed the task {1} ({2}). + +## KALEO + +label-portos-kaleo-there-are-no-results=There are no results. + +label-portos-kaleo-key = Key +label-portos-kaleo-value = Value + +error-portos-kaleo-required = {0} is required + +## HOOK + +x-assigned-the-task-to-x = Task assigned to {1} +x-completed-the-task-x-y={0} completed the task {1} ({2}). x-sent-signal-x=System sent a signal {1}. \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties index 868e6b08..4fbddb2c 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties @@ -1,20 +1,20 @@ - -## KALEO - -label-portos-kaleo-there-are-no-results=Non ci sono risultati. - -label-portos-kaleo-key = Nome -label-portos-kaleo-value = Valore - -error-portos-kaleo-required = {0} campo obbligatorio - -## HOOK - -x-assigned-the-task-to-x = L'attività è stata assegnata a {1} -x-completed-the-task-x-y={0} ha completato l'attività {1} ({2}). -x-sent-signal-x=Il sistema ha inviato un segnale {1}. - -Tab_MieiTask = Pratica prelevata da le mie attività -Tab_TaskMieiRuoli = Pratica prelevata da attività dei miei ruoli -Tab_AtriTask = Pratica prelevata da altre attività -Tab_TaskCompletati = Pratica prelevata da attività completate + +## KALEO + +label-portos-kaleo-there-are-no-results=Non ci sono risultati. + +label-portos-kaleo-key = Nome +label-portos-kaleo-value = Valore + +error-portos-kaleo-required = {0} campo obbligatorio + +## HOOK + +x-assigned-the-task-to-x = L'attività è stata assegnata a {1} +x-completed-the-task-x-y={0} ha completato l'attività {1} ({2}). +x-sent-signal-x=Il sistema ha inviato un segnale {1}. + +Tab_MieiTask = Pratica prelevata da le mie attività +Tab_TaskMieiRuoli = Pratica prelevata da attività dei miei ruoli +Tab_AtriTask = Pratica prelevata da altre attività +Tab_TaskCompletati = Pratica prelevata da attività completate diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/default.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/default.xml index cf326fd7..25cf5a43 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/default.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/default.xml @@ -1,5 +1,5 @@ - - - - + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/kaleotaskinstancetoken.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/kaleotaskinstancetoken.xml index a868e5aa..8dbe6f70 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/kaleotaskinstancetoken.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/custom-sql/kaleotaskinstancetoken.xml @@ -1,30 +1,30 @@ - - - - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java index 96f207c7..9c5c3297 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java @@ -1,567 +1,567 @@ -package it.tref.liferay.portos.kaleo.hook.struts; - -import it.tref.liferay.portos.bo.model.ControlloPratica; -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.Constants; -import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; -import it.tref.liferay.portos.kaleo.model.FormLog; -import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; -import it.tref.liferay.portos.kaleo.util.WorkflowUtil; - -import java.io.IOException; -import java.io.Serializable; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; -import javax.portlet.PortletConfig; -import javax.portlet.PortletRequest; -import javax.portlet.RenderRequest; -import javax.portlet.RenderResponse; -import javax.servlet.http.HttpServletRequest; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.json.JSONSerializer; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.portlet.DynamicActionRequest; -import com.liferay.portal.kernel.servlet.BrowserSnifferUtil; -import com.liferay.portal.kernel.servlet.SessionErrors; -import com.liferay.portal.kernel.servlet.SessionMessages; -import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; -import com.liferay.portal.kernel.struts.StrutsPortletAction; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.HttpUtil; -import com.liferay.portal.kernel.util.JavaConstants; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.util.WebKeys; -import com.liferay.portal.kernel.workflow.WorkflowException; -import com.liferay.portal.kernel.workflow.WorkflowLog; -import com.liferay.portal.kernel.workflow.WorkflowLogManagerUtil; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowTaskDueDateException; -import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; -import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; -import com.liferay.portal.model.Group; -import com.liferay.portal.model.Layout; -import com.liferay.portal.model.LayoutTypePortlet; -import com.liferay.portal.model.Organization; -import com.liferay.portal.model.Portlet; -import com.liferay.portal.model.User; -import com.liferay.portal.security.auth.PrincipalException; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.OrganizationLocalServiceUtil; -import com.liferay.portal.service.PortletLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; -import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.theme.ThemeDisplay; -import com.liferay.portal.util.PortalUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; - -public class EditWorkflowTaskAction extends BaseStrutsPortletAction { - - private static final List valoriAmmessi = Arrays.asList(StatoPraticaConstants.ANNULLATA, - StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME); - - private static final List logTypes = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION, - WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION); - - private final static Log _log = LogFactoryUtil.getLog(EditWorkflowTaskAction.class); - - @Override - public void processAction(StrutsPortletAction originalStrutsPortletAction, PortletConfig portletConfig, - ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { - - String cmd = ParamUtil.getString(actionRequest, Constants.CMD); - if (cmd.equals(Constants.ASSIGN)) { - Map info = new HashMap<>(); - info.put("comment", ParamUtil.getString(actionRequest, "comment", StringPool.BLANK)); - info.put("tab", ParamUtil.getString(actionRequest, "tab", StringPool.BLANK)); - String json = JSONFactoryUtil.createJSONSerializer().serializeDeep(info); - DynamicActionRequest dynamicActionRequest = new DynamicActionRequest(actionRequest); - dynamicActionRequest.setParameter("comment", json); - originalStrutsPortletAction.processAction(originalStrutsPortletAction, portletConfig, dynamicActionRequest, - actionResponse); - } else if (cmd.equals(Constants.SAVE) || cmd.equals(Constants.RESET)) { - try { - if (cmd.equals(Constants.SAVE)) { - completeTask(actionRequest); - } else if (cmd.equals(Constants.RESET)) { - relaseTask(actionRequest); - } - String redirect = ParamUtil.getString(actionRequest, "redirect"); - String closeRedirect = ParamUtil.getString(actionRequest, "closeRedirect"); - if (Validator.isNotNull(closeRedirect)) { - redirect = HttpUtil.setParameter(redirect, "closeRedirect", closeRedirect); - SessionMessages.add(actionRequest, PortalUtil.getPortletId(actionRequest) - + SessionMessages.KEY_SUFFIX_CLOSE_REDIRECT, closeRedirect); - } - sendRedirect(actionRequest, actionResponse, redirect); - } catch (Exception e) { - if (e instanceof WorkflowTaskDueDateException) { - SessionErrors.add(actionRequest, e.getClass()); - } else if (e instanceof PrincipalException || e instanceof WorkflowException) { - SessionErrors.add(actionRequest, e.getClass()); - setForward(actionRequest, "portlet.workflow_tasks.error"); - } else { - throw e; - } - } - } else { - originalStrutsPortletAction.processAction(originalStrutsPortletAction, portletConfig, actionRequest, - actionResponse); - } - } - - protected void assignTask(ActionRequest actionRequest) throws Exception { - - ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - long assigneeUserId = ParamUtil.getLong(actionRequest, "assigneeUserId"); - String comment = ParamUtil.getString(actionRequest, "comment"); - WorkflowTaskManagerUtil.assignWorkflowTaskToUser(themeDisplay.getCompanyId(), themeDisplay.getUserId(), - workflowTaskId, assigneeUserId, comment, null, null); - } - - protected void completeTask(ActionRequest actionRequest) throws Exception { - - ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - String transitionName = ParamUtil.getString(actionRequest, "transitionName"); - String comment = ParamUtil.getString(actionRequest, "comment"); - // ADT: bug mancata problema assegnazione WF - checkPresenzaIstruttore(transitionName, workflowTaskId); - // ADT: BUG ANOMALIA REGISTRA ESITO - if (transitionName.equalsIgnoreCase("registra-esito")) { - HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil - .getHttpServletRequest(actionRequest)); - String esito = httpServletRequest.getParameter("kaleo--esito--") != null ? httpServletRequest.getParameter( - "kaleo--esito--").trim() : StringPool.BLANK; - String testoDocumento = httpServletRequest.getParameter("kaleo--testo_del_documento--") != null - ? httpServletRequest.getParameter("kaleo--testo_del_documento--") : StringPool.BLANK; - if (!valoriAmmessi.contains(esito) - || (esito.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE) && testoDocumento.isEmpty())) { - _log.error("controllo validazione completamento task registra-esito = " + workflowTaskId - + " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE - + " con testo del documento vuoto"); - throw new PortalException("controllo validazione completamento task registra-esito non riuscito"); - } - } else if (transitionName.equalsIgnoreCase("Riassegna") || transitionName.equalsIgnoreCase("assegna")) { - HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil - .getHttpServletRequest(actionRequest)); - String istr = httpServletRequest.getParameter("kaleo--istruttore--") != null ? httpServletRequest - .getParameter("kaleo--istruttore--").trim() : StringPool.BLANK; - if (istr.isEmpty()) { - _log.error("controllo validazione completamento task = " + transitionName + " -" + workflowTaskId - + " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto"); - throw new PortalException("controllo validazione completamento task registra-esito non riuscito"); - } - if (transitionName.equalsIgnoreCase("assegna")) { - KaleoTaskInstanceToken token = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - if (Validator.isNotNull(token)) { - if (token.getClassName().equals(ControlloPratica.class.getName())) { - ControlloPratica controllo = ControlloPraticaLocalServiceUtil.getControlloPratica(token - .getClassPK()); - if (Validator.isNotNull(controllo)) { - IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); - // Correzione stato per pratiche prelevate manualmente dalle attività completate - if ((WorkflowConstants.STATUS_APPROVED == controllo.getStatus()) - && StatoPraticaConstants.CONFORME.equalsIgnoreCase(pratica.getStatoPratica())) { - controllo.setStatus(WorkflowConstants.STATUS_PENDING); - ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); - pratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE); - pratica.setTipoPratica(Constants.TIPO_PRATICA_AUTORIZZAZIONE); - IntPraticaLocalServiceUtil.updateIntPratica(pratica); - } - } - } - } - } - } - Map workflowContext = new HashMap(); - workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); - WorkflowUtil.updateWorkflowContextWithTaskFormParameters(actionRequest, workflowContext); - WorkflowTaskManagerUtil.completeWorkflowTask(themeDisplay.getCompanyId(), themeDisplay.getUserId(), - workflowTaskId, transitionName, comment, workflowContext); - } - - protected void relaseTask(ActionRequest actionRequest) throws Exception { - - ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - long assigneeUserId = ParamUtil.getLong(actionRequest, "assigneeUserId"); - String comment = ParamUtil.getString(actionRequest, "comment"); - WorkflowTaskManagerUtil.assignWorkflowTaskToRole(themeDisplay.getCompanyId(), assigneeUserId, workflowTaskId, - 0L, comment, null, null); - } - - protected boolean isCheckMethodOnProcessAction() { - - return _CHECK_METHOD_ON_PROCESS_ACTION; - } - - protected void updateTask(ActionRequest actionRequest) throws Exception { - - ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - String comment = ParamUtil.getString(actionRequest, "comment"); - int dueDateMonth = ParamUtil.getInteger(actionRequest, "dueDateMonth"); - int dueDateDay = ParamUtil.getInteger(actionRequest, "dueDateDay"); - int dueDateYear = ParamUtil.getInteger(actionRequest, "dueDateYear"); - int dueDateHour = ParamUtil.getInteger(actionRequest, "dueDateHour"); - int dueDateMinute = ParamUtil.getInteger(actionRequest, "dueDateMinute"); - int dueDateAmPm = ParamUtil.getInteger(actionRequest, "dueDateAmPm"); - if (dueDateAmPm == Calendar.PM) { - dueDateHour += 12; - } - Date dueDate = PortalUtil.getDate(dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute, - WorkflowTaskDueDateException.class); - WorkflowTaskManagerUtil.updateDueDate(themeDisplay.getCompanyId(), themeDisplay.getUserId(), workflowTaskId, - comment, dueDate); - } - - private static final boolean _CHECK_METHOD_ON_PROCESS_ACTION = false; - - protected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse, String redirect) - throws IOException, SystemException { - - sendRedirect(null, actionRequest, actionResponse, redirect, null); - } - - protected void sendRedirect(PortletConfig portletConfig, ActionRequest actionRequest, - ActionResponse actionResponse, String redirect, String closeRedirect) throws IOException, SystemException { - - if (isDisplaySuccessMessage(actionRequest)) { - addSuccessMessage(actionRequest, actionResponse); - } - if (Validator.isNull(redirect)) { - redirect = (String) actionRequest.getAttribute(WebKeys.REDIRECT); - } - if (Validator.isNull(redirect)) { - redirect = ParamUtil.getString(actionRequest, "redirect"); - } - if ((portletConfig != null) && Validator.isNotNull(redirect) && Validator.isNotNull(closeRedirect)) { - redirect = HttpUtil.setParameter(redirect, "closeRedirect", closeRedirect); - SessionMessages.add(actionRequest, PortalUtil.getPortletId(actionRequest) - + SessionMessages.KEY_SUFFIX_CLOSE_REDIRECT, closeRedirect); - } - if (Validator.isNull(redirect)) { - return; - } - HttpServletRequest request = PortalUtil.getHttpServletRequest(actionRequest); - if (BrowserSnifferUtil.isIe(request) && (BrowserSnifferUtil.getMajorVersion(request) == 6.0) - && redirect.contains(StringPool.POUND)) { - String redirectToken = "&#"; - if (!redirect.contains(StringPool.QUESTION)) { - redirectToken = StringPool.QUESTION + redirectToken; - } - redirect = StringUtil.replace(redirect, StringPool.POUND, redirectToken); - } - redirect = PortalUtil.escapeRedirect(redirect); - if (Validator.isNotNull(redirect)) { - actionResponse.sendRedirect(redirect); - } - } - - protected boolean isDisplaySuccessMessage(PortletRequest portletRequest) throws SystemException { - - if (!SessionErrors.isEmpty(portletRequest)) { - return false; - } - ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY); - Layout layout = themeDisplay.getLayout(); - if (layout.isTypeControlPanel()) { - return true; - } - String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID); - try { - LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet(); - if (layoutTypePortlet.hasPortletId(portletId)) { - return true; - } - } catch (PortalException pe) { - if (_log.isDebugEnabled()) { - _log.debug(pe, pe); - } - } - Portlet portlet = PortletLocalServiceUtil.getPortletById(themeDisplay.getCompanyId(), portletId); - if (portlet.isAddDefaultResource()) { - return true; - } - return false; - } - - protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse) { - - PortletConfig portletConfig = (PortletConfig) actionRequest.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG); - boolean addProcessActionSuccessMessage = GetterUtil.getBoolean( - portletConfig.getInitParameter("add-process-action-success-action"), true); - if (!addProcessActionSuccessMessage) { - return; - } - String successMessage = ParamUtil.getString(actionRequest, "successMessage"); - SessionMessages.add(actionRequest, "requestProcessed", successMessage); - } - - protected void setForward(PortletRequest portletRequest, String forward) { - - portletRequest.setAttribute(getForwardKey(portletRequest), forward); - } - - public static String getForwardKey(PortletRequest portletRequest) { - - String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID); - String portletNamespace = PortalUtil.getPortletNamespace(portletId); - return portletNamespace.concat(PORTLET_STRUTS_FORWARD); - } - - private final static String PORTLET_STRUTS_FORWARD = "PORTLET_STRUTS_FORWARD"; - - @Override - public String render(StrutsPortletAction originalStrutsPortletAction, PortletConfig portletConfig, - RenderRequest renderRequest, RenderResponse renderResponse) throws Exception { - - ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); - WorkflowTask workflowTask = null; - if (workflowTaskId > 0) { - workflowTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), workflowTaskId); - } - String valoreTransizioneEsito = getTransitionValue(workflowTask.getWorkflowInstanceId(), "registra-esito"); - String valoreTransizioneAssegna = getTransitionValue(workflowTask.getWorkflowInstanceId(), "assegna"); - renderRequest.setAttribute("registra-esito-value", valoreTransizioneEsito); - renderRequest.setAttribute("assegna-value", valoreTransizioneAssegna); - // Gestione permessi action button - ControlloPratica controlloPratica = getControlloPratica(workflowTask.getWorkflowInstanceId()); - renderRequest.setAttribute( - "historyWorkflowEsitiLogs", - getHistoryWorkfloLogs(themeDisplay, workflowTask.getWorkflowInstanceId(), renderRequest, - controlloPratica)); - long groupIdTerritorio = controlloPratica.getGroupId(); - Group group = GroupLocalServiceUtil.getGroup(groupIdTerritorio); - User user = themeDisplay.getUser(); - Organization org = OrganizationLocalServiceUtil.getOrganization(group.getClassPK()); - boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), - org.getGroupId(), Constants.ROLE_NAME_ASSEGNATORE); - boolean canPortosApprovatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), - org.getGroupId(), Constants.ROLE_NAME_APPROVATORE); - boolean canPortosIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), - org.getGroupId(), Constants.ROLE_NAME_ISTRUTTORE); - renderRequest.setAttribute("canPortosAssegnatore", canPortosAssegnatore); - renderRequest.setAttribute("canPortosApprovatore", canPortosApprovatore); - renderRequest.setAttribute("canPortosIstruttore", canPortosIstruttore); - return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest, - renderResponse); - } - - private String getTransitionValue(long taskInstanceId, String transitionName) throws PortalException, - SystemException { - - ClassLoader classLoaderKaleoLog = (ClassLoader) PortletBeanLocatorUtil.locate( - it.tref.liferay.portos.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); - DynamicQuery dqKaleoLog = DynamicQueryFactoryUtil.forClass(FormLog.class, classLoaderKaleoLog); - dqKaleoLog.add(RestrictionsFactoryUtil.eq("workflowInstanceId", taskInstanceId)); - dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", transitionName)); - List listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog); - if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) { - FormLog formLog = listaKaleoLog.get(0); - JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); - KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance - .getClassPK()); - if (json.has(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { - String tipoEsito = StringPool.BLANK; - String appString = json.getString(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); - switch (appString) { - case StatoPraticaConstants.INTEGRAZIONE: - tipoEsito = "Richiesta Integrazione"; - break; - case StatoPraticaConstants.CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - tipoEsito = "Autorizzata"; - } - break; - case StatoPraticaConstants.NON_CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Non conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - tipoEsito = "Non autorizzata"; - } - break; - case StatoPraticaConstants.ANNULLATA: - tipoEsito = "Annullata"; - break; - default: - break; - } - return tipoEsito; - } else if (json.has("istruttore")) { - String userIdIstruttore = json.getString("istruttore"); - User istruttore = UserLocalServiceUtil.fetchUser(Long.parseLong(userIdIstruttore)); - if (Validator.isNotNull(istruttore)) { - return istruttore.getFullName(); - } - } - } - return null; - } - - private ControlloPratica getControlloPratica(long taskInstanceId) throws PortalException, SystemException { - - PortletBeanLocatorUtil.locate(it.tref.liferay.portos.kaleo.service.ClpSerializer.getServletContextName(), - "portletClassLoader"); - KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance - .getClassPK()); - return controlloPratica; - } - - /** - * ADT BUG BO ID=33 - implementazione nuovo metodo - * - * @param themeDisplay - * @param workflowInstanceId - * @param renderRequest - * @param controlloPratica - * @return - */ - private Map getHistoryWorkfloLogs(ThemeDisplay themeDisplay, long workflowInstanceId, - RenderRequest renderRequest, ControlloPratica controlloPratica) { - - Map esitiMapByWorkflowLogID = new HashMap(); - try { - List workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance( - themeDisplay.getCompanyId(), workflowInstanceId, logTypes, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true)); - for (WorkflowLog workflowLog : workflowLogs) { - try { - WorkflowTask wfTask = null; - if (workflowLog.getWorkflowTaskId() > 0) { - wfTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), - workflowLog.getWorkflowTaskId()); - ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); - FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(), - wfTask.getWorkflowTaskId()); - if (formLog != null && Validator.isNotNull(formLog.getFormParameters())) { - JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); - if (json.has(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { - String tipoEsito = StringPool.BLANK; - String appString = json.getString(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); - switch (appString) { - case StatoPraticaConstants.INTEGRAZIONE: - tipoEsito = "Richiesta Integrazione"; - break; - case StatoPraticaConstants.CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica - .getIntPraticaId())) { - tipoEsito = "Autorizzata"; - } - break; - case StatoPraticaConstants.NON_CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Non conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica - .getIntPraticaId())) { - tipoEsito = "Non autorizzata"; - } - break; - case StatoPraticaConstants.ANNULLATA: - tipoEsito = "Annullata"; - break; - default: - break; - } - esitiMapByWorkflowLogID.put(workflowLog.getWorkflowLogId(), tipoEsito); - } - } - } - } catch (Exception e) { - // l'errore non va gestito - e.printStackTrace(); - } - } - } catch (Exception e) { - _log.error("Errore in getHistoryWorkflowLogs", e); - } - return esitiMapByWorkflowLogID; - } - - /** - * ADT: check congruenza WF - presenza dell'istruttore - * - * @param transitionName - * @param workflowTaskId - */ - private void checkPresenzaIstruttore(String transitionName, long workflowTaskId) { - - if (transitionName.equalsIgnoreCase("registra-esito")) { - try { - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - ControlloPratica controlloPratica = getControlloPratica(kaleoTaskInstanceToken.getKaleoInstanceId()); - Map wfParameters = it.tref.liferay.portos.bo.util.WorkflowUtil - .getFormParameters(controlloPratica); - String istruttore = (String) wfParameters.get("istruttore"); - _log.info("checkPresenzaIstruttore - istruttore presente sul workflow= " + istruttore - + " - ControlloPraticaId = " + controlloPratica.getControlloPraticaId()); - if (istruttore == null) { - _log.info("checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = " - + controlloPratica.getControlloPraticaId()); - long istruttoreId = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()) - .getStatusByUserId(); - if (istruttoreId > 0) { - String jsonFormParameters = null; - Map parametri = new HashMap(); - parametri.put("istruttore", String.valueOf(istruttoreId)); - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); - jsonFormParameters = jsonSerializer.serialize(parametri); - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(controlloPratica.getCompanyId()); - serviceContext.setUserId(controlloPratica.getUserId()); - FormLogLocalServiceUtil.addFormLog(kaleoTaskInstanceToken.getKaleoInstanceId(), 0l, - "cambio-istruttore", jsonFormParameters, serviceContext); - _log.info("checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = " - + controlloPratica.getControlloPraticaId()); - } else { - _log.info("checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = " - + controlloPratica.getControlloPraticaId()); - } - } - } catch (Exception e) { - _log.error("checkPresenzaIstruttore KO per workflowTaskId = " + workflowTaskId + " [" + e.getMessage() - + " , " + e.getCause() + "]"); - } - } - } -} +package it.tref.liferay.portos.kaleo.hook.struts; + +import it.tref.liferay.portos.bo.model.ControlloPratica; +import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; +import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; +import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.util.WorkflowConstants; +import it.tref.liferay.portos.kaleo.model.FormLog; +import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; +import it.tref.liferay.portos.kaleo.util.WorkflowUtil; + +import java.io.IOException; +import java.io.Serializable; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; +import javax.portlet.PortletConfig; +import javax.portlet.PortletRequest; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; +import javax.servlet.http.HttpServletRequest; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.portlet.DynamicActionRequest; +import com.liferay.portal.kernel.servlet.BrowserSnifferUtil; +import com.liferay.portal.kernel.servlet.SessionErrors; +import com.liferay.portal.kernel.servlet.SessionMessages; +import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; +import com.liferay.portal.kernel.struts.StrutsPortletAction; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.HttpUtil; +import com.liferay.portal.kernel.util.JavaConstants; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.util.WebKeys; +import com.liferay.portal.kernel.workflow.WorkflowException; +import com.liferay.portal.kernel.workflow.WorkflowLog; +import com.liferay.portal.kernel.workflow.WorkflowLogManagerUtil; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowTaskDueDateException; +import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; +import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.Layout; +import com.liferay.portal.model.LayoutTypePortlet; +import com.liferay.portal.model.Organization; +import com.liferay.portal.model.Portlet; +import com.liferay.portal.model.User; +import com.liferay.portal.security.auth.PrincipalException; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.service.OrganizationLocalServiceUtil; +import com.liferay.portal.service.PortletLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.theme.ThemeDisplay; +import com.liferay.portal.util.PortalUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; + +public class EditWorkflowTaskAction extends BaseStrutsPortletAction { + + private static final List valoriAmmessi = Arrays.asList(StatoPraticaConstants.ANNULLATA, + StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME); + + private static final List logTypes = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION, + WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION); + + private final static Log _log = LogFactoryUtil.getLog(EditWorkflowTaskAction.class); + + @Override + public void processAction(StrutsPortletAction originalStrutsPortletAction, PortletConfig portletConfig, + ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { + + String cmd = ParamUtil.getString(actionRequest, Constants.CMD); + if (cmd.equals(Constants.ASSIGN)) { + Map info = new HashMap<>(); + info.put("comment", ParamUtil.getString(actionRequest, "comment", StringPool.BLANK)); + info.put("tab", ParamUtil.getString(actionRequest, "tab", StringPool.BLANK)); + String json = JSONFactoryUtil.createJSONSerializer().serializeDeep(info); + DynamicActionRequest dynamicActionRequest = new DynamicActionRequest(actionRequest); + dynamicActionRequest.setParameter("comment", json); + originalStrutsPortletAction.processAction(originalStrutsPortletAction, portletConfig, dynamicActionRequest, + actionResponse); + } else if (cmd.equals(Constants.SAVE) || cmd.equals(Constants.RESET)) { + try { + if (cmd.equals(Constants.SAVE)) { + completeTask(actionRequest); + } else if (cmd.equals(Constants.RESET)) { + relaseTask(actionRequest); + } + String redirect = ParamUtil.getString(actionRequest, "redirect"); + String closeRedirect = ParamUtil.getString(actionRequest, "closeRedirect"); + if (Validator.isNotNull(closeRedirect)) { + redirect = HttpUtil.setParameter(redirect, "closeRedirect", closeRedirect); + SessionMessages.add(actionRequest, PortalUtil.getPortletId(actionRequest) + + SessionMessages.KEY_SUFFIX_CLOSE_REDIRECT, closeRedirect); + } + sendRedirect(actionRequest, actionResponse, redirect); + } catch (Exception e) { + if (e instanceof WorkflowTaskDueDateException) { + SessionErrors.add(actionRequest, e.getClass()); + } else if (e instanceof PrincipalException || e instanceof WorkflowException) { + SessionErrors.add(actionRequest, e.getClass()); + setForward(actionRequest, "portlet.workflow_tasks.error"); + } else { + throw e; + } + } + } else { + originalStrutsPortletAction.processAction(originalStrutsPortletAction, portletConfig, actionRequest, + actionResponse); + } + } + + protected void assignTask(ActionRequest actionRequest) throws Exception { + + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); + long assigneeUserId = ParamUtil.getLong(actionRequest, "assigneeUserId"); + String comment = ParamUtil.getString(actionRequest, "comment"); + WorkflowTaskManagerUtil.assignWorkflowTaskToUser(themeDisplay.getCompanyId(), themeDisplay.getUserId(), + workflowTaskId, assigneeUserId, comment, null, null); + } + + protected void completeTask(ActionRequest actionRequest) throws Exception { + + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); + String transitionName = ParamUtil.getString(actionRequest, "transitionName"); + String comment = ParamUtil.getString(actionRequest, "comment"); + // ADT: bug mancata problema assegnazione WF + checkPresenzaIstruttore(transitionName, workflowTaskId); + // ADT: BUG ANOMALIA REGISTRA ESITO + if (transitionName.equalsIgnoreCase("registra-esito")) { + HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil + .getHttpServletRequest(actionRequest)); + String esito = httpServletRequest.getParameter("kaleo--esito--") != null ? httpServletRequest.getParameter( + "kaleo--esito--").trim() : StringPool.BLANK; + String testoDocumento = httpServletRequest.getParameter("kaleo--testo_del_documento--") != null + ? httpServletRequest.getParameter("kaleo--testo_del_documento--") : StringPool.BLANK; + if (!valoriAmmessi.contains(esito) + || (esito.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE) && testoDocumento.isEmpty())) { + _log.error("controllo validazione completamento task registra-esito = " + workflowTaskId + + " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE + + " con testo del documento vuoto"); + throw new PortalException("controllo validazione completamento task registra-esito non riuscito"); + } + } else if (transitionName.equalsIgnoreCase("Riassegna") || transitionName.equalsIgnoreCase("assegna")) { + HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil + .getHttpServletRequest(actionRequest)); + String istr = httpServletRequest.getParameter("kaleo--istruttore--") != null ? httpServletRequest + .getParameter("kaleo--istruttore--").trim() : StringPool.BLANK; + if (istr.isEmpty()) { + _log.error("controllo validazione completamento task = " + transitionName + " -" + workflowTaskId + + " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto"); + throw new PortalException("controllo validazione completamento task registra-esito non riuscito"); + } + if (transitionName.equalsIgnoreCase("assegna")) { + KaleoTaskInstanceToken token = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + if (Validator.isNotNull(token)) { + if (token.getClassName().equals(ControlloPratica.class.getName())) { + ControlloPratica controllo = ControlloPraticaLocalServiceUtil.getControlloPratica(token + .getClassPK()); + if (Validator.isNotNull(controllo)) { + IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); + // Correzione stato per pratiche prelevate manualmente dalle attività completate + if ((WorkflowConstants.STATUS_APPROVED == controllo.getStatus()) + && StatoPraticaConstants.CONFORME.equalsIgnoreCase(pratica.getStatoPratica())) { + controllo.setStatus(WorkflowConstants.STATUS_PENDING); + ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); + pratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE); + pratica.setTipoPratica(Constants.TIPO_PRATICA_AUTORIZZAZIONE); + IntPraticaLocalServiceUtil.updateIntPratica(pratica); + } + } + } + } + } + } + Map workflowContext = new HashMap(); + workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); + WorkflowUtil.updateWorkflowContextWithTaskFormParameters(actionRequest, workflowContext); + WorkflowTaskManagerUtil.completeWorkflowTask(themeDisplay.getCompanyId(), themeDisplay.getUserId(), + workflowTaskId, transitionName, comment, workflowContext); + } + + protected void relaseTask(ActionRequest actionRequest) throws Exception { + + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); + long assigneeUserId = ParamUtil.getLong(actionRequest, "assigneeUserId"); + String comment = ParamUtil.getString(actionRequest, "comment"); + WorkflowTaskManagerUtil.assignWorkflowTaskToRole(themeDisplay.getCompanyId(), assigneeUserId, workflowTaskId, + 0L, comment, null, null); + } + + protected boolean isCheckMethodOnProcessAction() { + + return _CHECK_METHOD_ON_PROCESS_ACTION; + } + + protected void updateTask(ActionRequest actionRequest) throws Exception { + + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); + String comment = ParamUtil.getString(actionRequest, "comment"); + int dueDateMonth = ParamUtil.getInteger(actionRequest, "dueDateMonth"); + int dueDateDay = ParamUtil.getInteger(actionRequest, "dueDateDay"); + int dueDateYear = ParamUtil.getInteger(actionRequest, "dueDateYear"); + int dueDateHour = ParamUtil.getInteger(actionRequest, "dueDateHour"); + int dueDateMinute = ParamUtil.getInteger(actionRequest, "dueDateMinute"); + int dueDateAmPm = ParamUtil.getInteger(actionRequest, "dueDateAmPm"); + if (dueDateAmPm == Calendar.PM) { + dueDateHour += 12; + } + Date dueDate = PortalUtil.getDate(dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute, + WorkflowTaskDueDateException.class); + WorkflowTaskManagerUtil.updateDueDate(themeDisplay.getCompanyId(), themeDisplay.getUserId(), workflowTaskId, + comment, dueDate); + } + + private static final boolean _CHECK_METHOD_ON_PROCESS_ACTION = false; + + protected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse, String redirect) + throws IOException, SystemException { + + sendRedirect(null, actionRequest, actionResponse, redirect, null); + } + + protected void sendRedirect(PortletConfig portletConfig, ActionRequest actionRequest, + ActionResponse actionResponse, String redirect, String closeRedirect) throws IOException, SystemException { + + if (isDisplaySuccessMessage(actionRequest)) { + addSuccessMessage(actionRequest, actionResponse); + } + if (Validator.isNull(redirect)) { + redirect = (String) actionRequest.getAttribute(WebKeys.REDIRECT); + } + if (Validator.isNull(redirect)) { + redirect = ParamUtil.getString(actionRequest, "redirect"); + } + if ((portletConfig != null) && Validator.isNotNull(redirect) && Validator.isNotNull(closeRedirect)) { + redirect = HttpUtil.setParameter(redirect, "closeRedirect", closeRedirect); + SessionMessages.add(actionRequest, PortalUtil.getPortletId(actionRequest) + + SessionMessages.KEY_SUFFIX_CLOSE_REDIRECT, closeRedirect); + } + if (Validator.isNull(redirect)) { + return; + } + HttpServletRequest request = PortalUtil.getHttpServletRequest(actionRequest); + if (BrowserSnifferUtil.isIe(request) && (BrowserSnifferUtil.getMajorVersion(request) == 6.0) + && redirect.contains(StringPool.POUND)) { + String redirectToken = "&#"; + if (!redirect.contains(StringPool.QUESTION)) { + redirectToken = StringPool.QUESTION + redirectToken; + } + redirect = StringUtil.replace(redirect, StringPool.POUND, redirectToken); + } + redirect = PortalUtil.escapeRedirect(redirect); + if (Validator.isNotNull(redirect)) { + actionResponse.sendRedirect(redirect); + } + } + + protected boolean isDisplaySuccessMessage(PortletRequest portletRequest) throws SystemException { + + if (!SessionErrors.isEmpty(portletRequest)) { + return false; + } + ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY); + Layout layout = themeDisplay.getLayout(); + if (layout.isTypeControlPanel()) { + return true; + } + String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID); + try { + LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet(); + if (layoutTypePortlet.hasPortletId(portletId)) { + return true; + } + } catch (PortalException pe) { + if (_log.isDebugEnabled()) { + _log.debug(pe, pe); + } + } + Portlet portlet = PortletLocalServiceUtil.getPortletById(themeDisplay.getCompanyId(), portletId); + if (portlet.isAddDefaultResource()) { + return true; + } + return false; + } + + protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse) { + + PortletConfig portletConfig = (PortletConfig) actionRequest.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG); + boolean addProcessActionSuccessMessage = GetterUtil.getBoolean( + portletConfig.getInitParameter("add-process-action-success-action"), true); + if (!addProcessActionSuccessMessage) { + return; + } + String successMessage = ParamUtil.getString(actionRequest, "successMessage"); + SessionMessages.add(actionRequest, "requestProcessed", successMessage); + } + + protected void setForward(PortletRequest portletRequest, String forward) { + + portletRequest.setAttribute(getForwardKey(portletRequest), forward); + } + + public static String getForwardKey(PortletRequest portletRequest) { + + String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID); + String portletNamespace = PortalUtil.getPortletNamespace(portletId); + return portletNamespace.concat(PORTLET_STRUTS_FORWARD); + } + + private final static String PORTLET_STRUTS_FORWARD = "PORTLET_STRUTS_FORWARD"; + + @Override + public String render(StrutsPortletAction originalStrutsPortletAction, PortletConfig portletConfig, + RenderRequest renderRequest, RenderResponse renderResponse) throws Exception { + + ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); + WorkflowTask workflowTask = null; + if (workflowTaskId > 0) { + workflowTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), workflowTaskId); + } + String valoreTransizioneEsito = getTransitionValue(workflowTask.getWorkflowInstanceId(), "registra-esito"); + String valoreTransizioneAssegna = getTransitionValue(workflowTask.getWorkflowInstanceId(), "assegna"); + renderRequest.setAttribute("registra-esito-value", valoreTransizioneEsito); + renderRequest.setAttribute("assegna-value", valoreTransizioneAssegna); + // Gestione permessi action button + ControlloPratica controlloPratica = getControlloPratica(workflowTask.getWorkflowInstanceId()); + renderRequest.setAttribute( + "historyWorkflowEsitiLogs", + getHistoryWorkfloLogs(themeDisplay, workflowTask.getWorkflowInstanceId(), renderRequest, + controlloPratica)); + long groupIdTerritorio = controlloPratica.getGroupId(); + Group group = GroupLocalServiceUtil.getGroup(groupIdTerritorio); + User user = themeDisplay.getUser(); + Organization org = OrganizationLocalServiceUtil.getOrganization(group.getClassPK()); + boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), + org.getGroupId(), Constants.ROLE_NAME_ASSEGNATORE); + boolean canPortosApprovatore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), + org.getGroupId(), Constants.ROLE_NAME_APPROVATORE); + boolean canPortosIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), + org.getGroupId(), Constants.ROLE_NAME_ISTRUTTORE); + renderRequest.setAttribute("canPortosAssegnatore", canPortosAssegnatore); + renderRequest.setAttribute("canPortosApprovatore", canPortosApprovatore); + renderRequest.setAttribute("canPortosIstruttore", canPortosIstruttore); + return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest, + renderResponse); + } + + private String getTransitionValue(long taskInstanceId, String transitionName) throws PortalException, + SystemException { + + ClassLoader classLoaderKaleoLog = (ClassLoader) PortletBeanLocatorUtil.locate( + it.tref.liferay.portos.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); + DynamicQuery dqKaleoLog = DynamicQueryFactoryUtil.forClass(FormLog.class, classLoaderKaleoLog); + dqKaleoLog.add(RestrictionsFactoryUtil.eq("workflowInstanceId", taskInstanceId)); + dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", transitionName)); + List listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog); + if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) { + FormLog formLog = listaKaleoLog.get(0); + JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); + KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance + .getClassPK()); + if (json.has(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { + String tipoEsito = StringPool.BLANK; + String appString = json.getString(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); + switch (appString) { + case StatoPraticaConstants.INTEGRAZIONE: + tipoEsito = "Richiesta Integrazione"; + break; + case StatoPraticaConstants.CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { + tipoEsito = "Autorizzata"; + } + break; + case StatoPraticaConstants.NON_CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Non conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { + tipoEsito = "Non autorizzata"; + } + break; + case StatoPraticaConstants.ANNULLATA: + tipoEsito = "Annullata"; + break; + default: + break; + } + return tipoEsito; + } else if (json.has("istruttore")) { + String userIdIstruttore = json.getString("istruttore"); + User istruttore = UserLocalServiceUtil.fetchUser(Long.parseLong(userIdIstruttore)); + if (Validator.isNotNull(istruttore)) { + return istruttore.getFullName(); + } + } + } + return null; + } + + private ControlloPratica getControlloPratica(long taskInstanceId) throws PortalException, SystemException { + + PortletBeanLocatorUtil.locate(it.tref.liferay.portos.kaleo.service.ClpSerializer.getServletContextName(), + "portletClassLoader"); + KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(taskInstanceId); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance + .getClassPK()); + return controlloPratica; + } + + /** + * ADT BUG BO ID=33 - implementazione nuovo metodo + * + * @param themeDisplay + * @param workflowInstanceId + * @param renderRequest + * @param controlloPratica + * @return + */ + private Map getHistoryWorkfloLogs(ThemeDisplay themeDisplay, long workflowInstanceId, + RenderRequest renderRequest, ControlloPratica controlloPratica) { + + Map esitiMapByWorkflowLogID = new HashMap(); + try { + List workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance( + themeDisplay.getCompanyId(), workflowInstanceId, logTypes, QueryUtil.ALL_POS, QueryUtil.ALL_POS, + WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true)); + for (WorkflowLog workflowLog : workflowLogs) { + try { + WorkflowTask wfTask = null; + if (workflowLog.getWorkflowTaskId() > 0) { + wfTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), + workflowLog.getWorkflowTaskId()); + ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); + FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(), + wfTask.getWorkflowTaskId()); + if (formLog != null && Validator.isNotNull(formLog.getFormParameters())) { + JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); + if (json.has(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { + String tipoEsito = StringPool.BLANK; + String appString = json.getString(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); + switch (appString) { + case StatoPraticaConstants.INTEGRAZIONE: + tipoEsito = "Richiesta Integrazione"; + break; + case StatoPraticaConstants.CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica + .getIntPraticaId())) { + tipoEsito = "Autorizzata"; + } + break; + case StatoPraticaConstants.NON_CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Non conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica + .getIntPraticaId())) { + tipoEsito = "Non autorizzata"; + } + break; + case StatoPraticaConstants.ANNULLATA: + tipoEsito = "Annullata"; + break; + default: + break; + } + esitiMapByWorkflowLogID.put(workflowLog.getWorkflowLogId(), tipoEsito); + } + } + } + } catch (Exception e) { + // l'errore non va gestito + e.printStackTrace(); + } + } + } catch (Exception e) { + _log.error("Errore in getHistoryWorkflowLogs", e); + } + return esitiMapByWorkflowLogID; + } + + /** + * ADT: check congruenza WF - presenza dell'istruttore + * + * @param transitionName + * @param workflowTaskId + */ + private void checkPresenzaIstruttore(String transitionName, long workflowTaskId) { + + if (transitionName.equalsIgnoreCase("registra-esito")) { + try { + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + ControlloPratica controlloPratica = getControlloPratica(kaleoTaskInstanceToken.getKaleoInstanceId()); + Map wfParameters = it.tref.liferay.portos.bo.util.WorkflowUtil + .getFormParameters(controlloPratica); + String istruttore = (String) wfParameters.get("istruttore"); + _log.info("checkPresenzaIstruttore - istruttore presente sul workflow= " + istruttore + + " - ControlloPraticaId = " + controlloPratica.getControlloPraticaId()); + if (istruttore == null) { + _log.info("checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = " + + controlloPratica.getControlloPraticaId()); + long istruttoreId = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()) + .getStatusByUserId(); + if (istruttoreId > 0) { + String jsonFormParameters = null; + Map parametri = new HashMap(); + parametri.put("istruttore", String.valueOf(istruttoreId)); + JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); + jsonFormParameters = jsonSerializer.serialize(parametri); + + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(controlloPratica.getCompanyId()); + serviceContext.setUserId(controlloPratica.getUserId()); + FormLogLocalServiceUtil.addFormLog(kaleoTaskInstanceToken.getKaleoInstanceId(), 0l, + "cambio-istruttore", jsonFormParameters, serviceContext); + _log.info("checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = " + + controlloPratica.getControlloPraticaId()); + } else { + _log.info("checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = " + + controlloPratica.getControlloPraticaId()); + } + } + } catch (Exception e) { + _log.error("checkPresenzaIstruttore KO per workflowTaskId = " + workflowTaskId + " [" + e.getMessage() + + " , " + e.getCause() + "]"); + } + } + } +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java index ce2eeef1..b2a5e56a 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java @@ -1,239 +1,239 @@ -package it.tref.liferay.portos.kaleo.hook.struts; - -import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; -import it.tref.liferay.portos.kaleo.model.FormTemplateLink; -import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; -import it.tref.liferay.portos.kaleo.service.FormTemplateLinkLocalServiceUtil; -import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; -import it.tref.liferay.portos.kaleo.util.WorkflowUtil; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.Map; - -import javax.portlet.PortletConfig; -import javax.portlet.RenderRequest; -import javax.portlet.RenderResponse; -import javax.portlet.ResourceRequest; -import javax.portlet.ResourceResponse; -import javax.servlet.http.HttpServletResponse; - -import com.liferay.compat.portal.kernel.util.MapUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.json.JSONArray; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; -import com.liferay.portal.kernel.language.LanguageUtil; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.servlet.ServletResponseUtil; -import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; -import com.liferay.portal.kernel.util.ContentTypes; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; -import com.liferay.portal.util.PortalUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; -import com.liferay.portlet.dynamicdatamapping.model.DDMStructure; -import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; -import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil; -import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil; -import com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil; - -public class RenderFormTaskPortletAction extends BaseStrutsPortletAction { - - private static Log _log = LogFactoryUtil.getLog(RenderFormTaskPortletAction.class); - - @Override - public String render(PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) - throws Exception { - - ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); - long companyId = PortalUtil.getCompanyId(renderRequest); - long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); - long assigneeUserId = ParamUtil.getLong(renderRequest, "assigneeUserId"); - String transitionName = ParamUtil.getString(renderRequest, "transitionName"); - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - KaleoDefinition kaleoDefinition = KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken - .getKaleoDefinitionId()); - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - FormDefinitionLink formDefinitionLink = FormDefinitionLinkLocalServiceUtil - .fetchByC_DefinitionName_DefinitionVersion(companyId, kaleoDefinition.getName(), - kaleoDefinition.getVersion()); - if (formDefinitionLink == null) { - return null; - } - FormTemplateLink formTemplateLink = FormTemplateLinkLocalServiceUtil - .fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName(formDefinitionLink.getFormDefinitionLinkId(), - kaleoTask.getKaleoNodeId(), transitionName); - if (formTemplateLink == null) { - return null; - } - long ddmTemplateId = formTemplateLink.getDdmTemplateId(); - long ddmStructureId = formDefinitionLink.getDdmStructureId(); - /* - * Script OnOpenForm - */ - Map workflowContext = WorkflowUtil.executeOnOpenForm(companyId, workflowTaskId, - assigneeUserId, transitionName); - Map parameters = WorkflowUtil.getFormParameters(companyId, workflowTaskId); - Map>> fieldNameOptions = getOptions(workflowContext, - serviceContext.getLocale()); - renderRequest.setAttribute("ddmTemplateId", ddmTemplateId); - renderRequest.setAttribute("ddmStructureId", ddmStructureId); - renderRequest.setAttribute("parameters", parameters); - renderRequest.setAttribute("prefix", WorkflowConstants.PREFIX_NAME_ELEMENT_FORM); - renderRequest.setAttribute("suffix", WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM); - renderRequest.setAttribute("fieldNameOptions", fieldNameOptions); - String classPkForCarichiLavoro = ParamUtil.getString(renderRequest, "classPkForCarichiLavoro"); - _log.info("classPkForCarichiLavoro = " + classPkForCarichiLavoro); - boolean checkVisualizzaCarichiLavoro = (ddmTemplateId == 21699 || ddmTemplateId == 21705); - if (checkVisualizzaCarichiLavoro) { - renderRequest.setAttribute("classPkForCarichiLavoro", classPkForCarichiLavoro); - } - if (transitionName != null && transitionName.equalsIgnoreCase("registra-esito")) { - parameters.remove("esito"); - parameters.remove("testo_del_documento"); - } - return "/portlet/workflow_tasks/render_form_task.jsp"; - } - - @SuppressWarnings("unchecked") - @Override - public void serveResource(PortletConfig portletConfig, ResourceRequest resourceRequest, - ResourceResponse resourceResponse) throws Exception { - - ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); - long companyId = PortalUtil.getCompanyId(resourceRequest); - long workflowTaskId = ParamUtil.getLong(resourceRequest, "workflowTaskId"); - long assigneeUserId = ParamUtil.getLong(resourceRequest, "assigneeUserId"); - String transitionName = ParamUtil.getString(resourceRequest, "transitionName"); - List errors = new ArrayList(); - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - KaleoDefinition kaleoDefinition = KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken - .getKaleoDefinitionId()); - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - FormDefinitionLink formDefinitionLink = FormDefinitionLinkLocalServiceUtil - .fetchByC_DefinitionName_DefinitionVersion(companyId, kaleoDefinition.getName(), - kaleoDefinition.getVersion()); - if (formDefinitionLink != null) { - FormTemplateLink formTemplateLink = FormTemplateLinkLocalServiceUtil - .fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName( - formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName); - if (formTemplateLink != null) { - Map workflowContext = new HashMap(); - WorkflowUtil.updateWorkflowContextWithTaskFormParameters(resourceRequest, workflowContext); - DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink - .getDdmTemplateId()); - String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class), - ddmTemplate.getTemplateId()); - JSONArray jsonArray = DDMXSDUtil.getJSONArray(xsd); - Map formParameters = (Map) workflowContext - .get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS); - if (formParameters != null) { - for (int i = 0; i < jsonArray.length(); i++) { - JSONObject jsonObject = jsonArray.getJSONObject(i); - String name = jsonObject.getString("name"); - boolean required = GetterUtil.getBoolean(jsonObject.getString("required")); - if (required) { - String value = formParameters.get(name); - if (Validator.isNull(value)) { - String language = ddmTemplate.getDefaultLanguageId(); - JSONObject localizationMapJSON = jsonObject.getJSONObject("localizationMap"); - if (localizationMapJSON.has(serviceContext.getLanguageId())) { - language = serviceContext.getLanguageId(); - } else if (!localizationMapJSON.has(language)) { - DDMStructure ddmStructure = DDMStructureLocalServiceUtil - .getDDMStructure(formDefinitionLink.getDdmStructureId()); - language = ddmStructure.getDefaultLanguageId(); - } - String label = localizationMapJSON.getJSONObject(language).getString("label"); - errors.add(LanguageUtil.format(serviceContext.getLocale(), - "error-portos-kaleo-required", label)); - } - } - } - } - /* - * Script OnValidation - */ - workflowContext = WorkflowUtil.executeOnValidation(companyId, workflowTaskId, assigneeUserId, - transitionName, workflowContext); - String json = MapUtil - .getString(workflowContext, WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER); - if (Validator.isNotNull(json)) { - JSONObject validationJSON = JSONFactoryUtil.createJSONObject(json); - JSONArray validationErrorsJSON = validationJSON.getJSONArray("errors"); - if (validationErrorsJSON != null) { - for (int i = 0; i < validationErrorsJSON.length(); i++) { - errors.add(validationErrorsJSON.getString(i)); - } - } - } - } - } - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - if (!errors.isEmpty()) { - jsonObject.put("valid", false); - JSONArray jsonMessages = JSONFactoryUtil.createJSONArray(); - for (String error : errors) { - jsonMessages.put(error); - } - jsonObject.put("messages", jsonMessages); - } else { - jsonObject.put("valid", true); - } - resourceResponse.setContentType(ContentTypes.APPLICATION_JSON); - HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.write(httpServletResponse, jsonObject.toString()); - resourceResponse.flushBuffer(); - } - - private Map>> getOptions(Map workflowContext, - Locale locale) throws PortalException { - - Map>> fieldNameOptions = Collections.emptyMap(); - if (workflowContext.containsKey(WorkflowConstants.CONTEXT_OPEN_FORM_OPTIONS_PARAMETER)) { - String json = MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_OPEN_FORM_OPTIONS_PARAMETER); - if (Validator.isNotNull(json)) { - // field name (ddm) -> map - fieldNameOptions = new HashMap>>(); - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(json); - Iterator it = jsonObject.keys(); - while (it.hasNext()) { - String key = it.next(); - // options - if (Validator.isNotNull(json)) { - JSONArray jsonArray = jsonObject.getJSONArray(key); - if (jsonArray != null) { - List> options = new ArrayList>(); - for (int i = 0; i < jsonArray.length(); i++) { - JSONObject optionJSON = jsonArray.getJSONObject(i); - Map optionFields = new HashMap(); - optionFields.put("label", LanguageUtil.get(locale, optionJSON.getString("label"))); - optionFields.put("value", optionJSON.getString("value")); - optionFields.put("default", optionJSON.getBoolean("default")); - options.add(optionFields); - } - fieldNameOptions.put(key, options); - } - } - } - } - } - return fieldNameOptions; - } -} +package it.tref.liferay.portos.kaleo.hook.struts; + +import it.tref.liferay.portos.kaleo.model.FormDefinitionLink; +import it.tref.liferay.portos.kaleo.model.FormTemplateLink; +import it.tref.liferay.portos.kaleo.service.FormDefinitionLinkLocalServiceUtil; +import it.tref.liferay.portos.kaleo.service.FormTemplateLinkLocalServiceUtil; +import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; +import it.tref.liferay.portos.kaleo.util.WorkflowUtil; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.portlet.PortletConfig; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; +import javax.portlet.ResourceRequest; +import javax.portlet.ResourceResponse; +import javax.servlet.http.HttpServletResponse; + +import com.liferay.compat.portal.kernel.util.MapUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.json.JSONArray; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.language.LanguageUtil; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.servlet.ServletResponseUtil; +import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; +import com.liferay.portal.kernel.util.ContentTypes; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.portal.util.PortalUtil; +import com.liferay.portal.workflow.kaleo.model.KaleoDefinition; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; +import com.liferay.portlet.dynamicdatamapping.model.DDMStructure; +import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate; +import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil; +import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil; +import com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil; + +public class RenderFormTaskPortletAction extends BaseStrutsPortletAction { + + private static Log _log = LogFactoryUtil.getLog(RenderFormTaskPortletAction.class); + + @Override + public String render(PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) + throws Exception { + + ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); + long companyId = PortalUtil.getCompanyId(renderRequest); + long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); + long assigneeUserId = ParamUtil.getLong(renderRequest, "assigneeUserId"); + String transitionName = ParamUtil.getString(renderRequest, "transitionName"); + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + KaleoDefinition kaleoDefinition = KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken + .getKaleoDefinitionId()); + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + FormDefinitionLink formDefinitionLink = FormDefinitionLinkLocalServiceUtil + .fetchByC_DefinitionName_DefinitionVersion(companyId, kaleoDefinition.getName(), + kaleoDefinition.getVersion()); + if (formDefinitionLink == null) { + return null; + } + FormTemplateLink formTemplateLink = FormTemplateLinkLocalServiceUtil + .fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName(formDefinitionLink.getFormDefinitionLinkId(), + kaleoTask.getKaleoNodeId(), transitionName); + if (formTemplateLink == null) { + return null; + } + long ddmTemplateId = formTemplateLink.getDdmTemplateId(); + long ddmStructureId = formDefinitionLink.getDdmStructureId(); + /* + * Script OnOpenForm + */ + Map workflowContext = WorkflowUtil.executeOnOpenForm(companyId, workflowTaskId, + assigneeUserId, transitionName); + Map parameters = WorkflowUtil.getFormParameters(companyId, workflowTaskId); + Map>> fieldNameOptions = getOptions(workflowContext, + serviceContext.getLocale()); + renderRequest.setAttribute("ddmTemplateId", ddmTemplateId); + renderRequest.setAttribute("ddmStructureId", ddmStructureId); + renderRequest.setAttribute("parameters", parameters); + renderRequest.setAttribute("prefix", WorkflowConstants.PREFIX_NAME_ELEMENT_FORM); + renderRequest.setAttribute("suffix", WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM); + renderRequest.setAttribute("fieldNameOptions", fieldNameOptions); + String classPkForCarichiLavoro = ParamUtil.getString(renderRequest, "classPkForCarichiLavoro"); + _log.info("classPkForCarichiLavoro = " + classPkForCarichiLavoro); + boolean checkVisualizzaCarichiLavoro = (ddmTemplateId == 21699 || ddmTemplateId == 21705); + if (checkVisualizzaCarichiLavoro) { + renderRequest.setAttribute("classPkForCarichiLavoro", classPkForCarichiLavoro); + } + if (transitionName != null && transitionName.equalsIgnoreCase("registra-esito")) { + parameters.remove("esito"); + parameters.remove("testo_del_documento"); + } + return "/portlet/workflow_tasks/render_form_task.jsp"; + } + + @SuppressWarnings("unchecked") + @Override + public void serveResource(PortletConfig portletConfig, ResourceRequest resourceRequest, + ResourceResponse resourceResponse) throws Exception { + + ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); + long companyId = PortalUtil.getCompanyId(resourceRequest); + long workflowTaskId = ParamUtil.getLong(resourceRequest, "workflowTaskId"); + long assigneeUserId = ParamUtil.getLong(resourceRequest, "assigneeUserId"); + String transitionName = ParamUtil.getString(resourceRequest, "transitionName"); + List errors = new ArrayList(); + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + KaleoDefinition kaleoDefinition = KaleoDefinitionLocalServiceUtil.getKaleoDefinition(kaleoTaskInstanceToken + .getKaleoDefinitionId()); + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + FormDefinitionLink formDefinitionLink = FormDefinitionLinkLocalServiceUtil + .fetchByC_DefinitionName_DefinitionVersion(companyId, kaleoDefinition.getName(), + kaleoDefinition.getVersion()); + if (formDefinitionLink != null) { + FormTemplateLink formTemplateLink = FormTemplateLinkLocalServiceUtil + .fetchByFormDefinitionLinkId_KaleoNodeId_TransitionName( + formDefinitionLink.getFormDefinitionLinkId(), kaleoTask.getKaleoNodeId(), transitionName); + if (formTemplateLink != null) { + Map workflowContext = new HashMap(); + WorkflowUtil.updateWorkflowContextWithTaskFormParameters(resourceRequest, workflowContext); + DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.getDDMTemplate(formTemplateLink + .getDdmTemplateId()); + String xsd = DDMXSDUtil.getXSD(PortalUtil.getClassNameId(DDMTemplate.class), + ddmTemplate.getTemplateId()); + JSONArray jsonArray = DDMXSDUtil.getJSONArray(xsd); + Map formParameters = (Map) workflowContext + .get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS); + if (formParameters != null) { + for (int i = 0; i < jsonArray.length(); i++) { + JSONObject jsonObject = jsonArray.getJSONObject(i); + String name = jsonObject.getString("name"); + boolean required = GetterUtil.getBoolean(jsonObject.getString("required")); + if (required) { + String value = formParameters.get(name); + if (Validator.isNull(value)) { + String language = ddmTemplate.getDefaultLanguageId(); + JSONObject localizationMapJSON = jsonObject.getJSONObject("localizationMap"); + if (localizationMapJSON.has(serviceContext.getLanguageId())) { + language = serviceContext.getLanguageId(); + } else if (!localizationMapJSON.has(language)) { + DDMStructure ddmStructure = DDMStructureLocalServiceUtil + .getDDMStructure(formDefinitionLink.getDdmStructureId()); + language = ddmStructure.getDefaultLanguageId(); + } + String label = localizationMapJSON.getJSONObject(language).getString("label"); + errors.add(LanguageUtil.format(serviceContext.getLocale(), + "error-portos-kaleo-required", label)); + } + } + } + } + /* + * Script OnValidation + */ + workflowContext = WorkflowUtil.executeOnValidation(companyId, workflowTaskId, assigneeUserId, + transitionName, workflowContext); + String json = MapUtil + .getString(workflowContext, WorkflowConstants.CONTEXT_VALIDATION_OUTCOME_PARAMETER); + if (Validator.isNotNull(json)) { + JSONObject validationJSON = JSONFactoryUtil.createJSONObject(json); + JSONArray validationErrorsJSON = validationJSON.getJSONArray("errors"); + if (validationErrorsJSON != null) { + for (int i = 0; i < validationErrorsJSON.length(); i++) { + errors.add(validationErrorsJSON.getString(i)); + } + } + } + } + } + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); + if (!errors.isEmpty()) { + jsonObject.put("valid", false); + JSONArray jsonMessages = JSONFactoryUtil.createJSONArray(); + for (String error : errors) { + jsonMessages.put(error); + } + jsonObject.put("messages", jsonMessages); + } else { + jsonObject.put("valid", true); + } + resourceResponse.setContentType(ContentTypes.APPLICATION_JSON); + HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(resourceResponse); + ServletResponseUtil.write(httpServletResponse, jsonObject.toString()); + resourceResponse.flushBuffer(); + } + + private Map>> getOptions(Map workflowContext, + Locale locale) throws PortalException { + + Map>> fieldNameOptions = Collections.emptyMap(); + if (workflowContext.containsKey(WorkflowConstants.CONTEXT_OPEN_FORM_OPTIONS_PARAMETER)) { + String json = MapUtil.getString(workflowContext, WorkflowConstants.CONTEXT_OPEN_FORM_OPTIONS_PARAMETER); + if (Validator.isNotNull(json)) { + // field name (ddm) -> map + fieldNameOptions = new HashMap>>(); + JSONObject jsonObject = JSONFactoryUtil.createJSONObject(json); + Iterator it = jsonObject.keys(); + while (it.hasNext()) { + String key = it.next(); + // options + if (Validator.isNotNull(json)) { + JSONArray jsonArray = jsonObject.getJSONArray(key); + if (jsonArray != null) { + List> options = new ArrayList>(); + for (int i = 0; i < jsonArray.length(); i++) { + JSONObject optionJSON = jsonArray.getJSONObject(i); + Map optionFields = new HashMap(); + optionFields.put("label", LanguageUtil.get(locale, optionJSON.getString("label"))); + optionFields.put("value", optionJSON.getString("value")); + optionFields.put("default", optionJSON.getBoolean("default")); + options.add(optionFields); + } + fieldNameOptions.put(key, options); + } + } + } + } + } + return fieldNameOptions; + } +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java index 0c63bb7c..94e3eb71 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderHistoryFormAction.java @@ -1,101 +1,101 @@ -package it.tref.liferay.portos.kaleo.hook.struts; - -import it.tref.liferay.portos.bo.model.ControlloPratica; -import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; -import it.tref.liferay.portos.kaleo.model.FormLog; -import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; - -import java.io.Serializable; -import java.util.Collections; -import java.util.Map; - -import javax.portlet.PortletConfig; -import javax.portlet.RenderRequest; -import javax.portlet.RenderResponse; - -import com.liferay.portal.kernel.json.JSONDeserializer; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.util.WebKeys; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.theme.ThemeDisplay; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; - -public class RenderHistoryFormAction extends BaseStrutsPortletAction { - - @Override - public String render(PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) - throws Exception { - - ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); - ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); - long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); - WorkflowTask workflowTask = null; - if (workflowTaskId > 0) { - workflowTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), workflowTaskId); - } - FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(), workflowTaskId); - Map parameters = Collections. emptyMap(); - if (Validator.isNotNull(formLog.getFormParameters())) { - JSONDeserializer> jsonDeserializer = JSONFactoryUtil.createJSONDeserializer(); - parameters = jsonDeserializer.deserialize(formLog.getFormParameters()); - if (parameters.containsKey("istruttore")) { - User istruttore = UserLocalServiceUtil.fetchUser(Long.parseLong((String) parameters.get("istruttore"))); - if (istruttore != null) { - parameters.remove("istruttore"); - parameters.put("istruttore", istruttore.getFullName()); - } - } - if (parameters.containsKey(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { - KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowTask - .getWorkflowInstanceId()); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance - .getClassPK()); - String tipoEsito = StringPool.BLANK; - String appString = (String) parameters.get(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); - switch (appString) { - case StatoPraticaConstants.INTEGRAZIONE: - tipoEsito = "Richiesta Integrazione"; - break; - case StatoPraticaConstants.CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - tipoEsito = "Autorizzata"; - } - break; - case StatoPraticaConstants.NON_CONFORME: - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = "Non conforme"; - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - tipoEsito = "Non autorizzata"; - } - break; - case StatoPraticaConstants.ANNULLATA: - tipoEsito = "Annullata"; - break; - default: - break; - } - if (Validator.isNotNull(tipoEsito)) { - parameters.remove(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); - parameters.put(WorkflowConstants.WORKFLOW_TASKNAME_ESITO, tipoEsito); - } - } - } - renderRequest.setAttribute("parameters", parameters); - return "/portlet/workflow_instances/render_history_form_task.jsp"; - } -} +package it.tref.liferay.portos.kaleo.hook.struts; + +import it.tref.liferay.portos.bo.model.ControlloPratica; +import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; +import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.util.WorkflowConstants; +import it.tref.liferay.portos.kaleo.model.FormLog; +import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; + +import java.io.Serializable; +import java.util.Collections; +import java.util.Map; + +import javax.portlet.PortletConfig; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; + +import com.liferay.portal.kernel.json.JSONDeserializer; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.struts.BaseStrutsPortletAction; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.util.WebKeys; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.theme.ThemeDisplay; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; + +public class RenderHistoryFormAction extends BaseStrutsPortletAction { + + @Override + public String render(PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) + throws Exception { + + ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest); + ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); + long workflowTaskId = ParamUtil.getLong(renderRequest, "workflowTaskId"); + WorkflowTask workflowTask = null; + if (workflowTaskId > 0) { + workflowTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), workflowTaskId); + } + FormLog formLog = FormLogLocalServiceUtil.findByC_Task(serviceContext.getCompanyId(), workflowTaskId); + Map parameters = Collections. emptyMap(); + if (Validator.isNotNull(formLog.getFormParameters())) { + JSONDeserializer> jsonDeserializer = JSONFactoryUtil.createJSONDeserializer(); + parameters = jsonDeserializer.deserialize(formLog.getFormParameters()); + if (parameters.containsKey("istruttore")) { + User istruttore = UserLocalServiceUtil.fetchUser(Long.parseLong((String) parameters.get("istruttore"))); + if (istruttore != null) { + parameters.remove("istruttore"); + parameters.put("istruttore", istruttore.getFullName()); + } + } + if (parameters.containsKey(WorkflowConstants.WORKFLOW_TASKNAME_ESITO)) { + KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowTask + .getWorkflowInstanceId()); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(kaleoInstance + .getClassPK()); + String tipoEsito = StringPool.BLANK; + String appString = (String) parameters.get(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); + switch (appString) { + case StatoPraticaConstants.INTEGRAZIONE: + tipoEsito = "Richiesta Integrazione"; + break; + case StatoPraticaConstants.CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { + tipoEsito = "Autorizzata"; + } + break; + case StatoPraticaConstants.NON_CONFORME: + if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { + tipoEsito = "Non conforme"; + } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { + tipoEsito = "Non autorizzata"; + } + break; + case StatoPraticaConstants.ANNULLATA: + tipoEsito = "Annullata"; + break; + default: + break; + } + if (Validator.isNotNull(tipoEsito)) { + parameters.remove(WorkflowConstants.WORKFLOW_TASKNAME_ESITO); + parameters.put(WorkflowConstants.WORKFLOW_TASKNAME_ESITO, tipoEsito); + } + } + } + renderRequest.setAttribute("parameters", parameters); + return "/portlet/workflow_instances/render_history_form_task.jsp"; + } +} diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java index 1ed6b392..9b1edea4 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java @@ -1,196 +1,196 @@ -package it.tref.liferay.portos.kaleo.util; - -import it.tref.liferay.portos.kaleo.model.FormLog; -import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; -import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; - -import java.io.Serializable; -import java.util.Collections; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; - -import javax.portlet.PortletRequest; -import javax.servlet.http.HttpServletRequest; - -import org.apache.commons.lang.StringUtils; - -import com.liferay.portal.NoSuchWorkflowInstanceLinkException; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONDeserializer; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowHandler; -import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; -import com.liferay.portal.model.WorkflowInstanceLink; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; -import com.liferay.portal.workflow.kaleo.definition.ExecutionType; -import com.liferay.portal.workflow.kaleo.model.KaleoNode; -import com.liferay.portal.workflow.kaleo.model.KaleoTask; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; -import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; -import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; -import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; - -public class WorkflowUtil { - - public static Map executeOnOpenForm(long companyId, long workflowTaskId, long assigneeUserId, - String transitionName) throws PortalException, SystemException { - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(assigneeUserId); - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - Map workflowContext = new HashMap(); - WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken - .getClassName()); - if (workflowHandler != null) { - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); - } - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, - String.valueOf(kaleoTaskInstanceToken.getClassPK())); - workflowContext - .put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); - workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); - workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(assigneeUserId)); - workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); - workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); - ExecutionContext executionContext = new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), - kaleoTaskInstanceToken, workflowContext, serviceContext); - ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), - ExecutionType.ON_OPEN_FORM, executionContext); - return executionContext.getWorkflowContext(); - } - - public static Map executeOnValidation(long companyId, long workflowTaskId, - long assigneeUserId, String transitionName) throws PortalException, SystemException { - - return executeOnValidation(companyId, workflowTaskId, assigneeUserId, transitionName, null); - } - - public static Map executeOnValidation(long companyId, long workflowTaskId, - long assigneeUserId, String transitionName, Map workflowContext) - throws PortalException, SystemException { - - if (workflowContext == null) { - workflowContext = Collections. emptyMap(); - } - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(companyId); - serviceContext.setUserId(assigneeUserId); - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); - WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken - .getClassName()); - if (workflowHandler != null) { - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); - } - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); - workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, - String.valueOf(kaleoTaskInstanceToken.getClassPK())); - workflowContext - .put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); - workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); - workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(assigneeUserId)); - workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); - workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); - ExecutionContext executionContext = new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), - kaleoTaskInstanceToken, workflowContext, serviceContext); - ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), - ExecutionType.ON_VALIDATION, executionContext); - return executionContext.getWorkflowContext(); - } - - public static Map getFormParameters(long companyId, long workflowTaskId) - throws PortalException, SystemException { - - return getFormParameters(companyId, 0, 0, StringPool.BLANK, workflowTaskId); - } - - public static Map getFormParameters(long companyId, long groupId, long classPK, - String className, long workflowTaskId) throws PortalException, SystemException { - - if (Validator.isNotNull(workflowTaskId)) { - KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceToken(workflowTaskId); - companyId = kaleoTaskInstanceToken.getCompanyId(); - groupId = kaleoTaskInstanceToken.getGroupId(); - classPK = kaleoTaskInstanceToken.getClassPK(); - className = kaleoTaskInstanceToken.getClassName(); - } - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( - companyId, groupId, className, classPK); - if (workflowInstanceLink == null) { - throw new NoSuchWorkflowInstanceLinkException(); - } - long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); - Map parameters = new HashMap(); - // order asc - List formLogs = FormLogLocalServiceUtil.findByC_Instance(companyId, workflowInstanceId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); - for (FormLog formLog : formLogs) { - String formParameters = formLog.getFormParameters(); - if (Validator.isNotNull(formParameters)) { - JSONDeserializer> jsonDeserializer = JSONFactoryUtil - .> createJSONDeserializer(); - parameters.putAll(jsonDeserializer.deserialize(formParameters)); - } - } - return parameters; - } - - public static void updateWorkflowContextWithTaskFormParameters(PortletRequest portletRequest, - Map workflowContext) { - - Map formParameters = null; - Enumeration enu = portletRequest.getParameterNames(); - while (enu.hasMoreElements()) { - String name = enu.nextElement(); - if (!name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) - && !name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) { - continue; - } - if (formParameters == null) { - formParameters = new HashMap(); - } - String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(), name.length() - - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length()); - String value = StringUtils.join(ParamUtil.getParameterValues(portletRequest, name), ','); - formParameters.put(parameterName, value); - } - if (formParameters == null) { - HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil - .getHttpServletRequest(portletRequest)); - Enumeration enums = httpServletRequest.getParameterNames(); - while (enums.hasMoreElements()) { - String name = enums.nextElement(); - if (!name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) - && !name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) { - continue; - } - if (formParameters == null) { - formParameters = new HashMap(); - } - String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(), - name.length() - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length()); - String value = StringUtils.join(ParamUtil.getParameterValues(httpServletRequest, name), ','); - formParameters.put(parameterName, value); - } - } - if (formParameters != null) { - workflowContext.put(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS, (Serializable) formParameters); - } - } -} +package it.tref.liferay.portos.kaleo.util; + +import it.tref.liferay.portos.kaleo.model.FormLog; +import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; +import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; + +import java.io.Serializable; +import java.util.Collections; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.portlet.PortletRequest; +import javax.servlet.http.HttpServletRequest; + +import org.apache.commons.lang.StringUtils; + +import com.liferay.portal.NoSuchWorkflowInstanceLinkException; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONDeserializer; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowHandler; +import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; +import com.liferay.portal.model.WorkflowInstanceLink; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; +import com.liferay.portal.workflow.kaleo.definition.ExecutionType; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; +import com.liferay.portal.workflow.kaleo.model.KaleoTask; +import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.runtime.ExecutionContext; +import com.liferay.portal.workflow.kaleo.runtime.action.ActionExecutorUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; + +public class WorkflowUtil { + + public static Map executeOnOpenForm(long companyId, long workflowTaskId, long assigneeUserId, + String transitionName) throws PortalException, SystemException { + + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(assigneeUserId); + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + Map workflowContext = new HashMap(); + WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken + .getClassName()); + if (workflowHandler != null) { + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); + } + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, + String.valueOf(kaleoTaskInstanceToken.getClassPK())); + workflowContext + .put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); + workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); + workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(assigneeUserId)); + workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); + workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); + ExecutionContext executionContext = new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), + kaleoTaskInstanceToken, workflowContext, serviceContext); + ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), + ExecutionType.ON_OPEN_FORM, executionContext); + return executionContext.getWorkflowContext(); + } + + public static Map executeOnValidation(long companyId, long workflowTaskId, + long assigneeUserId, String transitionName) throws PortalException, SystemException { + + return executeOnValidation(companyId, workflowTaskId, assigneeUserId, transitionName, null); + } + + public static Map executeOnValidation(long companyId, long workflowTaskId, + long assigneeUserId, String transitionName, Map workflowContext) + throws PortalException, SystemException { + + if (workflowContext == null) { + workflowContext = Collections. emptyMap(); + } + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(companyId); + serviceContext.setUserId(assigneeUserId); + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + KaleoTask kaleoTask = kaleoTaskInstanceToken.getKaleoTask(); + WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(kaleoTaskInstanceToken + .getClassName()); + if (workflowHandler != null) { + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_TYPE, workflowHandler.getType(Locale.getDefault())); + } + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME, kaleoTaskInstanceToken.getClassName()); + workflowContext.put(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK, + String.valueOf(kaleoTaskInstanceToken.getClassPK())); + workflowContext + .put(WorkflowConstants.CONTEXT_COMPANY_ID, String.valueOf(kaleoTaskInstanceToken.getCompanyId())); + workflowContext.put(WorkflowConstants.CONTEXT_GROUP_ID, String.valueOf(kaleoTaskInstanceToken.getGroupId())); + workflowContext.put(WorkflowConstants.CONTEXT_USER_ID, String.valueOf(assigneeUserId)); + workflowContext.put(WorkflowConstants.CONTEXT_SERVICE_CONTEXT, serviceContext); + workflowContext.put(WorkflowConstants.CONTEXT_TRANSITION_NAME, transitionName); + ExecutionContext executionContext = new ExecutionContext(kaleoTaskInstanceToken.getKaleoInstanceToken(), + kaleoTaskInstanceToken, workflowContext, serviceContext); + ActionExecutorUtil.executeKaleoActions(KaleoNode.class.getName(), kaleoTask.getKaleoNodeId(), + ExecutionType.ON_VALIDATION, executionContext); + return executionContext.getWorkflowContext(); + } + + public static Map getFormParameters(long companyId, long workflowTaskId) + throws PortalException, SystemException { + + return getFormParameters(companyId, 0, 0, StringPool.BLANK, workflowTaskId); + } + + public static Map getFormParameters(long companyId, long groupId, long classPK, + String className, long workflowTaskId) throws PortalException, SystemException { + + if (Validator.isNotNull(workflowTaskId)) { + KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceToken(workflowTaskId); + companyId = kaleoTaskInstanceToken.getCompanyId(); + groupId = kaleoTaskInstanceToken.getGroupId(); + classPK = kaleoTaskInstanceToken.getClassPK(); + className = kaleoTaskInstanceToken.getClassName(); + } + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + companyId, groupId, className, classPK); + if (workflowInstanceLink == null) { + throw new NoSuchWorkflowInstanceLinkException(); + } + long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); + Map parameters = new HashMap(); + // order asc + List formLogs = FormLogLocalServiceUtil.findByC_Instance(companyId, workflowInstanceId, + QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (FormLog formLog : formLogs) { + String formParameters = formLog.getFormParameters(); + if (Validator.isNotNull(formParameters)) { + JSONDeserializer> jsonDeserializer = JSONFactoryUtil + .> createJSONDeserializer(); + parameters.putAll(jsonDeserializer.deserialize(formParameters)); + } + } + return parameters; + } + + public static void updateWorkflowContextWithTaskFormParameters(PortletRequest portletRequest, + Map workflowContext) { + + Map formParameters = null; + Enumeration enu = portletRequest.getParameterNames(); + while (enu.hasMoreElements()) { + String name = enu.nextElement(); + if (!name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) + && !name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) { + continue; + } + if (formParameters == null) { + formParameters = new HashMap(); + } + String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(), name.length() + - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length()); + String value = StringUtils.join(ParamUtil.getParameterValues(portletRequest, name), ','); + formParameters.put(parameterName, value); + } + if (formParameters == null) { + HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil + .getHttpServletRequest(portletRequest)); + Enumeration enums = httpServletRequest.getParameterNames(); + while (enums.hasMoreElements()) { + String name = enums.nextElement(); + if (!name.startsWith(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM) + && !name.endsWith(WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM)) { + continue; + } + if (formParameters == null) { + formParameters = new HashMap(); + } + String parameterName = name.substring(WorkflowConstants.PREFIX_NAME_ELEMENT_FORM.length(), + name.length() - WorkflowConstants.SUFFIX_NAME_ELEMENT_FORM.length()); + String value = StringUtils.join(ParamUtil.getParameterValues(httpServletRequest, name), ','); + formParameters.put(parameterName, value); + } + } + if (formParameters != null) { + workflowContext.put(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS, (Serializable) formParameters); + } + } +} diff --git a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.classpath b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.classpath index f1143cdd..089238a7 100644 --- a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.classpath +++ b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.classpath @@ -1,7 +1,7 @@ - + diff --git a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.project b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.project index 11359732..d0fffb37 100644 --- a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.project +++ b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.project @@ -33,15 +33,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature - - - 1672831492911 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.settings/org.eclipse.wst.common.project.facet.core.xml index 18152013..09b6c5dc 100644 --- a/liferay-plugins-sdk-6.2/webs/resources-importer-web/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/webs/resources-importer-web/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,9 +1,9 @@ + - diff --git a/portos-camel-document-processor/.project b/portos-camel-document-processor/.project index f64b7585..497bbb21 100644 --- a/portos-camel-document-processor/.project +++ b/portos-camel-document-processor/.project @@ -20,15 +20,4 @@ org.eclipse.jdt.core.javanature org.eclipse.buildship.core.gradleprojectnature - - - 1672738248562 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/portos-camel-document-processor/.settings/org.eclipse.buildship.core.prefs b/portos-camel-document-processor/.settings/org.eclipse.buildship.core.prefs index e4795584..e8895216 100644 --- a/portos-camel-document-processor/.settings/org.eclipse.buildship.core.prefs +++ b/portos-camel-document-processor/.settings/org.eclipse.buildship.core.prefs @@ -1,13 +1,2 @@ -arguments= -auto.sync=false -build.scans.enabled=false -connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 -gradle.user.home= -java.home= -jvm.arguments= -offline.mode=false -override.workspace.settings=false -show.console.view=false -show.executions.view=false diff --git a/portos-camel-document-processor/gradlew.bat b/portos-camel-document-processor/gradlew.bat index 85314048..637aa30a 100644 --- a/portos-camel-document-processor/gradlew.bat +++ b/portos-camel-document-processor/gradlew.bat @@ -7,7 +7,7 @@ @rem Set local scope for the variables with windows NT shell -set JAVA_HOME=C:\Users\ebusu\corretto-1.8.0_362 +set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121\jre if "%OS%"=="Windows_NT" setlocal diff --git a/portos-camel-document-processor/src/main/resources/application.properties b/portos-camel-document-processor/src/main/resources/application.properties index 2a682527..1f55d4a5 100644 --- a/portos-camel-document-processor/src/main/resources/application.properties +++ b/portos-camel-document-processor/src/main/resources/application.properties @@ -9,11 +9,11 @@ logging.level.=INFO spring.http.multipart.max-file-size=199MB spring.http.multipart.max-request-size=199MB -camel.document.source.db.username=portos -camel.document.source.db.password=portos +#camel.document.source.db.username=portos +#camel.document.source.db.password=portos #camel.document.source.db.driverclassname=org.postgresql.Driver -camel.document.source.db.url=jdbc:postgresql://localhost:5432/portos -#camel.document.source.db.username=lr_portosadm -#camel.document.source.db.password=Adm_Prts_Rs +#camel.document.source.db.url=jdbc:postgresql://localhost:5432/portos +camel.document.source.db.username=lr_portosadm +camel.document.source.db.password=Adm_Prts_Rs camel.document.source.db.driverclassname=org.postgresql.Driver -#camel.document.source.db.url=jdbc:postgresql://151.80.119.188:5432/portos_camel +camel.document.source.db.url=jdbc:postgresql://151.80.119.188:5432/portos_camel diff --git a/portos-protocollazione-importer/.project b/portos-protocollazione-importer/.project index febd8f4d..38afbe9c 100644 --- a/portos-protocollazione-importer/.project +++ b/portos-protocollazione-importer/.project @@ -20,15 +20,4 @@ org.eclipse.jdt.core.javanature org.eclipse.buildship.core.gradleprojectnature - - - 1672738248673 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/portos-protocollazione-importer/.settings/org.eclipse.buildship.core.prefs b/portos-protocollazione-importer/.settings/org.eclipse.buildship.core.prefs index e4795584..e8895216 100644 --- a/portos-protocollazione-importer/.settings/org.eclipse.buildship.core.prefs +++ b/portos-protocollazione-importer/.settings/org.eclipse.buildship.core.prefs @@ -1,13 +1,2 @@ -arguments= -auto.sync=false -build.scans.enabled=false -connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 -gradle.user.home= -java.home= -jvm.arguments= -offline.mode=false -override.workspace.settings=false -show.console.view=false -show.executions.view=false diff --git a/portos-protocollazione-importer/bin/application.properties b/portos-protocollazione-importer/bin/application.properties deleted file mode 100644 index edd36463..00000000 --- a/portos-protocollazione-importer/bin/application.properties +++ /dev/null @@ -1,23 +0,0 @@ -## -## Spring Logging -## -logging.level.it.toscana.regione = info -logging.level.org.hibernate = info -logging.level.org.springframework = info - - -## -## Spring Datasource -## -spring.datasource.url = jdbc:postgresql://192.168.100.150:5432/portosProtocollo -spring.datasource.username = postgres -spring.datasource.password = postgres -spring.datasource.driver-class-name = org.postgresql.Driver - - -## -## Configurazione connessione DB2 -## -db2.connectionurl = jdbc:db2://192.168.100.150:50000/LIFERAY -db2.username = liferay -db2.password = liferay diff --git a/portos-protocollazione-service/.project b/portos-protocollazione-service/.project index 7411fa78..bcf4b85c 100644 --- a/portos-protocollazione-service/.project +++ b/portos-protocollazione-service/.project @@ -33,15 +33,4 @@ org.eclipse.jem.workbench.JavaEMFNature org.eclipse.buildship.core.gradleprojectnature - - - 1672738248679 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/portos-protocollazione-service/.settings/org.eclipse.buildship.core.prefs b/portos-protocollazione-service/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 00000000..e8895216 --- /dev/null +++ b/portos-protocollazione-service/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir= +eclipse.preferences.version=1 diff --git a/portos-protocollazione-service/angular/package.json b/portos-protocollazione-service/angular/package.json index 6b39f921..548a9e93 100644 --- a/portos-protocollazione-service/angular/package.json +++ b/portos-protocollazione-service/angular/package.json @@ -13,30 +13,31 @@ }, "private": true, "dependencies": { - "@angular/animations": "4.1.1", - "@angular/common": "4.1.1", - "@angular/compiler": "4.1.1", - "@angular/compiler-cli": "4.1.1", - "@angular/core": "4.1.1", - "@angular/forms": "4.1.1", - "@angular/http": "4.1.1", - "@angular/platform-browser": "4.1.1", - "@angular/platform-browser-dynamic": "4.1.1", - "@angular/platform-server": "4.1.1", - "@angular/router": "4.1.1", - "@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.20", - "bootstrap": "4.0.0-alpha.6", - "core-js": "2.4.1", - "font-awesome": "4.7.0", + "@angular/animations": "^4.1.1", + "@angular/common": "^4.1.1", + "@angular/compiler": "^4.1.1", + "@angular/compiler-cli": "^4.1.1", + "@angular/core": "^4.1.1", + "@angular/forms": "^4.1.1", + "@angular/http": "^4.1.1", + "@angular/platform-browser": "^4.1.1", + "@angular/platform-browser-dynamic": "^4.1.1", + "@angular/platform-server": "^4.1.1", + "@angular/router": "^4.1.1", + "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.20", + "bootstrap": "^4.0.0-alpha.6", + "core-js": "^2.4.1", + "font-awesome": "^4.7.0", "ng-loading-bar": "0.0.7", - "ng2-page-scroll": "4.0.0-beta.5", - "rxjs": "5.1.0", - "ts-helpers": "1.1.1", - "typescript": "2.3.2" + "ng2-page-scroll": "^4.0.0-beta.5", + "rxjs": "^5.1.0", + "ts-helpers": "^1.1.1", + "typescript": "^2.3.2", + "zone.js": "^0.7.6" }, "devDependencies": { "@angular/cli": "1.0.0-rc.4", - "@angular/compiler-cli": "2.4.0", + "@angular/compiler-cli": "^2.4.0", "@types/jasmine": "2.5.38", "@types/node": "~6.0.60", "codelyzer": "~2.0.0", @@ -46,11 +47,11 @@ "karma-chrome-launcher": "~2.0.0", "karma-cli": "~1.0.1", "karma-jasmine": "~1.1.0", - "karma-jasmine-html-reporter": "0.2.2", - "karma-coverage-istanbul-reporter": "0.2.0", + "karma-jasmine-html-reporter": "^0.2.2", + "karma-coverage-istanbul-reporter": "^0.2.0", "protractor": "~5.1.0", "ts-node": "~2.0.0", "tslint": "~4.5.0", - "typescript": "2.0.0" + "typescript": "~2.0.0" } } diff --git a/portos-protocollazione-service/gradlew.bat b/portos-protocollazione-service/gradlew.bat index 85314048..0bf693df 100644 --- a/portos-protocollazione-service/gradlew.bat +++ b/portos-protocollazione-service/gradlew.bat @@ -7,7 +7,7 @@ @rem Set local scope for the variables with windows NT shell -set JAVA_HOME=C:\Users\ebusu\corretto-1.8.0_362 +set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111 if "%OS%"=="Windows_NT" setlocal diff --git a/portos-versioning/.gradle/buildOutputCleanup/cache.properties b/portos-versioning/.gradle/buildOutputCleanup/cache.properties index 08c3d60c..11e4b526 100644 --- a/portos-versioning/.gradle/buildOutputCleanup/cache.properties +++ b/portos-versioning/.gradle/buildOutputCleanup/cache.properties @@ -1,2 +1,2 @@ -#Tue Jan 03 10:30:32 CET 2023 -gradle.version=7.4.2 +#Thu Oct 10 15:04:51 CEST 2019 +gradle.version=3.5.1 diff --git a/portos-versioning/.project b/portos-versioning/.project index 0a10e8c7..72eafb39 100644 --- a/portos-versioning/.project +++ b/portos-versioning/.project @@ -33,15 +33,4 @@ org.eclipse.jem.workbench.JavaEMFNature org.eclipse.buildship.core.gradleprojectnature - - - 1672738248703 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - diff --git a/portos-versioning/.settings/org.eclipse.buildship.core.prefs b/portos-versioning/.settings/org.eclipse.buildship.core.prefs index c757cbaa..e8895216 100644 --- a/portos-versioning/.settings/org.eclipse.buildship.core.prefs +++ b/portos-versioning/.settings/org.eclipse.buildship.core.prefs @@ -1,13 +1,2 @@ -arguments=--init-script C\:\\Users\\ebusu\\AppData\\Local\\Temp\\d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script C\:\\Users\\ebusu\\AppData\\Local\\Temp\\52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle --init-script C\:\\Users\\ebusu\\AppData\\Local\\Temp\\bd95fba452cd16942039615189e617a1932f63d661f1f661840274c40bc05cbb.gradle -auto.sync=false -build.scans.enabled=false -connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2)) connection.project.dir= eclipse.preferences.version=1 -gradle.user.home= -java.home=C\:/Users/ebusu/Downloads/graalvm-ce-java17-22.2.0 -jvm.arguments= -offline.mode=false -override.workspace.settings=true -show.console.view=true -show.executions.view=true